effect_sites runs the EffectInModel cop through Detector::CopSites #1230
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#1230
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
Step 3 of Phase 1 in docs/crc/os-sdlc/detector-plan.md converts the effect-site detector. Today collaborator_pass/effect_sites.rb finds effect calls by its own code. The EffectInModel cop finds the same calls.
EffectCallis shared by the cop and the detector, so it must stay on RuboCop AST.Reproduce
n/a: design ticket
Approach
collaborator_pass/effect_sites.rbruns theEffectInModelcop throughDetector::CopSites. The cop config widens the role set to model and value.EffectCallstays on RuboCop AST. TheSignaloutput does not change.Required work:
effect_sites.rbwith a runner call — check: presentCopSitesinplugins/os-sdlc/lib/os_sdlc/collaborator_pass/effect_sites.rbAcceptance criteria
effect_sitesruns, then it returns the sameSignalrows as before.Origin
VERDICT: CREATE
Blocked by #1228
Resolution
Done: EffectInModel records label and role through report and reads its role set from the existing Roles cop config; CollaboratorPass::EffectSites runs the cop through Detector::CopSites with Roles [model, value] and builds the same 22 Signal rows. EffectCall stays on RuboCop AST.
Evidence: fast-batch-7 merged to main
ae057ddd: commitdbfbf0d2; memo docs/crc/os-sdlc/fast-batch-7/finding-c-effect-sites-runs-cop.md; Signal rows byte-identical; CopSites registry fix pinned in tests/detector/cop_sites_test.rbFollow-ups: none