Refuse to write a journey view with no steps #1484

Open
opened 2026-11-01 16:00:19 +00:00 by jared · 0 comments
Owner

Problem

The system-model Writer emits a journey view even when the journey has no steps. A one-object script such as dup-sweep or dead-code-sweep produces an empty dynamic view. The viewer shows a blank diagram.

Reproduce

n/a: found while recording os-sdlc journeys (step 7); standalone scripts give no steps.

Approach

Required work:

  1. Make the Writer skip, or fail loudly on, a journey with no steps — check: present steps in plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb

Acceptance criteria

  1. Given a journey with no steps, when the Writer runs, then it writes no view file and reports the journey by name.
  2. Given a journey with steps, when the Writer runs, then it writes the view as before.

Origin

  • Trigger: system-model steps 7 and 8 (os-sdlc journeys, commit 8c28fd4f; course check in docs/system-design-format/README.md section 6)
  • Improvised this session: none
  • Chain: blank diagram for standalone scripts ← Writer renders every journey without checking its steps ← DESIGN (plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb)
  • Root candidate: none found; searched journey, journey_file, Writer, pattern-landscape
  • Where: plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb
  • Session: 313ee80d-b132-4de6-a01d-e1a57fbd3450
  • Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/313ee80d-b132-4de6-a01d-e1a57fbd3450.jsonl

VERDICT: CREATE

## Problem The system-model Writer emits a journey view even when the journey has no steps. A one-object script such as dup-sweep or dead-code-sweep produces an empty dynamic view. The viewer shows a blank diagram. ## Reproduce n/a: found while recording os-sdlc journeys (step 7); standalone scripts give no steps. ## Approach Required work: 1. Make the Writer skip, or fail loudly on, a journey with no steps — check: present `steps` in `plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb` ## Acceptance criteria 1. Given a journey with no steps, when the Writer runs, then it writes no view file and reports the journey by name. 2. Given a journey with steps, when the Writer runs, then it writes the view as before. ## Origin - Trigger: system-model steps 7 and 8 (os-sdlc journeys, commit 8c28fd4f; course check in docs/system-design-format/README.md section 6) - Improvised this session: none - Chain: blank diagram for standalone scripts ← Writer renders every journey without checking its steps ← DESIGN (plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb) - Root candidate: none found; searched journey, journey_file, Writer, pattern-landscape - Where: plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb - Session: 313ee80d-b132-4de6-a01d-e1a57fbd3450 - Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/313ee80d-b132-4de6-a01d-e1a57fbd3450.jsonl VERDICT: CREATE
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#1484
No description provided.