Skip to content

release: sync Cursor pstack 0.15.17 as Open Pstack 1.6.0 - #144

Closed
ericlitman wants to merge 3 commits into
ericlitman:mainfrom
nunoras:sync/cursor-pstack-0.15.17
Closed

ericlitman wants to merge 3 commits into
ericlitman:mainfrom
nunoras:sync/cursor-pstack-0.15.17

Conversation

@ericlitman

Copy link
Copy Markdown
Owner

Closes #143. Overlaps #128, which covers the 0.15.6 to 0.15.9 part of this range.

@nunoras wrote this sync on a fork branch. GitHub would not let a non-collaborator open the PR, so Eric opened it from their branch unchanged.

Summary

Cursor pstack moved from 0.15.5 to 0.15.17. This PR ports those changes to Claude Code and Codex and releases them as Open Pstack 1.6.0.

 plugins/pstack/skills/
+├── benchmark-checklist/          # vet a measured number before reporting it
+├── correct/                      # turn repeated agent mistakes into checks (typed only)
+├── ketchup/                      # catch up on everything since your last message (typed only)
+├── poteto-help/                  # pstack questions, rewritten for Claude Code and Codex (typed only)
+├── principle-explain-the-number/ # new Verification principle
 ├── poteto-mode/                  # fresh subagent by default, shorter index
 │   └── playbooks/                # hourly audit tick, ## PR headings, performance mantras
 ├── architect/                    # judge candidates by how an agent would change them
 └── 18 more skills, poteto-agent  # upstream prompt distillation

UPSTREAM.md lists what this sync leaves out, with a reason for each:

  • df58112, which drops Sol from every default and cuts the panels to Opus and Grok.
  • disable-model-invocation on principle leaves, figure-it-out, and benchmark-checklist, because poteto-mode routes to them by name.
  • The Cursor built-in PR tool paragraph, the shorter test principle, and the 40-line squash-body cutoff.
  • As before: docs/guide/, the Cursor manifest, and make-bot-ui.

Evidence

  • Before: on main, python3 scripts/upstream-audit.py --port origin/main --upstream cursor/main reports 67 upstream files changed since the recorded sync point (0.15.5).
    After: on this head, the same audit reports 0 changed files against 0.15.17.
  • Repository gates on head fbda698, run locally with Bun 1.4.0:
    • bun run test: 225 pass, 0 fail.
    • bun run typecheck: exit 0.
    • Manifest JSON parse: all four parse.
    • PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh: exit 0, and the verify-open-pstack helper suite passes 107 of 107.
    • claude plugin validate on the marketplace and the plugin: both pass.

Merge Danger

Door: two-way. This PR changes skill text and the plan checker's required markers. Reverting the merge commit restores 1.5.0 text. Tagging and releasing 1.6.0 is a separate step.

Blast Radius: wide.

Every pstack session in both harnesses loads the changed poteto-mode index, playbooks, and principles. A lost port adaptation would show up as a skill that names a Cursor tool or path, a skill the model can no longer invoke, or a role that dispatches to the wrong model. The plan checker now requires hourly and no longer requires standing orders or 30-minute, so existing plan files that follow the old skeleton fail the checker until they are updated.

What changed

The full change list is the 1.6.0 section of CHANGES.md. The highest-risk files are poteto-mode, the two autopilot playbooks, and scripts/check-plan.mjs. The five new skills are in the verify-open-pstack feature map, so this PR changes the verifier.

Verification

  • Bun tests, strict typecheck, static invariants, and plugin validation pass.
  • The exact candidate is installed in every affected harness.
  • The changed behavior passes from each real user surface.
  • The live-gate status on the final head links the evidence comment (installed version, surface, action, observed result).

Mergify does not queue a pull request without live-gate on its exact head. Do not merge, tag, release, or roll out without it.

Not verified

  • The installed-harness live test has not run. This PR changes the verifier, so the live test must run from a checkout of this head.
  • A file-by-file review against the port adaptations and exclusions is in progress.

🤖 Generated with Claude Code

