Fix aidd-lint short-circuit that hides offenses after the first failing file #984
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#984
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
aidd-lintprints offenses for the first failing file only and hides the offenses of every later file.The line
offenses_found ||= emit_offenses(path, offenses)short-circuits: onceoffenses_foundis true, Ruby does not callemit_offensesagain.A full-tree run therefore under-reports.
This defect also masks the symptom of #194 (tmp/ scanning): the tmp/ offense does not print when an earlier file already failed.
Design
/home/jared/dev/cc-os/.claude/worktrees/prism-architect/docs/takedown/984-20261012-094346/final-design.json
Approach
Replace the
||=accumulators in AiddLint::CLI#lint and #tier2_collect with a per-file map that always emits, then reduce with any? for the exit status.Required work:
plugins/os-aidd-lint/lib/aidd_lint/cli.rbplugins/os-aidd-lint/tests/multi_file_report_test.rbAcceptance criteria
Owner sketch
any?)plugins/os-aidd-lint/tests/multi_file_report_test.rbImplementation started on branch prism-architect (persistent worktree) via /os-sdlc:implement 984 takedown-implement. Design: docs/takedown/984-20261012-094346/final-design.json. Session 3f094e92-202f-41fc-8d9c-b591750d9bc1.
Resolution
Done: aidd-lint now prints offenses for every failing file: CLI#lint and #tier2_collect build per-file results that always emit, then reduce with any? for the exit status. Exit codes unchanged.
Evidence: Takedown docs/takedown/984-20261012-094346 (relevance relevant, both new methods red at base); implementation 37 on map takedown-implement: test-writer, programmer, behavior-verifier, suite-check, contract-auditor all pass first try; Runner commit
dcf66e4don prism-architect.Follow-ups: none; #194 (tmp/ scan) stays open and is now unmasked by this fix