Repository navigation
Closed
Labels
epic:ci-productsCI products share chant CI: terragucci, plywood, ledger, pipeline, applyepic:plywoodplywood: Pulumi pull request automation on chant (tracker in INTENTIUS/plywood)
Description
Reader problem
From a Hacker News comment the blog draft answers: "I don't want to give them [agents] access to apply terraform given the blast radius ... I am moving it to CICD." The draft post on branch draft/agents-propose-ci-applies of lex00/lex00.github.io (content/posts/agents-propose-ci-applies.md) tells Pulumi users that plywood gives their stacks the same pull-request loop terragucci gives Terraform roots. plywood holds no capability (chant#4530), so the plan and apply of a Pulumi or plunge stack has to exist in chant first.
What exists today (chant 930cb99)
- The pulumi lexicon declares no capability:
lexicons/pulumi/src/capability-plugin.ts:20returns[]fromcapabilities(). It only suppliesmember-outputssources. - chant never changes a stack.
runAllowedPulumi(lexicons/pulumi/src/run.ts:144) andrunAllowedPlunge(lexicons/pulumi/src/run.ts:194) refuse any argv besidepreview,refresh --preview-only,stack output --json --show-secrets=false,drift --resourceandgraph --json(README: "so chant never changes a stack", ruled on design: one drift record and a Pulumi lexicon - every engine's drift in one shape, Pulumi plans in the change set, engine outputs into chant parameters #4450 and Ruling: chant runspulumi stack outputbeyond preview and refresh --preview-only #4476). - The change set gets a Pulumi part from
pulumi preview --json(lexicons/pulumi/src/change-set.ts), and drift reads one resource at a time. pr-plan/pr-applyplan onlycfn-deploy,kubectl-applyandterraform-apply(docs/src/content/docs/guide/pull-request-ci.mdx, "Other capabilities"). A component with any other step is a member with zero counts.
What's missing
- A deploy capability for a Pulumi stack and a plunge stack (for example
pulumi-up, with plunge selected the way the member kind already selects it:engine: "plunge"or aplunge+backend inPulumi.yaml), so a stack can be a component step. planon that capability:preview --json(and plunge's saved plan) as the member's plan, with the change-set digest bound by the gate, asterraform-applydoes.- Apply of exactly the approved plan, refusing when the preview moved (plunge already refuses a saved plan whose records moved with exit 40).
- Plan-shape approval for a stack whose inputs are known only after an upstream applies (named in CI products on chant: one runtime, a front door per audience, no capability in a product #4530's follow-ups), or a hole until then.
- A lock and staleness mode for plunge, which has no stack lock, so two pull requests that change different resources of one stack can both apply and two that change the same one cannot (also in CI products on chant: one runtime, a front door per audience, no capability in a product #4530's follow-ups; plunge#6 tracks proving lock-free updates on a real store).
- A ruling that widens design: one drift record and a Pulumi lexicon - every engine's drift in one shape, Pulumi plans in the change set, engine outputs into chant parameters #4450/Ruling: chant runs
pulumi stack outputbeyond preview and refresh --preview-only #4476 to let the capability runup(and only from an apply job holding the apply identity).
Acceptance criteria
- A component with a Pulumi or plunge deploy step plans in
chant components pr-planwith real create/update/replace/delete counts in the note, and its digest binds the approval. -
pr-applyand the release promote apply that stack, and refuse withrefusing to applywhen the preview no longer matches the approved one. -
chant build --components --generate github|gitlab|forgejo --pr-loopcovers such a component with no Pulumi-specific flag, andci.identity.cloudplan/apply identities apply to it. -
--wave-gateand failed-member blocking work for stacks as for roots. - Two applies to one plunge stack that touch disjoint resources both land; overlapping ones refuse naming the other (or the docs say to serialize until plunge#6 lands).
-
A worked example (fixture ornot run: emulator runs dropped by maintainer ruling 2026-10-29examples/) plans and applies a plunge stack on a local emulator in CI.
Metadata
Metadata
Assignees
Labels
epic:ci-productsCI products share chant CI: terragucci, plywood, ledger, pipeline, applyepic:plywoodplywood: Pulumi pull request automation on chant (tracker in INTENTIUS/plywood)
Activity
lex00 commentedon Oct 27, 2026
Maintainer ruling, 2026-10-27 (ruling 1 on INTENTIUS/plywood#1): the pulumi lexicon gets the apply capability. This settles item 6: #4450 and #4476 widen so the capability runs
up, from an apply job holding the apply identity only. Who runs the engine is the same across products, so terragucci's wave callbacks move into chant as well (#4545). Neither terragucci nor plywood holds apply capability.Details from the plywood plan for the capability:
plunge preview --json --save-plan <file>, thenplunge up --plan <file> --yes --json --stack <s>. On stock Pulumi,pulumi preview --json, thenpulumi up --yes --json --stack <s>under the shape check below.planreturns the change-set part, the shape, and on plunge the plan file as its artifact;runapplies it.how-it-works/concurrency.md:41-48).stack init,destroy --yesandstack rm, forpr-*stacks only.up, the apply writes the stack export tochant/lifecycleas the member's snapshot (ruling 6, pulumi member: the apply writes the stack export to chant/lifecycle, so the graph needs no checked-in stack-export.json #4546).allowedReadaccepts any flags afterpreview(lexicons/pulumi/src/run.ts:135-140). Ruling 7 runs CrossGuard policy packs in the preview job, so--policy-packpassing there is intended.Item 4, plan-shape approval. Core compares shapes in
components/covered-round.ts:65,268, and the terraform lexicon suppliesterraformPlanShape(lexicons/terraform/src/components/capability-plugin.ts:56, #4436). The pulumi lexicon needs apulumiPlanShape: one entry per URN whose op is notsameorread, with its type,replacementfrom replace ops orreplaceReasons,propertiesfromdetailedDiff/diffReasons,unknownfrom the unknown sentinel, andmayAppearentries kept. Stockpulumi up --planis experimental and hidden behindPULUMI_EXPERIMENTAL(pkg/cmd/pulumi/operations/up.go:969-975), so a stockuppreviews again at apply time and refuses withPlanShapeMovedErrorwhen the fresh shape is not within the approved one. On plunge the saved plan does that check, and the shape is still used for covered rounds.Item 5, lock and staleness mode. Ruling 3 sets the default to per resource on plunge stacks, which changes the plan's proposal. A
ci.locksgrain for Pulumi members:resource, the default on plunge members: a preview locks each URN its change set touches,mayAppearcomponents included.stack, the default on stock members, where the backend's stack lock already keeps updates in order: a preview locks<member>/<stack>.resourceis refused with a named error.Evidence: target locks take free-form names, but the PR loop fills them from component names (
lifecycle/target-lock.ts:101,--from-reportreadsselection.waves), and nothing turns a Pulumi preview into per-stack or per-URN targets. plunge takes no stack lock (how-it-works/concurrency.md:9-18). plywood's docs state the per-resource default in the present tense, and its claims page keeps the concurrent-update claim pending until INTENTIUS/plunge#6 has a recorded run.Related, filed today: #4545 (waves through chant), #4546 (export on
chant/lifecycle), #4547 (StackReference edges), #4548 (mayAppearin the note), #4549 (Pulumi Cloud token).lex00 commentedon Oct 27, 2026
For item 5: the per-resource lock grain is now #4552. The plan's
ci.locks: stack | resourcewould collide withci.locks, which already means when to lock (packages/core/src/workspace/declaration.ts:295-302), so #4552 asks for a separate grain key. Ruling 3 (resource grain by default on plunge) carries over.Related: #4530, INTENTIUS/terragucci#1280.
lex00 commentedon Oct 27, 2026
Design for the pulumi apply capability (Wave 0 of ci-products). Code is cited at
origin/integration/ci-products(chant 3037bbe, plunge 7ef48cb4ad).The question of whether chant may run
pulumi upandplunge upis already ruled (ruling 1 on INTENTIUS/plywood#1, quoted in the first comment here, and the session rulings: applies run in chant for both engines). This design builds on it and asks nothing about it. The stack export afterupgoes torefs/chant/snapshotsper ruling B (#4546), and that write stays in #4546.The capability
The pulumi lexicon's plugin returns no capability today (
lexicons/pulumi/src/capability-plugin.ts:19-21). It gains one,pulumi-up, written against core's existingCapabilityinterface (packages/core/src/components/capability.ts:163-220), the same oneterraform-applyimplements (lexicons/terraform/src/components/capability-plugin.ts:426-504). Core needs no new interface for this:plan,run,outputs,targets,rollbackPolicyandCapabilityPlan.shapealready carry everything below.Step input (my default; say if you want it shaped otherwise):
dirholdsPulumi.yaml.memberis the name in the wave's set digest and defaults to the workspace member whose directory this is, elsePulumi.yaml'sname; the set digest names it<member>/<stack>.pulumiMemberEngine(lexicons/pulumi/src/member-engine.ts) until then. One kind covers both engines, asterraform-applycovers terraform, tofu and choudoufu.config(a dependent'sstackOutput()wiring) is written to a scratch copy ofPulumi.<stack>.yamland passed with--config-file.--config k=vis never used, because it saves into the stack's config file in the working tree (plungepkg/cmd/pulumi/operations/up.go:795-796,preview.go:715-716).rollbackPolicy: "needs-opt-out"andtargets: "accept"(each target passes as--target <urn>to the preview and toup), matchingterraform-apply:430-432.plan(ctx, input):pulumiPreviewArgs,run.ts:215-219). On plunge it adds--save-plan <tmp>/<member>-<stack>.plan.json, in the OS temp dir and never in the working tree, since the file holds secret ciphertext.planDigestfrompulumiPreviewDigest(lexicons/pulumi/src/change-set.ts:157-170),changeSetfrompulumiPreviewPart,outputsfrompulumiPlannedStackOutputs(stack-outputs.ts:59), andshapefrom a newpulumiPlanShapeas item 4 of the issue describes (one entry per URN whose op is notsameorread,replacementfrom replace ops andreplaceReasons,propertiesfromdetailedDiff/diffReasons,unknownfrom the unknown sentinel,mayAppearentries kept).artifactis{ kind: "pulumi-up", engine, stack, planDigest, shape, planFile? }.planFileis set on plunge only.ctx.unresolvedInputsset, the member is a hole naming the upstreams it waits on, the waywaitingRootdoes for terraform (capability-plugin.ts:258-273). A stand-in preview like terraform's Terraform lexicon: preview a hole member outside a composed group #4463 is later work.run(ctx, input):planFile:plunge up --plan <planFile> --yes --json --stack <s>. plunge checks the stamp and refuses a plan whose records moved, or one with no stamp, before anything changes (pkg/backend/plunge/planstamp.go:44-92,up.go:275-296).planShapeDifferences(packages/core/src/components/covered-round.ts:103), throwPlanShapeMovedError(covered-round.ts:204) when the fresh preview goes beyond the approved one, elsepulumi up --yes --json --stack <s>. Question A covers the seconds between that preview andup's own.up:stack output --json --show-secrets=false(already allowed,run.ts:115) gives the step'soutputs, with secrets as[secret]as today. pulumi member: the apply writes the stack export to chant/lifecycle, so the graph needs no checked-in stack-export.json #4546 adds the export write at this point.{ member, stack, engine, planDigest, fromWavePlan, outputs, summary }, withsummarytaken from thesummaryEventinup --json's event stream (plungepkg/backend/display/display.go:136-142:up --jsonstreams engine events, whilepreview --jsonprints one digest). plunge#55's per-resource timings joinsummarywhen they land.outputs(ctx, input): the same blindstack output, for a dependent planned before this stack applies.Gate and apply flow
The plan job runs
plan; the change-set part, digest and shape feed the note and the gate exactly as a Terraform root's do. The apply job does not need the plan job's files.pr-applyplans every member again before anything applies and decides the gate on that digest (packages/core/src/components/pr-run.ts:4-9), so on plunge the saved planrunapplies is the one the apply job's own preview wrote, bound to the approved digest by equality and to the records by plunge's stamp. A digest that differs from the approved one is core's existing moved path.CrossGuard (ruling 7) runs in that preview with
--policy-pack, whichallowedReadalready lets through (run.ts:135-141). Question C covers reading its results, sincepreview --jsondrops policy events today.uptakes the same--policy-packand--policy-pack-configarguments as the preview by default, so a mandatory pack also holds at apply time; Pulumi Cloud org policies apply on their own.Allowlist change in run.ts
Today
runAllowedPulumiandrunAllowedPlungerefuse everything but reads (run.ts:115,:135-149,:194-203). Those two keep their meaning: no read path can reachup. The widening adds two separate entry points,runApplyPulumiandrunApplyPlunge, called only bypulumi-up'srun, each checking against a fixed list in the style ofPLUNGE_GRAPH_COMMANDS(run.ts:155-160): the order is fixed and nothing else gets through.plunge preview --json --show-sames --stack <s> --save-plan <file> [--config-file <f>] [--target <urn>]... [--policy-pack <dir> [--policy-pack-config <f>]]...runAllowedPlunge(it already passes; tightened below)plunge up --plan <file> --yes --json --stack <s> [--config-file <f>] [--target <urn>]... [--policy-pack <dir> [--policy-pack-config <f>]]...runApplyPlunge(new)pulumi up --yes --json --stack <s> [--config-file <f>] [--target <urn>]... [--policy-pack <dir> [--policy-pack-config <f>]]...runApplyPulumi(new)--plan <file>afterup, only if question A picks (a)runApplyPulumiupis refused with--skip-preview,--refresh,--show-secrets,--replace,--target-replace,--target-dependents,--exclude,--remote,--continue-on-error,--configand any flag not in the table;--stackfollowswellFormedStack(run.ts:131-133). The environment staysengineEnv(run.ts:100-104): no update check, noPULUMI_SKIP_CONFIRMATIONS, with--yespassed explicitly.Two tightenings of the read side, taken as defaults:
previewrefuses--show-secrets, since with--save-planit writes plaintext secrets into the plan file (plungepreview.go:723-726), and refuses--import-file, which writes a file chant never reads.The ruling says
upruns from an apply job holding the apply identity only. The boundary there is the identity split (#4296 for clouds, #4549 for Pulumi Cloud tokens): the plan job holds no credential that can write. The run.ts guard keeps chant's own read paths from ever reachingup, and the generator only callspr-applyand fan-out applies from apply jobs.Review stacks (
stack init,destroy --yes,stack rm, forpr-*stack names only, from the plywood plan) go on the same apply-only list with a stack-name check, built with plywood#15 when it needs them. Stack ops for plywood#16 (cancel,stack import, moves) and thestack exportfor #4546 bring their own argv in those units.Outcomes for the exit-code table (#4553)
The pulumi lexicon maps engine results onto #4553's outcome names. Numbers come from #4553; Pulumi's own codes never pass through raw, since its 3 is an authentication error (plunge
pkg/cmd/pulumi/cmd/exit_codes.go:29-42) and chant's 3 is gated.upexits 0PlanMovedError,UnstampedPlanError(planstamp.go:48,:76-92)planMoved: true,capability.ts:502-506)PlanShapeMovedError)--plan(question A (a)): the engine refuses a step outside the planpr-run.ts)up, including plunge'sRecordConflictErrorandInFlightDependencyErrorPulumi's exit 5 (policy) is declared but not wired yet (
exit_codes.go:130-132), so a policy failure is read from the events, never from the code. ARecordConflictErrormid-upcounts as failed rather than moved, because resources before the clash may have landed; #4552's resource lock keeps two applies off one record.Open questions
A. Stock Pulumi has no stamped plan, so between the apply job's fresh preview and
up's own preview a change (drift, a provider default) could add an operation the approval never saw.pulumi preview --save-planin the apply job and runpulumi up --plan <file>withPULUMI_EXPERIMENTAL=true(the flag is hidden and experimental,up.go:968-975); a step outside the plan stops the update.pulumi up --yes --json, then compare the steps in its event stream with the approved shape; a difference fails the step and lands on the apply record. (recommended) No experimental engine feature in production applies, and the window is seconds long; plunge members keep the stamped check.B.
pulumiPreviewDigestcovers every step,samesteps and their inputs included (change-set.ts:157-170, previews run with--show-sames). On a plunge stack with the resource grain, a second pull request landing on other resources of the stack moves the first one's digest and asks for a fresh approval, which defeats per-resource concurrency (ruling 3).sameandreadsteps in the digest for every member.sameandreadsteps out of the digest for members on the resource grain; plunge's stamp still refuses a moved record among the steps that change. (recommended) Disjoint pull requests keep their approvals, and a record the change touches is still checked.C.
preview --jsondrops policy events (plungepkg/backend/display/json.go:247-249, the same code as stock), so CrossGuard violations cannot be read from the digest the change set parses.PULUMI_ENABLE_STREAMING_JSON_PREVIEW=true(sdk/go/common/env/env.go:175) and parse the event stream: steps from the resource events, violations frompolicyEvent. One engine run serves the change set and the gate; the build checks with a recorded fixture that the digest is the same as from the printed digest. (recommended) It works on stock and plunge alike and adds no second preview.D.
runwith no approved plan handed in (chant run --components, a release promote, a fan-out with no wave gate).upin one go, asterraform-applydoes with no plan (capability-plugin.ts:488-490). (recommended) Parity with Terraform; the release promote in the acceptance list needs it, and the identity held by whoever runs it is the boundary.upruns only under a plan an approval bound.lex00 commentedon Oct 27, 2026
Ruling for ci-products (2026-10-27)
pulumi up --yes --jsonand compare its event-stream steps with the approved shape; a difference fails the step and lands on the apply record. plunge keeps its stamped check.feat(core): one exit-code table, moved apart from waiting (#4553)
feat(pulumi): pulumi-up, Pulumi and plunge stacks as components that …
Merge unit/cp-chant-4541: pulumi-up, Pulumi and plunge stacks plan an…
lex00 commentedon Oct 27, 2026
Merged to integration/ci-products at b6b425e (unit branch
unit/cp-chant-4541, commit 8fafa43). Compile check only:npm ci,scripts/ci-lexicon-artifacts.sh --steps generate,bundleandnpx tsx scripts/typecheck.tspass with no regressions, and the docs prose lint shows 0 regressions on the merged tree. No engine ran; the tests are written against fakes and fixtures and were not run.Behaviour on the branch, built to the design comment and the 2026-10-27 ruling:
pulumi-up(lexicons/pulumi/src/pulumi-up.ts) is on core's existingCapabilityinterface and is registered bypulumiCapabilityPlugin. The step is{ kind: "pulumi-up", dir, stack, member?, config?, engine?, cwd?, lockGrain?, policyPacks? }, and its set-digest member is<Pulumi.yaml name>/<stack>. The engine comes from pulumi lexicon: engine detection reads plywood's config and PULUMI_BACKEND_URL, not only Pulumi.yaml #4559'spulumiMemberEngine, and the artifact keeps itssourceandbecauseso the plan output can print them.rollbackPolicy: "needs-opt-out",targets: "accept", plusoutputsandreleaseInputs.runApplyPulumiandrunApplyPlunge, each checking one fixed form inPULUMI_APPLY_COMMANDS:plunge up --plan <file> --yes --json --stack <s>andpulumi up --yes --json --stack <s>, then optionally--config-file, each--target, and--policy-packwith--policy-pack-config, in that order. Every other flag is refused.runAllowedPulumiandrunAllowedPlungestill refuseup, and a preview now refuses--show-secretsand--import-file.PulumiRunnertakes an optionalenvfor the one run.planrunspreview --json --show-sames --stack <s>(with--save-planinto an OS temp scratch dir on plunge) underPULUMI_ENABLE_STREAMING_JSON_PREVIEW=true.lexicons/pulumi/src/engine-events.tsturns the stream back into the printed document: non-logical replacement steps are dropped, the blinded secret envelope becomes[secret], and empty maps and ids are left out.policyEventlines becomegate-policyfindings with rules namedcrossguard.<pack>.<policy>. A mandatory violation, or Pulumi's policy exit, throwsPulumiPolicyDeniedError(policyDenied: true,exitCode7). Advisory ones stay on the artifact and the run output.lockGrain, defaultresourceon plunge andtargeton stock)pulumiPreviewDigest(preview, { changedOnly: true })leavessameandreadsteps out, under its own label. A stock member set toresourcethrowsPulumiResourceGrainRefusedError.pulumiPlanShape(lexicons/pulumi/src/plan-shape.ts) has one entry per changing URN, with type, replacement (conditionalwhen every forcing input is unknown), properties and unknown, andmayAppearentries kept.pulumiShapeDifferencesdrops resources under a component the approval markedmayAppearbefore it calls core'splanShapeDifferences.run:plunge up --plan <file>with the plan's file. Exit 40 throwsPulumiPlanMovedError(planMoved: true, the table's moved code 4).run: it previews again and throwsPlanShapeMovedErrorwhen that preview goes beyond the approved shape. Then it runspulumi up --yes --jsonand compares the steps the update ran (resourcePreEventwithoutplanning) with the approved shape. A difference throwsPulumiAppliedShapeError, a failure and never a moved plan, with the differences in the message the apply record keeps.runplans and applies in one go on both engines.pulumiExitOf(Exit codes: one table in chant core for both products, mapped by the terraform and pulumi lexicons, with moved distinct from gated #4553) and fails, naming the failed URNs and the URNs that landed from the stream. Afterup, the outputs come fromstack output --json --show-secrets=false, andsummarycomes from thesummaryEvent, with plunge#55'splungeTimingsby URN when present.configgoes into a scratch copy ofPulumi.<stack>.yaml(mode 600), passed with--config-file. A key with no:gets the project prefix. The scratch dir is removed afterrun.releaseInputsanswers{ field: "dir", dir, paths }for the stack's directory, plusmainwhen it points outside the directory. A stack whose backend is afile://(orplunge+file://) path relative to its directory is unbound. Roll back a Terraform root to a named release: record root trees in release cut, plan them on promote and rollback --release #4542 item 3 can build on this.pulumi-uprow and section on components/plan-previews (table regenerated), guide/pull-request-ci "Other capabilities", and the lexicon README.Tests written, not run:
engine-events.test.ts(the stream's digest equals the printed document's, plus the replacement filter, secrets, policy findings and summary),plan-shape.test.ts,pulumi-up.test.ts(fake runners for both engines, every ruling case, config, targets, policy packs, holes and releaseInputs) and the apply allowlist cases inrun.test.ts.Still missing:
testdata/pulumi-stream/preview-stream.ndjsonwas converted from the recordedpulumi-preview/preview.jsonfollowing plunge'sevents.go. It was not recorded, since no engine ran for this unit. Its README says to replace it with a floci recording of the same corpus change when the epic's runs are made. Ruling C's digest check against a real stream waits on that recording.policyDeniedyet, so a CrossGuard denial exits 1 from a pull-request plan rather than 7, and advisory findings reach no note row. Wiring them into chant's gate and the note belongs with plywood#13 or CI products: one chant PR pipeline that takes the product's words for statuses, comments and gates #4550's consumer.ci.lockGrainin the declaration) is Locks: a per-resource lock grain in chant core under a new key (not ci.locks), with row keys from the terraform and pulumi lexicons #4552. Until it lands,lockGrainis read from the step input only.sourcein the plan note (pulumi lexicon: engine detection reads plywood's config and PULUMI_BACKEND_URL, not only Pulumi.yaml #4559's leftover) has the data on the artifact but no note line yet.stack init,destroy --yes,stack rmforpr-*) is left to plywood#15, as the design says. The stack export write afterupis pulumi member: the apply writes the stack export to chant/lifecycle, so the graph needs no checked-in stack-export.json #4546's.node_modulesbeside it, so a promote under a release needs the install step to run in the copy. Not handled here.feat(core): one product pipeline that takes a CI product's words (#4550)
feat(pulumi): Pulumi and plunge stacks roll back by release, with an …
pulumi lexicon: review stack argv, pr-<n> stacks only (#4541, INTENTI…
Merge unit/cp-chant-reviewstacks: review stack argv for pr-<n> stacks (…
lex00 commentedon Oct 28, 2026
Review stack argv, the part this issue left for INTENTIUS/plywood#15, merged into integration/ci-products as 8fbc3ee (unit/cp-chant-reviewstacks). Compile check only: the repo typecheck shows no errors in
lexicons/pulumi. Tests are written and not run.Landed in
lexicons/pulumi:src/run.ts:PULUMI_REVIEW_STACK_COMMANDS, three fixed forms on a review stack name only.stack init <pr-stack> --no-select [--copy-config-from <stack>],destroy --yes --json --stack <pr-stack>, andstack rm --yes --stack <pr-stack>(never--force, so the engine refuses to remove a stack that still holds resources).isReviewStackNametakespr-<n>orpr-<n>-<suffix>, after at most an organization and a project.runReviewStackPulumiandrunReviewStackPlungerefuse every other argv, flag and stack, and the read entry points refuse all three forms as before.src/review-stack.ts:initReviewStack(an existing stack counts as found) andremoveReviewStack(destroy, then rm; a stack already gone counts as absent, so a second sweep removes nothing twice).src/review-stack.test.ts, with fake runners.Not wired yet: core's
ci.prEnvironmentruns (components pr-env up|down|sweep) do not call these. To do that, thepulumi-upcapability would need to target stackpr-<n>whenDeployContext.envis a pull request's environment and callinitReviewStackbefore its first preview, and the pulumi lexicon would need ateardownOwned/teardown that callsremoveReviewStackfor the record's stack. That is a pulumi-lexicon feature to file; plywood#15 builds its config and words on top of it.lex00 commentedon Oct 28, 2026
pulumi-upnow makes an in-place checkout runnable before its first engine run, as it already did for a release copy (plywood#22 finding 6). On main as a0c3037 (merge of unit/cp6-chant-install). Push CI green: chant — main 40783532636, docs 40783532433, chant-ci-green 40784297833.A CI job checks out the files git tracks, so a Node program there had no
node_modules, and every preview and update failed withIt looks like the Pulumi SDK has not been installed.prepareProgram(lexicons/pulumi/src/release-copy.ts), called from the step's plan and run, now covers both cases:<engine> installwhen there is nonode_modulesin its directory or above it (a hoisted workspace install and Yarn's.pnp.cjscount) and a lockfile sits beside its package.json. With no lockfile the step refuses by name before the engine runs. Python follows the copy's rules.pulumi install/plunge install, and the step's backend applies to it.Tests: release-copy.test.ts and pulumi-up.test.ts. The pulumi lexicon suite passed (428). Docs: components/plan-previews.mdx and the lexicon README.
On the plywood bench, both plan jobs now end
plannedforshop/dev.lex00 commentedon Oct 29, 2026
Close-out (2026-10-29)
On main: b6b425e (pulumi-up capability, plunge and stock Pulumi stacks plan and apply, plan shape, run.ts apply allowlist), 8fbc3ee (review stack argv for pr- stacks), a0c3037 (install before the first engine run in a checkout). Rollback by release for stacks (745afb0, #4542), StackReference edges (5ef097a, #4547) and the lock grain (cd77220, #4552) cover the rest of the acceptance list. The pulumi-up row and section are in docs components/plan-previews and guide/pull-request-ci.
Boxes 1 to 5 are ticked on the code, tests and docs on main (pulumi-up.ts, plan-shape.ts, engine-events.ts, lock-rows.ts and their tests; the generated pipelines take no Pulumi-specific flag). Box 6 is struck: the emulator run was dropped by the maintainer ruling of 2026-10-29. The fixture in lexicons/pulumi/examples/plunge-member stays.
Closing: every build item is on main and the only run item is dropped by ruling.