Repository navigation
Closed
Labels
epic:engine-shipNext epic: ship the multi-engine tier and finish composed runs (#4419)
Description
Follow-up from the multi-engine engine tier (INTENTIUS/chant#4450, INTENTIUS/choudoufu#2243, #993, INTENTIUS/plunge#2), now on main.
Waits on INTENTIUS/chant#4473 (the release of @intentius/chant-lexicon-pulumi and core's drift-record, member-outputs, chant workspace drift, adoption report). The newest published chant is 0.124.52; consumers were tested against local npm pack builds (version 0.124.34).
Local-build stand-ins to undo once chant ships the multi-engine work:
- example-three-cloud/chant.workspace.json pins its lexicons by path (
node_modules/@intentius/chant-lexicon-terraformand-pulumi) so a local build matches; return to version pins. example-three-cloud/package.json lists no pulumi lexicon today and the aws, gcp and terraform ones at ^0.124.52. The path pins are described in example-three-cloud/README.md (the "local chant build" section, :83), docs/src/content/docs/using/three-cloud.mdx:56 and AGENTS.md:1845. - e2e/fixtures/pulumi-workspace/chant.workspace.json pins @intentius/chant-lexicon-pulumi at 0.124.34 (the local build's version); pin the released one and re-record src/fixtures/pulumi-workspace-graph-app.json (which says
"chant": "0.124.34"). - src/drift-line.ts copies chant's drift line types (following chant fdce0d963) because the pinned chant does not ship
@intentius/chant/drift-record; switch to the import. chant main has packages/core/src/drift-record.ts and core's./*export, so the subpath resolves once released. Importers today: src/drift-overlay.ts, src/drift-stream.ts, src/workspace-reader.ts and their tests. - Bump the chant floors to the real release number:
ADOPTION_REPORT_CHANT_FLOOR(src/chant-floors.ts:118) andDRIFT_RECORD_CHANT_FLOOR(:123), both guessed at 0.124.53. - B5 (multi-engine B5: streamed drift #998) registered no floor for the streamed read (
chant workspace drift ... --stream); on a chant without it the first read fails with chant's own words after one spawn. AddDRIFT_STREAM_CHANT_FLOORand itsCHANT_FLOORSentry (listed in chant#4473).
Acceptance
- example-three-cloud/chant.workspace.json pins both lexicons by package and the released version, example-three-cloud/package.json depends on that release of chant-lexicon-terraform and chant-lexicon-pulumi, and the three-cloud declaration test in src/example-workspaces.test.ts asserts the version pins.
- example-three-cloud/README.md, docs/src/content/docs/using/three-cloud.mdx, AGENTS.md and e2e/multi-engine-demo-e2e.sh no longer tell the reader to link a local chant build for the demo or name 0.124.34 as its version.
- e2e/fixtures/pulumi-workspace pins the released pulumi lexicon, and src/fixtures/pulumi-workspace-graph-app.json is re-recorded from it (its
chantfields name the release); src/pulumi-member.test.ts passes against it. - src/drift-line.ts is a re-export of
@intentius/chant/drift-record(or is gone and its importers import chant directly), behold's package.json depends on the release, and src/drift-stream.test.ts and src/drift-tone.test.ts pass unchanged against chant's module. -
ADOPTION_REPORT_CHANT_FLOORandDRIFT_RECORD_CHANT_FLOORequal the release number, andbehold doctorlists them with it. -
DRIFT_STREAM_CHANT_FLOORexists with aCHANT_FLOORSentry;POST /api/workspace/drift/streamon a chant below it answers with the floor refusal and spawns nothing, asserted by a test written red first. -
just e2e-multi-engineandjust e2e-streamed-driftprint all green against the released chant installed from npm, with no BEHOLD_E2E_CHANT_LINK (maintainer run).
Open questions
None.
Metadata
Metadata
Assignees
Labels
epic:engine-shipNext epic: ship the multi-engine tier and finish composed runs (#4419)
Activity
lex00 commentedon Oct 26, 2026
Waits on INTENTIUS/chant#4473 (the release).
One switch for the coming chant release: floors, pins, drift module (#…
lex00 commentedon Oct 26, 2026
Landed on
integration/engine-shipas merge b65e795 (unit commit onunit/es-behold-1005). Built and type-checked against a local chant build of chantintegration/engine-shipat 184c2ed90 (core, k8s-client, terraform, sql, pulumi packed with versions stamped 0.124.53,npm install --no-save).tsc --noEmitis clean andnpm run buildbundles, in both modes of the switch (the released mode was tried locally and reverted). Per the epic rules no test was run.The flip (one line, after the chant release is published)
In
src/chant-release.ts:(Put the release's number in
versionif it is not 0.124.53.) Then runnpx tsx scripts/chant-release.ts(orjust chant-release) andnpm install, both here and inexample-three-cloud, so the lockfiles follow.just chant-release --checklists any file that disagrees with the switch, andsrc/chant-release.test.tsholds them to it.versionis chant'sNEXT_RELEASE(chant#4480,packages/core/src/release-floors.ts, set withnpx tsx scripts/release-floors.ts --set <v>). If chant moves its number, move this one to match.What landed
src/chant-release.ts:CHANT_RELEASE = { version, released }, plusPUBLISHED_CHANT(0.124.52), the range a dependency keeps while unreleased.ADOPTION_REPORT_CHANT_FLOOR,DRIFT_RECORD_CHANT_FLOORand the newDRIFT_STREAM_CHANT_FLOORareCHANT_RELEASE.version.DRIFT_STREAM_CHANT_FLOORhas aCHANT_FLOORSentry, "streamed drift", sobehold doctorlists it.POST /api/workspace/drift/streammoved from server.ts todriftStreamRoutesinsrc/drift-stream.ts. Below the floor it answers 409 with the floor refusal and spawns nothing. WhenBEHOLD_DRIFT_CHANTnames the chant to run, the floor is not checked against the root's chant (the e2e fake keeps working). New tests insrc/drift-stream.test.ts, written and not run.src/drift-line.tsdecodes with chant's owndecodeDriftLinewhen@intentius/chant/drift-recordis present, then narrows chant's line to the fields a card reads. Kept from behold#995: a record whose status chant does not list goes through behold's own checks, and a settle count of such a status is dropped before chant sees it. With no chant module, behold's copy is the decoder.DRIFT_DECODERsays which one ran. The module is loaded insrc/chant-drift-record.ts, which the script writes. While unreleased it is a run-time import under a variable specifier, which works under tsx and vitest with the local build. The bundleddist/cli.jsunder plain node can't load chant's TS source from node_modules, so it falls back to the copy. Once released it becomes a static import that the bundle carries.scripts/chant-release.tsandsrc/chant-release-sync.tswrite the files the switch decides:example-terraform-estate,example-choudoufu-estateande2e/fixtures/pulumi-workspace. These areversionin both modes, so they now read 0.124.53, up from 0.124.52 and 0.124.34. Chant enforces exact pins, so the pins and the floors move together, and a local build stamped atversionmeets all of them.example-three-cloud/chant.workspace.json: pinned by path while unreleased, by package and version after.example-three-cloud/package.json: ranges stay at^0.124.52while unreleased. After the flip they name the release and@intentius/chant-lexicon-pulumiis added.@intentius/chant,chant-k8s-client,chant-lexicon-terraformandchant-lexicon-sqlranges, which follow the same rule.example-three-cloud/scripts/front-door.tsnow loads@intentius/chant-lexicon-pulumi/runonly for the aws plan, with an error that names the local build if it is missing. A plainnpm cinow runsapply-azureand the other subcommands. The dependency itself is declared by the switch at the flip, because declaring it now would makenpm cifail (the package is not on npm).^0.124.52.src/example-workspaces.test.tsasserts three-cloud's pins and dependencies for whichever mode the switch is in.src/drift-overlay.test.tsusesDRIFT_RECORD_CHANT_FLOORinstead of a literal. AGENTS.md has a new "The coming chant release" section, and the three-cloud docs page was updated.Still missing (all after the release)
npm installs it needs.src/__fixtures__/pulumi-workspace-graph-app.jsonfrom the released pulumi lexicon. It still says"chant": "0.124.34". It is a recorded artifact, so I did not hand-edit it.e2e/multi-engine-demo-e2e.sh/e2e/three-cloud-change-set-e2e.shstill describe the local build (BEHOLD_E2E_CHANT_LINK). They come out with the flip.just e2e-multi-engineandjust e2e-streamed-driftagainst the npm release (maintainer run).Decision taken with no ruling: while unreleased, the exact pins in
example-terraform-estateandexample-choudoufu-estatename 0.124.53, so those two examples need the local build until the release (npm installalone gets 0.124.52 and fails the pin). This is the "pins and floors move together" choice from the brief. The other option was stamping local builds at 0.124.52 and setting the floors to 0.124.52, which would make the floors meaningless.lex00 commentedon Oct 26, 2026
Ticked DRIFT_STREAM_CHANT_FLOOR: registered in CHANT_FLOORS, and the stream route answers a chant below it with the floor refusal and spawns nothing (src/drift-stream.ts, merge b65e795), with its test passing in the epic-ready run. Epic-ready (2026-10-26): behold main 5676314 is the merge of integration/engine-ship, tree identical to the tested tip aa885d8. On that tip, with chant's integration build (9ae806b69, npm pack stamped 0.124.53, installed --no-save): tsc, build, and vitest with 4723 passed, 0 failed; e2e adopt-terraform, adopt-pulumi, pulumi-workspace, multi-engine-demo and three-cloud-change-set all green. Ready for the maintainer after the chant release: in src/chant-release.ts set
released: true(andversionif the release is not 0.124.53), runnpx tsx scripts/chant-release.ts(orjust chant-release) andnpm installin behold and in example-three-cloud, re-record src/fixtures/pulumi-workspace-graph-app.json from the released lexicon, drop the local-build wording (README, three-cloud.mdx, AGENTS.md, the two three-cloud e2e scripts' BEHOLD_E2E_CHANT_LINK), then runjust e2e-multi-engineandjust e2e-streamed-driftagainst the npm release.just chant-release --checklists any file out of step.lex00 commentedon Oct 26, 2026
Ruling for epic:engine-ship round 2 (2026-10-26):
The exact terraform lexicon pins this issue set to
CHANT_RELEASE.version(0.124.53) whilereleased: falseturned main CI red: src/example-workspaces.test.ts:112-117 fails withexpected '0.124.53' to be '0.124.52'(run 40279561374). Filed as #1015.Ruled: while
released: false, the example pins follow the published chant (0.124.52) and the test accepts that. Demos that need the local build say so. Flipping the switch moves the pins and the floors together.Round 1 was tested only against local tarballs, and the local chant build was stamped 0.124.53, so the epic-ready run could not catch this. Round 2's epic-ready adds a fresh
npm cirun against published chant.lex00 commentedon Oct 26, 2026
Refreshed for epic:engine-ship round 2 (2026-10-26). behold main is a08dadc, whose tree equals the tested tip 9f8d257. Main CI on a08dadc (run 40407758155): success. Still waiting on the chant release (chant#4473). chant main is 9b8fa99ea and npm still has 0.124.52.
What moved this round:
released: false, the three exact lexicon pins (example-terraform-estate, example-choudoufu-estate, e2e/fixtures/pulumi-workspace) followchantVersion, which is 0.124.52. The floors stay atCHANT_RELEASE.version(0.124.53). The flip moves pins and floors together.LEDGER_ROOT_MEMBER_CHANT_FLOOR(src/chant-floors.ts:142), besideADOPTION_REPORT_CHANT_FLOOR,DRIFT_RECORD_CHANT_FLOORandDRIFT_STREAM_CHANT_FLOOR.Steps after the release is on npm (read from src/chant-release.ts, scripts/chant-release.ts and the justfile):
Then:
"chant": "0.124.34". It is a recording, so don't hand-edit it.npm ci && npm run tsc && npm run build && npx vitest run.just e2e-multi-engineandjust e2e-streamed-drift. Pass is "multi-engine demo e2e: all green", "three-cloud change-set e2e: all green" and "streamed drift e2e: all green". Askip:line exits 0 and is not a pass. Both scripts use stand-ins for plunge, so the plunge#27 endpoint setting does not apply to them.lex00 commentedon Oct 27, 2026
Deletion to make when this switch flips (
released: truein src/chant-release.ts), from behold#1030 (integration/consolidation-graph 718e88b):src/value-match.tsandsrc/value-match.test.ts.src/chant-edges.ts: replace the lazy import of@intentius/chant/graph-refs(chantEdgePasses) with a static import ofreconstructIndexedEdgesandreconstructIdentityEdges, and remove thevalue-matchsource together with theaddValueMatchEdgesimport. A graph whose lexicon has noreferenceCatalogthen gets chant's edges only (none for that lexicon), andchantEdgePassesreturning undefined stops being a case. Updatesrc/chant-edges.test.tsto match: drop the fallback describe block, and drop theskipIfon the real-passes block.src/estate-edges.test.tsserved(): drop theaddValueMatchEdgescall (or switch it toawait deriveGraphEdges).src/attr-leaves.tsstays (src/ops-lens.ts'sjoinStepEntitiesreads it); remove its "moved out of value-match" header line.Before flipping, check which graphs still take the fallback. azure, gcp, k8s and terraform have no
referenceCatalogin chant, so azure graphs, mixed aws+k8s estates and choudoufu members lose their name-matched edges at step 2 unless chant ships catalogs for them first. That decision is the maintainer's; it is recorded on behold#1030.lex00 commentedon Oct 27, 2026
Deletion to make when src/chant-release.ts flips to
released: true(from chant#4533 / behold#1028, merged on behold integration as d21d4a2):src/graph-db/index-diff.ts, the bundled copy of chant's index diff;src/graph-db/index-diff-routes.ts, importdiffIndexVersions(and the error codes) from@intentius/chant/lifecycle/index-diffstatically, deletechantIndexDiff,coverageLookupand thebehold-fallbackpath, and type the documents as chant'sIndexDocument;src/graph-db/index-diff.test.ts, drop the fallback-rule and copy-vs-chant tests, and the "imports nothing from the rest of behold" test that guarded the move.The code says this in
TODO(behold#1005)in both files.lex00 commentedon Oct 27, 2026
Prerequisite for the value-match deletion above (steps 1 to 5 from behold#1030): INTENTIUS/chant#4535 has to be in the chant release this switch flips to. Otherwise azure, gcp, k8s and terraform graphs, mixed estates and choudoufu members lose the edges the matcher drew for them.
Where it stands: chant#4535 is merged on chant's integration/consolidation-graph as 1e4fada45 (not released). It puts a
referenceCatalogon the azure, gcp and k8s plugins and the existingTERRAFORM_REFERENCE_CATALOGon terraform's plugin, and adds the one aws rule parity needed. On example-three-cloud's declared graph the matcher draws 3 edges, all at detail 3, and chant's catalog pass reproduces all 3. The list is on INTENTIUS/chant#4535 (comment).Add to the checks before flipping ("check which graphs still take the fallback"):
referenceCatalog, so with today's gate an estate with a pulumi member (example-three-cloud's aws) takes thevalue-matchsource. Step 2's end state, where a lexicon with no catalog gets chant's edges only, is what moves three-cloud off the matcher. On that graph the matcher adds nothing to the pulumi or azure members, so nothing is lost.lexicon: "choudoufu"(src/choudoufu-member.ts:46), and no chant lexicon of that name exists, sochantLexicon("choudoufu")finds no catalog. To give them terraform's rules, map them to theterraformlexicon inderiveGraphEdgesWithSource/addChantEdges. Theirkindis already the provider type the rules key on. The roster carries no block arguments, so no rule fires today either way.lex00 commentedon Oct 27, 2026
Ready for the maintainer (consolidation-graph, 2026-10-27)
behold main is 8b74db5, whose tree equals the epic-ready tested tip fd1dd6a. chant main is 47b8594e3. This issue is release-blocked: it waits on chant#4473's cut, and nothing in it can move until then.
What changed this session: the deletion checklist grew. behold#1030 (value-match fallback), behold#1027 (the template stub), chant#4533 (the bundled index-diff copy) and behold#1031 and #1027 (the type copies in src/graph-db) all leave TODO(behold#1005) markers on main, and the run sheet lists each file. chant#4535's catalogs are on chant main, so azure, gcp, k8s and terraform graphs can move off the matcher at the flip. pulumi still has no
referenceCatalog, so before flipping either chant adds one or you accept that a pulumi member gets chant's edges only.What epic-ready proved: behold tsc, build and vitest are green at fd1dd6a against published chant 0.124.52 (4906 passed) and against the local chant build stamped 0.124.53 (4914 passed). The
DRIFT_STREAM_CHANT_FLOORbox was already ticked.Left (unchanged, all after the release):
@intentius/chant/drift-record;ADOPTION_REPORT_CHANT_FLOORandDRIFT_RECORD_CHANT_FLOORat the release number;Commands: the run sheet's Release step, R2 ("behold#1005" and its deletion checklist) in engine-wt/goals/consolidation-graph-1-runs.md. Ask before any cut.
Merge unit/cg-behold-1005: follow chant 0.124.54, pins and floors mov…
lex00 commentedon Oct 27, 2026
Flipped to chant 0.124.54 (consolidation-graph, 2026-10-27)
Merged on
integration/consolidation-graphas f4af6b5 (unit commit 3982aac onunit/cg-behold-1005). 0.124.53 was cut and never published, so the switch names 0.124.54.Checked against the published 0.124.54 after a fresh
npm ci(chant, chant-k8s-client and the terraform, pulumi and sql lexicons all 0.124.54):npx tsc --noEmitclean,npm run buildbundles (dist/cli.js 2.9 MB), andenv -u CHOUDOUFU_BIN PULUMI_BACKEND_URL=file://$(mktemp -d) PULUMI_SKIP_UPDATE_CHECK=true npx vitest rungives 337 files passed, 9 skipped; 4912 tests passed, 26 skipped, 0 failed. The skips are the CHANT-checkout and LadybugDB-peer gates, none of them about this release.npx tsx scripts/chant-release.ts --checksays every file follows the switch.Pins and floors
src/chant-release.ts:{ version: "0.124.54", released: true },PUBLISHED_CHANT0.124.54. The four floors (ADOPTION_REPORT_CHANT_FLOOR,DRIFT_RECORD_CHANT_FLOOR,DRIFT_STREAM_CHANT_FLOOR,LEDGER_ROOT_MEMBER_CHANT_FLOOR) are 0.124.54.npm installrun here and in example-three-cloud; both lockfiles moved.@intentius/chant-lexicon-pulumias a devDependency (kept in step by the switch), so the pulumi-member e2e tests run after a plainnpm ciinstead of skipping.src/__fixtures__/pulumi-workspace-graph-app.jsonre-recorded withchant workspace graph . --member app --jsonin e2e/fixtures/pulumi-workspace, unedited, by chant 0.124.54 with the published pulumi lexicon. It now says"chant": "0.124.54", carries PUL010 (the export names a dependency URN it does not hold) andgrain: "instance"on its edges. src/pulumi-member.test.ts passes against it.Local copies swapped for chant's exports
Each export was checked against the installed 0.124.54. Plain
node -ecannot import any chant subpath, because chant ships TypeScript source under node_modules (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING). So the probe ran throughnpx tsx, the same loader vitest andbehold servefrom a checkout use. In dist/cli.js these modules are bundled.STUB_TEMPLATESand thebehold-stubsource are gone.src/graph-db/chant-templates.tsre-exports chant'sTemplateEntryfamily and readsinvestigationTemplates()/parseTemplates()from@intentius/chant/capabilities/templates. The copied fixture__fixtures__/chant-templates.jsonis gone.src/graph-db/index-diff.tsis deleted.index-diff-routes.tsimportsdiffIndexVersions,readIndexVersionRef,diffIndexVersionRefs,IndexScopeMismatchand the diff types from@intentius/chant/lifecycle/index-diff, andresolveSnapshotStorefromlifecycle/snapshot-store.chantIndexDiff,coverageLookupand the fallback are gone. The answer no longer carriesdiffModule/coverageRule(web/index-diff.js now says which chant store a version was read through). The fallback-rule, copy-vs-chant and "imports nothing from behold" tests are dropped, and the real-readers test runs unconditionally.EngineFacts,EngineMarkers,EngineCloudId,EngineRecordVersions,EdgeGrain,EngineGraphScope,EngineGraphMetaandEngineGraphDocumentfrom@intentius/chant/engine-facts, andIndexDocument,IndexScopeandIndexStampfromlifecycle/index-document.FactNodeis chant'sIRNode. Kept:FactEdgeadds behold#1025'sambiguousmark, which chant'sIREdgedoes not have, and the three shape guards are behold's own.cloud-lister/types(ListingResultand the rest). The only difference wassource.name, which chant types as"chant-lister".@intentius/chant/cloud-lister/mask(SENSITIVE_KEY_PATTERNS,isSensitiveKey,maskValue,MASKED).cloudScopeKeyis chant'sindexScopeKey({ kind: "cloud", ...scope }), replacing the copied digest.chant-schema/graph.schema.jsonstays, because it is behold#1031's build-time input, not a type copy.decodeDriftLine,DRIFT_ENGINES,DRIFT_READS,DRIFT_STATUSESandDRIFT_VERSION(andUNOBSERVED_REASONSfrom@intentius/chant/observation) and re-exports them. The no-chant decoder path,DRIFT_DECODER,DRIFT_RECORD_SOURCE, src/chant-drift-record.ts and its part of scripts/chant-release.ts are gone. Kept: behold#995's rule that a status chant does not list is kept and painted unknown (chant refuses such a record), plus the narrowed line types a card reads. src/drift-stream.test.ts and src/drift-tone.test.ts pass unchanged.runCloudIndeximport pulls chant's CLI plugin loader, and through it the TypeScript compiler, into dist/cli.js, which grew from 3 MB to 13 MB when I tried it. It still resolves under tsx and vitest. Only the comment and the refusal text changed.Docs
The local-build wording is gone from example-three-cloud/README.md (the section is now "Which chant"), docs/.../three-cloud.mdx, docs/.../terraform.mdx, both estate READMEs, AGENTS.md (the release section, the drift-stream paragraph and the three-cloud paragraph), e2e/README.md, the justfile and the pulumi-workspace e2e.
BEHOLD_E2E_CHANT_LINKis gone from e2e/multi-engine-demo-e2e.sh and e2e/three-cloud-change-set-e2e.sh. A copy whose install lacks member-outputs or the pulumi lexicon now fails instead of skipping.Still pending
referenceCatalogyet, and choudoufu roster nodes still need mapping to the terraform lexicon. src/value-match.ts, the lazygraph-refslookup in src/chant-edges.ts and their tests are unchanged. Only their comments now say what the deletion waits on.bash e2e/lib/safe-env.sh just e2e-multi-engineandbash e2e/lib/safe-env.sh just e2e-streamed-driftagainst the npm release, with noBEHOLD_E2E_CHANT_LINK(the variable no longer exists). Not run here.Ticked: the three-cloud pins, the docs, the pulumi-workspace fixture, and the two floors.
Merge integration/consolidation-graph: chant 0.124.54 released, chant…
refactor(drift): drop src/drift-line.ts; chant's drift-record is impo…
refactor(edges): import chant's edge passes statically and drop the n…
lex00 commentedon Nov 17, 2026
Everything here is merged except one maintainer step, listed on #1024. The step is to run
just e2e-multi-engineandjust e2e-streamed-driftin the behold checkout against chant from npm. #1137 imported chant's edge passes statically and removedsrc/drift-line.ts, so its importers read@intentius/chant/drift-record.lex00 commentedon Nov 18, 2026
Both recipes run by the maintainer on 2026-11-17, against chant 0.124.105 from npm and choudoufu built from main. The behold checkout was 0081cb6, the #1150 branch, which adds the tsx dependency #1149 found missing.
just e2e-streamed-drift:streamed drift e2e: all greenjust e2e-multi-engine: the demo drew one composed graph of 45 cards from dns and gcp (chant), azure (choudoufu) and aws (pulumi). Each member's card turned from good to warn after its out-of-band edit, and aws's drift came throughplunge drift --resource <urn> --stream. The change set planned, then the change-set script printedthree-cloud change-set e2e: all green.The first run of
e2e-multi-enginestopped at the demo's step 3 because the example's fresh install had no tsx. That is #1149.