Repository navigation
feat(app-control): bring map refresh in line with the maintain-verification-skill upkeep pass - #16719
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM63we0o Lane-Thread: PRRT_kwDOTCGFQM63we0s
…atures Converts map evals.json ids 32 and 33 into scaffolded case.yaml cases with deterministic graders and must-pass and must-fail samples: - map-refresh-unattended-stale-ready-reports-unwritten: an unattended refresh opens the cited src/server.ts line, writes and edits nothing, runs no drive, and reports blocked with the corrected Ready text and its citation. - map-refresh-unreached-feature-names-prerequisite-and-command: the refresh reports the blocked export feature with its unmet prerequisite and the command tried, never as driven, and classes its prerequisite-free not-driven reason as doc drift. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflict in docs/upstream/cursor-pstack.md: main moved the pstack pin to bf0c7cd80a; this branch rewrote the maintain-verification-skill row and re-pointed two map/SKILL.md citations. Resolved on main's text with this branch's row content applied, and the map/SKILL.md citations moved by main's two added Check lines (:284-285, :235-240, :204-253). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ne" line In a before-version eval run of map-refresh-unreached-feature-names- prerequisite-and-command, the classes-doc-drift grader passed a reply whose triage line read "**Doc drift:** none.". The pattern now refuses a match followed by none, no, nothing or n/a, and the samples gain three must-fail answers: a triage heading set to none, a table row set to none, and "There is no doc drift". Co-authored-by: Claude Opus 5.5 <[email protected]>
…gister the compare rule Adds one case per refresh behavior that had none: - map-refresh-shared-launch-groups-same-state: with a per-run Data directory and no Session line, cart and wishlist, which need the same app state, share one launch and export gets its own. - map-refresh-spot-check-and-unmapped-sweep: a rename claim whose cited line still shows the old name is dropped, and the /returns route is reported as not mapped with its source path. drives-nothing in the stale-Ready case no longer counts a drive cleanup call: cleanup stops only what the run started and drives no feature. evals/map-refresh-upkeep.md registers the two-version compare's rule (versions, runs, metric, INVALID handling, met and not met) before its first run. Every grader sample was checked under node and bun. Co-authored-by: Claude Opus 5.5 <[email protected]>
…sue-15801-43786838306-1
…e stale-Ready citation grader reports-blocked-with-fix accepted only `server.ts:12`, so a correct reply citing `src/server.ts:11-12` (the comment and the listen line) failed. The pattern now also takes a range that starts or ends at line 12, written `:11-12` or "lines 11 to 12". New samples: two such ranges pass, and `:13-14` and `:11-120` fail. Checked under node and bun. Co-authored-by: Claude Opus 5.5 <[email protected]>
The first compare under the registered rule was not met: opus read non-inferior at margin 0.05, sonnet did not (interval -0.07 to +0.48 over 4 cases). Amendment 1 runs sonnet at 12 runs per case per side and opus at 3, fresh and unpooled, and states the case selection that works with the CLI's glob. Margin and met rule are unchanged, and it is the last rerun: a second not-shown result stays not met until the skill text changes. Co-authored-by: Claude Opus 5.5 <[email protected]>
…its run 48 sonnet runs at the first compare's 0.13 USD a run is about 6.2 USD list price, over the rule's 5 USD ceiling, which would end the pass partway. The sonnet invocations pass --max-cost-usd 10; opus keeps 5. Added before any run under Amendment 1. Co-authored-by: Claude Opus 5.5 <[email protected]>
…mpare under the owner's gate Amendment 1 is withdrawn before any result: it raised sonnet's run count against the owner's eval gate and followed a grader change made after the first compare's numbers. Its runs were stopped and discarded. The record reads the first four-case compare under that gate (issue 16672's decision): with 4 cases the interval test does not apply, no case dropped by a third, the one sonnet dip (stale Ready 1.000 to 0.933) traces to a grader false fail on a correct src/server.ts:11-12 citation, and opus confirms non-inferior. Result: met. The later grader fix was not a scoring input. Co-authored-by: Claude Opus 5.5 <[email protected]>
… restarts the app On a reused instance drive performs the feature's ## Reset and kept the launch record as it was. A Reset that restarts the app left a process the record did not name: a later drive relaunched into the bound port, or cleanup stopped with "launched process no longer matches" and the restarted process survived. Drive now stops the recorded instance as cleanup does, performs the rest of the Reset, launches as the hub's ## Launch says, replaces that app's launch record entry with the new process and runs Ready. evidence.md's launch field says the same. Refresh's shared launch is unchanged. Adds drive-reused-launch-reset-restart-rerecords, one targeted case. Co-authored-by: Claude Opus 5.5 <[email protected]>
…s run One targeted before-and-after case on sonnet at 3 runs a side, per the owner's eval gate: before is b305643, after e0f2cc6. A loss is the after mean below the before mean; it starts a trace read and an opus confirm, and counts only when traced to the changed drive text. Co-authored-by: Claude Opus 5.5 <[email protected]>
Uses [[ ]] and double-quoted strings with escaped backticks. The scaffold writes byte-identical files to the version before (diff -r of both outputs is empty). Co-authored-by: Claude Opus 5.5 <[email protected]>
…9ea4 Before the run: the after side carries the shellcheck-only scaffold change, whose output is byte-identical to e0f2cc6's. Co-authored-by: Claude Opus 5.5 <[email protected]>
Sonnet, 3 runs a side, both files VALID: before 1.00, 1.00, 1.00 and after 1.00, 1.00, 1.00. No loss, so no opus confirm; met under the owner's gate. The case does not separate the two texts: the before side already stops the recorded pid and replaces the launch entry. Co-authored-by: Claude Opus 5.5 <[email protected]>
… ran with The Record said the four-case compare ran under the registered rule, whose --case 'map-refresh-[su]*' matched nothing. It now names the filter that produced the scored cases as a deviation: --case 'map-refresh-*' on all four invocations, with map-refresh-ticket-branch-commits-there removed from both sides' copies, as each result file's suite.caseFilter records. It also says plainly that sonnet run 3's failing trace was not read, and that the restart-Reset compare ran its registered filter. Co-authored-by: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundI read every hunk of the one file in the incremental scope, critical-findings: 0 What I checked
Spend (not a finding, not a hold): the record describes smoke runs that were already made, paid from prepaid API credit. It adds no billing setting or paid resource. |
|
claude-review reviewed Code review (incremental): PR #16719 at
|
…ases Two done-when halves had no case: - map-refresh-attended-stale-ready-retries-once: the person agreed, the one retry of Ready failed on a pass from a detached HEAD off the tip. Graded: no further Ready, outcome blocked, and the recorded Ready text goes back into the hub. Must-fail samples include a second Ready and a corrected hub left in place. - drive-blocked-entry-names-prerequisite-and-command: an unattended drive whose step writes to staging without a write grant. Graded: the blocked entry's prerequisite and attempted fields. Must-fail sample: only reason and grant. Registers their 3-run sonnet smoke before it runs. Co-authored-by: Claude Opus 5.5 <[email protected]>
…rms whole The typos check read the regex fragment `restor(?:e|es|ed|ing)` as a misspelling. `restore[sd]?|restoring` matches the same words; every sample keeps its verdict under node and bun. Co-authored-by: Claude Opus 5.5 <[email protected]>
…smoke Sonnet, 3 runs per case, both files VALID, every run 1.00. The attended case runs no further Ready, reports blocked and puts the recorded Ready text back; the drive case's blocked entry carries prerequisite and attempted. Neither case found a defect in the skill text. Co-authored-by: Claude Opus 5.5 <[email protected]>
Closes #15801
Summary
/app-control:map refreshnow repairs a stale hub Ready. When the source wave cites a moved or removed port, route, command or check, an attended pass writes the fix after the person agrees and retries once. An unattended pass writes nothing, reports the fix and blocks. A written fix that no commit carries is put back. Features that need the same app state share one launch, but only when the hub's launch model has noSession:line and a per-runData:directory. Each drive's report is copied aside, and drive performs each later feature's## Resetand keeps the reused launch record, re-recording it when that Reset restarts the app. Refresh also spot-checks cited drift and sweeps changed files for unmapped user-facing surfaces, each with its source path. Drive's blocked entries now carry the unmet prerequisite and the command or route tried, and refresh treats anot driven:/blocked:whose prerequisite the feature file names nowhere as doc drift.Design choice: the issue's "launch model says instances are safe to share" is read as no
Session:line plus a per-runData:directory (contract, "The launch model").Fix
plugins/app-control/skills/map/reference/refresh.md: step 4 asks the first source-reader about a stale## Readyand unmapped surfaces with source paths, and recipes name their app state; a cited-drift spot-check; step 5 adds the stale-Ready fix-and-retry (attended only, put back unless a commit carries it), the shared launch, and reporting a feature not reached; triage gains the doc-drift and not-mapped rows; § Ticket branch exempts the stale-Ready write only when the hub was clean before it.plugins/app-control/skills/map/SKILL.md: Refresh steps 4 and 5 summarize the sweep, spot-check, stale-Ready retry, shared launch and unreached-feature reporting.plugins/app-control/skills/drive/SKILL.md,reference/evidence.md: a reused instance runs the feature's## Resetfirst, and a Reset that restarts the app re-records the launch; eachblockedentry names the unmet prerequisite and the command or route tried.plugins/app-control/evals/map-refresh-*,drive-*: onecase.yamlcase per behavior, with scaffolds and labeled samples:plugins/app-control/evals/map-refresh-upkeep.md: the cases, their graders, the registered rules and the records.plugins/app-control/skills/map/evals/evals.json: cases 32 and 33.docs/upstream/cursor-pstack.md: themaintain-verification-skillrow records what landed from Bring the control-skill refresh in line with her upkeep pass #15801 withfile:linecitations. Main has since moved the pin tobf0c7cd80a; this branch merged main and re-pointed themap/SKILL.mdcitations to the merged file (:284-285,:235-240,:204-253)..changes/app-control/work-resolve-issue-issue-15801-43786838306-1-d9777b30.md: minor changelog fragment.Verification
Dogfood (done-when item 5)
An unattended
/app-control:map refreshof this repository's control skill,.claude/skills/control-claude-code-plugins, feature idtdd, on 2026-11-16. It followed this branch'srefresh.mdand driveSKILL.mdat6c0149fa95, since the installed app-control 0.27.3 lacks them. It started from a detached HEAD at that commit, which is off the default branch's tip, so it was a report-only pass that commits nothing.app-control:source-reader. The tripwiregit status --porcelainwas empty before and after. Its blind spots are writes under.git/, to ignored paths and outside the checkout.plugins/tdd/skills/principles/SKILL.md:3-5and:41. They confirm the args and that the skill gives no fixed start text.claude_code_version2.1.326,apiKeySourcenone,tddlisted). No stale-Ready fix was needed.Session:line andData: none:, so each feature gets its own launch. No group was formed.not driven: terms. The prerequisite is named in the reason and in the driving tool's Gotchas (Consumer Terms). No route was tried.## Parts.wait-forprintedseen: managed.seen: aintainability, a new answer.log: exited 0 with oneReaddenied (--restricted: path outside the working directory). The run was started from another checkout than the one under test, so this denial is a run deviation, not a finding.stopped, and all 10 evidence files were non-empty.skills/invokeProof step names onlyscreenshotunderCaptures:, though it covers the print-mode entry point (plugins/harness-ops/skills/control-claude-code/features/skills/invoke/README.md:41-42). That file is outside this control skill.tdd's SKILL.md does not give.Eval record (done-when item 6)
The full record is in
plugins/app-control/evals/map-refresh-upkeep.md§ Record. It reads the four-case two-version compare, run under the rule registered in b9ad83f, against the owner's eval gate.Versions. BEFORE is main
35c687f674's app-control plugin with the four case folders copied in. AFTER isa70e47f513's app-control plugin.Settings. Claude Code 2.1.326;
--case 'map-refresh-*' --ablation none --scaffold --allow-tools Write Edit --keep-temp --judge-model opus --threshold 0.8 --max-cost-usd 5.The case filter is a deviation from the registered rule: its
--case 'map-refresh-[su]*'matched no case, because the CLI's glob has no bracket class, and that attempt ran no model. Both sides' plugin copies had the fifthmap-refresh-*case,map-refresh-ticket-branch-commits-there, removed. Every result file recordssuite.caseFilter: map-refresh-*and the same four scored cases. Sonnet ran 6 runs per case per side and opus 3. No usage-limit error occurred. All four result files readverdict: VALID.noise-report
--baseline <before> --margin 0.05, verbatim. Neither report printed acase dropline.The reading applied. The registered rule's interval clause reads "not shown non-inferior" on sonnet. The owner's eval gate, decided after that rule was registered, is the reading applied (#16672 decision; owner-decisions record, hop 7 Q3 row):
How this compare reads under the gate:
reports-blocked-with-fixmissed runs 2 and 3, each "pattern not found". Run 2's trace shows a correct reply the grader failed: "src/server.ts:11-12reads// The shop moved off 3000 so it can sit beside the admin console.followed byapp.listen(4100, "127.0.0.1");", with the corrected Ready left unwritten. Run 3's trace was not read before the kept sandboxes were removed.Result: met.
Disclosed follow-ups, not scoring inputs:
reports-blocked-with-fixfix (b25f07b) accepts a range that starts or ends at line 12. It was made after these numbers.drives-nothingno longer counts/app-control:drive cleanup. Cleanup "Stop[s] only what this run started" (plugins/app-control/skills/drive/SKILL.md:40), and the live pass requires it after each launch (plugins/app-control/skills/map/reference/refresh.md:240-243). That change was made before the four-case compare.Reset that restarts the app on a reused instance (review thread fix)
Before this fix, a feature's
## Resetthat restarted the app, on a launch shared with other features, left a process the launch record did not name. The fix is in drive's text:plugins/app-control/skills/drive/SKILL.md:37,reference/evidence.md:51). Such a Reset stops the recorded instance ascleanupdoes, relaunches as the hub's## Launchsays, replaces that app's launch record entry, and runsready.The compare was registered at
plugins/app-control/evals/map-refresh-upkeep.md:127, then committed and pushed before its run. The setup:drive-reused-launch-reset-restart-rerecords.b30564372304, AFTER is4919ea4d2c.Results:
verdict: VALID.compare verdict: n too small to call (cases scored in both results: 1; 3 or more are needed).Attended stale Ready and drive blocked entry (review coverage fix)
Two done-when halves had no case: the attended half of item 1, and drive's half of item 2. Each now has one case. Their smoke was registered at
plugins/app-control/evals/map-refresh-upkeep.md:164, then committed and pushed before it ran. It ran sonnet at 3 runs per case on73f59cccc4, with each case's name as--case. Both files readverdict: VALID.map-refresh-attended-stale-ready-retries-once: 1.00, 1.00, 1.00.drive-blocked-entry-names-prerequisite-and-command: 1.00, 1.00, 1.00.blockedentry'sprerequisiteandattemptedfields.reasonandgrant.Neither case found a defect in the skill text.
Checks
check-affected,guardrails-remote-reference-verify,guardrails-remote-pre-push-content).validate-cases.py plugins/app-control/evalsreported 0 FAIL, and every sample of the new cases' graders gave the expected verdict under both node and bun.Done when (#15801)
plugins/app-control/skills/map/reference/refresh.md:247-261; casesmap-refresh-attended-stale-ready-retries-once,map-refresh-unattended-stale-ready-reports-unwrittenblocked/not drivencarries prerequisite and command; without the prerequisite it is doc driftrefresh.md:275-279,:295;plugins/app-control/skills/drive/SKILL.md:254-257; casesdrive-blocked-entry-names-prerequisite-and-command,map-refresh-unreached-feature-names-prerequisite-and-commandrefresh.md:263-273refresh.md:188-194,:225-229,:299do-not-mergeuntil the record landsRelated
session: AI Hero
Supersedes #16481 at the same commit (4a8b309), which the verifier passed; #16481 reached the three-fail cap of the verifier on earlier heads and cannot be re-queued.
🤖 Generated with Claude Code