Port the ten skill-content commits from 23e4138 through 978ca6e with
the Claude Code and Codex substitutions in CHANGES.md. Adds the
benchmark-checklist, correct, ketchup, poteto-help, and
principle-explain-the-number skills, and registers them in the
verify-open-pstack feature map.

df58112 (drop Sol from every default) is not applied. UPSTREAM.md
lists it and the other exclusions.
@mergify

mergify Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🟠 1 of 2 protections blocking · waiting on 🤖 CI

Protection Waiting on
🟠 Queue ready pull requests 🤖 CI
🟢 🚦 Auto-queue —

🟠 Queue ready pull requests

Waiting for

  • check-success=Unfret
  • check-success=live-gate
  • check-success=verify
Waiting checks: Unfret, live-gate, verify.

Automatically queue non-draft pull requests targeting main after verify, Unfret, and live-gate pass on the head.

  • check-success=Unfret
  • check-success=live-gate
  • check-success=verify
  • -draft

Show 1 satisfied protection

🟢 🚦 Auto-queue

When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.

  • -files~=^\.github/
  • base = main

@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 4/5

[Low impact] Version bump and documentation sync from upstream.

Fix the no-rebase shortcut before merging; it can land code without testing it against current trunk.

Findings

  1. P1 Checks miss new trunk code ▶
  2. P2 Help gives Codex wrong instructions ▶

Summary

Releases Open Pstack 1.6.0 with upstream skill changes through Cursor pstack 0.15.17.

  • poteto-mode routes work through updated playbooks and checks plans for an hourly schedule.
  • Agents get a checklist and principle for checking benchmark numbers.
  • Agents can turn repeated mistakes into checks.
  • Agents can catch up on what happened since the last message.
  • Users can ask for pstack help tailored to Claude Code and Codex.
  • Design and planning skills use refreshed guidance for evaluating and shaping agent work.
  • Review skills use updated steps for challenging ideas and judging review results.
  • The reflection workflow updates how agents find transcripts, review learnings, and apply changes.
  • The why skill refreshes how investigators gather and combine evidence about design choices.
  • Writing, TypeScript, and delegation skills use refreshed guidance.
  • Release metadata and project docs identify the Open Pstack 1.6.0 upstream sync.

Acknowledgments from ericlitman in the supplied PR description:

  • Old plan files failing the changed checker is known; they must be updated.
  • Removing the standing-objective substitute is intentional as part of the upstream sync.
  • Installed-app testing is deferred to the exact-head live-gate before merge or release.

Reviews (1) · Last reviewed commit: "release: sync Cursor pstack 0.15.17 as O..." · Reviewed by Greptile

