Skip to content

ADR guidance: require an explicit forge scope and code-cited descriptions of current behavior, and tell reviewers to verify both #8490

Closed

Description

@fullsend-ai-retro

What happened

  • On PR #6976 (ADR 0103), the review agent's posted review (run) raised only one Low wording finding.
  • A human reviewer then requested changes on two substantive points:
    1. The ADR described updating the shim / fullsend_ref as a plain ref bump done by Renovate's github-actions manager plus fullsend update. In the code, moving fullsend_ref is a repos converge operation: it rewrites workflow bodies, sets CI variables and secrets, handles GitLab CI, repairs missing components, and applies downgrade/SHA guards.
    2. The ADR was written only for GitHub and never considered GitLab.

The run transcript shows that no review sub-agent opened the repos install/converge code. The correctness reviewer accepted the shim mechanism from general knowledge of Renovate. No reviewer checked forge coverage.

This is a recurring pattern. Human reviewers raised the same forge-scope gap on several other ADR/design PRs:

The review agent does catch forge errors inside ADRs that already discuss GitLab (#7426, #7080, #7461). It has never flagged an ADR that leaves GitLab out entirely.

What the current repo guidance covers:

  • docs/contributing/adrs.md is the file AGENTS.md tells reviewers of ADR changes to read. Its review rule (line 9) covers only immutability and status, plus checking that a new ADR's decision matches the diff.
  • docs/ADRs/0000-adr-template.md and skills/writing-adrs/SKILL.md (with its .claude/skills copy) never mention forge scope or checking claims about existing behaviour against the code.
  • AGENTS.md line 3 is the only place that says fullsend targets GitHub, GitLab and Forgejo.

What could go better

Forge scope (high confidence):

  • At least five ADR PRs in about four months drew the same human comment.
  • Nothing in the authoring or review guidance prompts for it, and the review agent's behaviour matches that: it checks forges an ADR mentions and ignores forges it omits.
  • An explicit "Forge scope" line costs authors one or two sentences. It turns a silent omission into an explicit, reviewable statement, which may be "GitHub only; GitLab tracked in #N".

Claims about current behaviour (medium confidence):

  • ADRs often justify a decision by describing how the system works today. On docs(adr): ADR 0103 — shared configuration as recorded presets bumped by Renovate #6976 that description was wrong in a way that undercut the decision.
  • Asking authors to cite the file or function for each such claim, and telling reviewers to open the cited code on main, gives the review agent a concrete, bounded task. It no longer has to rely on general knowledge.
  • Uncertainty: in run 2 iteration 1, a docs-currency reviewer did grep for fullsend update but stopped once it found the command was unimplemented. Repo guidance alone may not be enough if the agent-level review skill does not act on it.
  • Agent-level issues already track that half: Review agent should fact-check technical claims in documentation PRs #2199 (fact-check docs claims against the codebase) and agents#1359 (check ADR invariants, currently only against the diff). This proposal is the repo-local complement. It is cheap, needs no agent change, and benefits human authors too.

Out of scope:

Proposed change

All edits are in fullsend-ai/fullsend.

  1. docs/ADRs/0000-adr-template.md: add a short, required Forge scope prompt, either under Decision or as its own small section. Authors state which forges (GitHub, GitLab, Forgejo) the decision applies to and how each is handled. For any forge left out, the author must say so explicitly, with a reason or a tracking issue.

  2. skills/writing-adrs/SKILL.md (and the .claude/skills/writing-adrs/SKILL.md copy):

    • Add a step: "When the Context or Decision describes how fullsend works today, cite the implementing file/function on main and confirm it matches."
    • Add a step to fill in Forge scope.
    • Add both to the common-mistakes table.
  3. docs/contributing/adrs.md, the "When reviewing PRs" paragraph (the file AGENTS.md points ADR reviewers to). For new or changed ADRs:

    • (a) Flag a missing or implicit forge scope, i.e. an ADR that only discusses GitHub mechanisms without saying whether GitLab/Forgejo are covered.
    • (b) For each statement about current fullsend behaviour, open the referenced code on main and flag mismatches. Uncited claims about how a mechanism works today should be flagged as needing a citation.
    • Keep this to a few sentences so it stays within the file's role as a rules index.
  4. Optionally, add a one-line pointer in the AGENTS.md index row for ADRs mentioning forge scope.

No change to the agents repo is needed. The review agent already reads docs/contributing/adrs.md for ADR PRs.

Validation criteria

  • Content: after merge, docs/contributing/adrs.md, the ADR template and the writing-adrs skill contain the forge-scope and current-behaviour-citation rules.
  • Forge scope: over the next 5 new-ADR PRs in fullsend-ai/fullsend, each ADR states its forge scope explicitly. For any PR whose ADR lacks one, the review agent raises a finding.
  • Recurrence: no human reviewer leaves a "this ignores GitLab/Forgejo" comment the review agent did not already raise, measured over the next 60 days of type/adr PRs.
  • Code verification: for ADRs that describe existing mechanisms, review transcripts show at least one sub-agent opening the cited implementation files on main. Check this on 3 sampled runs.

Generated by retro agent from #6976

Activity

  1. added
    ready-for-triage
    on Oct 16, 2026
  2. fullsend-ai-triage commented on Oct 16, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:54 PM UTC · Completed 1:56 PM UTC

    Commit: 4dea855 · View workflow run →

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

  3. fullsend-ai-triage commented on Oct 16, 2026

    @fullsend-ai-triage

    Triage summary

    The proposal is well scoped and actionable. All three target files exist in this repo. .claude/skills is a symlink to skills/, so the writing-adrs skill needs only one edit.

    Related work: No open PR addresses this and no duplicate was found. The agent-side issues #2199 (fact-checking docs claims against the codebase) and agents#1359 (ADR invariants) complement this change but don't block it, because this change is repo-local.

    Scope notes for the implementer:

    • Keep the addition to docs/contributing/adrs.md short, since the file is a rules index.
    • Both guidance rules (forge scope, code citation) should appear in all three places: template, skill and review guidance.
    • Stage changes and run make lint before committing.
    • Whether the review agent acts on the new guidance can only be confirmed by the follow-up validation on future ADR PRs, as the issue's validation criteria describe.

    Proposed verification:

    After the change:
    - grep 'Forge scope' in docs/ADRs/0000-adr-template.md, skills/writing-adrs/SKILL.md, docs/contributing/adrs.md -> present in all three
    - writing-adrs common-mistakes table has rows for missing forge scope and uncited current-behavior claims
    - make lint passes
    - Follow-up: review agent on a GitHub-only ADR PR raises a forge-scope finding
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. fullsend-ai-coder commented on Oct 16, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 1:58 PM UTC · Completed 2:02 PM UTC

    Commit: 4dea855 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $0.88

  5. added 2 commits that reference this issue on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationready-for-triageready-to-code

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions