Repository navigation
docs(adr-author): update stale ms.date in lineage-rules.md - #3277
Chris Montazer (rezatnoMsirhC) merged 5 commits into
Conversation
Refresh the ms.date frontmatter from 2026-05-02 to 2026-10-21 after verifying the five GP-06 lineage rules against the adr-author validators. Fixes microsoft#2584 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3277 +/- ##
==========================================
- Coverage 85.24% 85.24% -0.01%
==========================================
Files 198 198
Lines 40622 40622
Branches 201 201
==========================================
- Hits 34630 34629 -1
- Misses 5921 5922 +1
Partials 71 71
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
…d codes Address review feedback on microsoft#3277. The page claimed all five GP-06 rules were enforced by the two scripts and listed five LINEAGE_* error codes; neither holds. Verified against the scripts and corrected: - Replaced the five LINEAGE_* codes with the messages the scripts really emit and their exit codes. No LINEAGE_* string exists anywhere in the adr-author skill. Rule 3 now has no failure mode listed, because nothing detects a violation of it. - Added an explicit enforcement line to each rule, marking it tooling, convention, or mixed, and noted the two structural limits up front: validate_frontmatter.py validates one supplied file at a time and never reads .adr-config.yml or the ADR directory, and update_lineage.py only checks supersessions that go through it. - Rule 3: the script sets the predecessor's status to superseded but never touches the successor's, and nothing compares the pair, so "the validator rejects any other final-state combination" was wrong. - Rule 4: supersede() is a best-effort rollback (tempfile + os.replace, restoring the successor if the predecessor's move fails), not a transaction, and nothing inspects a commit or staged change set. Also noted that the post-write validate_lineage() hook is a no-op that tests patch. - Rule 5: validate_frontmatter.py never references last_decision_id or .adr-config.yml, so the described drift check does not exist. The single-writer half holds and is now marked a convention. - Rule 2 counter-example used `ADR-0042` as a field value; these fields hold bare four-digit strings, so it now reads `"0042"`. Tables formatted with markdown-table-formatter 1.7.0 (the version package.json pins), so `lint:tables` reports no changes needed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Thanks Chris Montazer (@rezatnoMsirhC) — this was the right call, and all three comments check out. Rewritten in 5f1b4a6 rather than just refreshing the date. You identified the root cause better than my PR description did: the page's opening line claimed "All five are enforced by
Rule 3 — confirmed overstated. Rule 5 — confirmed. Validation Failure Modes — confirmed. No
Rule 3 now has no entry, which makes the gap you found visible instead of papered over. Exit codes come from Rule 4 — confirmed, and more precisely than I'd put it. Smaller point taken too — Rule 2's counter-example used Every rule now carries an explicit Enforcement: line marking it tooling, convention, or mixed, which I think is the durable fix here — it stops the page drifting back into claiming enforcement that was never implemented. One CI note: the new table meant
|
…rules.md Co-authored-by: Chris Montazer <17170709+rezatnoMsirhC@users.noreply.github.com>
Pull Request
Description
Updates the
ms.datefrontmatter in.github/skills/project-planning/adr-author/references/lineage-rules.mdfrom2026-05-02to2026-10-21, clearing the 170-day staleness flag.Before refreshing the date I checked each of the five documented GP-06 rules against the
adr-authorscripts in this checkout, and all five still hold:validate_frontmatter.py:281-282calls_validate_id_scalaron bothsupersedesandsuperseded-by, so each must be anNNNNstring ornulland array values are rejected.update_lineage.py:183-185reads the predecessor's existingsuperseded-byand raisesGP-06 single-parent violation: ADR <id> already superseded by '<parent>'on a second attempt.update_lineage.py:189sets the superseded ADR'sstatustosuperseded; the successor'saccepted/proposedstatus is still owned by the Govern phase as the page describes.supersede()stages both ADR files throughtempfile.mkstemp+os.replaceand unlinks both temporaries on failure (update_lineage.py:194-214), so the pair is written or neither is.last_decision_id) —update_lineage.pyis the only script underadr-author/scripts/that referenceslast_decision_id, and it writes.adr-config.ymlthrough_atomic_write(line 148).Both scripts the page names (
scripts/validate_frontmatter.py,scripts/update_lineage.py) still exist at those paths.One observation I did not act on, in case a maintainer wants to: the five
LINEAGE_*identifiers in the "Validation Failure Modes" section read like literal error codes, but those exact strings do not appear anywhere in the skill's scripts — the equivalent runtime messages are phrased differently (for exampleGP-06 single-parent violation: ...). The failure categories are accurate; only the code-like spelling is unsourced. I left the section unchanged rather than guess at the intended contract.No technical content needed changing, so this PR is limited to the date metadata.
Related Issue(s)
Fixes #2584
Type of Change
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
hve-builderand addressed all actionable findings.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md).github/hooks/*/*.json)evals/)Other:
.ps1,.sh,.py)Testing
Reviewed the diff and confirmed the only change is the
ms.datevalue; the page body and the rest of the frontmatter are untouched, and the file's CRLF line endings are preserved. The rule checks listed above were done by reading the referenced scripts in this checkout. The repository's PowerShell validators (npm run lint:frontmatter,npm run lint:adr-consistency) needpwsh, which is not available on this machine, so they were left to CI.Checklist
Required Checks
Security Considerations
Additional Notes
This change does not claim the page's guidance was re-validated beyond the specific rule checks listed above.
🤖 Generated with Claude Code