Skip to content

Task waits: a task waits for other tasks of its logbook (T336) - #273

Merged
erickb336 merged 7 commits into
mainfrom
sage/t336-task-waits
Oct 19, 2026
Merged

erickb336 merged 7 commits into
mainfrom
sage/t336-task-waits

Conversation

@erickb336

Copy link
Copy Markdown
Owner

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.

Rule Change Tests (scripts/)
waits column through the ADDED rule tasks.waits (ids joined by commas); old logbooks read it as empty and get it at the next write sage.test "T336: an older logbook gets the waits column…"; unknown-columns now uses later columns
An older sage refuses to write it existing ready() refusal, unchanged shown by hand with main's core (report evidence)
task add --waits, task <T> set waits= (waits=/none clears), decisions row waitsValue, waitsDecision "T336: task add --waits and task set waits=…"
Refusals: malformed id, duplicate, the task itself, over 20, unknown task, loop (direct and longer) waitsValue "T336: waits refuses…"
Met: merged or concluded. Never met: abandoned or lost row (the refusal names the fix) unmetWaits, waitFix "T336: a wait is met only when…"
run add refuses lead, implementer, investigate and arena-judge runs; designer, pe, review and QA runs go on; state=building refused runFrame (shared with Codex native run creation), planTaskChanges "T336: a task with an unmet wait takes no lead…"; codex-server "T336: core native run creation…"
Merge check refuses an unmet wait; same-merge (same PR or SHA) wait met when that task passes; held stays first mergeCheck "T336: the merge check refuses…"
status and task <T> show waits and the unmet ones waitsText, status waits line the tests above
K2: the hook's logbook file names come from one source LOGBOOK_FILES in logbook-fields.mjs; the hook reads it from sage-core; it now also covers observations.json sage-hook-tests "K2 (T336)…"

The board shows nothing new (PR 3 adds that). Not in scope: programs, pilot waits, waits across logbooks.

🤖 Generated with Claude Code

erickb336 and others added 5 commits October 19, 2026 00:34
… 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]>
erickb336 and others added 2 commits October 19, 2026 05:50
…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]>
@erickb336
erickb336 merged commit 81191c0 into main Oct 19, 2026
1 check passed
@erickb336
erickb336 deleted the sage/t336-task-waits branch October 19, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant