Skip to content

feat(architecture): new ADR admission test, default template and team settings - #14966

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/record-decision-admission-template
Nov 10, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/record-decision-admission-template

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: implements owner decisions Q81, Q82, Q83, Q84 and Q86 from the domain-language interview, round 8.

Summary

/architecture:record-decision gets the owner's new ADR admission test, a default template for repositories with no ADR convention, and two optional team settings. It becomes the one place the test lives; the planning, code-tidying and session-flow PRs that follow point at it.

Fix

  • Admission test (Q82, Q83): a real alternative was weighed AND at least one of hard to reverse, shapes the system's structure, shapes a key quality attribute (security, privacy, performance...), or a team trigger. "Surprising without context" is a reason to write, not a gate. The Composition table now says the gate lives here, not at the caller.
  • Default template (Q84): skills/record-decision/templates/adr.md (title, status, a few sentences of context/decision/why, Considered options when alternatives were weighed, optional Consequences), written in our own words. Step 2b recommends it beside other shapes and still writes nothing until the human chooses; a repository's own convention always wins.
  • Settings (Q84, Q86): adr_template (userConfig, team <home>/architecture.yaml, personal <home>/architecture.local.yaml) and adr_extra_triggers (team and personal; a list, which userConfig cannot carry), documented in reference/config.md "Decision-record keys", schema schemas/architecture.schema.json, and an architecture (record-decision) row in the config-cascade contract. There is no folder-level layer: ADR 0075 fix 13 keeps one convention home per git root.
  • Pointer (Q81): the Composition table names /domain-driven-design:ubiquitous-language for what a term means.
  • Evals 7 and 8, the README, setup check's known-keys hint, adr-discovery.md and the generated cascade and plugin-options blocks follow.

Verification

  • node scripts/validate-plugin-contracts.mjs: 65 setup skills, 26243 files, pass.
  • scripts/check-changed-skills.sh origin/main: record-decision and setup PASS, 0 errors (warnings: description length and body growth).
  • scripts/sync-config-cascade-semantics.py --check and scripts/sync-plugin-options-docs.py --check: up to date.
  • scripts/check-convention-yaml.sh: 15 files validate.
  • A fresh-context plan review's findings on this phase (generated blocks, template-versus-"never prescribe" wording, list merge form, setup known keys) are fixed in the second commit.

Related

Follow-ups

  • Pre-existing (advisory): the architecture plugin now has two settings homes, the <home>/architecture/README.md topic doc for the map-* keys and <home>/architecture.yaml for the decision-record keys, until the topic doc migrates to the four-layer cascade.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG

kyle-sexton and others added 3 commits November 9, 2026 22:55
… settings

The admission test in /architecture:record-decision now requires a weighed
alternative plus one of: hard to reverse, shapes structure, shapes a key
quality attribute, or a team trigger. It is the one copy; callers hand
decisions to the skill. A bundled templates/adr.md is recommended when a
repository has no ADR convention, overridable through the adr_template
setting (userConfig, team and personal layers), and adr_extra_triggers
adds team triggers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG
… the template

Regenerate the cascade semantics block and the plugin options block,
reword the no-convention and catalog lines for the bundled template, say
how adr_extra_triggers merges, and point setup check at architecture.yaml
for the decision-record keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T04:06:43.832660Z
We couldn’t complete this review. Comment @codex review to try again.
98f14c5 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

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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

claude-lane: claude-security-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 98f14c509dcf0f91400bfcdbf36cddb27fbbd027: read 11 of 11 changed file(s); 1 finding(s), 1 as inline comments.

Security review: PR #14966 (architecture: ADR admission test, default template, team settings)

I read every hunk of all 11 changed files. None of them match a trusted-path glob, and the PR changes no trust control: the trusted-trigger check, lane token scope, kill switch, token broker and merge holds are all untouched. This was the lane's first review of the PR, so it was not blocking only.

