lint-worklist raises UnmappedCop on the os-sdlc target for Layout, Style, and Sdlc/Sequel cops #1020
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#1020
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
bin/lint-worklist --target os-sdlccannot produce a worklist.Worklist#raise_if_unmappedraises for every offending cop thatCopPhase#phasereturns nil for.The gate config enables the whole
Layoutdepartment (Layout: Enabled: true),Style/FrozenStringLiteralComment, andSdlc/Sequel/*.CopPhasemaps only the listed cops and theSdlc/Dry/andSdlc/Structural/departments.Any enabled cop outside those lists that fires in the target crashes the worklist instead of being placed in a phase.
The 2026-10-16 ruling on Layout/LineLength (
docs/research/lint-lessons/layout-line-length.mdsection 10) says it is polish and autocorrect-only. This suggestsLayout/belongs in the autocorrect phase. The Style andSdlc/Sequelcops need their own placement.Observed
Offenses named, from
bundle exec rubocopinplugins/os-sdlc(first examples):Layout/LineLength:lib/os_sdlc/command/lsp_session/handshake.rb:26,tests/evidence_bin_test.rb:13Layout/FirstArgumentIndentation:eval/ticket-takedown/test/controller/implement_body_cli_test.rb:17Layout/EmptyLinesAroundClassBody:eval/ticket-takedown/test/presenter/run_summary_test.rb:15Sdlc/Sequel/InlineDatasetQuery:tests/model/dispatch_test.rb:211Style/FrozenStringLiteralComment:eval/ticket-takedown/results/prism-architect/scripts/bundle.rb:1None of these files is in
git status --short, so uncommitted #1014 work does not cause the crash.CopPhase#phasetoday:Department lists:
BATCH_DEPARTMENTS = %w[Sdlc/Dry/]andITERATIVE_DEPARTMENTS = %w[Sdlc/Structural/].AUTOCORRECT_COPSholds onlyMinitest/Assert*andMinitest/Refute*cops.Reproduce
Approach
Map departments, not single cops:
Layout/to:autocorrect;Style/FrozenStringLiteralCommentto:autocorrect;Sdlc/Sequel/to:batch.Add a test that enumerates the enabled cops from the merged rubocop config and asserts each has a phase. Then the config and the phase map cannot drift again.
Required work:
Layout/andSdlc/Sequel/departments andStyle/FrozenStringLiteralCommentinCopPhase— check: presentSdlc/Sequel/inplugins/os-sdlc/lib/os_sdlc/model/worklist/cop_phase.rbCopPhaseinplugins/os-sdlc/tests/**/*cop_phase*_test.rbAcceptance criteria
bin/lint-worklist --target os-sdlcruns, then it prints a worklist or "Worklist clear" and does not raise.Origin
plugins/os-sdlc/bin/lint-worklist --target os-sdlcFound 2026-10-16 during the hand-finish of #1014 (implementation 51) in worktree lint-lessons.
VERDICT: CREATE
Evidence folded in from #979 (older, closed as superseded): hyperthrive-websites, session 97ec2cb5-891a-4e1e-8946-b60cf3988392, 2026-10-10, 'lint-worklist --new' failed with UnmappedCop before seeding. About 75 Layout/* cops were unmapped, and also Sdlc/RequireInMethod, which this ticket does not list. Acceptance criteria this ticket lacks: (1) 'lint-worklist --new' on a project with Layout offenses seeds a worklist and does not raise UnmappedCop; (2) Sdlc/RequireInMethod, Style/FrozenStringLiteralComment and the Layout department each map to a fix-lints phase.
Partial fix on main, commit
f6e96599(2026-10-27, lint-cops track): CopPhase now maps the Sdlc/Minitest/ department to batch and Sdlc/Sequel/ to iterative (not batch as this ticket proposes; Sequel cops name design fixes). New test plugins/os-sdlc/tests/lint/worklist/cop_phase_test.rb asserts that every enabled Sdlc cop in .rubocop.yml has a phase. Still open: Layout/ and Style/FrozenStringLiteralComment have no phase, and the test enumerates Sdlc cops only, not the merged config. Unsafe-autocorrect cops in AUTOCORRECT_COPS are now #1441.