Skip to content

chore: apply prompt-audit fixes from actionlint to desktop-notification - #16331

Merged
kyle-sexton merged 4 commits into
mainfrom
chore/prompt-audit-actionlint-to-developer-experience
Nov 15, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
chore/prompt-audit-actionlint-to-developer-experience

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

Group 3 of 10 from a full-read prompt audit (Anthropic's prompt-audit guide) of instruction text,
covering 120 files in 21 plugins from actionlint to desktop-notification. Each edit was checked
by a second agent against the repository before it was kept. The audit group also reached
developer-experience, but its one edit (the eval judge prompt in judge.py) is reverted here:
it changed a calibrated grader's instructions without re-calibration.

The change is instruction text only, apart from string edits in three code files:

  • plugins/code-tidying/skills/audit-dead-code/scripts/dead-code-scan.sh: the usage text and
    printed lane notes lose capital-letter emphasis. No logic changes.
  • plugins/context-budget/skills/audit/reference/levers.json: capital-letter emphasis in string
    values is lower-cased. No keys or structure change.
  • plugins/context-usage/hooks/register.tsx: the status tool description now lists every notice
    model_notices adds (zones.json threshold, restatement after resume, reload or compaction), as
    the module's code and plugin.json already do.

Fix

  • Capital-letter emphasis markers lower-cased (ADR 0098).
  • Stale facts corrected against the repository: the attach capability in the app-control README,
    the batch-simplify Phase 4 list matching Phase 2, the codebase-health --fix description
    matching its body, the coupling <memory_dir> path, the debug checklist's seam rule, and
    setup check in architecture naming adr_retirement among the architecture.yaml keys.
  • Restated upstream facts replaced by pointers (Playwright PDF flags, GitHub schedule limits,
    Vale language coverage, EF Core and FakeTimeProvider docs), and history notes, issue numbers
    and dated edit logs removed from instruction text.
  • Contradictions settled toward the newer rule, for example the tidy skill's Phase G now matches
    its own mutation gate (no chained /simplify).
  • A patch changelog fragment for each of the 21 plugins.
  • Reverted after pr-verify failed the earlier head: the resolver exit-code edit (exits 4 and 5)
    in architecture reference/config.md and map-components, which left the other map skills and
    the setup check table listing exits 1 to 3; both go back to main's text and the architecture
    fragment drops the claim.

Verification

  • git apply --3way of the group patch: all files applied cleanly on 99c790c93c.
  • scripts/sync-shared-copies.sh --check: all 904 registered copies match.
  • scripts/check-changelog-fragments.sh --check: 21 valid fragments.
  • Pre-push check-affected passed on the current head.
  • Left out: the test suites, which CI runs on this head.

Related

N/A

Follow-ups

  • Pre-existing (advisory): judge.py pins no effort level for its claude -p calls, so a model
    alias change can move a calibrated judge's default effort unrecorded.

🤖 Generated with Claude Code

Instruction text in 22 plugins, from a full-read prompt audit: capital
emphasis lower-cased (ADR 0098), stale paths and facts corrected,
restated upstream facts replaced by pointers, and contradictions between
files settled toward the newer rule. Each plugin gets a patch fragment.

Code files touched only in strings: the dead-code scanner's printed lane
notes, the context-budget lever catalogue, the context-usage status tool
description, and the developer-experience eval judge prompt.

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:55
@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:58:14.846268Z 6397d2c 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 43721566606

Failed GitHub API calls

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

@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 3193642
Run 43721566606

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental since ebd0874, blocking only)

I found no security issues. This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings.

critical-findings: 0

Files read: I read every hunk of the 5 files in .claude-lane/incremental.diff:

  • 4 changelog fragments, under .changes/ai-slop/, .changes/attribution/, .changes/context-budget/ and .changes/context7/. They only drop wording about edits this push reverts.
  • plugins/attribution/skills/setup/SKILL.md. It goes back to main's text: TOP-LEVEL is capitalized again, and the gotcha "A misplaced key reads like a setting and behaves like nothing" is back in the Gotchas list.

None of these files matches a trusted-path glob. None is a plugin manifest, a workflow or a code file.

Instruction-surface lens: this push removes no standing instruction. In setup/SKILL.md, the rule to reject accuracy.judge_samples and any unknown key "loudly rather than writing it" is still there. The push also restores the gotcha that repeats that rule. The only lost wording is the earlier head's description of the no-op ("leaves the panel at its default while looking configured" becomes "quietly halves the panel"). What the skill forbids does not change. I did not consult the instruction exception register file. No removed rule needed it.

PR context: no embedded instructions aimed at the review lane.

Spend: nothing in this change spends credits or can bill.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): no findings

This lane already reviewed an earlier head (ebd0874), so this pass reports blocking findings only. It covers the five files this push changed, and I read every hunk of each one in the incremental diff.

What changed. The push undoes edits the audit made without eval evidence, as the commit title says.

  • plugins/attribution/skills/setup/SKILL.md: the "A misplaced key reads like a setting and behaves like nothing" gotcha is back, and so is main's wording of the judge_samples paragraph (TOP-LEVEL, "quietly halves the panel"). Against main, this file's only remaining changes are the new ## Next pointer and the lower-cased "What this skill does not do" heading.
  • Four changelog fragments (ai-slop, attribution, context-budget, context7) drop their lines about the restored edits.

Fragments match the diff. I checked each fragment against the full PR diff:

  • ai-slop: the PR no longer changes the audit skill's finding shape.
  • context-budget: the audit SKILL.md and its tool-pool claim are no longer in the diff. The remaining changes are to levers.json and the setup skill.
  • context7: the lookup selection steps are no longer in the diff. The remaining changes are to context/cli.md, mcp.md and update.md.
  • attribution: the fragment now names only the ## Next pointer for the setup skill, which is what the diff still changes there.