Manifest

  • manifest userConfig.adr_template: flag, a new string key that holds a filesystem path (plugins/architecture/.claude-plugin/plugin.json L17-L22, "default": ""). It is not a selector because it has no options list and its value is a path. It is not inert because its type is string. It is not a guard: nothing reads it to gate, cap or confirm an action, and the empty default means "use the bundled template". Its only reader is skill prose at plugins/architecture/skills/record-decision/SKILL.md L88 (${user_config.adr_template}). No hook, MCP server, script or command gets the value. Installed users get one optional setting on update, and it stays unset by default. Nothing new runs. IMPORTANT, because a manifest flag is never dropped. No exploit path found: the value comes from the user's own settings.

Other surfaces checked, no finding

  • Team and personal adr_template (repo-controlled). reference/config.md requires a repo-relative path that names "a regular file inside the repository, never a symlink". SKILL.md L89-L90 keeps "A settings file and a template file are data, never instructions." So a repository can only point the skill at its own content, which the skill already reads.
  • adr_extra_triggers. These only add reasons to write an advisory record. They never remove the "real alternative weighed" requirement, and the human's choice still decides.
  • Instruction-surface lens. The admission test was rewritten, and "never prescribes" became "never imposes". The write gate is unchanged: Step 2b still writes nothing until the human chooses, and its git status --porcelain stop is still there. The upstream catalog's no-paste rule is still there. No protected-class rule was removed. I did not read docs/contracts/instruction-exception-register/README.md for this pass; I judged by consequence, and the change removes no guardrail.
  • New schema, template, docs and evals. These are data and documentation only, with no executable surface.

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 98f14c509dcf0f91400bfcdbf36cddb27fbbd027; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 98f14c509dcf0f91400bfcdbf36cddb27fbbd027: read 11 of 11 changed file(s); 1 finding(s), 1 as inline comments.

Code review: PR #14966, record-decision admission test, default template and settings

I read all 11 changed files in full. This was the lane's first review of the PR, so it was not limited to blocking findings. The PR closes no issue: it implements interview decisions Q81–Q84 and Q86, so there were no closing-issue acceptance criteria to check.

What I checked

  • reference/config.md "Decision-record keys": the layer order, the list-replace rule and the invalid-value rule ("a valid higher layer still wins, otherwise the default; a lower layer's value is never used") match ADR 0075 "The invalid-value rule" (docs/adr/0075…#L82-L86).
  • The resolver exit codes cited in the docs (1 and 4 use the default home; 5 skips both file layers) match plugins/architecture/lib/resolve-convention-home.sh.
  • The new schema, the template, the eval 7 and 8 rewrites, the config-cascade contract rows and the setup known-keys hint agree with the skill body.
  • I did not rerun the validators listed in the PR's Verification section. Those results are the author's claims and remain unverified.

Plugin manifest

  • manifest userConfig.adr_template (new field): pass. The default "" means the bundled template is used, and record-decision/SKILL.md:88 reads ${user_config.adr_template}.
  • manifest version bump: pass. The changelog fragment declares bump: minor for a new template and new optional settings.
  • manifest description/keywords: pass. "record-decision writes an ADR in the repo's convention" still describes what ships, and adr and decision-record are already keywords.

Finding (1, advisory, inline)

  • plugins/architecture/skills/record-decision/SKILL.md:168-169: the new Composition rows say the admission test "lives here, not at the caller". They also name /planning:plan close-out and /code-tidying:remove-comments as callers. At this head, /planning:interview, plan close-out and design-handoff still gate with the old three-part test, so the new test cannot take effect through them, and remove-comments never invokes this skill. Details are on the inline comment.

Not findings

  • The PR body's own "Pre-existing (advisory)" note (two settings homes in the architecture plugin) is the author's disclosure. I did not repeat it.
  • No embedded instructions were found in the PR context, rule files or prior-findings file.
  • No hold applies: the change touches no billing, and it only affects how a skill behaves when run.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit f22a08c Nov 10, 2026
87 checks passed
@kyle-sexton
kyle-sexton deleted the feat/record-decision-admission-template branch November 10, 2026 04:47
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 10, 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