Skip to content

chant pull-request loop: live waves and components from chant's run events (behold#631, chant#4007) - #740

Merged
lex00 merged 24 commits into
mainfrom
chant-fanout-live
Oct 18, 2026
Merged

lex00 merged 24 commits into
mainfrom
chant-fanout-live

Conversation

@lex00

@lex00 lex00 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

For terragucci's fan-out scenario (terragucci-admin/demo-chant-fanout, chant's examples/fan-out-estate: 15 stacks in 3 waves). Until now, while pr-apply ran, the components view showed "running" for the whole merge and then flipped every card at the end. With chant 0.124.29's --report-url, it now shows each wave and component as it lands.

What changed

  • Reader (src/chant-pr-events.ts, new): folds run-event/v1 into per-wave and per-component state.
    • Component states: waiting, planning, planned, running, applied, failed (with error), blocked (with blockedBy), already-applied, gated, not-run.
    • Each line goes through readRunLine (src/run-events.ts, chant's vendored schema). The exception is a component-settle with 0.124.29's blocked or already-applied, which the 0.124.28 schema's closed status set refuses. Other refused lines are counted in refused.
    • Without the blocked status, a component is blocked when its wave starts without it, or when the run settles before it started. Its blocker is worked out from the components graph's edges.
  • /api/chant/pr (src/chant-pr.ts) has a new field live:
    live: null | {
      reportUrl: string, via: "pipeline" | "serve",
      plan: PrLive | null, apply: PrLive | null
    }
    PrLive = {
      stage, contract: "run-event/v1", source, runId, chant, gitSha, seq, at,
      settled, status, error?, gate?: {state, by?, message?}, refused?: {lines, reason?},
      waves: [{ wave, state: waiting|running|applied|failed|gated|blocked|not-run, components,
                counts: {applied, failed, blocked, alreadyApplied, running, waiting} }],
      components: { [name]: { component, wave, state, error?, failedIn?, blockedBy?,
                              blockedFrom?: "event"|"graph", startedAt?, settledAt? } }
    }
    
    loop gains optional reportUrl, reportUrlAs (as written, when a variable could not be resolved) and events. The facets (meta.chantPr) gain needs, which maps each component to what it depends on.
  • Finding the report URL:
    • Read from --report-url on the pr-apply line first, then the pr-plan line, the same way --output is read.
    • A $VAR or ${VAR} is filled from the pipeline file's own VAR: value lines. A variable set outside the file (secrets, repo vars) leaves the URL unresolved.
    • behold serve --chant-report-url <url> overrides it.
    • It is read through terragucciSource, the same S3 client and endpoint handling as --terragucci; file:// is read as a directory.
    • The key is <pr>/<commit>/pr-<stage>.events.jsonl (see the update below), built only in chantReportKey in src/chant-pr-events.ts. The pr comes from the cycle's runs and the commit from each stage's run, with the same pin and run logic as before. A shortened commit is matched by listing <pr>/.
  • Marks (web/chant-pr-marks.js):
    • Wave boxes say "applying", "done", "done, 6 blocked by cluster-a" or "1 failed, 1 applied".
    • Cards say "applying", "applied", "failed: " or "blocked by cluster-a". A narrow card falls back to a middle form ("failed: The name of a…") and then to one word.
    • "held back by an earlier wave" is gone. A blocked member says "blocked by " when the blocker is known (from events or graph edges), else "blocked by an earlier failure".
    • The chant#4007 progress facts only show when the apply runs without events.
  • Kiosk:
    • The gate panel now stays up on the failed step (CHANT_PANEL_STEPS). Its Applied row reads "The merge applied part of this digest: 8 applied, 1 failed, 6 blocked." instead of the misleading "On merge, chant applies…".
    • Tips now get chant waves: "cluster-a failed: " (critical, so the failed modal opens on the failed step, titled "Wave 2 failed"), "wave 3 applied 6; 6 blocked" and "6 in wave 3 blocked by cluster-a: they did not run".
    • A swapped-in kiosk frame now waits for its first /api/chant/pr read, so it no longer arrives with neutral cards.
  • Tests:
    • src/chant-pr-events.test.ts: a three-wave apply with cluster-a failing and its apps blocked, with and without blocked, and without edges; an already-applied resume; a run still going; a torn line and a refused line; the plan stage.
    • src/chant-pr.test.ts: the route with a report URL and with the serve override.
    • Marks tests for live states, and an event-help test for chant waves.
    • Written, not run (the coordinator runs them).

Other repos behave as before. terragucci repos never read live. demo-chant's chant-pr-loop has no --report-url, so live is null and the log-summary path is unchanged, except one wording change: a blocked member reads "blocked by …" where it used to read "held back by an earlier wave".

Update: chant#4083's shapes (commit 65b9e50)

  • Key layout: <url>/<pr>/<commit>/[<member>/]pr-<stage>.events.jsonl, with <pr> as unknown when the cycle has no pull request. chantReportKey(pr, commit, file, member?) builds it. The plain events.jsonl fallback is dropped, because it would cost a second GET per stage on every poll.
  • Vendored schema: now chant#4083's (feat/4007-pr-progress at bf7a5962). component-settle accepts blocked (with blockedBy) and already-applied as valid lines, so the lenient pass is gone. Re-copy it from the release tag once 0.124.29 ships.
  • Placement: blocked and already-applied are placed by component name, from run-start's waves, else the graph's (componentWaves, cached with the graph's needs). The event's own wave number is never used. A component run-start doesn't list joins none of live.apply.waves, which use run-start's numbering.
  • Wave boxes: worked out from their components by name, so a resume's re-layered numbers don't move them.
  • Kiosk tips caveat: the tips still use run-start's wave numbers. On a resume, a tip's wave number can differ from the graph's box.

Decided

  • The new answer field is live, holding both stages. The marks follow live.apply, else live.plan before any apply.
  • The key builder is chantReportKey(pr, commit, file), which returns <pr>/<commit>/<file>. It is the one place to change once chant fixes the keys.
  • The override is a serve flag, --chant-report-url, rather than a per-repo setting. In --repos mode it applies to every chant repo served. The pipeline's own URL is the main path.
  • Variables are resolved from VAR: value lines in the same pipeline file only. Anything else needs the override.
  • The schema boundary is kept, with a narrow exception for the two additive statuses, rather than skipping validation.
  • When chant does not name a blocker, it is the failed component found by walking dependencies back, the same way chant blames the failed component and not the nearest edge. The server gets the edges from the last components-graph draw of the checkout (meta.chantPr.needs, cached per checkout). The marks also walk facets.needs in the browser.
  • A wave that finished with some components blocked has a box in the blocked tone, and its status says "done, N blocked by X". A wave chant never started because everything in it was blocked is "blocked".
  • Errors are shortened for cards: first line, CloudFormation's "Resource handler returned message:" wrapper and request-token parentheticals removed, cut at a word near 60 characters. The full error stays in the tooltip.
  • Refresh cadence is unchanged. app.js already polls /api/chant/pr every 3 s, the server caches for 2 s, and the approval panel reads every 4 s. That is live enough to see waves land.

Not done / notes

  • Layout: these numbers come from reading src/edgeless.ts, not a screenshot. Wave 3's 12 cards have no edges inside their box, so it wraps once it holds 6 or more cards (ROW_MIN_CARDS = 6, ROW_ASPECT = 2.4). For 12 cards of about 175×104 that gives about 5 columns (rows of 5, 5 and 2). At 1920×1080 the shot should land at about 0.6 to 0.7 scale, with cards about 110 to 120 px wide. Nothing in the components zoom applies a readability threshold. This has not been checked on screen; the coordinator should look at a screenshot.
  • At about 115 px a card is too narrow for "failed: ", so it falls to "failed". The reason shows on the wave box's first fact (with shorter forms for a narrow box), in the failure tip and modal, and in the card tooltip.
  • The "Applied" result card (resultModel) reads terragucci's run view and metrics, so a chant repo still gets no result card. I left that alone.
  • In --repos mode, /api/chant/pr still reads cfg.projectDir, as before.
  • Typecheck: tsc --noEmit is clean for every file this PR touches. The symlinked node_modules has @intentius/chant 0.124.24 (package.json wants ^0.124.28), which leaves errors in src/run-events.ts, src/component-status.test.ts and src/why-trace-fixture.ts. Those files are untouched here. The build (npm run build) succeeds.
  • The 0.124.29 event shapes (blockedBy on component-settle, already-applied with or without component-start) are read as the task describes them. They should be checked against chant once it ships.

🤖 Generated with Claude Code

lex00 and others added 24 commits October 17, 2026 22:50
…vents (behold#631, chant#4007)

pr-apply (chant 0.124.29) uploads events.jsonl under --report-url after every
wave, component and run settles. /api/chant/pr now finds that URL on the
pipeline's pr-plan/pr-apply lines (or serve's --chant-report-url), reads
<url>/<pr>/<commit>/events.jsonl for the cycle's runs, and folds it into
per-wave and per-component state in a new `live` field. The components view
shows each wave applying or done, and each card applying, applied, failed
with a short reason, or blocked by the component that failed. Repos without
events keep the run-log summary.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…shapes

- Events are read from <url>/<pr>/<commit>/pr-<stage>.events.jsonl, with
  <pr> `unknown` when the cycle has no pull request. chantReportKey takes an
  optional member segment. The plain events.jsonl name is dropped: a
  fallback would cost a second GET per stage on every poll.
- The vendored run-event schema is chant#4083's (feat/4007-pr-progress at
  bf7a5962): component-settle accepts blocked (with blockedBy) and
  already-applied. The lenient pass for those lines is gone.
- blocked and already-applied settles are placed by component name, using
  run-start's waves, else the components graph's. The event's own wave is
  never used: on a resumed fan-out it is the earlier attempt's number.
- Wave boxes are worked out from their components by name, so a resume's
  re-layered run-start numbers do not move them.
- Tests cover each settle shape as chant writes it, including an
  already-applied component whose event wave disagrees with run-start.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…rt URL's forge expressions, and the host's aws lexicon

- componentGraphIr/Layout read a multi-stack project's components from its
  root. Each stack's src holds only that stack's resources, so chant graph
  <first stack's src> --components returned no components and the kiosk drew
  an empty stage (chant's examples/fan-out-estate, terragucci#1160).
- --report-url values that hold ${{ github.repository }} (or forgejo/gitea's,
  or GitLab's $CI_PROJECT_PATH) are filled from the checkout's origin remote.
- The host image installs @intentius/chant-lexicon-aws beside the terraform
  lexicon, and DEMO_REPOS adds terragucci-admin/demo-chant-fanout.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…h it (behold#631)

On a chant repo that runs the pull-request loop, a wave whose every card
depends on exactly one card of the wave before is laid out as one block per
parent, side by side: chant's fan-out estate's app-01..06 as 3 x 2 under
cluster-a and app-07..12 under cluster-b, so the six one failure blocks sit
together under it. When every card of the parent wave is a parent, the
parents move to their blocks' centres. Any other wave, a block that would
need a taller box, and every other repo keep the layout they had.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ith its step, and says the reason (behold#631)

- The "Wave N failed" modal of a chant apply keeps clear of the failed card
  and the cards its failure blocked (the fact's roots, boxes from the frame):
  modalSpot tries the centre, then the corners and the sides, and takes the
  first spot that covers none of them.
- It closes once the cycle moves on to a new pull request or step, so it no
  longer sits over the fix's plan and its wait.
- When the step's label already says why, the label is the modal's line and
  chant's raw error goes in its tooltip. Otherwise the line is the error's
  most specific part, with the whole error in the tooltip.

terragucci's failure modals and tips are unchanged: all of this keys on the
chant fact's `chant` flag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…no issue numbers on the kiosk (behold#631)

- Pacing: the fold keeps a timeline of every state change in stream order
  (live.apply.timeline). web/chant-live-pace.js plays it in the frame and in
  the kiosk's panel and tips. Each wave shows applying for at least 3 s, then
  done for 1.5 s, before the next wave's states show. Once the stream has
  settled, the rest plays at 1.2 s and 0.6 s per wave. A run first seen
  settled (a reload) shows at once. Only states the events gave are shown,
  and the apply's summary waits while the play is behind.
- Applied earlier: /api/chant/pr reads the events of the cycle's earlier
  applies (the runs index's `cycle`) into live.earlier. On the fix's plan and
  apply, a card the first apply landed reads "applied earlier" in the applied
  tone, so all 15 have landed at the end.
- An Applied card for a chant repo at the applied step (chantResultModel):
  how many applied this run and earlier, the waves, a row per wave.
- Waves in tips, the panel and the card use the graph's numbers
  (graphWave), not a fix's re-layered run-start numbers.
- No issue numbers in viewer text: while the apply starts and events are
  expected, a wave box says "starting…". With no events at all, the
  chant#4007 note shows in Inspect and never on the kiosk.
- A tool's `<step> "<name>":` prefix and the advice after a dash are cut from
  a card's reason: "stack reached ROLLBACK_COMPLETE".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…t#4083)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…aimed for applied-earlier boxes, quieter chrome (behold#631)

- A wave a chant apply has not reached says "waiting" (status queued). The
  box's short form of a waiting status was "held", which read as the
  failure word.
- Before events land, "starting…" is on the wave the apply starts with
  only; the waves after it say "waiting".
- A box whose cards all landed in an earlier apply no longer says "applied
  plan <this run's plan>".
- On a kiosk: the waiting wave's plan by its short id (8 hex digits); the
  box's status words at the right of its title line, so the title's fit
  scaling cannot run into them ("wave-3plan running"); the forge and tool
  marks once, on the top wave's box; no type glyph (it read as a checkbox)
  on the cards. chantApprovalModel takes `kiosk` and leaves out the approve
  command. Inspect keeps the full digest and the command.

All of it is chant only: the marks are chant-pr-marks', and the app.js
changes key on a chant repo's components view in a bare kiosk frame.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… request in its own run, plain words (behold#631)

- Tips: a chant kiosk shows one at a time (two on one wave box overlapped).
  A wave's "started" tip goes once that wave's outcome is news, so the tags
  follow the paced graph.
- The failure modal leaves the failed wave and the wave after it in view.
  It takes a spot inside the graph's frame that covers no card at all,
  else the fewest, nearest the centre.
- It says "the driver opens a fix in N s" with a "Fix · N" button, since a
  new pull request follows, not a re-run.
- The approval hold opens no modal on a chant kiosk: the approval card
  beside the graph says it, and the modal covered it.
- The caption's step line waits for the paced play at a chant repo's failed
  and applied steps, and shows the step before until then. The strip still
  moves.
- The trail: a chant cycle's second pull request is its own run of chips
  (ids per pull request), after the first's, behind a "then pull request #8"
  divider. The pre-merge gate sits with the plan when the strip has no
  approval stop. That missing stop is why "merged" sorted before "the plan
  waits for an approval".
- Words: "approved by demo-reviewer", not the forge principal and
  ", signed". A failure chip uses the step label's reason ("cluster-a
  failed: SQS refuses a FIFO queue whose name lacks .fifo"), else
  "cluster-a failed". CloudFormation's text stays in the modal's tooltip.

All of it keys on the kiosk's chant flag (s.chantLoop, passed as `chant`)
or on a chant fact. terragucci's facts, ids, order, tips and modals are as
they were.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ds, and the fix's answer only for the fix (behold#631)

- At the merge, before the apply's run is listed, the merge commit names no
  pull request and /api/chant/pr comes back empty. The frame keeps the plan
  it had (only across a commit pin, never a plan pin or the reset), so the
  cards stay "planned" until the apply's records replace them.
- Booth-sized words on a chant kiosk: a card's state line at its name's size
  (15, in the room the hidden glyph left) and the wave words half again as
  big (18).
- "6 applied, 6 blocked by cluster-a", not "done, 6 blocked by cluster-a".
  The waiting wave's "approve plan <id>" is off the kiosk's boxes (the
  approval card names the plan). Inspect keeps it.
- chantApprovalModel returns nothing for an answer read for another pull
  request of the cycle. The kiosk held the first PR's answer into the fix's
  steps, so its apply's waves were told again as the fix's. On a kiosk its
  rows carry no run numbers and read "A reviewer approves this exact plan."
  / "The merge applies it only if it still matches.".
- The Applied card says "the fix ran 2 waves" when the cycle had an earlier
  apply.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…, one framing, plain next line (behold#631)

- The merge chip of a chant cycle shows only from its merged step on: its
  gate comes before its merge, and the strip's default order said "merged"
  at the fix's wait.
- No Applied modal on a chant kiosk: the result is the side card.
- One tip at a time, kept on every refill (showTips also refilled to two),
  and a tip that goes on a chant kiosk is removed at once, with no shrinking
  ghost.
- The failure modal's countdown is a line of text ("fix opens in 14 s"),
  not a button. Its mode line reads "Live · next, the demo opens a fix".
- One horizontal framing for a chant cycle: the shot always keeps 520 px at
  the right for the side panels, so the graph does not shift as they come
  and go.
- The approval card's head drops "times in UTC" when its rows carry none.
  The next line reads "next (scripted): …", with "plan note" said as
  "plan". The "· N s so far" timer shows only while a job of the step runs.

All gated to a chant repo (s.chantLoop / the tips' chant flag / the model's
kiosk flag). terragucci's kiosk is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… ids or reviewer on the boxes (behold#631)

- When the fix's pull request opens and has no plan yet, the frame keeps
  each card's last state. What landed reads "applied earlier" (live.earlier
  plus what the previous answer showed applied); a failed or blocked card
  keeps that state. Nothing goes blank. The fix's plan replaces them once it
  exists.
- A box outside the fix says "applied earlier", never the plan job. On a
  kiosk the plan job reads "planning" or "waiting to plan", not
  "plan queued".
- "approved by …" and "applied plan …" are off the kiosk's wave boxes. The
  approval card keeps the short plan id, and Inspect keeps both.
- chantLiveWaves names the applied components, for the tips' wave chips.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…r what comes next, a rail that follows the step (behold#631)

- A wave's "started" tip goes as soon as the wave has settled, whether or
  not an outcome tip replaces it. Every tip is cleared when the cycle's
  next pull request starts.
- A wave with a failure's chip: "wave 2: cluster-b applied, cluster-a
  failed" (by name when there are two or fewer of each), else
  "wave 2: 1 applied, 1 failed".
- One wording for what comes next: the failure modal's line and the
  caption both say "next (scripted): the fix opens in 14 s". The caption's
  next line is one sentence in one font: "the plan's digest" reads
  "the plan", "plan note" reads "plan".
- The rail: a chant pull request's waiting and approved steps light
  "planned" when the strip has no approval stop, for the fix's pull request
  as for the first. They lit "waves" because those steps sit in the default
  strip's waves stop.
- The event strip fades in at its left edge, so a chip scrolled past it
  never reads as a word cut short.

All of it is gated to a chant repo. terragucci's kiosk is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ows under a modal (behold#631)

- The chant result card is held until the paced play reaches the apply's
  end, the same way the caption is, so it never counts "0 applied this run"
  while the cards are still applying.
- While a modal is open on a chant kiosk, no tip shows, including one put
  up in the same tick and any already up. They come back when it closes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…he rail, and a "Waiting on…" modal for quiet stretches (behold#631)

The track (web/kiosk-track.js) lays the whole cycle out from the first
second, from the tool's last finished cycle (cycles/<tool>/latest.json).
- A segment per step, grouped into a chapter per pull request: "The change
  (PR #12)", "The fix (PR #13)", with this cycle's own numbers once known.
  Labels are plain words (opened, planned, review, merged, applying, failed,
  fix opened, …, done, reset). Widths follow last time's durations, with a
  floor so every label fits.
- Past segments are filled, a failure red and the end green. The current
  one fills as its time passes, capped at 95% until the step ends, with a
  slow sheen (none under reduced motion). The rest is outlined.
- The applying segment carries a tick per wave, lit from the paced graph.
- The now line says what happens and what is waited on, with the usual
  time: "Waiting for the reviewer · usually about 13 s", "Wave 2 is
  applying", "The fix opens in 14 s". Past the usual time it says "taking
  longer than usual…".
- On a phone, chapter titles and bars only.
- With no last cycle published, the chip strip stays.
- /api/terragucci/cycles/:tool reads any demo tool name (chant-fanout has
  no vendor page), so the kiosk can read its cycle.

The "Waiting on…" modal is the same words, big, for someone walking up.
- It shows after 3 s with nothing new, for the plan or apply job starting,
  the reviewer, or the fix's countdown, and never while the apply is
  receiving events.
- It carries the step's label as why, and a bar with "usually about N s"
  or "taking longer than usual".
- It is placed off every card, and closes as soon as anything new arrives.
- The failure modal and the approval card win over it.

On a chant kiosk the chip strip and the top rail give way to the track. The
caption stays as it was.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…d a working pulse between events (behold#631)

- What a change reaches: a soft translucent wedge behind the cards and in
  front of the wave boxes, from the root card's top centre up over every
  card downstream of it (the graph's needs, transitively), padded 16. Its
  hull follows the rendered 3 x 2 blocks, so the failure's passes between
  them.
  - It grows from the root over about 1.2 s (ease-out), then rests faint
    with a thin edge. Under reduced motion it just appears. A new one
    crossfades the old.
  - While the first plan stands: from network over all fifteen, "reaches 15
    stacks", in the plan tone.
  - At the failure: from cluster-a over its six blocked apps, "holds back 6
    apps", in the failure tone, until the fix opens.
  - At the fix's plan: from cluster-a over the fix's seven, "the fix reaches
    7"; the eight applied earlier sit outside it.
  - It ends when the apply starts a wave, and is absent at applied and at
    the reset. More than one root draws a wedge each, merged under one fill.
- Between events, the cards the pipeline is about to work on pulse their
  outline: every card of the pull request before its plan, and the first
  wave's before the apply's first wave starts. No motion under reduced
  motion.

Chant only: the reach comes from chant-pr-marks, and app.js draws it only in
the chant components view.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… track spans the width, and quiet stretches read calmly (behold#631)

- The reach's apex sits just below the root card's bottom centre. The root
  card is inside the hull, and the apex stays a point while the other
  corners round by at most 28 px. The old midpoint rounding pulled the apex
  up to wave 2's edge. The shape now visibly comes out of network or
  cluster-a and grows from there.
- Its words are at the wave header's size, in its tone, with a halo, inside
  it beside the apex: right of the root card, midway between its wave box
  and the one above. Never on a box border.
- The track's chapters run end to end across the full width. Their grow
  factors summed below 1, and a flex row then leaves the rest empty. Every
  segment is at least as wide as its short label, and a label that doesn't
  fit whole says its short form ("plan", "merge") instead of clipping.
- "taking longer than usual" only after max(1.5 × usual, usual + 8 s).
  Until then "usually about N s", with the fill holding at 95%.
- The caption's quiet line ("… · 14 s so far") goes while the track is up.
  Its now line says it.
- The "Waiting on…" modal looks first for room off the graph altogether
  (its wave boxes and the space between them), then for room off every card.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…waves, quieter chrome (behold#631)

- No modal over the track or the caption: a chant modal's spot search (the
  failure, "Waiting on…") keeps to the graph's area above the bottom band.
  The centre stands only when it fits there.
- The failure modal is titled after the failed component, "cluster-a
  failed", since half of its wave went ahead.
- One word: the reach says "6 apps blocked", as the cards do. One failed
  word: a carried failed card on the kiosk says "failed", not
  "apply failed".
- One clock: a chant modal counts down on the same clock as the track and
  the caption (it used the shown clock), so all three say the same second.
- The wave waiting on the approval is outlined in the plan's tone. The
  warning tone is blocked's alone.
- The reach never stays part-grown or without its words. A frame drawn
  while hidden pauses its animation, so the end state is set after the
  growth and on every redraw: full radius on the apex, words shown.
- Waves read bottom to top. Each box is titled "wave N" at the header's size
  in a readable tone. Each edge carries an arrowhead into its dependent. The
  bottom box says "the waves apply from the bottom up".
- Chrome: "cycle N · started …", "Scenario 1 of 1" and the theme picker give
  way on a chant kiosk with its track, Inspect keeping them. One line names
  it: "chant fan-out, run by terragucci · live demo", with the demo's intro
  as its tooltip.
- The chant result card shows the moment the paced play ends: a new step
  reads /api/chant/pr at once, not a poll later.

All of it is gated to a chant repo's kiosk.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… and the track in the same four chapters (behold#631)

- demo.json's `chapter: { n, of, headline }` (and an optional short name)
  rides /api/terragucci/demo and the cycles' steps (demoOf, chapterOf). A
  step without one reads exactly as before.
- On a chant kiosk the caption's headline is the chapter: "1 of 4 · A
  change to the shared network goes out to all 15 stacks", in large type,
  fading in when the chapter turns (no motion under reduced motion). The
  scenario's title ("A broken stack shouldn't stall the whole rollout") is
  one small constant line under it. "What changes" and the step's label
  stay as they were.
- The track uses the same chapters when the last cycle's steps carry them:
  "1 The change goes out" (opened to applying), "2 cluster-a breaks"
  (failed), "3 The fix" (fix opened to applying), "4 Done" (done and
  reset). Each is titled with its number and short name, the driver's
  `short` or else the headline up to its first comma, and the current one
  is lit in the plan's tone. Where the cycle is comes from the step's own
  chapter.
- Without chapters (older cycles, other scenarios): the scenario title, and
  one track chapter per pull request, as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…the stage, its words on top (behold#631)

- The reach's shape is drawn at the very bottom of the graph, just above
  pinhole's backdrop and beneath the wave boxes, the edges, the cards and
  their labels. It no longer tints any of them.
- Its words are in their own group at the top, so they stay readable, and
  they fade with the shape when it is replaced.
- On a chant kiosk the wave boxes' fill is translucent (0.3), so the reach
  shows through them faintly. Their borders stay, as does its edge line
  between the boxes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… demo.json, never back (behold#631)

The driver writes the failed step only once the apply job ends, and the
applied step after the fix's apply ends: seconds after the paced graph has
shown them. When the play reaches a component failure, or finishes the fix's
apply cleanly, while demo.json still names the apply's chapter, the headline
and the track's chapter highlight move to the last cycle's next chapter
("2 of 4 · cluster-a breaks…", then chapter 4). The track's segment moves
too, timed from that moment.

demo.json then catches up. Within a cycle the story never goes back to a
chapter it has left.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hold#631)

"chant's pull-request pipeline · fan-out · live demo". Its tooltip: "The
pipeline is chant's (chant components pr-plan / pr-apply on Forgejo). The
demo stack and its driver are terragucci's." It replaces "chant fan-out, run
by terragucci", which named the wrong runner.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… boxes lose their corner marks (behold#631)

- The upper-left line is the kiosk's identity, at half again its size:
  "[chant] chant's pull-request pipeline · [Forgejo] on Forgejo · fan-out ·
  live demo". The forge is the one chant's loop runs on (/api/chant/pr's
  loop.forge) and is left out when not yet read.
- Logos only beside the products the line names, from the marks behold
  ships: chant's from tool-mark.js, in its theme's gold, and the forge's
  from forge-mark.js. Both are square, drawn at the words' height.
- On a phone the logos stay and the words shorten ("chant pipeline ·
  Forgejo · fan-out · live").
- The "Forgejo · chant" corner marks are off the chant kiosk's wave boxes.
  Inspect keeps them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…iting modal and now line follow the play (behold#631)

- The title line's chant mark carries its gold inline, in the variant for
  the kiosk's theme (dark gold on a dark kiosk), so no stylesheet fill
  greys it. It is drawn larger (1.7em), since its pixels are sparse in
  their square, to sit at Forgejo's weight.
- While a chant apply runs, the kiosk reads /api/chant/pr every 1.5 s, as
  the graph's frame does, not every 4 s. Its paced play, track and modal
  now follow the graph.
- The "Waiting on the pipeline to start the apply" modal goes once the play
  shows any wave or card of this run under way. The now line then says
  "Wave 1 is applying".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@lex00
lex00 merged commit 6d09090 into main Oct 18, 2026
3 checks passed
lex00 added a commit that referenced this pull request Oct 18, 2026
…ter-carrying scenarios (behold#741) (#742)

* terragucci repos: blocked roots, and the chant kiosk's story for chapter-carrying scenarios (behold#741)

Blocked roots (terragucci#1161, report minor 41): behold reads waves[].blocked
from the newest apply's wave reports and a run view wave state of blocked. A
blocked root reads "blocked by X" in the blocked tone, and a wave's header
"N applied, N blocked by X", or "blocked by X" when none of its roots ran.
Reports without the field read as before.

The #740 kiosk features (projected track, chapter headlines, reach wedge,
waiting modal, paced waves, wave blocks, applied earlier, one tip at a time,
modal placement, title line) turn on for a terragucci repo when demo.json's
step carries `chapter`, fed from terragucci's reports and run view. Without a
chapter (b-waves, failure, tg-planned-outputs) every path is today's.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* terragucci story: blocked roots and each root's own outcome only under the story gate (behold#741)

blockedOf now runs only for a kiosk telling a chapter-carrying scenario, so
b-waves, failure and tg-planned-outputs read exactly as on main even on
terragucci#1164's reports: the shared tone tables, the change panel's wave
rows and the run view's watching rule are back to main's.

Each root's own apply outcome in its wave (applied, unchanged or failed with
its error), asked of terragucci#1164, is read in both shapes until its field
is named: waves[].roots[].outcome and waves[].outcomes[]. Under the story a
root that applied beside a failed one reads applied, the failed root says its
error as chant's cards do, and the wave's header reads "1 failed, 1 applied".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <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