Collapse repeated steps in a journey view #1485

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

Problem

A journey view repeats the same call many times. The census journey has about 270 steps, mostly repeated Project and LibRootSearch calls. The diagram is unreadable.

Reproduce

n/a: found while recording os-sdlc journeys (step 7).

Approach

Required work:

  1. Collapse consecutive identical steps in the journey view, with a repeat count — check: present count in plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb

Acceptance criteria

  1. Given a journey with three identical consecutive calls, when the view is written, then it holds one step marked with a count of 3.
  2. Given a journey with no repeats, when the view is written, then it is unchanged.

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: unreadable census diagram ← Writer emits one view step per recorded call ← 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 A journey view repeats the same call many times. The census journey has about 270 steps, mostly repeated Project and LibRootSearch calls. The diagram is unreadable. ## Reproduce n/a: found while recording os-sdlc journeys (step 7). ## Approach Required work: 1. Collapse consecutive identical steps in the journey view, with a repeat count — check: present `count` in `plugins/os-sdlc/lib/os_sdlc/system_model/writer/journey_file.rb` ## Acceptance criteria 1. Given a journey with three identical consecutive calls, when the view is written, then it holds one step marked with a count of 3. 2. Given a journey with no repeats, when the view is written, then it is unchanged. ## 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: unreadable census diagram ← Writer emits one view step per recorded call ← 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#1485
No description provided.