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

The Resilience page lists each THREATS.md protection, red when the test it cites failed in the last gate #1711

Closed opened this
Closed without merging

/resilience now lists every protection in docs/THREATS.md and marks it green, red or "no test yet". I didn't load the page in a running app. bun x tsc --noEmit is clean and test/resilience.test.ts, check-list, threats-doc and check-tiers pass.

Notes

stopped closed without shipping deploy 198d3f3

opened this

/resilience now lists every protection in docs/THREATS.md and marks it green, red or "no test yet". I didn't load the page in a running app. bun x tsc --noEmit is clean and test/resilience.test.ts, check-list, threats-doc and check-tiers pass.

  • The page: it reads the doc's bullets and table rows, each with the test file it cites. Red means that file failed in the last full gate, green means it ran and passed, and "no test yet" is a protection whose Test: line says none yet.
  • A fourth state I added: a cited file that isn't in the last gate's output, or a forge that hasn't finished a gate yet, shows "not in the last gate". Calling those green would claim something nobody checked.
  • Where "the last gate" comes from: nothing stored per-file gate results, so gateOnLand in src/checks/landing.ts now writes last-gate.json under the data directory when a full gate ends. The page shows the time that gate ended. It writes there rather than under checks/, which the forge wipes at startup.
  • Left out: the page only reflects the full gate that runs before a pull lands. Ordinary check runs on pushes don't feed it, and the page is not linked from the nav.
  • The test for red: the test that a failed file marks its line red is in test/resilience.test.ts, named in GATE in scripts/gate.ts. It also covers the doc parsing and the stored result.

Try it by opening /resilience. It shows "No full gate has finished here yet" until a pull lands through the full gate.

New files are src/checks/last-gate.ts, src/core/threats.ts and src/web/pages/resilience.ts.

Closes #1688

commented

Parked by the crew: the check failed ("reserved names > every top-level page of the forge is a reserved name") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs