Skip to content

chore: apply prompt-audit fixes to planning through repo-hygiene plugins - #16336

Merged
kyle-sexton merged 7 commits into
mainfrom
chore/prompt-audit-planning-to-repo-hygiene
Nov 15, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
chore/prompt-audit-planning-to-repo-hygiene

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

No related issue: prompt-audit findings from an owner-requested full-read audit

Summary

A full-read prompt audit (Anthropic's prompt-audit guide) found instruction text written for older models, stale against the repository, or contradicted by another file. This PR (group 7 of 10) applies the verified fixes to the planning, playbooks, playgrounds, playwright, plugin-quality, powershell-format, prototype, python-format, rate-limits, repo-fleet-hygiene and repo-hygiene plugins. A second agent verified every edit against the repository.

The change is instruction text only. The code files it touches change only strings or comments, with no logic change:

  • plugins/planning/surface/round.py: one refusal message drops "any more".
  • plugins/planning/workflows/plan-panel.js: whenToUse lists the judges arg the workflow already reads.
  • plugins/rate-limits/hooks/register.tsx: the status tool description lists every notice model_notices sends.
  • plugins/playbooks/skills/boris/scripts/update.sh: printed step 4 says to add a changelog fragment instead of a version bump.
  • Comments and --help text in packet-prune.sh, audit-fleet.sh, setup-config.sh, clean-batch.sh, destructive-guard.sh (also its block message), git-branch-audit.sh and resolve-clean-action.sh.
  • plugins/planning/prerequisites.json: one degrade string gains a changelog pointer.

Fix

  • Lower-cased capital-letter emphasis (ADR 0098), corrected stale paths, counts, test lists and facts, replaced restated upstream facts with section-anchored pointers, and settled contradictions toward the newer rule.
  • The patch removed the design verification record from design-canvas.md (it duplicated bundled-design.md), so the explore-directions skill's two pointers now name bundled-design.md. The scripts/docs-anchor-baseline.txt row for design-canvas.md is gone, since the file has no anchorless docs link left. docs/native-surfaces/records.json drops its pointer to the 2.1.263 hub detail the patch removed, and docs/native-surfaces.md is regenerated by overlap.py generate.
  • Gave the new Playwright CLI pointer its #all-options anchor.
  • Added patch changelog fragments for the 11 plugins.
  • Reverted two audit hunks that broke pinned tests, keeping the tests: planning/skills/interview/context/ears.md (its digest is pinned by interview-defenses.test.sh) and the MUST produce design-resolution.md gate line in planning/skills/design/SKILL.md (asserted literally by reattach-slice.test.sh).
  • After review: reverted the wayfind Work-mode research hunk, because two wayfind evals still grade the "ask for light" instruction and the graders stay unchanged; reworded the repo-fleet-hygiene README sentence that claimed unshipped parts have linked child issues.

Verification

  • markdownlint-cli2 over the 115 changed markdown files: 0 issues after the blank-line fixes.
  • node scripts/validate-plugin-contracts.mjs (run from the worktree): passes; overlap.py generate --check: in sync after regeneration; scripts/sync-shared-copies.sh --check: all 904 copies match; scripts/check-as-of-recheck.sh and scripts/check-skill-count-claims.sh: pass.
  • scripts/check-changelog-fragments.sh --check and --check-required origin/main: all 11 fragments valid, every changed plugin covered; harness-ops test_overlap.py: 205 tests OK; pre-push check-affected passed.
  • After the reverts, interview-defenses.test.sh (185 pass), reattach-slice.test.sh (25 pass) and repin-digests.test.sh (23 pass) pass locally.
  • Left out: the full .github node suite (CI runs it), and a local AI review (CI review lanes cover it).

Related

N/A

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 15, 2026 08:51
Lower-case capital-letter emphasis markers (ADR 0098), correct stale
paths, counts and facts, replace restated upstream facts with pointers,
and settle contradictions between files toward the newer rule across
the planning, playbooks, playgrounds, playwright, plugin-quality,
powershell-format, prototype, python-format, rate-limits,
repo-fleet-hygiene and repo-hygiene plugins.

Follow-ups the patch needed: the design verification record now lives
only in bundled-design.md, so explore-directions points there, the
docs-anchor baseline drops design-canvas.md's row, records.json drops
its stale bundled-design.md pointer and native-surfaces.md is
regenerated; three removed paragraphs no longer leave double blank
lines; the new Playwright CLI pointer links its section.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 15, 2026 13:58
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T14:01:21.587023Z 6a73f07 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43721978402

Failed GitHub API calls

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

kyle-sexton and others added 3 commits November 15, 2026 09:19
interview-defenses.test.sh pins the digest of interview/context/ears.md
and reattach-slice.test.sh asserts the literal `MUST produce
design-resolution.md` gate line in design/SKILL.md. The audit edits to
those two passages are dropped and the tests kept as they are.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@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 c156735
Run 43721978402

Failed GitHub API calls

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

…epo-hygiene' into chore/prompt-audit-planning-to-repo-hygiene
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only): no security issues found

