Skip to content

fix(calm): mirror pi 1.0.0's stock call header for outcome tool rows - #45

Merged
onyx-space merged 4 commits into
mainfrom
fm/ci-pi-100-drift-f1a2
Oct 4, 2026
Merged

onyx-space merged 4 commits into
mainfrom
fm/ci-pi-100-drift-f1a2

Conversation

@onyx-space

@onyx-space onyx-space commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Intent

Ship through the pipeline the same diff a hand-opened PR carried: pin pi in CI so upstream cannot move it (three sites get @earendil-works/pi-coding-agent@1.0.0), align the outcomes tools' renderCall in .pi/extensions/fm-branch-supervision.ts with pi 1.0.0's stock call header (createCallFallback now formats the title plus its arguments via formatToolCallWithArgs, which pi does not export, so the shape is mirrored here and the existing byte-equality fixture keeps guarding it), and widen fm-wake-queue's wait_for_exit bound from 4 seconds to 15 (still bounded). No assertion is widened or deleted. Local self-proof: bash tests/fm-pi-branch-extension.test.sh exits 0 with 42 ok and no failures on pi 1.0.0.

What Changed

  • Pin @earendil-works/pi-coding-agent@1.0.0 at all three CI install sites so upstream releases can no longer move the pi version the extension tests run against.
  • Rebuild fm_branch_outcomes and fm_branch_processed's renderCall to emit pi 1.0.0's stock call header — the title plus its arguments (key=value collapsed at 100 chars, tab-indented lines when expanded) — mirroring the unexported formatToolCallWithArgs shape so Calm-off rows stay byte-identical to Pi's own fallback; docs/calm.md and docs/calm-mode-feasibility.md are updated for the header parity and the fm_branch_processed hidden-shell entry.
  • Widen tests/fm-wake-queue.test.sh's wait_for_exit bound from 40 to 150 deciseconds (4s to 15s) in all five cases; the wait is still bounded and no assertion is changed or removed.

Risk Assessment

✅ Low: The change is tightly scoped: it pins one CI dependency, mirrors a small pi-internal header formatter that was verified byte-identical to pi 1.0.0's actual source, and widens one already-bounded test timeout from 4s to 15s.

Testing

Drove the change's two live surfaces end-to-end against the real installed pi 1.0.0. The author's stated self-proof passes exactly as claimed: tests/fm-pi-branch-extension.test.sh exits 0 with 42 ok and no failures. The tool-call header change was exercised through pi's real ToolExecutionComponent with the extension's renderCall versus pi's stock fallback: both fm_branch_outcomes and fm_branch_processed render byte-identical in collapsed and expanded states (visual ANSI-stripped rows captured), and mutant variants that drift the mirrored shape red the in-suite byte-equality comparison, so the guard is not vacuous. tests/fm-wake-queue.test.sh exits 0 with 48 ok under the widened bound, and a direct probe confirms the 150-tick bound remains bounded (rc=124 + kill for a never-exiting process). The CI pin resolves: the exact pinned spec installs 1.0.0 in an isolated npm prefix, and a semantic YAML parse finds exactly three pinned install sites and zero unpinned. The changed surface is a terminal TUI header, so there is no browser/Electron screenshot; the rendered rows are terminal text and were captured ANSI-stripped as the reviewer-visible artifact. The only non-live aspect is that GitHub Actions itself cannot be executed on this host, so the workflow wiring is reported untested with the semantic parse as supporting evidence.

  • Live validation: ✅ go - 6 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Run tests/fm-pi-branch-extension.test.sh on installed pi 1.0.0: it exits 0 with all 42 cases ok and the Calm-off/stock render case green (the author's stated self-proof). ✅ pass live rerun-pi-branch-extension.log: 42 ok, 0 not ok, EXIT=0; line 1 'fm_branch_outcomes hides through ToolExecutionComponent while Calm-off and HTML export stay stock'.
The fm_branch_outcomes and fm_branch_processed call headers render byte-identical to pi 1.0.0's own stock fallback (real install), both collapsed and expanded. ✅ pass live render-call-header-visual.txt and adversarial-render-guard.txt (real variant: all 6 header comparisons true).
Adversarial: deliberately drift the mirrored header shape and confirm the suite's byte-equality guard fails, proving it is not vacuous. ✅ pass live adversarial-in-suite-fixture.txt: real=PASS, mutant-collapsed=FAIL on collapsed, mutant-expanded=FAIL on expanded; adversarial-render-guard.txt shows the caught byte diffs.
Run tests/fm-wake-queue.test.sh under the widened 15s wait_for_exit bound: it exits 0 with every case green and no assertion failures. ✅ pass live rerun-wake-queue.log: 48 ok, 0 not ok, EXIT=0.
Adversarial: the widened wait_for_exit bound stays bounded - a never-exiting process yields rc=124 and is killed, while an immediate-exit process yields rc=0 promptly. ✅ pass live rerun-wait-for-exit-bound.txt: rc=124 elapsed=22s waiter killed; rc=0 elapsed=0s.
The CI-pinned install spec resolves and installs exactly 1.0.0 (not a floating/latest version) when run by npm. ✅ pass live rerun-ci-pi-pin-install.log: install_exit=0, resolved version: 1.0.0; plus npm view @earendil-works/pi-coding-agent@1.0.0 version -> 1.0.0.
Every pi install site in .github/workflows/ci.yml pins exactly 1.0.0 (three shard jobs) with no unpinned install remaining, as GitHub Actions would install it. ⏸️ untested no GitHub Actions is the real consumer of the workflow and cannot be executed from this worktree/host: no GH Actions runner and no push/run authority. Verified instead by a semantic YAML parse into the j…
Evidence: Rendered call header, extension vs pi 1.0.0 stock fallback (both tools, collapsed+expanded, identical)

Source: Rendered call header, extension vs pi 1.0.0 stock fallback (both tools, collapsed+expanded, identical)

--- fm_branch_outcomes args={"recent":2} expanded=false ---
  pi 1.0.0 stock : [" fm_branch_outcomes recent=2"]
  extension header: [" fm_branch_outcomes recent=2"]
  identical: true
--- fm_branch_outcomes args={"recent":2} expanded=true ---
  pi 1.0.0 stock : [" fm_branch_outcomes","   recent: 2"]
  extension header: [" fm_branch_outcomes","   recent: 2"]
  identical: true
--- fm_branch_processed args={"through":7} expanded=false ---
  pi 1.0.0 stock : [" fm_branch_processed through=7"]
  extension header: [" fm_branch_processed through=7"]
  identical: true
--- fm_branch_processed args={"through":7} expanded=true ---
  pi 1.0.0 stock : [" fm_branch_processed","   through: 7"]
  extension header: [" fm_branch_processed","   through: 7"]
  identical: true
Evidence: Adversarial header byte-guard: real passes, collapsed/expanded mutants are caught

Source: Adversarial header byte-guard: real passes, collapsed/expanded mutants are caught

############ VARIANT: real ############
tool=fm_branch_outcomes args={"recent":2} expanded=false header-byte-equal=true
tool=fm_branch_outcomes args={"recent":2} expanded=true header-byte-equal=true
tool=fm_branch_processed args={"through":7} expanded=false header-byte-equal=true
tool=fm_branch_processed args={"through":7} expanded=true header-byte-equal=true
tool=fm_branch_outcomes args={} expanded=false header-byte-equal=true
tool=fm_branch_outcomes args=undefined expanded=false header-byte-equal=true
all header byte-equal = TRUE
exit=0
############ VARIANT: mutant-collapsed ############
tool=fm_branch_outcomes args={"recent":2} expanded=false header-byte-equal=false
  stock : "\n                                                                                                    \n fm_branch_outcomes recent=2                                                                        \n                                                                                                    "
  actual: "\n                                                                                                    \n fm_branch_outcomes  recent=2                                                                       \n                                                                                                    "
tool=fm_branch_outcomes args={"recent":2} expanded=true header-byte-equal=true
tool=fm_branch_processed args={"through":7} expanded=false header-byte-equal=false
  stock : "\n                                                                                                    \n fm_branch_processed through=7                                                                      \n                                                                                                    "
  actual: "\n                                                                                                    \n fm_branch_processed  through=7                                                                     \n                                                                                                    "
tool=fm_branch_processed args={"through":7} expanded=true header-byte-equal=true
tool=fm_branch_outcomes args={} expanded=false header-byte-equal=true
tool=fm_branch_outcomes args=undefined expanded=false header-byte-equal=true
all header byte-equal = FALSE
exit=1
############ VARIANT: mutant-expanded ############
tool=fm_branch_outcomes args={"recent":2} expanded=false header-byte-equal=true
tool=fm_branch_outcomes args={"recent":2} expanded=true header-byte-equal=false
  stock : "\n                                                                                                    \n fm_branch_outcomes                                                                                 \n   recent: 2                                                                                        \n                                                                                                    "
  actual: "\n                                                                                                    \n fm_branch_outcomes                                                                                 \n    recent: 2                                                                                       \n                                                                                                    "
tool=fm_branch_processed args={"through":7} expanded=false header-byte-equal=true
tool=fm_branch_processed args={"through":7} expanded=true header-byte-equal=false
  stock : "\n                                                                                                    \n fm_branch_processed                                                                                \n   through: 7                                                                                       \n                                                                                                    "
  actual: "\n                                                                                                    \n fm_branch_processed                                                                                \n    through: 7                                                                                      \n                                                                                                    "
tool=fm_branch_outcomes args={} expanded=false header-byte-equal=true
tool=fm_branch_outcomes args=undefined expanded=false header-byte-equal=true
all header byte-equal = FALSE
exit=1
Evidence: Replicated in-suite whole-row fixture: real PASS, mutants FAIL (guard non-vacuous)

Source: Replicated in-suite whole-row fixture: real PASS, mutants FAIL (guard non-vacuous)

############ real ############
collapsed whole-row byte-equal=true
expanded whole-row byte-equal=true
in-suite fixture verdict = PASS
exit=0
############ mutant-collapsed ############
collapsed whole-row byte-equal=false
expanded whole-row byte-equal=true
in-suite fixture verdict = FAIL(guard would red)
exit=1
############ mutant-expanded ############
collapsed whole-row byte-equal=true
expanded whole-row byte-equal=false
in-suite fixture verdict = FAIL(guard would red)
exit=1
Evidence: tests/fm-wake-queue.test.sh under the widened bound (48 ok, EXIT=0)

Source: tests/fm-wake-queue.test.sh under the widened bound (48 ok, EXIT=0)

ok - an abandoned same-process lock hold is reclaimed; a parent's live hold is not
ok - without BASHPID a subshell cannot release or reclaim its parent lock and owns its own hold
ok - bounded acquire hands ownership to the waiting caller after contention
ok - presentation lock waits are bounded and retriable without weakening acknowledgement atomicity
ok - malformed presentation locks report acquire failure instead of contention
ok - a queue-lock deadline without a named live holder is contention, not an unsafe lock
ok - foreign secondmate queue alerts once per no-progress episode without age-only or cascade noise
ok - declared external-wait pause rows do not feed secondmate wake-loop escalation
ok - a reprovisioned queue generation starts a fresh no-progress interval
ok - an active turn defers the secondmate stall escalation without cancelling it
ok - secondmate stall markers reject symlinks without touching their targets
ok - stall publication acknowledgement closes the pre-marker crash window
ok - empty prefix mate cleanup preserves another mate's stall receipt
ok - an own-queue row that stops moving wakes the session once and acknowledges with the backlog
ok - fresh and advancing own-queue positions stay silent, so an aged row is the only thing that wakes
ok - an active turn defers the own-queue stall escalation without cancelling it
ok - a wake lost after its notification was appended is re-delivered without republishing
ok - an episode whose notification was appended before a crash is re-delivered without a second append
ok - a secondmate stall still wakes with its own reason, and the own-queue observation stays behind it
ok - self-announced appends suppress only their own bytes and fail toward waking
ok - historical annotations replay nothing already announced and keep everything new
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 1012321.1791021261.mDmQ3l
ok - concurrent append plus drain preserves durable records through acknowledgement
ok - signal written while no watcher runs is caught on next run
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 1053566.1791021277.mv6Qrd
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 task(s) in flight, but no live watcher process holds this home lock (last beat: 2s ago).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  watcher cycles: EMPTY - no readable cycle ledger at /tmp/fm-wake-tests.mxd4v2/stale/state/.watch-cycle-exits.log
●  This is a supervision warning only; the guarded operation WILL still run.
●  After draining queued wakes, repair a missing or failed watcher cycle with the Pi tool fm_watch_arm_pi, or restart Pi with -e /tmp/fm-wake-tangle-root.6DVGJq/.pi/extensions/fm-primary-turnend-guard.ts -e /tmp/fm-wake-tangle-root.6DVGJq/.pi/extensions/fm-primary-pi-watch.ts if the extensions are not loaded.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WARNING: queued wakes pending - drain them with bin/fm-wake-drain.sh before anything else.
ok - stale wake is queued before suppressor state is advanced
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 1057906.1791021281.lGDz9V
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 task(s) in flight, but no live watcher process holds this home lock (last beat: 2s ago).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  watcher cycles: EMPTY - no readable cycle ledger at /tmp/fm-wake-tests.mxd4v2/stale-stopped/state/.watch-cycle-exits.log
●  This is a supervision warning only; the guarded operation WILL still run.
●  After draining queued wakes, repair a missing or failed watcher cycle with the Pi tool fm_watch_arm_pi, or restart Pi with -e /tmp/fm-wake-tangle-root.6DVGJq/.pi/extensions/fm-primary-turnend-guard.ts -e /tmp/fm-wake-tangle-root.6DVGJq/.pi/extensions/fm-primary-pi-watch.ts if the extensions are not loaded.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WARNING: queued wakes pending - drain them with bin/fm-wake-drain.sh before anything else.
ok - a not-provably-working stale wake is queued before its suppressor is advanced
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 1061609.1791021285.y7669B
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
●  WATCHER DOWN - SUPERVISION IS OFF
●  1 registered custom check(s), but no live watcher process holds this home lock (last beat: 2s ago).
●  Trust the emitted supervision protocol for this harness; do not use shell & for watcher repair.
●  watcher cycles: EMPTY - no readable cycle ledger at /tmp/fm-wake-tests.mxd4v2/check/state/.watch-cycle-exits.log
●  This is a supervision warning only; the guarded operation WILL still run.
●  After draining queued wakes, repair a missing or failed watcher cycle with the Pi tool fm_watch_arm_pi, or restart Pi with -e /tmp/fm-wake-tangle-root.6DVGJq/.pi/extensions/fm-primary-turnend-guard.ts -e /tmp/fm-wake-tangle-root.6DVGJq/.pi/extensions/fm-primary-pi-watch.ts if the extensions are not loaded.
●━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WARNING: queued wakes pending - drain them with bin/fm-wake-drain.sh before anything else.
ok - registered custom check output is queued before cadence suppression
ok - concurrent drains replay until one post-handling acknowledgement consumes records
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 4 --recovery-generation 1067277.1791021291.M3uqOt
ok - drain collapses obvious duplicate heartbeat and signal records
ok - drain asserts watcher liveness: warns on a lapse, stays silent for a live watcher with a fresh beacon
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 8 --recovery-generation 1070650.1791021296.Cign8v
ok - structural signal enrichment is separate, deduped, home-local, and tier-zero for other wakes
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 13 --recovery-generation 1071973.1791021298.SqWNVj
ok - every readable unread status line is annotated in full while invalid status files preserve their raw wakes
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation 1074373.1791021301.heN7oX
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 2 --recovery-generation 1074373.1791021301.heN7oX
ok - slow annotation releases the append lock and a deleted status file fails open
ok - a branch-actor scoped ack never swallows an unacked main-owned row, and main's later drain sees exactly what remains
ok - main drain and acknowledgement exclude an active branch grant
ok - a branch-held row raises no queued-wake warning for main, and the same row is presented and acknowledged once the grant clears
ok - a queue that cannot be counted keeps the queued-wake alarm up
ok - structurally unusable rows are retired by main alone, leaving every remaining row presentable and acknowledgeable
ok - branch grant cannot take a row already claimed by main
ok - actor ownership filtering precedes same-key deduplication
ok - main reclaims rows granted to an exited branch owner
ok - a branch-actor drain with no eligible-row snapshot refuses loudly instead of draining nothing
WAKE_ACK_REQUIRED: after handling completes run bin/fm-wake-drain.sh --ack-through 1 --recovery-generation existing
ok - wake append publishes atomic recovery evidence before durable rows
ok - wake drain: generation-less legacy wakes are adopted and acknowledged
ok - wake drain: a stale acknowledgement cannot retire or consume a newer recovery episode
ok - wake drain: an acknowledgement that consumes nothing says so and names the exact command for the current wake
ok - wake drain: a branch acknowledgement that consumes nothing names the exact command for its granted wake
ok - wake drain: recovery acknowledgement failures are explicit and retryable
ok - interruptions preserve durable rows until post-handling acknowledgement
EXIT=0
Evidence: wait_for_exit limit=150 remains bounded (rc=124 + kill; prompt rc=0)

Source: wait_for_exit limit=150 remains bounded (rc=124 + kill; prompt rc=0)

wait_for_exit limit=150 (nominal 15s of 0.1s ticks) on a never-exiting process -> rc=124 elapsed=22s
waiter still alive after return: no
wait_for_exit limit=150 on an immediate-exit process -> rc=0 elapsed=0s
bounded=yes (returns 124 and kills the never-exiting waiter, returns promptly for an exiting one)
BOUNDED_OK
EXIT=0
Evidence: Semantic .github/workflows/ci.yml parse: 3 pinned pi install sites, 0 unpinned

Source: Semantic .github/workflows/ci.yml parse: 3 pinned pi install sites, 0 unpinned

Semantic parse of .github/workflows/ci.yml (js-yaml -> typed jobs/steps/run model)
Enumerating every step run line that installs @earendil-works/pi-coding-agent:

  job=tests-portable-parallel-1 step="Install the Pi package for the Pi extension tests" cmd="npm install -g @earendil-works/pi-coding-agent@1.0.0"
  job=tests-portable-parallel-2 step="Install the Pi package for the Pi extension tests" cmd="npm install -g @earendil-works/pi-coding-agent@1.0.0"
  job=tests-portable-serial step="Install the Pi package for the Pi extension tests" cmd="npm install -g @earendil-works/pi-coding-agent@1.0.0"

pi install sites pinned to exactly @1.0.0: 3
unpinned pi install sites: 0
all_pinned_exactly_1_0_0=true
Evidence: Pinned spec installs exactly 1.0.0 in an isolated npm prefix

Source: Pinned spec installs exactly 1.0.0 in an isolated npm prefix

npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead

added 122 packages in 6s
install_exit=0
resolved version: 1.0.0

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.

  • Live validation: ✅ go - 6 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Run tests/fm-pi-branch-extension.test.sh on installed pi 1.0.0: it exits 0 with all 42 cases ok and the Calm-off/stock render case green (the author's stated self-proof). ✅ pass live rerun-pi-branch-extension.log: 42 ok, 0 not ok, EXIT=0; line 1 'fm_branch_outcomes hides through ToolExecutionComponent while Calm-off and HTML export stay stock'.
The fm_branch_outcomes and fm_branch_processed call headers render byte-identical to pi 1.0.0's own stock fallback (real install), both collapsed and expanded. ✅ pass live render-call-header-visual.txt and adversarial-render-guard.txt (real variant: all 6 header comparisons true).
Adversarial: deliberately drift the mirrored header shape and confirm the suite's byte-equality guard fails, proving it is not vacuous. ✅ pass live adversarial-in-suite-fixture.txt: real=PASS, mutant-collapsed=FAIL on collapsed, mutant-expanded=FAIL on expanded; adversarial-render-guard.txt shows the caught byte diffs.
Run tests/fm-wake-queue.test.sh under the widened 15s wait_for_exit bound: it exits 0 with every case green and no assertion failures. ✅ pass live rerun-wake-queue.log: 48 ok, 0 not ok, EXIT=0.
Adversarial: the widened wait_for_exit bound stays bounded - a never-exiting process yields rc=124 and is killed, while an immediate-exit process yields rc=0 promptly. ✅ pass live rerun-wait-for-exit-bound.txt: rc=124 elapsed=22s waiter killed; rc=0 elapsed=0s.
The CI-pinned install spec resolves and installs exactly 1.0.0 (not a floating/latest version) when run by npm. ✅ pass live rerun-ci-pi-pin-install.log: install_exit=0, resolved version: 1.0.0; plus npm view @earendil-works/pi-coding-agent@1.0.0 version -> 1.0.0.
Every pi install site in .github/workflows/ci.yml pins exactly 1.0.0 (three shard jobs) with no unpinned install remaining, as GitHub Actions would install it. ⏸️ untested no GitHub Actions is the real consumer of the workflow and cannot be executed from this worktree/host: no GH Actions runner and no push/run authority. Verified instead by a semantic YAML parse into the j…
  • bash tests/fm-pi-branch-extension.test.sh -> EXIT=0, 42 ok, 0 not ok on installed pi 1.0.0 (author's self-proof)
  • Real installed-pi ToolExecutionComponent header byte-comparison: extension renderCall vs stock fallback for fm_branch_outcomes and fm_branch_processed, collapsed and expanded -> identical (6/6 cases)
  • Adversarial mutant replication of the in-suite byte-equality fixture: trailing-space collapsed drift and extra-indent expanded drift each red the comparison; unmutated extension passes
  • bash tests/fm-wake-queue.test.sh -> EXIT=0, 48 ok, 0 not ok under the widened limit=150 (15s) bound
  • Bounded probe of tests/wake-helpers.sh wait_for_exit at limit=150: never-exiting process -> rc=124 and killed; immediate-exit -> rc=0
  • Semantic js-yaml parse of .github/workflows/ci.yml walk of jobs/steps/run -> 3 pinned sites, 0 unpinned
  • npm view @earendil-works/pi-coding-agent@1.0.0 version -> 1.0.0; isolated-prefix npm install ...@1.0.0 -> install_exit=0, resolved version 1.0.0
  • Diff review: the test-file delta is only the five wait_for_exit ... 40 -> 150 timeout arguments; no assertion widened or deleted
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

CI installs pi with no version, so upstream 1.0.0 publishing moved CI by
itself; the red shards landed in files the change under test never touched.
Pi 1.0.0 renders a tool call's own header as title plus arguments
(createCallFallback now calls formatToolCallWithArgs), so the outcomes tools'
renderCall no longer matched Pi's stock fallback byte for byte and the
stock-render fixture went red. Mirror that shape here, because pi does not
export the helper and this repository's extensions import only the public
entry; the byte-equality fixture still guards it. Pin the pi version in the
workflow, and widen fm-wake-queue's wait bound from 4 to 15 seconds: bounded,
with room for runner load.
…s/fm-calm-pi-extension.test.sh at "calm mode was not off by default (missing: 'CALM_E2E_OUTPUT')". Root cause: pi 1.0.0 changed the default TUI to fullscreen/alternate-screen, so `tmux capture-pane -S -600` no longer returns the transcript rows above the viewport; the fixture's first snapshot therefore began mid-transcript (at CALM_EXPORT_FIND) and lost the earlier CALM_E2E_OUTPUT/CALM_EXPORT_GREP rows. Fix: pin `tuiMode: "regular"` in that fixture's e2e-config/settings.json (the same mode bin/fm-spawn.sh already pins for real pi launches), restoring the scrollback the capture helper was written against. No assertion was changed. Verified locally on pi 1.0.0: the previously failing CALM_E2E_OUTPUT assertion and all subsequent calm-off, Ctrl+O, and /calm snapshot assertions now pass, and the run advances to the test's Chrome-required export step; this host has no Chrome, so I could not run past that gate. Left unchanged: the other three pi launches in the file and the assertions themselves — those would only need edits if a separate 1.0.0 behavior beyond TUI mode breaks an assertion after the Chrome gate
… (tests/fm-calm-pi-extension.test.sh, assertion "rendered export DOM violated the Calm conversation boundary"). Root cause: this PR pins pi to 1.0.0, and 1.0.0 contains upstream commit b2bd111f2 ("add hidden-message toggle to HTML exports"). Before that commit, `display:false` custom_message entries were omitted from the HTML transcript; from 1.0.0 on they are emitted inside a CSS-hidden `<div class="hook-message hook-message-hidden">` shell that still carries the `[firstmate-synthetic-input]` type label (the H toggle reveals them). The old raw check `messages.includes("[firstmate-synthetic-input]")` therefore fired even though the row is not visible, so it no longer matches pi's contract. I confirmed this by reproducing the exact fixture: built the failure session, exported it with the installed pi 1.0.0 `exportFromFile` template, executed the template JS in jsdom, and ran the test's node block. Every other DOM check passes; the single failing condition is that label present in the hidden shell. The pre-edit line exits 1 on that DOM, and the edited line exits 0. Fix (smallest root-cause change; no assertion deleted): the boundary is visibility, not presence, so the check now requires every `[firstmate-synthetic-input]` occurrence to sit inside a `hook-message-hidden` shell (count of label occurrences equals count inside hidden hook-type shells). It still fails on a visible hook row or a label anywhere outside a hidden shell, and still accepts absence, so it keeps guarding the boundary while matching pi 1.0.0. No pi-side or Calm-side export hook exists to alter the exported DOM, so adapting this generated-artifact assertion is the only correct fix. Verified: `bash -n` OK; the extracted edited node assertion passes against the jsdom-rendered pi 1.0.0 export DOM. I also ran the full fm-calm-pi-extension.test.sh locally with a downloaded Chrome for Testing: all assertions before the export step pass (including the render-guard), but this aarch64 host's Chrome hangs on `--dump-dom` (even a trivial page never returns), so the post-Chrome assertions could not be executed locally; CI's Chrome did render in the failing run, so the fixed assertion is the one CI evaluates
@onyx-space
onyx-space merged commit f42a979 into main Oct 4, 2026
14 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.

1 participant