Repository navigation
Lead build step 2: the state tool learns the lead role (T266) - #123
Merged
Merged
Conversation
- run add <T> --role lead: one running lead run per task, at most 3 per project, none for an investigation; each refusal names the running leads. - taskFor(id, project, env): the task of a run id or a finding key, through the logbook check; undefined for an unknown id. For the hook's step 3. - The chat board shows the lead role instead of "?". - Default max_agents 3 -> 4, so one lead and its 3 children fit. - README usage guide, sage skill docs and tests updated. Closes #117 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The chief's decision on Q1. The refusal names the task's state. Other roles keep today's behaviour. Test T266-LEAD-STATE. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The chief's decision on Q2: a verified task takes a lead for its remaining cycles (#62, section 7). Concluded, merged and abandoned tasks are refused, and the refusal names the state. T266-LEAD-STATE covers both sides. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- F-T266-3: run add reads --role as the table stores it (cell() and lower case) before the lead checks, and refuses a role that is not a child role of roles.mjs or an investigation step. - F-T266-2: taskFor throws the logbook check's refusal when tasks.tsv is lost but other tables have rows (hasRows, shared with ready()). - F-T266-1: the design page gives the default cap of 4. - T266-LEAD-RACE: separate processes keep the lead limits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
Repair round 1 (3c082a8):
npm run build, check and test: 862 tests, 0 fail, fakes first on PATH. |
CI saw 130 writes in 3,130 tries, so the 3,000-refusal ceiling failed a correct run. The ceiling now only stops a run where no write can pass. The check that the victim file is unchanged stays. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
CI on 3c082a8 failed in an existing test, F-T42-2: 300 config writes needed fewer than 3,000 refusals, and CI got 130 writes in 3,130 tries. The test raced against a process that swaps config.json, so its pass depended on scheduling. c53be30 raises only the refusal ceiling, to 200,000. The check that the victim file stays unchanged is the same. CI on c53be30 passes. |
This was referenced Oct 12, 2026
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.
Closes #117
Step 2 of the lead build. The state tool records lead runs and holds their limits. The hook (step 3, #118) and the lead agent (step 4, #119) are not in this PR.
Items and their tests (scripts/sage.test.mjs)
The default change also updates the default pins in sage.test.mjs and three cap tests in sage-hook.test.mjs (now 4 of 5 spawns pass).
Docs: README rule row, the default in the nested-spawn rule, and a What's new entry; the sage skill's run add and config rows.
Checks
npm run build, npm run check and npm test pass: 859 tests, 0 fail. Tests ran with a fake ps, pgrep and kill first on PATH; the fakes logged no call.
Not verified live
🤖 Generated with Claude Code