Repository navigation
chore(plugin): delete comments from the runner, the Codex transcript resolver and the startup hook (#218) - #221
Conversation
…resolver and the startup hook (#218) Applies the AGENTS.md no-comments rule to the plugin files this repository authored: poteto-mode's runner and its provider adapters, the Codex transcript resolver and its test, and the SessionStart hook. Comments that state a provider CLI, Git, Git for Windows or Codex fact stay, and so does the receipt's writerSandbox field doc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The snapshot helper swallowed every read error to skip directories. It now reads only paths that stat as regular files, so a real read error fails the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge Protections🟢 All 2 merge protections satisfied — ready to merge. Show 2 satisfied protections🟢 Queue ready pull requestsAutomatically queue non-draft pull requests targeting main after verify, Unfret, and live-gate pass on the head and every review thread is resolved.
🟢 🚦 Auto-queueWhen all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
Live evidence: Open Pstack
|
|
[Low impact] The PR appears safe to merge; no actionable defect was found in the changed code. SummaryRemoves comments from the startup hook, Codex transcript resolver, and runner files. The only executable change makes the resolver test’s
Reviews (1) · Last reviewed commit: "test(reflect): read only regular files i..." · Reviewed by Greptile |
✅ No blocking findingsWalkthroughThis PR deletes about 150 explanatory comments from repository-authored plugin
Since the last review
Details
Reviewed the whole pull request. @unfret review · @unfret status · @unfret help |
There was a problem hiding this comment.
🛑 1 blocking finding
🔵 Low · RELEASED_PAIRS append-only rule deleted without encoding
Check
The sweep deleted RELEASED_PAIRS' "append-only" comment. The rule is now a test: the first 20 entries, the pairs released by 1.15.0, must keep their SHA-256, so removing, reordering or rewriting one fails and appending passes. A digest instead of a copy keeps pinned model names out of the test, as the static pin invariant requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live evidence: Open Pstack
|
Merge Queue Status
This pull request spent 11 seconds in the queue, including 1 second running CI. Required conditions to merge
|
Part of #218. Applies the
AGENTS.mdno-comments rule (#219) to the plugin files this repository authored.Summary
Scope: every changed file is absent from Cursor's pstack at the sync commit
99743e9. Upstream-derived files (watch-pr/,orch/,bootstrap.ts,check-plan.mjs,worktree-audit.sh,run-hook.cmd) are untouched.What stays: 82 comment blocks. Each names a provider CLI's behaviour (agy, Amp, Claude Code, Codex, Cursor, Devin, dsh, Grok, OpenCode), a Git or Git for Windows behaviour, or the receipt's public
writerSandboxfield. Examples: Git older than 2.31 has no--path-format, Git localizes its messages, and dsh launcher flags must come before--json.Two edits are not deletions:
snapshot()swallowed every read error to skip directories. It now reads only paths that stat as regular files, so the emptycatch {}is gone.RELEASED_PAIRS' comment said the list is append-only, and nothing enforced that. Aregistry.test.tstest now holds the count and SHA-256 of the 20 pairs released by 1.15.0, so the list's first 20 entries must keep that digest. Removing, reordering or rewriting a pair fails the test; appending passes. It stores a digest, not a copy, because the static pin invariant forbids pinned model names such asclaude-opus-5outside the registry.Evidence
#comments dropped) and compares them with comments removed. Oneb99918, all 28 files arecomment-only.9286600adds thesnapshot()change.snapshot()change:bun test resolve-codex-transcript.test.ts: 26 pass, 0 fail.bun runner/registry/render.ts --checkexits 0, somodel-catalog.mdand the native agents are unchanged.Live gate features. The run started 6 sessions from trusted
mainand passed (evidence). The code is unchanged, so each feature loads one changed file from the installed candidate:codex:runner: runs the installedpstack-runnerfrom a Codex parent. Itslinked-worktree-writercase reachesdiscoverSharedGitDirinrun.ts, whose comments changed.claude:hook:startupandcodex:hook:startup:hooks/session-startchanged. The mandate must still reach a new session in both harnesses.codex:skill-invocation:reflect(2 cases: locate-transcript, digest-fallback): Codex's Reflect runs the changedresolve-codex-transcriptresolver. Claude's Reflect does not run it.Merge Danger
Door: two-way
Blast Radius: none
The changed lines are comments, plus one test helper. A revert restores the comments.
Acceptance criteria
UPSTREAM.md,CHANGES.mdandNOTICE.mdidentify as local adaptations or additions." Verified: every changed path is absent frompstack/at99743e9.NOTICE.mdlistsresolve-codex-transcript*as authored for this port, and the runner is port-authored.verifyand the other required checks." See Gate results. CIverify, Unfret andlive-gatereport on this PR.snapshot()empty catch) and encodes one constraint (RELEASED_PAIRSis append-only). The other 12 reshapes, plus 4 constraints whose comments were deleted and that nothing enforces, go into the follow-up issue.Gate results
On head
30d7a45:bun run test(502 tests)bun run typecheckbun run static(166 tests)claude plugin validate plugins/pstackbun runner/registry/render.ts --checkEarlier heads hit timing failures at load averages of 488 to 876 on the gate host. On
9286600those wererunLane > counts the Grok retry delayand the verifier's version-only manifest test, and each passed alone.Review rounds
9286600(full panel): one blocking finding. TheRELEASED_PAIRSappend-only rule lost its comment and had no encoding, which breaks theAGENTS.mdencode-then-delete rule. Class:verdict-changing. Fix: the digest test above. The test passes on the real list, fails with one pair deleted frommodels.ts, and passes with one pair appended.Not verified
🤖 Generated with Claude Code