lint-worklist: lint a target with the gate's config chain #1417
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#1417
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-worklistlints a target with a different config chain than the gate.Lint::Worklist::RubocopRun.fetchcallsRun.newwith nolint_config, so the chain becomes plugin config then<root>/.rubocop.yml. The gate passestarget.lint.resolved_config(root)(gate/commands.rb), so a target with its ownlint_config(os-backlog:plugins/os-backlog/.rubocop.yml) gets plugin config then its own file. fix-lints useslint-worklist, so on os-backlog it fixes against the wrong cop settings, and the gate can still fail after a "clean" fix-lints run.Reproduce
The offense list differs from a full-tree
Lint::Run.new(lint_config: target.lint.resolved_config(root))overplugins/os-backlog(investigation 2026-10-27: os-backlog 312 offenses on the gate chain).Approach
Required work:
resolved_configinplugins/os-sdlc/lib/os_sdlc/lint/remediation.rbRejected: a separate chain builder for lint-worklist — ADR-0298 and ADR-0179 make
target.lint.resolved_configthe one resolver; the gate already uses it.Acceptance criteria
lint_confignames its own.rubocop.yml, whenlint-worklistlists offenses for that target, then the list is the same as the gate's lint of the same files (plugin config first, then the target's own file).lint_config, whenlint-worklistlists offenses, then the chain is plugin config then the root.rubocop.yml, as today.Owner sketch
Origin
lint_config←RubocopRun.fetchcallsRun.newwith nolint_config(plugins/os-sdlc/lib/os_sdlc/lint/worklist/rubocop_run.rb:9) ← DESIGN (lint/worklist/rubocop_run.rb)plugins/os-sdlc/lib/os_sdlc/lint/worklist/rubocop_run.rb,plugins/os-sdlc/lib/os_sdlc/lint/remediation.rbVERDICT: CREATE
Work started on branch ticket-1417 through /os-sdlc:implement (poodr-ticket-implementation).
Resolution
Done: lint-worklist passes the target's resolved lint_config to its rubocop run, so fix-lints lints each target with the same chain as the gate (plugin config first, then the target's own file).
Evidence: Implementation 187 complete (10 dispatches, 0 retries, 9 min 3 s); merged to main; os-sdlc suite on main 2769 runs, 0 failures.
Follow-ups: none