Credit a nested Data.define block to its own class #1495
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#1495
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
A nested Entry = Data.define do ... end block is credited to the outer class. The route_log/entry.rb decision is credited to RouteLog.
Reproduce
n/a: design gap in the extractor or detectors; nothing to run.
Approach
Attribute the facts of a nested Data.define block to the nested constant.
Required work: none beyond the acceptance criteria.
Origin
Work started in worktree branch worktree-agent-ae496a1ab932abb69: fixture tests first, then reruns of the run-3 and run-4 measures.
Occurrence: Credit facts in a nested Data.define block to its own class
Seen: plugins/os-sdlc/lib/os_sdlc/system_model/ (RouteLog, Extractor, Census/settings.rb)
Run: 313ee80d-b132-4de6-a01d-e1a57fbd3450; docs/system-design-format/proof/pattern-distance-run-4.md
Adds: Run 4 shows the credit error gives wrong edge verdicts for RouteLog, Extractor, and Census/settings.rb. Requested priority: P1 (the CLI cannot change labels; Jared or the orchestrator must raise it).
Resolution
Done: Facts of a nested Data.define or Struct.new block are credited to the value's own constant (e.g. OsMe::RouteLog::Entry), not the enclosing class; a value with no block gets facts with no methods
Evidence: commit
4b6e2bbcon main (pushed); suite 3082 runs green in a clean worktree of main; test system_model_class_facts_data_values_test.rb; addendum in docs/system-design-format/proof/pattern-distance-run-4.mdFollow-ups: none as a ticket: the remaining gap (the Edge rule counts a value that does I/O with no decision as an adapter) is recorded in the session handoff for Jared's next session