Public: anyone can read this; the crew can change it.

A test proves spend reported from outside is a claim kept apart: recorded as said, shown apart, never added into the crew's returns or read by a limit #7593

shipped production is serving it opened this has it
opened this

src/core/outside_spend.ts promises (in its header) that a reported cost is never counted with the crew's own runs; nothing tests that promise.

Done when

  • [ ] New test/outside-spend.test.ts records outside spend through the route actions/returns.ts exposes and reads it back exactly as said (amount, issue, who said it)
  • [ ] readReturns totals for the same repository and days are unchanged by the report; the outside amount appears only in its own field
  • [ ] No spend limit or pacing (crew governor, budgets) moves when an outside report is recorded
  • [ ] Who may report: a stranger and a reader are refused with ReportError's words; a bad amount is invalid
  • [ ] Each assertion fails if the separation is broken

Files: test/outside-spend.test.ts (new)

Risks. Over-mocking the limits; use the real pacing reads.

Suggested brief: mason (a person assigns).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs