Move HomeAndStart out of project_scenario.rb into its own file #1460

Closed
opened 2026-10-28 15:40:20 +00:00 by jared · 1 comment
Owner

Move HomeAndStart out of project_scenario.rb into its own file [capture]

Problem

plugins/os-sdlc/tests/support/project_scenario.rb defines two constants: HomeAndStart on line 7 and ProjectScenario. Zeitwerk expects one constant per file (ADR-0241). The takedown eval test helper cannot load ProjectScenario without HomeAndStart (ticket 5).

Approach

Required work:

  1. Move HomeAndStart = Data.define(:home, :start) from plugins/os-sdlc/tests/support/project_scenario.rb to the new file plugins/os-sdlc/tests/support/home_and_start.rb — check: absent HomeAndStart = in plugins/os-sdlc/tests/support/project_scenario.rb

No caller changes.

Route: fast-batch.

Acceptance criteria

  1. Given the moved constant, when the suite eager-loads tests/support, then Zeitwerk resolves HomeAndStart from home_and_start.rb and the suite is green.

Owner sketch

HomeAndStart = Data.define(:home, :start)

Origin

  • Trigger: fixture survey re-verified 2026-10-28 for #1019
  • Improvised this session: none
  • Chain: hand-built test records ← no fixture convention and no delivery to the test-writer ← DESIGN (#1019 memo comment 2026-10-28)
  • Root candidate: none found; searched per skeptic (see VERDICT)
  • Where: plugins/os-sdlc/tests/support/project_scenario.rb
  • Session: 2dd497e0-555e-4518-9cdd-c68461c32463
  • Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/2dd497e0-555e-4518-9cdd-c68461c32463.jsonl

VERDICT: CREATE

Parent: #1019

# Move HomeAndStart out of project_scenario.rb into its own file [capture] ## Problem `plugins/os-sdlc/tests/support/project_scenario.rb` defines two constants: `HomeAndStart` on line 7 and `ProjectScenario`. Zeitwerk expects one constant per file (ADR-0241). The takedown eval test helper cannot load `ProjectScenario` without `HomeAndStart` (ticket 5). ## Approach Required work: 1. Move `HomeAndStart = Data.define(:home, :start)` from `plugins/os-sdlc/tests/support/project_scenario.rb` to the new file `plugins/os-sdlc/tests/support/home_and_start.rb` — check: absent `HomeAndStart = ` in `plugins/os-sdlc/tests/support/project_scenario.rb` No caller changes. Route: fast-batch. ## Acceptance criteria 1. Given the moved constant, when the suite eager-loads `tests/support`, then Zeitwerk resolves `HomeAndStart` from `home_and_start.rb` and the suite is green. ## Owner sketch ```ruby HomeAndStart = Data.define(:home, :start) ``` ## Origin - Trigger: fixture survey re-verified 2026-10-28 for #1019 - Improvised this session: none - Chain: hand-built test records ← no fixture convention and no delivery to the test-writer ← DESIGN (#1019 memo comment 2026-10-28) - Root candidate: none found; searched per skeptic (see VERDICT) - Where: plugins/os-sdlc/tests/support/project_scenario.rb - Session: 2dd497e0-555e-4518-9cdd-c68461c32463 - Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/2dd497e0-555e-4518-9cdd-c68461c32463.jsonl VERDICT: CREATE Parent: #1019
Author
Owner

Resolution

Done: HomeAndStart moved to plugins/os-sdlc/tests/support/home_and_start.rb; removed from project_scenario.rb; no caller changes.

Evidence: fast-batch-21 commit 96cfdda4, merged to main 70ecc103; full suite 2903 runs 0 failures on the merged head; memo docs/crc/os-sdlc/fast-batch-21/finding-a-home-and-start-split.md

Follow-ups: none

## Resolution **Done:** HomeAndStart moved to plugins/os-sdlc/tests/support/home_and_start.rb; removed from project_scenario.rb; no caller changes. **Evidence:** fast-batch-21 commit 96cfdda4, merged to main 70ecc103; full suite 2903 runs 0 failures on the merged head; memo docs/crc/os-sdlc/fast-batch-21/finding-a-home-and-start-split.md **Follow-ups:** none
jared closed this issue 2026-10-28 16:46:18 +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#1460
No description provided.