Skip to content

refactor(instruction-placement): turn doc cells of mechanics record into pointer records - #10570

Merged
melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-9696-40572855992-1
Oct 28, 2026
Merged

melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-9696-40572855992-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #9696

Summary

Opened by the work-resolve-issue lane from work-resolve-issue/issue-9696-40572855992-1, which an earlier run left with commits and no report. A summary-only model pass read the branch's diff and the issue, changed nothing, and wrote:

The diff replaces the bare (doc) markers in verified-mechanics.md with record ids of the form MS-<n>. It adds mechanics-sources.tsv, which has 34 rows of id, URL with anchor, quoted sentence and as-of date (all 2026-10-27). A new "Pointer records" table in the mechanics file says what each record decides and when to recheck it. routing-rubric.md now cites record ids where it used to restate docs cells or URLs. A changelog fragment is included. The measured results were also re-stamped with CLI versions, and a few cells changed after a docs re-read, as the fragment lists: nested CLAUDE.md loading on Write or Edit, skill listing re-injection on 2.1.304 and later, subagent behaviour for Explore, Plan and omitClaudeMd, and the default-setting scope of the bare nested AGENTS.md cell. The issue's grep, awk and comm checks look likely to pass from the diff, but I did not run them. I also did not run scripts/affected-tests.sh --run. Two quotes (MS-8 and MS-10) are table rows joined with |, which the new section documents. The diff has no text aimed at steering a reviewer.

Fix

  • plugins/instruction-placement/context/mechanics-sources.tsv: new file with 34 records (id, url with anchor, quote, as_of)
  • plugins/instruction-placement/context/verified-mechanics.md: surface table cells now cite (doc MS-n) records, and measured cells carry CLI versions
  • plugins/instruction-placement/context/verified-mechanics.md: new "Pointer records" table giving what each record decides and its recheck trigger
  • plugins/instruction-placement/context/verified-mechanics.md: citation posture rewritten, and per-section Pointer, As of and Recheck blocks folded into records
  • plugins/instruction-placement/context/verified-mechanics.md: cells updated after the docs re-read (nested CLAUDE.md on Write/Edit, skill listing after compaction, subagent deferred loads, AGENTS.md default scope)
  • plugins/instruction-placement/context/routing-rubric.md: pricing references now name MS ids instead of restating cells or URLs
  • .changes/instruction-placement/refactor-9696-mechanics-pointer-records-3f6a9c21.md: patch changelog fragment

Files the branch changes, from the compare listing; a denied path, which the merge lane refuses, is marked and listed first:

  • .changes/instruction-placement/refactor-9696-mechanics-pointer-records-3f6a9c21.md
  • plugins/instruction-placement/context/mechanics-sources.tsv
  • plugins/instruction-placement/context/routing-rubric.md
  • plugins/instruction-placement/context/verified-mechanics.md

Verification

The earlier run reported no checks here, and the summary pass ran none.

The runner ran each check from the base copy against 4a29754:

Left out: every check the earlier run would have reported; a person reviews the diff before merging.

Related

#9696

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

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 83492adfdf579abee983c983704743e16c8d72bf: 0 finding(s), 0 as inline comments.

I found no security issues in this pull request.

I read all five changed files in full. None matches a trusted path, and the diff does not touch a plugin manifest.

  • Changed files: a changelog fragment, a new data file (mechanics-sources.tsv), two context docs (verified-mechanics.md and routing-rubric.md), and a new test script (mechanics-sources.test.sh).
  • Test script: mechanics-sources.test.sh reads only the three sibling files, resolved from its own location. It makes no network calls, uses no secrets, and runs no eval or command substitution on file content. The awk and grep uses treat file content as data.
  • Instruction-surface lens:
    • The diff rewrites reference documentation, not a standing instruction file such as CLAUDE.md or a rules file.
    • Two hard-deny rules in routing-rubric.md are kept in substance: creation-governing content is denied the paths: destination, and an import-only candidate never goes to a path-scoped rule. The edits only add record citations.
    • The edits remove the inline "Pointer / As of / Recheck" blocks, but the new "Pointer records" table and the TSV carry the recheck triggers.
    • No removed rule falls in a protected class, and I did not consult the exception register because nothing here needed it.
  • PR context: the description and issue comment contain no embedded instructions aimed at the reviewer.
  • Spend: this change spends nothing.

