Skip to content

Diagrams batch D, wave 1: state, timeline, deployment, gantt, kanban, journey, service blueprint, story map, schedule - #144

Draft
bmjcoding wants to merge 13 commits into
mainfrom
claude/diagrams-d1
Draft

bmjcoding wants to merge 13 commits into
mainfrom
claude/diagrams-d1

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

Diagram batch D, wave 1: the "Ops and systems" and "Planning" groups, plus two rulings the build raised.

New types:

  • Ops and systems: StateDiagram, TimelineDiagram and DeploymentDiagram.
    • Dependency is folded into architecture (dependents).
    • Swimlane is folded into data flow (shape: "decision").
  • Planning: GanttDiagram, KanbanDiagram, JourneyDiagram, ServiceBlueprintDiagram, StoryMapDiagram and ScheduleDiagram.
  • Shared parts: a time scale (diagram-scale), and a type-module seam in the engine.
  • The HTML skill has a module for each type.

What was decided, and by whom

  • The owner chose the batch: DECISIONS 359.
  • Two heavy council rounds, one per group. Grok scouted, Neon and Muse drafted, Opus checked and Fable decided.
    • Records: DECISIONS 376 and 377, and .review/council/diagrams-d1/.
    • Both decisions are the approval to build. The owner sees this PR before it merges.
  • Positions: Muse agreed on both groups. Opus objected once per group, and Fable revised both decisions; no objection survives. Neon sat out the positions, because it was out on usage.
  • Fable ruled on two things during the build:
    • The state diagram's start mark and gap (state-gap/ruling.md).
    • A line running along a box's edge (run-edge/ruling.md). This was a fault on main too: a line now keeps space-4 clear in a space-8 band, and the row where a box starts stands space-4 lower.
  • The owner approved the size raise: "yep good to go for all", DECISIONS 378.

For the owner's eye

  1. A gantt draws no dependency arrows. Each row says in words what it comes after. Arrows are on the backlog.
  2. Kanban is a read-only snapshot: cards in columns at one moment, with counts. Nothing drags.
  3. Right to left, a gantt's time runs right to left.
  4. On a phone, a long plan with a short task drops the bars. The words stay, and "Expand" holds the chart.
  5. A contour can say what a part is in the data: a critical task is a 2px contour plus the word "Critical", and a blocked card is a dashed contour plus the word "Blocked". This reads "no state is marked by an outline" as covering selected, active, current and pressed only.
  6. A service blueprint's empty cell is the word "None" with no box.

Refused, so a figure stacks or warns rather than draws wrong

  • A state transition to a composite's boundary.
  • A line onto a deployment artifact's row.
  • A third group level outside deployment.

Figures on main that move

The run-edge ruling moves three figures on main:

  • CIMIP's automatically placed architecture: 16px taller, and "HTTPS" now sits above the account's edge.
  • The twoMains and nestedOneLine fixtures: 32px taller.

Sizes

The shipped diagrams grow +5.35% to +5.37% over main (ArchitectureDiagram 104,733 → 110,362).

  • 612 bytes of that is the run-edge ruling.
  • The owner approved going past the 5% gate (DECISIONS 378).
  • The stylesheet grows 113 bytes.
  • The skill's diagram cap goes from 155,500 to 156,400, with the reason in modules.json.

Checks, and what skipped review

  • Passed: lint (all five steps), both typechecks, the build and the size table.
  • No tests were run (DECISIONS 359: tests stay paused until all open work is finished). New tests are written, not run: diagram-scale, each type, and diagram-run-edge.json. Browser tests haven't run since 24 Nov.
  • No npm run review walkthrough. The pictures are the builder's renders in .review/council/diagrams-d1/build/shots/ (1440 dark and light, 390, right to left).

Known gaps, on the backlog

  • A line that goes out of a box's side and turns back still runs along that box's edge (twoMains).
  • CIMIP's automatic architecture, stacked at 390, leaves out the ALB → cimip service line. Main does this too.
  • The gantt key's focal swatch is a bar, while its focal (the launch) is a filled diamond.

🤖 Generated with Claude Code

bmjcoding and others added 13 commits November 24, 2026 18:48
…ion 3 specifies it