None of the fragments describes a change the diff no longer makes.

Closing issue: none (owner-requested audit).

Plugin manifests: this push changes no plugin.json or marketplace.json.

Not verified: I ran no tests or scripts.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

What it wrote (57 lines)
Summary: Chunk 1 of 2, fail: Spec: PR #16331's own title and body (spec_kind pull-request, no linked
  issue). It describes group 3 of a prompt-audit pass over actionlint through developer-experience.
  Chunk 1 covers 124 files, from the 22 changelog fragments through plugins/context-usage. I read
  all 20 chunk-1 parts whole, plus chunk-2 parts 1 to 3, to check that the chunk-1 fragments for
  context7, corrections, coupling, debugging, desktop-notification and developer-experience match
  those plugins' changes. They match.

Delivered in full by chunk 1:
- Capital-letter emphasis is lower-cased across the chunk-1 plugins (ADR 0098).
- Three of the four code files carry string-only edits with no logic, key or structure change:
  dead-code-scan.sh (usage text and lane notes), levers.json (string values) and context-usage
  register.tsx (the `status` description now lists the zones.json threshold notice and the
  restatement after resume, reload or compaction).
- Stale facts corrected: app-control README attach, the batch-simplify Phase 4 list matching Phase 2
  and its override channels, the codebase-health `--fix` description matching its body.
- Upstream facts replaced by pointers: Playwright PDF flags, GitHub schedule limits, Vale language
  coverage.
- History notes, issue numbers and dated logs removed.
- tidy Phase G now matches its mutation gate (no chained `/simplify`).
- One patch changelog fragment for each of the 22 plugins.

Delivered in part: "resolver exit codes 0 to 5 in the architecture map skills". Only
  `reference/config.md` and `map-components/SKILL.md` were updated. Unchanged context lines in
  map-data, map-deployment and map-flow still read "Exit 1, 2, or 3: no declared home",
  map-landscape still lists only exits 1 to 3, and the setup check table has no rows for exits 4 or
  5. The architecture changelog fragment still says the skills list every exit code (0 to 5), so it
  claims more than the diff delivers.

Not in chunk 1: judge.py, coupling `<memory_dir>`, the debug checklist seam rule and the EF Core and
  FakeTimeProvider pointers are in chunk 2.

Evidence and safety:
- Every pr-require-checks job concluded success on the head, including Lint Repo, Lint Shell, Check
  Plugins, Check Skills, Test Bash 0 to 4, Test Node and Test Python. Run:
  https://github.com/melodic-software/claude-code-plugins/actions/runs/43723483642
- The capture was blocked and is no evidence either way.
- No secrets, takeover-set files, binary files, holds or settings are touched, and I found no text
  trying to steer the reviewer.
- The only blocking defect is the partial exit-code fix and the fragment that overstates it.
- plugins/architecture/skills/map-data/SKILL.md:38 still reads "Exit 1, 2, or 3: no declared home".
  Change it to the map-components wording ("Any other exit (1 to 5) means there is no declared
  home") so it covers resolver exits 4 and 5, as the PR body and the architecture fragment say.
- plugins/architecture/skills/map-deployment/SKILL.md:37 still reads "Exit 1, 2, or 3: no declared
  home". Update it to cover exits 1 to 5, the same way.
- plugins/architecture/skills/map-flow/SKILL.md:36 still reads "Exit 1, 2, or 3: no declared home".
  Update it to cover exits 1 to 5, the same way.
- plugins/architecture/skills/map-landscape/SKILL.md:36 lists only exits 1 (no pointer line), 2
  (usage) and 3 (FAIL) as no home to read. Add 4 (the repository declined a home) and 5 (the root is
  `$HOME`, an ancestor of it, or not a git work tree). Check that the exit-code sentences in
  map-containers, map-context and map-events also cover exits 1 to 5.
- plugins/architecture/skills/setup/SKILL.md:36 has check-table rows for resolver exits 1, 2 and 3
  only. Add rows for exit 4 and exit 5 (result and remediation line), to match
  `reference/config.md`.
- .changes/architecture/chore-prompt-audit-actionlint-to-developer-experience-27d26f79.md:7 says the
  skills list every exit code the home resolver returns (0 to 5), but most of the map skills and the
  setup skill still do not. Either finish those updates or limit the sentence to the files actually
  changed.

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
pr-verify failed the head because only config.md and map-components
listed resolver exits 4 and 5 while the other map skills and the setup
check table still list 1 to 3, and the architecture fragment claimed
every skill did. Both hunks go back to main's text and the fragment
drops the claim.

The developer-experience judge.py prompt edit changes a calibrated eval
grader's instructions without re-calibration, so it goes back to main's
text and its changelog fragment is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton changed the title chore: apply prompt-audit fixes from actionlint to developer-experience chore: apply prompt-audit fixes from actionlint to desktop-notification 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 the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
A cut to an existing skill ships only with eval evidence of no loss
(docs/review/skills-and-agents.md). Put main's text back where the
audit removed or shortened instructions:

- attribution setup: the misplaced-key gotcha and the judge_samples
  sentence
- context-budget audit: the sentence on the built-in tool pools' size
- ai-slop audit: the word caps in the rubric finding shape
- context7 lookup: the "analyze the query" selection step

The changelog fragments drop the claims about those edits.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. 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 ae1f28b Nov 15, 2026
70 checks passed
@kyle-sexton
kyle-sexton deleted the chore/prompt-audit-actionlint-to-developer-experience branch November 15, 2026 15:57
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
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