Skip to content

docs: apply prompt-audit fixes to repo docs, contracts and scripts - #16332

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

kyle-sexton merged 7 commits into
mainfrom
chore/prompt-audit-repo-docs

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

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

Summary

A full-read prompt audit found instruction text in the repository docs, contracts, conventions, loop prompts, the control skill and script comments that was written for older models, stale against the repository, or contradicted by a newer file. This PR applies the verified fixes for group 1 of 10 (repo-docs). It is instruction text only, except for the code files named under Fix, where only comments, printed messages and MCP tool description strings change; no logic changes.

Fix

  • Capital-letter emphasis lower-cased (ADR 0098); stale figures corrected (for example the pr-merge schedule is every 30 minutes and its merge job times out at 48 minutes, per .github/workflows/pr-merge.yml; the lane-transcripts retry counts now match pull.mjs); restated upstream facts replaced by pointers; history and incident notes stated as current rules.
  • Code files: comments and echoed or printed text in scripts/check-drive-root-litter.sh, scripts/check-fixture-git-isolation.sh, scripts/check-silent-revert.sh, scripts/check-silent-skips.sh; comment lines in the baseline and exemption lists under scripts/; and the watch, events and unwatch MCP tool descriptions in lib/session-bridge/session_bridge.py, which now state each tool's precondition, return shape and error case.
  • Generated copies regenerated with scripts/sync-shared-copies.sh (the session bridge in planning, prototype, review and work-items; the enforcement ladder in five plugins; the plugin reconfiguration doc in 31 plugins), with a patch changelog fragment for each of the 38 carrier plugins and the pr-pipeline convention.

Verification

  • scripts/sync-shared-copies.sh --check reported drift for the three canonical sources this PR edits; the sync regenerated them.
  • scripts/check-changelog-fragments.sh --check and --check-required origin/main: all 41 fragments valid, all 38 changed fragment-mode plugins covered.
  • Self-tests for the edited check scripts pass: check-fixture-git-isolation.test.sh (49/49), check-silent-skips.test.sh (19/19), check-drive-root-litter.test.sh (26/26); scripts/run-ruff.sh check on the session bridge passes. The pre-push check-affected.sh run caught five double blank lines left by removed paragraphs, fixed in this branch.
  • Left out: check-silent-revert.test.sh and the full .github suite locally, which CI runs; its strip-pin edits match code lines, not the comments changed here.

Related

N/A

🤖 Generated with Claude Code

kyle-sexton and others added 4 commits November 15, 2026 08:47
Instruction text only: lower-case capital-letter emphasis (ADR 0098),
correct stale paths and figures, replace restated upstream facts with
pointers, and drop history notes. The session bridge MCP tool
descriptions now state their contract; the shared copies of it, the
enforcement ladder and the plugin reconfiguration doc are regenerated
with scripts/sync-shared-copies.sh, with a patch fragment per carrier.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 15, 2026 13:57
@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-15T13:59:49.459183Z 0b8df34 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 43721720627

Failed GitHub API calls

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

Lane-Activity: pr-refine/fix-docs
@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 6842d16
Run 43721720627

Failed GitHub API calls

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental, blocking only)

No security issues found.

This lane already reviewed an earlier head (dcc74646), so this review covers only the changes since then and reports only CRITICAL and IMPORTANT findings.

I read every hunk of both files in the incremental diff:

  • docs/conventions/pr-pipeline/README.md: one prose fix in the lane trigger table. The job name wait-refine becomes wait-for-refine, the job that pr-review-hosted.yml / pr-review-security-hosted.yml run first. The file only documents the workflows, so the edit changes no trigger, gate or token scope.
  • docs/migration-playbook.md: one path fix. The playbook now says versioned contracts go under docs/contracts/<concern>/ instead of docs/conventions/<concern>/, which matches the template and first-instance links in the same sentence.

Neither file matches a trusted-path glob. docs/conventions/pr-pipeline.yaml is trusted, but its README is not. Neither edit removes, narrows or softens a standing instruction, and neither touches a trust control, merge hold, kill switch, token scope, manifest or workflow.

Prior findings: the one earlier post is a summary comment with no line anchor that reported 0 findings, so there is nothing to carry forward.

Spend: none.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

claude-review: incremental review, dcc74646 → 5723f315. This review only reported blocking findings, because this lane already reviewed an earlier head (blocking only: yes).

Scope: 2 files, docs/conventions/pr-pipeline/README.md and docs/migration-playbook.md. I read every hunk of both.

What changed and what I checked (with Read, Grep and Glob):

  • docs/conventions/pr-pipeline/README.md:189: the row now names the hosted review's job wait-for-refine instead of wait-refine.
    • That name matches the job keys at .github/workflows/pr-review-hosted.yml:248 and .github/workflows/pr-review-security-hosted.yml:253.
    • wait-refine now appears only in two historical CHANGELOG.md entries (lines 495 and 513), which correctly stay as they are.
  • docs/migration-playbook.md:190: the "Extensibility contract v2.1" text now says versioned contracts go under docs/contracts/<concern>/. This fixes the mismatch the earlier chunk-1 summary flagged against docs/contracts/ecosystem-commands/README.md.
    • The template it cites (docs/contracts/hook-telemetry/) exists.
    • Two other docs/conventions/<concern>/ mentions remain: docs/contracts/config-cascade/README.md:19 and plugins/source-control/skills/setup/reference/apply-convention.md:483. Both describe convention owner docs, not versioned contracts, so they don't contradict this line.

No new findings. This change adds no spend, touches no plugin manifest, and no hold class applies. There is no closing issue, so there are no acceptance criteria to check.

Verifier dropped 0 of 0 candidates.

…k cites

Review fixes: the hosted review workflows' job is wait-for-refine
(wait-refine.mjs is its script), and the extensibility contract
section now records instances under docs/contracts/<concern>/, where
its template and first instance live and where ecosystem-commands
cites it.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Both claude-review findings on dcc7464 were correct and are fixed in 5723f31:

Finding Verdict Fix
docs/contracts/ecosystem-commands/README.md cites a playbook section that still said docs/conventions/<concern>/ Correct: docs/migration-playbook.md:190 said that, while its own template and first instance (docs/contracts/hook-telemetry/, docs/contracts/ecosystem-commands/) live under docs/contracts/ docs/migration-playbook.md:190 now says docs/contracts/<concern>/
docs/conventions/pr-pipeline/README.md names a wait-refine job Correct: the job is wait-for-refine: (pr-review-hosted.yml:248, pr-review-security-hosted.yml:253); wait-refine.mjs is its script The Lanes table row now names wait-for-refine

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 838db93 Nov 15, 2026
65 checks passed
@kyle-sexton
kyle-sexton deleted the chore/prompt-audit-repo-docs branch November 15, 2026 14:55
@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 1, survived 2, timeout 0, no coverage 0, invalid 0, not run 4.
Covered-code score 33%; mutation score 33%.

File Killed Survived Timeout No coverage Invalid Not run
lib/session-bridge/session_bridge.py 0 0 0 0 0 2
scripts/check-drive-root-litter.sh 1 0 0 0 0 0
scripts/check-fixture-git-isolation.sh 0 1 0 0 0 0
scripts/check-silent-revert.sh 0 0 0 0 0 2
scripts/check-silent-skips.sh 0 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
scripts/check-fixture-git-isolation.sh:667 SBR productive no-assertion
scripts/check-silent-skips.sh:201 SBR productive no-assertion

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