Repository navigation
Conversation
AGENTS.md section 10 has prescribed `tasks-axi hold <id> --kind captain` for a captain-gated thread since holds were documented, but firstmate's own rules and tooling never caught up, so a held item has been mishandled ever since: - The standing queue rule and its three restatements said a queued item gets dispatched once its blocker is gone and its date gate has arrived, with no mention of holds. The tasks-axi path is saved by `tasks-axi ready`, which excludes held work, but the manual hand-edit path had nothing to save it. - fm-teardown.sh's manual-backend reminder is what firstmate reads at the exact moment it re-scans Queued, and it was hold-blind for the same reason. - fm-fleet-snapshot.sh stripped only repo/kind/priority/since/merged/reported/ done, so a held item baked its hold markers into its title. Because the strip is anchored at end of line, the trailing hold paren also blocked the since and repo parens, and no held field was exposed at all. fm-fleet-view could not tell a held item from dispatchable work. - Section 10's verb map had no hold/unhold entry and no hand-edit marker form. `tasks-axi start` moves a held item anyway and carries its marker into In flight, so the checks are stated where the reader acts rather than left to the verb to refuse. Also corrects the tasks-axi compatibility contract at its declared owner. docs/configuration.md said the floor was 0.1.1 while, in the same sentence, requiring the multi-ID `mv` probe introduced in 0.2.2. That probe is mandatory, so the effective floor has always been 0.2.2. AGENTS.md and fm-tasks-axi-lib.sh now point at the owner instead of restating a number that can drift, and fm-bootstrap.sh's header drops the same stale claim. Probe behavior is unchanged; the fail-closed version-parse precondition is now documented rather than dropped. Snapshot behavior is covered by a test that fails without the parser fix.
Three defects in the hold parsing, two of them introduced by this branch's own earlier rounds. The dedicated comma-preserving hold_reason capture only matched the paren form, so a hand-written comma-form hold parsed as held: false and rendered a Gate of "-", i.e. dispatchable. That is the one direction this must never fail, and it regressed a case that worked earlier on the branch. Hold detection is now separate from reason extraction and keys on the hold: key in either form, so an unreadable reason can no longer downgrade an item to dispatchable. The reason still prefers the paren form, which carries commas verbatim because tasks-axi forbids ")" in --reason; the comma form is hand-written only and inherently ambiguous for free text, so it truncates at the first comma rather than guessing. tasks-axi hold also accepts --until, whose (hold-until: DATE) marker was unhandled: because the metadata strip is end-anchored, an unstripped trailing marker also stranded the earlier repo and since parens in the title. Known gap, deliberately not fixed here: --until means "inactive on and after that date", but an expired hold is still reported held. That fails closed, so it over-reports rather than dispatching held work.
This was referenced Jul 20, 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.
What and why
AGENTS.mdhas prescribedtasks-axi hold <id> --reason "..." --kind captainfor a captain-gated thread since holds were documented, but nothing else in firstmate knew holds existed. Held items have been mishandled ever since.This is a proposal, opened from a fork for you to review. Nothing here is urgent and nothing is merged.
The bug
Reproduced on a clean
maincheckout before any fix, with a held item in a scratch backlog:Four surfaces were hold-blind:
tasks-axi ready, which excludes held work by default. The manual hand-edit path had nothing to save it.fm-teardown.sh's manual-backend reminder is what firstmate reads at the exact moment it re-scans Queued, and it was hold-blind for the same reason.fm-fleet-snapshot.shstripped onlyrepo|kind|priority|since|merged|reported|done, so a held item baked its hold markers into its title. Because that strip is end-anchored, the trailing hold paren also blocked thesinceandrepoparens, and noheldfield was exposed at all.fm-fleet-viewcould not tell a held item from dispatchable work.fm-bearings-snapshot.sh'sgatesprojection built rows fromblocked_byonly, so a held item with no blocker read as ungated next work in the captain's morning brief.Section 10's verb map also had no
hold/unholdentry and no hand-edit marker form.Design notes worth your eye
Hold detection fails closed.
tasks-axi hold --reasonforbids), so the paren form carries a comma-bearing reason verbatim. The comma metadata form is hand-written only and is inherently ambiguous for free text. Rather than guess, detection keys on thehold:key in either form and reason extraction is separate, so an unreadable reason can never downgrade an item to dispatchable. Reporting a held item as dispatchable is the one error this must not make.tasks-axi startdoes not refuse a held item. It moves it to In flight carrying the hold marker, so the checks are stated where the reader acts rather than left to the verb.The compatibility contract is corrected at its declared owner.
docs/configuration.mdclaimed a 0.1.1 floor while, in the same sentence, requiring the multi-IDmvprobe introduced in 0.2.2. That probe is mandatory, so the effective floor has always been 0.2.2.AGENTS.mdandfm-tasks-axi-lib.shnow point at the owner instead of restating a number that drifts. Probe behavior is unchanged; only its description, plus the previously undocumented fail-closed version-parse precondition.Known gaps, deliberately not fixed here
This is not a clean sweep, and I would rather say so than imply otherwise.
tasks-axi startcarries a hold marker into In flight and the snapshot records it correctly, but bothfm-fleet-view's In Flight table and bearings'in_flightprojection read task metadata rather than backlog records, so the hold shows in--jsononly.hold-untilstill reports held.--untilmeans "inactive on and after that date", but the parser does not compare dates. This fails closed: it over-reports a hold rather than dispatching held work.Testing
tests/fm-fleet-snapshot-view.test.shcovers hold parsing, comma preservation, fail-closed comma-form detection, andhold-until. Each assertion was verified to fail without its fix. Snapshot suite 14 ok, bearings suite 31 ok; CI's pinned counts updated to match.