Skip to content

docs: cut restated upstream behavior from contracts, conventions and docs (part 4 of 5) - #17108

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16831

Summary

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

Each of the 13 passages in 12 files that #16831 lists (from #15511) no longer restates upstream behavior. Each is either a when-fetch-live pointer to the anchored upstream section or a rule this repository owns, with its reason, where a procedure relies on it. Examples: lanes never return updatedInput because they run in auto mode with no person to answer the ask; the execution-target probe fails on an unlisted connector because the contract does not count on routine defaults; a CI-sourced marketplace is relied on only in an already-trusted folder. The four contracts that keep a CHANGELOG get a patch or wording entry. The permission-rule-hygiene heading that restated the start-mode default is renamed, and its moved-stub link is updated.

The run went past its turn budget (turns=90 max-turns=75): the work may be too big for one run.

Not verified

  • Tidy not run: the change is 17 files across several areas (docs/contracts, docs/conventions, docs/upstream, docs/out-of-scope, top-level docs), over the 10-file and 1-area tidy cutoffs.
  • The CI-only checks (lychee link checks including the new #connectors and #in-settings-files anchors, line-citations, editorconfig, purged-em-dashes, vocabulary) are left to the PR's CI.
  • typos is not installed here and comment-hygiene could not fetch its action (network denied), so check-affected skipped both; both are left to the PR's CI.
  • Outside this issue's list: docs/contracts/hook-input-rewriting/README.md:54-59 is a pointer record that still carries As of and Recheck trigger lines, which upstream-drift says a pointer does not carry. Left unchanged.
  • Outside this issue's list: docs/contracts/permission-rule-hygiene/README.md (the drop-categories sentence after the bash bullet) and docs/migration-playbook.md:688 (seed-variable pointer with an as-of stamp) were not touched.
  • Changes are left uncommitted in the working tree, as the lane instructions require; the runner builds the patch.

Fix

  • docs/contracts/authoring-formats/README.md: the Mermaid-C4 decision rests on the condition this repository owns (no reader of the key can emit mermaid C4); mermaid's stability and landscape type are read at the pointer.
  • docs/contracts/authoring-formats/CHANGELOG.md: 1.0.8 clarification entry.
  • docs/contracts/execution-target/README.md: the routine-triggers record is two when-fetch-live pointers (Supported events, Connectors) instead of restating the connector default; the required-plugins section gives its own reason for failing the probe on an unlisted connector.
  • docs/contracts/execution-target/CHANGELOG.md: 2.0.2 entry.
  • docs/contracts/hook-input-rewriting/README.md: the auto-mode refusal restatement is replaced with this repository's rule and reason (lanes run in auto mode with no person to answer the ask, so they deny with instructions); the pointer uses the when-fetch-live form.
  • docs/contracts/hook-telemetry/README.md: the no-shell-expansion restatement is replaced with the rule (name an installed sink with a reserved value, never a variable in the settings env value) plus a pointer to env-vars#in-settings-files.
  • docs/contracts/hook-telemetry/CHANGELOG.md: wording entry, envelope unchanged at 1.1.
  • docs/contracts/permission-rule-hygiene/README.md: the heading becomes 'Write every rule for the auto-mode case'; the pointer drops its as-of date and recheck trigger; the source conflict names its topic only; 'the default' wording is now 'starts in auto mode'; the bash-wrapper restatement is now…
  • docs/contracts/permission-rule-hygiene/CHANGELOG.md: 1.6.5 wording entry.
  • docs/conventions/permission-rule-hygiene/README.md: the moved-stub link targets the renamed anchor; the stub keeps its old heading for installed-version links.
  • docs/conventions/gather-block/README.md: the worktree isolation basis is a when-fetch-live pointer to the worktrees and errors sections; the isolation half's verified date and its restating trigger clause are dropped.
  • docs/cloud-sessions.md: no longer describes what the reloadSkills section names; says whether it loads a plugin install is unprobed, so the repository does not count on it.
  • docs/migration-playbook.md: the trust and cloud-session restatements are replaced with the rule (rely on a checked-in directory or file source only in an already-trusted folder) plus pointers to the org and install sections.
  • docs/out-of-scope/agent-run-artifact-attestation.md: the Basis no longer restates the in-toto list or the actions/attest predicates; it points at each source with the question to check there, and drops the fetched date.
  • docs/upstream/claude-code-mods/experiments.md: the /clear state-reset restatement is now a pointer to the troubleshoot section.
  • docs/upstream/claude-code.md: the /advisor declined row no longer restates what the advisor page documents; it points at the section.
  • docs/upstream/opus-5-5-task-cost.md: Q20 no longer restates the costs page's model advice; a pointer after the reasons names it as the advice this deviates from.

Verification

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

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

The run reports:

  • check-changelog-fragments: all 5 changelog fragments under .changes/ valid.
  • check-changed-skills: no changed skills, nothing to gate.
  • check-affected: 12 passed, 7 skipped over 17 changed files (typos not installed; comment-hygiene could not fetch its action; others not applicable).
  • Fresh-context review subagent over the whole diff: 8 findings (2 medium, 6 low), each fixed. Fixes: the -p trust case restored as a rule; execution-target pointers split and the connector reason restored; reasons added to hook-telemetry and hook-input-rewriting; dangling 'default path' wording, the…
  • Grep for line-number citations into the edited files: only docs/migration-playbook.md:493-496 and :576-580 are cited, both above the edited hunk, whose line count is unchanged.
  • read https: //code.claude.com/docs/en/settings-reference: its env entry links the env-vars 'in settings files' section and does not itself discuss expansion.
  • read https: //code.claude.com/docs/en/env-vars: 'Set variables in settings files' (linked as #in-settings-files) covers how settings env values reach the environment.
  • read https: //code.claude.com/docs/en/plugins/org: 'Require plugins per repository' covers folder trust for interactive sessions and -p runs.
  • read https: //code.claude.com/docs/en/routines: the page has 'Supported events' and 'Connectors' sections, so the #supported-events and #connectors anchors exist.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44271868201

Left out: the items under Not verified.

Related

#16831

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 base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44279801517

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 1008890
Run 44279801517

Failed GitHub API calls

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17108 (docs: cut restated upstream behavior, part 4 of 5)

I read the whole diff: all 17 listed files and every hunk. The change only touches docs. Each of the 13 listed passages is now either a pointer that says when to fetch the upstream page live, or a rule this repository owns with its reason. That covers both done-when items of #16831:

  • the contracts and conventions: authoring-formats, execution-target, hook-input-rewriting, hook-telemetry, permission-rule-hygiene and gather-block
  • the other docs: cloud-sessions, migration-playbook, agent-run-artifact-attestation, mods experiments, claude-code.md and opus-5-5-task-cost

No blocking or advisory findings.

What I checked:

  • Renamed heading. docs/contracts/permission-rule-hygiene/README.md now has the heading "Write every rule for the auto-mode case". A repository-wide search finds no remaining link to the old anchor #auto-mode-is-the-built-in-default-not-a-state-you-opt-into. The moved-stub in docs/conventions/permission-rule-hygiene/README.md links the new anchor and keeps its old heading.
  • Changelogs. The new entries (authoring-formats 1.0.8, execution-target 2.0.2, permission-rule-hygiene 1.6.5, and the hook-telemetry wording entry) are each one patch or wording step above the last entry. The READMEs carry no version stamp of their own that would need the same bump. The upstream-drift 6.0.0 these entries cite exists in docs/contracts/upstream-drift/CHANGELOG.md.
  • Rewritten reasons. The replacement text gives the repository's own reasons without changing what the docs tell anyone to do:
    • hook-input-rewriting: lanes run in auto mode and have no person to answer the ask, which matches the escape hatch defined just above it at L44.
    • execution-target: the probe fails on an unlisted connector because the contract does not count on routine defaults.
    • migration-playbook: rely on the source only in a folder the collaborator has already trusted.
  • Anchors not checked. The new upstream anchors (routines#connectors, env-vars#in-settings-files) are as the author claims; I did not verify them. Lychee link checking is left to CI.

The PR body flags out-of-list leftovers: hook-input-rewriting/README.md:54-59 still carries As of and Recheck trigger lines, and the permission-rule-hygiene drop-categories sentence is untouched. Both are outside #16831's list, so this review does not count them as findings.

Loosened-check verdict: fail. The wrapper wrote no loosened_check_verdict: or loosened_check_patterns: line, so this is the default with no consumer entries. The diff loosens no check.

Spend: none. This PR changes no lane, model, schedule or billing setting.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #17108 (head 1008890)

I found no security issues. I read every hunk of all 17 changed files in .claude-lane/pr.diff.

The change is documentation only. It touches Markdown under docs/contracts/, docs/conventions/, docs/upstream/ and docs/out-of-scope/, plus docs/cloud-sessions.md and docs/migration-playbook.md. No code, workflow, action, manifest, hook, permission file or trusted-actor file changes. Three files match the docs/upstream/** trusted-path glob:

  • docs/upstream/claude-code.md
  • docs/upstream/claude-code-mods/experiments.md
  • docs/upstream/opus-5-5-task-cost.md

I read their whole changes. Each one replaces restated upstream text with a pointer that says when to fetch the page live. None of them gates anything.

Instruction-surface check. These docs state rules that lanes and authors follow, so I checked every reworded rule for a guardrail that was dropped or weakened. Every rule is kept:

  • docs/contracts/hook-input-rewriting/README.md: a hook that can fire in a lane still denies with instructions and never returns updatedInput. Only the reason given changes.
  • docs/contracts/hook-telemetry/README.md: the ban on naming the sink with ${CLAUDE_PLUGIN_ROOT} in a settings env value stays. It is now stated directly as a rule and extended to any variable, which is slightly stricter.
  • docs/contracts/permission-rule-hygiene/README.md: the advice to write every rule for the auto-mode case is unchanged. A bash <path> rule is still treated as interpreter-led (anti-pattern 1). The section heading is renamed, and the old stub in docs/conventions/ now links to the new anchor.
  • docs/migration-playbook.md: a directory or file marketplace source is still relied on only in a folder the collaborator has already trusted, in interactive sessions and -p runs alike.
  • docs/contracts/execution-target/README.md: the probe still fails on a connector the stage's row does not list, and the contract now gives its own reason for that.
  • docs/conventions/gather-block/README.md: only the provenance notes change (the worktree-isolation verified date and part of a recheck trigger). The gate scripts/check-skill-precompute-compose.sh and the rule it enforces are unchanged.

No skill, agent body, CLAUDE.md, hook block list or allowlist changed. I did not need to check the protected-class register, because no removed rule was found.

Embedded text. Neither the PR description nor the closing issue asks the lane to pass the PR, skip a check or drop a finding.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 1008890e31174f229616992367cc98b2aca28ba4, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 1008890

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-17108-1008890e31174f229616992367cc98b2aca28ba4, 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=LOW demote=false head=1008890e31174f229616992367cc98b2aca28ba4 rubric=10.3.2 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 d3c152d Nov 18, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16831-44271868201-1 branch November 18, 2026 11:07
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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: cut restated upstream behavior left by the stamp sweep (docs/) - part 4 of 5

0 participants