Repository navigation
Open
Labels
epic:engine-shipNext epic: ship the multi-engine tier and finish composed runs (#4419)
Description
Follow-up from the multi-engine engine tier (#4450, INTENTIUS/choudoufu#2243, INTENTIUS/behold#993, INTENTIUS/plunge#2), now on main.
Every fixture for these adapters was written by hand from documented shapes; none was recorded from a run:
- C3 (multi-engine C3: the pulumi lexicon #4453):
pulumi preview --json(where unknowns, secrets and the stack's planned outputs sit) andpulumi refresh --preview-only --json(whether it prints update/delete or refresh ops; both are read today). Fixtures inlexicons/pulumi/src/testdata/pulumi-preview,pulumi-refreshandpulumi-urn-node. - C5 Pulumi half (multi-engine C5: engine outputs into chant parameters #4455):
pulumi stack output --json --show-secrets=falseprinting a secret as[secret]; plunge accepting the same flags. Fixtures intestdata/pulumi-outputsandplunge-outputs. - C6 (multi-engine C6: Pulumi URN to graph node #4456): lexicons/pulumi testdata preview.json.
- C1 (multi-engine C1: the drift record #4451): packages/core/src/fixtures/drift-record/*.
- Path 2 added one more hand-written set:
lexicons/pulumi/src/testdata/plunge-drift/*.ndjson, written to the layout plunge P-L5 prints forplunge drift --resource <urn> --stream(drift-record.test.ts:131).
Record each from a real run against the corpus in INTENTIUS/plunge (tests/plunge-corpus, emulators only) and replace the fixtures.
Acceptance
- (maintainer run)
pulumi preview --jsonandpulumi refresh --preview-only --jsonrecorded against the plunge corpus replace thepulumi-preview,pulumi-refresh,pulumi-urn-nodeand C6 preview fixtures; the tests inchange-set.test.ts,drift-record.test.tsandpulumi-urn-node.test.tspass on them, and any shape they got wrong (unknowns, secrets, where stack outputs sit, refresh op names) is fixed in the adapter. - (maintainer run)
pulumi stack output --json --show-secrets=falseand the same underplungeare recorded intopulumi-outputsandplunge-outputs;member-outputs.test.tspasses on them, and how a secret prints is stated in the fixture notes. - (maintainer run)
plunge drift --resource <urn> --streamoutput is recorded intoplunge-drift. - (maintainer run)
packages/core/src/__fixtures__/drift-record/*are re-recorded from the engines they stand for, and__fixtures__/drift-record/README.mdsays so. - Each replaced fixture directory names the tool, its version, the corpus commit and the date it was recorded, and the "hand-written ... not recorded from a real run" comments in
change-set.ts:71,change-set.test.ts:6,drift-record.test.ts:5and:131anddrift-read.test.ts:7are updated.
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
Recorded at epic-ready and merged into integration/engine-ship as 9ae806b (unit commit 63f25cd, branch unit/es-chant-4475).
Tools and inputs: stock pulumi v3.272.0 (darwin-arm64 release) and plunge v0.1.0-dev.0 (pulumi-compatible v3.272.0) built from INTENTIUS/plunge 30806be26b, running the plunge corpus's
tests/plunge-corpus/aws-tsat that commit (pulumi-aws 7.51.1), stackfloci, file backends only, on the pinned floci image (ghcr.io/lex00/floci@sha256:5ec92ae8...61ec). choudoufu v0.31.1-local.c4f468a235 (a build of choudoufu integration/engine-ship) for the live-plan stream. Out-of-band edits went through floci's own API. Date 2026-10-26. Each fixture directory has a README naming all of this.Replaced with recordings:
pulumi-preview(pluspreview-create.json),pulumi-urn-node,pulumi-refresh(per-target plus untargetedall.json),pulumi-outputs,plunge-outputs(now with plunge's ownstack-output.json),plunge-drift(pluscomponent-unsupported.ndjson), core'schoudoufu-resource.ndjson(pluschoudoufu-cone.ndjson).plunge-member's export is now a cut of the recorded plunge export. Tests that read them were rewritten to the recorded content and pass: lexicons/pulumi (14 files, 106 tests) and packages/core drift-record.test.ts.Shapes the hand-written fixtures got wrong, and the adapter changes:
pulumi preview --jsonlists no unchanged resource unless--show-samesis passed (only the stack's step). The export-held signal therefore marked every unchanged resource may-appear.pulumiPreviewArgsnow passes--show-sames.replacestep at preview, not three. The adapter already handled it.outputs.pulumiPlannedStackOutputsreadsnewState.outputsonly (asamestep's oldState is the last deployment's, which a replaced VPC moves) and is undefined when absent;member-outputsthen gives the export's outputs when the part plans nothing, and every output unknown when it plans a change."[secret]"string; the export holds the signature object. Both were already read.refresh --preview-onlyprintsrefresh(both states) for an unchanged resource,updatewithdetailedDifffor a drifted one,deletewith no new state for one gone; a targeted refresh prints only the target, no stack or provider steps.PULUMI_SKIP_CONFIRMATIONS=truemakes the CLI refuse--preview-only("--yes and --preview-only cannot be used together"). The pulumi and plunge runners now unset it (engineEnvin run.ts).version) produced an attribute with no values; it now reads the outputs (before 3, after unknown).tags["corpus-owner"]), in both pulumi's and plunge's output.not-observed/unsupported-kind, and a URN its stack lacks with exit 1 and no stream;settled-empty.ndjsonis therefore derived (README says so). plunge's drift-start line carries noat.resourceType, paths with no values, noaton start or settle, and atagIndexCallsread.Left open (follow-ups):
packages/core/src/__fixtures__/drift-record/{live-diff,deep-diff,component-status}.jsonstay hand-written: recording them needs a chant AWS project deployed through CloudFormation on floci and read withchant lifecycle diff --live --json, its deep diff andchant components status --live --json. The README says so.apply()directly under the stack, held by the export, whose input is unknown (the corpus'svpc-id) is printed by the preview as adeleteand reads as a plain delete; nothing in the preview tells it from a removed resource. Documented in the adapter header and reference/change-set.mdx.lex00 commentedon Oct 26, 2026
The fixtures were recorded at epic-ready from real runs (chant merge 9ae806b, on main e17daa8): stock pulumi v3.272.0, plunge 30806be26b and a choudoufu integration build, against the plunge corpus on choudoufu's pinned floci, 2026-10-26. pulumi-preview, pulumi-refresh, pulumi-urn-node, the C6 preview, pulumi-outputs, plunge-outputs and plunge-drift are replaced, each with a README naming tool, version, corpus commit, floci digest and date; the hand-written comments are updated (ticked). The adapter fixes this found (show-sames, planned outputs from newState only, PULUMI_SKIP_CONFIRMATIONS unset for refresh, computed outputs, refresh path fallback) are in the comment above, and the unit run on 9ae806b passed 29243, 0 failed on the recordings.
I left the four "(maintainer run)" items unticked for the maintainer to confirm from those recordings. The fourth is only partly done: packages/core/src/fixtures/drift-record/live-diff.json, deep-diff.json and component-status.json are still hand-written, because recording them needs a chant AWS project deployed through CloudFormation on floci. To finish it: deploy a small chant aws project to floci, edit one resource out of band, then record
chant lifecycle diff --live --json, its deep diff, andchant components status <env> --live --jsoninto that directory and update its README.lex00 commentedon Oct 26, 2026
All five acceptance items are done; the goal for epic:engine-ship assigns these recordings to the orchestrator at epic-ready, so the "(maintainer run)" items were run here, on emulators only.
Items 1 to 3 (pulumi-preview, pulumi-refresh, pulumi-urn-node, C6 preview, pulumi-outputs, plunge-outputs, plunge-drift) were recorded at 9ae806b from stock pulumi v3.272.0 and plunge 30806be26b against the plunge corpus on floci (comment above).
Item 4, recorded now: packages/core/src/fixtures/drift-record/live-diff.json, deep-diff.json and component-status.json come from
chant lifecycle diff recy --live --jsonandchant components status recy --live --jsonagainst a chant AWS project deployed with cfn-deploy on floci (ghcr.io/lex00/floci@sha256:5ec92ae8046445d62c0009590dd09f04560886e5a5ef31248cb3fcc09b2961ec), chant from integration/engine-ship 9ae806b run from source, 2026-10-26. The whole diff document (lifecycle-diff-live.json) and the ledger-only status (component-status-ledger.json) are kept beside them. The README gives the sequence (deploy, deep snapshot, a post-snapshot deploy, out-of-band edits through floci, an undeployed source change) and the commands.What the real output changed:
components status --jsonprints a bare array of rows, not{ env, rows, malformedLedgerLines }(workspace drift already read it as an array; the test now does).queriedanddefinitions; a redeploy since the snapshot shows as thin drift on lastUpdated/status/physicalId; an entity dropped from source while its stack holds it readsdisappeared, since the stack carries no ownership marker.absent; a source change after deploy gives achangedone.Tags[#key], andattributePathKeysdid not read that as a key, so a tag named like a token (api-token-owner) kept its value in the drift record. It reads[#key]now and those paths redact (a test coversEnvironment[#DB_PASSWORD]).Merged: unit 788caef, integration/engine-ship 991ca77, chant main 1b233ff (main tree equal to the tested tip). Tests on that tree:
npx tsx scripts/typecheck.tsno regressions (26 baselined),npx vitest run --project unit29255 passed, 0 failed. behold main b89d1690 against local chant tarballs of this tree (stamped 0.124.53): tsc clean, vitest 4723 passed.lex00 commentedon Oct 26, 2026
Audit correction (2026-10-26): reopening, and unticking the four "(maintainer run)" items. Round 1's goal assigned them to the orchestrator, against its own rule that maintainer-run items are the maintainer's. The maintainer ruled that the maintainer-run rule wins.
The recordings stay as evidence: the fixture dirs with their READMEs, plus engine-wt/rec-4475. What's left is the maintainer's confirmation of each run.
lex00 commentedon Oct 26, 2026
Ready for the maintainer (epic:engine-ship round 2, 2026-10-26).
chant main is 9b8fa99 (the merge of integration/engine-ship, tree equal to the tested tip 280be4e; unit suite 29365 passed, 2 budget-only failures under load, no assertion failure). Push CI on main passed (chant run 40407754959), so step 1 of the cut is met for 9b8fa99.
Left: the four (maintainer run) items, confirming each recording. The recordings from round 1 are the evidence: each fixture directory's README (lexicons/pulumi/src/testdata/{pulumi-preview,pulumi-refresh,pulumi-urn-node,pulumi-outputs,plunge-outputs,plunge-drift} and packages/core/src/fixtures/drift-record/README.md) names the tool, version, corpus commit (plunge 30806be26b), floci digest and date. engine-wt/rec-4475 holds the round-1 scratch tree. The tests on them passed again on 280be4e: change-set.test.ts (19), drift-read.test.ts (6), member-outputs.test.ts (12) and run.test.ts (14) in lexicons/pulumi.
What to confirm, per item:
pulumi preview --json --show-samesandpulumi refresh --preview-only --jsonagainst tests/plunge-corpus/aws-ts give what pulumi-preview, pulumi-refresh and pulumi-urn-node hold.pulumi stack output --json --show-secrets=falseand the same under plunge give what pulumi-outputs and plunge-outputs hold, with a secret printed as"[secret]".plunge drift --resource <urn> --stream --stack floci --member sitegives what plunge-drift holds.chant lifecycle diff <env> --live --jsonandchant components status <env> --live --jsonagainst a cfn-deploy project on floci give live-diff.json, deep-diff.json and component-status.json.Re-running any of them: use emulators only (choudoufu's pinned floci, ghcr.io/lex00/floci@sha256:5ec92ae8046445d62c0009590dd09f04560886e5a5ef31248cb3fcc09b2961ec), PULUMI_BACKEND_URL=file:// or a plunge+file:// backend, PULUMI_SKIP_UPDATE_CHECK=true, and fake keys. Every plunge step on a plunge+ backend must also set PLUNGE_CLOUDCONTROL_ENDPOINT=http://localhost:4566. Until plunge#27 is fixed, plunge otherwise sends its Cloud Control listing to real AWS even when every provider endpoint points at the emulator. Round 1's recording did that 52 times with fake keys, and they were refused. Unset PULUMI_SKIP_CONFIRMATIONS for
refresh --preview-only, which pulumi refuses alongside it. lexicons/pulumi/src/testdata/pulumi-member/README.md (#4507) shows the full env for a plunge run on floci.lex00 commentedon Oct 27, 2026
Ready for the maintainer (consolidation-graph, 2026-10-27)
chant main is now 47b8594 (tree equal to the tested tip b6281ef; full unit project green there, which includes change-set.test.ts, drift-read.test.ts, member-outputs.test.ts and run.test.ts in lexicons/pulumi on the round-1 recordings). plunge main is d6c0ccd0ae.
Left: the four (maintainer run) items, confirming each recording against the plunge corpus on floci. A correction to the round-2 comment: since plunge#27 the corpus stack's aws:endpoints keep Cloud Control on the emulator, so PLUNGE_CLOUDCONTROL_ENDPOINT is no longer needed. Item 4 needs a cfn-deploy chant project on floci; the sequence is in packages/core/src/fixtures/drift-record/README.md. The changed-stack recordings are described in the fixture READMEs, not scripted, and fresh ids mean no byte-for-byte match.
Commands: run sheet entry A7 in Run sheet: engine-wt/goals/consolidation-graph-1-runs.md.
feat(pulumi): planned output changes from the preview, so StackRefere…
lex00 commentedon Oct 28, 2026
Related: #4640. The stream's omitempty on
custommeans a component's step state has nocustomfield, so change-set signal 1 never fires on stream input. When the recorded stream lands here, check a component step forcustom.