Skip to content

fix(performance): cut model-read ecosystem specifics (5 rows) - #16811

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-16767-44110476599-1
Nov 18, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-16767-44110476599-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Refs: #16767

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Cuts the 5 listed rows from the performance plugin (row count: 5). F0305 (R4, K4): cut. The instruction-count recipe in reference/techniques.md no longer names Cachegrind's Ir. It takes the simulator, and which of its events is the instruction count, from the repository's own conventions, with /discovery:research where they do not settle it, and reports the recipe unresolved and skips it when neither resolves one (ADR 0101 decision 2). The Cachegrind verification record and the Cachegrind options pointer are gone. This follows the stack-resolution wording target/SKILL.md already uses, so the plugin does not join the ecosystem-resolution contract as a carrier. F0307 (R8, K4): cut. The node --predictable record is deleted without a targeted-case run, because its rule (count twice, never trust one run) already lives in harness-integrity rule 1 and in the recipe's own text. F0308 (R11, K5): cut. The four web.dev/MDN layout-shift and speculative-loading pointers now point only at the source post's sections, and their link definitions are removed. F0311 (R11, K5): cut. The Cachegrind manual pointer in README.md and the Valgrind/Iai sourcing sentence in target/SKILL.md are removed. The kept claim is that counts over wall clock is this plugin's own generalization and execution time stays the metric users perceive. F0312 (R11, K7): replaced with stack-neutral text. Python-flavored examples in goal/SKILL.md, snapshot/SKILL.md and target/SKILL.md now say interpreter path, wrapper script, program, and data access layer. Script-reader search (R11 rows): a Grep for techniques.md over plugins, scripts and .github script and config files found no match. A Grep for the performance target, goal and snapshot SKILL.md and README.md paths found only scripts/vocabulary-senses.json:148 and scripts/test_check_vocabulary.py:583-584. Both name target/SKILL.md for a tier-precedence vocabulary sense, which the cut text does not touch, so no row was held back. Fence ratchet: snapshot/SKILL.md's one counted stack fence is the ```python bundled-lib import at line 30, a kept-adapter operation outside this cut, so its skill-stack-fences ceiling stays at 1. References outside the plugin: no cut file was deleted or renamed, so none of the listed files went stale. AC10: no enforcement-placing skill was added.

Correction after this pull request took main: F0311 is a partial cut. Only the README's Cachegrind Overview pointer is removed. The target/SKILL.md counts-over-wall-clock sentence (its Valgrind/Iai sourcing included) and its Cachegrind Overview pointer are left as #16898 wrote them, because main changed that row after this pull request was built (see Remaining work and Skipped).

Remaining work

Not verified

  • Each changed skill's targeted before-and-after eval verdict (sonnet, 3 runs a side, 2.48 USD, run by an agent session after this pull request took main): goal PASS (mean case score 0.889 before, 1.000 after), target PASS (0.833 before, 0.833 after), snapshot PASS (0.917 before, 1.000 after). Overall PASS. One before run had a denied search of the plugin copy's own folder that no grader reads, so its runs are counted. The full result table is under Verification; no record comment is posted yet. Not measured by those cases: F0308 (pointer lines only), F0311's README line (no skill reads the README), F0312 in snapshot step 2b, the skipped F0311 target sentence, and a repository whose conventions name no instruction counter (where the recipe should report unresolved).
  • F0307 was cut without a targeted case of its own; the snapshot case above measures it (predictable-no, 3/3 before and after).
  • AC7 detection-control result for each partial cut: not run, by the owner's decision of 2026-11-17 that cut pull requests are gated on the no-loss compare alone, with no wrong-text side (owner-decisions record: https://github.com/melodic-software/architecture/blob/37e43feab804b3ebe68b00e227b5e90ce46413b3/docs/owner-decisions.md#L202). No whole-page deletion was made, so no sensitivity control applies.
  • The ai-slop detector (detect.sh) did not run during tidy because this lane's Bash runs only the named wrappers. The listed lines were read against the catalog by hand and nothing was found. Tidy recorded as skipped for that pass
  • Not cut, outside the 5 listed rows (possibly among the kept R6 rows): techniques.md 'Profile the counter' still points at the Cachegrind manual's cg_annotate page; the bundled-counter revisit trigger says 'Python or Node path'; the call-count and stepped-frame records link Chrome DevTools protocol…

Fix

  • plugins/performance/reference/techniques.md: the instruction-count recipe resolves its simulator from the consumer instead of naming Cachegrind's Ir; the Cachegrind and node --predictable verification records are deleted; the four web.dev/MDN pointers keep only the post correlate; five unused link…
  • plugins/performance/skills/target/SKILL.md: layer examples are stack-neutral (F0312). The counts-over-wall-clock sentence and its Cachegrind pointer are unchanged from main (F0311's target half, not delivered: see Remaining work)
  • plugins/performance/README.md: the Cachegrind manual Overview pointer is removed (F0311)
  • plugins/performance/skills/goal/SKILL.md: 'rare Python path' becomes 'rare interpreter path' (F0312)
  • plugins/performance/skills/snapshot/SKILL.md: 'Python run path' becomes 'interpreter run path' (F0312)
  • plugins/performance/skills/goal/evals/evals.json: the Path-line case's expected_output example says 'rare interpreter path', matching the skill
  • .changes/performance/work-resolve-issue-issue-16767-44110476599-1-434759c8.md: patch fragment recording the removals and the stack-neutral examples

Verification

The runner ran each check from the base copy against 6b7b492:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 97 fragments valid (run before and after tidy and review fixes)
  • check-changed-skills: goal, snapshot, target PASS, 0 errors (warnings are existing size and description-length warnings plus goal line 202's existing history citation)
  • check-affected: 15 passed, 7 skipped over 8 changed files
  • check-evals-quality on target and goal evals.json: PASS, 0 warnings
  • Grep techniques\.md over plugins, scripts and .github script and config files: no match
  • Grep for the target, goal and snapshot SKILL.md and README.md paths over plugins/performance, scripts and .github script and config files: only scripts/vocabulary-senses.json:148 and scripts/test_check_vocabulary.py:583-584 (tier-precedence sense on target/SKILL.md, unaffected)
  • Fresh-context review subagent over the whole diff: no broken reference links. Its two eval-expectation findings and the changelog-claim finding were fixed. Its other findings are listed in not_done
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44110476599

Targeted before-and-after cases (BEFORE 4d10acc1fd00208057c60f01bc458afa890d0cf3, the merge base; AFTER f79ea3134ed59f8a11b3d402a5452f7b5a72da72; sonnet, 3 runs a side; loss test: a mean case score drop of 0.15 or more, or a grader passing in 2 or more fewer after runs). One case per changed skill:

  • goal: p16811-go-requires-code-path, adapted from the skill-creator case requires-a-named-code-path-and-its-observable (skills/goal/evals/evals.json), which does not run under claude plugin eval; it reads the reworded "Code path under test, required" paragraph (F0312).
  • target: p16811-ta-ranks-by-evidence-tier, a copy of the existing case ta-ranks-by-evidence-tier (prompt, scaffold, graders and samples unchanged); it reads the reworded "Measure the layers before choosing one" section (F0312).
  • snapshot: p16811-sn-instruction-count-from-conventions, new; it must read reference/techniques.md's instruction-count recipe (F0305) and answers the --predictable question the deleted record answered (F0307).
Case Grader Before After
p16811-go-requires-code-path not-locked 3/3 3/3
p16811-go-requires-code-path asks-code-path 2/3 3/3
p16811-go-requires-code-path names-path-observable 3/3 3/3
p16811-go-requires-code-path mean case score 0.889 1.000
p16811-ta-ranks-by-evidence-tier table-has-tier-and-counter 3/3 3/3
p16811-ta-ranks-by-evidence-tier e1-ranked-first 3/3 3/3
p16811-ta-ranks-by-evidence-tier wdac-at-e4 3/3 3/3
p16811-ta-ranks-by-evidence-tier recommendation-rests-on-e1 1/3 1/3
p16811-ta-ranks-by-evidence-tier mean case score 0.833 0.833
p16811-sn-instruction-count-from-conventions counter-instructions 3/3 3/3
p16811-sn-instruction-count-from-conventions runs-two 3/3 3/3
p16811-sn-instruction-count-from-conventions predictable-no 3/3 3/3
p16811-sn-instruction-count-from-conventions tool-from-conventions 2/3 3/3
p16811-sn-instruction-count-from-conventions mean case score 0.917 1.000

Verdicts: goal PASS, target PASS, snapshot PASS; overall PASS.

Left out: the items under Not verified.

Skipped

Related

#16767

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 6b7b4923ee5b34270f49600ebd3626898b32527d. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held for the before-and-after eval its cut item requires; a host session runs it and posts the record here. Posted by an agent session.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f79ea3134ed59f8a11b3d402a5452f7b5a72da72: read 7 of 7 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16811 found no security issues

I read the whole diff for all 7 changed files. None of them match a trusted-path glob.

What the PR changes. It edits performance plugin docs and skill text, one eval expectation and a changelog fragment:

  • Cachegrind and node --predictable: the Ir/Cachegrind instruction-count naming and both verification records are removed. The instruction-count recipe now takes its simulator from the repository's own conventions, falls back to /discovery:research, and otherwise reports the recipe as unresolved.
  • External pointers: the web.dev, MDN and Valgrind pointers and their link definitions are removed.
  • Examples: the Python-flavored examples in the goal, snapshot and target skills now use stack-neutral wording.

Instruction-surface lens. I checked each removed rule against what it was there to prevent.

  • node --predictable record: its rule (count twice, never trust a single run) is still enforced at head. It is in harness-integrity rule 1 and in the recipe's own text ("only two agreeing runs on the unchanged subject before it is trusted"), so nothing was lost.
  • Cachegrind Ir record: this is measurement guidance, not a security guardrail. Its "another event's total is read as the instruction count" check now sits in the recipe's "Fails when" clause.
  • Skill edits: none of them removes or softens a control on permissions, secrets, publishing, destructive actions or untrusted input.

I did not read docs/contracts/instruction-exception-register/README.md. I judged the removals by what breaks without them, and no protected class applies to this measurement guidance.

Other surfaces. This PR does not touch:

  • plugin manifests or userConfig keys
  • hooks, MCP servers or scripts
  • workflows, tokens or trust controls

Every remaining link and pointer is one that already existed. The PR context file has no embedded directives aimed at this lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed f79ea3134ed59f8a11b3d402a5452f7b5a72da72: read 7 of 7 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16811, fix(performance): cut model-read ecosystem specifics (5 rows)

I found nothing to block. I read every hunk of all 7 listed files.

What changed. Documentation only, all inside the performance plugin:

  • Instruction-count recipe (reference/techniques.md): no longer names Cachegrind's Ir. The simulator now comes from the repository's own conventions, or from /discovery:research when those don't settle it. If neither does, the recipe is reported unresolved.
  • Verification records: the Cachegrind record and the node --predictable record are removed.
  • Pointers: four web.dev/MDN pointers now point only at sections of the source post.
  • README: the Cachegrind manual pointer is removed.
  • Examples: the Python-flavoured examples in goal, snapshot and target SKILL.md are now stack-neutral.
  • Eval: one expected_output string in the goal eval changes to match the skill.
  • Changelog: a patch fragment is added.

Checks I ran with Grep over plugins/performance:

  • Removed link definitions: none of [cls-expected], [cls-detail], [ls-sources], [spec-loading] or [cg-opts] is still used. [cg-annotate], which is kept, is still used at techniques.md#L385.
  • References to removed text: nothing in the plugin refers to the deleted verification records or to "tool specifics … in the verification records below". The ### Verification records heading still has two entries under it.
  • Skill wording: the new wording in goal §1, snapshot §2b and the goal eval case 12 matches across all three ("rare interpreter path" and "interpreter run path").

Criteria:

  • Closing issue: the PR context file has no ## Closing issue section, because the PR says Refs: #16767 and closes nothing. There were no acceptance criteria to check.
  • Path-scoped rules: .claude/rules/skill-bodies-state-current-rules.md, eval-case-transcripts.md and cost-claims.md match the changed files. None is broken. The pointers that remain are post-section pointers and carry no as-of date. The eval edit adds no transcript content.
  • Loosened checks: the goal eval's expected_output swaps "Python" for "interpreter" to track the skill text, and its expectations are unchanged. It doesn't make the grader accept more. The removed verification records are reference prose, not checks. I found no loosening.
  • Plugin manifests: none changed.

Notes for the author (not counted as findings):

  • The README and the target skill now disagree. target/SKILL.md lines 120–126 (link) still say counts-over-wall-clock is "sourced only for instruction counts (Valgrind's Cachegrind manual …)" and keep the Cachegrind Overview pointer. The README pointer to the same page is removed in this PR. The PR's "Skipped" section says this was left on purpose because of docs(performance): cut restated upstream text to pointers in snapshot, target and verify #16898.
  • The PR body's "Fix" list doesn't match the diff. It lists changes to plugins/performance/skills/target/evals/evals.json and to the Valgrind/Iai sourcing sentence in target/SKILL.md. Neither is in this diff; the "Skipped" section explains why. The changelog fragment correctly doesn't claim them.
  • techniques.md still names Cachegrind in "Profile the counter" (line 385). The PR's "Not verified" section names this as outside the 5 rows.
  • Nothing here was verified by me. The test plan, check runs and eval verdicts in the PR body are the author's claims; I ran nothing beyond the Grep and Read calls above.

No spend implications: the change is documentation only.

Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: line); patterns: 0

Verifier dropped 0 of 0 candidates.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.326 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: pure cut, with one row closer to a behaviour change. BEFORE is the merge base 4d10acc (a main commit after this PR's merge of main), so BEFORE against AFTER is exactly the PR's remaining cut. F0305 no longer names Cachegrind's Ir in the instruction-count recipe: the simulator and its instruction-count event now come from the repository's conventions, else /discovery:research, else the recipe is reported unresolved and skipped; F0307 deletes the node --predictable record, leaving harness-integrity rule 1 and the recipe's two-run text; F0308 drops four web.dev and MDN pointers and their link definitions; F0311 drops the README's Cachegrind Overview pointer; F0312 rewords Python examples in goal, snapshot and target. Measured: F0305 and F0307 (snapshot case, must Read reference/techniques.md), F0312 in goal (goal case) and in target (a copy of the existing ta-ranks-by-evidence-tier case). Unmeasured: F0308 (pointer-only lines, no rule changes), F0311's README line (the README is linked by no skill), F0312's snapshot step 2b wording, and F0311's target sentence and Cachegrind pointer, which this PR no longer changes (left as #16898 wrote them, because main changed that row after the PR was built).

  • The target case is the plugin's existing ta-ranks-by-evidence-tier with its prompt, scaffold, graders and samples unchanged; only its name, description, tags and run count differ.

  • The goal case is adapted from the skill-creator case requires-a-named-code-path-and-its-observable (skills/goal/evals/evals.json), which does not run under claude plugin eval.

  • Unmeasured rows: F0308, F0311 (the README pointer), F0312 in snapshot step 2b, and the skipped F0311 target sentence, which this PR leaves as docs(performance): cut restated upstream text to pointers in snapshot, target and verify #16898 wrote it.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 4d10acc1fd00208057c60f01bc458afa890d0cf3 (merge base with main)

  • After: f79ea3134ed59f8a11b3d402a5452f7b5a72da72 (pull request head; live head when this was written: f79ea3134ed59f8a11b3d402a5452f7b5a72da72)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p16811-go-requires-code-path not-locked 3/3 3/3
p16811-go-requires-code-path asks-code-path 2/3 3/3
p16811-go-requires-code-path names-path-observable 3/3 3/3
p16811-go-requires-code-path mean case score 0.889 1.000
p16811-ta-ranks-by-evidence-tier table-has-tier-and-counter 3/3 3/3
p16811-ta-ranks-by-evidence-tier e1-ranked-first 3/3 3/3
p16811-ta-ranks-by-evidence-tier wdac-at-e4 3/3 3/3
p16811-ta-ranks-by-evidence-tier recommendation-rests-on-e1 1/3 1/3
p16811-ta-ranks-by-evidence-tier mean case score 0.833 0.833
p16811-sn-instruction-count-from-conventions counter-instructions 3/3 3/3
p16811-sn-instruction-count-from-conventions runs-two 3/3 3/3
p16811-sn-instruction-count-from-conventions predictable-no 3/3 3/3
p16811-sn-instruction-count-from-conventions tool-from-conventions 2/3 3/3
p16811-sn-instruction-count-from-conventions mean case score 0.917 1.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Verdicts:

  • verdict p16811-go-requires-code-path (goal): PASS (no loss: after 1.000, before 0.889)
  • verdict p16811-ta-ranks-by-evidence-tier (target): PASS (no loss: after 0.833, before 0.833)
  • verdict p16811-sn-instruction-count-from-conventions (snapshot): PASS (no loss: after 1.000, before 0.917)

Cost: 2.48 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 3 cases: prompt.md and case.yaml

p16811-go-requires-code-path

prompt.md:

/performance:goal the Stop hook in hooks/stop-summary.sh. Metric: p50 wall clock per fire, from the bundled harness. Baseline is 137 ms, the floor is 30 ms, the realistic target is 80 ms. Lock it.

There is no /performance:target ranking: I came straight here, and those numbers are already measured, so nothing needs to run. Write no file: show me the goal you would lock, or what stops you locking it, then end your reply with exactly this line, filled in:

LOCKED: <yes or no>

case.yaml:

schema_version: "1.1"
name: p16811-go-requires-code-path
description: "Routine case. Source: written for PR 16811 (F0312 in skills/goal/SKILL.md section 1: the 'Code path under test, required' paragraph's example now says 'rare interpreter path' for 'rare Python path'), adapted from the skill-creator case requires-a-named-code-path-and-its-observable in skills/goal/evals/evals.json, the consumer's own writing, no transcript; rules-only, nothing runs. The user asks to lock a goal that names no code path; the reworded paragraph is the rule that stops it. The graders read the reply and its closing LOCKED line."
tags: [goal, code-path, routine]
plugins: ["../.."]
runs: 3
expected_outcome: "The reply does not lock the goal because it names no code path under test, asks which path or paths the Stop hook takes and the observable that identifies each (a marker file, an exit code, or the set of spawned processes), and ends with LOCKED: no; no file is written."
execution:
  allowed_tools: [Read, Glob, Grep, Skill]
  max_turns: 12
  timeout_seconds: 300
graders:
  - name: 'not-locked'
    type: 'regex'
    pattern: '^\W*LOCKED:\W*no\b'
    flags: 'mi'
  - name: 'asks-code-path'
    type: 'regex'
    pattern: '\b(?:code[ \t]+)?paths?\b[^\n]{0,80}\b(?:under[ \t]+test|exercis\w*|takes?|which)\b|\bwhich[^\n]{0,60}\bpaths?\b'
    flags: 'i'
  - name: 'names-path-observable'
    type: 'regex'
    pattern: '\b(?:marker(?:[ \t]+file)?|exit[ \t]+code|spawned[ \t]+process(?:es)?|process(?:es)?[ \t]+spawned|set[ \t]+of[ \t]+processes)\b'
    flags: 'i'

p16811-ta-ranks-by-evidence-tier

case.yaml:

schema_version: "1.1"
name: p16811-ta-ranks-by-evidence-tier
description: 'Routine case. Source: a copy of the plugin''s existing case ta-ranks-by-evidence-tier (prompt, scaffold, graders and samples unchanged) for PR 16811, whose F0312 row rewords skills/target/SKILL.md "Measure the layers before choosing one" (a shell wrapper around a Python program becomes a wrapper script around a larger program, the 1903-line Python guard body becomes the 1903-line program); e1-ranked-first and recommendation-rests-on-e1 depend on that rule keeping the large body from outranking the wrapper. Target main path: three candidates arrive with different evidence (a census that attributes 4 of 7 spawns to the shell wrapper, a large Python body the user bets on, and a WDAC suspicion). The run places each in one evidence tier, ranks the attributed measurement first, keeps the suspicion at E4, fills the ranked table with the settling counter, and names the recommendation with its tier. A run needs --scaffold.'
tags: [target, evidence-tier, routine]
plugins: ["../.."]
runs: 3
expected_outcome: 'A ranked table with Rank, Candidate, Tier, What is known, Counter that would settle it and Cheapest next instrument columns. Rank 1 is an E1 candidate backed by the census; the WDAC idea sits at E4 with an instrument named; the line count of guard_body.py does not earn it a higher tier. One closing line names the recommended target and the E1 tier it rests on.'
context:
  scaffold_script: scaffold.sh
execution:
  prompt: '/performance:target hooks/. Three candidates: the guard.sh wrapper; guard_body.py, which is nearly 1,900 lines so I bet it is the bottleneck; and I suspect WDAC code-integrity checks slow every spawn. There is a spawn census in measurements/spawn-census.txt. Rank them.'
  allowed_tools: [Read, Grep, Glob, Skill]
  max_turns: 15
  timeout_seconds: 400
graders:
  - name: table-has-tier-and-counter
    type: regex
    pattern: '^\|[^\n]*\bTier\b[^\n]*\bCounter\b[^\n]*\|'
    flags: 'mi'
    arm: both
  - name: e1-ranked-first
    type: regex
    pattern: '^\|[ \t]*(?:\*\*)?#?1(?:\*\*)?[ \t]*\|(?:[^|\n]*\|)?(?![^|\n]*guard_body)[^|\n]*\bguard\.sh\b[^|\n]*\|[ \t]*(?:\*\*)?E1\b'
    flags: 'm'
    arm: both
  - name: wdac-at-e4
    type: regex
    pattern: '^\|[^\n]*\bWDAC\b[^|\n]*\|[ \t]*(?:\*\*)?E4\b'
    flags: 'm'
    arm: both
  - name: recommendation-rests-on-e1
    type: regex
    pattern: '^(?=[^\n]*\brecommend)(?![^\n]*\brecommend\w*\b[^\n]{0,30}\binstrument)(?![^\n]*\b(?:no|not|nothing|never|none)\b[^\n]{0,25}\bE1\b)(?![^\n]*\brecommend\w*\b(?:(?!guard\.sh|wrapper)[^\n]){0,60}?guard_body)(?=[^\n]*(?:\bguard\.sh\b|\bwrapper\b))[^\n]*\bE1\b'
    flags: 'mi'
    arm: both

p16811-sn-instruction-count-from-conventions

prompt.md:

/performance:snapshot baseline config-parse. The goal is in .work/config-parse/PLAN.md. Before you capture anything, settle the counter with me.

The subject is `parseConfig()` in src/parse.js of our Node CLI: CPU-bound, one process, no I/O after the file is read. Our repository's own benchmarking notes are in docs/benchmarking.md. A teammate says that if we run node with `--predictable`, one count is enough.

Use the plugin's technique catalog for the recipe that fits this subject. Do not run anything and write no file: answer from the skill, its references and the files here, then end your reply with exactly these five lines, filled in:

RECIPE: <the catalog entry you would use>
COUNTER: <what it counts>
TOOL: <the command that produces the count, or unresolved>
RUNS: <how many agreeing runs before the count is trusted>
ONE_RUN_WITH_PREDICTABLE: <yes or no>

case.yaml:

schema_version: "1.1"
name: p16811-sn-instruction-count-from-conventions
description: "Hard case. Source: written for PR 16811 (cuts F0305 and F0307 in reference/techniques.md: the instruction-count recipe no longer names Cachegrind's Ir and takes its simulator from the repository's conventions; the node --predictable record is deleted, its rule left to harness-integrity rule 1 and the recipe's own two-run text), the consumer's own writing, no transcript; the scaffold commits a Node config parser, its benchmark and docs/benchmarking.md, and leaves a locked goal in .work/config-parse/PLAN.md so the skill's goal gate passes; nothing runs. A run needs --scaffold. Hard because the user's own repository names a counter command that is not the one the old text named, and a teammate claims --predictable makes one run enough, which only the deleted record answered by name. The graders read the five closing lines."
tags: [snapshot, instruction-count, hard]
plugins: ["../.."]
runs: 3
expected_outcome: "The reply picks the instruction-count recipe, counts instructions executed, takes the counter command from the repository's docs/benchmarking.md (perf stat on instructions:u), requires two agreeing runs before trusting the count, and answers no to trusting one run because of --predictable; nothing runs and no file is written."
context:
  scaffold_script: scaffold.sh
execution:
  allowed_tools: [Read, Glob, Grep, Skill]
  max_turns: 12
  timeout_seconds: 300
graders:
  - name: 'counter-instructions'
    type: 'regex'
    pattern: '^\W*COUNTER:[^\n]*\binstructions?\b'
    flags: 'mi'
  - name: 'runs-two'
    type: 'regex'
    pattern: '^\W*RUNS:\W*(?:2|two)\b'
    flags: 'mi'
  - name: 'predictable-no'
    type: 'regex'
    pattern: '^\W*ONE_RUN_WITH_PREDICTABLE:\W*no\b'
    flags: 'mi'
  - name: 'tool-from-conventions'
    type: 'regex'
    pattern: '^\W*TOOL:[^\n]*\bperf\s+stat\b[^\n]*\binstructions:u\b'
    flags: 'mi'

Denied calls: one search of the plugin copy's own root folder was denied by the sandbox in one before run. No grader reads that call, so all compare runs are counted. The validity gate itself read INVALID on that denial alone. Owner decision, 2026-11-17, typed in the agent session, verbatim: "go w/ recomemndations" (to the questions as put, each with its recommended option). The option chosen: when the only validity failure is a denied call that no grader reads, the session posts the record line with the denied calls listed.

Posted by an agent session.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for f79ea3134ed59f8a11b3d402a5452f7b5a72da72: #16811 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f79ea3134ed59f8a11b3d402a5452f7b5a72da72, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for f79ea31

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16811-f79ea3134ed59f8a11b3d402a5452f7b5a72da72, expires on 2026-12-18.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=f79ea3134ed59f8a11b3d402a5452f7b5a72da72 rubric=10.2.1 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 7594f11 Nov 18, 2026
118 of 123 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16767-44110476599-1 branch November 18, 2026 01:59
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