Stop factory .new calls in self. methods tripping HEX R2 #1494
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#1494
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 factory .new call inside a self. method trips HEX R2. Example: os-me moment_store.rb lines 8-10.
Reproduce
n/a: design gap in the extractor or detectors; nothing to run.
Approach
Exempt the factory .new call in a self. method from HEX R2.
Required work: none beyond the acceptance criteria.
Origin
Work started on branch worktree-agent-ae04da1576293993c
Resolution
Done: A .new inside a def self. method is a factory construct; HEX R2 skips it
Evidence:
3edd4cb3on main; suite 3098 runs 0 failures; run 3 holdout unchanged 8/9, 10/12, 28/39Follow-ups: none: Catalog::Repository constructs.empty? check left as is until data shows a factory false positive