4. **Swarm-verify every round before its merge.** A round starts at the owner's code-ready head SHA and at each later push that changes the PR's patch. At that SHA, fan out parallel independent verifiers per the **swarm** skill and aggregate to one verdict. The merge needs a clean verdict from the round whose patch matches the merge-ready head. Audit the receipts in the merge-ready report before the verdict. The lanes: re-run the gates at that SHA. Prove the load-bearing behavior live on the real surface the change touches (the `run` skill for CLIs and TUIs, `verify` for UIs, or a named driver where neither fits). Audit the diff, distrusting the PR body. Run the audit as two or more review lanes with the full brief. Give each lane one main focus, such as consumer parity with trunk, lifetimes and races, or data and config safety. **Regression lane against trunk.** Run the same load-bearing scenario on current trunk. If trunk does not have the feature, record that fact and gate the behavior the diff adds plus the end state the user waits for instead of pretending trunk can produce it. The live lane is the floor, and a verdict without it is not clean. No merge without the root's clean verdict. When the lanes return, send every proven finding against the PR to the owner in one fix-forward. A defect that a lane filed as a note is a finding. For each behavior finding, ask for a red test that covers every site with the same defect. Where no test can show the defect, ask for a repro receipt instead. Add that defect to the next round's review brief. The new head gets a fresh swarm and a fresh verdict, except for lane results that stay valid under the patch-id rule in `playbooks/shipping.md`.
5. **On a clean verdict the owner merges and takes the next item.** The owner merges only from a head freshly rebased onto trunk. Merge prep never comes before a round's lanes start, and it ends with a rebase onto current trunk right before the merge. After the merge-prep rebase, the owner reports the new head SHA. CI must pass on that head before the merge, and the patch-id rule decides whether the round's verdict still holds. A private-stack child reaches that state through Shipping step 4 after its parent merges. The merge-ready report records the verdict SHA and the current landing SHA. If trunk moves again before the merge, the patch ID rule in `playbooks/shipping.md` governs re-verification. A changed patch needs a new verdict. An unchanged patch keeps the verdict, but Shipping step 3 records the new `<landing-sha>` after current CI and mergeability pass. The owner lands its own PR only through Shipping step 5's server-enforced expected-head flow bound to `<landing-sha>`; never use a PR-number-only merge or unguarded auto-merge. The owner then picks up its next self-contained item from the queue. The operator's full-autonomy grant plus the root's clean verdict is the merge authorization that babysitting alone never has. Operator-named items stop at merge-ready and wait for the operator's click.
6. **Run the root layer.** A genuinely new raise of a pinned gate or budget value (a limit CI only lets tighten) needs your fresh countersign, granted only after verifier proof. If the operator's grant or standing orders cover approvals, that countersign is the approval. The owner records it in the form that the tool's approval contract allows, with a pointer to the root's countersign. A lane checks the record against that countersign. The root never gives or bypasses an approval that the forge enforces. Absorbing values that already landed on main is drift, not a raise. Run an audit tick over all owners roughly every 30 minutes. The tick is an observation cadence, never a lease, deadline, or cancellation threshold. Arm each tick as a real `/loop` in dynamic mode, which schedules its own wake-up rather than blocking on a sleep. Never leave the cadence to memory or lossy completion notifications. At each tick, re-read this playbook from disk (`skills/poteto-mode/playbooks/autopilot-full.md` under the installed plugin), then re-read the standing objective. Audit the operation against both. Fix drift during that tick and treat it as urgent. Probe each owner through its retained handle with a generic liveness or status check, and collect the decision trails. Count commits, pushes, PR or check deltas, store reports, and a live retained process as evidence. Elapsed time or the absence of a new side effect alone never proves a lane is stuck; implementation runs can remain healthy for 90 minutes or much longer. Stand a lane down only on affirmative failure evidence such as a dead process, failed handle, explicit error, or a caller-supplied external deadline. Each tick also runs this stuck test over the parent's background task list and every owner's `children.tsv`. Cancel a stuck lane through its retained handle. Whether or not the cancel succeeds, the root has the owner record it as stuck in `children.tsv` and, if its work is still needed, replace it. Each replacement that fails gets the same steps. The root takes both steps when the owner cannot. A stall never proves or drops the work. When merges batch, run a retro pass and a post-merge bot-comment sweep. End the tick only when no delegated work is left, even after the last merge.
5. **On a clean verdict the owner merges, and a fresh owner takes the next item.** The owner merges only from a head freshly rebased onto trunk. Merge prep never comes before a round's lanes start, and it ends with a rebase onto current trunk right before the merge. After the merge-prep rebase, the owner reports the new head SHA. CI must pass on that head before the merge, and the patch-id rule decides whether the round's verdict still holds. A private-stack child reaches that state through Shipping step 4 after its parent merges. The merge-ready report records the verdict SHA and the current landing SHA. Once that head is green and its patch ID matches the verdict's under the patch ID rule in `playbooks/shipping.md`, a later trunk move does not force another rebase. Right before the merge, fetch trunk through `<base-remote>` and check that `git merge-tree` of the head against current trunk is clean. Also check that no path in `git diff --name-only $(git merge-base HEAD "$base_remote/$trunk") "$base_remote/$trunk"` is a path the PR changes or a path that decides which CI runs for it, such as the repo's CI config paths. If either check fails, rebase again through the disarm, captured-SHA, and lease steps of step 2, report the new head SHA, wait for CI to pass on it, and repeat these checks. A changed patch needs a new verdict. An unchanged patch keeps the verdict, but Shipping step 3 records the new `<landing-sha>` after current CI and mergeability pass. The owner lands its own PR only through Shipping step 5's server-enforced expected-head flow bound to `<landing-sha>`; never use a PR-number-only merge or unguarded auto-merge. The owner then returns. A fresh owner picks up the next self-contained item from the queue, per poteto-mode's Subagents section. The operator's full-autonomy grant plus the root's clean verdict is the merge authorization that babysitting alone never has. Operator-named items stop at merge-ready and wait for the operator's click.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Checks miss new trunk code

