Repository navigation
Conversation
…ay deny rules The tracked worker overlay now carries omp bash.patterns deny rules, which omp enforces even under --auto-approve, so a launched omp worker's bash tool cannot merge a PR (gh/gh-axi pr merge, stack merge, the REST and GraphQL merge calls), run sudo, or push to a main/master default branch, while its own task branch push still runs. The overlay comments, the fm-spawn header, and the omp harness reference record the limits: bash tool only (eval can still spawn a shell), command text as typed (scripts, bash -c, env or assignment prefixes sidestep it), and omp workers only. tests/fm-omp-worker-deny-live-e2e.test.sh replays fm-spawn's real launch flags against the installed omp with a scripted local model, so it spends no tokens and runs by default wherever omp is installed.
…t-ref real-model proof The live guard now pushes the task branch to a remote named no-mistakes, the push every no-mistakes worker makes, and the verification record cites the real-model run repeated against the final exact-ref overlay.
Cloning the gate from origin copied the task branch the earlier push had already placed there, so the case passed even when the push was refused.
|
Speaking as Kun's firstmate: thank you @AokDesu! Giving omp workers hard refusals for PR merges, sudo and default-branch pushes, and documenting their limits this honestly, is careful work. Contract-class: new-default (my own read of the tip). VISION: authority / spine (a hard refusal path under Review: I read the whole diff. It changes deny rules, docs, and a live guard that uses a localhost scripted model, gated default-on where omp, node and git are installed. Nothing loosens a permission, and nothing touches workflows or secrets. CI: run 38749977476 is still going. "Behavior tests (Herdr)" failed in |
|
The CI run for head ea797ed (https://github.com/kunchenguid/firstmate/actions/runs/38749977476) ended with "Behavior portable serial 2" cancelled; the other 20 checks passed. I can't rerun jobs on this repository from my fork. Could you rerun the cancelled job when you have a moment? Thanks! |
|
Speaking as Kun's firstmate (OSS triage): thanks @AokDesu for the nudge. I've re-run the cancelled Behavior portable serial 2 job once more (run Re-checked head Contract-class (my own read, unchanged): new-default. Every omp worker and secondmate session gets deny rules for PR merges, sudo and default-branch pushes. In those sessions, the overlay's VISION.md: all sections align in direction (it strengthens a refusal path between a worker and a merge), but it is a default-on change to worker permissions, so under "Authority is explicit" this is Kun's call. Status: this is now with Kun for a merge-or-leave decision. It isn't waiting on you. Nothing more is needed from you unless Kun asks. |
Intent
On 2026-10-14 the captain chose option 1 of the omp-overlap review ("I will go with your recommendation and start saveguard validation."): add deny rules to firstmate's omp worker settings (
.omp/fm-worker-overlay.yml, using omp's own approval controls that still hold under--auto-approve) so omp workers cannot merge a PR, use sudo, or push to the default branch; today those rules exist only as instructions in the brief. Known limits were stated to him: omp's eval tool is not covered by bash patterns, command-text patterns can be sidestepped through a script, the rules cover omp workers only, and no worker has broken these rules so far. Firstmate deferred the work until after his exam. On 2026-10-15 he gave his one-time OK for this change to go to the firstmate project upstream ("5.ok"). After the first validation, he accepted the two behaviours the PR documents (the overlay's bash patterns replace his own omp bash deny rules inside worker sessions, and omp second mates are covered by the same rules) and said: "Good, resume the PR". He then approved resetting the local branch to the pushed PR head: "approve local reset."What Changed
.omp/fm-worker-overlay.ymlnow carriesbash.patternsdeny rules that refusegh/gh-axi pr merge,gh stack merge,gh apimerge calls,sudo, andgit push(includinggit -C <dir> push) tomain/master. The rules hold under--auto-approve. Task-branch pushes such asmaintenance-xorfm/x:main-fixstill run. The overlay'sbash.patternsreplaces anybash.patternsin the captain's own omp config for the session. The rules also apply to omp secondmates, because the overlay is passed on every Firstmate-launched omp session.bin/fm-spawn.shheader and the omp harness-adapter reference (.agents/skills/harness-adapters/references/harness/omp.md) now document the rules and their limits:bash -c,envwrappers,git -c k=v push,git --no-pager pushandgit push --all/--mirrorsidestep them.mainormasteris refused whole.ghcall that merely mentionspr mergeis refused, as is agh apiPUT whose path contains/merge.tests/fm-omp-worker-deny-live-e2e.test.sh, which replays the spawn's launch flags against the installed omp. It is registered in the live family inbin/fm-test-run.sh.docs/verification/runtime-backends.mdgains a "Worker refusals" section recording the verification on omp 18.11.0.Risk Assessment
✅ Low: The change adds deny rules and docs, plus a live guard that runs without a real model, and the last commit fixed the gate-remote vacuity. The remaining limits are documented and match recorded decisions.
Testing
I ran the default-on live guard with real omp 18.11.0 and the exact launch flags fm-spawn builds, using a scripted local model that spends no tokens. Both cases pass. With a sabotage deny rule for the gate push added, the gate case fails with "refused the worker's push of its task branch to the no-mistakes gate" and "Blocked by bash pattern", so the case is no longer vacuous. An ad-hoc driver confirmed the plan's edge scenarios.git push no-mistakes main,HEAD:main,-u … HEAD:masterand+fm/x:refs/heads/mainwere refused and left the gate empty.git push no-mistakes <branch>, baregit push no-mistakes,git push -u no-mistakes HEAD, and the branches fm/fix-main, main-x, fm/master-fix and mastery-y all ran and moved the gate ref. Origin's main and master never changed, and no stub was hit. The doc no longer says "every no-mistakes worker". The overlay at HEAD is identical to the one at 70ef7583, which the doc cites as the final exact-ref overlay. I could not check the doc's claim that the real-model proof ran "under the captain's own config", because the transcript doesn't show the HOME or config used. I did not re-run the proof's real-model transcript itself. Theompwrapper in ~/.local/bin fails under the guard's isolated HOME (mise config untrusted), so I put the real mise-installed omp binary first on PATH for these runs; that is an environment workaround, not a change defect.git push no-mistakes,git push -u no-mistakes HEAD, branches containing main/master) are not refused;git push no-mistakes mainandHEAD:mainand similar are refu…Evidence: guard run (both ok)
Source: guard run (both ok)
Evidence: sabotage control (gate case fails)
Source: sabotage control (gate case fails)
Evidence: edge scenarios
Source: edge scenarios
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.
git push no-mistakes,git push -u no-mistakes HEAD, branches containing main/master) are not refused;git push no-mistakes mainandHEAD:mainand similar are refu…bash tests/fm-omp-worker-deny-live-e2e.test.shat ea797ed6 against real omp 18.11.0, scripted local model: both ok linesSabotage control: added{match: "git push no-mistakes*", approval: deny}to the overlay, reran the guard, then reverted the file withgit checkoutAd-hoc edge driver (temporary test, deleted afterwards) that replays the real fm-spawn launch flags against real ompRead the runtime-backends.md diff and compared the overlay with the commit the doc cites (git diff 70ef7583 HEAD -- .omp/fm-worker-overlay.yml, empty)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.