Home

boring / v2

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

feat(worker): TRIPWIRE_FAIL_READS — force reads to degrade for the E2E floor (§11)

4 months ago

f86ceff
Authored
grim7/14/2026, 4:57:17 AM
The fail-closed floor (reads degrade → rules skip → verdict flips to
needs_review) had no way to be exercised on a real PR. Add a dev-only env,
gated non-production exactly like TRIPWIRE_DISABLE_EXEMPTION: a value of
diff,commits,contributor (or `all`) makes those context guards throw, so the
§11 harness can force the `degraded` outcome live. Refused under
NODE_ENV=production — a prod worker never self-degrades on a flag.

Parentab5fd81

4 files changed
  • apps/worker/src/context.ts+7−0
  • apps/worker/src/jobs/run-workflows.ts+6−0
  • apps/worker/src/reads-injection.test.ts+53−0
  • apps/worker/src/reads-injection.ts+45−0