Skip to content

docs(contracts): cut restated upstream behavior from hook-observability and mod-authoring - #17101

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16830-44271850531-1
Nov 18, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16830-44271850531-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16830

Summary

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

Part 3 of #15511. I reworked the six listed passages in docs/contracts/hook-observability/README.md and the four in docs/contracts/mod-authoring/README.md. Each was either cut back to the anchored pointer already beside it, or rewritten as this repository's own rule with its reason where a procedure depends on it. Rewritten as our own rules: the user-channel disclosure for content changes, a block reason stated once, a model notice per agent with forks included, a bare stderr skip not counting as a notice, classifierContext as no notice channel, the file sink as the only hook telemetry, the README duty for PreToolUse plugins (worded to match ADR 0052's 'says so'), and mods writing diagnostics to the debug log. Cut to pointers: the $.process and session.start facts, and the mod-switch and agent-registration facts. No pointer or anchor was added or changed, and no new upstream fact was written. One choice of means: the mod-policy check in mod-authoring now reads as unconditional. The old qualifier ('on a machine with managed settings or a Team or Enterprise login') restated where upstream policy applies, and the check costs one look at the linked pages.

Not verified

  • check-affected skipped comment-hygiene: its fetch of the ci-workflows action from raw.githubusercontent.com was denied by the sandbox; the PR's CI runs it (the change adds no code comment)
  • check-affected skipped typos (not installed here); CI-only checks such as lychee-online-changed and docs-only-contract are left to the PR's CI
  • tidy: the deterministic ai-slop detector (detect.sh) is not a wrapper this lane may run, so pass 5 ran the rubric by reading only; passes 1-3 do not apply to markdown. Tidy pass 4 (write-for-agents) applied two cuts in the listed lines.
  • No upstream page was fetched this run: the change adds no external fact and keeps every existing pointer; whether each anchor still resolves live is left to the PR's link checks

Fix

  • docs/contracts/hook-observability/README.md: rewrote the no-file-change-surface, exit-2 reason, fork inheritance, exit-0 stderr, classifierContext and OTEL_* passages as repository rules that point at the existing hooks, sub-agents and monitoring-usage anchors, and stopped restating upstream…
  • docs/contracts/mod-authoring/README.md: rewrote the PreToolUse README duty (kept 'says so', per ADR 0052), the mod-switch and policy check, the $.process/session.start lead-in and the troubleshooting paragraph to point at the existing upstream anchors; the debug-log diagnostics rule is kept as a…

Verification

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

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 5 fragments valid (docs-only change, no plugin release record needed)
  • .lane/checks/bin/check-changed-skills: no changed skills, nothing to gate
  • .lane/checks/bin/check-affected: 12 passed, 7 skipped over 2 changed files (final run after the review fixes)
  • Grep over the repository for the removed phrases (e.g. 'keep them from running', 'declared CLI only', 'inherits only what fired'): no other file quotes them
  • fresh-context review subagent over the full diff: 4 findings confirmed and fixed (ADR 0052 README-duty conflict, OTel paragraph lost its reason, unclear classifierContext cap sentence, dropped debug-log rule), plus wrapping fixes; it confirmed every anchor in the edited passages still resolves
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44271850531

Left out: the items under Not verified.

Related

#16830

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

Copy link
Copy Markdown
Contributor

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

Security review of PR #17101: no security issues found.

The PR changes only prose in two contract docs, docs/contracts/hook-observability/README.md and docs/contracts/mod-authoring/README.md. I read every hunk of both files. Neither file matches a trusted-path glob, and the PR touches no code, workflow, manifest or trust control.

Instruction-surface lens. The diff rewords standing guidance, so I checked each changed rule for what would break without it.

  • hook-observability. The rewrite keeps every rule:

    • the user-visible disclosure of content changes;
    • the exit-2 block reason stated once and not copied to systemMessage;
    • the per-agent model notice, now naming forks explicitly;
    • a bare stderr exit-0 skip not counting as a notice, which scripts/check-silent-skips.sh still enforces;
    • classifierContext not being a notice channel;
    • the file sink as the only telemetry surface for hooks.

    What was cut is upstream rationale. The required behavior is unchanged.

  • mod-authoring. The README duty for plugins with PreToolUse hooks used to say that "a mod can keep them from running and can approve a call they blocked". It now says the README must state "what a loaded mod can do to those hooks, as ADR 0052 decides". The duty to tell users about mod bypass remains and now points to ADR 0052, which decides the behavior. Approval for a user-scope CLAUDE_CODE_PLUGIN_DIRS change is kept word for word. The other edits make the mod-policy check unconditional, which is stricter, and replace restated upstream facts with pointers.

  • None of the removed text was a guardrail that stopped an action, so no protected class loses enforcement. I did not consult the instruction exception register: this lane has no access to that URL, and I did not look for the file in the checkout. I judged each change by its consequence instead.

Embedded text. The PR context has no directives aimed at the review.

This was a full review. No earlier head was reviewed, so it was not blocking only, and there were no prior findings to repeat.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read both changed files in full: docs/contracts/hook-observability/README.md and docs/contracts/mod-authoring/README.md. The pull request changes only these two docs and touches no trusted path.

Closing issue #16830 against the change:

  • hook-observability, 6 passages: each is now a repository rule with its reason, or points at the existing anchored link.
    • Content-change disclosure: the reason is in the new sentence at L68. The recheck trigger at L72-74 still matches, because L65-66 still say the harness line shows no change.
    • Exit-2 reason: the reason sits on the "already visible" lead-in at L84.
    • One model notice per agent, forks included: the reason is stated inline.
    • Bare stderr skip: it is not a notice under this convention.
    • classifierContext: never a notice channel, and its cap never lowers item 1's cap.
    • File sink: the reason is now that a hook cannot count on getting the exporter configuration.
  • mod-authoring, 4 passages:
    • The README duty is worded as a pointer to ADR 0052. I checked it against docs/adr/0052-adopt-claude-code-mods.md:160-164 ("The README of each plugin with PreToolUse hooks says so"), and it matches.
    • The mod-switch and policy check, the $.process/session.start lead-in and the troubleshooting paragraph are cut down to the pointer lists already below them.
    • The debug-log diagnostics rule is kept as a repository rule.
  • Tests: neither criterion is testable code, and no test applies.

PR description: the description says "No pointer or anchor was added", but mod-authoring/README.md:181 adds one internal link, ../hook-observability/README.md#text-a-hook-adds-for-the-model-frequency-and-phrasing. That anchor matches the heading at hook-observability/README.md#L226, and the section's Frequency rule backs the sentence that cites it. This is a gap in the description, not a defect, so I did not count it as a finding.

Rules checked:

  • Path-scoped rules: .claude/rules/cost-claims.md covers docs/**/*.md, and the change makes no cost claims.
  • Paved paths: I did not resolve a standards index this run, so nothing was checked against one.
  • Plugin manifests: none changed.

Author-claimed and not checked by me: the PR's check results and its statement that every upstream anchor still resolves live. I fetched no pages.

Embedded text: I found no instructions aimed at the lane in the PR context.

This is the first review of this pull request (blocking only: no).

Loosened-check verdict: fail (default; the prompt gave no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The change is docs-only and loosens no check.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for d67ccbd

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-17101-d67ccbd13e70df50d64bf4b2adb4c691939d0276, 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=MEDIUM demote=false head=d67ccbd13e70df50d64bf4b2adb4c691939d0276 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 5997525 Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16830-44271850531-1 branch November 18, 2026 11:01
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 5997525d591ba8fe14493e6db77e1c12e0eb8b39; 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 3 of 5

0 participants