Skip to content

refactor(architecture): move the adr record and audit flows into action files - #18188

Merged
kyle-sexton merged 8 commits into
mainfrom
refactor/architecture-adr-action-files
Nov 23, 2026
Merged

kyle-sexton merged 8 commits into
mainfrom
refactor/architecture-adr-action-files

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: owner decision Q1525

Summary

Stacks on #18186. Moves the /architecture:adr record flow and the read-only audit out of SKILL.md into actions/record.md and actions/audit.md, next to actions/prune.md, leaving SKILL.md as a hub with an action router (the shape of domain-driven-design:ubiquitous-language).

Fix

  • actions/record.md: the admission test (the one copy), Steps 1 to 4, including Step 3 retirement, the citation sweep and the pointer offer.
  • actions/audit.md: the audit and its Several repositories section; removal points at prune.
  • actions/prune.md links to the new files; the admission-test citations in docs/glossary.md and docs/upstream/* follow it.
  • Fragment: architecture patch.

Verification

  • plugins/skill-quality/scripts/check-skill.sh plugins/architecture/skills: 15 passed, 0 failed (exit 0).
  • scripts/validate-plugin-contracts.mjs: exit 0.
  • scripts/check-spoke-plugin-root.sh --check: exit 0.
  • scripts/generate-cheatsheet.mjs --check: in sync.
  • Compare run 45279996546 at 7676948: PASS, VALID, no loss on 5 cases (record posted by hand, owner's instruction).
  • Behavior change, declared in the fragment: the admission test now fails a decision still provisional on a prototype that has not run (actions/record.md), and actions/audit.md's Fails admission verdict applies the same condition. Its case rd-provisional-on-unrun-prototype-offers-skip lands in a follow-up PR (branch test/architecture-adr-unrun-prototype-case), since compare mode never runs a new scaffold beside a credential (docs/review/evals.md, "Where and on what"); one suite run of that case on main follows.

Related

  • Base: #18186.
  • Owner decision Q1525.

session: AI Hero

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 22, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held: a cut to an existing skill needs eval evidence of no loss; evals resume when R75 lifts.

…on files

Moves the record flow (admission test, Steps 1 to 4) into
actions/record.md and the audit into actions/audit.md; SKILL.md keeps
the router. prune.md points at record.md and keeps the duplicate's
kept-record rule from #18186. Held for eval evidence of no loss
(docs/review/skills-and-agents.md).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
…-adr-action-files-rebuild

# Conflicts:
#	docs/upstream/aihero-domain-language.md
@kyle-sexton

Copy link
Copy Markdown
Member Author

Owner decision to fold in before this merges (workshop 03 alignment pass, Q1811, owner 2026-11-22: "go w/ recommendations"): the ADR admission test fails a decision still marked provisional on an unrun prototype; it becomes eligible once the prototype's verdict confirms it. The wayfind half (offer /architecture:adr on confirmation, and the wayfind Next line) shipped in #18309. This file is held here, so the clause waits for this PR's owner.

kyle-sexton and others added 2 commits November 22, 2026 22:30
…not run

Owner decision Q1811 (workshop 03 alignment pass): a decision still
provisional on an unrun prototype becomes eligible once its verdict
confirms it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-adr-action-files-rebuild

# Conflicts:
#	plugins/architecture/skills/adr/SKILL.md
@kyle-sexton

Copy link
Copy Markdown
Member Author

Compare eval: PASS

The same cases ran on the pull request's merge base 52a74e029c2c3bfd494e7d384fec56fa184aae34 (before) and its head a44f747a24d244d9cb86727cfb7758249a0d983b (after), each as plugin text on the default branch's harness. Loss: a case's mean score falls by 0.15 or more, or a grader passes in 2 or more fewer after runs.

Case Before mean After mean Verdict
layout-no-style-attended-asks-once 0.667 (3 runs) 0.667 (3 runs) PASS
rd-audit-lists-gone-record 1.000 (3 runs) 1.000 (3 runs) PASS
rd-declared-path-outside-repo-not-written 1.000 (3 runs) 1.000 (3 runs) PASS
rd-no-convention-writes-nothing 1.000 (3 runs) 1.000 (3 runs) PASS
rd-reversal-asks-before-retiring 0.958 (3 runs) 0.958 (3 runs) PASS

Graders that cannot show a loss (they failed in every before run): 1.
Cost: 3.79 USD (the runs' costUsd).
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45266067430

Posted by hand by the hub session from the run log: the compare-record step got HTTP 403 ("Resource not accessible by integration") creating this comment.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The do-not-merge hold waited only on eval evidence (reason=eval), and a VALID no-loss eval-pair record for a44f747a24d244d9cb86727cfb7758249a0d983b was posted by a listed human: #18188 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T21:44:15.394857Z a44f747 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a44f747a24

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

kyle-sexton and others added 2 commits November 23, 2026 17:01
…-adr-action-files-rebuild

# Conflicts:
#	plugins/architecture/skills/adr/SKILL.md
A decision provisional on a prototype that has not run must fail
admission: the run names that part, offers to skip, and writes no record.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7NmceqXNCjSdLWW7YN
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18188, incremental (7676948 → aea4f93)

No security issues found. I read every hunk of both files in .claude-lane/incremental.diff. The prior-findings file says blocking only: no, so this was a full review of the increment.

What changed

  • .changes/architecture/refactor-architecture-adr-action-files-00571a93.md gains one changelog bullet about the admission test and its use in audit.
  • plugins/architecture/skills/adr/actions/audit.md extends the "Fails admission" candidate class. A record still provisional on a prototype that has not run is now also a candidate.

Instruction-surface lens. The only change to standing instructions adds a reason to flag a record. It deletes, narrows or softens no rule. audit still writes, deletes, moves and commits nothing, and that line is unchanged in the context. Removal still goes through prune. No protected class is touched, so I did not need the instruction exception register.

Trusted paths, manifests, spend. Neither changed file matches a trusted-path glob. No plugin or marketplace manifest changed. The increment spends nothing new.

PR context. I did not reread the PR context, because the increment holds only skill prose and a changelog line. The earlier review found no text in it addressed to this lane.

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: 1 inline finding(s) on ce16c60eec64f92451c0dd3db2a85ab7bdd144a5; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18188, incremental since 7676948 (blocking only)

This lane already reviewed an earlier head of this pull request, so this pass posts blocking findings only.

The push fixes this lane's earlier finding (the admission-test rule that shipped without being declared, discussion_r4672834872). That thread's lines have changed, and nothing about it needs to be raised again.

  • Fragment: .changes/architecture/refactor-architecture-adr-action-files-00571a93.md now has a ### Changed line for the new rule: a decision still provisional on a prototype that has not run fails the test, and the skill offers to skip it. It matches actions/record.md, which says the decision "fails the test" and that the skill should "offer to skip". The PR body now declares the behavior change too.
  • Audit: in actions/audit.md step 2, the Fails admission verdict now names the same condition. audit and record apply the same test again.
  • Eval: the eval case rd-provisional-on-unrun-prototype-offers-skip is no longer in this PR's file list. The PR body says it moves to a follow-up PR. Until that lands, nothing tests the new rule. That gap is advisory, so this blocking-only pass does not post it. The PR has no closing issue (owner decision Q1525), so there are no acceptance criteria to check.

Other notes:

  • The bump: patch level is unchanged. For an advisory test that can still be overridden, I am not raising it as blocking.
  • Loosened checks: none found. The prompt had no loosened_check_* lines, so I used fail and no consumer entries. I did not check the citation requirement. Loosened checks would be marked: fail (bundled default); patterns: 0.
  • No plugin manifest changed, so there are no manifest lines.
  • The verification in the PR body is the author's claim. I ran none of it.

Verifier dropped 0 of 0 candidates.

…uest

Compare mode never runs a new case's scaffold beside a credential, so
the case lands after this cut (docs/review/evals.md, Where and on what).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7NmceqXNCjSdLWW7YN
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held for its compare run: the unrun-prototype case moved to branch test/architecture-adr-unrun-prototype-case (compare mode never runs a new scaffold beside a credential, docs/review/evals.md "Where and on what"), and the compare of the 5 existing cases re-runs at head 7676948: 30 agent runs, about 3.80 USD, cap 6 USD.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Compare eval: PASS

The same cases ran on the pull request's merge base a6044a022bb1fb332cd78a18e05c3af1c1722c0e (before) and its head 76769485f7ef4e6293c162cd3c159218d9684bbc (after), each as plugin text on the default branch's harness. Loss: a case's mean score falls by 0.15 or more, or a grader passes in 2 or more fewer after runs.

Case Before mean After mean Verdict
layout-no-style-attended-asks-once 0.667 (3 runs) 0.667 (3 runs) PASS
rd-audit-lists-gone-record 1.000 (3 runs) 1.000 (3 runs) PASS
rd-declared-path-outside-repo-not-written 1.000 (3 runs) 1.000 (3 runs) PASS
rd-no-convention-writes-nothing 1.000 (3 runs) 1.000 (3 runs) PASS
rd-reversal-asks-before-retiring 0.958 (3 runs) 1.000 (3 runs) PASS

Graders that cannot show a loss (they failed in every before run): 1.
Cost: 3.67 USD (the runs' costUsd).
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/45279996546

Posted by hand by the hub session from the run log, on the owner's instruction in session (2026-11-23): the compare-record step got HTTP 403 ("Resource not accessible by integration") creating this comment.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 46643f1 Nov 23, 2026
86 of 88 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/architecture-adr-action-files branch November 23, 2026 23:37
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 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