Skip to content

docs(adr): clarify when to file a decision record - #9628

Open
ralphbean wants to merge 2 commits into
mainfrom
docs/adr-filing-guidance
Open

ralphbean wants to merge 2 commits into
mainfrom
docs/adr-filing-guidance

Conversation

@ralphbean

@ralphbean ralphbean commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

We have been using ADRs for both lasting architectural choices and follow-on work that applies choices already made. This adds a filing test to the writing-adrs skill: identify the invariant a new ADR would establish or change, then check whether an existing record already covers it.

Related Discussion

This guidance grew out of a request to clarify ADR scope around PR #9265. I noted that request in the original comment on this PR. No separate tracking issue was filed for this documentation change.

Changes

  • Describe when a new or changed invariant warrants an ADR, with the forge abstraction and credential boundary as examples.
  • Name "applying an existing invariant" as a reason to use the implementation PR, tests, and living documentation instead.
  • Cover bug fixes, internal mechanisms, local conventions, and clarifications that leave an accepted decision intact.

Testing

  • make lint passes after staging the skill file.
  • No code changes or new tests needed.

Checklist

  • PR title follows Conventional Commits.
  • Commit has DCO sign-off.
  • I wrote this contribution myself and can explain all changes in it.

Signed-off-by: Ralph Bean <rbean@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:18 PM UTC · Completed 6:26 PM UTC

Commit: eca624e · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.45

@ralphbean

Copy link
Copy Markdown
Member Author

Ella asked me to post this to get clarity on #9265

@qodo-code-review

qodo-code-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Clarify when to file an architecture decision record

📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Define an invariant-based test for deciding when to create or supersede an ADR.
• Distinguish new architectural decisions from applying existing decisions or making implementation
 changes.
• Direct unresolved choices to problem docs and non-ADR changes to PRs and living documentation.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 336baa6
Diagram

graph TD
  A["Proposed choice"] --> B{"Existing invariant?"} -->|yes| C["Implementation PR"]
  B -->|no| D{"New or changed?"} -->|yes| E["New ADR"] -->|accepted| F["Living docs"]
  D -->|no| C
  D -->|unresolved| G["Problem doc"]
Loading
High-Level Assessment

The existing writing-adrs skill is the right place for filing guidance. A separate policy document would make it harder to find the criteria when preparing an ADR, while rewriting individual ADRs would not provide a reusable decision test.

Files changed (1) +44 / -1

Documentation (1) +44 / -1
SKILL.mdAdd an invariant-based ADR filing test +44/-1

Add an invariant-based ADR filing test

• Renames the usage heading and adds criteria for when to create or supersede an ADR. Explains when implementation PRs, living documentation, or problem docs are more appropriate, with references to existing ADRs and PR #9265.

skills/writing-adrs/SKILL.md

@qodo-code-review

qodo-code-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Skill guidance pre-judges an open ADR proposal ✓ Resolved

Resolving commit: 336baa6

Resolution reason
The author removed the sentence "With that in mind, the proposed ADR in PR#9265 is unnecessary; it
just makes Pi select exact names from vetted extensions." The example is kept but rewritten
generically ("Applying that rule to another extension does not establish a new invariant."), with no
reference to PR #9265 or a verdict on it, matching the suggested fix.
Description
The new 'Do not write a new ADR' bullet hardcodes a verdict on open PR #9265 ("the proposed ADR ...
is unnecessary") inside a durable governing skill file. Once #9265 merges, closes, or is revised,
this sentence becomes a stale, prejudged ruling that future agents and reviewers will apply to
unrelated work.

2. Scope exclusion contradicts the skill's own invariant examples ✓ Resolved

Resolving commit: 336baa6

Resolution reason
Removed 'security-sensitive' from the scope exclusion and added a sentence distinguishing
implementing a security control under an existing boundary (not an invariant) from changing the
boundary itself (which may establish an invariant), so a new credential or sandbox boundary is no
longer excluded.
Description
The closing sentence states that a 'security-sensitive implementation' does not by itself establish
a new invariant, yet the same section lists the credential boundary (ADR 0017) as an example of an
invariant that warrants an ADR. An agent following this text could skip an ADR for a new credential
or sandbox boundary on the grounds that it is 'security-sensitive'.

Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #9265
✅ Compliance rules (platform): 96 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Cross-repo context — repo relationships
Review mode: Auto: 🚀 Fast: Localized ADR guidance change with limited, non-critical behavioral impact.

Grey Divider

Tip of the day
💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread skills/writing-adrs/SKILL.md Resolved
Comment thread skills/writing-adrs/SKILL.md Resolved
@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 17, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Small documentation edit touching a protected skill file with moderate recent churn, multi-author contention, and change coupling in git history.

Previous run

Risk Assessment: moderate (2/5)

Details

Small documentation edit touching a protected skill file with moderate recent churn, multi-author contention, and change coupling in git history.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] skills/writing-adrs/SKILL.md — This PR modifies a file under the protected skills/ path. Human approval is always required for protected-path changes, regardless of context. The description explains the rationale and references PR feat(runtime)!: select exact vetted Pi extension tools #9265, but no tracking issue is linked.

Low

  • [pattern-inconsistency] skills/writing-adrs/SKILL.md:93 — ADR 0170 is linked with reference-style syntax ([ADR 0170][entity-context-snapshot ADR], definition at lines 108-109). Every other ADR link in this file uses inline links, and no other Markdown under skills/ or docs/ uses reference-style links.
    Remediation: Use an inline link [ADR 0170](../../docs/ADRs/0170-align-entity-context-snapshot-with-normalized-entity.md) and delete the reference definition.

