Skip to content

docs: replace restated upstream facts with pointers in repository docs and bugs - #12818

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

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12690-41625621045-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12690

Summary

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

I rewrote each of the 28 rows in the 12 named files. In each, the restated upstream value is deleted, the repository's own rule stays in its own words, and a context-glue pointer to the exact upstream section is added with an as-of date (2026-11-03) and a recheck trigger. I fetched every pointer during this run. Three candidate pointers did not document their fact, so I used the section that does: hooks#windows-powershell-tool does not exist, so the Windows default shell points at hooks#command-hook-fields (its shell field). cli-reference#plugin-list does not say which name the id and namespace use, so that points at manifest-reference#metadata-precedence. The data-directory facts (r031, r038, r042) point at manifest-reference#environment-variables, which states where the directory lives and when it is deleted. The r040 pointer adds manifest-reference#reference-a-saved-value beside the issue's skills#available-string-substitutions, because the skills table does not cover user_config. Following the issue's rows r516 and r517, two probe bullets were removed from the plugin-reconfiguration verified-version record (uninstall drops values; --config lands in user settings): upstream now documents both, at the sections the new pointers name.

Not verified

  • check-stamps.sh --trigger-less was not executed: the lane's Bash runs only the named wrappers. I checked it against the script's own file-level rule instead; the PR's CI or a reviewer can run it.
  • Tidy skipped: the change touches 14 files across 3 areas (docs/contracts, docs/upstream, plugins/bugs), over the 10-file and 1-area tidy cutoffs.
  • Build and test step skipped: the change is markdown and one JSON description string, with no build or test target. The skill and affected checks above ran instead.
  • Review finding not taken: restore the two removed probe bullets in docs/contracts/plugin-reconfiguration/README.md. The issue's rows r516 and r517 ask to drop them, and upstream now documents both facts at the sections the new pointers name. About 25 other setup skills (e.g.…
  • Review finding not taken: lib/hook-utils.sh:3283-3285 and its vendored plugins/*/hooks/hook-utils.sh copies still comment that settings.json env values are injected literally. lib/ is a shared path outside this issue's rows.
  • Left as is: scripts/sync-plugin-options-docs.py generator text (copied into plugin READMEs, including plugins/bugs/README.md:169-172) says the convention records why a session keeps the old value; caveat 3 now points at the upstream section for it. plugins/skill-quality/skills/setup/SKILL.md:62-64…
  • Untracked files at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change.

Fix

  • docs/contracts/hook-budget/README.md: dropped the description of how mod hooks run and the time-limit skip; kept the k = 0 mod budget; pointer to mods reference#limits refreshed to context-glue form, as of 2026-11-03 (r508).
  • docs/contracts/hook-input-rewriting/README.md: dropped the claims that a denial's reason reaches Claude and that JSON deny and exit 2 route identically; kept deny-with-instructions and the conformance list; added a pointer to hooks#pretooluse-decision-control (r510, r511).
  • docs/contracts/hook-telemetry/README.md: dropped the settings.json env literal-injection claim, the prompt.id description and its v2.1.196 floor, and the payload field-order claim; kept relative-path wiring, prompt_id as the join key and the large-payload fallback; added pointers to…
  • docs/contracts/hook-telemetry/envelope.schema.json: prompt_id description no longer restates the version floor or the OTel attribute, so it matches the README row (review finding).
  • docs/contracts/plugin-reconfiguration/README.md: dropped what an install rerun prints and writes, the -s and user-settings statements, the uninstall-drops-values probe bullet and caveat text, the injection-timing mechanism and each route's exit codes; kept the fallback rerun, the never-uninstall,…
  • docs/contracts/prerequisites/README.md: native-surface table states our rule, not what Claude Code does, with a pointer to manifest-reference#dependencies and #user-configuration (r500, r503); the node-notice row says which command runs under which shell, with pointers to hooks#command-hook-fields…
  • docs/contracts/routing-as-data/README.md: dropped which name list ids and namespaces use; kept entry name must equal manifest name; pointer to manifest-reference#metadata-precedence (r520).
  • docs/upstream/claude-code.md: FORCE declined row drops what FORCE overrides, its version and the Plan/Explore behavior; keeps the decision and owner date; pointer to sub-agents#run-every-subagent-on-one-model (r524).
  • docs/upstream/opus-5-5-task-cost.md: dropped how providers resolve the sonnet alias; the fallback now names the implemented trigger (provider variable set, ANTHROPIC_DEFAULT_SONNET_MODEL unset); pointer to model-config#model-aliases (r525).
  • plugins/bugs/README.md: dropped the cloud data-directory claim, 'prompted at enable time', the settings-file sentence and the --type explanation; kept --track on cloud runs, output_dir via Claude Code's configuration and the type: bug label fallback; pointers to…
  • plugins/bugs/skills/scan/SKILL.md: dropped the ephemeral/unreachable data-directory claim; kept --track on cloud or scheduled runs and the cursor-ladder rung 1; pointer to manifest-reference#environment-variables (r038).
  • plugins/bugs/skills/setup/SKILL.md: step A4 drops the install output, the -s default, the uninstall effect and each route's exit-code behavior; keeps the fallback command, always-pass -s, read exit code and output, and never uninstall; pointer to cli-reference sections and…
  • plugins/bugs/skills/write/SKILL.md: dropped 'the data directory is per-plugin'; kept the project-slug decision and its duplicate-scan reason; pointers to manifest-reference#environment-variables and gh issue create#options (r042, r043).
  • .changes/bugs/work-resolve-issue-issue-12690-41625621045-1-ac43e9fc.md: new patch fragment for the bugs plugin.

Verification

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

  • 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/plugins/mods/reference#limits: the Limits section exists and documents hook time limits and that Claude Code skips a hook that exceeds one.
  • read https: //code.claude.com/docs/en/hooks (two reads, offsets 0 and 100000): PreToolUse decision control documents that a deny reason is shown to Claude and that exit 2 is treated as deny; Common input fields lists session_id and prompt_id (matching OTel prompt.id); SessionStart lists the…
  • read https: //code.claude.com/docs/en/mcp: the heading 'Environment variable expansion in .mcp.json' exists, and the page's own links use the anchor #environment-variable-expansion-in-mcp-json.
  • read https: //code.claude.com/docs/en/monitoring-usage: the 'Event correlation attributes' section defines prompt.id and gives no version floor for it.
  • read https: //code.claude.com/docs/en/plugins/cli-reference: the plugin install section has the -s default user and the already-installed output with exit 0; plugin configure documents exit 1 on a refused value; plugin list exists but does not cover entry versus manifest name; 'What an uninstall…
  • read https: //code.claude.com/docs/en/plugins/manifest-reference: dependencies, User configuration, Where values are stored, Reference a saved value, Environment variables (data directory location and deletion), Where each variable resolves and Metadata precedence (entry name versus manifest name)…
  • read https: //code.claude.com/docs/en/sub-agents: the 'Run every subagent on one model' section documents CLAUDE_CODE_SUBAGENT_MODEL_FORCE.
  • read https: //code.claude.com/docs/en/model-config: the Model aliases section documents per-provider sonnet targets and ANTHROPIC_DEFAULT_SONNET_MODEL pinning.
  • read https: //code.claude.com/docs/en/skills: the Available string substitutions section exists.
  • read https: //cli.github.com/manual/gh_issue_create: the Options section lists --type ('Set the issue type by name').
  • read https: //pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_05_03: section 2.5.3 Shell Variables (anchor tag_19_05_03) defines PPID.
  • .lane/checks/bin/check-changelog-fragments: all 1 fragment valid (run before and after the review fixes).
  • .lane/checks/bin/check-changed-skills: 3 skills checked, 0 failed; existing size and description warnings only (setup body 153 -> 164 lines is a warning).
  • .lane/checks/bin/check-affected: 11 passed, 7 skipped, 0 failed over the changed files (run before and after the review fixes).
  • check-stamps.sh --trigger-less, checked by reading its rule (plugins/attribution/skills/audit/scripts/check-stamps.sh:27-33, 451-464): a file that states a recheck trigger clears its stamps, and every touched markdown file carries a 'Recheck trigger' or 'recheck trigger:' line next to each new…
  • fresh-context review subagent over the full diff: anchors, markdown nesting and the fragment were clean. Confirmed findings fixed: the compaction session-id hedge restored as a condition, the opus-5-5 fallback names the implemented trigger, setup A4 and its gotcha no longer restate exit-code…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41625621045

Left out: the items under Not verified.

Related

#12690

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 c3dc0fbbb0a29aa9255f124d0e7ce6c1ab836146. 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 c3dc0fbbb0a29aa9255f124d0e7ce6c1ab836146: read 14 of 14 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #12818 (head c3dc0fb)

No security issues found.

I read every hunk of all 14 changed files. The changes are markdown docs and skill text, one patch changelog fragment, and one JSON Schema description string (docs/contracts/hook-telemetry/envelope.schema.json). In each file, upstream facts the docs used to restate are replaced with live-fetch pointers that carry an as-of date and a recheck trigger. None of the changed files matches a TRUSTED PATHS glob. No plugin.json or marketplace.json changed, so there are no manifest lines to report.

Check for removed or weakened instructions. The diff shortens standing instructions in three skills (plugins/bugs/skills/setup, scan and write) and in several contract READMEs. I checked each removed or shortened rule against what still enforces it:

  • "Never uninstall to reconfigure" stays as a rule in setup step A4, in setup's Gotchas, and in caveat 1 of the plugin-reconfiguration contract. Only the upstream explanation of what an uninstall deletes became a pointer.
  • The title-injection guard stays in both plugins/bugs/README.md and write/SKILL.md Step 5. That guard says never to put reporter title text into the command string, and to pass --title "$(cat <title-file>)" instead.
  • The failure-signal rule (read the route's output, not only its exit code) is now "read both the exit code and the output". That is the same check or stricter.
  • Mandatory --track on cloud or scheduled runs is kept in scan/SKILL.md and the README.
  • The other edits (the hook-input-rewriting deny wording, the hook-telemetry wiring and correlation keys, the prerequisites table and node-notice row, the FORCE row in docs/upstream/claude-code.md, and the sonnet-alias fallback in opus-5-5-task-cost.md) keep the repository's own rule and remove only the restated upstream behaviour. None of them removes a guard or changes which model or token a lane gets.

docs/contracts/instruction-exception-register/README.md was not consulted. I judged the removed rules by what breaks when each one is missing, and found no protected action that is now unchecked.

PR text: I saw no embedded instructions aimed at this review lane.

No prior findings applied: 0 earlier rounds, cap 3, not past the cap.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #12818 (docs: replace restated upstream facts with pointers)

I read all 14 changed files, every hunk. The change is docs and skill text only. I found no correctness problems, and one advisory issue about how the closing issue's acceptance criteria are tested.

Finding (advisory, no changed line to attach it to)

  • Closing issue docs: replace restated upstream facts with pointers in repository docs, bugs #12690, Done-when: "The PR passes check-stamps.sh --trigger-less (plugins/attribution/skills/audit/scripts/check-stamps.sh) on the files it touches." The PR author says they did not run it, and this lane can't (no shell). Nothing in CI would fail if the criterion broke: outside the script's own unit test (scripts/suite-seconds.txt lists check-stamps.test.sh), no workflow, hook or script calls check-stamps. Going by the script's own rule (check-stamps.sh#L27-L33), it should pass: a file that states a recheck trigger anywhere clears every stamp in it, and every touched markdown file has one. That is a reading, not a run. To close it, run plugins/attribution/skills/audit/scripts/check-stamps.sh --trigger-less <touched .md files> and post the output, or wire the check into CI.

What checks out

  • Issue rows. Each of the 28 rows drops the restated upstream value, keeps the repository's own rule in its own words, and adds a pointer with a section anchor, an as-of date of 2026-11-03 and a recheck trigger. Where the PR used a different pointer than the issue suggested (r505 → hooks#command-hook-fields, r520 → manifest-reference#metadata-precedence, r031/r038/r042 → manifest-reference#environment-variables, r040 adds #reference-a-saved-value), the PR description gives the reason. Its claims that it fetched every pointer and that upstream documents each fact are author-claimed and unverified.
  • Removed probe bullets. The two bullets dropped from docs/contracts/plugin-reconfiguration/README.md (uninstall drops values; --config lands in user settings) are exactly what issue rows r516 and r517 ask to drop.
  • In-file anchors resolve: #claude-plugin-install---config-rerun and #the-sanctioned-escape-hatch.
  • docs/upstream/opus-5-5-task-cost.md. The new fallback wording (a provider variable is set and ANTHROPIC_DEFAULT_SONNET_MODEL is not) matches what plugins/implementation/skills/implement-dispatch/SKILL.md and its evals do.
  • Generated README block. The plugins/bugs/README.md edits sit outside the generated plugin-options block (lines 137–213), so scripts/sync-plugin-options-docs.py won't overwrite them.
  • Tests. No bugs eval or test script checks for the removed wording.
  • Path rules. I checked .claude/rules/skill-bodies-state-current-rules.md against the three bugs skills and .claude/rules/cost-claims.md against docs/**/*.md. No changed line breaks either: no new restatements, no prices.

Other checks

  • Changelog fragment: .changes/bugs/work-resolve-issue-issue-12690-41625621045-1-ac43e9fc.md is a valid bump: patch fragment for the only touched plugin. The repository docs aren't a plugin, so they need none.
  • Plugin manifests: no plugin.json or marketplace.json changed, so there's nothing to compare.
  • Prior findings: none (round 0 of 3; the round cap doesn't apply). There is no settled-threads file.
  • Embedded instructions: none found in the PR context.
  • Spend: the PR changes only docs and skill text, so it spends nothing.

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 repository docs, bugs

1 participant