The new no-rebase shortcut can merge code that was never tested with current trunk. A trunk change can alter an API, schema, or dependency in a file the PR does not edit. That passes the path check and git merge-tree, while CI on the unchanged PR head still tests the old trunk. The patch ID also stays unchanged, so the old verdict survives.

Test the combined PR head and current trunk before allowing this shortcut, or rebase and require CI on the new head.

- In Codex, ask for `pstack:poteto-mode` by name at the start of each task.
- In both, start each new task with `/poteto-mode` when it matters.

Mid-session, "new task" makes the mode match a fresh playbook. `/poteto-mode` already uses `poteto-agent` for the subagents its playbook steps spawn. To get the same style from a subagent of your own, spawn it with `subagent_type: "poteto-agent"`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Help gives Codex wrong instructions

The new help page tells users to spawn subagent_type: "poteto-agent" without limiting that advice to Claude Code. Codex has no such type, as this page and codex-tools.md both state. Codex users asking how to create a subagent can receive an instruction their app cannot use.

Qualify the Claude Code instruction and give Codex users the supported spawn_agent route, with instructions to read poteto-mode first.

@unfret-eal

unfret-eal Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

🛑 3 blocking findings

🔴 Critical · Verify the combined tree before skipping a rebase

🟡 Medium · Identify plugin-dev as a separate dependency

🟡 Medium · Preserve valid absence-only regression tests

Walkthrough

This PR moves Open Pstack from Cursor pstack 0.15.5 to 0.15.17 and bumps the Claude Code and Codex package to 1.6.0. It adds five skills: benchmark-checklist, correct, ketchup, poteto-help, and principle-explain-the-number. It also ports the upstream behavior changes, mainly fresh subagents by default, an hourly audit tick armed with `/loop 1h`, `##` PR body headings, performance mantras, and new architect red flags, along with upstream's prompt shortening across most skills. UPSTREAM.md records the commits it deliberately skips, such as the Sol removal in `df58112`. The plan checker now requires `hourly` and no longer requires `standing orders` or `30-minute`, and the PR updates the matching test. The author reports that unit, typecheck, and plugin-validation runs pass locally. The installed-harness live gate has not run.

