repocfg: DiscoverChildren scans depth-1 only, misses grandchild configs from workspace root #62
Labels
No labels
burndown-2026-06
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/cli-guard#62
Loading…
Add table
Add a link
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
repocfg.DiscoverAllscans direct children only (DiscoverChildren,repocfg/repocfg.go:122), depth-1. Kai's workspace is laid out two levels deep: grouping dir (coilyco-bridge/,coilyco-flight-deck/,coilysiren/) then repo. So from~/projectseverycoily.yamlis a grandchild, the discovery pool is empty, andcoily exec <verb>fails withrepo_no_config:This contradicts the operating doctrine that repo verbs should self-discover their declarant from any cwd with no repo-scope flag.
Decision
Bump the child scan from depth-1 to depth-2 (chosen over workspace-root anchoring and a global verb index for smallest blast radius). Covers the grouping-dir/repo layout while staying cwd-relative and deterministic.
Change
DiscoverChildren(repocfg/repocfg.go:122): also descend one level into each child dir, checking<child>/<grandchild>/.coily/coily.yaml. Keep the.-prefix skip and the dedupe-by-path / sort-by-path invariants. Consider aDiscoverChildrenDepth(parentDir, depth int)so the depth is explicit and testable rather than hardcoded.DiscoverAlldoc comment (repocfg/repocfg.go:159) to state the new depth.Downstream
coily/go.mod(forgejo.coilysiren.me/coilyco-flight-deck/cli-guard).exechelp/error text incmd/coily/ops_repo.go(lines ~73-83, 126-133) which still say "direct child of cwd".Tests
DiscoverChildrenfinds a grandchild config and ignores depth-3+.TestLoadRepoExecCommand_DiscoversChildren(coily/cmd/coily/ops_repo_test.go:361) extended for the grouping-dir case.do this, but
wardversion