Skip to content

sync: upstream cursor/plugins 101b274 to f2bad52 (pstack 0.15.29) - #24

Merged
leegmoore merged 8 commits into
limfrom
sync/upstream-0.15.29
Oct 22, 2026
Merged

leegmoore merged 8 commits into
limfrom
sync/upstream-0.15.29

Conversation

@leegmoore

Copy link
Copy Markdown

Syncs pstack from upstream cursor/plugins 101b274 to f2bad52 (pstack 0.15.25 to 0.15.29). Per Lee's call in the 2026-10-20 retro, everything comes in, sharpen included. Each upstream commit is logged in FORK-SYNC-LOG.md under "Sync 2" as take, adapt or skip.

What changes for agents

  • Formal verification. New skills create-formal-verification-skill and maintain-formal-verification-skill. setup-pstack gains step 8, which offers the first. poteto-help, its recipes, the README and the guide mention both.
  • ketchup. Lists every item waiting on the user with its pick, evidence and risk, and never cuts items to fit a word count.
  • sharpen. Back to upstream's version: four questions, then the rewritten prompt. It no longer does the task.
  • typescript-best-practices. A brand comes from a type guard, not as.
  • Docs. Upstream's plain-language pass on the guide and README, and scripts/check-pstack-docs.mjs, which diffs the docs against the skill tree.

T3 adaptations (FORK.md rows)

  • Skill visibility. Both formal verification skills, ketchup and sharpen end their descriptions with "Use only when the user or another skill names it." and carry no disable-model-invocation.
  • Visuals. ketchup keeps inline screenshots and recordings and the html_render page in place of Mermaid and /visualize.
  • Install. Claude Code plugin install text, custom-mode wording and the harness doc changes (1b80080) are left out. poteto-help keeps its per-user install steps, with the new formal verification offer added to step 2.
  • Version bumps are left out, as in sync 1.

The docs check found three bundled skills the README never listed (control-cli, control-ui, deslop), so the README table now lists them. FORK.md moves the sync point to f2bad52 and adds the docs check to the sync checks.

Verification

  • node scripts/check-t3-port.mjs: clean, 0 pending. Before the descriptions were fixed it flagged both formal verification skills as hidden and not named-only, so the check covers these files.
  • node --test scripts/check-t3-port.test.mjs: 32 pass.
  • node scripts/check-pstack-docs.mjs: 0 problems.
  • bun test in pstack/skills/poteto-mode/scripts: 190 pass.
  • git log f2bad52..upstream/main -- pstack is empty.

PR B (the retro changes) is based on this branch.

🤖 Generated with Claude Code

