Repository navigation
Task waits: a task waits for other tasks of its logbook (T336) - #273
Merged
Merged
Conversation
… merge check (T336) A task may wait for other tasks of its own logbook: task add --waits and task <T> set waits= (waits= or none clears). The column goes through the ADDED rule, so an older logbook reads it as empty and an older sage refuses to write a logbook that has it. A wait is met when its task is merged or concluded; an abandoned task (or a lost row) never meets it, and the refusal names the fix. While a wait is unmet, run add refuses lead, implementer, investigate and arena-judge runs (also native run creation, which shares runFrame), task set refuses state=building, and the merge check refuses the task with each unmet task and its state. A wait on a task of the same merge is met when that task passes too. Designer, pe, review and QA runs go on. waits refuses a malformed id, a duplicate, the task itself, more than 20, an unknown task and a loop, which it names. Each change writes a decisions row. task <T> and status show the waits and which are unmet. The logbook tables move to logbook-fields.mjs, and the hook's list of logbook file names comes from the same source (LOGBOOK_FILES, K2): it now also covers observations.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ry (T336) The rules table and the what's-new list describe waits; the Claude skill's command table and the Codex command reference give task add --waits and task set waits=. The dictionary's task line and the waits-for phrase no longer say 'coming with programs' for waits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts: the logbook-fields import in state.mjs keeps both AGENT_CAPS and countOf (T308) and TABLES (T336); the README what's-new list keeps both entries. The plugin copies are rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ame-PR only, a parsed waits cell (T336, R1131) - R1126-1: an abandoned or lost task never meets a wait, also with clean verdicts in the same merge. - R1124-2: the merge check keeps each task's answer (with a loop guard), so dense waits take linear time. - R1128-2: a wait is met in the same merge only by a task of the same PR (--pr for both, or the same recorded PR). - R1128-3: every reader parses the waits cell as a write does; other text is flagged once and never printed. - R1130-1: the README says to update sage in every open session before waits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nmet, teach a pair on one PR (R1140, R1139, R1138) - The merge check's refusal names "T4 is not on PR 9 ... set pr=9" when the waiting task is not on its wait's PR (R1140-1). - task set state=merged refuses while a wait is unmet, with the wait and the fix (R1139-1). - A test that a hand-edited loop of waits on one PR never passes (R1138-1). - README: the update command and the restart before waits (R1140-2), and how to merge a pair on one PR (R1140-3). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 19, 2026
…t, a narrower not-on-PR hint, the pair is merged by the owner (R1155, R1153, R1154, R1157) - A move to concluded refuses while a wait is unmet, as the move to merged does. - task set waits=<ids> refuses on a merged, concluded or abandoned task; waits= still clears. - The not-on-PR hint names a PR only for a waited task of this merge check whose PR cell is digits. - Exact-text tests kill the M2, M5 and M7 mutants of the hint and samePr. - README: the update-and-restart warning first, no "no build of its own" option, and autopilot does not merge a pair on one PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # README.md
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.
PR 1 of programs (T336): a task can wait for other tasks of the same logbook. A waiting task cannot start build work or merge until each task it waits for is merged or concluded.
waitscolumn through the ADDED ruletasks.waits(ids joined by commas); old logbooks read it as empty and get it at the next writeready()refusal, unchangedtask add --waits,task <T> set waits=(waits=/noneclears), decisions rowwaitsValue,waitsDecisionwaitsValueunmetWaits,waitFixrun addrefuses lead, implementer, investigate and arena-judge runs; designer, pe, review and QA runs go on;state=buildingrefusedrunFrame(shared with Codex native run creation),planTaskChangesmergeCheckstatusandtask <T>show waits and the unmet oneswaitsText, statuswaitslineLOGBOOK_FILESin logbook-fields.mjs; the hook reads it from sage-core; it now also covers observations.jsonThe board shows nothing new (PR 3 adds that). Not in scope: programs, pilot waits, waits across logbooks.
🤖 Generated with Claude Code