Area What changes Review notes
Version and sync records Bumps manifests to 1.6.0 and updates README, UPSTREAM.md, NOTICE.md, and CHANGES.md to the 0.15.17 sync point, with the new exclusions. docs/reference.md still names the old sync point in one place.
New skills Adds benchmark-checklist, correct, ketchup, poteto-help (with prompting and recipe references), and the explain-the-number principle, and registers them in the verifier feature map.
Poteto-mode and autopilot playbooks Poteto-mode gives new work to a fresh subagent by default and shortens its principle and playbook indexes. The autopilot playbooks use an hourly `/loop 1h` tick and require a push after every verifiable unit. They also let a merge-ready head skip a rebase when `git merge-tree` is clean and trunk did not touch the PR's paths or CI paths. Verify the combined tree before skipping a rebase
Identify plugin-dev as a separate dependency
Plan checker check-plan.mjs replaces the `standing orders` and `30-minute` markers with `hourly`, and the PR updates the test to expect `hourly`. Plan files written to the old skeleton will fail the checker until updated.
Prompt distillation Condenses arena, how, why, interrogate, reflect, technical-writing, unslop, the principle leaves, and the why references while keeping the provider-dispatch contracts. TypeScript patterns switch to a schema-first Zod example. Preserve valid absence-only regression tests
Advisories (5)
  • 🔵 Low · Qualify principle visibility by harness · plugins/pstack/skills/poteto-help/SKILL.md:125
    The unconditional hidden-menu claim is false for the documented Codex 0.149.0 surface. docs/reference.md and issue #8 record that Codex lists principle skills despite user-invocable: false. A Codex user asking about those extra picker entries therefore receives an incorrect explanation. Distinguish Claude's hidden picker behavior from the known Codex limitation.
    Not blocking because: The error concerns how existing principle entries appear in the picker. It does not hide, disable, or misroute a skill, and the documented by-name invocation remains available in both harnesses.
  • 🔵 Low · Top-level glob misses current nested transcripts · plugins/pstack/skills/reflect/SKILL.md:22
    The new assertion that the preceding `*.jsonl` command covers nested and subagent layouts is false: that glob only matches files directly under `&lt;encoded-cwd&gt;`, not `&lt;id&gt;/&lt;id&gt;.jsonl` or `&lt;parent&gt;/subagents/&lt;child&gt;.jsonl`. On the documented current layout, Reflect therefore fails to locate the active transcript and falls back to a lossy digest, which can omit corrections or evidence from a long or compacted session.
    Not blocking because: The new defect is the false claim of recursive coverage. The actual lookup command and digest fallback are unchanged from base, so this edit does not introduce the alleged loss of transcript evidence or change what files are read.
  • 🔵 Low · Remove automate-me from the typed-only list · plugins/pstack/skills/poteto-help/SKILL.md:135
    automate-me has no disable-model-invocation flag, and its description explicitly matches natural-language requests to create or refresh a personal mode skill. Unlike the three new typed-only skills, it remains eligible for automatic invocation. This troubleshooting row incorrectly tells users that automate-me cannot load unless they type its command.
    Not blocking because: Users receive an inaccurate explanation of automatic loading, but the suggested explicit invocation still works. No invocation metadata changes, so automatic eligibility and the underlying workflow remain intact.
  • 🔵 Low · Provide a macOS core-count command · plugins/pstack/skills/benchmark-checklist/SKILL.md:16
    On macOS without GNU coreutils, this required preparation step fails with 'nproc: command not found' and supplies no core count. nproc is not a macOS system command, and the documented installation requirements do not include coreutils. Provide a platform-appropriate command, such as sysctl -n hw.logicalcpu on macOS.
    Not blocking because: The missing command causes a visible failure of one read-only diagnostic. It neither changes the benchmark nor supplies a fabricated core count, and the checklist separately requires evidence for the limiter and measured results.
  • 🔵 Low · docs/reference.md still states the 1.5.0 sync point · docs/reference.md:62
    This release bumps every manifest to 1.6.0 and moves UPSTREAM.md and README.md to pstack 0.15.17 at 978ca6e. This hunk also refreshes the skill count. However, docs/reference.md line 5 still says 'Version 1.5.0 is synced to Cursor pstack v0.15.5 at 12d587d…'. The Running on Codex 'Package surface' bullet still says 'The 23 principle-* leaves', but principle-explain-the-number makes 24. After merge, the technical reference reports the wrong version, sync commit, and leaf count. It contradicts UPSTREAM.md, which the same file cites as the exact sync contract.
    Not blocking because: The confirmed consequence is stale version, provenance, and inventory prose. The reference links the correct authoritative UPSTREAM.md record, and these prose values do not control installation, dispatch, or release gates.
Since the last review
  • New: Identify plugin-dev as a separate dependency
  • New: Verify the combined tree before skipping a rebase
  • New: Preserve valid absence-only regression tests
Repair prompt

Read the Unfret check run for ericlitman/open-pstack#144 at head fbda69833bde43617a363c5eeccc51480e1c5d48 (run panel:fbda69833bde43617a363c5eeccc51480e1c5d48:pibaKrWGndv:bAvTLG6nr9M, check). Use the check's App id and GET /repos/ericlitman/open-pstack/check-runs/114500898866; its output.text contains the structured result. Compare it with the current code and head, verify that each listed mandatory finding still applies, repair only those that do, honor the repository constraints, and validate the changes. Leave advisories and accepted risks alone. A manually resolved thread is not a waiver.