This review covers only what changed since 41ccf68d, which is two prose-only files. I read every hunk of both. This lane already reviewed an earlier head, so only CRITICAL and IMPORTANT findings would be posted here.

  • plugins/planning/skills/wayfind/SKILL.md (lines 277–280). The research fan-out step now asks /discovery:research for the light verification level, with no separate verifier pass. It also says the repository alone sets that level. The standard and strict handling is the same as before: under standard the verifier is skipped for cost, and under strict it runs. I checked this with the instruction-surface lens. The verifier is a check on research quality, not a security control. Nothing that grants tools, touches credentials, or brings untrusted text into a lane changes. The rule "Never fan out a <human-gated> item" is unchanged. I did not consult the protected-class register: the change does not remove a guardrail, so the register was not needed.
  • plugins/repo-fleet-hygiene/README.md (lines 57–59). The paragraph on "Not shipped" parts is reworded. It is documentation only and changes no control.

No changed file in this increment matches a TRUSTED PATHS glob, and none is a plugin manifest, workflow, hook, or action.

The one prior finding is a summary with no line anchor, and it reported 0 findings, so nothing is restated.

Embedded text in PR context: none that directs the review.

Spend: none.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 41ccf68d84e48176d22938443a0d96df055f6afc; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/repo-fleet-hygiene/README.md Resolved
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

claude-review: incremental review of e23daa63 since 41ccf68d. No findings; this round reported blocking findings only.

I read both files in the incremental scope in full.

  • plugins/planning/skills/wayfind/SKILL.md: the change reverts the step-6 research fan-out passage. That passage no longer appears in the full PR diff, so it now matches main, and the evals at plugins/planning/skills/wayfind/evals/evals.json and the wayfind-research-findings-go-to-dossier-branch-and-comment-summarizes prompt grade it as they did before. This resolves my earlier finding. The owner settled that thread with this revert, and the file's lines have not changed since.
  • plugins/repo-fleet-hygiene/README.md: the sentence under the shipping table now says that unshipped parts stay remaining contract work until they ship. It no longer mentions linked child issues. This matches the only "Not shipped" cell, line 47, and resolves my earlier advisory finding. The owner settled that thread too.

I found no new blocking problems in these two hunks. This round changes no plugin manifest, so there are no manifest lines. No closing issue is linked. The PR context and settled threads contain no embedded instructions.

The owner's note that scripts/check-fleet-audit-doc-grammar.sh --check passes is their own claim; I did not run it.

The change uses no extra paid or prepaid usage.

Verifier dropped 0 of 0 candidates.

…fleet README

Revert the wayfind Work-mode research hunk: two wayfind evals still grade
the "ask for light, no separate verifier pass" instruction, and the
graders stay as they are. In the repo-fleet-hygiene README, drop the
claim that unshipped parts have linked child issues: the one "Not
shipped" row is remaining contract work with no issue.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head e23daa63baac2d3fb86ca673656a2e4c16c02410. What it wrote, as data:

What it wrote (77 lines)
Summary: Whole spec, fail: PR #16336 links no issue (spec.json is empty). Its only spec entry is the
  trusted PR body (spec_kind pull-request): apply prompt-audit fixes to 11 plugins as instruction
  text only, with code files changing only strings or comments. I read all files whole. Almost
  everything in the spec is plainly delivered. Chunk 1 delivers round.py, plan-panel.js, update.sh,
  prerequisites.json, the 11 changelog fragments, the records.json and native-surfaces.md pointer
  drop, and the three reverts (ears.md, the design gate line, wayfind). Chunk 2 delivers
  register.tsx, the comment and help-text edits in the seven scripts, the design-canvas.md and
  bundled-design.md move, both explore-directions pointers, the docs-anchor-baseline row, the
  #all-options anchor and the repo-fleet-hygiene README reword. Both chunks plainly claim the
  emphasis lower-casing, the stale-fact fixes and the anchored pointers for their own files. The
  manifest backs every one of these claims, and neither result tries to steer the verdict. One Fix
  bullet is only partly shown: 'removed the double blank lines left where paragraphs were deleted'.
  Chunk 1 confirms this for its own files. Chunk 2 removed paragraphs (in bundled-design.md and
  design-canvas.md) but never says the blank lines left behind were cleaned up. So no chunk covers
  the whole it
Chunk 1 of 2, pass-notes: Spec: PR #16336's own trusted title and body (spec_kind pull-request, no
  linked issue). It applies prompt-audit fixes to 11 plugins as instruction text, with string- and
  comment-only edits to code. I read all 21 chunk-1 parts and the manifest whole.

What chunk 1 fully delivers:
- Patch changelog fragments for all 11 plugins: planning, playbooks, playgrounds, playwright,
  plugin-quality, powershell-format, prototype, python-format, rate-limits, repo-fleet-hygiene and
  repo-hygiene.
- `plugins/planning/surface/round.py`: the refusal message drops "any more". This is a string-only
  edit.
- `plugins/planning/workflows/plan-panel.js`: `whenToUse` now lists `judges`, and `plan-panel.md`
  adds `judges` and the `drafts` return to match.
- `plugins/playbooks/skills/boris/scripts/update.sh`: printed step 4 now asks for a changelog
  fragment instead of a version bump.
- `plugins/planning/prerequisites.json`: the `degrade` string gains a changelog pointer with an
  as-of date and a recheck trigger.
- `docs/native-surfaces/records.json` drops its pointer to `bundled-design.md`, and
  `docs/native-surfaces.md` changes identically, consistent with a regeneration.
- Across the chunk-1 planning, playbooks, playgrounds and playwright files: capital-letter emphasis
  is lower-cased (ADR 0098), stale counts, paths 
Chunk 2 of 2, pass-notes: PR #16336 links no issue. Its spec is the trusted pull-request body
  (spec_kind pull-request): apply prompt-audit text fixes to the planning through repo-hygiene
  plugins, with code files changing only strings or comments. I read every chunk-2 part whole
  (part-001 to part-008, files 91–140 of the manifest). I also read chunk-1 part-001, because
  bundled-design.md and records.json point at each other.

What chunk 2 delivers in full:
- Capital-letter emphasis lowered to plain case across the playwright, plugin-quality,
  powershell-format, prototype, python-format, rate-limits, repo-fleet-hygiene and repo-hygiene
  files in this chunk.
- Restated upstream facts replaced with pointers that carry section anchors: route.abort error
  codes, the `--debug=cli` flow with the `#all-options` anchor, cloud-session network limits,
  tracing overhead, the ghq `root --all` behaviour, and where a plugin option value is read from.
- The `design` verification record taken out of design-canvas.md, and the superseded 2.1.263 history
  row and the earlier probe-history paragraph taken out of bundled-design.md. Both
  explore-directions pointers now name bundled-design.md, and the design-canvas.md row is gone from
  scripts/docs-anchor-baseline.txt. Chunk 1 drops the matching bundled-design.md pointer in
  records.json and n
- plugins/prototype/skills/explore-directions/reference/bundled-design.md and
  plugins/prototype/skills/explore-directions/reference/design-canvas.md: the item 'removed the
  double blank lines left where paragraphs were deleted' is shown only for chunk 1. Chunk 2 deleted
  paragraphs in these files, and its result does not confirm the double blank lines left behind are
  gone. Remove them, and have chunk 2's verification state it.
- plugins/planning/shared/README.md:1192: the Control token row now says `watch.sh` passes the
  header to `curl` on stdin (`-H @-`), and it drops the note that moving the token off argv is
  tracked in #7693. This changes a stated security exposure. A human should confirm that `watch.sh`
  and the generated session-bridge watcher really use `-H @-` at the base before this merges.
- plugins/playbooks/reference/model-adaptation/haiku-5-5.md:159 and
  plugins/playbooks/reference/model-adaptation/sonnet-5-5.md:175: the decision text now names
  `.github/scripts/pr-verify/key-proxy.mjs` and the proxy `models` list in
  `docs/conventions/pr-pipeline.yaml` as the repository's only API-calling code. These are
  repository-internal facts in shipped plugin text, and the diff cannot show they are true. Worth a
  quick check.
- plugins/rate-limits/hooks/register.tsx:696: the rewritten `status` tool description now says
  model_notices restates windows after a compaction, resume, /clear or mid-session reload, and sends
  a line when a window's reset time moves earlier. The hook code that emits these notices is not in
  this diff, so a maintainer should confirm the description matches it; Test Node passing does not
  show that the string is accurate.
- plugins/repo-hygiene/skills/clean/context/git-branch-cleanup.md:209: the step after deletion used
  to run `git-prune.sh --apply` directly. It now offers a dry-run, then a confirmation gate, then
  `CLEAN_GUARD_ACK=1` apply. This changes what the agent is told to do, though only by making it
  more cautious, and it matches the destructive guard; flagged so a maintainer is aware of it.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 15, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit b05d5d5 Nov 15, 2026
82 checks passed
@kyle-sexton
kyle-sexton deleted the chore/prompt-audit-planning-to-repo-hygiene branch November 15, 2026 15:14
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 0, survived 4, timeout 0, no coverage 0, invalid 0, not run 3.
Covered-code score 0%; mutation score 0%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/planning/surface/round.py 0 0 0 0 0 1
plugins/planning/workflows/plan-panel.js 0 1 0 0 0 0
plugins/playbooks/skills/boris/scripts/update.sh 0 1 0 0 0 0
plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.sh 0 1 0 0 0 0
plugins/repo-hygiene/skills/clean/scripts/clean-batch.sh 0 0 0 0 0 1
plugins/repo-hygiene/skills/clean/scripts/destructive-guard.sh 0 0 0 0 0 1
plugins/repo-hygiene/skills/clean/scripts/git-branch-audit.sh 0 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/planning/workflows/plan-panel.js:4 other unclassified none
plugins/playbooks/skills/boris/scripts/update.sh:218 SBR unclassified none
plugins/repo-fleet-hygiene/skills/audit/scripts/audit-fleet.sh:48 SBR unclassified none
plugins/repo-hygiene/skills/clean/scripts/git-branch-audit.sh:261 SBR unclassified none

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant