Move Detector::ErrorLineage definitions and scope onto CodeShape #1730
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#1730
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
Detector::ErrorLineagekeeps its own definition table and its own scope rule, a second copy of the job thatCodeShapeowns (#1718, ruling 145). Blocked by #1729.Observed
detector/error_lineage/definitions.rb:21-71anderror_lineage/scope.rb:26build a table of 1,822 names with aScopeData object;Scope#resolvetakes the first prefix that makes a known name.ErrorLineagealso parseslibtwice: with Prism inDefinitionsand with RuboCop inRescueIndex(rescue_index.rb:10-11), and callsMethodNames.inonce per file.Reproduce
n/a: design finding from the ast inventory of this session (2026-11-12,
plugins/os-sdlc/lib).Approach
Not decided; the takedown designs it.
ErrorLineagereads definitions and resolution fromCodeShapeand deletes its own table andScope.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/error_lineage/definitions.rb,scope.rbVERDICT: CREATE
REASON: Jared ruled the split of #1718 (ruling 146); the backlog search found no open ticket with the same mechanism.
Also blocked by #1741 (CodeShape::Definitions). #1729 builds only CodeShape::LexicalScope.