Skip to content

feat(bin): resolve a per-run no-mistakes lint skip at task intake - #22

Merged
jredgard merged 6 commits into
mainfrom
fm/fm-nm-skip-lint-intake
Oct 3, 2026
Merged

jredgard merged 6 commits into
mainfrom
fm/fm-nm-skip-lint-intake

Conversation

@jredgard

@jredgard jredgard commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Intent

also do the lint skip per run by firstmate.

On the lint row of the stage table in the same review: set to zero token path but also this is already enforced by the ci/cd at ado. and we have lint rules already built into repo.

Context the ask refers to (no-mistakes outline review, 2026-10-03): the gate's lint step on Mosaiq-line repositories runs the configured commands.lint, a dotnet Release build that is already token-free but costs the build's wall time on every run, while the Azure DevOps PR validation enforces the same Release build with warnings-as-errors and the repository's own analyzers. The agreed answer is to skip the lint step per run, decided by firstmate at intake for repositories whose CI build is the lint gate, and never by removing commands.lint from a repository config, because an empty lint command makes the gate run an agent lint pass that costs tokens. The accepted trade-off: a compile error then surfaces in the Test step's own build or at CI, where the repair is an agent round instead of a free local rerun; the lifetime count of lint-fix turns on this machine is 4.

What Changed

  • Added an optional nmskip=lint registry token. fm-project-mode.sh --nm-skip <project> reads it and prints it, or prints an empty line when the token is absent. Any value other than lint is refused with exit status 3. The shared fm_nm_skip_valid check in fm-dod-lib.sh allows only lint or an empty value, so no other pipeline step can be skipped at intake.
  • fm-brief.sh, fm-spawn.sh, and fm-promote.sh accept an explicit --nm-skip lint only for no-mistakes ship tasks. The value is passed into fm_dod_block, so the delivery contract records skip=lint and the worker is told to pass --skip lint on every no-mistakes axi run, including reattaches. On Gerrit this becomes --skip push,pr,ci,lint.
  • Spawn and promotion record nm_skip= in ship task metadata. Spawn refuses when the brief's skip= field doesn't match --nm-skip, and relaunch reuses the recorded value; passing --nm-skip with --relaunch is refused. Spawn prints a notice, without refusing, when a no-mistakes task's skip differs from the registry. The AGENTS.md intake rules, the project-management skill, docs/configuration.md, docs/scripts.md and the Gerrit integration doc now describe the token, with tests covering each script.

🤖 Generated with Claude Code

Risk Assessment

⚠️ Medium: The skip contract is threaded consistently through the registry, brief, spawn, promotion and relaunch, with closed-set validation and byte-identical no-skip output. But it accepts test/document skips the intent did not ask for, and it emits false deviation notices for non-no-mistakes ships, so it needs a scope decision and a small fix.

Testing

I drove the real firstmate scripts in a disposable lab home made with bin/fm-lab-home.sh. Spawns ran on a private tmux -L fm-lab server, with treehouse rooted inside the lab and a harmless sleep raw launch command standing in for the crewmate. Covered: registry parsing, brief rendering, ship spawns, relaunch and scout promotion, each with happy-path and adversarial cases. All scenarios passed, and briefs without a skip are byte-identical to the base commit. I also ran tests/fm-dod-lib.test.sh, which passed. The lab, task temp dirs and base archive were all removed afterwards. CLI transcripts are saved as evidence; there is no UI surface to screenshot. One part was not exercised live: an actual no-mistakes run honoring --skip lint. The gate phase forbids invoking axi run. Upstream source confirms lint is a valid skip step and that --skip is not refused when reattaching to an active run.

  • Live validation: ✅ go - 12 of 13 scenarios driven live against the product
Scenario Result Live Evidence
Firstmate queries a registry entry [no-mistakes nmskip=lint] with fm-project-mode.sh --nm-skip and gets lint. Plain, empty-token and unregistered projects return an empty line, and the default/f… ✅ pass live 01-project-mode-nm-skip.txt
Adversarial: a registry entry nmskip=test or nmskip=lint,test is refused with exit 3 and an actionable 'use lint only' error on every query form (default, --raw, --forge, --branch-prefix, --nm-ski… ✅ pass live 01-project-mode-nm-skip.txt
fm-brief.sh --mode no-mistakes --nm-skip lint writes Delivery contract: mode=no-mistakes skip=lint and tells the worker to pass --skip lint on every axi run, including reattach ✅ pass live 02-brief-nm-skip.txt
On a forge=gerrit project, --nm-skip lint gives the worker the merged --skip push,pr,ci,lint and the contract forge=gerrit shape=squash skip=lint ✅ pass live 02-brief-nm-skip.txt; 05-promote-nm-skip-live.txt
Adversarial: brief refuses --nm-skip values test/document/review/push/lint,test, and refuses --nm-skip lint with direct-PR, local-only or --scout; no brief is written ✅ pass live 02-brief-nm-skip.txt
Briefs scaffolded without --nm-skip are byte-identical to the pre-change base, so non-skip tasks keep the same worker contract ✅ pass live 03-no-skip-brief-byte-identical-vs-base.txt
A real ship spawn whose brief says skip=lint but which omits --nm-skip is refused before any metadata or window is created ✅ pass live 04-spawn-nm-skip-live.txt section 1
A real ship spawn with --nm-skip lint on an nmskip=lint project launches, records nm_skip=lint in state/<id>.meta, prints no deviation notice, and the worker's launch-brief carries --skip lint ✅ pass live 04-spawn-nm-skip-live.txt section 2
Registry deviation notice scoping: a no-mistakes task with an explicit empty skip on an nmskip=lint project prints the notice and continues. Direct-PR tasks on nmskip=lint and no-mistakes-prod-only+nm… ✅ pass live 04-spawn-nm-skip-live.txt sections 3 and 6
Adversarial spawn guards: --nm-skip test, --nm-skip lint,test, direct-PR+--nm-skip, scout+--nm-skip and --relaunch --nm-skip are each refused, with no metadata written ✅ pass live 04-spawn-nm-skip-live.txt section 4
Relaunching a stopped nm_skip=lint crewmate keeps nm_skip=lint in metadata (only spawn_gen changes) and in the regenerated launch-brief. Tampered metadata (nm_skip=test, or nm_skip=lint on a dir… ✅ pass live 04-spawn-nm-skip-live.txt sections 5 and 7
Promoting a real scout with --mode no-mistakes --nm-skip lint writes nm_skip=lint metadata and Gerrit ship instructions with --skip push,pr,ci,lint. Invalid or out-of-scope --nm-skip promotions… ✅ pass live 05-promote-nm-skip-live.txt
A worker following the brief runs no-mistakes axi run --skip lint and the gate's lint step (commands.lint) is skipped for that run, while reattaching with the same flag keeps driving the active run ⏸️ untested no Starting or reattaching a real no-mistakes pipeline needs no-mistakes axi run. This gate phase explicitly forbids invoking it, and nested pipeline control is refused inside an active run. Upstream s…
Evidence: Registry --nm-skip resolution and invalid-token refusals (exit 3 on every query)

Source: Registry --nm-skip resolution and invalid-token refusals (exit 3 on every query)

$ bin/fm-project-mode.sh --nm-skip mosaiq
lint
[exit 0]
$ bin/fm-project-mode.sh --nm-skip gerritproj
lint
[exit 0]
$ bin/fm-project-mode.sh --nm-skip plain
<empty line>
[exit 0]
$ bin/fm-project-mode.sh --nm-skip prodonly
lint
[exit 0]
$ bin/fm-project-mode.sh --nm-skip unregistered
warn: project "unregistered" not in registry; defaulting to no-mistakes off
<empty line>
[exit 0]
$ bin/fm-project-mode.sh mosaiq
no-mistakes off
[exit 0]
$ bin/fm-project-mode.sh --forge gerritproj
gerrit
[exit 0]
$ bin/fm-project-mode.sh plain
no-mistakes off
[exit 0]
$ bin/fm-project-mode.sh badtest
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badtest (correct nmskip=): invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --raw badtest
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badtest (correct nmskip=): invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --forge badtest
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badtest (correct nmskip=): invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --branch-prefix badtest
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badtest (correct nmskip=): invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --nm-skip badtest
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badtest (correct nmskip=): invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh badlist
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badlist (correct nmskip=): invalid no-mistakes skip 'lint,test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --raw badlist
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badlist (correct nmskip=): invalid no-mistakes skip 'lint,test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --forge badlist
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badlist (correct nmskip=): invalid no-mistakes skip 'lint,test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --branch-prefix badlist
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badlist (correct nmskip=): invalid no-mistakes skip 'lint,test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
$ bin/fm-project-mode.sh --nm-skip badlist
error: /tmp/fm-lab.Pr8plu/data/projects.md entry for badlist (correct nmskip=): invalid no-mistakes skip 'lint,test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 3]
Evidence: fm-brief --nm-skip lint contract lines (plain and Gerrit merged skip) and refusals

Source: fm-brief --nm-skip lint contract lines (plain and Gerrit merged skip) and refusals

$ bin/fm-brief.sh nmlint mosaiq --mode no-mistakes --nm-skip lint
scaffolded: /tmp/fm-lab.Pr8plu/data/nmlint/brief.md (ship, mode=no-mistakes; replace {TASK} and {FIRSTMATE_SPEC})
[exit 0]
--- relevant lines of generated brief data/nmlint/brief.md:
67:     Only after ruling out socket refusal, if the run is still running or fixing, reattach and keep
92:Delivery contract: mode=no-mistakes skip=lint
99:Pass `--skip lint` on every `no-mistakes axi run` for this task, and skip nothing else.
121:Whenever a drive call returns without a gate or an outcome - its own wait elapsed, or it was killed or timed out - reattach at once by re-running `no-mistakes axi run` with `--skip lint`, backgrounded the same way; once checks are green it returns `checks-passed` immediately, and if it refuses because no run is active, read the finished outcome from `no-mistakes axi status`.
$ bin/fm-brief.sh nmgerrit gerritproj --mode no-mistakes --nm-skip lint --forge gerrit --shape squash
scaffolded: /tmp/fm-lab.Pr8plu/data/nmgerrit/brief.md (ship, mode=no-mistakes forge=gerrit shape=squash; replace {TASK} and {FIRSTMATE_SPEC})
[exit 0]
--- relevant lines of generated brief data/nmgerrit/brief.md:
67:     Only after ruling out socket refusal, if the run is still running or fixing, reattach and keep
92:Delivery contract: mode=no-mistakes forge=gerrit shape=squash skip=lint
95:The publication steps `push,pr,ci` are skipped alongside the intake-resolved steps; skipping Gerrit publication in the pipeline is a supported outcome, not a degraded one.
101:Pass `--skip push,pr,ci,lint` on every `no-mistakes axi run` for this task, and skip nothing else.
122:Whenever a drive call returns without a gate or an outcome - its own wait elapsed, or it was killed or timed out - reattach at once by re-running `no-mistakes axi run` with `--skip push,pr,ci,lint`, backgrounded the same way; if it refuses because no run is active, read the finished outcome from `no-mistakes axi status`.
$ bin/fm-brief.sh nmnone plain --mode no-mistakes
scaffolded: /tmp/fm-lab.Pr8plu/data/nmnone/brief.md (ship, mode=no-mistakes; replace {TASK} and {FIRSTMATE_SPEC})
[exit 0]
--- relevant lines of data/nmnone/brief.md:
67:     Only after ruling out socket refusal, if the run is still running or fixing, reattach and keep
92:Delivery contract: mode=no-mistakes
120:Whenever a drive call returns without a gate or an outcome - its own wait elapsed, or it was killed or timed out - reattach at once by re-running `no-mistakes axi run` without flags, backgrounded the same way; once checks are green it returns `checks-passed` immediately, and if it refuses because no run is active, read the finished outcome from `no-mistakes axi status`.
=== adversarial refusals ===
$ bin/fm-brief.sh bad-test mosaiq --mode no-mistakes --nm-skip test
error: fm-brief.sh --nm-skip: invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 1]
$ bin/fm-brief.sh bad-document mosaiq --mode no-mistakes --nm-skip document
error: fm-brief.sh --nm-skip: invalid no-mistakes skip 'document'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 1]
$ bin/fm-brief.sh bad-review mosaiq --mode no-mistakes --nm-skip review
error: fm-brief.sh --nm-skip: invalid no-mistakes skip 'review'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 1]
$ bin/fm-brief.sh bad-lint,test mosaiq --mode no-mistakes --nm-skip lint,test
error: fm-brief.sh --nm-skip: invalid no-mistakes skip 'lint,test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 1]
$ bin/fm-brief.sh bad-push mosaiq --mode no-mistakes --nm-skip push
error: fm-brief.sh --nm-skip: invalid no-mistakes skip 'push'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
[exit 1]
$ bin/fm-brief.sh bad-dpr mosaiq --mode direct-PR --nm-skip lint
error: --nm-skip applies only to ship briefs with --mode no-mistakes
[exit 1]
$ bin/fm-brief.sh bad-local mosaiq --mode local-only --nm-skip lint
error: --nm-skip applies only to ship briefs with --mode no-mistakes
[exit 1]
$ bin/fm-brief.sh bad-scout mosaiq --scout --nm-skip lint
error: --nm-skip applies only to ship briefs with --mode no-mistakes
[exit 1]
nmgerrit
nmlint
nmnone
projects.md
Evidence: No-skip briefs byte-identical to base commit 4aa6c57 across 5 mode/forge combos

