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.
Adds the idea-sharpening step missing between a fuzzy request and a crewmate brief. /grill interviews the captain one question at a time and writes a short spec to data/spec-<project>-<slug>.md: problem, solution shape, vocabulary, scope boundary, open questions, constraints. It is a planning front-end and nothing more. It creates no branch, dispatches nothing, and writes only its spec file under data/. The spec feeds the existing brief and dispatch path rather than becoming a parallel record of work, so the backlog stays the only tracker. Deliberately small: a skill file, a conversation, and a doc in data/, the same shape /bearings and /stow already use. It files no backlog item and needs no new state, because the sharpen-then-decompose path is meant to run inside one context window. The spec filename carries the project because two projects can easily want the same slug, and an unnamespaced spec would silently overwrite another project's, unrecoverably, since data/ is gitignored. The trigger offers rather than auto-starts: an interview nobody asked for is the main way this would become annoying, so it loads on an explicit invocation and otherwise proposes in one line. It also names when it must NOT fire - already-sharp requests, bugs, scout questions, trivial changes. The interview stays with firstmate. Prime directive 4 makes firstmate the captain's only point of contact, so grilling never routes to a secondmate even when one's scope covers the work; the resulting work routes normally. AGENTS.md section 7 gains the optional sharpening path before dispatch.
This fleet runs a customized fork, so advancing a home straight from origin would strip the fleet's private adaptations. Upstream now enters only by being merged into fork/main, and homes advance from the fork. bin/fm-update.sh: - Ingest upstream first: merge origin/<default> into fork/<default> and push it to the fork. The merge is built with merge-tree/commit-tree plumbing rather than a checkout, so no working tree is touched and a conflicting upstream can never leave a home stranded mid-merge. - A conflicting ingest STOPS the run: it names each conflicted path, pushes nothing, advances nothing, and exits 1. Never forced. - Advance every home (main home's branch + live secondmate homes) to fork/<default> instead of origin/<default>. - Secondmate discovery, the reread nudge, the projects/ boundary, and fast-forward-only safety for the advances are unchanged. bin/fm-ff-lib.sh: - Add the "fork" base mode alongside "origin" and <commit-ish>. The remote base modes are now named after the remote they track, so one case arm serves both and the contract is stated once. - A target without a fork remote is skipped, never advanced from origin as a fallback. - Generalize fetch_once to take a remote, deduping per (object store, remote) so worktrees still share a single fetch. Docs (AGENTS.md section 12, the updatefirstmate skill, README, docs/architecture.md, docs/scripts.md) describe the two-hop model and carry the conflict-stop as a captain-facing decision. tests/fm-update.test.sh: the fixture is now a real fork world (origin, fork carrying a private adaptation, and a home tracking the fork). Covers the ingest, the fork-based advance with adaptations intact, the conflict stop, fork-history preservation, and the no-fork-remote skip.
Secondmate sessions launch with Claude Code's native predicted-next-prompt suggestion enabled, so the operator sees the soft-text next-prompt hint in a secondmate window exactly as in their own session. Ship/scout crewmates keep it disabled: an autonomous worker has no reader to help, so the ghost text is pure classifier risk. Safety for the enabled path rests on the existing fleet-wide fm_composer_strip_ghost extractor, which every secondmate-reachable composer read already routes through. Refuse --secondmate on the plain-screen backends (orca, cmux, zellij) that cannot strip ghost styling, collapsing the three refusals into one guard, so no secondmate can land on a backend without the extractor. Docs and tests updated.
Fork ingest: resolved 8 conflicts (AGENTS.md, ci.yml, fm-bootstrap.sh, fm-bearings-snapshot.sh, fm-fleet-snapshot.sh, bearings/SKILL.md, configuration.md, zellij-backend.md). Preserved fork adaptations (dispatch holds, /grill, origin->fork->homes self-update, secondmate native prompt suggestions + zellij secondmate refusal) while adopting upstream's instruction-ownership compression and #593/#640 changes. See data/fm-fork-ingest-r3/report.md for per-file rationale.
Fold a captain-approved chat-conveyance discipline into section 9's escalation etiquette: every captain-facing message should close on the one decision, blocker, or next step it is asking for rather than a recap of what was just done.
Author
|
Closing: this PR was auto-targeted at the upstream parent (kunchenguid/firstmate) by mistake. This is a fork; the change is reopened correctly against LuckyB-UF/firstmate:main as https://github.com/LuckyB-UF/firstmate/pull/4 |
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.
Intent
Fold a captain-approved chat-conveyance discipline into AGENTS.md section 9 (Escalation and captain etiquette): add exactly ONE new sentence immediately after 'Lead directly with concrete evidence...' reading 'End on the one decision, blocker, or next step the message is asking for, not a recap of what was just done.' Deliberately minimal, additive, single-sentence documentation change; no other line reworded, no other section touched; one sentence per line, plain dash only. CLAUDE.md is a symlink to AGENTS.md. This is the firstmate FORK; the PR MUST target LuckyB-UF/firstmate:main, never upstream kunchenguid. The rebase step is being skipped by captain decision because the branch is correctly based on fork/main and no-mistakes compares against origin/main (upstream parent) which lacks the fork's 11 adaptations. The test step is being skipped by captain decision: 3 pre-existing environmental test failures (fm-backend-orca file-exists, fm-dispatch-select missing quota-axi tool, fm-tangle-guard isolation) reproduce on clean fork/main with none of these changes present, a one-sentence documentation diff cannot cause spawn/quota/isolation failures, and the no-mistakes auto-fix agent could not even launch (E2BIG 'argument list too long').
What Changed
main, so this etiquette sentence is the only change it introduces relative to the merge target. The larger diff surfaced by gating (dispatch-holds,/grillskill, self-update origin→fork→homes rework, WSL worktree-race fix) is fork/main history already present on the target and appears only because gating compares against upstreamorigin/main; the rebase step was intentionally skipped to avoid bundling that unrelated work.Risk Assessment
Testing
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
⏭️ **Rebase** - skipped
.agents/skills/bearings/SKILL.md- branch carries 11 commit(s) that exist on your local main branch but were never pushed to origin/main; rebasing would bundle this unrelated work (31 file(s)) into the PR:Push main to origin, or rebase your branch onto origin/main, before gating.
bin/fm-update.sh:141- In ingest_upstream (bin/fm-update.sh ~line 141),git update-ref refs/remotes/$fk $commitruns after the successful push but is not guarded. Underset -eu, if update-ref fails, the script aborts immediately — after the merge was already pushed to fork, but before printing theupstream: merged ...status line or thereread-firstmate/nudge-secondmatesaction lines. The caller (the /updatefirstmate skill) then gets a raw non-zero exit with no parseable summary, unlike the designed conflict/failure path which prints a structuredupstream: failed:line. It self-heals on re-run (the fork tip is already advanced, so the next run reports 'already merged'), so severity is low.tests/fm-spawn-worktree-race.test.sh:10- The header/comment in the new regression test claims the fix 'requires one confirmed sighting of PROJ_ABS_REAL before a later divergence is trusted as the real move.' The actual fm-spawn.sh implementation does not track a prior PROJ_ABS_REAL sighting; instead spawn_worktree_ok validates that the polled path resolves to a genuine git-worktree top distinct from PROJ_ABS_REAL. The test still passes correctly against the real implementation, but the comment describes a mechanism that isn't the one shipped, which could mislead a future maintainer.bin/fm-spawn.sh:336- Enabling native claude prompt suggestions for secondmate panes (fm-spawn.sh launch_template) means plain capture paths (fm-peek and other human/LLM-facing reads) can render an idle secondmate's predicted-next-prompt as apparent typed input, since only the boolean detector strips ghost styling. The author documented this deliberately in harness-adapters/SKILL.md, bounding it via the AGENTS.md rule against reading a secondmate's chat and the still-processing post-spawn trust peek. Flagging only so the tradeoff is visible in review; it is an intentional, documented decision.⏭️ **Test** - skipped
Step was skipped.
✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.