Repository navigation
fix: handle Pi 1.1 and 1.2 supervision events correctly - #7216
kunchenguid merged 17 commits into
Conversation
…notification ownership
|
Speaking as Kun's firstmate: thank you @dar1us8. This is careful work, and the SDK 1.1 narrowing correction plus the real-SDK custom-trigger probes are exactly the evidence this needs. What I checked: the tip CI: I approved the fork runs after the diff review: Contract-class (mine): restore. The documented Overlap, for visibility: the same two handlers are also fixed in #7200, a standalone split of the #6327 hunk that was opened earlier, and inside #6327 and #6760. The differences I see: here, custom runs return before Next: this is waiting on CI. Nothing is needed from you right now, and nothing merges while main is red. |
…ream 7216) Carries upstream pull request kunchenguid#7216 at head commit 819cefa, squashed from its four commits: 7922116 fix(pi): retain custom-event handling and processing cancellation 2705f90 fix(pi): identify custom triggers before legacy prompt narrowing 1114ae0 no-mistakes(test): Correct branch fixture retirement and verify real notification ownership 819cefa no-mistakes(document): Clarify Pi event boundaries and verification scope The fork drops this commit when upstream merges its own fix.
|
Speaking as Kun's firstmate: thanks for the refresh, @dar1us8. Judging only the delta since the 2026-10-13 stamp ( Delta: rebase onto current main plus dual-SDK (Pi 1.1.0 / 1.2.0) production-consumer typechecks moved into the lint-owned phase, live-e2e and docs clarifications for prompt-bearing vs no-prompt custom boundaries. Production change remains inside the two Contract-class (mine): restore — same as before. The documented VISION.md: every rule still aligns; fleet-outlives-vendor is the strongest fit (verified Pi adapter across 1.1 and 1.2). #7242: related only in that both touch Pi supervision. #7242 is the watcher Overlap (unchanged): #7200 / #6327 / #6760 still share related handler hunks — only one should land. Next: fork CI re-approved for this head ( |
…notification ownership
…ntext verification
…dependency claims
…wnership pointers
… inlining EXIT cleanup. Also fixed a reproduced macOS npm-prefix/lockfile path failure without changing dependency pins or assertions. Canonical targeted lint, strict TypeScript 5.9.3 checks against Pi 1.1.0 and 1.2.0, and success/failure cleanup checks pass. Both behavior-shard failures were upstream npm ETARGET errors in workflow steps unchanged from base; no workflow/runtime changes warranted. Hosted CI remains for the outer executor
52394cc to
0977548
Compare
What Changed
Risk Assessment
✅ Low: The compatibility correction is narrowly scoped, preserves existing ownership and cancellation controls, and introduces no substantiated material defects or unauthorized behavior.
Testing
Both SDK live guards, matched baselines, portable lifecycle regressions and actual transcript rendering passed. Requests, histories and rendered HTML were retained; disposable resources were removed. Both baselines also passed, so historical failures remain unexplained. Strict dual-SDK compilation is still required outside Test.
Evidence: Runtime report and limitations
Evidence: SDK 1.1 live transcript
~/firstmate/data/factum-v2-validation/nm-home-1.84.0/evidence/01M504SGGF0TMF7JYA26Y5RWJJ/sdk12-live.log)~/firstmate/data/factum-v2-validation/nm-home-1.84.0/evidence/01M504SGGF0TMF7JYA26Y5RWJJ/runtime-observations.json)Evidence: Actual Pi active-transcript render
Evidence: SDK versions, runtime hashes and package integrity
~/firstmate/data/factum-v2-validation/nm-home-1.84.0/evidence/01M504SGGF0TMF7JYA26Y5RWJJ/baseline-sdk11-live.log)~/firstmate/data/factum-v2-validation/nm-home-1.84.0/evidence/01M504SGGF0TMF7JYA26Y5RWJJ/baseline-sdk12-live.log)Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
npm install --prefix .runtime-validation/sdk-1.2.0 --install-strategy=nested --ignore-scripts --no-audit --no-fundwith pinned public SDK siblingsbash tests/fm-pi-branch-live-e2e.test.shagainst installed SDK1.1.0 and workspace-local SDK1.2.0, including fresh isolated HOME and default agent-directory runsUnchanged target live guard against archived base 9b1ada0401f9fa7ea3ee07a8a7f005a99ce0de58 under both SDKs; retained initial fixture failures and completed-baseline resultsbash tests/fm-pi-branch-extension.test.shbash tests/fm-pi-watch-extension.test.shBoth SDK live guards with observation-only serialization of actual streaming events, retry state, and model/effort results; original assertions and time limits unchangednode .runtime-validation/delivery-probe.mjsunder both SDKs, retaining actual InteractiveMode rendering and reopened stateVerified fixture-process cleanup and removed disposable dependencies, baseline copies, and capture files; final worktree clean✅ No issues found.
FM_PI_BRANCH_LIVE_E2E=1 FM_PI_PACKAGE_DIR=/opt/homebrew/lib/node_modules/@earendil-works/pi-coding-agent bash bin/fm-test-run.sh tests/fm-pi-branch-live-e2e.test.shwith isolated worktree-local fixtures.npm install --prefix "$PWD/.runtime-validation/sdk12" --install-strategy=nested --ignore-scripts --no-audit --no-fundwith SDK 1.2.0 and matching Pi sibling pins.FM_PI_BRANCH_LIVE_E2E=1 FM_PI_PACKAGE_DIR="$PWD/.runtime-validation/sdk12/node_modules/@earendil-works/pi-coding-agent" bash bin/fm-test-run.sh tests/fm-pi-branch-live-e2e.test.shwith raw session evidence capture.git archive 230db82145cf1376ad212b1dd4ae8c11e95fecc7 | tar -x -C .runtime-validation/baseline; ran the current live guard against that base production tree with both SDKs.bash bin/fm-test-run.sh tests/fm-pi-branch-extension.test.sh tests/fm-pi-watch-extension.test.sh --jobs 1.node .runtime-validation/render-probe.mjs: executed the existing delivery probe with unchanged assertions and printed its actual rendered transcript.Retained provider requests, vendor events, persisted histories, package provenance and rendered HTML; verified recorded fixture-arm PIDs were absent.rm -rf .runtime-validation; confirmed a clean worktree at the target commit. No compiler, lint, broad-suite, authentication, publication or CI commands ran.✅ **Document** - passed
✅ No issues found.
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
✅ No issues found.