Add amends relationship for partial decision modification#14
Merged
Conversation
New `amends` frontmatter field allows a decision to partially modify a previous one without fully superseding it. Amended decisions stay `accepted` — the amendment changes part of the original's scope while the rest remains in effect. - create-decision.sh: --amends flag, format_amends(), frontmatter line - dld-decide/dld-plan: ask about supersede vs amend, --amends in examples - dld-audit: informational check for amended decisions, missing amends detection - dld-audit-auto: amend-aware auto-fix rules, inferred amends backfill - dld-snapshot: *Amends:*/*Amended by:* annotations and diagram edges - dld-implement: context-gathering includes amended decisions - Steering rule, format spec, concept docs, README updated - Bats tests: new amends test + fixture update - CLAUDE.md: document bats test runner path Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- find-missing-amends.sh: deterministic script that finds decision IDs referenced in body text but not declared in supersedes/amends fields. Outputs candidates for the agent to evaluate. - Audit skills updated to run the script and evaluate candidates - 8 new bats tests for find-missing-amends - Fix macOS /var vs /private/var symlink issue in test helper (pwd -P) - Fix macOS sed compatibility in test_structure.bats (awk instead) - All 111 tests now pass on macOS Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
amendsfrontmatter field that allows a decision to partially modify a previous one without fully superseding itaccepted— the amendment changes part of the original's scope while the rest remains in effectfind-missing-amends.shscript deterministically finds decision IDs referenced in body text but not declared insupersedesoramends, giving audits a concrete starting pointChanges
Schema & scripts: New
amends: []field in decision record format,--amendsflag increate-decision.sh, newfind-missing-amends.shaudit scriptSkills (all ×2 for skills/ and .claude/skills/):
dld-decide/dld-plan— prompt distinguishes supersede (full replace) vs amend (partial modify)dld-audit— informational check for amended decisions, mandatory missing-amends check using script + agent evaluationdld-audit-auto— amend-aware auto-fix rules, script-driven missing amends detection and backfilldld-snapshot— cross-referenced*Amends:*/*Amended by:*annotations and diagram edgesdld-implement— context-gathering includes amended decisionsDocs: Format spec, concept paper, FAQ, TL;DR, README, steering rule, CLAUDE.md all updated
Tests:
find-missing-amends.shcreate-decision.sh, updated fixtures/varvs/private/varsymlink (pwd -P),sed→awkin structure testsTest plan
find-missing-amends.shcorrectly identifies undeclared body references/dld-auditin a real project🤖 Generated with Claude Code