Repository navigation
fix(bin): point non-checkout omp homes at fm <project> relaunch - #7155
Conversation
|
Friendly ping: this branch is ready for review, and the fork workflow runs still need approval from a maintainer before CI can run. Thanks. |
|
Speaking as Kun's firstmate: thanks @avivl, and thanks for the ping. I reviewed the diff and approved the fork workflow runs on The change reads well to me: the non-checkout omp guidance and the warning-only One thing is still needed from you before this can land: the PR's own live validation is 0 of 5 scenarios driven live (fixture tests only). Could you live-test it, for example in a disposable This is waiting on you (not a captain hold). Thank you for taking the time on this. |
|
Live evidence for the omp restart-hint change (head 8c24451642953372d7524d71e7303c4e3d99814b), driven against a real omp. omp version: omp/18.10.2 ( Columns:
Method: each tree was exported with
Scenario 1, commands and trimmed output (head): Scenario 2 (head and rebased): omp launched bare (FM_HOME unset, confirmed Scenario 3 (head): omp A ( Marker pid 69550 is A's real pid and 70006 is B's real pid ( Scenario 4 (all columns): Scenario 5 (all columns, identical): This confirms the failure the PR text describes: the bare launch attaches to the checkout home and is refused there, while the Tests on the rebased tree (feb5cb9d): Not driven live, or caveats:
CI note: the one failing shard in the approved run is Next step: I will push the rebase through no-mistakes so the head matches the rebased column. The scratch rebase applied with no conflicts, and both test files and the five scenarios pass on it. The pushed head may have a different sha than feb5cb9d because the pipeline rebases on its own. |
8c24451 to
9c821ea
Compare
|
Speaking as Kun's firstmate: thank you, @avivl. This resolves both things I asked for.
I re-read the diff against main. The relaunch-through- Contract-class: restore (my own read, unchanged). The repair guidance for a non-checkout omp home was the existing default path, and it gave advice that couldn't work. VISION: every rule aligns (unchanged). Where this stands: waiting on CI only, with nothing needed from you. If CI and the no-mistakes check come back green and it's still mergeable, it auto-merges. |
|
Friendly ping: all 20 checks on head 9c821ea are green and the PR is mergeable. Per your note of 2026-10-17 it was waiting only on CI. Thanks. |
|
Speaking as Kun's firstmate: this is merged. Thank you @avivl — really appreciate you taking the time on this. Thanks for the ping too, and sorry it sat after CI went green. Before merging I re-read head |
Intent
Upstream pull request #7155 (fork branch avivl/omp-restart-hint-upstream-pr on [email protected]:avivl/firstmate.git, current head 8c24451642953372d7524d71e7303c4e3d99814b) fixes firstmate's omp guidance. In a home other than the firstmate checkout, firstmate sessions were told to "restart omp inside this home", which does not work: omp's watcher and turn-end extensions load from the checkout's .omp/extensions/ and pick their home from the FM_HOME environment variable at launch (.omp/extensions/fm-primary-omp-watch.ts:139), and a bare omp or a /resume from the firstmate folder starts without FM_HOME, so the extension attaches to the checkout's own home and the arm tool is refused. The fix changes the guidance in bin/fm-supervision-instructions.sh, bin/fm-session-start.sh and docs/supervision-protocols/omp.md to say, for a home that is not the checkout, to exit omp and relaunch through
fm <project>(the launcher sets FM_HOME and --cwd), and adds a warning-only OMP_WATCH_CAUSE line to session start when the extension marker names a pid that is not the current session. When the home is the checkout itself the old wording is unchanged. The upstream owner's reviewer asked for two things: live evidence on a real omp, and a rebase because the branch is 22 commits behind main. The captain posted the live evidence (real omp 18.10.2, five scenarios, all passing on the PR head and on a clean scratch rebase onto main) as a comment, and approved this one upstream push with the words: approve the upstream push for pr://7155. The remaining work is to rebase the branch onto current origin/main and re-raise it through the no-mistakes pipeline once.What Changed
bin/fm-supervision-instructions.sh,bin/fm-session-start.shanddocs/supervision-protocols/omp.md: when the home is not the firstmate checkout, the omp guidance now says to exit omp and relaunch throughfm <project>, instead of "restart omp inside this home". The extension takes its home fromFM_HOMEat launch, and thefmlauncher sets it. When the home is the checkout itself, the wording is unchanged.bin/fm-session-start.sh: session start emits a warning-onlyOMP_WATCH_CAUSEline when the extension marker names a pid that is not the current session.tests/fm-session-start.test.shandtests/fm-supervision-instructions.test.sh: new cases covering the changed guidance and the newOMP_WATCH_CAUSEline.Risk Assessment
✅ Low: The change only alters diagnostic and guidance text, gated on whether the home is the checkout, and the one source consumer of the omp doc substitutes the new placeholders. The recorded round-1 decision (drop the unset-FM_HOME cause) is applied and the marker-pid cause stays warning-only.
Testing
I rendered the omp supervision protocol and repair line for a non-checkout home and for the checkout home. I also ran the supervision-instructions test file and the session-start tests, which run the real session-start script. All passed. I did not run a real omp primary here; the captain's posted omp 18.10.2 evidence covers that.
Evidence: Rendered omp guidance, non-checkout vs checkout home
Source: Rendered omp guidance, non-checkout vs checkout home
Evidence: omp session-start test results
Source: omp session-start test results
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.
FM_HOME=<tmp> bin/fm-supervision-instructions.sh --harness omp [--repair-line] vs env -u FM_HOME (rendered output captured)bash tests/fm-supervision-instructions.test.sh (all passed)Targeted run of three omp tests from tests/fm-session-start.test.sh: supervision block and diagnostic, checkout-home wording with no OMP_WATCH_CAUSE plus marker-pid cause, prelock marker acceptedFull bash tests/fm-session-start.test.sh also ran in the background and exited 0✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.