Add CodeShape::Definitions and move the ConceptCycleCheck::References definition table onto it #1741
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#1741
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
CodeShapehas no definition table. The #1729 design built onlyCodeShape::LexicalScopeand kept the definition table insideLint::ConceptCycleCheck::References. Tickets #1730 to #1733 move callers onto sharedCodeShapedefinitions, so they need this table first (#1718, rulings 144 to 146).Observed
Takedown run
docs/takedown/1729-20261112-163805/, grade: "the same class of per-caller constant-resolution copies remains in ... References' own definitions table". Its Known risks: "the definitions table stays in References. True and intended for this part. The table is a separate responsibility and moves in a later CodeShape part."Reproduce
n/a: design split; see the takedown run directory above.
Approach
Not decided; the takedown designs it.
CodeShape::Definitionsholds each definition site: name, kind, path, line, and every file of a reopened class. Kinds: class, module, constant write,Data.define,Struct.new,Class.new. It usesCodeShape::LexicalScopeto name each site.ConceptCycleCheck::Referencesreads it and deletes its own@defstable. Blocked by #1729.Required work: none beyond the acceptance criteria.
Origin
1729-20261112-163805builtLexicalScopeonly; ruling 144 namedDefinitionsthe first incrementplugins/os-sdlc/lib/os_sdlc/lint/concept_cycle_check/references.rbVERDICT: CREATE
REASON: Part of the split Jared ruled for #1718 (ruling 146); no open ticket builds CodeShape::Definitions.