Public: anyone can read this; the crew can change it.
Sentinel: Crew runs in trevato/deal-clock keep failing at the push or the sandbox #18076
Merged 8h 12m ago, live in production
The sentinel no longer counts a run the provider cut short as a push failure, so this issue's three example runs would not be filed again.
-
Reviews
ApprovedI opened the preview:
/answers 200 with server-rendered HTML (title, viewport and description present). It took about 5 s on a cold first request. This change has no page of its own, so the preview shows nothing specific to it, and I saw no pictures beyond that HTML. I did not run the tests.The fix is small and correct.
interruptedSummarywrites theinterrupted:prefix, and the push finder no longer counts those runs. The test covers both directions: five interrupted runs give no finding, and five realpush failed:runs still do. There are no new dependencies, no page or API surface (so no TUI or docs door is owed), and the README is untouched.Two things I would do next:
- Add a case for the sandbox half of the issue title. An
interrupted: restartorclonesummary that mentions a sandbox oroperation not permittedshould also stay out of the push finding. The prefix check already covers it, so the test only needs to pin it. - Fold the test's
planthelper into a shared test helper, sincetest/sentinel.test.tshas a near-copy. Do the same for the sentinel's older text-sniffing (isOutageSummary) so there is one way to say 'not a push failure'.
- Add a case for the sandbox half of the issue title. An
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Sentinel: a run the provider cut short is not a push that failed (#18068) 8d845da
- Traces 1a: a trace index table, filled when a run or Talk turn ends and backfilled once off the serving thread (#18061) 35e4ee2
- Games: pin forge-velocity f7d5d4e72 (/forge words as you type, Yes and No to click, an answer shown once) (#18036) 0003ecb
- Merge pull request #18054 from sold/agent-rollback d6960b3
- Games: a new server's words are searched on Modrinth, not matched against five names (#18041) 31cdee4
- Lists answer next_cursor as a string, as openapi.json declares (full suite red, #18027) (#18040) ab67833
- Game box agent: put a container left as <12 hex>_<service> back to its service name (#18052) 99480aa
- Deploys never move a live name by surprise: DNS is asked before Build, a restore asks once more (#18030) 49e77a8
- Plugin config: a line too long to read stays as the file has it (#17782) 1c79353
- Games: a server the box no longer runs leaves its list (#18029) 492f6df
- A migration that makes a return to the image before unproven can be named (#17766) 63bef0b
- Game box: a new agent is on trial, and goes back to the one before if it does not check in baf09aa
- Talk API: pin a conversation, answer a held action yes or no, and redo a turn (#18012) 4513adb
- Asks: routes so a client can clear the whole queue (resume paused, snooze, group contents, dismiss all kinds) (#17966) 11275b0
- Merge pull request #18016 from sold/forge-fast b9491db
- Talk API: a person's sent files on each turn, and search inside turns (#18009) 0e5211b
- Merge commit '2b24ebd48bea0a43bd8236087ff986b3542c25d4' into HEAD cee6636
- GET /api/v1/repos/{owner}/{name}/commits reads `path`: only the commits that touched it (#18007) 2b24ebd
- Move in: bring all of GitHub and Vercel into the forge through one trusted flow (inventory → plan → paced copy → verify), read-only toward the sources; clean-up is a separate, later step (#18000) 6d7f17e
- A test that reads an /api/v1 answer disagreeing with openapi.json goes red (#18013) 23d6af8
The sentinel no longer counts a run the provider cut short as a push failure, so this issue's three example runs would not be filed again. I ran only the two sentinel test files (they pass) and bun x tsc --noEmit; the full suite and the dead-code, module-state and timed-job checks were not run here and are left to the forge's check on this push.
Cause. The summary on those runs reads interrupted: provider limit, resumes 05:10 UTC — no changes pushed: API Error: 402 …. The push finder in src/crew/sentinel.ts matches on the word "push", and "no changes pushed" contains it. Nothing failed at the push in those runs: the provider was out of credit and the clock resumes them.
Change.
isInterruptedSummaryinsrc/crew/interrupted.tschecks for theinterrupted:prefix thatinterruptedSummarywrites.- The push finder in
src/crew/sentinel.tsnow skips such runs. - A real
push failed: …summary, including one that names a network error, still counts. - New test
test/sentinel-interrupted.test.tsplants five interrupted runs and sees nopush:finding. It then plants five real push failures and sees the finding. I did not run it against the old code to confirm it fails there.
Not done.
- The 402 itself ("fewer max_tokens … can only afford 4000"). The runs resume once credit returns, and
src/runs/end_why.tsalready words a spent credit for people. Fixing credit or token limits is a separate issue. - Terminal and how-to doors. This changes the sentinel's filing logic only, with no page, action, API route or MCP tool, so no
src/tui/ordocs/features/change.
I reused no existing function. The gate notes my test's plant helper looks like the one in test/sentinel.test.ts; I left it separate because that one is private to its file.
To try it, run bun test test/sentinel-interrupted.test.ts test/sentinel-private.test.ts.
🤖 Generated with Claude Code
The sentinel no longer counts a run the provider cut short as a push failure, so this issue's three example runs would not be filed again. I ran only the two sentinel test files (they pass) and
bun x tsc --noEmit; the full suite and the dead-code, module-state and timed-job checks were not run here and are left to the forge's check on this push.Cause. The summary on those runs reads
interrupted: provider limit, resumes 05:10 UTC — no changes pushed: API Error: 402 …. The push finder insrc/crew/sentinel.tsmatches on the word "push", and "no changes pushed" contains it. Nothing failed at the push in those runs: the provider was out of credit and the clock resumes them.Change.
isInterruptedSummaryinsrc/crew/interrupted.tschecks for theinterrupted:prefix thatinterruptedSummarywrites.src/crew/sentinel.tsnow skips such runs.push failed: …summary, including one that names a network error, still counts.test/sentinel-interrupted.test.tsplants five interrupted runs and sees nopush:finding. It then plants five real push failures and sees the finding. I did not run it against the old code to confirm it fails there.Not done.
src/runs/end_why.tsalready words a spent credit for people. Fixing credit or token limits is a separate issue.src/tui/ordocs/features/change.I reused no existing function. The gate notes my test's
planthelper looks like the one intest/sentinel.test.ts; I left it separate because that one is private to its file.To try it, run
bun test test/sentinel-interrupted.test.ts test/sentinel-private.test.ts.🤖 Generated with Claude Code
Closes #18068