Skip to content

docs: replace restated upstream facts with pointers in docs-hygiene, mcp-tools, plugin-quality - #12794

Merged
kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-12695-41591301018-1
Nov 3, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
work-resolve-issue/issue-12695-41591301018-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12695

Summary

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

All 28 rows of #12695 are fixed across 18 files in four plugins. Each restated upstream value or behavior is deleted. The local decision stays in this repository's own words, followed by a pointer to the exact upstream section with an as-of date (2026-11-03) and a recheck trigger. Row r141 is a plain removal. Every pointer was fetched this run before it was written. Where the issue's candidate section did not hold the fact, I chose the section that does, and say so below. r338 points at npx#description plus the npm unpublish policy's Considerations section, because the npx page does not cover version immutability. r339-r341 point at each SDK's API reference: the Python MCPServer class and MCPServer.tool, the TypeScript registerTool and ServerOptions, and the C# McpMetaAttribute and McpServerOptions class pages. The SDK READMEs document neither _meta nor instructions. r393 adds the .claude directory file reference beside the settings section, because the settings page does not cover .claude/ write protection. r439 points at plugins/loading#find-plugins-on-disk, the cache section the issue asked to find. r438 points at scheduled-tasks#limitations, because that section, not 'How session-scoped scheduled tasks run', says when tasks stop firing. Following review, I also dropped the same file-locking claim from extract-ssot/SKILL.md, and the README sandbox note now defers to the posture checklist's existing Sandbox coverage record.

Not verified

  • check-stamps.sh --trigger-less on the touched files (an issue done-when item) was not run: this lane's Bash runs only the named wrappers, and none runs check-stamps.sh. Every touched file that carries a dated stamp also states a recheck trigger in a form the script's trigger regex accepts ('Recheck…
  • tidy skipped: the change is 23 files across 4 plugin areas, over the tidy cutoffs of 10 files and 1 area
  • The review subagent's request to keep citing the in-repo gather-block convention record was not followed: the issue's r137/r144 rows explicitly drop the harness claim and the dated record link. The gather blocks now keep only the separate-Bash-calls decision plus the…
  • Out of scope and not changed: plugins/docs-hygiene/skills/audit-progressive-disclosure/context/tier-model.md still restates the 200-line and 100/300 figures, and its best-practices anchor (#structure-longer-reference-files-with-table-of-contents) lacks the 'a' that the heading text has.…
  • The audit-progressive-disclosure eval (evals/evals.json:66,71) expects output to cite the 100 vs 300 conflict. The SKILL.md example row no longer shows the numbers; the agent still gets them from tier-model.md or the linked pages. The eval was not run here.
  • markdownlint and skill script tests were skipped inside check-changed-skills (CHECK_SKILL_SKIP_MARKDOWNLINT / CHECK_SKILL_SKIP_SCRIPT_TESTS), and check-affected left the whole-repo scanners (lychee-offline link check, purged-em-dashes and others) to CI
  • Changes are left uncommitted in the working tree, as the runner instructs; the runner turns them into the patch

Fix

  • plugins/docs-hygiene/skills/audit-progressive-disclosure/SKILL.md: gather block points at skills#how-injected-commands-run instead of restating how the harness runs the pre-compute block or linking the gather-block record (r137); CLAUDE.md 200-line figure and the 100/300 TOC thresholds removed from…
  • plugins/docs-hygiene/skills/rename-references/SKILL.md: same gather-block rewrite (r144); concurrent-sessions edge case keeps report-and-abort and points at tools-reference#edit-tool-behavior (r145)
  • plugins/docs-hygiene/skills/extract-ssot/actions/batch.md: silent-overwrite and no-file-locking parentheticals removed; shared-files-means-sequential rule kept (r141)
  • plugins/docs-hygiene/skills/extract-ssot/SKILL.md: the same 'no file-level locking' reason removed from the --parallel-waves row (review finding, same claim as r141)
  • plugins/docs-hygiene/skills/extract-ssot/context/anti-patterns.md: head -100 partial-read description replaced by our anti-pattern rule plus a pointer to best-practices#avoid-deeply-nested-references (r142)
  • plugins/mcp-tools/README.md: annotations-optional claim replaced by a pointer to the spec's Tool data type, WARN-never-FAIL kept (r335); stdio-not-sandboxed parenthetical replaced by a reference to the posture checklist's Sandbox coverage record (r336)
  • plugins/mcp-tools/skills/audit-posture/SKILL.md: claims about what ~/.claude.json and server entries hold replaced by a pointer to mcp#mcp-installation-scopes; read-only-through-the-script rule kept (r337)
  • plugins/mcp-tools/skills/audit-posture/reference/checklist.md: runner-resolution and registry-republish reasons removed; only-FAIL and tarball-reads-exact decisions kept with pointers to npx#description and npm unpublish policy#considerations (r338)
  • plugins/mcp-tools/skills/audit/reference/checklist.md: per-SDK _meta attachment list replaced by a reference to each language's meta-extraction entry; accept-native-forms and JSON-type rules kept (r339)
  • plugins/mcp-tools/skills/audit/reference/server-discovery.md: per-SDK instructions spellings and the revision-to-message mapping replaced by search targets plus pointers to the three SDK references and the 2026-07-28 changelog#major-changes (r340); SDK-specific meta-extraction behavior replaced by…
  • plugins/plugin-quality/skills/audit/reference/component-types/command.md: same-slash-command and skills-support claims removed; 'should this be a skill?' finding kept with a pointer to skills#how-a-skill-gets-its-command-name (r385)
  • plugins/plugin-quality/skills/audit/reference/component-types/config.md: keychain description removed from the secrets check (pointer: manifest-reference#user-configuration, r387); supported-keys list, unknown-key behavior and precedence removed from the settings.json check (pointer:…
  • plugins/plugin-quality/skills/audit/reference/component-types/hook.md: matcher definition removed, pointer to hooks#matcher-patterns (r390)
  • plugins/plugin-quality/skills/audit/reference/recurring-concerns.md: hooks-match-on-tool-name statement removed, coverage concern kept with a matcher-patterns pointer (r392); .claude/ write-protection and storage claim removed, placement question kept with pointers to…
  • plugins/session-flow/reference/structure.md: /clear-destroys, TodoWrite-has-no-read-call and which-tools-exist claims removed; branch-on-tool-list rule and render format kept; existing task-tool-availability pointer refreshed (r427); documented projects glob replaced by a pointer to…
  • plugins/session-flow/skills/clean-stop/SKILL.md: git status / git worktree remove claims removed; inspect-and-preserve rule kept with pointers to git-status --ignored and git-worktree remove (r430)
  • plugins/session-flow/skills/recommend-skills/SKILL.md: cache-layout description removed; reuse-the-index decision kept with a pointer to plugins/loading#find-plugins-on-disk (r439)
  • plugins/session-flow/skills/reconcile/SKILL.md: hung-shell explanation removed; check-before-retiring rule kept with a pointer to sub-agents#finished-subagents-in-the-panel-and-task-list (r435)
  • plugins/session-flow/skills/running-retro/SKILL.md: lossless and survives-compaction claims removed, retro-parser reading kept with a pointer to how-claude-code-works#work-with-sessions (r437); /loop-cannot-fire claim removed, no-scheduler and observer-counterpart decisions kept with a pointer to…
  • .changes/docs-hygiene/work-resolve-issue-issue-12695-41591301018-1-08579f29.md: patch fragment

Verification

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

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

The run reports:

  • read https: //code.claude.com/docs/en/skills: 'How injected commands run' and 'How a skill gets its command name' exist; a .claude/commands file and a skill both create the same slash command, and skills add supporting files
  • read https: //platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices: 'Avoid deeply nested references' (partial reads such as head -100) and 'Structure longer reference files with a table of contents' (TOC above 100 lines) exist
  • read https: //code.claude.com/docs/en/memory: 'Write effective instructions' states the CLAUDE.md size target
  • read https: //code.claude.com/docs/en/tools-reference: 'Edit tool behavior' lists the checks an edit must pass; 'Task tool availability' lists the task tools and which sessions get them
  • read https: //modelcontextprotocol.io/specification/2026-07-28/server/tools: the Tool data type lists annotations as optional
  • read https: //code.claude.com/docs/en/sandboxing: 'What runs outside the sandbox' lists local MCP servers
  • read https: //code.claude.com/docs/en/mcp: 'MCP installation scopes' gives where each scope is stored
  • read https: //raw.githubusercontent.com/npm/cli/latest/docs/lib/content/commands/npx.md (docs.npmjs.com/cli/commands/npx returned an empty page): the Description section covers how a spec with or without a version resolves
  • read https: //docs.npmjs.com/policies/unpublish: Considerations says a used packageversion can never be used again
  • read https: //modelcontextprotocol.io/specification/2026-07-28/changelog: Major changes removes initialize and adds server/discover
  • read https: //github.com/modelcontextprotocol/python-sdk, https: //github.com/modelcontextprotocol/typescript-sdk, https: //github.com/modelcontextprotocol/csharp-sdk: the READMEs document neither tool _meta nor server instructions; each links its docs site
  • read https: //py.sdk.modelcontextprotocol.io/api/mcp/ and https: //py.sdk.modelcontextprotocol.io/servers/tools/: neither documents meta= or instructions
  • read https: //py.sdk.modelcontextprotocol.io/api/mcp/server/: MCPServer (#mcp.server.MCPServer) has an instructions parameter; MCPServer.tool is anchored at #mcp.server.MCPServer.tool (its body was past the read's truncation)
  • read https: //ts.sdk.modelcontextprotocol.io/v2/api/: links the server/mcp and server/server pages
  • read https: //ts.sdk.modelcontextprotocol.io/v2/api/modelcontextprotocol/server/server/mcp.html: registerTool (#registertool) documents a _meta config field
  • read https: //ts.sdk.modelcontextprotocol.io/v2/api/modelcontextprotocol/server/server/server.html: ServerOptions is anchored at #serveroptions (its body was past the read's truncation)
  • read https: //csharp.sdk.modelcontextprotocol.io/api/ModelContextProtocol.Server.McpMetaAttribute.html and .../McpServerOptions.html: both are redirect stubs to the /v1/api/ pages
  • read https: //csharp.sdk.modelcontextprotocol.io/v1/api/ModelContextProtocol.Server.McpMetaAttribute.html: documents the bool, double and string constructors and the JsonValue property
  • read https: //csharp.sdk.modelcontextprotocol.io/v1/api/ModelContextProtocol.Server.McpServerOptions.html: documents ServerInstructions
  • read https: //code.claude.com/docs/en/plugins/components: 'Default settings' (supported keys, file over manifest) and 'LSP servers' (invalid entries, missing binary) exist
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41591301018

Left out: the items under Not verified.

Related

#12695

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 a65938ba3445513e185b1102a92032c69714e1bf. The lanes clear this reason on their own; the next scheduled run judges it again.

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

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental): PR #12794, a65938b → d719d4d

I found no security issues.

Scope. This was an incremental review. Since a65938b, one file changed: plugins/mcp-tools/skills/audit/reference/server-discovery.md. I read its one hunk in full. The file does not match any TRUSTED PATHS glob. The push changes no plugin manifest, workflow, action, script or hook, so no manifest <field> lines apply.

What changed. The Python SDK's meta-extraction entry used to say "the tool registration's metadata argument". It now names the meta= argument of @mcp.tool, or of add_tool when a tool is registered in code. The upstream MCPServer.tool pointer stays, and so does the rule that only a value that serializes to JSON true satisfies C18. This makes a search target in an audit reference more precise. It does not remove or soften any instruction, grant any tool, add any fetch target or touch any credential path. I found no route from it to a leak, a compromise or a charge.

Prior findings. This lane's earlier summary on a65938b reported no findings, so nothing needs restating.

PR context. The description contains no instructions aimed at this lane.

No spend change: the push changes no turn limits, schedules or lane configuration.

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 a65938ba3445513e185b1102a92032c69714e1bf; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12794, incremental since a65938ba

Scope. This is an incremental review. Since a65938ba the push changed one file, plugins/mcp-tools/skills/audit/reference/server-discovery.md, and I read its single hunk in .claude-lane/incremental.diff. For context I also read the head file around it, plugins/mcp-tools/skills/audit/reference/checklist.md:163-166, the PR context and the prior-findings file. The prior-findings file shows round 1 of 3, not past the cap. No settled-threads file was named, and this push changes no plugin manifests.

What changed. The Python meta-extraction entry names the parameter again: "the meta= argument of @mcp.tool (or of add_tool when the tool is registered programmatically)". It still points at the MCPServer.tool reference.

Prior finding (discussion_r4456280263, lines changed since posted: yes).

  • Fixed: the missing search target. The Python entry once again gives an auditor a concrete marker to grep for, as the TypeScript entry does with _meta on registerTool and the dotnet entry with [McpMeta]. That restores the promise in checklist.md:164-165 that each language's entry "names that way". Row r341 also keeps tool markers needed for discovery, so naming the parameter fits the issue.
  • Still open, not counted as a finding: the anchors are unconfirmed. The PR body still says the bodies of #mcp.server.MCPServer.tool (server-discovery.md#L83) and the TypeScript #serveroptions anchor (server-discovery.md#L34) were "past the read's truncation". So docs: replace restated upstream facts with pointers in docs-hygiene, mcp-tools, plugin-quality, session-flow #12695's "confirm the section still documents the fact" stays author-unconfirmed for those two anchors. I can't show either anchor is wrong, and with the parameter named an auditor no longer depends on them to find the value, so I'm leaving this as a note for whoever merges, not a blocking finding.

Findings: none in this increment.

Not verified by me: that the upstream pages document meta= on MCPServer.tool/add_tool. I had no shell or network access, so this rests on the author's word.

No embedded instructions found in the PR context or the prior-findings file. Spend: none beyond this review run.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zLeHE
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit b3d61fb Nov 3, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12695-41591301018-1 branch November 3, 2026 16:05
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.

docs: replace restated upstream facts with pointers in docs-hygiene, mcp-tools, plugin-quality, session-flow

1 participant