Rewrite EffectCall on Prism nodes so the collaborator pass parses without rubocop #1220
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#1220
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
OsSdlc::EffectCallis a library owner atplugins/os-sdlc/lib/os_sdlc/effect_call.rb, but it is written against rubocop AST node types (xstr_type?,NodePattern). That forcescollaborator_pass/effect_sites.rbandcollaborator_pass/inward_edges.rbto parse throughCopSourceand rubocop's parser, which needs a grammar version. The library already walks Prism in 17 files, and Prism needs no version. Onlycrc/holders/site_offenses.rbneeds rubocop, because it runs cops.Reproduce
n/a: design ticket; the dependency is visible in
effect_sites.rb(require "rubocop",CopSource.from_file).Approach
EffectCalltakes a Prism node. TheEffectInModelcop adapts at its boundary, or both share one Prism-walking core.effect_sites.rbandinward_edges.rbparse withPrism.parse_fileand no longer require rubocop.CopSourcekeeps only thesite_offenses.rbcaller.Required work:
EffectCallclassifies a Prism call or xstring node — check: absentxstr_type?inplugins/os-sdlc/lib/os_sdlc/effect_call.rbeffect_sites.rbandinward_edges.rbparse with Prism — check: absentCopSourceinplugins/os-sdlc/lib/os_sdlc/collaborator_pass/*.rbEffectInModelcop keeps its offenses through an adapter or a shared core — check: presentEffectCallinplugins/os-sdlc/lib/os_sdlc/cops/effect_in_model.rbRejected: keep rubocop AST and resolve the version per file — the version dependency is the thing this ticket removes.
Acceptance criteria
bin/lint-sweepruns, thenEffectInModelreports 22 offenses, the same set as before.collaborator-pass measure --sources effects,inward, when it runs, thensignals.tsvequals the pre-change output for both sources.effect_sites.rbandinward_edges.rb, when loaded, then neither requires rubocop.Owner sketch
Origin
EffectCallis rubocop-AST shaped ← DESIGN (plugins/os-sdlc/lib/os_sdlc/effect_call.rb)VERDICT: CREATE
Resolution
Done: Closed as wrong by Jared's ruling 2026-10-22: EffectCall is shared by the EffectInModel cop and the effect_sites detector, so it stays on RuboCop AST. The detector runs the cop through Detector::CopSites instead.
Evidence: docs/crc/os-sdlc/detector-plan.md Phase 1 steps 3 and 4; ticket #1230
Follow-ups: none