Skip to content

docs(harness-config): cut restated upstream text in skill bodies to pointers - #17224

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

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16926

Summary

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

Cuts restated upstream text in the harness-config skill bodies to pointers for 10 of the 11 held rows, per upstream-drift contract 6.0.0. Every operative rule and its reason stays. Per row: harness-config-4: audit-automation-gaps states the shift-left carve-out's reason in our words and replaces its Claim/Basis table with two pointers (hooks-guide opening; hook-timing.md absence record). harness-config-12: the hook-timing.md absence record drops the quoted SessionStart line and the SessionEnd 1.5-second figure and points at hooks#sessionstart and hooks#sessionend. harness-config-13: audit-instructions scopes the cat/sed/head and Glob/Grep ban to this plugin's own files and gives its reason: in our eval runs a sandbox denied plugin-directory calls and invalidated the runs (#13768, the reason improvement:find already cites). harness-config-21: audit-permission-state's --oracle bullet keeps the cost-print decision and points at criteria.md "What the oracle costs, measured" instead of restating the measured list. harness-config-23: the --critique bullet keeps 'truncated is reported as truncated, empty as unavailable, never a clean bill' and points at criteria.md "The measured defensive contract" instead of restating the 2.1.225 runs. harness-config-24: 'this lane needs python3' stays, and the jq/control-character explanation is cut to that same pointer. harness-config-29: the measured defensive contract (it records copied strings such as the bracketed label shape, so it counts as a stored value) now names its probe (automode-block-lint.sh header and --critique handling) and carries As of 2026-08-12 and the recheck trigger the script header already used. harness-config-37: audit's issue-recheck route drops the GraphQL availability clause; the fallback order is unchanged. harness-config-40: audit's 'Refusals in auto mode' keeps the never-retry and operator-fallback decision, drops the classifier category strings, and moves the probe record (PR #153, as of 2026-09-27, its trigger) into context/procedures.md, which used to point back at SKILL.md for it. harness-config-49: draft-auto-mode-rules drops 'the critique names stripping them explicitly'. Skipped: harness-config-47 ('Restate decision in our words; drop the quoted tool output'). The issue's table gives no quote for the row. I searched every harness-config SKILL.md for quoted tool output and found no line that clearly matches. The closest candidate, setup's '[shell command execution disabled by policy]' placeholder, is a fleet-wide shared sentence in 18 setup skills and already a conforming stored value, so editing it in one plugin would cause drift.

Not verified

  • harness-config-47 skipped: the issue gives no row quote and no harness-config line clearly matches 'drop the quoted tool output'; the nearest candidate (setup's policy-placeholder sentence) is shared by 18 setup skills and already conforms as a stored value
  • Review finding left: hook-timing.md row 86 (an absence record) and rows 82-85 (pointer records) still carry As of / Recheck cells that contract 6.0.0 drops from pointers; stamp removal is the stamp sweep's work (#15468), not this form-only issue
  • Review finding left (pre-existing): criteria.md 'What the oracle costs, measured' holds measured figures (2.1.225, 216 lines) without its own As of / Recheck trigger; not one of this issue's rows
  • ai-slop detector (detect.sh) not run in tidy pass 5: the lane's Bash allows only its named wrappers; the listed lines were checked by hand against the catalog's script tells (no em dashes, listed vocabulary or chat residue) and the rubric
  • Tidy pass 4/5 skills were invoked once for the change set rather than once per file, to stay inside the tidy turn budget; passes 1-3 had nothing to do (all-markdown change)
  • Typos, markdownlint, lychee link checks and the other CI-only checks listed by check-affected are left to the PR's CI
  • Untracked root dotfiles (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were present before this run and are not part of this change; left untouched

Fix

  • plugins/harness-config/skills/audit-automation-gaps/SKILL.md: carve-out reason in our words; Claim/Basis table replaced by two pointers (row 4)
  • plugins/harness-config/skills/audit-automation-gaps/context/hook-timing.md: absence record drops the quoted SessionStart line and SessionEnd figure, points at both event sections (row 12)
  • plugins/harness-config/skills/audit-instructions/SKILL.md: Read-tool rule scoped to the plugin's own files, with its reason and #13768 (row 13)
  • plugins/harness-config/skills/audit-permission-state/SKILL.md: --oracle cost, --critique runs and python3/jq explanation cut to pointers into criteria.md (rows 21, 23, 24)
  • plugins/harness-config/skills/audit-permission-state/reference/criteria.md: measured defensive contract names its probe and carries As of and Recheck trigger (row 29)
  • plugins/harness-config/skills/audit/SKILL.md: GraphQL clause dropped (row 37); refusal category strings and probe record moved out, decision kept (row 40)
  • plugins/harness-config/skills/audit/context/procedures.md: now holds the auto-mode refusal probe record with Probe, As of and Recheck trigger (row 40)
  • plugins/harness-config/skills/draft-auto-mode-rules/SKILL.md: dropped the critique-attribution clause (row 49)
  • .changes/harness-config/work-resolve-issue-issue-16926-44371106303-1-46944983.md: patch changelog fragment

Verification

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

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

The run reports:

  • check-changelog-fragments: all 16 fragments valid (run before and after tidy and review fixes)
  • check-changed-skills: 5 skills checked, 0 failed (warnings are pre-existing size/description/TOC notes)
  • check-affected: 14 passed, 8 skipped (shellcheck/ruff: no changed code; typos not installed; comment-hygiene fetch blocked; checked-tree code checks skipped by design), 0 failed
  • grep of plugins/harness-config (excluding CHANGELOG) for removed strings (GraphQL clause, category names, 1.5-second, 'names stripping', 'deterministic control'): no eval or test asserts on removed text; 'critique returned nothing' remains emitted by automode-block-lint.sh and asserted by its test,…
  • read https: //code.claude.com/docs/en/hooks: the page links #sessionstart and #sessionend anchors; the SessionEnd budget figure sits in the common-fields timeout row
  • read https: //code.claude.com/docs/en/hooks-guide: the opening paragraph carries the deterministic-control statement of purpose the new pointer names; the opening paragraph has no section anchor, so the pointer is page-level
  • read https: //github.com/melodic-software/claude-code-plugins/issues /13768: sandbox denials of plugin-root Glob/Grep (and a denied Bash shape containing a cat of plugin data) in eval runs, the basis for row 13's reason
  • fresh-context review subagent over the whole diff: no lost rule, no broken pointer target, no eval asserting removed text; two medium findings, one fixed (criteria.md probe now names where the three critique runs are recorded), one left (see not_done)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44371106303

Left out: the items under Not verified.

Related

#16926

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

Copy link
Copy Markdown
Contributor

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

Security review: PR #17224

I found no security issues.

Every file in this pull request is Markdown: 7 skill bodies or their reference and context files under plugins/harness-config/skills/, plus 1 changelog fragment. None of the 9 changed files matches a trusted-path glob. No script, workflow, action, hook, manifest or userConfig key changes. I read every hunk of all 9 files in the diff.

Instruction-surface lens. This diff softens and moves standing skill text, so I checked each removed or reworded rule by what it prevents. I did not read the protected-class register file; I judged each rule by what breaks without it.

  • audit-instructions/SKILL.md:27: the read rule now reads "this plugin's own files" where it said "plugin files". It still bans shell reads and still bans Glob or Grep of the plugin directory, and it adds the reason (test(evals): re-author protected-path cases and run unmeasured cases left after #7296 #13768). The rule avoids sandbox denials in eval runs. It is not a security control, and what it forbids is unchanged.
  • audit/SKILL.md "Refusals in auto mode": "are refused" becomes "can be refused". The never-retry-around-a-refusal rule and the operator fallback both stay. The category strings and probe record moved to audit/context/procedures.md, where the never-retry rule is also restated. No guard was lost.
  • audit-permission-state/SKILL.md:
    • The --oracle bullet still says the oracle is opt-in and prints its cost before it spawns anything.
    • The --critique bullet still distrusts the exit status and still reports a cut as truncated and an empty result as unavailable, never as rules that are clean.
    • The python3 requirement and the visible skip notice both stay.
    • The measured details became pointers to reference/criteria.md, which now carries an As of date and a recheck trigger.
  • audit/SKILL.md §3.2: only an explanatory clause about GraphQL was dropped. The REST endpoint and the order of fallback routes are unchanged.
  • draft-auto-mode-rules/SKILL.md: only the clause attributing the rule to the critique was dropped. The rule itself (no prose provenance in entries) stays.
  • audit-automation-gaps: a Claim/Basis table and a quoted upstream sentence became our own wording plus pointers. The carve-out's reason and the rule that no latency or placement argument counts as upstream guidance both stay.

PR context. It holds no embedded instructions aimed at the review lane.

critique-findings: n/a
critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17224 (docs(harness-config): cut restated upstream text in skill bodies to pointers)

No findings. All 9 changed files were read in full. Every file is markdown: skill bodies, their reference and context records, and one changelog fragment. No code, test, workflow or manifest changed.

Closing issue #16926. The done-when criterion is met. Each harness-config row (-4, -12, -13, -21, -23, -24, -29, -37, -40, -49) is either cut to a pointer or restated as our own rule with its reason kept. Row -47 is listed in the PR body as skipped, with a reason, which the criterion allows. No test could catch a lost rule in prose. That is in the nature of a documentation-form criterion, so I am noting it here and not counting it as a finding.

Pointer targets checked against the head tree:

  • criteria.md has the section "The auto-mode entry diff" (L233). The paragraph "What the oracle costs, measured" is inside it (L304).
  • criteria.md has the section "The measured defensive contract" (L397).
  • That section's new Probe line points at automode-block-lint.sh. The script's header carries the same as-of date (L13). Its --critique handling records the three-run measurement (L395-L411).
  • The string "critique returned nothing; run it yourself" is still emitted by the script and still asserted by its test, so cutting the quote from SKILL.md breaks no test.
  • In the audit skill, context/procedures.md now holds the refusal probe record under "Phase 5: fixes the skill can apply". SKILL.md points at that section. The old back-pointer from procedures.md to SKILL.md is gone, so the two files no longer point at each other.
  • hook-timing.md "Upstream-fact records" exists for the new pointer from audit-automation-gaps.

The live upstream anchors (hooks#sessionstart, hooks#sessionend, the hooks-guide opening) were confirmed only by the PR author. I could not check them: this lane has no network access.

The changelog fragment's bump: patch fits a documentation-only change. No plugin.json or marketplace.json changed, so there are no manifest lines.

No path-scoped rule under .claude/rules/ was evaluated for this run. No check is loosened. The scope change in audit-instructions still bans Glob and Grep of the plugin directory and only adds the reason.

Loosened-check verdict: fail (default; the prompt supplied no verdict or patterns lines); patterns: 0

No spend: the change is documentation only.

No subagents were dispatched, so there was no verifier stage.

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 c70bbe46041364cbd0f9ef0b54c46d492d9df8d8, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for c70bbe4

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-17224-c70bbe46041364cbd0f9ef0b54c46d492d9df8d8, 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=c70bbe46041364cbd0f9ef0b54c46d492d9df8d8 rubric=10.3.4 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 d827752 Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16926-44371106303-1 branch November 18, 2026 21:34
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit d827752251c1a2fde2e5df8b1292f9fe16bb5895; 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.

skills: cut restated upstream text to pointers (held form-only rows, group 2: harness-config, harness-memory, knowledge, event-storming) - part 2 of 4

0 participants