Source: No-skip briefs byte-identical to base commit 4aa6c57 across 5 mode/forge combos

Base = git archive 4aa6c57 (pre-change); New = worktree at ce3d7a1. Each brief generated without --nm-skip in separate lab homes; same task id; home and script-root paths normalized.
identical (136 lines): fm-brief.sh t1 plain --mode no-mistakes
identical (157 lines): fm-brief.sh t2 gerritproj --mode no-mistakes --forge gerrit --shape squash
identical (99 lines): fm-brief.sh t3 plain --mode direct-PR
identical (108 lines): fm-brief.sh t4 gerritproj --mode direct-PR --forge gerrit --shape squash
identical (96 lines): fm-brief.sh t5 plain --mode local-only
Evidence: Live lab spawn: mismatch refusal, nm_skip metadata, launch-brief --skip lint, notice scoping, adversarial and relaunch checks

Source: Live lab spawn: mismatch refusal, nm_skip metadata, launch-brief --skip lint, notice scoping, adversarial and relaunch checks

Live lab: disposable FM_HOME /tmp/fm-lab.Pr8plu (bin/fm-lab-home.sh), real bin/fm-spawn.sh driven from a bash primary on private tmux socket -L fm-lab, TREEHOUSE_ROOT inside the lab, crewmate launch = raw command 'sleep 900'.
Registry:
# Projects
- mosaiq [no-mistakes nmskip=lint] - CI build is the lint gate (added 2026-10-03)
- gerritproj [forge=gerrit nmskip=lint no-mistakes] - gerrit fixture (added 2026-10-03)
- plain [no-mistakes] - no skips (added 2026-10-03)
- prodonly [no-mistakes-prod-only nmskip=lint] - prod-only (added 2026-10-03)
- badtest [no-mistakes nmskip=test] - invalid (added 2026-10-03)
- badlist [no-mistakes nmskip=lint,test] - invalid (added 2026-10-03)

