Widen routes_to and trace wakeup-poll from its script so scan facts clear 21 near misses #1562
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#1562
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
The scan reports 29 os-backlog near misses, and 21 of them come from missing facts, not from the code.
routes?atplugins/os-sdlc/lib/os_sdlc/system_model/extractor/fact_ledger.rb:72fires only on a receiver name that ends inCommandinside a Thor subclass, soBacklog::CLIgets noroutes_toedge. This gives 18 "CMD has no Router" rows. Thewakeup-polljourney stops at the empty-index check atplugins/os-backlog/bin/wakeup-poll:57, so it gives 3 more rows (LAY, P&F, TXS).pattern-landscape.mdF12 names theroutes_towidening.Design
/home/jared/dev/cc-os/docs/takedown/1562-20261105-104950/final-design.json
Approach
FactLedger (owner of routes_to) records an edge for every project class a Thor class calls, deleting the "Command" name-suffix predicate.
Required work:
plugins/os-sdlc/lib/os_sdlc/system_model/extractor/fact_ledger.rbplugins/os-sdlc/tests/system_model_thor_routing_test.rbAcceptance criteria
Owner sketch
@thor)plugins/os-sdlc/tests/system_model_thor_routing_test.rbRouted to /os-sdlc:ticket-takedown by the ticket-decompose rule: a new object and more than one sub-system.
a. One change: part A,
routes_toalso counts constructs inside a def that a forward names, when they have at least 2 distinct targets.Backlog::CLIhas no receiver named*Command;def project_commands = ProjectCommands.new(...)builds it. Part B,Tracenames a top-level script frame by its relative path, sobin/wakeup-pollowns its messages.b. Owner: part A, a new
Extractor::ForwardedRoutes, secret: which constructs a class's forwards reach. Part B,Recorder::Trace.Evidence read, not run: the parts are independent (extractor and recorder), with separate gauge deltas (18 rows and 3 rows).
tests/wakeup_poll_script_test.rb:36has a non-empty index, but the project never opts in, so the script stops atbin/wakeup-poll:75, not at line 57.Predicted side effect:
OsSdlc::Gate::Commandsgainsroutes_totoSuite::DiffPlanandProject::Changes, so it would stop being a CMD Command and gain the Router role. Rule on this in the design.Work started on branch ticket-1562, map takedown-implement.
Limit: routes_to fires only in a Thor subclass. The skeptic gate dropped the non-Thor follow-up because no scanned codebase has a non-Thor router. File a ticket when a non-Thor codebase shows a false CMD-has-no-Router row.
Resolution
Done: routes? no longer needs a Command suffix, so a Thor class records a routes_to edge for each project class it calls and Backlog::CLI gets the Router role. Part B moved to #1575.
Evidence: Implementation 239, takedown run docs/takedown/1562-20261105-104950, all gates passed, suite green
Follow-ups: #1575 captured with VERDICT: CREATE; non-Thor routers dropped by the skeptic gate, reason on this ticket