Repository navigation
Description
Current scope (maintainer, 2026-10-20)
Unscheduled. Re-measured on 2026-10-20 against Cursor pstack 0.15.29 (88d4751): 6 files verbatim, 3 clean merges, 3 needing review, 14 unmapped. That is down from 28 needing review at 0.15.25. At most 1 or 2 of the 3 review files are rule-shaped, and the static invariants in tests/skill-collision-repro.sh already guard the key divergences.
Build condition: a merge rehearsal that needs review on more than 10 files with at least a third of them rule-shaped, or a sync that drops a port divergence that the static invariants miss. scripts/upstream-audit.py, scripts/upstream-merge.py and the ledger file then need nonRuntime mappings in .claude/skills/verify-open-pstack/features/registry.json.
Original request
Goal
Record every intentional divergence from Cursor pstack in a checked-in ledger that the merge tooling applies and verifies.
Why (updated 2026-10-12)
- At the 0.15.17 sync point, 84 of 132 upstream-mapped files differ from Cursor and 1 is absent (measured 2026-10-12 against
978ca6e). UPSTREAM.mdholds the divergences as prose: 14 "Upstream-only exclusions" and 2 "Local port-patch ledger" entries (fix(reflect): resolve known Codex transcripts at the harness boundary #140, setup-pstack: honor CLAUDE_CONFIG_DIR and CODEX_HOME for its writes #120). Nothing checks them after a merge.- A dry run of the 0.15.20 sync (Sync Cursor pstack 0.15.20 as Open Pstack 1.7.0 #161) on 2026-10-12 produced 10 one-hunk conflicts. 3 are rule-shaped:
no-comments(TasktoAgent),create-verification-skill(.cursorto.claude), andunslop(the excludeddisable-model-invocationflag). 3 are hunks the port keeps on purpose. 4 need judgment.
Proposed shape
A machine-readable ledger with two kinds of entry:
- Rules. Substitutions and excluded lines, each with a pattern, files, reason and issue.
scripts/upstream-merge.pyapplies them to both upstream blobs beforegit merge-file, so a conflict caused only by a known rule merges clean. - Patches. Hunks the port keeps, each with an anchor, reason and issue. A check verifies them after the merge.
The 3-of-10 estimate comes from one small sample. Measure it again on the next sync.
Acceptance criteria
- The ledger lists each divergence with its file or glob, anchor or rule, reason and issue.
upstream-merge.pyapplies rule entries before the three-way merge. Replaying the 0.15.20 merge from the pre-syncmaincommit leaves fewer conflicts with the ledger than without it, and the PR reports both counts.- A check run in CI fails when a ledgered divergence no longer holds after a merge, or when a port file differs from upstream with no ledger entry.
- The exclusion list in
UPSTREAM.mdis generated from the ledger or checked against it. - Bun tests, strict typecheck, static invariants and plugin validation pass. This is repository tooling with no plugin runtime change, and the live gate records that.
Order
After #157 (registry U3), so that model slugs need no ledger entries. #106 depends on this issue.
Source: docs/plans/2026-10-01-triage-and-roadmap.md, section 3, item 3, and triage 2026-10-12.
Activity
ericlitman commentedon Oct 21, 2026
Not planned. The 0.15.29 sync needed review on 3 files, and on 2026-10-21
mainis level with Cursor's pstack: the audit finds nothing to merge. The static invariants intests/skill-collision-repro.shguard the key divergences. Reopen this when a merge rehearsal needs review on more than 10 files, or when a sync drops a port divergence that the static invariants miss.