leegmoore and others added 6 commits October 21, 2026 22:10
Upstream 0317eb8 (cursor#700), taken unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of upstream 019a6a2 (cursor#704). The guide and README take upstream's
plain-language pass, and scripts/check-pstack-docs.mjs comes in as is.
Left out: the Claude Code plugin install text and custom-mode wording
(Install row), and the generated harness tree.

The check found three skills the fork bundles that the README never
listed (control-cli, control-ui, deslop, copied from cursor-team-kit),
so the README table now lists them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of upstream 16541c6 (cursor#692) and bc14437 (cursor#708). Every item waiting
on the user is listed with its pick, evidence and risk, and items are
never cut to stay under a word count.

Adapted for T3: screenshots and recordings stay inline, and diagrams
and charts stay on the html_render page, in place of Mermaid and
/visualize (Visuals row). The description keeps the named-only ending
without disable-model-invocation (Skill visibility row).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of upstream 4382e68 (cursor#709), f9be7aa (cursor#715), 6b78e9f (cursor#721),
7b353f7 (cursor#716) and the guide line from d457567 (cursor#724).
create-formal-verification-skill and maintain-formal-verification-skill
come in with upstream's text. setup-pstack gains step 8, the formal
verification offer. poteto-help, its recipes, the README and the guide
mention both skills.

Adapted for T3: both descriptions end with the named-only sentence and
drop disable-model-invocation (Skill visibility row). poteto-help keeps
the fork's per-user install steps and T3 note, with upstream's new
setup offer added to its step 2 (Install row). The guide's Claude Code
install line is left out (Install row). Version bumps are left out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Port of upstream 75fabac (cursor#712) and 88d4751 (cursor#729), taken over the
fork's do-the-work version at Lee's call in the 2026-10-20 retro.
/sharpen asks four questions, then hands back the rewritten prompt and
leaves the user's choices open. README, guide and poteto-help follow.

Adapted for T3: the description keeps the named-only ending without
disable-model-invocation (Skill visibility row). Version bump left out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Records each upstream commit from 101b274 to f2bad52 as take, adapt or
skip, and adds check-pstack-docs.mjs to the checks a sync runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T03:24:06.511461Z 5a30519 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Author

pstack-verdict: PASS head=408b02f65e1091f3bc432d38d0dd82083b7b07f5 base=a3bd4953325509fd5772e52b248aa88c671a8009 by=codex/gpt-6.1-sol

Independent counterpart verification against the general brief and PR 24 section, Lee's recorded decisions, the author's brief, shipping step 1, and FORK.md. I did not author this patch. Origin is unavailable here, so verification used GitHub. The PR still has the requested head and base.

No blocking findings.

All 15 upstream commits in 101b274..f2bad52 are accounted for, with no missing or extra sync-log rows.

  • 0317eb8 taken. The type-guard branding guidance is present; the patterns file matches upstream byte for byte.
  • a968159 already satisfied. All 59 skill names match their folders. The omitted harness-generator check is explained under the Install row.
  • 1b80080 skipped with the logged Install-row reason. The fork uses the per-user install rather than the Claude Code plugin adapter and generated tree.
  • 019a6a2 adapted. The docs refresh and byte-identical docs checker are present. Install and custom-mode omissions match the logged reason.
  • 16541c6 adapted under Visuals and Skill visibility. Ketchup lists every waiting item with the evidence, recommendation and risk needed to decide.
  • bc14437 taken. Ketchup explicitly forbids cutting or shrinking items to meet a word count.
  • 4382e68 adapted under Skill visibility. The create-formal-verification skill's body matches upstream exactly.
  • 0b8e952 skipped with the logged version-bump reason.
  • 75fabac taken through its explicitly logged superseding sharpen rewrite.
  • 0148b78 skipped with the logged version-bump reason.
  • f9be7aa adapted under Install. Setup step 8 matches upstream exactly; help, recipes and guide include the formal-verification offer.
  • 6b78e9f taken. The TLA+ default and real-code generated-input fallback are present in the upstream-identical create skill body.
  • 7b353f7 adapted under Skill visibility. The maintain-formal-verification skill's body matches upstream exactly.
  • d457567 adapted. The guide includes the updated tool-choice guidance; the version bump is explicitly omitted.
  • 88d4751 adapted under Skill visibility. Sharpen's body matches upstream exactly and returns the rewritten prompt instead of performing the task.

Both new skills are visible, named-only, and have no disable-model-invocation key. Ketchup retains html_preview then html_render, inline captures and T3 capture tools, with no Mermaid or /visualize instructions. No unlogged reactive rules or unrelated arena changes were introduced.

Verification passed in a detached worktree at the requested head.

  • node scripts/check-t3-port.mjs, clean with zero pending entries.
  • node --test scripts/check-t3-port.test.mjs, 32 passed.
  • node scripts/check-pstack-docs.mjs, zero problems.
  • bun install --frozen-lockfile followed by bun test in pstack/skills/poteto-mode/scripts, 190 passed and zero failed.
  • git diff --check, clean.

Parent-versus-head check used a separate worktree at the recorded merge base. The new docs checker detects three missing README skill entries on the base and zero problems on head. The existing Bun harness tree is identical at base and head. Additional probes confirmed that a broken titled Markdown link, hiding the new create skill, and removing the new maintain skill's named-only restriction each fail for the expected reason. Every probe was restored and the final checks passed.

Both worktrees and their installed test dependencies were removed. Nothing was installed into ~/.agents or ~/.claude, and no merge was performed.

@leegmoore

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 408b02f65e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…ill path in the formal verification skills

Codex review on PR 24: the maintain skill's edit scope forbade the scratch break its
own step 5 requires, and the create skill never said where the project skill lives.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@leegmoore

Copy link
Copy Markdown
Author

pstack-verdict: PASS head=85c86fd7f754b2c20dc74cc5245a6c36d72fcfe4 base=a3bd4953325509fd5772e52b248aa88c671a8009 by=codex/gpt-6.1-sol

Independent counterpart review of the single commit 408b02f..85c86fd, building on the previous PASS at comment 6331281259. I did not author this change. Reviewed both complete skills and create-verification-skill in a detached worktree at the requested head. Origin is unavailable; used GitHub.

No findings in the change.

  • r4344208407: maintain-formal-verification-skill now explicitly permits only step 5's temporary negative-control break and requires reverting it before the run ends. This agrees with step 5's "Then drop the break", the prohibition on weakening properties to hide bugs, and the final requirement to keep verification updates separate from product fixes. No conflicting instruction remains within that skill.
  • r4344208410: create-formal-verification-skill now specifies .agents/skills/<name>/SKILL.md. This matches create-verification-skill's .agents/skills/verify-<app>/SKILL.md convention and preserves the frontmatter and project-local requirements. Nothing elsewhere in either skill specifies a conflicting destination.
  • Confirmed exactly one commit and two one-line edits since the previous verdict. The Bun tools subtree is identical at both heads (a28ded07fe0acc8775ce58035fb6523fb09219b0).

Checks at 85c86fd: check-t3-port clean (0 pending entries); its 32 tests passed; check-pstack-docs reports 0 problems; Bun suite 190 passed, 0 failed; both incremental and whole-PR git diff --check clean.

Verification-process deviation: the first Bun run encountered missing commander imports, while its CLI tests automatically invoked the existing bootstrap's frozen-lockfile dependency install inside the disposable worktree. I should have checked that behavior before running under the no-installs constraint. The subsequent run passed all 190 tests. Those dependencies and the worktree were removed. Nothing was installed into ~/.agents or ~/.claude; no product edits, merges, or production changes were made.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 85c86fd7f7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…aintain report updated and bug together

Codex review on PR 24 (r2): the create skill forbade the scratch break its own handoff
check needs, and the maintain skill asked for one outcome while allowing two.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@leegmoore

Copy link
Copy Markdown
Author

pstack-verdict: PASS head=5a3051955f344398a6c6ee5cb09b1edfdb46b817 base=a3bd4953325509fd5772e52b248aa88c671a8009 by=codex/gpt-6.1-sol

Independent counterpart review of the single commit 85c86fd..5a30519, building on PASS comment 6331851637. Author: Claude Opus 5.5; I did not write these changes. Read both skills in full in my own detached worktree and checked their instructions against both review threads and the earlier 85c86fd edits. Origin is unavailable; used GitHub.

No findings.

  • PRRT_kwDOVFKwsc6vCPAA: create-formal-verification-skill now permits the temporary real-code break required by its handoff check. The exception is limited to that check and requires dropping the break. The handoff still requires restoring the original result, including any genuine findings; weakening the property or hiding a product bug remains forbidden. Its project-local .agents/skills/<name>/SKILL.md destination, frontmatter, coverage and sync-commit requirements remain consistent.
  • PRRT_kwDOVFKwsc6vCPAE: maintain-formal-verification-skill permits updated plus bug as the sole combined outcome, and updated implies a pass only when it is not also a bug. This agrees with the existing combined-outcome paragraph, steps 3–6, and the report requirements: stale verification can be updated faithfully and then expose a real product bug. Blocked checks still cannot advance their sync commit. The earlier exception for step 5's temporary negative control, its required reversion, and separation of verification updates from product fixes remain intact.
  • Exactly one commit changes only these two skills. The Bun tools subtree is identical at parent and head (a28ded07fe0acc8775ce58035fb6523fb09219b0).

Checks: check-t3-port clean (0 pending entries) and check-pstack-docs 0 problems at both parent and head; head's 32 port-check tests passed; frozen-lockfile dependency install in the disposable worktree and Bun suite completed with 190 passed, 0 failed; incremental and whole-PR git diff --check clean.

The worktree and its local dependencies were removed. Nothing installed into ~/.agents or ~/.claude; no product edits, merges, production changes, or other-thread actions.

@leegmoore
leegmoore merged commit 484652b into lim Oct 22, 2026
leegmoore added a commit that referenced this pull request Oct 22, 2026
…te, workflow setup, three contradictions (#25)

* sync: upstream cursor/plugins 101b274 to f2bad52 (pstack 0.15.29) (#24)

* fix(pstack): make a brand with a type guard, not as

Upstream 0317eb8 (cursor#700), taken unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(pstack): port upstream's docs refresh and docs-vs-tree check

Port of upstream 019a6a2 (cursor#704). The guide and README take upstream's
plain-language pass, and scripts/check-pstack-docs.mjs comes in as is.
Left out: the Claude Code plugin install text and custom-mode wording
(Install row), and the generated harness tree.

The check found three skills the fork bundles that the README never
listed (control-cli, control-ui, deslop, copied from cursor-team-kit),
so the README table now lists them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(pstack): list every waiting item so each ketchup call is decidable

Port of upstream 16541c6 (cursor#692) and bc14437 (cursor#708). Every item waiting
on the user is listed with its pick, evidence and risk, and items are
never cut to stay under a word count.

Adapted for T3: screenshots and recordings stay inline, and diagrams
and charts stay on the html_render page, in place of Mermaid and
/visualize (Visuals row). The description keeps the named-only ending
without disable-model-invocation (Skill visibility row).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(pstack): add the formal verification skills and offer them in setup

Port of upstream 4382e68 (cursor#709), f9be7aa (cursor#715), 6b78e9f (cursor#721),
7b353f7 (cursor#716) and the guide line from d457567 (cursor#724).
create-formal-verification-skill and maintain-formal-verification-skill
come in with upstream's text. setup-pstack gains step 8, the formal
verification offer. poteto-help, its recipes, the README and the guide
mention both skills.

Adapted for T3: both descriptions end with the named-only sentence and
drop disable-model-invocation (Skill visibility row). poteto-help keeps
the fork's per-user install steps and T3 note, with upstream's new
setup offer added to its step 2 (Install row). The guide's Claude Code
install line is left out (Install row). Version bumps are left out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(pstack): restore /sharpen to rewriting the prompt

Port of upstream 75fabac (cursor#712) and 88d4751 (cursor#729), taken over the
fork's do-the-work version at Lee's call in the 2026-10-20 retro.
/sharpen asks four questions, then hands back the rewritten prompt and
leaves the user's choices open. README, guide and poteto-help follow.

Adapted for T3: the description keeps the named-only ending without
disable-model-invocation (Skill visibility row). Version bump left out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(fork): log sync 2 and move the sync point to f2bad52

Records each upstream commit from 101b274 to f2bad52 as take, adapt or
skip, and adds check-pstack-docs.mjs to the checks a sync runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(pstack): allow the negative-control break and name the project skill path in the formal verification skills

Codex review on PR 24: the maintain skill's edit scope forbade the scratch break its
own step 5 requires, and the create skill never said where the project skill lives.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(pstack): let the create skill's handoff break the code, and let maintain report updated and bug together

Codex review on PR 24 (r2): the create skill forbade the scratch break its own handoff
check needs, and the maintain skill asked for one outcome while allowing two.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

* fix(retro): record each model a thread ran on, and stop the backup when gitleaks is missing

register takes --model <provider>/<model>@<from>, repeatable, where
<from> is a run ordinal from t3_thread_read's recentRuns or a date. Every
model is kept in order, so a thread that changed lead models shows each
one. REGISTRY.md and the round README list them.

The backup used to treat a missing gitleaks as no hits and push. It now
fails the scan step, pushes nothing, says so on stderr and heads
REGISTRY.md with the failure until a write backs up cleanly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(reflect): record what happened and apply nothing

Lee's decision in the 2026-10-20 retro: reflect saves and summarizes in
a few lines, surfaces only product or ops decisions that can't wait,
and applies nothing. Approval, filing and skill edits move to the retro
round's open and close.

The three reviewer briefs now ask for what happened, with evidence and
a classification (bad port, bad application, contradiction, genuine
gap), not principles routed to skills. The synthesizer checks and merges
those observations by incident instead of sorting proposals into
Accepted, Rejected and Backlog. The save step records each model the
thread ran on. README, guide and poteto-help follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(poteto-mode): wake on schedule_task in every lead, and keep resume notes in the store

Three installed instructions contradicted the role file and the
resume-note hook (2026-10-20 retro, step 1):

- autonomous-run step 2, autopilot-full and multi-phase-plan told a
  Claude lead to use /loop or Monitor. The role file's Waking and
  polling section says those die when the session restarts, so every
  lead now uses T3's schedule_task. check-plan.mjs stops requiring the
  literal /loop 1h marker and requires schedule_task instead.
- pause-safely wrote the resume note to /tmp. It now goes to
  ~/.local/state/pstack/resume/<session>.md, which
  ~/lim-v2/bin/resume-note-hook reads after a compaction, and
  session-pickup looks there.

autonomous-run also says each heartbeat retests the blocker it reports
before repeating it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(poteto-mode): make the plan the record of what done means

From the 2026-10-20 retro. The plan already held the verify boxes, the
fix bar and the scope, but later stages did not read it back, so
deferrals piled into tickets and scope cuts reached Lee as his own
discovery.

- multi-phase-plan keeps the per-PR verify boxes and adds an optional
  Verify, model block for a PR whose risk is the order of events
  (queues, Stop, retries, restarts), run with the project's formal
  verification skill. A new Appendix E lists scope cuts and splits later
  work into decided no, each with its reason, and owed. Close the
  program files tickets only from owed and names every scope cut.
- autopilot-full closes out from that list and names the scope cuts in
  its reply.
- bugbot-triage: a deferral that says a race cannot happen carries the
  model check's result when the plan has a Verify, model block, and
  review cost alone is not a reason to defer.
- check-plan.mjs checks the new blocks and appendix, and prints each
  PR's verdict box ids. plan-boxes.mjs holds the fence and box rules so
  the merge gate reads plans the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(merge-gate): refuse a verdict that omits a plan box or has an unsigned skip

Lee's merge-gate decision in the 2026-10-20 retro: each PR gets a short
must-verify list from its plan, the approver may waive an item with a
reason on the PR, and findings outside the list stay the approver's
call.

- shipping step 1: under the pstack-verdict line, the verdict lists each
  required box of the PR's plan section as done, n/a with a reason, or
  skipped. A skip needs the lead's signed pstack-skip line on the PR,
  and until then the verdict is not a pass.
- merge-gate takes --plan <file> --plan-pr <id> and adds a Plan boxes
  requirement. It refuses a verdict that omits a required box, a box
  line it cannot read, n/a or skipped with no reason, and a skip no one
  with a role in the repo signed outside the verdict comment. Skips are
  checked with no plan given too.
- Tested on GC2's real verdict
  (liminal-ai/t3code-v2#18, issuecomment-6262808190), kept verbatim in
  fixtures/gc2-verdict.md, against a plan fixture with GC2's 16 boxes.
  The gate refuses it. Run against the real plan in the pstack store,
  merge-gate --check refuses it the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(poteto-mode): hand single-task work back through ketchup

The autopilots already end by catching the operator up per the ketchup
skill. The build playbooks that hand finished work back did not:
autonomous-run, feature, bug-fix, refactoring, perf-issue, hillclimb,
visual-parity and shipping now do, keeping each playbook's own content.
Read-only and planning playbooks (investigation, the forensics, eval,
prototype, multi-phase-plan) keep their replies, since the answer is
the reply.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(poteto-mode): set up a thread workflow right after picking the playbook

Lee's decision in the 2026-10-20 retro: once the playbook is picked and
the agent has decided how to use it, the agent sets up a T3 thread
workflow from a template or open-ended, fitted to the actual work in a
handful of consolidated steps, and tells the user it is set up. A step
that waits on the user is asked in chat while the user is there, and
the question tool is for getting their attention when they are away.

Every workflow ends with a cleanup step. The lead lists what it
remembers creating and the scope it worked in, a cleanup subagent
scours that scope and deletes what is clearly from the run, and the
user is asked only about the rest.

The pstack-store todo file stays as the fallback where workflows are
off. session-pickup reads the thread's workflow, and FORK.md's Todo
list row says so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(retro): the backup finds gitleaks through GITLEAKS_PATH or ~/lim/service

The verifier's FAIL on #25 showed the installed scanner at
~/lim/service/gitleaks/8.30.1/bin is not on PATH, and GITLEAKS_PATH had no
effect. These tests fail at d59628c.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(retro): resolve gitleaks from GITLEAKS_PATH, PATH, then ~/lim/service

The backup ran bare `gitleaks`, so on a host where the scanner is installed
but not on PATH every push stopped at the scan step. A GITLEAKS_PATH that
does not run fails closed rather than falling back, and the not-found error
names each place it looked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(merge-gate): a skip the verifier signs in a separate comment is refused

Reproduces the verifier's finding on #25: a Codex PASS+NOTES verdict with
perf skipped, then a separate 'pstack-skip: perf by=codex/gpt-6.1-sol' comment,
exits 0 with WOULD MERGE at d59628c. Every agent posts as one GitHub account,
so only by= tells the verifier from the lead. Also pins that a skip line with
no signer never counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(merge-gate): a skip signed with the verifier's by= does not count

findSignedSkips excluded only the verdict comment itself, so the verifier
could accept its own skip by posting a second comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(check-plan): plans written before the record of done keep their checks

At d59628c the running limhealth-next port plan fails the new Owed, scope
cut, schedule_task and Later work requirements, and an existing appendix
whose title mentions later work is taken for the new one. These tests fail
there: a plan without the template's opt-in keeps the checks it had, the
template opts in, and only the exact new title counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(check-plan): the later-work checks apply only to plans that opt in

The template's How to read this now writes "This plan is the record of
done.", and only a plan with that line must carry the Owed, scope cut and
schedule_task close-out and the Later work appendix. Other plans keep the
checks they were written under, /loop 1h included. The appendix is
"## Appendix. Later work and scope cuts", found by that exact title, so a
plan's own Appendix E, such as the operator's reserved calls, is never
read as it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(merge-gate): plan box ids, stale box lines and duplicate boxes

Codex's four findings on acda474, each failing here: lanes indented in the
plan get no ids, bold text inside a verify block drops the boxes after it,
box lines above the counted verdict line still count, and a box listed twice
passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(check-plan): check-plan and the merge gate read blocks and boxes with one parser

plan-boxes.mjs now owns the block and box reading both use. A block changes
only at a recognized block heading, so bold text such as **Linux.** inside a
verify block keeps the boxes after it. A box is nested only when it sits
inside the list item above it, so lanes indented one to three spaces get
their live ids, and check-plan checks lanes, perf items and empty blocks
against the same top-level boxes the gate requires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(merge-gate): count only the box lines under the verdict line, each box once

Box lines above the counted verdict line belong to an older verdict an edit
left behind, so they no longer count toward the current one. A box listed
more than once is refused, since the verdict then does not say which status
holds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(merge-gate): the lead waives a skipped box on the gate run, not in a PR comment

Every agent posts as the same GitHub account, so no PR comment can show
that the lead accepted a skip. Two fixes that read a by= field in a
comment both failed: a verifier could sign its own skip, and then an
older verifier's comment could sign a later verifier's skip.

The lead is the only agent that runs the gate to merge, so the waiver
moves onto that run: --accept-skip <id>=<reason>, repeatable. The gate
accepts a skipped box only when the run waives it with a reason. Before
it merges, it posts one PR comment listing each waived box and reason,
and a new waived column in runs.tsv records them. An empty reason, a
bad id, a repeated id, or a box the verdict did not skip is a usage
error. pstack-skip: parsing is gone, and shipping and multi-phase-plan
tell the lead to use the flag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

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.

1 participant