Replace the three whole-tree node flatten walks with one #1737
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#1737
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
Three files hold the same recursive walk that flattens a Prism tree to a node list. Prism already offers
breadth_first_search_all, which two other files use.Observed
The AST inventory of this session (2026-11-12,
plugins/os-sdlc/lib):detector/entry_points/tree.rb:16,system_model/extractor/subtree.rb:7,mutation_test/taxonomy/tree.rb:8each do[node] + compact_child_nodes.flat_map(...).entry_points/tree.rbalso tolerates a nil root and addsconstants.crc/census/requiring_file.rb:22anddetector/parameter_uses/site_uses.rb:38usebreadth_first_search.Reproduce
n/a: structure change; the existing suite is the proof.
Approach
Not decided. One walk, in
CodeShapeor Prism's own search; the three copies go.Required work: none beyond the acceptance criteria.
Origin
docs/decisions/rulings.tsv, 2026-11-12) after takedown rundocs/takedown/1718-20261112-160038/failed green-suite; parent #1718docs/system-design-format/README.md:242)plugins/os-sdlc/lib/os_sdlc/detector/entry_points/tree.rb,system_model/extractor/subtree.rb,mutation_test/taxonomy/tree.rbVERDICT: CREATE
REASON: Jared ruled the split of #1718 (ruling 146); the backlog search found no open ticket with the same mechanism.