os-sdlc: Project::Validation reports unknown keys in .sdlc/project.yaml #832
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#832
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
Project::Validation does not report unknown keys in .sdlc/project.yaml.
The parser drops them silently, so a typo in a key changes behavior with no error.
Observed
parser/project/config/document.rb:5 sets
FLAT_KEYS = %i[path test_path test_command test_framework lint_config].Line 75 runs
hash.slice(*FLAT_KEYS.map(&:to_s)), which drops every other key at the top level and under targets..Proven 2026-09-29: a typo key (
tset_pth: zzz, ortset_pathunder a target) loads with no error, no warning, and no validation problem.Project::Config.loadthenProject::Validation#problemsreturns[].A mistyped test_path falls back silently to the default test directory.
model/project/validation.rb:206-208
problemschecks only: missing path on a named target, test_path, path, lint_config.Reproduce
n/a: see Observed; add
tset_pth: zzzto any .sdlc/project.yaml and callProject::Validation#problems.Approach
Validation adds one problem per unknown key.
Each problem names the key, its location (top level or targets.), and the known keys.
implementation-open already raises ProjectValidationError on problems (command/implementation/open.rb:64-65), so it fails loudly.
The known-key list comes from the parser's own constants (one source), including top-level-only keys such as name, targets, tracker.
Required work:
bin/os-sdlc-testAcceptance criteria
Origin
Resolution
Done: Project::Validation reports each unknown key in .sdlc/project.yaml (top level and targets.) with its location and the known keys, from Document::TARGET_KEYS/TOP_LEVEL_KEYS; implementation-open fails loudly on a typo. Stale code_path keys renamed to path in plugins/os-backlog, llf-schema and cc-plugins (user chose option A).
Evidence: Commit
b875b231on main (588e81c9); llf-schema 3cddbb7 and cc-plugins e5fd907 (local, not pushed); all 17 real configs validate clean; suite 1331 runs 0 failures.Follow-ups: none