# End-to-end proof Run: 15/11/2026, 4:30:42 pm IST · `node scripts/e2e-proof.mjs` Stack: one `ROLE=api` process and separate `ROLE=worker` processes from apps/api, Postgres, local file storage. Worker A was killed with SIGKILL mid-batch; worker B was started afterwards. | Result | Check | Detail | |---|---|---| | PASS | account created via magic link | plan=free | | PASS | plan upgraded to pro via billing stub | | | PASS | live and test API keys created | | | PASS | template created from starter and published | tpl_4zwHR4rarVR5J8Dk7agJ51 | | PASS | single render succeeds synchronously | rnd_gdvXspTeEsngWbth6RXEjg 1 page(s) 97 ms render, 116 ms round trip | | PASS | PDF link serves a real PDF | 33112 bytes | | PASS | 5 concurrent retries with the same Idempotency-Key return the same render | | | PASS | same key with a different body is refused | idempotency_conflict | | PASS | usage after one render and six retries is exactly 1 | {"plan":"pro","used":1,"limit":15000,"soft_cap":22500} | | PASS | batch of 100 accepted | bat_w5YD9hmvMfr5xEwQ7skEaw | | PASS | worker killed mid-batch with renders in flight | at kill: {"queued":73,"rendering":2,"succeeded":25,"failed":0}, in flight rows: 25,26 | | PASS | re-submitting the batch with the same key returns the same batch | | | PASS | batch finishes after a new worker starts | {"queued":0,"rendering":0,"succeeded":100,"failed":0} in 23594 ms after restart | | PASS | rows in flight on the killed worker were re-queued and finished on the new worker | 25\|2\|grok-bot-vm-187629032:76646:5f5MGe; 26\|2\|grok-bot-vm-187629032:76646:5f5MGe | | PASS | rows finished before the kill were not rendered again | 25 rows kept from worker A | | PASS | usage is exactly 101 (1 single + 100 batch rows), despite the kill and the retries | {"plan":"pro","used":101,"limit":15000,"soft_cap":22500} | | PASS | usage table agrees | | | PASS | ZIP holds 100 PDFs named from filename_pattern | invoice-INV-3000.pdf … invoice-INV-3099.pdf | | PASS | test-key render succeeds and is free | | | PASS | missing field fails with its path and costs nothing | {"code":"missing_field","message":"The data has no value for customer.email.","paths":["customer.email"]} | 20 of 20 checks passed. Files: single-render.pdf, batch-invoice-INV-3001.pdf (Arabic), batch-invoice-INV-3002.pdf (Tamil), batch-invoice-INV-3029.pdf (multi-page), test-key-render.pdf (TEST mark), batch-100.zip, log.jsonl, api.log, worker-a.log, worker-b.log.