Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no new actionable defects remain. Reviews (11) · Last reviewed commit: "no-mistakes(document): Fix model-pin rea..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thank you @kesslerio for turning #7735 into a bounded check that only reports. It never fails the launch, so the pin promise holds without adding a new blocker. I also appreciate that every Greptile round was fixed at the shared owner and backed by a regression test. What I checked on
Contract-class (my own read): new-default. Every pinned Claude launch now carries a new VISION.md, rule by rule: One captain, one interface: aligns (silent model drift becomes a reported fact, and nothing new reaches the captain unless it's a mismatch worth seeing). Authority is explicit: aligns (it reports and doesn't act). Scripts own the mechanics: aligns (deterministic readback). A restart is a non-event: aligns (relaunch paths forward the verdict instead of dropping it). Delegation with a spine: aligns. The fleet outlives any vendor: aligns, with one note for Kun. It binds to what each vendor exposes (the Pi session JSONL and the Claude transcript), but the Claude alias-to-snapshot table in This is waiting on you for one thing: a live run of the pinned Claude launch path. Your body names it as untested live. The live guard proves the The red |
2f18b6b to
02f283e
Compare
|
Speaking as Kun's firstmate: thanks @kesslerio. I re-read head Still waiting on you for the one live run I asked for: a real Once that's in, we run the full suite, and then it goes to Kun. The red |
|
Live run of the pinned Claude worker path, as asked. One real What ran. Claude Code 2.1.316 on this host, lab home checked out from this PR head: The lab's own worker spawn is The verdict line, from that spawn's stderr: The launch line the launcher recorded ( The address the assertion polled, on that same line: That the spawn was a real worker, not a bare launch: Its pane banner and its transcript agree with the verdict: Margin on the ~10s window. The delivered brief's first user record is stamped Readiness checks at the end of the run: |
|
Speaking as Kun's firstmate: thanks @kesslerio, that's the live run I asked for. A real Nothing more is needed from you. I've added the |
02f283e to
517d7d4
Compare
|
Speaking as Kun's firstmate: thanks @kesslerio. This is now with Kun, because asserting and relaying the pinned model changes what every pinned launch does by default. He'll also decide whether report-only is enough to close #7735. It's waiting on Kun, not you. |
517d7d4 to
6c43156
Compare
|
Speaking as Kun's firstmate: thanks @kesslerio. I re-read This is still with Kun, not you, because asserting and relaying the pinned model changes what every pinned launch does by default. He'll also decide whether report-only is enough to close #7735, which also asked to start fresh or refuse on a disagreeing resume. |
6f3f0e7 to
9441b3a
Compare
|
Speaking as Kun's firstmate: thank you @kesslerio. Having the live guard accept the concrete id the API reports for a family alias closes the gap from your last round. I re-read head On CI: the only failing lane in run Waiting on you for one small thing: Greptile's new P2 thread, "Live check miscompares snapshot names", on Contract-class (my own read): new-default, unchanged. |
9d4e020 to
63fce87
Compare
| done | ||
| [ "$normalized_pin" = "$normalized_actual" ] && return 0 | ||
| case "$pin:$actual" in | ||
| opus:claude-opus-[0-9]* | sonnet:claude-sonnet-[0-9]* | haiku:claude-haiku-[0-9]*) return 0 ;; |
There was a problem hiding this comment.
Decorated models pass as pinned
With a short pin such as opus, spawn_model_pin_matches accepts claude-opus-5[1m] and reports asserted. The [0-9]* pattern allows anything after the first digit, including decorations. This hides model drift instead of warning the operator.
Check the whole model name before accepting a family match, and cover a short alias paired with a decorated reported model.
There was a problem hiding this comment.
The observation is accurate: for a short family pin (opus, sonnet, haiku), the claude-<family>-[0-9]* glob accepts any reported id under that family prefix, including decorated variants like claude-opus-5[1m].
Two things argue this is intended tolerance rather than a hole. First, the drift this assertion exists to surface was an exact pin silently resolving elsewhere — issue #7735's relaunch reported model=<pin> while its session ran claude-opus-5[1m], and every exact-pin path still mismatches that decoration today (test_claude_model_pin_snapshot_verdicts pins claude-opus-5 vs claude-opus-5[1m] as a mismatch, as do the remote-relaunch fixtures). Second, a family alias is a deliberate "any model in this family" request: claude-opus-5[1m] is an opus-family id, so the same tolerance that lets sonnet accept claude-sonnet-5-5 accepts its decorated sibling.
Whether a bracket decoration should disqualify a family match is a product-semantics call about how strict family pins should be, so I have left this thread open for the maintainer to rule rather than changing the glob unilaterally.
There was a problem hiding this comment.
That distinction is fair. The issue #7735 case is a concrete pin, which still mismatches the decorated report; opus is a family-level request, so accepting a decorated opus-family ID follows the broader family semantics. I agree this is a product-policy question rather than a correctness defect without a stricter contract, and I’ll defer to the maintainer rather than insist on changing the glob.
A pin was only ever an argument: nothing read back what the started session ran, so a relaunch could report model=<pin> while its session served another model (issue kunchenguid#7735: a session serving claude-opus-5[1m] under a claude-opus-5-5 pin). A pinned launch now reads back the model its own session reports and records one note in the task status: asserted, mismatch, or unverified. The read is per-harness and vendor-grounded: Pi's session record, which a Herdr-bound relaunch hands its replacement as the resume identity, and Claude Code's transcript at the --session-id a pinned launch mints. A resumed session's inherited history is not the verdict, because pi applies --model over the stored session model (measured on pi 1.4.0), so the comparison is against the turn the replacement itself produced; refusing a resume whose history disagrees would refuse every legitimate re-pin. A harness that emits no readable session model is recorded unverified rather than guessed at, and a mismatch is reported rather than turned into a launch failure or a blocked decision that could drive supervision into replacing a live worker. Coverage: portable fixture regressions in fm-control-relaunch and fm-spawn-dispatch-profile, plus an opt-in live guard that re-proves both vendor facts against the installed binaries and is the command that refreshes the dated record in docs/verification/runtime-backends.md. Closes kunchenguid#7735
…blocked by missing rtk
…ude snapshot aliases
… with a root-cause fix at the single shared owner plus portable regression tests. ci-2 (model note hides worker state): the invariant is that model evidence must never become the task's current state when the worker already reported one. `spawn_model_pin_note` in `bin/fm-spawn.sh` is the only writer of `note: model pin ...` lines and all verdict paths funnel through it, so the check went there: it now reads `status_current_line` from `bin/fm-classify-lib.sh` and, when that line is already `done`/`failed`/`blocked`/`needs-decision` or a declared wait (`paused`/`captain-held`, read through the shared verb constants), it leaves the status file byte-identical (no truncation, rewrite, or re-append; the worker writes concurrently) and prints the same verdict text on stderr as a `warn: model pin <verdict>: <tail>` line. A new fixtures hook (`FM_FAKE_CLAUDE_STATUS_FILE`/`FM_FAKE_CLAUDE_STATUS_LINE`) lets the fake Claude worker append its own event during launch delivery, and the new test asserts `done:` remains the last line and the classifier's current state, no model note is present, and the verdict appears on stderr. Verified by reverting only `bin/fm-spawn.sh` to HEAD: the case fails pre-fix and passes after. ci-3 (portable tests needed host uuidgen): `make_spawn_fakebin` in `tests/fm-spawn-dispatch-profile.test.sh` now installs a deterministic counter-based `uuidgen` stub in its own fakebin, so the pin cases no longer depend on the host. The existing collision case is untouched (it overwrites the stub), and a new case overwrites it with a failing stub and asserts the launch still succeeds, carries no `--session-id`, and records the pin unverified. ci-4 (raw launches waited needlessly): session-id allocation is now gated on the launch actually carrying the `__CLAUDESESSION__` slot, so a raw command (which has no such placeholder) mints no id and records the pin unverified immediately instead of polling a transcript that cannot exist. The pinned non-raw path is unchanged. A new test asserts the raw launch never invokes uuidgen, has no session id, and records unverified; it also fails against HEAD. Docs: `docs/verification/runtime-backends.md` now records the never-displace-worker-state rule, the raw-launch-no-address rule, and the new test names. Verification run locally: all Claude/pin tests in `tests/fm-spawn-dispatch-profile.test.sh` and the four `tests/fm-control-relaunch.test.sh` pinned-Pi cases pass; `bin/fm-lint.sh` on all changed files passes; `bash -n` and `git diff --check` clean. The full dispatch-profile file still stops at its pre-existing launch-environment case that fails only on this NixOS host (`sed: command not found` under a restricted `/usr/bin:/bin` PATH), which is unrelated to this change and matches the previously declined full-suite item
…rving worker status
…use, with portable regression coverage. ci-2 (macOS drops model warnings). Invariant: every relay of the model-pin verdict line must match that line with a POSIX-portable expression, so no supported host can silently match nothing. All four relay sites now carry the identical filter `sed -nE '/^model pin (asserted|mismatch|unverified):/p'`, each with a one-line reason: `bin/fm-remote-secondmate-control.sh` (cmd_launch relay), `bin/fm-spawn.sh` (spawn_remote_secondmate relay), `bin/fm-secondmate-liveness-lib.sh` (`fm_sm_live_model_verdicts`), and the new restart relay. No GNU-only `\|` alternation remains in any verdict filter (`grep` over bin/ confirms the only four filters are the ERE form). Coverage that fails if the filter matches nothing: `tests/fm-secondmate-restart.test.sh` `test_restart_forwards_the_relaunch_model_verdict` (new), and the pre-existing per-path cases that assert the verdict actually arrives — `tests/fm-remote-secondmate-trace-context.test.sh` (real chain through both the remote host-local control script and the parent spawn), `tests/fm-secondmate-liveness.test.sh` (`test_sweep_reports_replacement_model_verdict`), `tests/fm-wake-queue.test.sh`. I also exercised the liveness filter directly with a verdict line plus a look-alike (`model pin notes: ...`): it forwards only the verdict. ci-3 (update restarts hide model warnings). Invariant: a capture of a relaunch result that ends in a reported success must still forward the verdict it observed, because `bin/fm-spawn.sh` writes it to the launch's stderr and nowhere else, so a dropped copy is the only copy. `restart_mate`'s success branch in `bin/fm-secondmate-restart.sh` now prints the matching verdict lines from `restart_out` right after its `restarted:` line, using the same one-line filter and identical wording; both placements (local `fm-control.sh relaunch` and remote `fm-remote-secondmate-relaunch.sh`) funnel through that single site. It stays report-only (`... || true`), and `harvest_restarts` still classifies the multi-line result as `restarted:` (asserted by the case's exit 0 and the summary). The script header now documents the forwarded verdict, and `usage()`'s fixed comment range moved 2,65 → 2,69 so `--help` output is byte-identical to before (verified by diff). Docs: `docs/verification/runtime-backends.md` now lists the restart boundary and its test, and records the `sed -E` portability rule and that the per-path cases fail on a silent non-match. Verification: `test_restart_forwards_the_relaunch_model_verdict` fails with only the restart forwarding reverted (``not ok ... missing: 'model pin mismatch: ...'``) and passes with it. `tests/fm-secondmate-restart.test.sh` — all 25 cases pass; `tests/fm-remote-secondmate-trace-context.test.sh` (6), `tests/fm-remote-secondmate-relaunch.test.sh` (5), `tests/fm-wake-queue.test.sh` (79), `tests/fm-control-relaunch.test.sh` (94) all pass. `bin/fm-lint.sh` (ShellCheck 0.11.0) clean on every changed shell file; `bash -n` and `git diff --check` clean. Two host-specific pre-existing failures are unrelated to this change and reproduce on the base commit with my changes stashed: `tests/fm-secondmate-liveness.test.sh` and `tests/fm-spawn-dispatch-profile.test.sh` abort at their first case under this NixOS host's restricted `/usr/bin:/bin` PATH (`grep: command not found`, `sed: command not found`)
…tart verdict forwarding
The opt-in guard's last run on this host answered the pin with claude-haiku-4-5-20251001, so the alias-versus-dated-snapshot pairing is confirmed against an installed binary instead of resting on vendor documentation, and the record no longer carries the earlier <synthetic> caveat as the Claude half's only result.
…on id A pinned Claude launch now carries a collision-checked --session-id so the model it runs on can be read back by address (bin/fm-spawn.sh, kunchenguid#7735). That slot sits between `claude ` and the permission flag, so three byte-exact launch assertions in tests/fm-secondmate-harness.test.sh stopped matching and the Behavior portable serial 5 lane failed. Drop only that optional slot - the id is minted only when the host can mint one, and a launch without one must still assert - and keep the permission flag, --settings file, --model and --effort tokens compared exactly.
…g verification line
…ock.test.sh) — root cause found and fixed. The failing case `test_watcher_exits_on_state_teardown_during_startup` tore the state directory down with `rm -rf "$state"` while the SIGSTOPped watcher still had a forked child publishing into that tree. Losing that race leaves `rm -rf` unable to rmdir the directory (CI log shows `rm: cannot remove .../state: Directory not empty`), so the original inode survived at the same path with its lock pid gone; the watcher then correctly took the documented "successor released the lock" self-eviction branch (bin/fm-watch.sh:3902, `exit 0`, no output) instead of the teardown branch that requires a changed state-directory devino. The fixture, not the watcher, was nondeterministic. Fix: replace the tree in place-free fashion — `mv "$state" "$state.torn-down"`, `mkdir -p "$state"`, then best-effort `rm -rf` of the renamed tree — so the old inode stays allocated and the recreated directory is guaranteed a new devino. Invariant restored: a fixture that asserts a recreated state directory is read as a teardown must never leave the original inode at that path. I enumerated the sibling sites: `rm -rf "$state"` appears only here and in tests/fm-wake-queue.test.sh:2784, whose case removes the directory permanently (no recreation, no in-place writer) and needs no change; no other suite creates the watcher-teardown fixture. Evidence: pre-fix, the case failed 6/30 runs under parallel contention locally (and twice more before instrumentation, one showing the leftover `state/.wake-queue.lock.owner.<scope>.<rand>` staging dir written by the stopped watcher's own child); post-fix it passed 30/30 under the identical contention and 30 further sequential runs, and the full tests/fm-watcher-lock.test.sh passes (exit 0, 58 cases) with `bash -n` and shellcheck clean. The ordinary path is unchanged: the fixture still tears down and recreates the state directory at the same path, the watcher still exits 1 with `watcher: exiting - state directory was torn down (singleton lock removed)`, and the old tree's removal (previously done by the same `rm -rf`) still reaches the watcher's EXIT cleanup identically. ci-2 (Behavior portable serial 11, tests/fm-pr-check-security.test.sh "post-queue retry watcher failed:") — no code change: this failure is not caused by the change under review and I could not reproduce it. The suite, including the exact `test_retirement_crash_recovery` sequence, passes 30/30 locally (including 5-way concurrent load), and at the CI commit it still passes end-to-end here (3m32s). The CI timeline shows the case failing ~2.3s after the previous case, i.e. the watcher exited non-zero immediately rather than exceeding the 60s bounded wall, with the diagnostic only on the watcher's stdout (the assertion prints stderr alone). Nothing this branch changes is on that path: bin/fm-test-run.sh only gained a shard hint and a family mapping, tests/fixtures.sh only changes the fake spawn harness, and the fm-watch.sh/fm-bootstrap.sh/fm-secondmate-* edits only forward the `model pin ...` verdict after a successful secondmate relaunch. In the same CI generation, main (2118038) failed this same lane family on a different test (`limit-later: the host did not stop on TERM`), which points at runner-level timing flakiness in untouched real-process suites rather than this change. ci-3 (Full suite) is only the aggregation gate (`FM_CI_LANES_FAILED=true`) over the two lane jobs above; it needs no change of its own and passes once the lanes pass. Net change: one fixture in tests/fm-watcher-lock.test.sh; no behavior, instruction, or subsystem added
…end-herdr-focus-flash-e2e.test.sh:344 ('Part C ... observed no wrong-focus sample at all, so the sampler proved nothing'). Root cause is a flaky test, not product code: Part C proved the transient wrong-focus window with an independent background poller, but that window is bounded by two Herdr CLI calls (the explicit `pane close` and the restore backstop's snapshot read), so on a loaded runner every sample can land outside it and the assertion reports nothing even though the close did move focus. The CI log proves it: in the same run Part A measured that exact public close stealing focus (steal_live=1), Part C exercised the same close, and zero samples differed; main's run of this suite saw 4. Invariant violated: a test's proof that a transient in-operation focus change occurred must come from a deterministic observation of that mutation, never from a poller racing it (a miss and a real regression were indistinguishable). Enumerated sites: Part C's positive-existence check (the failure) — fixed; Part C's complementary focus-preserving branch — moved to the same deterministic evidence so both directions hold; Part A measures with a direct post-close snapshot rather than the poller and Part B's claim is an absence over samples, so neither had the defect. Fix: derive the evidence from the production restore backstop's own observation in the call log the suite already parses (`tab focus` is issued only when its post-mutation snapshot differs from the pre-close snapshot), assert it present on a defective release and absent on a focus-preserving one, and delete the Part C sampler, its stop/ready files, and the wait loop that the fix left unreachable. ci-2: 'Full suite' is only the FM_CI_LANES_FAILED aggregation gate over that one Herdr lane (all 18 portable lanes and both parallel lanes passed in the same run), so it needs no change of its own and clears once the Herdr lane passes. Verification: the exact CI lane command `bin/fm-test-run.sh --family real-herdr-gated --fail-on-gate-skip 'herdr not found'` passes locally against the upstream-pinned Herdr 0.7.4 protocol 16 (total=16 failed=0 skipped_gate=0, exit 0), i.e. the same release CI pins; the focus-flash suite passes 20/20 further runs on 0.7.4 (steal_live=1, the defective branch) and 3/3 on Herdr 0.9.3 protocol 22 (steal_live=0, the preserving branch); sensitivity was checked by forcing each classification the wrong way, where the new assertion fails ('the restore never observed a moved focus') and the complementary branch fails ('needed the corrective tab focus'), so neither can pass vacuously; `bash -n`, `bin/fm-lint.sh` on the file, and tests/fm-documentation-audiences.test.sh are clean. The two documented dated transcripts in docs/verification/runtime-backends.md are left verbatim and annotated with one sentence recording that the assertion now derives the window from the restore's own observation, so the record stays accurate without rewriting history. No product behavior, status writer, flag, or subsystem was added
…rections The live model-pin readback guard's claude_pin_matches accepted any eight-digit date after a pin but rejected the reverse explicit pair the launcher treats as equal: a pin naming the dated snapshot (claude-haiku-4-5-20251001) against a session reporting its short alias (claude-haiku-4-5). spawn_model_pin_matches normalizes the vendor's documented alias/snapshot pairs on both sides before comparing, so the guard now applies the same normalization while keeping the date wildcard one-directional: only a documented pair, never an arbitrary snapshot date, compares a snapshot pin back to its alias. The comparator's case table runs harness-free through FM_MODEL_PIN_READBACK_SELFTEST=1 before the live gate, and tests/fm-live-gate.test.sh drives that entry point so portable CI pins the oracle the opt-in guard trusts.
63fce87 to
0d6478c
Compare
|
Speaking as Kun's firstmate: thanks @kesslerio for the re-raise on current main and for the reasoning on the family-pin thread. I checked head What changed since my last note:
Gates on this head:
The open thread "Decorated models pass as pinned" is a policy question, so I'm not asking you to change anything. You're right that exact pins still mismatch a decorated id (the #7735 case), and Greptile agreed this is product policy, not a defect. Whether a family pin like Contract-class: new-default, unchanged. The readback runs on every pinned launch with no switch, and pinned Claude launches gain a |
What Changed
bin/fm-spawn.shreads back the model the started session itself reports and emits amodel pin asserted|mismatch|unverified:verdict on spawn stderr. A canonical pinned Claude launch gets a collision-checked--session-idso its transcript is addressable, a Herdr-bound Pi relaunch is read from its own fully completed turn, and raw/T3 launches report unverified immediately instead of polling; a mismatch is reported rather than failing the launch or writing task status.sed -Efilters), so the model evidence a spawner observed reaches its caller instead of being dropped.tests/fm-model-pin-readback-live-e2e.test.shvendor guard with a harness-free comparator selftest wired intotests/fm-live-gate.test.sh, fixture-backed portable cases across the relaunch, restart, liveness, spawn-dispatch, and T3 suites, plus documentation of the Pi/Claude measurements and session readback rules indocs/verification/runtime-backends.md.Risk Assessment
✅ Low: The report-only checks use launch-bound session evidence, preserve worker status and launch outcomes, and conform to the recorded decisions without a substantiated material defect.
Testing
Standing up a disposable fm-live-lab with the machine's real Claude CLI, I spawned pinned workers through the real bin/fm-spawn.sh and observed all three verdict classes on the spawn's stderr: asserted for a pin the session actually ran (sonnet → claude-sonnet-5-5), mismatch for a decorated pin whose session reported the undecorated model (claude-opus-5[1m] → claude-opus-5), and unverified for a pin the vendor refused, which wrote a<synthetic>record. Each spawn exited 0 with the worker running, and the verdict never appeared in the lab's task state — the worker's own paused line stayed authoritative. The change's opt-in live guard also passed against real pi 1.5.2 and Claude 2.1.322, confirming a resumed session's own turn carries the resumed pin over its inherited history and that a--session-idlaunch's transcript is readable at that address. The lab was torn down in the same run, including its Claude trust entries, the task temp dirs, and the treehouse pool the product created; the worktree is unchanged. The Herdr-bound Pi relaunch readback and the secondmate restart/remote relay forwarding were not driven live, so they rest on the branch's portable suites and CI.model pin assertedmodel pin asserted: pin 'sonnet' actual 'claude-sonnet-5-5' (pinned Claude session 2a95c8b1-...)frombin/fm-live-lab.sh up --harness claude --worker --model sonnet; real-tr…model pin mismatchand still launches the worker instead of failing the spawnmodel pin mismatch: pin 'claude-opus-5[1m]' but pinned Claude session fc680ac8-... reports 'claude-opus-5',spawned labpintest-mm ... window=firstmate:fm-labpintest-mm, spawn_e…<synthetic>record) reportsmodel pin unverifiedrather than asserted or mismatch, and still launc…model pin unverified: pin 'claude-sonnet-4-5' was not confirmed by pinned Claude session 071f7f9c-... (no session-reported model), spawn_exit=0; real-transcript-models.log show…model pinline is written anywhere in the lab's state directorygrep -rl 'model pin' /tmp/fmlab-pintest/home/state/→ none; the lab worker's file held onlypaused [at=1794695119]: waiting for gate file ...(livelab-up-sonnet.log shows that same worker parked o…ok - pi 1.5.2: a resumed session's own turn carries the model it was pinned to, over an inherited record naming anotherand `ok - claude 2.1.322 (Claude Code): a pinned launch reads…bin/fm-control.sh relaunchagains…model pinverdict it observed to the caller's output instead of dropping itEvidence: Live lab up with a pinned worker spawn (asserted verdict)
Source: Live lab up with a pinned worker spawn (asserted verdict)
Evidence: Real spawn: model pin mismatch on a decorated pin, spawn still succeeds
Source: Real spawn: model pin mismatch on a decorated pin, spawn still succeeds
Evidence: Real spawn: model pin unverified when the session states no model
Source: Real spawn: model pin unverified when the session states no model
Evidence: Vendor transcripts for the three sessions (independent oracle)
Source: Vendor transcripts for the three sessions (independent oracle)
Evidence: Opt-in live guard: pi resume turn and Claude session-address facts
Source: Opt-in live guard: pi resume turn and Claude session-address facts
Evidence: Lab teardown transcript
Source: Lab teardown transcript
Evidence: Scenario write-up
Source: Scenario write-up
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
model pin assertedmodel pin asserted: pin 'sonnet' actual 'claude-sonnet-5-5' (pinned Claude session 2a95c8b1-...)frombin/fm-live-lab.sh up --harness claude --worker --model sonnet; real-tr…model pin mismatchand still launches the worker instead of failing the spawnmodel pin mismatch: pin 'claude-opus-5[1m]' but pinned Claude session fc680ac8-... reports 'claude-opus-5',spawned labpintest-mm ... window=firstmate:fm-labpintest-mm, spawn_e…<synthetic>record) reportsmodel pin unverifiedrather than asserted or mismatch, and still launc…model pin unverified: pin 'claude-sonnet-4-5' was not confirmed by pinned Claude session 071f7f9c-... (no session-reported model), spawn_exit=0; real-transcript-models.log show…model pinline is written anywhere in the lab's state directorygrep -rl 'model pin' /tmp/fmlab-pintest/home/state/→ none; the lab worker's file held onlypaused [at=1794695119]: waiting for gate file ...(livelab-up-sonnet.log shows that same worker parked o…ok - pi 1.5.2: a resumed session's own turn carries the model it was pinned to, over an inherited record naming anotherand `ok - claude 2.1.322 (Claude Code): a pinned launch reads…bin/fm-control.sh relaunchagains…model pinverdict it observed to the caller's output instead of dropping itbin/fm-live-lab.sh up --harness claude --worker --model sonnet --timeout 90 /tmp/fmlab-pintest— real product spawn of a pinned Claude worker; capturedmodel pin asserted: pin 'sonnet' actual 'claude-sonnet-5-5' (pinned Claude session 2a95c8b1-...)and a live worker parked on its gate/tmp/fmlab-pintest/probe_spawn.sh labpintest-mm 'claude-opus-5[1m]'— realbin/fm-spawn.shspawn with a pin whose real session reports another model; capturedmodel pin mismatch: ... reports 'claude-opus-5', spawn_exit=0/tmp/fmlab-pintest/probe_spawn.sh labpintest-unv claude-sonnet-4-5— real spawn pinned to a model the vendor rejects (API 400,<synthetic>record); capturedmodel pin unverified: ... (no session-reported model), spawn_exit=0jq -r 'select(.type=="assistant") | .message.model'over the three real~/.claude/projects/*/<session-id>.jsonltranscripts as the independent oracle (claude-sonnet-5-5, claude-opus-5, <synthetic>)grep -rl 'model pin' /tmp/fmlab-pintest/home/state/→ none, and the lab worker's own file held onlypaused [at=...]: waiting for gate file ...FM_MODEL_PIN_READBACK_LIVE=1 FM_MODEL_PIN_READBACK_CLAUDE_MODEL=sonnet bin/fm-test-run.sh tests/fm-model-pin-readback-live-e2e.test.sh— exit 0, pi 1.5.2 resumed-turn fact and claude 2.1.322 session-address fact both okbin/fm-live-lab.sh down /tmp/fmlab-pintest— lab, tmux server, task temp dirs, and its Claude trust entries removed; stray/tmp/fm-labpintest-*dirs and the~/.treehouse/notes-65d578pool the product created removed by hand✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
Issues
Closes #7735