Move Crc NamespaceDefinitions and ParameterTypes::ArgumentType onto CodeShape #1733

Open
opened 2026-11-12 21:37:46 +00:00 by jared · 1 comment
Owner

Problem

Crc::Definitions and Detector::ParameterTypes::ArgumentType each carry another copy of the nesting rule and the definition table (#1718). Blocked by #1729.

Observed

crc/definitions/namespace_definitions.rb:15-37 qualifies names recursively and does not handle Class.new or Data; it reads one file at a time. detector/parameter_types/argument_type.rb:39 is the latest copy of the nesting rule.

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. Both read from CodeShape and delete their own copy.

Required work: none beyond the acceptance criteria.

Origin

  • Trigger: split of #1718 by Jared (rulings 145 and 146 in docs/decisions/rulings.tsv, 2026-11-12) after takedown run docs/takedown/1718-20261112-160038/ failed green-suite; parent #1718
  • Improvised this session: none
  • Chain: two more copies of the nesting rule ← no object owns facts read from parsed Ruby code, so each detector, lint check, and cop writes its own copy ← DESIGN (#1718; docs/system-design-format/README.md:242)
  • Root candidate: none found; searched Crc NamespaceDefinitions, ParameterTypes ArgumentType, nesting rule
  • Where: plugins/os-sdlc/lib/os_sdlc/crc/definitions/namespace_definitions.rb, detector/parameter_types/argument_type.rb
  • Session: 784c0808-1e40-4296-8f93-77c40ca419c2
  • Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os-plugins-os-sdlc/784c0808-1e40-4296-8f93-77c40ca419c2.jsonl

VERDICT: CREATE
REASON: Jared ruled the split of #1718 (ruling 146); the backlog search found no open ticket with the same mechanism.

## Problem `Crc::Definitions` and `Detector::ParameterTypes::ArgumentType` each carry another copy of the nesting rule and the definition table (#1718). Blocked by #1729. ## Observed `crc/definitions/namespace_definitions.rb:15-37` qualifies names recursively and does not handle `Class.new` or `Data`; it reads one file at a time. `detector/parameter_types/argument_type.rb:39` is the latest copy of the nesting rule. ## 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. Both read from `CodeShape` and delete their own copy. Required work: none beyond the acceptance criteria. ## Origin - Trigger: split of #1718 by Jared (rulings 145 and 146 in `docs/decisions/rulings.tsv`, 2026-11-12) after takedown run `docs/takedown/1718-20261112-160038/` failed green-suite; parent #1718 - Improvised this session: none - Chain: two more copies of the nesting rule ← no object owns facts read from parsed Ruby code, so each detector, lint check, and cop writes its own copy ← DESIGN (#1718; `docs/system-design-format/README.md:242`) - Root candidate: none found; searched Crc NamespaceDefinitions, ParameterTypes ArgumentType, nesting rule - Where: `plugins/os-sdlc/lib/os_sdlc/crc/definitions/namespace_definitions.rb`, `detector/parameter_types/argument_type.rb` - Session: 784c0808-1e40-4296-8f93-77c40ca419c2 - Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os-plugins-os-sdlc/784c0808-1e40-4296-8f93-77c40ca419c2.jsonl VERDICT: CREATE REASON: Jared ruled the split of #1718 (ruling 146); the backlog search found no open ticket with the same mechanism.
Author
Owner

Also blocked by #1741 (CodeShape::Definitions). #1729 builds only CodeShape::LexicalScope.

Also blocked by #1741 (CodeShape::Definitions). #1729 builds only CodeShape::LexicalScope.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#1733
No description provided.