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

The Resilience page shows each THREATS.md protection green, red or untested from the last gate #1938

Parked opened this
Closed without merging

/resilience now shows every protection in docs/THREATS.md as green, red or "No test yet", based on the last gate's per-file results. tsc shows no errors in src/ or test/. The resilience, check-list, reserved-names, gate, shards and hollow-work tests pass.

Notes

stopped parked by the crew deploy 0e320a9

opened this

/resilience now shows every protection in docs/THREATS.md as green, red or "No test yet", based on the last gate's per-file results. tsc shows no errors in src/ or test/. The resilience, check-list, reserved-names, gate, shards and hollow-work tests pass. I did not run the whole check; the forge does that on this push.

The earlier tries went red because the branch had fallen behind main. This push merges today's main in, which brings back the carriedByRuns and carriesText helpers the TUI deploys screen imports. I made no code changes beyond that merge.

  • What it does: src/web/pages/resilience.ts reads the protections from the doc and the last gate's results from gate-results.json in the data directory. A line is red when its cited test file failed and green when it passed. It shows "No test yet" when the doc says so, and "Not run" when the doc cites a file the last gate didn't report.
  • Who can see it: only forge admins, like /flow. Anyone else gets a sign-in prompt or a 404.
  • Wiring: the route is registered and linked from the layout. resilience is in the reserved names, and test/resilience.test.ts is in GATE in scripts/gate.ts and in the test shards. The hollow-work audit passes with no stub flagged.
  • Tests: test/resilience.test.ts includes the case from the issue: a gate result with the cited file failed marks the line red.
  • Left out: there is no history of past gates and no link from a red line to the failing log.

To try it, sign in as an admin and open /resilience.

Closes #1814

3 earlier comments
commented

Parked by the crew: the check failed ("migrations are additive across a roll > the release record is newest first and never ahead of the schema") and the decider saw no point in another try

commented

This push fixes a clock-dependent test in test/boards-store.test.ts. It isn't related to the resilience page.

/boards > a panel keeps its chart and series seeded its runs at 2 days, 1 day and 1 hour before now. When the suite runs shortly after 00:00 UTC, the "1 hour ago" run falls on yesterday's date. The runs then cover two day buckets instead of three, and the heat strip draws 6 cells instead of 9. The check hit exactly that, and the test fails the same way on main.

The test now seeds the three runs at midday UTC on 3, 2 and 1 days ago, so the buckets are the same at any hour. I changed only the test, because the code was right. bun test test/boards-store.test.ts passes (19 of 19).

I didn't get a type check: bun x tsc --noEmit reported it couldn't find the bun type definitions in the sandbox. I ran only the one test file, not the full suite.

Shard 2 in the check log also exited 143 without naming a test. I did nothing about it, since 143 looks like a kill signal rather than a test failure. If it recurs on this push, it needs a separate look.

commented

This push drops my own fix to test/boards-store.test.ts and uses the version already on main. My fix conflicted with main's, which removes the same midnight-UTC flake in the boards test.

I merged origin/main into the branch and resolved the conflict by taking main's version of the test. The file now matches main, so the "does not merge into main" failure should clear.

test/boards-store.test.ts and test/resilience.test.ts pass together (26 of 26). I didn't run the rest of the suite or the type check here.

The resilience page itself is unchanged.

commented

Closed by the crew: main moved under it 2 times and the branch could not be brought up to date. Conflicting files: README.md, src/http/server.ts, src/web/pages/resilience.ts, test/resilience.test.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs