Skip to content

docs: replace restated upstream facts with pointers in discovery, markdown-format - #12779

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12687-41586597328-1
Nov 3, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12687-41586597328-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12687

Summary

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

Rewrote every listed passage in discovery and markdown-format that restated an upstream fact. Each one now drops the restated value, keeps the repository's own decision in its own words, and links the exact upstream section with an as-of date (2026-11-03) and a recheck trigger. I read each upstream page this run and corrected the issue's candidate anchors where they were wrong: the sitemap per-file limits sit under the protocol's index-file section (#index), not #sitemaps-xml-format, and the maxTurns row is under the sub-agents page's 'Frontmatter reference' heading. Following rows r118 and r122, the research and trace-intent pre-compute passages now point at skills#inject-dynamic-context instead of the gather-block convention. That section does not say how a block's commands are grouped, so the recheck trigger names exactly that gap. trace-intent's dispatch notes no longer restate the partial-output behavior, so contract.test.sh no longer requires that file to carry the wording.

Not verified

  • check-stamps.sh --trigger-less (issue done-when) was not executed: this lane runs only the named wrappers. The PR's CI or a person must run it. The trigger and ISO-date coverage it tests for was checked by Grep instead.
  • plugins/discovery/scripts/contract.test.sh was edited but not executed here (no wrapper for it); left to the PR's CI. Its section-8 word-count assertion (research/SKILL.md smaller than discipline.md) was judged safe by size, not measured.
  • tidy skipped: the change spans 2 areas (plugins/discovery, plugins/markdown-format), over the 1-area tidy cutoff, and is also over the 10-file cutoff.
  • Not in the issue's rows, so left as found (review observations): skills/research/context/gotchas.md still characterizes llms.txt as a hand-pick, and skills/research/context/dispatch.md and skills/explore/reference/dispatch.md still restate 'returns its output marked as partial', which…
  • Review finding not applied: the reviewer suggested keeping the gather-block convention link beside the new skills#inject-dynamic-context pointer in research and trace-intent SKILL.md. Row r122 asks to point at the section instead of the convention, so the convention link was removed; the recheck…

Fix

  • plugins/discovery/agents/intent-tracer.md: rows r101-r107. The preload, argument-substitution, inherited-tools, MCP-allowlist, turn-limit and partial-output restatements are replaced by pointers to sub-agents#preload-skills-into-subagents, #available-tools, #restrict-which-tools-a-subagent-can-use,…
  • plugins/discovery/agents/researcher.md: rows r108-r114, the same treatment, plus the source-breadth bullet, which now points at skills#available-string-substitutions and keeps 'read breadth only from the envelope line'.
  • plugins/discovery/skills/explore/reference/workflow.md: row r115. The Convention files bullet drops the claims about which files load and when, keeps what to read, and points at memory#how-claudemd-files-load.
  • plugins/discovery/skills/research/SKILL.md: rows r117-r120. The topic-substitution, pre-compute single-invocation, deep-research description, model-invocation and WebSearch/settings/plan/host restatements are replaced by pointers to skills#available-string-substitutions,…
  • plugins/discovery/skills/research/context/discipline.md: row r121. The sitemap 50k/50 MB caps and the llms.txt curated-index characterization are dropped. The table points at sitemaps.org protocol #index and llmstxt.org #proposal, and a dated recheck line follows it.
  • plugins/discovery/skills/trace-intent/SKILL.md: rows r122 and r123. The pre-compute claim now points at skills#inject-dynamic-context instead of the gather-block convention. The silent-skip/debug-log claim now points at the preload section, and the liveness-token requirement is kept.
  • plugins/discovery/skills/trace-intent/context/dispatch.md: row r124. The turn-limit partial-output statement is replaced by 'a turn-limit stop goes through the same resume-first ladder' and a pointer to sub-agents#resume-subagents.
  • plugins/discovery/scripts/contract.test.sh: dropped skills/trace-intent/context/dispatch.md from the loop requiring the 'returns its output marked as partial' wording. That file still has to point at the parent-contract turn-limit record.
  • plugins/markdown-format/README.md: rows r329, r331, r333, r330 and r334. The discovered-name list, the package.json/--config behavior, nested scoping, the Node module-loading description, the git ignore-source list, the ignores/gitignore behavior and the v0.23.3 stamp are dropped. Each passage…
  • .changes/discovery/work-resolve-issue-issue-12687-41586597328-1-a9202622.md: new patch changelog fragment.
  • .changes/markdown-format/work-resolve-issue-issue-12687-41586597328-1-a44dc623.md: new patch changelog fragment.

Verification

The runner ran each check from the base copy against 215da55:

  • 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/sub-agents: preload section (missing or disabled skill is skipped with a debug-log warning), Available tools (two filters, background default), Restrict which tools (tools/disallowedTools take whole-MCP-server entries), Frontmatter reference maxTurns row…
  • read https: //code.claude.com/docs/en/skills: Available string substitutions table; Inject dynamic context and 'How injected commands run', which do not say how a block's commands are grouped into shell invocations
  • read https: //code.claude.com/docs/en/memory: 'How CLAUDE.md files load' heading present; path-scoped rules load when a matching file is read; some subagents start without project instructions
  • read https: //code.claude.com/docs/en/workflows: Bundled workflows table (/deep-research requires the WebSearch tool; runs only when you invoke it)
  • read https: //github.com/DavidAnson/markdownlint-cli2: headings Configuration, .markdownlint-cli2.jsonc, .markdownlint-cli2.cjs or .markdownlint-cli2.mjs; ignores/gitignore/customRules/markdownItPlugins/outputFormatters keys live under the .jsonc section
  • read https: //www .sitemaps.org/protocol.html: the 50,000 URL / 50MB per-file limit is stated under 'Using Sitemap index files' (#index)
  • read https: //llmstxt.org/: Proposal section describes /llms.txt as a markdown file giving LLM-friendly background and links
  • read https: //git-scm.com/docs/git-check-ignore: DESCRIPTION (#_description) covers exclude-mechanism inputs and that tracked files are not shown by default
  • check-changelog-fragments: all 34 fragments valid (run before and after the review fixes)
  • check-changed-skills: explore, research, trace-intent PASS, 0 errors (warnings are pre-existing size/fresh-eyes notes plus body line growth of 4 and 3 lines)
  • check-affected: 12 passed, 6 skipped, the rest CI-only, over 11 changed files (run before and after the review fixes)
  • read plugins/attribution/skills/audit/scripts/check-stamps.sh: its --trigger-less check clears a file whose text matches 'recheck when <condition>'. Grep finds that phrase in all 8 touched markdown files (30 occurrences), and every new stamp is an ISO 'as of 2026-11-03' date
  • Grep of plugins/discovery/scripts/contract.test.sh assertions against the edited files: maxTurns, stop-turn, Turn budget, marker-slot, and turn-limit record-heading patterns still match; the subagent review re-checked the same set
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41586597328

Left out: the items under Not verified.

Related

#12687

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

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #12779 (head 215da55)

No security issues found. I read all 11 changed files in full in .claude-lane/pr.diff. None of them match the TRUSTED PATHS globs.

What changed: documentation and instruction text only, plus one assertion dropped from a test. In the discovery agents and skills (intent-tracer.md, researcher.md, research/SKILL.md, research/context/discipline.md, trace-intent/SKILL.md, trace-intent/context/dispatch.md, explore/reference/workflow.md), restated Claude Code harness facts are replaced by dated pointers to the upstream docs. The markdown-format README gets the same treatment, and the PR adds two changelog fragments.

Instruction-surface lens

Every rule these passages enforce is still there. I checked each removed sentence by what it used to prevent:

  • Preload liveness. The agents still must confirm the skill body is in context and check the preload token, which is a hard failure on mismatch. Only the restated "skipped silently in the debug log" fact is gone.
  • Tool honesty. Both agents still omit the tools: allowlist and keep their disallowedTools: denylist. The frontmatter is unchanged, so their tools are the same.
  • Write early. The maxTurns: 40 limit, the stop-gathering-by-turn-30 rule and the disk marker coming first are all kept.
  • Gather block (research, trace-intent). The rule to run git reads as separate body Bash calls is kept and made stricter: one command per call. Only the reason given for it changed.
  • Topic and target envelope. A topic or target missing from the dispatch prompt is still a missing input the agent reports. The agent still must not rely on the preloaded slot line.
  • Explore convention files. Path-scoped .claude/rules/ files and nested AGENTS.md files are still read. The root CLAUDE.md is now read only when it is not already in context. That is not a security control.
  • markdown-format trust gate (README). The README still says a .cjs or .mjs config, or a config naming customRules, markdownItPlugins or outputFormatters, waits for approval. It also still says a config the tool reads only through a flag does not open the gate. The gate itself lives in hook code, which this PR does not touch. Only the prose explaining it changed.
  • contract.test.sh. It drops trace-intent/context/dispatch.md from the loop that requires the "returns its output marked as partial" wording. That is a documentation-consistency check, not a security control.

