Skip to content

refactor(code-tidying): cut model-read ecosystem specifics from audit-dead-code, batch-simplify and tidy-diff - #17770

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-17755-44853232117-1
Nov 21, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-17755-44853232117-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17755

Summary

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

Part 1 of 5 of #16756 (rules revision 5). Row count: 4, all R11. Each row is cut or replaced at a routing site, under ADR 0101. Outcomes: F0092 (R11, K4) REPLACED: the audit-dead-code evidence-pattern table at a routing site (adjudication still checks per-candidate framework conventions) now describes each way code is reached in language-neutral terms, drops the Typical language column, and renames Assembly scanning to Type scanning and Shell dynamic invocation to Dynamic invocation. The cheap-checks sentence and the C#-only verdict rule that depended on those rows follow. F0128 (R11, K2) REPLACED: batch-simplify's grouping rule (a routing site) reads 'the nearest build or package manifest' and no longer lists *.csproj, package.json, pyproject.toml, Cargo.toml. F0129 (R11, K7) CUT: the '.sh hook that invokes ruff' example is deleted with no replacement. F0130 (R11, K7) REPLACED: tidy-diff's generated-code residue cues (a routing site, since the pass recognizes residue in the consumer's language) describe each residue in plain terms instead of TS/JS syntax (as any, ts-ignore, console.log, ?., ===, // comments, param, .ts). No row was GONE on main. R8 rows: none. Script readers: none. A repo-wide search for each file's path (adjudication.md, generated-code-residue.md, batch-simplify/context/reference.md, batch-simplify/SKILL.md) finds only markdown links, .performance/ratchets.json, docs/architecture/landscape.json and an eval case description. Neither audit-dead-code's scripts/dead-code-scan.sh nor lib/dead-code-shapes.sh reads adjudication.md, so no row is held back. Eval cases that read the cut text: audit-dead-code: adc-dynamic-dispatch-verdicts (Dynamic invocation row) and adc-glob-loaded-file-uncertain (Computed path or glob row). batch-simplify: none. tidy-diff: tidy-diff-closing-read-residue-recall (cites generated-code-residue.md 55-88; line numbers unchanged). Whole page or part: all four files are partial cuts, no whole-page deletion. Ratchet: the skill-stack-fences ceiling for adjudication.md stays at 2, because its two counted fences (python and go, in Suppression formats, kept-adapter operation for the vulture and gopls lanes) sit outside the cut. AC10: no skill added. Choice of means: code-tidying does not join the ecosystem-resolution carriers in this PR. The replaced text reads code the candidate already has and resolves no language, tool or command choice from a record. The plugin's skills already took these per-language steps before this cut, and joining would touch scripts/shared-copies.txt, a shared path outside this part's file list. The eval hold (do-not-merge, targeted before-and-after cases) is the host session's step, as the issue says.

Not verified

  • Changes are left uncommitted in the working tree: the runner's system prompt says to leave every change uncommitted, which overrides ci-mode's commit step
  • Tidy did not run every pass: passes 1-3 had no code files. Pass 5's deterministic detector (ai-slop detect.sh) could not run, because this lane's Bash runs only the named wrappers, so the AI-tell check was a manual rubric read of the listed lines only (it found nothing)
  • verify step: the evals (targeted before-and-after cases per changed skill on sonnet, 3 runs a side) are left to the host session per the issue; no eval or test suite ran here
  • CI-only checks not run locally: portability-lint, line-citations, comment-lint, evals-quality, eval-cases, lychee and the other whole-repo scanners check-affected lists as CI only; left to the PR's CI
  • check-affected skipped typos (not installed), comment-hygiene (network fetch denied) and size-check (script missing in the lane); left to the PR's CI
  • Did not join code-tidying as an ecosystem-resolution carrier (synced generic-resolution.md plus scripts/shared-copies.txt). Judged not required: the plugin's per-language steps were there before this cut, and scripts/ is outside this part's scope. A reviewer may decide otherwise

Fix

  • plugins/code-tidying/skills/audit-dead-code/context/adjudication.md: evidence-pattern table rewritten language-neutral with the Typical language column dropped (F0092); cheap-checks sentence and verdict rule follow the renamed rows; partial cut
  • plugins/code-tidying/skills/batch-simplify/context/reference.md: manifest file list replaced with 'the nearest build or package manifest' (F0128); partial cut
  • plugins/code-tidying/skills/batch-simplify/SKILL.md: '.sh hook that invokes ruff' example deleted from the multi-ecosystem edge case (F0129); partial cut
  • plugins/code-tidying/skills/tidy-diff/reference/generated-code-residue.md: detection cues in the Comments, Defensive theater, Type escape hatches, Naming and Logging tables rewritten without TS/JS syntax (F0130); partial cut
  • .changes/code-tidying/work-resolve-issue-issue-17755-44853232117-1-146c6b9f.md: new patch changelog fragment for code-tidying

Verification

The runner ran each check from the base copy against 3e3eaeb:

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

The run reports:

  • check-changelog-fragments: all 3 fragments valid (run after the last edit)
  • check-changed-skills: audit-dead-code, batch-simplify, tidy-diff PASS, 0 errors (warnings are pre-existing size and description-length notes)
  • check-affected: 14 passed, 9 skipped, 0 failed over 5 changed files (run after the last edit)
  • Grep for adjudication.md across the repo: only ratchets.json:172, landscape.json, audit-dead-code SKILL.md and lanes.md links; no script reads it
  • Grep for generated-code-residue, batch-simplify/context/reference and batch-simplify/SKILL across the repo: only markdown links, docs/skill-cheat-sheet.md, landscape.json and the tidy-diff-closing-read-residue-recall case description; no script reads them
  • Grep for the old row titles (Assembly scanning, Shell dynamic invocation, Typical language) in plugins/code-tidying: no live reference outside CHANGELOG.md history
  • Grep for line citations of the changed files (adjudication.md:N, batch-simplify SKILL.md:N, reference.md:N): none; generated-code-residue.md line count unchanged, so the eval's 55-88 citation still lines up
  • scripts/skill-stack-fences.py read: python and go fences count, bash and json do not; adjudication.md keeps its 2 counted fences, so the ceiling stays
  • Fresh-context review subagent over the full diff: 2 findings (a JS-only 'undefined' left in Condition padding, a fragment headline that said 'syntax' for batch-simplify's manifest names), both fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44853232117

Left out: the items under Not verified.

Related

#17755

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes melodic-automation-lanes Bot added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Held for the before-and-after eval that cut item #17755 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read every hunk of all 5 changed files. None of the changes is a correctness or maintainability problem.

What changed: markdown only, in three code-tidying skills. Three read this way now:

  • /code-tidying:audit-dead-code: the adjudication table describes each way code is reached without naming a language, and the Typical language column is gone.
  • /code-tidying:batch-simplify: its grouping rule says "the nearest build or package manifest" instead of listing manifest names.
  • /code-tidying:tidy-diff: the residue cues are written in plain words instead of TS/JS syntax.

The PR also adds a patch changelog fragment.

Checked against closing issue #17755 ("Done when"):

  • Rows: all 4 rows (F0092, F0128, F0129, F0130) are cut or replaced at the cited text. The PR body gives the row count, each row's rule and outcome, the script-reader search, the eval cases that read the cut text, and says each file is a partial cut.
  • Ratchet: the skill-stack-fences ceiling for adjudication.md stays at 2. The two python and go fences are outside the cut, so leaving it is consistent with that criterion.
  • AC10: no skill is added.
  • Eval hold: the issue gives the eval hold and before-and-after cases to the host session, not this PR.

Things I checked that turned out fine:

  • Renamed rows: no eval case or text in plugins/code-tidying cites the old row titles. I searched plugins/ for "Assembly scanning", "Shell dynamic invocation" and "Typical language". The only hits are lowercase "assembly scanning" in SKILL.md:29, context/lanes.md and a dead-code-scan.test.sh assertion. Those describe how the C# lane behaves and don't cite the table rows. The other hit is changelog history.
  • Verdict rule: the rule that was C#-only now covers every candidate that reflection, type scanning or markup could reach. That is stricter (more candidates kept out of dead). It agrees with the uncertain rule just above it.
  • Shell row: trap ... name and the case dispatch are still covered under Dynamic invocation, as "a signal or event handler registered by name" and "a dispatch that matches a command word to a function".

Loosened checks: no test, lint, threshold or CI check is changed. Loosened checks would be marked: fail (default; the prompt had no loosened_check_verdict: line); patterns: 0 (the prompt had no loosened_check_patterns: line). With no loosened_check_decision_record: line, the citation requirement was not checked.

Not checked: I verified none of the author's stated runs (check-changelog-fragments, check-changed-skills, check-affected); treat them as unconfirmed. No plugin manifest changed, so there are no manifest lines. Path-scoped rule skill-bodies-state-current-rules.md matches the skill files, and nothing in this change breaks it.

Spend: nothing that bills. The issue's follow-up evals (sonnet, 3 runs a side) use prepaid API credit in the host session.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17770

I found no security issues.

I read all 5 changed files in full. The PR only changes Markdown: three code-tidying skill reference docs, one skill body, and a new changelog fragment. It touches no scripts, workflows, manifests, userConfig keys, hooks, token requests or trusted paths.

How I checked the removed rules. The diff narrows and rewrites standing skill text, so I compared each removed or changed rule against the Gate 0 protected classes named in docs/contracts/instruction-exception-register/README.md: irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance and agent-authority.

  • audit-dead-code (adjudication.md): the evidence patterns are now described without naming languages, and the "Typical language" column is gone. The verdict rule that a candidate reflection, type scanning or markup could reach is "never dead" used to cover only C# candidates. It now covers every candidate, so it is stricter than before. It still blocks a deletion the evidence does not support.
  • batch-simplify: only an example and a list of manifest file names were removed. The rule beside them, "Comply" with consumer hooks and "Do not bypass the hook via Bash workarounds", is unchanged.
  • tidy-diff (generated-code-residue.md): only the detection cues were rewritten, from TypeScript and JavaScript syntax into plain language. The fix actions and the tidy-diff classifications (proposal or class A, B or C) are unchanged.

No protected rule was removed, and none was weakened.

PR context. The description contains no instructions aimed at this review lane. The closing issue's body was left out of the context because its author is not on the trusted-author lists. The change does not depend on that text, and nothing it adds reaches a lane that holds credentials.

Spend. The PR description leaves targeted before-and-after evals to the host session. They would use prepaid model usage only, so this is not a cost hold.

critical-findings: 0

@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.330 (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 (four R11 rows, no R8 row): per-language idiom names and one-stack syntax are replaced with stack-neutral descriptions of the same patterns and cues; every rule and verdict stays. Measured by p17770-adc-adjudicate: F0092 (adjudication.md evidence table: @app.route, MediatR-style scanning and "$dir/$name.sh" examples cut; route-alive, scanned-not-dead, computed-path-uncertain, test-only-alive, literal-search-first). Measured by p17770-bs-grouping: F0128 (reference.md manifest names cut; group-by-manifest, root-configs-one-group, large-split-subdir) and F0129 (SKILL.md .sh-invokes-ruff example cut; hook-shell-group, which the prompt reproduces). Measured by p17770-td-residue-classes: F0130 (generated-code-residue.md TS/JS cues rewritten stack-neutral; a Go change is classified: reviewer-comment-delete, divider-delete, swallow-proposal, version-name-proposal, debug-print-proposal).

  • New cases p17770-adc-adjudicate, p17770-bs-grouping, p17770-td-residue-classes: the existing adc-, bs- and td- cases scaffold a repository and run the scan or edit pass (scaffold and llm graders, above the cost gate for three skills at 3 a side) and do not grade the cut cues deterministically, so a rules-only case was written per skill: five, four and five regex graders, no llm grader, no Skill grader (slash prompts, R105).

  • Loss-capable graders (their answer was illustrated by cut text on BEFORE): route-alive (@app.route), scanned-not-dead (MediatR-style scanning), computed-path-uncertain (the "$dir/$name.sh" example), hook-shell-group (the ruff example the prompt reproduces), group-by-manifest (manifest names), and in p17770-td-residue-classes every grader (the TS/JS cue column rewritten for any stack; the case uses Go).

  • Re-registered as eval-pr-17770b before any compare run, with only hook-shell-group widened (and the name and copy paths): eval-pr-17770's AFTER smoke (CONTINUE) answered, verbatim, "HOOK_GROUP: The standalone scripts group, grouped by its parent directory hooks/", which is a correct reading of reference.md rule 4 (standalone scripts group by parent directory) and keeps the hook out of the Python group, but the grader accepted only shell, bash or sh. The widened pattern (^[\W_]HOOK_GROUP[_]:[^\n](?:\bshell\b|\bbash\b|\bsh\b|script|hooks/)) also accepts script or hooks/; it still fails Python. R148 check against the BEFORE text: BEFORE's batch-simplify SKILL.md edge case says the hook goes in the shell group, not Python, so a BEFORE reply that follows the text passes and a reply placing the hook in the Python group fails; the grader can therefore show a loss and is not trivially passed (an answer naming only the Python group fails both patterns). eval-pr-17770's smoke (0.6533 USD) counts in spend only; its compare was never launched.

  • 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: 2a79a8517973efcadc5330fe2f9635d1ce11ab1c (merge base with main)

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

  • 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
p17770-adc-adjudicate route-alive 3/3 3/3
p17770-adc-adjudicate scanned-not-dead 3/3 3/3
p17770-adc-adjudicate computed-path-uncertain 3/3 3/3
p17770-adc-adjudicate test-only-alive 3/3 3/3
p17770-adc-adjudicate literal-search-first 3/3 3/3
p17770-adc-adjudicate mean case score 1.000 1.000
p17770-bs-grouping group-by-manifest 3/3 3/3
p17770-bs-grouping hook-shell-group 3/3 3/3
p17770-bs-grouping root-configs-one-group 3/3 3/3
p17770-bs-grouping large-split-subdir 3/3 3/3
p17770-bs-grouping mean case score 1.000 1.000
p17770-td-residue-classes reviewer-comment-delete 3/3 3/3
p17770-td-residue-classes divider-delete 3/3 3/3
p17770-td-residue-classes swallow-proposal 3/3 3/3
p17770-td-residue-classes version-name-proposal 3/3 3/3
p17770-td-residue-classes debug-print-proposal 3/3 3/3
p17770-td-residue-classes mean case score 1.000 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

Changed files the compare runs opened, per case and side:

  • p17770-adc-adjudicate before: opened skills/audit-dead-code/context/adjudication.md in 3 of 3 runs
  • p17770-adc-adjudicate after: opened skills/audit-dead-code/context/adjudication.md in 3 of 3 runs
  • p17770-bs-grouping before: opened skills/batch-simplify/context/reference.md in 3 of 3 runs
  • p17770-bs-grouping after: opened skills/batch-simplify/context/reference.md in 3 of 3 runs
  • p17770-td-residue-classes before: opened skills/tidy-diff/reference/generated-code-residue.md in 3 of 3 runs
  • p17770-td-residue-classes after: opened skills/tidy-diff/reference/generated-code-residue.md in 3 of 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0092 (skills/audit-dead-code/context/adjudication.md, case p17770-adc-adjudicate): opened in 3 of 3 before, 3 of 3 after runs
  • F0128 (skills/batch-simplify/context/reference.md, case p17770-bs-grouping): opened in 3 of 3 before, 3 of 3 after runs
  • F0129 (skills/batch-simplify/SKILL.md, case p17770-bs-grouping): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • F0130 (skills/tidy-diff/reference/generated-code-residue.md, case p17770-td-residue-classes): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17770-adc-adjudicate (audit-dead-code): PASS (no loss: after 1.000, before 1.000)
  • verdict p17770-bs-grouping (batch-simplify): PASS (no loss: after 1.000, before 1.000)
  • verdict p17770-td-residue-classes (tidy-diff): PASS (no loss: after 1.000, before 1.000)

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

The cases live outside the repository; their full text:

The 3 cases: prompt.md and case.yaml

p17770-adc-adjudicate

prompt.md:

---
description: "Written for PR 17770 (row F0092, R11 cut of the per-language Typical language column and idiom names in audit-dead-code's evidence-pattern table). Asked, before any scan, how it would adjudicate five dead-code candidates, the reply keeps a route-decorated function alive, keeps a scanned handler out of dead, reads a script loaded by a built path as uncertain, says a test-only symbol is alive but reported, and starts with a repo-wide literal search for the name"
tags: [audit-dead-code, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is run. The reply calls the @app.route view alive, the scanned handler uncertain or alive (never dead), the computed-path script uncertain, the test-only helper alive with a note, and names a repo-wide literal search for the bare name as the first check. It ends with the five fixed lines."
---

/code-tidying:audit-dead-code

Before you scan anything, tell me how you'd adjudicate these candidates a detector flagged as unused in our repo:

1. `orders/views.py`: `def export_csv()` decorated with `@app.route("/orders/export")`; nothing calls it.
2. `Billing/Handlers/RefundIssuedHandler.cs`: nothing names it, but our startup registers every `INotificationHandler<>` by scanning the assembly.
3. `tools/steps/cleanup.sh`: no file names it; `tools/run.sh` runs `"$dir/$step.sh"` for each step in a list.
4. `lib/money.py`: `def round_half_even()` is called only from `tests/test_money.py`.
5. Which check do you run first on any candidate?

Check your answers against the skill's adjudication page. Don't run, install or research anything online yet.

End with exactly these five lines:

ROUTE_VIEW: <dead, uncertain or alive>
SCANNED_HANDLER: <dead, uncertain or alive>
COMPUTED_PATH_SCRIPT: <dead, uncertain or alive>
TEST_ONLY_HELPER: <dead, uncertain or alive>
FIRST_CHECK: <the first check>

case.yaml:

schema_version: "1.1"
name: p17770-adc-adjudicate
plugins: ["../.."]
graders:
  - name: 'route-alive'
    type: 'regex'
    pattern: '^[\W_]*ROUTE_VIEW[*_]*:[\s*`]*alive\b'
    flags: 'im'
    target: 'last_message'
  - name: 'scanned-not-dead'
    type: 'regex'
    pattern: '^[\W_]*SCANNED_HANDLER[*_]*:[\s*`]*(?:uncertain|alive)\b'
    flags: 'im'
    target: 'last_message'
  - name: 'computed-path-uncertain'
    type: 'regex'
    pattern: '^[\W_]*COMPUTED_PATH_SCRIPT[*_]*:[\s*`]*uncertain\b'
    flags: 'im'
    target: 'last_message'
  - name: 'test-only-alive'
    type: 'regex'
    pattern: '^[\W_]*TEST_ONLY_HELPER[*_]*:[\s*`]*alive\b'
    flags: 'im'
    target: 'last_message'
  - name: 'literal-search-first'
    type: 'regex'
    pattern: '^[\W_]*FIRST_CHECK[*_]*:[^\n]*(?:literal|string|grep|search)'
    flags: 'im'
    target: 'last_message'

p17770-bs-grouping

prompt.md:

---
description: "Written for PR 17770 (rows F0128 and F0129, R11 cuts of the manifest file names and the .sh-invokes-ruff example in batch-simplify's grouping rules). Asked, before anything runs, how a batch sweep would group a branch's changed files, the reply groups by the nearest project manifest, puts a shell hook that calls a Python linter in the shell group, puts root config files in one group, and splits a group over 25 files by subdirectory"
tags: [batch-simplify, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is run. The reply groups files by the nearest build or package manifest, puts hooks/pre-push.sh in the shell group, puts .editorconfig and the formatter configs in one root-config group, and splits the 31-file group by subdirectory. It ends with the four fixed lines."
---

/code-tidying:batch-simplify

Before you start, tell me how you'd group this branch's changed files. The repo has `services/api/` (its own `go.mod`), `services/web/` (its own `package.json`, 31 changed files across `src/pages/` and `src/components/`), `hooks/pre-push.sh` (a shell script whose only job is to run `ruff check` on staged Python files), and changed root files `.editorconfig` and `.prettierrc`.

1. What decides which files go in the same group?
2. Which group does `hooks/pre-push.sh` go in?
3. Where do `.editorconfig` and `.prettierrc` go?
4. What do you do with the 31-file `services/web/` group?

Check your answers against the skill's grouping reference page. Don't run, edit or research anything online yet.

End with exactly these four lines:

GROUP_BY: <what decides a group>
HOOK_GROUP: <the group for hooks/pre-push.sh>
ROOT_CONFIGS: <where the root config files go>
LARGE_GROUP: <what you do with the 31-file group>

case.yaml:

schema_version: "1.1"
name: p17770-bs-grouping
plugins: ["../.."]
graders:
  - name: 'group-by-manifest'
    type: 'regex'
    pattern: '^[\W_]*GROUP_BY[*_]*:[^\n]*(?:manifest|project|go\.mod|package\.json)'
    flags: 'im'
    target: 'last_message'
  - name: 'hook-shell-group'
    type: 'regex'
    pattern: '^[\W_]*HOOK_GROUP[*_]*:[^\n]*(?:\bshell\b|\bbash\b|\bsh\b|script|hooks/)'
    flags: 'im'
    target: 'last_message'
  - name: 'root-configs-one-group'
    type: 'regex'
    pattern: '^[\W_]*ROOT_CONFIGS[*_]*:[^\n]*(?:\bone\b|single|own|together|root[- ]config)'
    flags: 'im'
    target: 'last_message'
  - name: 'large-split-subdir'
    type: 'regex'
    pattern: '^[\W_]*LARGE_GROUP[*_]*:[^\n]*(?:subdirector|sub-director|src/pages|by director)'
    flags: 'im'
    target: 'last_message'

p17770-td-residue-classes

prompt.md:

---
description: "Written for PR 17770 (row F0130, R11 cut of TS/JS detection cues in tidy-diff's generated-code-residue page, rewritten stack-neutral). Asked, before anything runs, how tidy-diff would treat five residue lines in a Go change, the reply deletes a reviewer-addressed comment and a section divider, and makes the swallowed error, the version-suffixed name and the debug print proposals"
tags: [tidy-diff, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is run or edited. The reply deletes the 'Updated to use the new API' comment and the banner divider, and leaves the swallowed error, fetchOrdersV2 and the debug print as proposals. It ends with the five fixed lines."
---

/code-tidying:tidy-diff

Before you edit anything, tell me how you'd treat these lines in my Go change (`internal/orders/service.go`, all added in this change):

1. `// Updated to use the new API` above a changed call.
2. `// ===== Helpers =====` before the helper functions.
3. `if err != nil { log.Println(err) }` after the save call, and the function carries on as if the save worked.
4. A new function named `fetchOrdersV2` that replaces `fetchOrders`.
5. `fmt.Println("here")` inside `PlaceOrder`.

For each: would the pass delete it itself, or leave it as a proposal?

Check your answers against the skill's generated-code residue reference page. Don't run, edit or research anything online yet.

End with exactly these five lines:

REVIEWER_COMMENT: <delete or proposal>
DIVIDER: <delete or proposal>
SWALLOWED_ERROR: <delete or proposal>
VERSION_NAME: <delete or proposal>
DEBUG_PRINT: <delete or proposal>

case.yaml:

schema_version: "1.1"
name: p17770-td-residue-classes
plugins: ["../.."]
graders:
  - name: 'reviewer-comment-delete'
    type: 'regex'
    pattern: '^[\W_]*REVIEWER_COMMENT[*_]*:[\s*`]*delete'
    flags: 'im'
    target: 'last_message'
  - name: 'divider-delete'
    type: 'regex'
    pattern: '^[\W_]*DIVIDER[*_]*:[\s*`]*delete'
    flags: 'im'
    target: 'last_message'
  - name: 'swallow-proposal'
    type: 'regex'
    pattern: '^[\W_]*SWALLOWED_ERROR[*_]*:[\s*`]*proposal'
    flags: 'im'
    target: 'last_message'
  - name: 'version-name-proposal'
    type: 'regex'
    pattern: '^[\W_]*VERSION_NAME[*_]*:[\s*`]*proposal'
    flags: 'im'
    target: 'last_message'
  - name: 'debug-print-proposal'
    type: 'regex'
    pattern: '^[\W_]*DEBUG_PRINT[*_]*:[\s*`]*proposal'
    flags: 'im'
    target: 'last_message'

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 3e3eaeb98a71351fbb1f9aaa48ed3b173597a454: #17770 (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 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit d2abc02 Nov 21, 2026
94 of 97 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-17755-44853232117-1 branch November 21, 2026 07:17
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.

Cut the model-read ecosystem specifics from code-tidying: batch-simplify, tidy-diff and audit-dead-code

1 participant