Preserve whole object: Offense for line+message #1203
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#1203
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
line+message (data_clump, score 8) spans 4 classes in concepts Brief, Lint.
OsSdlc::Brief::LintOffense(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/brief/lint_offense.rb:5)OsSdlc::Lint::Output::Offense(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/lint/output/offense.rb:6)OsSdlc::Lint::ResidualWorklist(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/lint/residual_worklist.rb:6)OsSdlc::Lint::Worklist(/home/jared/dev/cc-os/.claude/worktrees/crc-os-sdlc-run-3/plugins/os-sdlc/lib/os_sdlc/lint/worklist.rb:6)support 4; maximal
Approach
The clump's names are members of one object that already exists or is built upstream; pass the object. Object:
OsSdlc::Lint::Output::Offense. Lint::Output::Offense already holds cop_name, path, line, and message, and Worklist::Offense and ResidualWorklist::Offense are local copies of it built from the same rubocop fields, so the sites take that object instead of the loose pair; no new owner is needed. exit_status+output is left out because no existing object holds that pair (Lint::Shell returns a bare tuple) and it needs a new result owner.Required work:
OsSdlc::Brief::LintOffensetakesdispatch_id, agent_type, offense, raw— check: absentline:inplugins/os-sdlc/lib/os_sdlc/brief/lint_offense.rbOsSdlc::Brief::LintOffensetakesdispatch_id, agent_type, offense, raw— check: absentmessage:inplugins/os-sdlc/lib/os_sdlc/brief/lint_offense.rbOsSdlc::Lint::ResidualWorklisttakesresidual_report— check: absentline:inplugins/os-sdlc/lib/os_sdlc/lint/residual_worklist.rbOsSdlc::Lint::ResidualWorklisttakesresidual_report— check: absentmessage:inplugins/os-sdlc/lib/os_sdlc/lint/residual_worklist.rbOsSdlc::Lint::Worklisttakesrubocop_report— check: absentline:inplugins/os-sdlc/lib/os_sdlc/lint/worklist.rbOsSdlc::Lint::Worklisttakesrubocop_report— check: absentmessage:inplugins/os-sdlc/lib/os_sdlc/lint/worklist.rbOrchestrator work: re-measure with bin/collaborator-pass measure --runs docs/crc/os-sdlc/collaborator-runs, then stop-check.
Rejected: build_once_at_entry — Lint::Output::Offense already holds cop_name, path, line, and message, and Worklist::Offense and ResidualWorklist::Offense are local copies of it built from the same rubocop fields, so the sites take that object instead of the loose pair; no new owner is needed. exit_status+output is left out because no existing object holds that pair (Lint::Shell returns a bare tuple) and it needs a new result owner.
Acceptance criteria
Owner sketch
Origin
plugins/os-sdlc/lib/os_sdlc/brief/lint_offense.rb)VERDICT: CREATE
Work started on branch crc-os-sdlc-run-3 (persistent worktree, run 3 collaborator round).
Resolution
Done: Brief::LintOffense takes dispatch_id, agent_type, offense, raw; Lint::Worklist and Lint::ResidualWorklist use Lint::Output::Offense and their local Offense copies are deleted. Rendered brief, worklist and residual prompt text unchanged. Hand-finished after escalation 60 (test defect).
Evidence:
f1450f84on crc-os-sdlc-run-3; suite 2270 runs, 0 failures (48.0s); rubocop 18 files no offenses; delta-check ok: data_clump line+message 8 -> 0; design audit PASS, items 2 and 5 appliedFollow-ups: Candidates for the run 3 close-out skeptic pass: Lint::Output has no public constructor from a parsed hash, so Worklist round-trips the rubocop hash through JSON.generate; exit_status+output clump (Lint::Shell bare tuple) still open.
Follow-up dropped (skeptic, run 3 close-out): "Lint::Shell tuple". The depth-1 rule applies; the next collaborator measure lists it again.
Follow-up dropped (skeptic, run 3 close-out): "Dispatch 853 stall". No demonstrated pain; #766 is related.