Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

fix(worker): harden exemption env + close verification-queue #10

4 months ago

3229e98
Authored
grim7/12/2026, 12:40:07 AM
queue #10 (maintainer-exemption integration test failing) was ENVIRONMENTAL,
not a code regression — TRIPWIRE_DISABLE_EXEMPTION had leaked into the process
env during a live-test pre-flight; the worker reads it at run time, so the
maintainer test saw a run. verified: passes 12/12 on a clean env.

- exemption.ts: isExemptionDisabled(env) is pure and REFUSES the flag under
  NODE_ENV=production (resolveAuthPosture pattern — fails toward keeping
  maintainers exempt, never gated in prod by a stray flag)
- run-workflows uses it + logs a loud warn when the flag is refused in prod
- worker integration tests (process-event, toggles) delete/restore the flag in
  setup — proven: the maintainer test passes even with the flag set ambiently
- exemption.test.ts: refusal in prod + the affordance (flag set in dev ⇒ disabled)
- VERIFICATION-QUEUE #10 closed with root cause; all-summaries session entry

checks: biome clean · 12/12 typecheck · boundaries ok · 145 tests, 0 fail

Parentef9b797

8 files changed
  • DECISIONS.md+20−0
  • VERIFICATION-QUEUE.md+13−10
  • all-summaries.md+45−0
  • apps/worker/src/exemption.test.ts+47−0
  • apps/worker/src/exemption.ts+30−0
  • apps/worker/src/jobs/run-workflows.ts+10−1
  • apps/worker/src/process-event.integration.test.ts+10−0
  • apps/worker/src/toggles.integration.test.ts+10
−0