← Назад к задаче

SAAS-042 · Builder logs, limits, costs and multipage

Отдельный файл отчёта для этой задачи не найден или не указан. Показан сохранённый результат задачи.

I implemented the new Builder budgets, the spend accounting and the four-page output in the isolated clone, and wrote docs/e2e/SAAS-042-REPORT.md (8.7 KB). Nothing is deployed, committed or run against live data, and I made no DeepSeek calls. SAAS-040 stages 2–4 were not run.

Run logs. I could not read the logs of the two failed SAAS-040 runs. /var/www/console-saas-data is mode 0700 and owned by iovon-saas, and journalctl shows nothing. Failed runs also deleted their checkpoints and kept no per-step record. The report separates what is inferred from code and error_detail from what was actually observed. Both runs hit the old 8-request step limit, which is consistent with 5,000-token truncation forcing file rewrites. I added a builder_steps trace table, so the next failed run can be inspected step by step. To get the historical numbers, pull the two runs' ai_usage and spend_reservations rows on the live host.

What changed:

Tests. The new tests/saas-042-regression.php passes 54 assertions. It covers the spend accounting, a concurrency check with six processes, all four ceilings, recovery from a truncated call and a broken link, preview of every page, and tenant isolation. The 33 PHP test scripts I ran all passed, the Node chat tests passed, and php -l is clean. I updated several older tests that encoded the old limits or wrote only one page. saas-032-regression.php fails the same way on the pre-SAAS-042 code and I left it alone.

Before deployment. The owner needs to check the live spend_reservations rows. Old unsettled rows carry over at their full reserved value and could consume part of the $2.00. The report has the backup, deploy and rollback steps. Originals of the changed files are in docs/e2e/saas-042/backup/.

Материалы