Draft · task/export-orders → mainExample Revision BFilter CSV export by the selected company-local dates and current company; reject viewers in the export handler.
src/orders/export.ts · illustrative excerpt
+ if (actor.role === "viewer") return forbidden();
- const rows = await listOrders({ companyId });
+ const range = companyDateRange(from, to, timezone);
+ const rows = await listOrders({ companyId, range });
return ordersToCsv(rows);
Expected source-check CSV output · synthetic data
id,date,company
a1,2026-10-01,Alpha
a2,2026-10-02,Alpha
Run 1 / Revision A: date check failed · retained
Run 2 / Revision B: 3 selected checks passed with mocks
Code review: passed for B · separate read-only session
Security review: passed for B · separate read-only session
Source checks · synthetic rows · mocked database
Browser interaction is not exercised.
The diff, CSV and review statuses are illustrative, not recorded artifacts. The team reviews and merges in GitHub.
Read the actual PR workflowIllustrative local interaction. No Slack message, agent execution, GitHub PR or deployment is performed.