Details
Lane / stage Model Effort Outcome Duration
broad-gpt-5.6-sol-xhigh / review openai/gpt-5.6-sol → gpt-5.6-sol · primary xhigh succeeded 5 min 13 s
broad-opus-5.5-max / review anthropic/claude-opus-5-5 → claude-opus-5-5 · primary max succeeded 9 min 13 s
focal-gpt-5.6-sol-xhigh copy / review openai/gpt-6.1-sol → gpt-6.1-sol · primary xhigh succeeded 11 min 17 s
judge / judge openai/gpt-6-astra → gpt-6-astra · primary high succeeded 2 min 18 s

First review of this pull request.
3 reviewers finished.
Commit fbda698.
Check run.
Run: GET /unfret/run/panel:fbda69833bde43617a363c5eeccc51480e1c5d48:pibaKrWGndv:bAvTLG6nr9M.

@unfret review · @unfret status · @unfret help

@unfret-eal unfret-eal Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 3 blocking findings
🔴 Critical · Verify the combined tree before skipping a rebase
🟡 Medium · Identify plugin-dev as a separate dependency
🟡 Medium · Preserve valid absence-only regression tests
Check


Not in pstack:

- `run` (CLIs and TUIs), `verify` (UIs), `loop`, and `plugin-dev:skill-development` are Claude Code built-ins. [`codex-tools.md`](../poteto-mode/references/codex-tools.md) names the Codex equivalent of each.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Identify plugin-dev as a separate dependency

plugin-dev:skill-development is not a Claude Code built-in. docs/reference.md explicitly requires installing plugin-dev from claude-plugins-official, and pstack's manifest does not install it automatically. For a user who installed only pstack, this help answer omits the prerequisite and sends skill-authoring work to an unavailable skill. Also reported for this defect: - plugin-dev is incorrectly advertised as built in (plugins/pstack/skills/poteto-help/SKILL.md:106): plugin-dev:skill-development is a separately installed companion plugin, as documented in docs/reference.md, not a Claude Code built-in. A new user following this setup guidance will omit that dependency, and substantive skill-authoring or Reflect routes will fail when they try to invoke the unavailable skill. - poteto-help calls plugin-dev:skill-development a built-in (plugins/pstack/skills/poteto-help/SKILL.md:106): Line 106 lists plugin-dev:skill-development alongside run, verify, and loop as Claude Code built-ins. The Get set up install step (line 37) installs only pstack. docs/reference.md at this head says plugin-dev is a separate companion plugin from claude-plugins-official that users must install themselves. A user who follows /poteto-help setup never installs plugin-dev. When /reflect or the authoring playbook later hands off to plugin-dev:skill-development, no such skill exists, and the help skill tells the user it ships with Claude Code.