The protected-class register (docs/contracts/instruction-exception-register/README.md) was not read in this run. I judged the changes by what each removed rule used to prevent.

Other checks

  • No plugin manifests, workflows, trust controls, token, kill-switch or merge-hold paths were changed.
  • The PR context file contains no directive aimed at this lane.
  • Prior findings: none (0 rounds with findings, so the round cap did not apply).

critical-findings: 0

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #12779 (head 215da55)

I read all 11 changed files in full, every hunk. I found nothing to block or flag.

This change only edits documentation and prompt text in the discovery and markdown-format plugins. It also makes a one-line change to one test file, plugins/discovery/scripts/contract.test.sh. Passages that restated Claude Code, markdownlint-cli2, git, sitemaps.org or llms.txt behavior now link to the upstream section that owns it. Each link carries an as-of date (2026-11-03) and a condition for rechecking it, and each passage keeps the repository's own rule.

Checked against closing issue #12687

  • Every row fixed (r101–r124, r329–r334): each listed passage drops the restated value, keeps the local rule, and links an upstream section with a date and a recheck condition. That follows .claude/rules/skill-bodies-state-current-rules.md, which governs both changed skill bodies and agent definitions.
    • The PR corrected two candidate anchors from the issue: sitemaps #index and the sub-agents #frontmatter-reference maxTurns row. I did not open the upstream pages; the PR author says they confirmed them, and I have not checked that.
    • For r122, research and trace-intent now link skills#inject-dynamic-context instead of the gather-block convention, as the row asks.
  • check-stamps.sh --trigger-less passes: not run. I have no shell, and the PR says the lane did not run it either. I only confirmed that every new link in the diff carries a "recheck when …" condition and an ISO as-of date. CI or a person still needs to run the script.
  • Changelog fragment per touched plugin: both are present, each with bump: patch, which fits a documentation-only change.

Test change (contract.test.sh)

The test no longer requires skills/trace-intent/context/dispatch.md to contain returns its output marked as partial. That matches row r124, which removes the restatement. The other assertions on that file still match the head text:

  • the turn-limit record heading at contract.test.sh:694-700;
  • the marker slot and "gate reads only that slot" at :713-719;
  • "Run status: complete or no marker; one" at :728-732;
  • the sibling-verifier pointer at :1010-1014.

I also checked the test's assertions on agents/researcher.md, agents/intent-tracer.md, skills/research/SKILL.md and skills/trace-intent/SKILL.md against the edited text. None of them targets a removed phrase.

Both new links to the heading "Scope and topic do not arrive by argument substitution" point at a heading that exists in plugins/discovery/reference/parent-contract.md#L210.

Other checks

  • No .claude-plugin/plugin.json or marketplace.json is changed, so I have no manifest lines to report.
  • Path-scoped rules: skill-bodies-state-current-rules.md applies (no violations found). cost-claims.md also matches the changed skill and agent files, but the diff makes no claims about cost.
  • No prior findings from this review lane on this PR (0 rounds; cap 3, not reached). The prior-findings input named no settled-threads file, so no earlier threads applied.
  • Nothing in the PR context tried to give this review instructions.
  • The PR text includes test output written by the PR author (check-changelog-fragments, check-changed-skills, check-affected, Grep checks). I did not verify it myself.
  • Spend: nothing beyond the normal review run.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit eeac0c6 Nov 3, 2026
44 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12687-41586597328-1 branch November 3, 2026 08:12
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 discovery, markdown-format

1 participant