manifest fields: not hit.
critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 4a2975494febd3a80c44f21d10f03dde80f44219; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 83492adfdf579abee983c983704743e16c8d72bf: 0 finding(s), 0 as inline comments.

No blocking findings on #10570. I read the full diff and the PR context, and also read scripts/lib/version.sh and grepped the plugin for other readers of the changed files. I did not run any checks, because this lane has no shell. The checks below are by reading only.

Closing issue #9696, acceptance criteria

  • grep -c '(doc)' verified-mechanics.md should print 0. No (doc) marker remains in the file; the only matches are (doc MS-<n>) forms.
  • The awk check should print nothing. The TSV has 34 data rows, and every row has 4 columns, a code.claude.com/docs/en/<page>#anchor URL and a 2026-10-27 date.
  • The comm check should print nothing. Every MS-<n> cited in routing-rubric.md has a TSV row: 2, 4, 5, 7, 9, 15, 17, 18, 19, 22, 23, 24, 27, 28 and 33.
  • bash scripts/affected-tests.sh --run is unverified. The runner's scripts/check-changelog-fragments.sh --check passed per the PR context. The new mechanics-sources.test.sh covers the row shape, that the Pointer records table lists exactly the TSV ids, and that every cited id has a row. A broken id or table would therefore fail CI.

Checks that came back clean

  • ip_mechanics_measured_max in scripts/lib/version.sh reads versions after measured inside *(...)* markers, up to the next comma. The new *(doc MS-3, MS-12, measured 2.1.238)* markers still parse. The extra MS-n tokens before measured are ignored.
  • The .changes fragment has bump: patch, which fits a docs-only change to the record.

Notes, not counted as findings

  • Unverified: the "Bare nested AGENTS.md, with a CLAUDE.md on its path" row (verified-mechanics.md:42) now says Never under the default Project instructions setting. It cites MS-17 and MS-19. MS-19's quote (mechanics-sources.tsv:139) says a subdirectory AGENTS.md attaches on a Read when that subdirectory has none of the three CLAUDE.md files "of its own". Read literally, that points toward loading when only an ancestor CLAUDE.md exists. The measured 2.1.238 and 2.1.278 canaries back the Never reading, and I could not read the docs page. A person who has the page open should confirm that the MS-19 bullet applies only to the non-default setting.
  • verified-mechanics.md:40 reads "Read measured (measured 2.1.238)", which says the same thing twice.
  • mechanics-sources.test.sh is in the diff. The PR description and the compare listing don't mention it. It is the only file with an executable bit, which the HEAD commit set.
  • The MS-8, MS-10 and MS-30 quotes are table rows joined with |. verified-mechanics.md:354-355 documents this, so a later quote-check slice has to handle it.
  • Spend: this change adds no spend.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 5ddb528fbb2446de91688a3fa9d344efd087851d. A person must clear this reason, so the pr-merge lane added the needs-human label: fix the reason, then remove the label, and the next scheduled run judges it again.

its body carries the lane's own 'Hold: a human merges this' line: a person merges it by hand, or removes that line

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 28, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 5ddb528.

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 28, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 83492adfdf579abee983c983704743e16c8d72bf.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 9a14afc Oct 28, 2026
76 of 77 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9696-40572855992-1 branch October 28, 2026 05:12
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 0, survived 0, timeout 0, no coverage 0, invalid 0, not run 8.
Covered-code score n/a; mutation score n/a.

File Killed Survived Timeout No coverage Invalid Not run
plugins/source-control/skills/babysit-prs/scripts/babysit_merge.py 0 0 0 0 0 1
plugins/source-control/skills/babysit-prs/scripts/babysit_merge_policy.py 0 0 0 0 0 7

The run's summary has the full report.

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.

refactor(instruction-placement): turn doc cells of the mechanics record into pointer records

1 participant