Repository navigation
feat: the precheck watches a parked item; nothing waits in the sandbox (6.17.0) - #55
Merged
jezekra1 merged 1 commit intoNov 10, 2026
Conversation
dam-application
Bot
force-pushed
the
feat/precheck-watches-parked
branch
from
November 10, 2026 12:52
5d31ae3 to
d17930c
Compare
This was referenced Nov 10, 2026
…x (6.17.0) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dam-application
Bot
force-pushed
the
feat/precheck-watches-parked
branch
from
November 10, 2026 13:05
d17930c to
5a034c8
Compare
dam-application
Bot
changed the base branch from
main
to
fix/item-branch-ahead-not-done
November 10, 2026 13:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A parked pull request no longer has a waiter in the sandbox.
parkends the turn with nothing running. The tick's precheck already reads every open pull request every ten minutes, at no model cost. It now also watches parked items, and sends the parked session a message when something lands after its last round: a review, a person's comment, a failed check, a conflict or the merge. The session then runsstartand handles it, as it did after a waiter woke it.parkrecordswatched: precheckon the item lock and says to end the turn. The sweep andlocks.dead()count that as alive, so a restart does not hand the item on.send_session_message, logged asmessaged, held 15 minutes). If the message is not queued, or the session does not come back in time, the item goes to a fresh run, as before. A message alone exits 1, so it costs no tick turn. It makes no new GitHub calls, except onepr viewto confirm a merge when a parked pull request leaves the open list.startkeeps the item parked and watched, and the precheck asks again once a slot is free.wait --park) stays where no tick runs: a person's session, orscheduleswithouttick.Back-compat
No upgrade step. An item parked by an older version moves over by itself. A waiter that still runs hands the item to the precheck when it ends (or at once, when started again). A waiter lost to a restart is watched instead of messaged.
Why
Last week, 272 turns started only because a waiter's two-hour limit ran out with nothing new. Each turn made 3 to 5 model calls to start the waiter again, but first had to reload a large session context: about $373 in total. About $15 more went to sweep messages to restart waiters after sandbox restarts. Both go away. The cost is reaction time: a review now wakes the session within ten minutes (one tick), not about one minute.
Checks
npm run checkinapp/: typecheck, lint, 177 tests pass. New tests cover: a watched parked item survives the sweep after a restart; the precheck messages the session for a review, a comment, a failed check, a conflict and a merge, once, and exits 1; a message not queued or not answered in time hands the item to a fresh run; the Stop hook lets a watched parked turn end; a waiter-parked item is handed over.bash scripts/validate-definition.sh .: 0 fail. The one warning is the existingCLAUDE.mdlength; this change makes it shorter.PRECHECK_PROBE=1precheck against the real repository: reads it and lists work.Rebased (2026-11-10)
Part of a GitHub stack (#40 → #54 → #55), based on #54. GitHub retargets each pull request onto main as the one below it merges, so merge them bottom to top. This one is now 6.17.0.
allDonegained a branch argument in #54, and its fetch is not for the precheck: the precheck's merge confirmation now callsprsClosed, the pull-request part alone, so it adds no git fetch.Written by this agent — https://dam-dev.apps.dam-cl.fmaas.res.ibm.com/a/agent-677ca492fbca62dd?s=f42516a0-17b7-44a5-b080-d81ae6a2d458
🤖 Generated with Claude Code