os-sdlc: clear tests/ offenses surfaced by the conventional-dir lint scan #289

Closed
opened 2026-08-06 16:38:59 +00:00 by jared · 3 comments
Owner

Context

The #287 fix (ADR-0102, commit f042d6c) widened bin/lint-worklist to conventional test dirs, immediately surfacing a previously invisible Sdlc/Structural/BinScriptLoad offense in plugins/os-sdlc/tests/trim_status_table_test.rb (loads code from a bin/ executable into a test). Fix it, and sweep bin/lint-worklist across the other cc-os targets (os-backlog, cc-architect, os-aidd-lint) for anything else the wider scan now surfaces.

## Context The #287 fix (ADR-0102, commit f042d6c) widened bin/lint-worklist to conventional test dirs, immediately surfacing a previously invisible Sdlc/Structural/BinScriptLoad offense in plugins/os-sdlc/tests/trim_status_table_test.rb (loads code from a bin/ executable into a test). Fix it, and sweep bin/lint-worklist across the other cc-os targets (os-backlog, cc-architect, os-aidd-lint) for anything else the wider scan now surfaces.
Author
Owner

Starting work: fix BinScriptLoad offense in trim_status_table_test.rb, then sweep other targets.

Starting work: fix BinScriptLoad offense in trim_status_table_test.rb, then sweep other targets.
Author
Owner

Fixed: StatusTableTrimmer extracted to lib/status_table_trimmer.rb; bin script now a thin wrapper; test requires the lib class (commit dacbfc6). Verified: 738 os-sdlc runs green, rubocop clean (219 files), standalone trimmer test 8 runs green, hook runs standalone. Sweep: other targets share the same repo-root tests/ dir; findings reported in session. Open for sign-off.

Fixed: StatusTableTrimmer extracted to lib/status_table_trimmer.rb; bin script now a thin wrapper; test requires the lib class (commit dacbfc6). Verified: 738 os-sdlc runs green, rubocop clean (219 files), standalone trimmer test 8 runs green, hook runs standalone. Sweep: other targets share the same repo-root tests/ dir; findings reported in session. Open for sign-off.
Author
Owner

Resolution

Done: StatusTableTrimmer extracted to lib/status_table_trimmer.rb; bin script now a thin wrapper; test requires the lib class, clearing Sdlc/Structural/BinScriptLoad

Evidence: commits dacbfc6 + 0193ce1; 738 os-sdlc runs green, rubocop clean (219 files), standalone trimmer test green, hook runs standalone; user signed off 2026-08-06

Follow-ups: #290 and #291 (captured from the sweep findings)

## Resolution **Done:** StatusTableTrimmer extracted to lib/status_table_trimmer.rb; bin script now a thin wrapper; test requires the lib class, clearing Sdlc/Structural/BinScriptLoad **Evidence:** commits dacbfc6 + 0193ce1; 738 os-sdlc runs green, rubocop clean (219 files), standalone trimmer test green, hook runs standalone; user signed off 2026-08-06 **Follow-ups:** #290 and #291 (captured from the sweep findings)
jared closed this issue 2026-08-06 18:09:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#289
No description provided.