4. **Swarm-verify every round before its merge.** A round starts at the owner's code-ready head SHA and at each later push that changes the PR's patch. At that SHA, fan out parallel independent verifiers per the **swarm** skill and aggregate to one verdict. The merge needs a clean verdict from the round whose patch matches the merge-ready head. Audit the receipts in the merge-ready report before the verdict. The lanes: re-run the gates at that SHA. Prove the load-bearing behavior live on the real surface the change touches (the `run` skill for CLIs and TUIs, `verify` for UIs, or a named driver where neither fits). Audit the diff, distrusting the PR body. Run the audit as two or more review lanes with the full brief. Give each lane one main focus, such as consumer parity with trunk, lifetimes and races, or data and config safety. **Regression lane against trunk.** Run the same load-bearing scenario on current trunk. If trunk does not have the feature, record that fact and gate the behavior the diff adds plus the end state the user waits for instead of pretending trunk can produce it. The live lane is the floor, and a verdict without it is not clean. No merge without the root's clean verdict. When the lanes return, send every proven finding against the PR to the owner in one fix-forward. A defect that a lane filed as a note is a finding. For each behavior finding, ask for a red test that covers every site with the same defect. Where no test can show the defect, ask for a repro receipt instead. Add that defect to the next round's review brief. The new head gets a fresh swarm and a fresh verdict, except for lane results that stay valid under the patch-id rule in `playbooks/shipping.md`.
5. **On a clean verdict the owner merges and takes the next item.** The owner merges only from a head freshly rebased onto trunk. Merge prep never comes before a round's lanes start, and it ends with a rebase onto current trunk right before the merge. After the merge-prep rebase, the owner reports the new head SHA. CI must pass on that head before the merge, and the patch-id rule decides whether the round's verdict still holds. A private-stack child reaches that state through Shipping step 4 after its parent merges. The merge-ready report records the verdict SHA and the current landing SHA. If trunk moves again before the merge, the patch ID rule in `playbooks/shipping.md` governs re-verification. A changed patch needs a new verdict. An unchanged patch keeps the verdict, but Shipping step 3 records the new `<landing-sha>` after current CI and mergeability pass. The owner lands its own PR only through Shipping step 5's server-enforced expected-head flow bound to `<landing-sha>`; never use a PR-number-only merge or unguarded auto-merge. The owner then picks up its next self-contained item from the queue. The operator's full-autonomy grant plus the root's clean verdict is the merge authorization that babysitting alone never has. Operator-named items stop at merge-ready and wait for the operator's click.
6. **Run the root layer.** A genuinely new raise of a pinned gate or budget value (a limit CI only lets tighten) needs your fresh countersign, granted only after verifier proof. If the operator's grant or standing orders cover approvals, that countersign is the approval. The owner records it in the form that the tool's approval contract allows, with a pointer to the root's countersign. A lane checks the record against that countersign. The root never gives or bypasses an approval that the forge enforces. Absorbing values that already landed on main is drift, not a raise. Run an audit tick over all owners roughly every 30 minutes. The tick is an observation cadence, never a lease, deadline, or cancellation threshold. Arm each tick as a real `/loop` in dynamic mode, which schedules its own wake-up rather than blocking on a sleep. Never leave the cadence to memory or lossy completion notifications. At each tick, re-read this playbook from disk (`skills/poteto-mode/playbooks/autopilot-full.md` under the installed plugin), then re-read the standing objective. Audit the operation against both. Fix drift during that tick and treat it as urgent. Probe each owner through its retained handle with a generic liveness or status check, and collect the decision trails. Count commits, pushes, PR or check deltas, store reports, and a live retained process as evidence. Elapsed time or the absence of a new side effect alone never proves a lane is stuck; implementation runs can remain healthy for 90 minutes or much longer. Stand a lane down only on affirmative failure evidence such as a dead process, failed handle, explicit error, or a caller-supplied external deadline. Each tick also runs this stuck test over the parent's background task list and every owner's `children.tsv`. Cancel a stuck lane through its retained handle. Whether or not the cancel succeeds, the root has the owner record it as stuck in `children.tsv` and, if its work is still needed, replace it. Each replacement that fails gets the same steps. The root takes both steps when the owner cannot. A stall never proves or drops the work. When merges batch, run a retro pass and a post-merge bot-comment sweep. End the tick only when no delegated work is left, even after the last merge.
5. **On a clean verdict the owner merges, and a fresh owner takes the next item.** The owner merges only from a head freshly rebased onto trunk. Merge prep never comes before a round's lanes start, and it ends with a rebase onto current trunk right before the merge. After the merge-prep rebase, the owner reports the new head SHA. CI must pass on that head before the merge, and the patch-id rule decides whether the round's verdict still holds. A private-stack child reaches that state through Shipping step 4 after its parent merges. The merge-ready report records the verdict SHA and the current landing SHA. Once that head is green and its patch ID matches the verdict's under the patch ID rule in `playbooks/shipping.md`, a later trunk move does not force another rebase. Right before the merge, fetch trunk through `<base-remote>` and check that `git merge-tree` of the head against current trunk is clean. Also check that no path in `git diff --name-only $(git merge-base HEAD "$base_remote/$trunk") "$base_remote/$trunk"` is a path the PR changes or a path that decides which CI runs for it, such as the repo's CI config paths. If either check fails, rebase again through the disarm, captured-SHA, and lease steps of step 2, report the new head SHA, wait for CI to pass on it, and repeat these checks. A changed patch needs a new verdict. An unchanged patch keeps the verdict, but Shipping step 3 records the new `<landing-sha>` after current CI and mergeability pass. The owner lands its own PR only through Shipping step 5's server-enforced expected-head flow bound to `<landing-sha>`; never use a PR-number-only merge or unguarded auto-merge. The owner then returns. A fresh owner picks up the next self-contained item from the queue, per poteto-mode's Subagents section. The operator's full-autonomy grant plus the root's clean verdict is the merge authorization that babysitting alone never has. Operator-named items stop at merge-ready and wait for the operator's click.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Critical · Verify the combined tree before skipping a rebase

