Fail loudly when an ADR file does not parse in os-adr Repository#entries #1013
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#1013
Loading…
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
Repository#entriesinplugins/os-adr/lib/adr/repository.rbskips any ADR whose frontmatter does not parse. So the index build andadr-findact as if the file does not exist, and nobody is told. An unreadable ADR silently drops out of the decision record.Observed
On 2026-10-15,
adr-new challenge 0154andadr-new challenge 0189printed:Both files existed. 0154 had an unquoted
#518in a YAML flow list, which YAML reads as a comment. 0189 used the legacy bold-key format with no frontmatter. Both were also missing fromdocs/adr/README.md. Commit271431e9madechallengename the parse failure. The index build andadr-findstill drop the file silently.Reproduce
Origin
adr-new challengerun on 2026-10-15 (ADR-0296 cleanup).Repository#entriesrescues the parse error and skips the file (DESIGN,plugins/os-adr/lib/adr/repository.rb).plugins/os-adr/lib/adr/repository.rb(Repository#entries)VERDICT: CREATE
REASON: Repository#entries rescues ParseError and returns nil, so an unparseable ADR silently drops out of the index and adr-find; seen with 0154 and 0189.
Resolution
Done: Folded into #751 as evidence
Evidence: Same mechanism; see occurrence comment on #751
Follow-ups: none