=== 1. spawn nmlint (brief skip=lint) WITHOUT --nm-skip -> refused
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
error: no-mistakes skip mismatch for nmlint: the brief says skip=lint but this spawn selected nm_skip=; correct --nm-skip or re-scaffold the brief so the worker's instructions and the task record agree
EXIT=1
state after: (no nmlint.meta written at that point)

=== 2. spawn nmlint --nm-skip lint (matches registry nmskip=lint)
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
error: --relaunch reuses the task's recorded no-mistakes skips; --nm-skip cannot override them
EXIT=1
--- state/nmlint.meta:
window=primary:fm-nmlint
endpoint_task_id=nmlint
worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/mosaiq-6ec4ef/1/mosaiq
project=/tmp/fm-lab.Pr8plu/projects/mosaiq
harness=sleep
kind=ship
mode=no-mistakes
yolo=off
branch=fm/nmlint
nm_skip=lint
tasktmp=/tmp/fm-nmlint
model=default
effort=default
spawn_gen=s1791044335.427282.304
--- data/nmlint/launch-brief.md (what the worker receives):
101:Delivery contract: mode=no-mistakes skip=lint
108:Pass `--skip lint` on every `no-mistakes axi run` for this task, and skip nothing else.
130:Whenever a drive call returns without a gate or an outcome - its own wait elapsed, or it was killed or timed out - reattach at once by re-running `no-mistakes axi run` with `--skip lint`, backgrounded the same way; once checks are green it returns `checks-passed` immediately, and if it refuses because no run is active, read the finished outcome from `no-mistakes axi status`.

=== 3. deviation-notice and recording matrix
nmdev: mosaiq (nmskip=lint) no-mistakes task with explicit --nm-skip ''
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
notice: nmdev ships nm_skip= while mosaiq registers nmskip=lint - proceed only on a current explicit captain instruction or an intake judgment you can state
spawned nmdev harness=sleep kind=ship mode=no-mistakes yolo=off window=primary:fm-nmdev worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/mosaiq-6ec4ef/2/mosaiq
EXIT=0
dprprod: prodonly (no-mistakes-prod-only nmskip=lint) direct-PR task
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
spawned dprprod harness=sleep kind=ship mode=direct-PR yolo=off window=primary:fm-dprprod worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/prodonly-5d6c87/1/prodonly
EXIT=0
dprmosaiq: mosaiq (nmskip=lint) direct-PR task
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
notice: dprmosaiq ships mode=direct-PR while the standing posture for mosaiq is no-mistakes - less rigor than the captain's standing posture; proceed only on a current explicit captain instruction or an intake judgment you can state
spawned dprmosaiq harness=sleep kind=ship mode=direct-PR yolo=off window=primary:fm-dprmosaiq worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/mosaiq-6ec4ef/3/mosaiq
EXIT=0
nmgerrit: gerritproj (forge=gerrit nmskip=lint) no-mistakes --nm-skip lint
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
spawned nmgerrit harness=sleep kind=ship mode=no-mistakes yolo=off window=primary:fm-nmgerrit worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/gerritproj-d77e68/1/gerritproj
EXIT=0
nmnone: plain (no nmskip) no-mistakes, no --nm-skip
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
spawned nmnone harness=sleep kind=ship mode=no-mistakes yolo=off window=primary:fm-nmnone worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/plain-6603b8/1/plain
EXIT=0
--- recorded metadata:
nmdev: mode=no-mistakes nm_skip= 
dprprod: mode=direct-PR nm_skip= 
dprmosaiq: mode=direct-PR nm_skip= 
nmgerrit: mode=no-mistakes nm_skip=lint 
nmnone: mode=no-mistakes nm_skip= 

=== 4. adversarial spawn refusals
\### fm-spawn.sh advtest $FM_HOME/projects/mosaiq --mode no-mistakes --yolo off --nm-skip test 'sleep 900'
error: fm-spawn.sh --nm-skip: invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
EXIT=1
meta written: no
\### fm-spawn.sh advtest $FM_HOME/projects/mosaiq --mode no-mistakes --yolo off --nm-skip lint,test 'sleep 900'
error: fm-spawn.sh --nm-skip: invalid no-mistakes skip 'lint,test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
EXIT=1
meta written: no
\### fm-spawn.sh advdpr $FM_HOME/projects/mosaiq --mode direct-PR --yolo off --nm-skip lint 'sleep 900'
error: --nm-skip applies only to ship spawns with --mode no-mistakes
EXIT=1
meta written: no
\### fm-spawn.sh advscout $FM_HOME/projects/mosaiq --scout --nm-skip lint 'sleep 900'
error: --nm-skip applies only to ship spawns with --mode no-mistakes
EXIT=1
meta written: no
\### fm-spawn.sh nmlint --relaunch --nm-skip '' 'sleep 900'
error: --relaunch reuses the task's recorded no-mistakes skips; --nm-skip cannot override them
EXIT=1
meta written: yes

=== 5. relaunch preserves nm_skip (sleep stopped, then bin/fm-spawn.sh nmlint --relaunch --harness 'sleep 901')
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
spawned nmlint harness=sleep kind=ship mode=no-mistakes yolo=off window=primary:fm-nmlint worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/mosaiq-6ec4ef/1/mosaiq
EXIT=0
meta diff before/after relaunch:
14c14
< spawn_gen=s1791044335.427282.304
---
> spawn_gen=s1791044406.470458.9794
mode=no-mistakes
nm_skip=lint
launch-brief after relaunch:
101:Delivery contract: mode=no-mistakes skip=lint
108:Pass `--skip lint` on every `no-mistakes axi run` for this task, and skip nothing else.

=== 6. relaunch of direct-PR task on nmskip=lint project emits no skip notice
fm-gate-refuse: gate agent lifecycle permitted only against lab home /tmp/fm-lab.Pr8plu
spawned dprprod harness=sleep kind=ship mode=direct-PR yolo=off window=primary:fm-dprprod worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/prodonly-5d6c87/1/prodonly
EXIT=0

=== 7. tampered-metadata relaunch refusals
\### nmnone.meta tampered nm_skip=test, then fm-spawn.sh nmnone --relaunch
error: /tmp/fm-lab.Pr8plu/state/nmnone.meta nm_skip: invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
EXIT=1
\### dprprod.meta (mode=direct-PR) tampered nm_skip=lint, then fm-spawn.sh dprprod --relaunch
error: /tmp/fm-lab.Pr8plu/state/dprprod.meta records no-mistakes skips outside a no-mistakes ship
EXIT=1
Evidence: Live scout promotion carrying --nm-skip lint into Gerrit ship instructions and metadata

Source: Live scout promotion carrying --nm-skip lint into Gerrit ship instructions and metadata

\### bin/fm-spawn.sh scoutg $FM_HOME/projects/gerritproj --scout 'sleep 900'
spawned scoutg harness=sleep kind=scout window=primary:fm-scoutg worktree=/tmp/fm-lab.Pr8plu/treehouse/.treehouse/gerritproj-d77e68/2/gerritproj
EXIT=0
\### bin/fm-promote.sh scoutg --mode direct-PR --yolo off --nm-skip lint
error: --nm-skip applies only to promotion with --mode no-mistakes
EXIT=1
\### bin/fm-promote.sh scoutg --mode no-mistakes --yolo off --nm-skip test
error: fm-promote.sh --nm-skip: invalid no-mistakes skip 'test'; use lint only, or an empty value for no skips; all other steps cannot be skipped at intake
EXIT=1
kind after refusals: kind=scout
\### bin/fm-promote.sh scoutg --mode no-mistakes --yolo off --nm-skip lint
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  7 task(s) in flight, but no watcher has a fresh beacon (last beat: never, grace 300s).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  This is a supervision warning only; the guarded operation WILL still run.
●  watcher supervision needs Stop-owned automatic recovery; inspect the hook registration and startup status before ending the turn.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
promoted scoutg to ship mode=no-mistakes yolo=off forge=gerrit (teardown protection restored)
wrote ship instructions for mode=no-mistakes forge=gerrit: /tmp/fm-lab.Pr8plu/data/scoutg/ship-instructions.md
next: FM_HOME=/tmp/fm-lab.Pr8plu bin/fm-send.sh fm-scoutg "$(cat /tmp/fm-lab.Pr8plu/data/scoutg/ship-instructions.md)"
EXIT=0
--- state/scoutg.meta delivery fields:
kind=ship
mode=no-mistakes
yolo=off
branch=fm/scoutg
nm_skip=lint
--- data/scoutg/ship-instructions.md skip lines:
34:Delivery contract: mode=no-mistakes forge=gerrit shape=squash skip=lint
37:The publication steps `push,pr,ci` are skipped alongside the intake-resolved steps; skipping Gerrit publication in the pipeline is a supported outcome, not a degraded one.
43:Pass `--skip push,pr,ci,lint` on every `no-mistakes axi run` for this task, and skip nothing else.
64:Whenever a drive call returns without a gate or an outcome - its own wait elapsed, or it was killed or timed out - reattach at once by re-running `no-mistakes axi run` with `--skip push,pr,ci,lint`, backgrounded the same way; if it refuses because no run is active, read the finished outcome from `no-mistakes axi status`.
Evidence: Worker launch brief excerpt
Delivery contract: mode=no-mistakes skip=lint
Pass `--skip lint` on every `no-mistakes axi run` for this task, and skip nothing else.
... reattach at once by re-running `no-mistakes axi run` with `--skip lint`, backgrounded the same way; ...

