.flywheel/memory/openspec-config-rules-quote-colons.md
1 KB - 元のファイルを表示
name: openspec-config-rules-quote-colons description: "Quote any openspec/config.yaml rule that contains ': ', or OpenSpec reads it as a mapping and drops that artifact's rules with only a warning." type: observation scope: local status: active sources: [add-installer] occurrences: 1 last_verified: 2026-11-18 provenance: {by: agent, date: 2026-11-18} links: [openspec-init-installs-skills-machine-wide]
What happened
A design rule that mentioned a ### Decision: <title> heading was written unquoted in
openspec/config.yaml. openspec validate still passed, but printed that the rules for the design
artifact were ignored because the list item was parsed as a key/value pair.
Why
In YAML, an unquoted ": " inside a list item turns the item into a mapping. OpenSpec expects each rule to be a string and drops the whole rules list for that artifact.
Resolution
Wrap the whole rule in single quotes. Read the validate output for warnings, not only the final "valid" line.
Where
.flywheel/templates/openspec-config.yaml, openspec/config.yaml