Info

  • [missing-authorization] skills/writing-adrs/SKILL.md:64 — The PR adds about 58 lines of guidance on when to write an ADR and no tracking issue is linked. The PR body points to earlier discussion and PR feat(runtime)!: select exact vetted Pi extension tools #9265 as the motivation. No repository rule requires a linked issue for a docs-only change.

Earlier findings

  • skills/writing-adrs/SKILL.md:64, doc-style — resolved: the section heading was changed to "Decide Whether to Write a New ADR" in the latest commit.
  • skills/writing-adrs/SKILL.md:94, doc-style — resolved: the bullet's lines were rewrapped in the latest commit.
  • skills/writing-adrs/SKILL.md:91, design-smell — resolved: the reference to the unmerged PR feat(runtime)!: select exact vetted Pi extension tools #9265 was replaced by a general statement.
  • skills/writing-adrs/SKILL.md:64, missing-authorization — reclassified from low to info: no repository rule requires a linked issue for this docs-only change, and the PR body names the originating discussion.

Re-review note: One or more prior blocking findings remain open and must still be addressed.

Blocking prior findings:


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

1 finding(s) below the low severity threshold were not posted.

Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJza2lsbHMvd3JpdGluZy1hZHJzL1NLSUxMLm1kIiwiaWQiOiJmXzliNWU1MjgxOTQ5M2I1OGEiLCJsaW5lIjo2NCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJkb2Mtc3R5bGUiLCJmaWxlIjoic2tpbGxzL3dyaXRpbmctYWRycy9TS0lMTC5tZCIsImlkIjoiZl9kYTBkMGRmYzQwYzUwOTcwIiwibGluZSI6OTQsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InN0eWxlLWNvbnZlbnRpb25zIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiZGVzaWduLXNtZWxsIiwiZmlsZSI6InNraWxscy93cml0aW5nLWFkcnMvU0tJTEwubWQiLCJpZCI6ImZfNzJlMjY5NWI5ZDNiYjIzZCIsImxpbmUiOjkxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoibWlzc2luZy1hdXRob3JpemF0aW9uIiwiZmlsZSI6InNraWxscy93cml0aW5nLWFkcnMvU0tJTEwubWQiLCJpZCI6ImZfNzAyNjU1YTAzNzkyYzRmYiIsImxpbmUiOjY0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn1dfQ== -->

Review

Findings

High

  • [protected-path] skills/writing-adrs/SKILL.md — This PR modifies a file under the protected path skills/ (skills/writing-adrs/SKILL.md). The PR links no issue ("No issue; this follows our discussion of ADR scope"), so it lacks linked justification for changing a governance/agent-instruction file. Human approval is always required for protected-path changes.
    Remediation: Link the issue or discussion that authorizes the change and obtain human maintainer approval.

Low

  • [doc-style] skills/writing-adrs/SKILL.md:64 — Heading ## Decide whether to write a new ADR uses sentence case, while every other level-2 heading in this file uses Title Case (the same PR also retitles ## When to Use This Skill in Title Case).
    Remediation: Change to ## Decide Whether to Write a New ADR.
  • [doc-style] skills/writing-adrs/SKILL.md:94 — Line is about 101 characters, over the ~80-column wrap convention for Markdown prose (docs/contributing/documentation.md#line-wrapping).
    Remediation: Rewrap the line at about 80 columns.
  • [design-smell] skills/writing-adrs/SKILL.md:91 — The skill cites a specific in-flight PR (PR#9265) and judges its ADR "unnecessary" as the example. Skill text is enduring guidance, so the reference will go stale once that PR is resolved. The label also uses PR#9265 instead of the repository's PR #NNNN form.
    Remediation: Phrase the ADR 0094 example neutrally without the PR reference, or if kept, format it as [PR #9265].
  • [missing-authorization] skills/writing-adrs/SKILL.md:64 — About 43 added lines of ADR filing criteria with no linked tracking issue (PR body: "No issue"). Low risk because the change is docs-only and stays within its stated scope.
    Remediation: Consider linking the tracking issue or discussion that set the scope for the filing criteria.

Labels: PR edits the writing-adrs skill.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread skills/writing-adrs/SKILL.md Resolved
Signed-off-by: Ralph Bean <rbean@redhat.com>
@ralphbean

Copy link
Copy Markdown
Member Author

Following up on this review: I removed the PR-specific verdict and clarified the security-boundary guidance. I also added ADR 0170 to show that its expanded gate coverage and compatibility commitments are the architectural decision, not the version bump itself.

@ralphbean

Copy link
Copy Markdown
Member Author

Following up on this review: I fixed the heading and wrapping comments, removed the PR-specific judgment, and clarified the security-boundary guidance. The skills path is intentional because ADR filing guidance belongs in the writing-adrs skill; the discussion that prompted it is linked in the PR description.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:54 PM UTC · Completed 8:02 PM UTC

Commit: 336baa6 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.34

@fullsend-ai-review fullsend-ai-review 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.

See the review comment for full details.

Comment thread skills/writing-adrs/SKILL.md Resolved
Comment thread skills/writing-adrs/SKILL.md Resolved

This branch was previously deployed

1 inactive deployment
dev — 336baa69 Deployed Nov 18, 2026 by ralphbean via behaviour #20644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants