os-sdlc: adopt Zeitwerk autoloading for tests/ (clears RequireRelativeDensity) #286
Labels
No labels
P0
P1
P2
P3
bug
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
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#286
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?
Context
The 2026-08-06 test-file lint pass (commit
cdf1596) left one non-exclusion offense: Sdlc/Structural/RequireRelativeDensity on plugins/os-sdlc/tests/test_helper.rb, whose remedy is replacing the manual require_relative list with Zeitwerk autoloading. This is an architecture-level loading change — record it via /os-adr:create when worked, not as a drive-by lint fix.Decomposition (2026-08-06):
Work started on main (no feature branch). Decision recorded as ADR-0101 (docs/adr/0101-adopt-zeitwerk-autoloading-for-os-sdlc-tests-support-files.md): Zeitwerk loader in test_helper.rb, files renamed to match constants, OsSdlc-nested support files un-nested.
Implemented on main: commit
9cf726c(code) +e979bb5(ADR-0101). Support files renamed to match constants (brief_assembler_fixtures->brief_assembler_case, cli_test_helpers->cli_shared_helpers, workspace_scenario->fake_issue_source), OsSdlc-nested helpers un-nested, test_helper.rb now uses a Zeitwerk loader (cli_fixtures.rb kept as an explicit require — multi-constant fixture file, same exception pattern as lib/os_sdlc.rb). Verified: 731 runs / 1978 assertions green; rubocop tests/ clean, zero RequireRelativeDensity. No PR gate — open for human sign-off.Resolution
Done: Zeitwerk autoloading adopted for os-sdlc tests/ support files; files renamed to match constants, two helpers un-nested from module OsSdlc
Evidence: commits
9cf726c+e979bb5(ADR-0101); 731 tests green; rubocop tests/ clean with zero RequireRelativeDensity; user signed off 2026-08-06Follow-ups: none