Disjoint paths and a clean merge-tree do not establish runtime compatibility. For example, a verified PR adds feature.mjs importing an export from api.mjs, then trunk removes that export. Both new checks pass, the unchanged PR retains its green CI and verdict, but the merged application crashes with a missing-export SyntaxError. This was reproduced with a clean merge-tree result. In repositories without an up-to-date-branch requirement, this exception permits landing code whose combined tree was never checked. Also reported for this defect: - Disjoint-path shortcut can merge an untested broken tree (plugins/pstack/skills/poteto-mode/playbooks/autopilot-full.md:9): When trunk changes an API in one file and the PR changes a consumer in another, the path sets are disjoint and git merge-tree is clean, so this new shortcut permits merging without rebasing or running CI on the combined tree. The PR's previously green head can therefore produce a compile failure only after it is combined with the new base and merged into trunk.

Comment thread plugins/pstack/skills/correct/SKILL.md Outdated

1. **Eliminate it with architecture.** Give each piece of state one owner and each task one supported way. Hide internals so the wrong import fails. Replace hand-synced lists with one source of truth. Delete old ways and dead code an agent would copy.
2. **Enforce it with types so the bad state can't be written.** If bad code still compiles, add a lint or CI check whose error names the file, type, or function to use instead. If the pattern is already common, fail only when a change adds more.
3. **Test the behavior.** Fix or delete any test that would still pass if every function it calls returned nothing.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Preserve valid absence-only regression tests

This blanket criterion marks useful negative-path tests for repair or deletion. The existing core.test.ts case 'ordinary no-runtime has no install requirement' passes when completeEvidence returns nothing, yet correctly fails if documentation-only verification starts requiring installation. The retained test-behavior principle explicitly preserves such tests and requires a relevant defect probe. Following this new instruction can delete meaningful regression coverage merely because the required outcome is absence.

Autopilot-full skipped the merge-prep rebase when the paths were
disjoint and git merge-tree was clean. That can still land a combined
tree that breaks at runtime, so the skip now needs a forge that tests
the head merged with current trunk.

poteto-help called plugin-dev:skill-development a Claude Code built-in
and gave Codex users the poteto-agent subagent type. It now names
plugin-dev as a separate install and gives Codex the spawn_agent route.

correct told agents to delete absence-only tests. It now keeps those
that fail on a relevant defect, matching the test-behavior principle.

docs/reference.md now states 1.6.0, the 0.15.17 sync commit, and 24
principle leaves. UPSTREAM.md records each divergence.
@ericlitman

Copy link
Copy Markdown
Owner Author

Superseded by #145, which carries @nunoras's two commits unchanged plus one commit that fixes the review findings on this PR. The live gate needs a branch in this repository, so this fork PR could not be verified. Thank you for the sync.

@ericlitman ericlitman closed this Oct 11, 2026
danpal35 pushed a commit to danpal35/open-pstack that referenced this pull request Oct 11, 2026
Exclude upstream 23e4138's Autopilot-full rule that merges a green head
without another rebase after trunk moves. A clean `git merge-tree` and
disjoint paths do not prove the combined tree builds, so step 5 keeps
re-verifying through the patch ID rule. UPSTREAM.md and docs/reference.md
record the exclusion.

Point `correct` step 3 at principle-test-behavior-not-implementation so it
keeps negative-path tests, matching the port's test principle.

Fix poteto-help's Codex subagent advice, the plugin-dev dependency, and
the typed-only skill list. Stop Reflect claiming its glob lists nested and
subagent transcripts. Correct two UPSTREAM.md attributions, file the
post-1.5.0 changes under 1.6.0, and refresh the stale version, principle
count, and /goal row in docs/reference.md.

Refs ericlitman#143, ericlitman#144.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Sync Cursor pstack 0.15.17 as Open Pstack 1.6.0 (branch ready on a fork)

2 participants