Repository navigation
verify: enforce live-gate feature selection (#200) - #201
Conversation
verify.sh run now refuses a named feature outside the PR's classified reach, prints the planned session count before any install, and refuses more than 12 sessions without --wide "<reason>", which the evidence comment records. A manifest change that only bumps the version reaches hook:startup in that manifest's harness. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
|
|
[High impact] The changes appear safe to merge; no blocking defect was found. Summary
Reviews (1) · Last reviewed commit: "verify: enforce live-gate feature select..." · Reviewed by Greptile |
✅ No blocking findingsWalkthroughThis PR makes
Details
First review of this pull request. @unfret review · @unfret status · @unfret help |
Merge Queue Status
This pull request spent 14 seconds in the queue, including 3 seconds running CI. Required conditions to merge
|
Summary
verify.sh runnow enforces the live-gate feature-selection rule thatSKILL.mdstated only as prose. Closes #200.verify() classify(changed files) # now harness-qualified reach: claude:runner, codex:runner, ... Publisher.files # flags a manifest whose only change since the merge base is its version - selection.features = named # the classified set was thrown away here + refuse named ∉ reach # names each refused feature and the reachable set + count = Σ recipe(feature).length # printed before any install + refuse count > 12 unless --wide "<reason>" driver.preflight → prepare → exercise → publish + # evidence comment: planned sessions, and the wide reasonversion(both plugin manifests,plugins[].versionin.claude-plugin/marketplace.json) reaches onlyhook:startupin that manifest's harness. Every othersharededit keeps the full expansion, which now also reacheshook:startupand Claude'sagent-preload:poteto-agent.driver.preflight, outside the publicationtry, so a refused run installs nothing and writes nothing to GitHub. The CLI prints the refusal on stderr.SESSION_LIMIT = 12: release: Open Pstack 1.11.0 with the DeepSeek Harness and Antigravity providers (#198) #199's correct run (2) and a provider PR (runnerwith one route pluscatalogin both harnesses: 10, or 12 with self-test) fit. sync: Cursor pstack 0.15.25 as Open Pstack 1.10.0 (#191) #194 (24) and feat(runner): add read-only dsh and Antigravity providers (#159, #37) #196 (28) would each have needed--widewith a reason, which verify.sh run: enforce live-gate feature selection instead of trusting the named list #200 calls the intended path. The copied 1.9.0 list on release: Open Pstack 1.11.0 with the DeepSeek Harness and Antigravity providers (#198) #199 (30) fails both the scope check and the limit.Evidence
verify.sh runaccepted any feature list. On 2026-10-16 it started the 1.9.0 release's eight features on release: Open Pstack 1.11.0 with the DeepSeek Harness and Antigravity providers (#198) #199 (30 sessions) until Eric stopped it.After (unit,
verify.test.ts): the same eight features on release: Open Pstack 1.11.0 with the DeepSeek Harness and Antigravity providers (#198) #199's changed files are refused before preflight or any GitHub write:Outside this PR's classified reach: claude:catalog, codex:catalog, claude:setup, codex:setup, claude:runner, codex:runner. Reachable: claude:hook:startup, codex:hook:startup--widerun, and the evidence comment carries the reason on success and on failure.c5841de):verify.sh run --pr 201 --feature claude:runner --self-testexited 1 before any install. stderr:Outside this PR's classified reach: claude:runner. Reachable: claude:project-skill, codex:project-skill. The head had nolive-gatestatus and the PR no comment afterwards.verify.sh run --pr 201 --feature claude:project-skill --feature codex:project-skill --self-testprintedPlanned headless sessions: 2 (limit 12)before install and passed: evidence comment,live-gatesuccess onc5841de, publisher revision equal to the candidate SHA, the candidate skill loaded and its doctor passed in Claude 2.1.301 and Codex 0.163.0.Merge Danger
Door: two-way. The verifier is repository-local and not shipped in the plugin; reverting restores the old behavior.
Blast Radius: live-gate runs. A run that names a feature outside its PR's reach, or plans more than 12 sessions without
--wide, now stops before install. Agents and the PR bodies that list features must pick from the printed reachable set.Live gate
Run from a checkout of this PR's head with
--self-test, because the PR changes the verifier (AGENTS.md); the publisher revision equals the candidate SHA.claude:project-skillverify-open-pstackskill in Claude and runs its doctor; the run's own scope, count and limit checks execute on the way.codex:project-skillNo plugin path changed, so no plugin feature is reachable; the live run confirms that by refusing
claude:runner.Acceptance criteria
"version"line of the plugin manifests classifies as an install check:hook:startupin each harness whose manifest changed. Other edits to asharedpath keep today's expansion."core.test.ts"a version-only release reaches only the startup hook in both harnesses" (#199's seven files reach exactlyclaude:hook:startupandcodex:hook:startup) and "manifest changes classify as shared runtime unless they only bump the version".verify.test.tsversion-only test against a real repository.verify.sh runrefuses, before any install or GitHub write, a named feature that the PR's classified features do not include. The error names each refused feature and the reachable set."verify.test.ts"a named feature outside the classified reach is refused before preflight or any GitHub write" (exact message, no preflight, prepare, comment or status call). Live: theclaude:runnerrefusal above.verify.sh runprints the number of headless sessions the named features will start. Above a fixed limit, it refuses unless the operator passes--wide "<reason>". The evidence comment records the reason, so review sees it. The limit is a constant in the verifier, not configuration."SESSION_LIMITinscripts/verify.ts.verify.test.tslimit test (12 runs, 13 refused, 13 with--wideruns and records the reason). Live: the gate run printedPlanned headless sessions: 2 (limit 12)before install, and the evidence comment recordsPlanned sessions: 2 (limit 12).hook:startup), a refused out-of-scope feature, and the limit with and without--wide."SKILL.mddescribes the three checks and the--wideflag."SKILL.mdlines 28-32 and the Helpers usage line.--self-test, perAGENTS.md."Gate results
On head
c5841de, from the worktree root:bun run testbun run typecheckbun run statictsc --strictclaude plugin validate plugins/pstackNot verified
--widehave no live run. No open PR reaches more than 12 sessions; this PR reaches 2. The unit tests driveverify()with the realrecipe()counts.Refusedmessage is shown live only for the scope refusal.🤖 Generated with Claude Code