Measure VIS R2 with the new forwards fact #1503
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#1503
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
plugins/os-sdlc/bin/system-model opportunities plugins/os-meprints "not measurable: VIS R2: needs fact forwards".ClassFacts gained a
forwardsfield in #1429 (commit98a029ca,plugins/os-sdlc/lib/os_sdlc/system_model/class_facts/forward.rb).The Visitor catalog rule R2 (double dispatch) is still
Pattern::Rule::Unmeasured.new(fact: :forwards).Reproduce
Approach
Check whether
forwardscarries what double dispatch needs: an element's accept method that sends visit_* to its argument.If yes, make R2 a measured rule.
If not, change the unmeasured fact name to the fact it truly needs.
Required work:
forwardsfact on VIS R2 — check: absentUnmeasured.new(fact: :forwards)inplugins/os-sdlc/lib/os_sdlc/system_model/catalog/visitor.rbAcceptance criteria
system-model opportunities plugins/os-me, when it runs, then the "not measurable" list does not nameforwardsfor VIS R2, or names the true missing fact.Origin
plugins/os-sdlc/bin/system-model opportunities plugins/os-meforwards← DESIGN (plugins/os-sdlc/lib/os_sdlc/system_model/catalog/visitor.rb:25)VERDICT: CREATE
Work started on branch worktree-agent-ab1554921aeb32d01
Resolution
Done: VIS R2 is measured: new double_dispatch fact (ClassFacts#dispatches) and UndispatchedAccept rule replace the unmeasured forwards placeholder
Evidence:
f4bae619and05b25c9e(rebased) on main; suite 3134 runs 0 failures; VIS matches no component in os-me, os-sdlc, os-backlog, so findings unchangedFollow-ups: none: multi-statement accept bodies wait for a real Visitor in the codebases