adr: the released madtea only knows docs/adr and tells a MADR repo to create a legacy tree #488
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
In a repo whose records live in
docs/decisions/(MADR 4.0.0),madt_adr action=newfrom a build that predates6bb57261fails with:I hit this with a dev build from
9bce364d(2026-09-09). v0.18.5, the latest release, is older still, so every user on a release gets the same result. The advice is wrong for a MADR repo: it points the user at the legacydocs/adr/layout.State on main
mainis correct.6bb57261added MADR 4.0.0 support:internal/service/adr/adr.goNewandCheckcalldetectLayout. Adocs/decisions/tree runs MADR mode, adocs/adr/tree runs legacy mode, and a repo with neither gets "runadr initto create docs/decisions/, or add a legacy docs/adr/ tree".adr.go:205,adr.go:330) are reached only in legacy mode.go run ./cmd/madtea adr new <slug>in this repo createsdocs/decisions/0035-...correctly.So nothing is wrong in the source. The MADR support has not shipped yet.
Ask
Ship the MADR support in the next release, and check it on the released binary.
Acceptance
6bb57261.madt_adr action=newandmadtea adr newin adocs/decisions/repo create the record and its index row.madt_adr action=checkchecks the tree.adr init, not at creatingdocs/adr/.