Skip to content

review-inputs.sh finds no issue for a feature/<N>-adr branch, so ADR reviews miss the spec #1608

Closed

Description

@V3RON

Problem

.agents/scripts/review-inputs.sh finds a PR's issue from its branch (<kind>/<n>) or a Closes #n line. A feature's ADR branch is feature/<N>-adr (delivery skill, step 3), so n is 602-adr, not a number. An ADR PR's body says "for feature #602", not "Closes". The inputs then hold no issue.md or feature.md, and the spec lens cannot check the ADR against the spec.

Seen on #1593 (ADR 0079 for #602): review round 1 reported Assessment: incomplete — the #602 spec and design tables were not in the inputs. Earlier ADR PRs (#467, #478, #418) had the same branch shape.

Expected

feature/<N>-adr* resolves to issue <N>, the feature itself, so the spec lens gets its body.

Written by an agent.

Activity

  1. added
    bug:new
    on Nov 16, 2026
  2. self-assigned this
    on Nov 16, 2026
  3. V3RON commented on Nov 16, 2026

    @V3RON
    ContributorAuthor

    Reproduction

    Confirmed. A feature/<N>-adr or feature/<N>-adr-<suffix> branch gives no issue.md. Branch bug/1608-repro, src/review-inputs.test.ts, "writes the feature as issue.md for a feature/-adr branch and a feature/-adr- one". It covers both shapes the deliver skill uses (feature/602-adr, feature/466-adr-amend).

    pnpm exec vitest run --project unit src/review-inputs.test.ts
    
    × writes the feature as issue.md for a feature/<N>-adr branch and a feature/<N>-adr-<suffix> one
    AssertionError: expected null to be 'Feature 602.\n'
     ❯ src/review-inputs.test.ts:141:84
    Tests  1 failed | 8 passed (9)
    

    Root cause

    Defect. .agents/scripts/review-inputs.sh:171 takes everything after the slash (602-adr), and line 172 drops it because it is not a number. The deliver skill names ADR branches feature/<N>-adr* (.claude/skills/deliver/SKILL.md:326). An ADR PR body has no Closes #n, so the fallback at 175-179 finds nothing too. The symptom shows in the spec lens, which gets no issue.md.

    Simplest fix

    Strip the -adr suffix on feature branches before the number check, and update the issue.md line of the header comment to match:

        n=${head_ref#*/}
        case $head_ref in feature/*-adr*) n=${n%%-adr*} ;; esac
    Tests  9 passed (9)
    

    Alternatives rejected

    • Strip any -<suffix> on every kind: no rule defines other suffixed branch shapes, so this widens what the script matches without a reason.
    • Read "for feature #N" from the PR body: free-form prose, not a fixed format like Closes.

    Risk

    • The feature's parent, if it has one, now becomes feature.md. That is harmless but new for ADR reviews.

    Fast track

    • Defect: yes
    • Fix tried: yes
    • Nothing public added or broken: yes
    • No ADR or rule changed: yes
    • One fix: yes

    Written by an agent.

  4. removed their assignment
    on Nov 16, 2026
  5. added
    bug:ready
    fast-track
    and removed
    bug:new
    on Nov 16, 2026
  6. self-assigned this
    on Nov 16, 2026
  7. V3RON commented on Nov 16, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: #1611 (#1608)
    Parked: none
    Waiting: none
    Decided: none

    Written by an agent.

  8. added a commit that references this issue on Nov 17, 2026
    0ca6059
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug:readyfast-track

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions