Repository navigation
scripts: detached start, restart, and problem cases as JSON - #338
Merged
Merged
Conversation
From the #302 retro. dev-branch-servers.sh start --detach returns once the servers are up and leaves them running, so an agent needn't poll a foreground start; restart brings the branch database up to migrations written since the start (it waits for the old start to exit, which would otherwise stop the new servers on its way out). problem-text.sh --json prints every case as judge-local.sh --cases reads them. CLAUDE.md and the restate-problem skill point at all three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
From the #302 retro: three script changes so an agent restating problems stops working around its tools.
restartwaits for the old start process (pid now in<state>/start.pid): otherwise it can see its apps gone before the stop flag and stop everything on its way out, the new servers included.CLAUDE.md and the
restate-problemskill point at all three, replacing the hand-writtenpsql … json_aggexport and the "restart the servers" workaround #334 documented.Evidence
headand waited ~10 min; after V313 moved a Slug,judge-local.shfailed by either Slug until a manual stop/start.After:
start --detachfrom a plain tool call returned in 26 s;/api/healthansweredUPafter the call ended.V999__…sqladded,restartreturned in 23 s with the databaseat V999, one start process left.problem-text.sh pick-charging-start --json > cases.json→judge-local.sh pick-charging-start --cases cases.json: 10 cases, ACCEPTED.dev-branch-servers.test.sh(detached start up / died,restartandstart --detachrefused in the main checkout, unknownstartoption) andproblem-text.test.sh(--jsonquery and output, unknown slug, unknown option); script tests and shellcheck pass.Merge Danger
Door: two-way
Blast Radius: dev scripts
Only local development tooling and agent docs;
startwith no option behaves as before.🤖 Generated with Claude Code