Arithmetic on plain numbers and nothing else: a day as whole days from 1970-01-01 (Date.UTC, never a zone) and an instant as its
milliseconds; one map with one rate and fixed gaps for left-out spans, mirrored by one argument; the number, day and clock ladders (the
clock round on the wall clock of a zone its caller states); ticks from the caller's least distance, none in a left-out span and never
more than the length over the distance plus one; roundOut as a function a caller may call; and a date's words. No default domain, no end
ticks, nothing at load, no import. Tests written, not run (DECISIONS 359).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…string; the dependency and swimlane folds

diagram-core.ts imports no type module: a component hands its module to the engine on the spec (DiagramTypeExt), and a type read as an
architecture (state, deployment) prepares its data, adopts what is its own, and adds its card, key, list and marks through the same seam.
Every string an author writes is a first-strong isolate (Ops 6). An architecture with dependents counts each card's dependents, dashes a
cycle in its written directions and is ranked by longest path under automatic layout (Ops 4); a data flow's step may be a decision, its
step line inside the diamond, every step then taking the contour (Ops 5). A state's and a deployment's groups go to elk in the author's
order, so cycle breaking does not turn the lines out of a group back.

A box's edge is a line (the run-edge ruling, run-edge/ruling.md): a gap's lanes keep its middle while each is outside the boxes beside
it and space-3 clear of their edges, otherwise they are laid evenly in the clear band outside those boxes; an architecture's (and a
deployment's) row on which a box starts stands space-4 lower, so space-8 is clear above the box; under space-3 a lane the warning names
the lines, under space-2 the figure is stacked. Turn-backs alone are not in this ruling (backlog). The shipped diagrams grow 5,629 bytes
over main (+5.37%): 5,017 for the seam, the isolates and the folds, 612 for the run-edge ruling; the owner approved raising the gate by this (DECISIONS 378).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…S 359, Ops 1 and 3)

StateDiagram: the engine's labels, numbered guards, the start mark and the final mark, entry and exit. The start mark as the ruling on
the gap has it (state-gap/ruling.md): the figure's own before its initial state on the side it reads from, a composite's above its
initial state in every layout; its room is new room (the row stands space-10 lower, or the drawing's top edge keeps space-10 more), and a
mark never lies on a line, a label or another mark, else the figure is stacked with a warning that names the state. DeploymentDiagram: the environment, artifacts as rows, replicas as × n. Not in this build: a transition to a composite
state's boundary, a line landing on its artifact's row, and the third group level (it ships only with its label seat and line cut).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e blueprint, story map (DECISIONS 359, Planning 1.0, 1.2 to 1.5)

Equal tracks space-4 apart, the fit measured on content, one DOM for both forms, an empty cell in words (a story map's a dashed slot).
A kanban is a read-only count, every card counted; a journey one actor and the author's five-step scale, the chart's line in one ink; a
blueprint's three rules named in their gaps, its empty cell the word alone and its arrows main or plain; a story map's backbone, slices
and one cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Gemini Neon <noreply@google.com>
Square bars 16 tall that are never widened, a milestone's diamond, tick lines and the dashed today line, no dependency line (a row writes
After), and the three forms by the bar floor: drawn, stacked with tracks, stacked in words; the 512 bound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Gemini Neon <noreply@google.com>
…nning 1.6)

Its numbers computed in fixed point; a line main only where both tasks are critical and its finish sets the next start; the contour is
the task's kind; the stack in the author's order, each card writing what it comes after and which sets its start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Gemini Neon <noreply@google.com>
One true scale; a card flies from a straight stem at its time, two lanes a side, seats derived latest first, or the figure is stacked;
the least drawn width found once; breaks the author's, their length in Basalt's own words; times in the figure's zone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… diagram-timeline, diagram-schedule, diagram-state and diagram-deployment

A page pays for the types it draws: the diagram module grows 7.2 KB (+4.8%). Budgets set with their reasons in modules.json (soft).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s revised by the answers, the ruling on the gap and the run-edge ruling)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… their fixtures

The state's figures for the ruling on the gap (laid right on one row and two, a level run above a marked row, a marked group in a marked
group) are a fixture of their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e regenerated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant