Skip to content

fix(corrections): cut model-read ecosystem specifics from the enforcement ladder - #16988

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

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #16787

Summary

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

Cuts the two R11 rows #16787 lists from the enforcement ladder that corrections ships. Row count (bulk-mutation standard): 2 rows.

Row Rule Kind Outcome
F0140 R11 K5 Cut. "Where boundary rules live" item 7 no longer names an ArchUnitNET test project or a .dependency-cruiser.js file. It now reads "the repository's existing architecture-test configuration". This is the shortened entry, not new routing text: the list only says where to look, and the old table-row mention at :55 was already gone.
F0141 R11 K7 Cut. The compiler-setting row no longer gives "nullable reference types, strict mode". It keeps one language-neutral example, "treating warnings as errors", which was already in the row.

The edit is in the canonical docs/contracts/enforcement-ladder/README.md (ladder 3.3.0 to 3.3.1, a wording-only patch with a CHANGELOG entry). The shared-copies sync carried it to all six copies, so each carrier plugin has a patch changelog fragment. The scripts/shared-copies.txt entries still apply because no file was renamed or deleted, so they are unchanged.

Script-reader search (R11 backing), run with Grep over plugins, scripts and .github for enforcement-ladder. Three scripts read the corrections copy or another copy: plugins/corrections/scripts/count-checks.mjs:26,86, plugins/corrections/scripts/rules-ledger.test.sh:10,236 and plugins/harness-config/skills/audit-automation-gaps/scripts/rule-inventory.sh:87,102-109. Each reads only the version key, the rung-id cell of a table row or numbered item, and the Alias: line. None reads a row's "What it is" text or the "Where boundary rules live" list. The rows were cut because the cut text is model-read only. Decision basis: scripts/sync-shared-copies.sh also reads every synced file, and the issue tells us to cut through it, so "a script reads the file" has to mean a script reads the cited text. That does not hold here.

Eval cases that read the cut text, per changed skill:

  • corrections:codify: codify-hand-off-names-the-tool-the-repo-runs (architecture-test hand-off; its names-no-other-ecosystem-tool grader forbids ArchUnit and dependency-cruiser).
  • architecture:improve: boundaries-recorded-rule-crossing-handed-on (its trace grader requires reading enforcement-ladder.md, which covers the boundary-rule list).
  • session-flow:retro: re-session-policy-check-no-corrections (names ladder rung ids, compiler-setting included).
  • harness-config:audit-automation-gaps, formal-verification:specify and the review plugin's context copy: none found reading the cut text.

Whole page or part: every changed file is a partial cut. Two lines change in the canonical README and in each of the six copies; nothing deletes a whole page.

AC10: no enforcement-placing skill was added.

Not verified

  • Tidy not run: the change touches 14 files across 7 areas, over the 10-file and 1-area tidy cutoffs
  • Script test suites that read the ladder copies (count-checks.test.sh, rules-ledger.test.sh, rule-inventory.test.sh) were not executed here; left to the PR's CI
  • Targeted before-and-after eval verdict for the changed skill (sonnet, 3 runs a side, run by an agent session after this pull request opened, before d52363bda38084c5ac3d4505f34a4405dfe7ffdf, after 4ea689cdb153687a075a9745ddabbeaaf3e271f1; no gate reading was counted despite a denied call; full record: fix(corrections): cut model-read ecosystem specifics from the enforcement ladder #16988 (comment)): case p16988-codify-hand-off-repo-tool (codify) PASS, mean case score 0.833 before and 0.833 after, names-the-repo-tool 2/3 on each side and names-no-other-ecosystem-tool 3/3 on each side. Overall PASS. Measured row: F0140 (reference/enforcement-ladder.md, opened in 3 of 3 runs on each side). This is the second compare: the first (eval-pr-16988, after b79c8c9c) read LOSS (names-the-repo-tool 2/3 before, 0/3 after; mean 0.833 before, 0.500 after), traced to the cut of item 7 of "Where boundary rules live"; commit 4ea689cd makes item 7 say to read the manifest and tool config files for an import or dependency rule before naming a library, still naming no library. Known limit: the launch flags grant Bash, which the case's prompt says the run lacks; in the first compare one before run read pyproject.toml through Bash, and the flags are unchanged so the two compares match. No record was posted for the first compare.
  • Unmeasured row: F0141 (the compiler-setting row), and the same cut in the architecture, formal-verification, harness-config, review and session-flow copies of the ladder, outside this plugin's registration.
  • 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 page is deleted, so no sensitivity control applies.
  • Changes left uncommitted in the working tree, as the runner instructs, rather than committed with a commit tool
  • Out of scope, noticed by the review: docs/architecture/landscape.json:208 still records finding-classes.md as citing sverweij/dependency-cruiser, which that file no longer names

Fix

  • docs/contracts/enforcement-ladder/README.md: version 3.3.1; compiler-setting row drops the nullable reference types and strict mode examples (F0141); boundary-rule list item 7 drops the ArchUnitNET and .dependency-cruiser.js examples (F0140)
  • docs/contracts/enforcement-ladder/CHANGELOG.md: 3.3.1 patch entry
  • plugins/corrections/skills/codify/reference/enforcement-ladder.md: regenerated copy
  • plugins/architecture/skills/improve/research/enforcement-ladder.md: regenerated copy
  • plugins/formal-verification/skills/specify/reference/enforcement-ladder.md: regenerated copy
  • plugins/harness-config/skills/audit-automation-gaps/context/enforcement-ladder.md: regenerated copy
  • plugins/review/context/enforcement-ladder.md: regenerated copy
  • plugins/session-flow/skills/retro/reference/enforcement-ladder.md: regenerated copy
  • .changes/corrections/work-resolve-issue-issue-16787-44198122308-1-e2e6c4a6.md: patch fragment
  • .changes/architecture/work-resolve-issue-issue-16787-44198122308-1-151375a6.md: patch fragment
  • .changes/formal-verification/work-resolve-issue-issue-16787-44198122308-1-80981e5c.md: patch fragment
  • .changes/harness-config/work-resolve-issue-issue-16787-44198122308-1-b973c87e.md: patch fragment
  • .changes/review/work-resolve-issue-issue-16787-44198122308-1-58f1334c.md: patch fragment
  • .changes/session-flow/work-resolve-issue-issue-16787-44198122308-1-a0136a67.md: patch fragment

Verification

The runner ran each check from the base copy against b79c8c9:

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

The run reports:

  • sync-shared-copies: regenerated all six enforcement-ladder copies, exit 0
  • check-changelog-fragments: all 10 fragments under .changes/ valid
  • check-changed-skills: 5 skills checked, 0 failed (warnings are on existing SKILL.md size and description length, untouched here)
  • check-affected: 15 passed, 7 skipped over 14 changed files
  • Grep for enforcement-ladder over plugins, scripts and .github: three script readers, each parsing only rung ids, the version key and the Alias line (count-checks.mjs readLadder lines 95-108, rule-inventory.sh lines 102-109, rules-ledger.test.sh line 236)
  • Grep for ArchUnitNET, dependency-cruiser and nullable reference types in the canonical ladder and the corrections plugin: no ladder copy still names them
  • Fresh-context review subagent over the whole diff: no findings (copies match the canonical file, the CHANGELOG and fragments fit house style, no parser breaks, no skill depends on the removed examples)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44198122308

Left out: the items under Not verified.

Related

#16787

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44205265560

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): no findings.

This lane already reviewed an earlier head (b79c8c9), so this pass reported only blocking findings.

What changed since b79c8c9: item 7 of "Where boundary rules live" in the enforcement ladder used to read only "the repository's existing architecture-test configuration". It now adds where to find that configuration: "an import or dependency rule already set in its manifest or a tool config file; read those files before naming a library".

Files and copies:

  • I read the canonical change in docs/contracts/enforcement-ladder/README.md and the first generated copy, plugins/architecture/skills/improve/research/enforcement-ladder.md.
  • identical.txt lists five more copies as byte-identical to that first copy. The incremental diff shows the same hunk in each of them. Every copy is a reference or context document, so placing the text at those paths does not change what it does.

Checks:

  • The new wording still names no ecosystem-specific tool, which keeps the closing issue's R11 cut (F0140) in place.
  • A Grep for the old item-7 wording outside the ladder copies found it only in plugins/architecture/skills/improve/actions/boundaries.md (lines 35 and 99). Those lines describe the configuration in general terms and do not quote the full item, so they still agree with the new text.
  • The numbered-item structure is unchanged, so the scripts that parse these copies are not affected. I did not run those scripts.

Loosened-check verdict: fail. The wrapper gave no loosened_check_verdict: line, so this uses the default. Patterns: 0. The change only edits documentation text and loosens no check.

No plugin manifest changed, and the change adds no cost.

Verifier dropped 0 of 0 candidates.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #16988 (incremental since b79c8c9)

I found no security issues. This was a blocking-only review: this lane already reviewed an earlier head.

What changed. This push changes one item of the enforcement ladder's "Where boundary rules live" list, item 7. It goes from "the repository's existing architecture-test configuration" to "…: an import or dependency rule already set in its manifest or a tool config file; read those files before naming a library". That change appears in docs/contracts/enforcement-ladder/README.md and in its generated copies under plugins/*/…/enforcement-ladder.md and plugins/review/context/enforcement-ladder.md.

What I checked:

  • Instruction surfaces. The new text adds guidance and removes nothing. The model is now told to read the repository's own manifest or tool config before it names a library. No rule, prohibition or selection criterion is narrowed, so no protected class is affected. I did not consult the instruction exception register's protected-class list because this review cannot reach it. I judged by consequence instead.
  • Copies. Every copy is reference or context text under a skill or plugins/review/context/. None of these paths makes the content run as a hook, workflow, settings file or manifest.
  • Trusted paths and controls. No file in this push matches a trusted-path glob. The push touches no trust control, plugin manifest, workflow, token scope, merge hold or kill switch.
  • Prior findings. The earlier review reported no findings, so nothing carries over.
  • Spending. This push starts no spend.

critical-findings: 0

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

Copy link
Copy Markdown
Member

Held for its eval: #16787 is a cut item, so its before/after eval runs after this PR (D367). A session runs it and posts the eval-pair record for the current head. The pr-merge sweep removes this hold once that record is posted (release-eval-hold.mjs).

The cut left item 7 of "Where boundary rules live" with no place to look,
and the no-loss eval read a loss: runs stopped opening the manifest and
never found the repository's import rule. Item 7 now points at the
manifest and tool config files, still naming no library or ecosystem.

Refs: #16787

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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.327 (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: second compare after a text fix, pure cut of two examples in the enforcement ladder corrections:codify reads (reference/enforcement-ladder.md, a generated copy of docs/contracts/enforcement-ladder/README.md). Item 7 of "Where boundary rules live" no longer names ArchUnitNET or .dependency-cruiser.js and now says to read the manifest and tool config files for an import or dependency rule before naming a library. Measured: F0140, case p16988-codify-hand-off-repo-tool, the existing codify-hand-off-names-the-tool-the-repo-runs. Unmeasured: F0141 (the compiler-setting row's nullable reference types and strict mode examples; one case per changed skill, and this skill's case is the existing one the PR body names), and the same cut in the five other plugins' copies (architecture improve, formal-verification specify, harness-config audit-automation-gaps, review context, session-flow retro), outside this plugin's registration.

  • The case is the existing codify-hand-off-names-the-tool-the-repo-runs, copied unchanged but for its name and description, identical to eval-pr-16988's.

  • Unmeasured rows: F0141; the same cut in the architecture, formal-verification, harness-config, review and session-flow copies of the ladder.

  • Known limit: the launch flags grant Bash, which the case's prompt says the run lacks; in eval-pr-16988 one before run read pyproject.toml through Bash. The flags are unchanged so the two compares match.

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

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

  • 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
p16988-codify-hand-off-repo-tool names-the-repo-tool 2/3 2/3
p16988-codify-hand-off-repo-tool names-no-other-ecosystem-tool 3/3 3/3
p16988-codify-hand-off-repo-tool mean case score 0.833 0.833

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:

  • p16988-codify-hand-off-repo-tool before: opened skills/codify/reference/enforcement-ladder.md in 3 of 3 runs
  • p16988-codify-hand-off-repo-tool after: opened skills/codify/reference/enforcement-ladder.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):

  • F0140 (skills/codify/reference/enforcement-ladder.md, case p16988-codify-hand-off-repo-tool): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p16988-codify-hand-off-repo-tool (codify): PASS (no loss: after 0.833, before 0.833)

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

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p16988-codify-hand-off-repo-tool

case.yaml:

schema_version: "1.1"
name: p16988-codify-hand-off-repo-tool
description: 'Hard case. Source: the existing case codify-hand-off-names-the-tool-the-repo-runs, copied unchanged for PR 16988 (cut F0140, the ArchUnitNET and .dependency-cruiser.js examples in the enforcement ladder''s "Where boundary rules live" item 7) but for its name and this description; no transcript. A layer-boundary finding in a Python repository that already runs import-linter takes architecture-test, and the build hand-off names that tool and /implementation:implement. Hard because the old item 7 named the .NET and JavaScript architecture-test libraries and the new one says only "the repository''s existing architecture-test configuration", so the session must find import-linter in pyproject.toml itself (names-the-repo-tool, the no-loss grader); names-no-other-ecosystem-tool, last, may fail on the old text, which named those libraries.'
tags: [codify, architecture-test, hard]
plugins: ["../.."]
runs: 3
expected_outcome: 'Row 1 is architecture-test. The hand-off names import-linter (its pyproject contract or the lint-imports command) as the tooling the check is built in, names /implementation:implement as the builder, and names no .NET or JavaScript architecture-test library.'
context:
  scaffold_script: scaffold.sh
execution:
  prompt: '/corrections:codify findings findings.md What rung does the row get, and what is the next step? This run has no Bash tool: skip the proof and report the check as unproven, and present the proposal in the report, writing nothing.'
  allowed_tools: [Read, Glob, Grep, Skill]
  max_turns: 15
  timeout_seconds: 420
graders:
  - name: names-the-repo-tool
    type: 'regex'
    pattern: '^(?=[\s\S]*architecture-test)(?=[\s\S]*(?:import-linter|importlinter|lint-imports))(?=[\s\S]*/implementation:implement)'
    flags: 'i'
    arm: 'both'
  - name: names-no-other-ecosystem-tool
    type: 'regex'
    pattern: 'ArchUnit|dependency-cruiser|depcruise'
    flags: 'i'
    match: 'not_contains'
    arm: 'both'

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 4ea689cdb153687a075a9745ddabbeaaf3e271f1: #16988 (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 4ea689cdb153687a075a9745ddabbeaaf3e271f1, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 4ea689c

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-16988-4ea689cdb153687a075a9745ddabbeaaf3e271f1, 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=4ea689cdb153687a075a9745ddabbeaaf3e271f1 rubric=10.3.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 c71b46f Nov 18, 2026
79 of 80 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16787-44198122308-1 branch November 18, 2026 07:19
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit c71b46f432b27d780203df9b49857ef98ff492e3; later checks count it verified from this comment.

kyle-sexton added a commit that referenced this pull request Nov 18, 2026
Main's #16988 (c71b46f) already cut the ArchUnitNET and dependency-cruiser
examples from boundary-rule location 7 in the canonical ladder and all six
copies (its row F0140, the same text as this branch's F0038), at version
3.3.1 with its own CHANGELOG entry. The ladder files take main's lines; this
branch's duplicate 3.3.1 entry and the five ladder-only change fragments go.

Kept from this branch: the conventions placeholder entry (F0040), its
architecture fragment, and the mattpocock-skills wording, composed into
main's rewritten setup-ts-deep-modules line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 corrections

1 participant