madtea plugin: steer decision records through madtea adr #17
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?
Problem
madtea adr newnumbers a new decision record from the forge andadds its index row.
madtea adr checkverifies the whole tree:frontmatter, sections, and the linked issues. Nothing in the madtea
plugin steers an agent to use them. An agent can write
docs/decisions/0042-x.mdby hand, with a wrong number, no index row,and no check. The tree then drifts until someone runs
adr checkbychance.
Proposal
A new hook in
plugins/madtea/hooks/scripts/, next to thecheck-git-*.shhooks:docs/decisions/, created by a file write, isdenied. The deny message names
madt_adr action=new(CLI:
madtea adr new).docs/decisions/is denied whilemadtea adr checkfails on that tree. The deny message holds thecheck output.
docs/decisions/tree is never affected.Acceptance criteria
names
madt_adr action=new.madt_adr action=newitself is not blocked.madtea adr checkfailing isdenied, with the check output in the message.
docs/decisions/is never blocked.Related: sixfold-space/madtea#496 (adr tooling guides the author).