Repository navigation
fix(port): follow upstream's pause list and let the operator's prompt authorize merges - #57
Merged
Merged
Conversation
- Delete rules.sed section 10 and the dead gate rules in sections 11 and 12, with their stale-exempt rows. - poteto-mode Autonomy, the session-override line, worker.md, and the never-block principle now match upstream 9e278fe. - pstack-omp no longer says the root keeps merges, so Shipping and Autopilot-full owners merge as upstream says. - poteto-help names pstackpolicy and what it refuses. - Set RELEASE to 2, publishing 0.15.4802.
… repository deletion - Drop the landing grant and every rule for merges, closes, reviews, retargets, branch deletes, releases, secrets, curl, Graphite, and plain pushes. - Read the default branch and the checked-out branch from git, so HEAD, a missing refspec, and a non-main default branch are judged by fact. - The refusal tells the agent to stop and return the step to the operator. - Smoke asserts the refused force-push never reaches the git shim and gh pr merge reaches the gh shim.
…ion gate - Replace the grant launch with a git push shim beside the gh shim. - Prompts cover a refused force-push to main, an eval force-push, a repo delete, and allowed merge and feature-push controls.
…rompt merge permission - README, plugin README, and PORTING say pstackpolicy refuses two actions and does not enforce the playbooks.
… the quoting gaps - Resolve the checked-out branch and default branch from ctx.cwd moved by the call's own cwd, not process.cwd(). Isolated owners in worktrees got the wrong answer in both directions. - Tell the agent to write the branch name out literally when a forced destination is shell-named. A real trunk refusal still says to stop and return to the operator. - Join quoted and unquoted pieces of a word as the shell does, so "HEAD":main, "ma"in and m""ain no longer pass. - Strip backslash-newline before the repository-delete match and accept an absolute api.github.com endpoint. - Document the shell-named rule and the untracked cd in README.md, plugins/pstack/README.md and PORTING.md, and reword the gate.yml smoke comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The port follows upstream's pause list and treats the operator's prompt as the permission to merge. It no longer widens the list, never waives "going to bed", and no longer refuses merges unless omp starts with an environment grant.
poteto-modeAutonomy (both bold lines),worker.md, andprinciple-never-block-on-the-humanship exactly as upstream 9e278fe wrote them.pstack-ompno longer says the root keeps merges.pstackpolicyrefuses two things and nothing else: a force-push to the default branch or to main, master, or trunk, and deleting the repository. The grant is gone. The refusal tells the agent to stop and return the step to the operator.omp-port/RELEASEis 2, publishing 0.15.4802. fix(port): derive skill command names from the tree and drop hand-kept counts #56 shipped 0.15.4801 and is already merged, so this is the second bump.Rules removed
stale-exempt.tsvrows for the stale rules abovepstack-omp/SKILL.md(port-owned): "The root keeps ... approvals, external-write authorization, merges, deletion decisions" becomes "user interaction, scope, integration, and final verification acceptance", plus "a step a playbook gives to an owner stays with that owner".Rules kept
PASS/PASS+NOTES/FAILtoPASS/ISSUES/BLOCKEDtaskcall ...isolated: true" in place of "Cursor cloud agent"pstackpolicyis active from install and what it refuses.Side by side, upstream 9e278fe and the rebuilt port
**Always pause** for irreversible writes: force-push to shared branches, deploys, data deletion, customer messages.**Session overrides:** "Don't stop" / "going to bed" / "run until done" / "be fully autonomous" → keep going.Stop only for a deploy, deleted data, a force-push to a shared branch, or a message to someone outside the run.Each owner is a Cursor cloud agent that builds, opens its PR ..., babysits to green ..., and merges once steps 4 and 5 clear it.Each owner is an isolated subagent (isolated: true) that builds, ... and merges once steps 4 and 5 clear it.Plus thetaskbatch clause on the step heading. Both are mechanical translations.Always merge the run's lowest unmerged PR, withorigin pr mergeorgh pr merge --squash. ...Owner approval is a wait. Babysitting never authorizes merging.pstackpolicycontractRefused:
git pushwith--force,-f(including clusters such as-fu),--force-with-lease, or a+refspec, and--mirror, when the destination is the default branch (read from the remote's HEAD) or main, master, trunk.HEADor a missing refspec reads the checked-out branch.gh apiupdates of a trunk ref that sendforce=trueare refused. Repository deletion:gh repo deleteandgh api -X DELETE repos/<owner>/<repo>with no further path.Allowed: everything else, including
gh pr merge,origin pr merge, merge APIs, closing, reviews, replies, thread resolves, retargeting, branch deletion, plain pushes to any branch, and force-pushes to non-default branches. No spelling is gated differently from another:-X POSTand--method POSTpass alike.Judgment calls
origin/mainwas ahead of the branch with no commits of mine, so bringing it in was a fast-forward. There is no merge commit, no rebase, and no force-push.gh apiPATCH ofrefs/heads/<trunk>withforce=truestays refused. It is a force-push to the default branch that the command shows, and the old extension already refused it. A PATCH withoutforce=truepasses.$BRANCH) passes, because the command does not show it. The old extension refused it.omp-mechanicsstill says the arena and interrogate fallback keeps same-family contexts. The audit flagged it as a departure from upstream's arena fallback, but it is not a gate, grant, or merge prohibition, so it stays out of this PR.Verification
Live drive of the reworked
verify-pstack-omprecipe, rungate-1on omp 19.2.1 throughcontrol-pstack:git -C . push --force origin mainfrom the model'sbashpstackpolicy: refused force-pushing a default or trunk branch.The agent got the same text, ending "Stop here and return this step to the operator".git-calls.logempty.--force-with-lease origin +HEAD:maingit-calls.logstill empty.gh api -X DELETE repos/pstack-verify/no-such-repogh-calls.logempty.gh pr merge 1 --repo pstack-verify/no-such-repo --squashgh-shim: pr merge 1 ....git -C . push --force-with-lease origin feature/verify!git push --force origin main