Repository navigation
terragucci repos: blocked roots, and the chant kiosk's story for chapter-carrying scenarios (behold#741) - #742
Merged
Merged
Conversation
…ter-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>
…r 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>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #741.
Two parts. A terragucci repo now reads the blocked roots that terragucci#1164 writes. And the kiosk features #740 built for chant's loop turn on for a terragucci repo when demo.json's step carries
chapter.Blocked roots (terragucci#1164, report minor 41)
src/terragucci-reports.tsreadswaves[].blocked: [{ root, blocked_by }], the snake_case shape ask demo: serve it as a Cloudflare Worker, and a docs page for it #1164 writes.waveBlockedreads one wave's rows and skips malformed ones.readTerraguccifolds the newest tf-apply commit's waves, each wave by its newest report, intoblocked: { commit, roots: { <root>: { wave, by } } }./api/terraguccipasses that on. It is absent when no wave blocked anything, so it is always absent for reports before minor 41.ReportWaveStateand the run view's wave state gainblocked.unsettledkeeps watching a run view past a failure only when one of its waves isblocked, because a run that blocks roots goes on after the failure. A run view without a blocked wave behaves as before.web/terragucci-change.jsaddsblockedOf(answer, progress).blockedwhen it belongs to the run view's commit. It also takes every root of a wave whose run-view state isblocked, with no blocker named until that wave's report has been read.changedleaves it out.rootStatesgives a blocked root "wave N · blocked by X" with tonewait, the tone chant's blocked cards use.waveRowsand the wave boxes inweb/terragucci-components-live.jsshow the header "3 applied, 6 blocked by cluster-a", or "6 blocked by network" for a wave none of whose roots ran. The job's own status would say "failed" because the job exits 1, so the header replaces it.The story gate
storyGateinweb/kiosk.jsreturns"chant"for a chant repo's loop. It returns"terragucci"for a terragucci repo (/api/project'sterragucciComponents) whose current demo.json step haschapter.n. Otherwise it returns null.s.chantLoopis now gated onstoryOn(s), which is the chant loop or the terragucci gate:s.chantLoop:/api/chant/pr, the approval card, the result card,railStepand the side room.{ type: "behold:story", on, cycle }.tgStoryOn()inweb/app.js).storybesidechant.storyturns on the kiosk's look: one tip at a time, a tip removed at once when it goes, tips hidden behind a modal, the trail fade, and modals kept off the cards they are about and above the bottom band.chantstill sets chant's story order. A terragucci gate comes after the merge, so its order stays terragucci's.How each chant feature is fed for terragucci
cycles/<demo.tool>/latest.json, read through the same route; the ticks are the paced run view's waves (trackWaves)chapter; it moves to the next chapter once the paced run view shows a failed wave, or every wave applied with the run settled; it never moves backtgReachOf: on a pull request, the plan report's roots and its reads anddependencies(newpull_request.upstreams); the apex is the changed root (the blast roots that need no other blast root); after a failure, the failed roots over the roots they blocked; edges from the run view's readswaitingSpec; the apply counts as under way once any wave of the paced run view has movedweb/terragucci-live-pace.js, with chant'sPACEdwell (3 s applying, 1.5 s done, faster to catch up oncewatchingis false); used in the frame for the cards and in the kiosk for the ticks, the tips and the held caption step/api/graph?components=1&blocks=1, which renders the terragucci components graph withchildBlocks; the frame asks only while the story is onbasepin or a new cycle clears itpull_request.countsfrom each report root'scounts, on the cards' facts as "plans 1 update"pipelineForge(newterragucciRoots.forgeon/api/project)b-waves, failure and tg-planned-outputs take today's path
chapter, sostoryGatereturns null.storyOn(s)iss.chantLoop, ands.chantLoopis always false on a terragucci repo. Every replaced gate therefore evaluates exactly as it did on main.on: false.tgStoryOn()is false,tgStoryMarks()returns null, anddrawTgComponentMarksgets the same arguments as on main. There is no glyph hiding, nochantKioskWavesand no reach, andload()sends noblocks.story: false.st.storyis false, sotipsMaxstays undefined and no modal placement changes.componentMarks, the newstorywork runs only whenstoryis passed. The blocked header and blocked cards run only when the data hasblocked.web/kiosk-story-gate.test.jschecks that the gate is null for all three scenario names and for a chapter withoutn.Decided
rootStates(…, { story })andcomponentMarks(…, { story })readblockedandoutcomesonly with the story on.unsettledrule are back to main's. So b-waves, failure and tg-planned-outputs read exactly as on main, even on ask demo: serve it as a Cloudflare Worker, and a docs page for it #1164's reports.waveOutcomesreads both shapes:waves[].roots[].outcomeandwaves[].outcomes: [{ root, outcome, error }]. The unused one gets dropped once ask demo: serve it as a Cloudflare Worker, and a docs page for it #1164 names its field.chantKioskWavesruns for the story too. Box titles read "wave N", edges get arrowheads, and the "the waves apply from the bottom up" note appears, so the bigger card and wave words fit as on chant's kiosk.Checks
npm run buildbuilds.npx tsc --noEmitshows no errors in the files this changes. The errors it does print are already on main with the sharednode_modules:src/run-events.ts,src/run-events.test.ts,src/component-status.test.tsandsrc/why-trace-fixture.tsresolve against the installed@intentius/chant.src/terragucci-blocked.test.ts: the fold from wave reports, with and without the field, and another commit's rows ignored.web/terragucci-blocked.test.js: card and wave states and headers with and without the field, both reaches, applied earlier, and the pacer.web/kiosk-story-gate.test.js: the gate and the title line.🤖 Generated with Claude Code