Skip to content

docs(harness-config): replace restated upstream facts with pointers (part 1 of 2) - #12824

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

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12685-41625608977-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12685

Summary

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

Rewrote all 28 listed rows (r200-r229) in 10 harness-config skill and reference files. Each restated upstream Claude Code fact is gone; the local decision stays in our own words and points at the exact docs section with an as-of date (2026-11-03) and a recheck trigger. Where a row's issue pointer was a legacy alias (plugins-reference#settings serves the manifest-reference page), the pointer uses the canonical plugins/manifest-reference#settings slug, per docs/contracts/upstream-drift 'A 200 does not mean you got the page you asked for'. Where a passage described our own script's firing rule (C5-disableType, the merge's evaluation order, managed loosenable rule), the rule stays in our words or names the script that encodes it, and the pointer is for checking it, per the convention's 'A catalog row that must fire without a live fetch keeps its firing rule in our own words'. 'Same text also at' locations were left alone unless a fix cost nothing (phase-a-inventory 131-133), since the issue says those are covered only when listed.

Not verified

  • check-stamps.sh --trigger-less on the touched files (a done-when item framed as a PR check): not run, since this lane's Bash runs only the named wrappers; I read the script and every touched file has a trigger it recognizes. Left to the PR's CI or reviewer
  • tidy (code-tidying:tidy-diff): skipped, since the change touches 11 files, over the 10-file cutoff
  • 'Same text also at' locations the issue says are covered only if listed (e.g. reference/agents-md-liveness.md:67-69, audit-permission-state criteria.md 39/133-143/228-232/259-262/339/357-358/456-458/476-483, SKILL.md 255-258/289/325-328, criteria.md 213/262-275, doctor-handoff.md:3) still restate…
  • Possible review findings left as is: the audit-permission-state Scopes paragraph no longer states the reader's worktree and startdir-local behavior (still in reference/criteria.md §Scopes, as row r226 asks); 'four admin surfaces per OS' kept as the reader's own surface count; the AGENTS.md bullet…
  • Untracked files not created by this run appear in the working tree (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc), apparently runner environment files; I left them untouched and they are not part of this change
  • markdownlint and script tests: check-changed-skills ran with CHECK_SKILL_SKIP_MARKDOWNLINT and CHECK_SKILL_SKIP_SCRIPT_TESTS set; left to the PR's CI

Fix

  • plugins/harness-config/skills/audit-automation-gaps/context/hook-timing.md: r200/r201: dropped the async validity and no-decision claims (prose, table row, async lever) and the if-rule spawn timing; added async and if records to the Upstream-fact records table
  • plugins/harness-config/skills/audit-instructions/SKILL.md: r202: dropped the recommended example count; kept the approach-vs-format rule with a pointer
  • plugins/harness-config/skills/audit-instructions/context/phase-a-inventory.md: r203/r204/r205: dropped the CLAUDE_CONFIG_DIR relocation claim, the AGENTS.md displacement description, and the auto-memory variable values, precedence and default; kept the resolution decisions with pointers
  • plugins/harness-config/skills/audit-pass/SKILL.md: r207/r208: dropped the name-override claim and the /doctor ownership description; kept info-level shadowing and the handoff decision with pointers (skills, sub-agents, mcp, memory)
  • plugins/harness-config/skills/audit-pass/reference/doctor-handoff.md: r209: dropped 'prompt-based bundled skill'; kept the determinism exclusion and reasoning with a pointer record
  • plugins/harness-config/skills/audit-pass/reference/liveness-sources.md: r210: dropped how listing drops are scored; kept that the pass cannot report drops, with a pointer
  • plugins/harness-config/skills/audit-permission-grants/SKILL.md: r211/r212/r213: dropped the /permissions alias and dialog description, the Always-allow write claim, and where plugin variables resolve; kept the boundaries and P4 decision with pointers
  • plugins/harness-config/skills/audit-permission-grants/reference/criteria.md: r214-r219: dropped the Always-allow and config-root claims, the enumerated auto-mode drop classes, the Monitor drop-class statement, Bash literal-match and tilde claims, and plugin settings supported keys; kept the…
  • plugins/harness-config/skills/audit-permission-state/SKILL.md: r220/r221/r223/r224/r225/r226: dropped the /permissions limits and no-export claim, the deny-ask-allow and scope-rank statements, the disableAutoMode value claim, the managed-rank explanation, the remote-settings cache path and…
  • plugins/harness-config/skills/audit-permission-state/reference/criteria.md: r227/r228/r229: dropped bare-deny, whole-tool deny/ask and EndConversation behavior descriptions, accepted-rule-shape and trailing-text description, and the $defaults replacement statement; kept the reader's…
  • .changes/harness-config/work-resolve-issue-issue-12685-41625608977-1-197f6995.md: new patch changelog fragment

Verification

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

  • 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/hooks.md (via a subagent's WebFetch): #run-hooks-in-the-background and #common-fields exist and cover async hooks and the if field
  • read https: //platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices: #use-examples-effectively exists and covers few-shot examples
  • read https: //code.claude.com/docs/en/env-vars.md: #variables exists with a CLAUDE_CONFIG_DIR row
  • read https: //code.claude.com/docs/en/memory.md (this session's own WebFetch, plus the subagent's): #choose-which-instruction-files-load, #enable-or-disable-auto-memory (mentions CLAUDE_CODE_DISABLE_AUTO_MEMORY) and #audit-your-instruction-files exist
  • read https: //code.claude.com/docs/en/skills.md: #resolve-skills-that-share-a-name, #check-your-setup-with-doctor and #skill-descriptions-are-cut-short exist
  • read https: //code.claude.com/docs/en/permissions.md: #manage-permissions, #bash, #settings-precedence and #permission-rule-syntax exist
  • read https: //code.claude.com/docs/en/plugins/manifest-reference.md: #where-each-variable-resolves and #settings exist (plugins-reference.md serves this same page)
  • read https: //code.claude.com/docs/en/commands.md: #all-commands exists with a /permissions row
  • read https: //code.claude.com/docs/en/settings.md: #find-or-create-your-settings-files, #permission-rules-combine-differently-than-you-expected and #where-claude-code-keeps-the-local-file-in-a-git-repository exist
  • read https: //code.claude.com/docs/en/permission-modes.md: #how-auto-mode-evaluates-actions exists and lists the dropped allow-rule classes
  • read https: //code.claude.com/docs/en/cli-reference.md: #cli-commands exists
  • read https: //code.claude.com/docs/en/settings-reference.md: #disableautomode exists
  • read https: //code.claude.com/docs/en/server-managed-settings.md: #fetch-and-caching-behavior exists
  • read https: //code.claude.com/docs/en/auto-mode-config.md: #override-the-block-and-allow-rules exists and covers $defaults
  • read https: //code.claude.com/docs/en/sub-agents.md: #choose-the-subagent-scope covers same-name subagent priority
  • read https: //code.claude.com/docs/en/mcp.md: #scope-hierarchy-and-precedence covers same-name MCP server precedence
  • check-changelog-fragments: all 1 fragment valid
  • check-changed-skills: 5 skills checked, 0 failed (it first failed on audit-instructions and audit-pass SKILL.md at 502 lines; both were compacted to 499)
  • check-affected: 11 passed, 7 skipped (shellcheck/ruff not applicable, typos not installed, tree-code checks skipped by the wrapper)
  • fresh-context review subagent over the full diff: 5 confirmed findings (C5 wording narrower than the script, merge order lost its script basis, P1 lost the deliberate over-flag of bare package-manager wildcards, leftover Agent carry-over claim, dangling 'reason above' references) all fixed, plus…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41625608977

Left out: the items under Not verified.

Related

#12685

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

Security review: PR #12824 (head ca200d5)

No security issues found.

What was reviewed. I read every hunk of all 11 changed files: one changelog fragment, plus skill and reference bodies under plugins/harness-config/skills/ (audit-automation-gaps, audit-instructions, audit-pass, audit-permission-grants, audit-permission-state). None of them matches a listed trusted path. The PR changes no plugin manifest, workflow, action, script or settings file. The only changes are Markdown edits that replace restated upstream Claude Code facts with docs pointers, each carrying an as-of date and a recheck trigger.

Instruction-surface lens. The diff narrows and rewrites standing instructions in skill bodies, so I checked each removed or softened rule against the protected classes in docs/contracts/instruction-exception-register/README.md. Those are the six Gate 0 classes: irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance and agent-authority.

  • The only agent-authority rule touched is in audit-permission-grants/SKILL.md: the model does not invoke /permissions. The rewrite keeps it word for word ("the model does not invoke it").
  • The other removals are descriptions of upstream behavior, such as async hook validity, CLAUDE_CONFIG_DIR relocation, auto-memory precedence, the auto-mode drop classes, Bash literal matching, plugin settings.json keys and $defaults replacement. Each removal keeps the local decision and adds a live-fetch pointer.
  • The audit detectors that apply these decisions do not change. Examples are the P1 classes, P2b, C5-disableType, C6-malformed, C4-defaults and the order permission-merge.sh encodes.
  • None of the removals takes away a rule that prevented a credential exposure, an irreversible action or a publication.

Other checks.

  • No .claude-plugin/plugin.json or marketplace.json changes, so there are no manifest lines to report.
  • No trust-control file is touched: none of the trusted-trigger, lane-token, kill-switch, resolve-config or merge-hold files.
  • The PR context contains no embedded instruction aimed at the review lane.
  • Prior findings: 0 rounds, cap 3, not past the cap.

Spend. None: this is a docs-only change.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

Code review: PR #12824 found no blocking or advisory findings

I read every hunk of all 11 changed files. This PR is docs only: it rewrites 28 rows (r200–r229) across 10 harness-config skill and reference files and adds one changelog fragment. Each row now gives our decision in our own words, with a pointer to the docs section, an as-of date and a recheck trigger.

Checked against the scripts the rewritten prose describes:

  • C5-disableType (audit-permission-state/SKILL.md): the new wording, "any value other than the string "disable"", matches what the script does. permission-plane-lint.sh fires on conf[k] != "\"disable\"". The old "a boolean" wording was narrower than the script.
  • managed loosenable rule: the new trigger ("a lower-scope rule of an earlier-evaluated kind outranks a managed rule") matches managed-conformance.sh. It also matches the loosenable rule row in reference/criteria.md.
  • P4's plugin-variable scope (audit-permission-grants/SKILL.md, "in a Bash(...) rule anywhere else it does"): this matches the P4 heading and its token table in reference/criteria.md.
  • P1's prose list of flagged classes: it still covers everything the old bullet list covered, including the deliberate over-flag of bare package-manager wildcards. The "How to check", "Why" and "Recommend" sections after it still read correctly without the removed list.
  • Removed cross-references: the dangling references the PR's own review found ("for the reason the entry above gives", the pre-v2.1.211 record wording) are gone. I found no other dangling reference in the context around each hunk.

Closing issue #12685, "Done when":

  • Every row fixed, with pointer, as-of date and recheck trigger: met for all 28 rows as the issue frames them. Each restated value is gone, and each pointer carries an as-of date of 2026-11-03 and a recheck trigger. The r219 pointer uses the canonical plugins/manifest-reference#settings slug in place of the issue's legacy plugins-reference#settings alias, and the PR says why.
  • check-stamps.sh --trigger-less passes: the author did not run it, and I did not run it either (this lane has no shell). From reading the script, its trigger check works per file: a file that states a recheck trigger anywhere clears every stamp in it (the regexes at L455–463). Every touched file has a "Recheck trigger" or "recheck when" that those regexes match, so it should pass. This is unverified until CI runs it.
  • Changelog fragment for each touched plugin: met. .changes/harness-config/…-197f6995.md uses bump: patch, which fits a docs-only change. The author reports that check-changelog-fragments.sh --check passed; I did not verify that.

Not taken from this PR: the "Same text also at" locations the PR leaves unlisted still restate upstream facts, for example the P1 "Why" paragraph and audit-permission-state/reference/criteria.md §Scopes. The issue says those count only when listed, so they belong to part 2 and are not findings here.

The author's verification list (WebFetch reads of each anchor, check-changed-skills, check-affected) is author-claimed. I did not check any of it myself.

No plugin manifest changed, and the PR context holds no embedded instructions aimed at this lane.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 221bfba Nov 3, 2026
79 of 84 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12685-41625608977-1 branch November 3, 2026 16:27
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(harness-config): replace restated upstream facts with pointers (part 1 of 2)

1 participant