Pipeline

Updates from git push no-mistakes

  • ✅ intent - passed
  • ✅ rebase - passed
  • ⚠️ review - 3 issues (1 warning, 2 infos)
  • ✅ test - passed
  • ✅ document - passed
  • ✅ lint - passed
  • ✅ push - passed
  • ⚠️ pr - running
  • ⚠️ ci - pending

johannesr and others added 6 commits October 3, 2026 17:47
Carry nmskip registry preferences through brief, spawn, promotion, and relaunch contracts without changing repository lint configuration. Limit intake skips to lint, test, and document and merge Gerrit publication skips into the driving instruction.

Verified 2026-10-03: five focused behavior suites pass (FM_TEST_SUMMARY total=5 failed=0 skipped_gate=0); canonical local and explicit source-aware fm-lint pass with ShellCheck 0.11.0 and actionlint 1.7.12; documentation audience and coverage guards pass. Existing no-skip renderer output remains byte-identical across five delivery/forge combinations and both wait settings.
)

* test(calm): pin Pi's regular TUI mode where pane assertions read scrollback

Pi 1.0.0 defaults its TUI to a fullscreen alternate-screen mode whose
scrollable transcript is application-owned, so rows that leave the viewport
never enter terminal scrollback and tmux capture-pane -S can no longer see
them. The Pi Calm e2e launches now pass --tui-mode regular wherever the flag
exists so the transcript assertions keep reading real scrollback on both the
Pi 1.0.0 line and earlier Pi lines, which have no such flag and render
regular-only anyway.

* no-mistakes(document): Correct Pi TUI documentation and scrollback rationale

(cherry picked from commit 349e189)
…t.sh, not in this PR's code. CI installs the latest Pi, and this run got 1.0.1. The base commit passed CI on Pi 0.99.2, and upstream main passes on 1.0.0. In 1.0.1, Pi renamed the lookup that `createToolHtmlRenderer` reads from `deps.getToolDefinition` to `deps.getToolRenderers`. The tests passed only `getToolDefinition`. Under 1.0.1, the lookup call throws, the renderer catches the error and returns `undefined`, and the test fails with "grep disappeared from /export calm.html HTML while calm mode was on". Invariant: every renderer the tests build must give the installed Pi its tool lookup under the name that version reads. Four test sites build this renderer, and I changed all four the same way: each passes the same lookup under both `getToolDefinition` (Pi before 1.0.1) and `getToolRenderers` (1.0.1). Older versions ignore the new name, so nothing changes for them. Two sites are in tests/fm-calm-pi-extension.test.sh: `assertStockHtmlRendering` and `unmatchedRenderer`. They share one `findTool` lookup. The other two are in tests/fm-pi-branch-extension.test.sh (`stockHtml` and `actualHtml`). That test expects `undefined`, and under 1.0.1 it was passing only because the lookup threw. Now it passes because the renderer really defers to Pi's own fallback. I changed no production code. Verification: I installed Pi 1.0.1 under /tmp in the same layout a global npm install uses and pointed `FM_PI_PACKAGE_DIR` at it. Before the fix, the CI failure reproduced exactly. After the fix, 14 steps of fm-calm-pi-extension pass, including the export step that failed in CI and the tmux follow-up, queued-row and geometry cases. fm-pi-branch-extension passes in full (51 ok, rc=0). Under the local Pi 0.87.1, both tests give the same results: 14 ok, and 51 ok with rc=0. Two local-only limits: 1. My ~/.tmux.conf sets `default-shell /bin/fish`, which can't parse the test's bash launch command, so the tmux cases fail locally whatever the change. I ran with `HOME` pointed at an empty temp directory to avoid that. This explains the "did not reach the ready composer" failure reported in the previous round. 2. No Chrome or Chromium is on PATH here, so the last rendered-export-DOM step in fm-calm-pi-extension did not run locally. Under both Pi versions it stops at that step with "Chrome or Chromium is required". The CI runner has Chrome, so CI will be the first run of that step under 1.0.1
@jredgard
jredgard merged commit 6b12274 into main Oct 3, 2026
19 checks passed
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.

2 participants