Skip to content

Pulumi and plunge stacks as components that plan and apply, so plywood can run them #4541

Closed

Description

@lex00

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)

What's missing

  1. 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 a plunge+ backend in Pulumi.yaml), so a stack can be a component step.
  2. plan on that capability: preview --json (and plunge's saved plan) as the member's plan, with the change-set digest bound by the gate, as terraform-apply does.
  3. Apply of exactly the approved plan, refusing when the preview moved (plunge already refuses a saved plan whose records moved with exit 40).
  4. 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.
  5. 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).
  6. 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 output beyond preview and refresh --preview-only #4476 to let the capability run up (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-plan with real create/update/replace/delete counts in the note, and its digest binds the approval.
  • pr-apply and the release promote apply that stack, and refuse with refusing to apply when the preview no longer matches the approved one.
  • chant build --components --generate github|gitlab|forgejo --pr-loop covers such a component with no Pulumi-specific flag, and ci.identity.cloud plan/apply identities apply to it.
  • --wave-gate and 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 or examples/) plans and applies a plunge stack on a local emulator in CI. not run: emulator runs dropped by maintainer ruling 2026-10-29

Activity

  1. lex00 commented on Oct 27, 2026

    @lex00
    ContributorAuthor

    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:

    • Argv: plunge preview --json --save-plan <file>, then plunge up --plan <file> --yes --json --stack <s>. On stock Pulumi, pulumi preview --json, then pulumi up --yes --json --stack <s> under the shape check below. plan returns the change-set part, the shape, and on plunge the plan file as its artifact; run applies it.
    • plunge's exit 40 (moved plan) maps to chant's moved code 3 (plunge how-it-works/concurrency.md:41-48).
    • Review stacks need stack init, destroy --yes and stack rm, for pr-* stacks only.
    • After up, the apply writes the stack export to chant/lifecycle as 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).
    • allowedRead accepts any flags after preview (lexicons/pulumi/src/run.ts:135-140). Ruling 7 runs CrossGuard policy packs in the preview job, so --policy-pack passing there is intended.

    Item 4, plan-shape approval. Core compares shapes in components/covered-round.ts:65,268, and the terraform lexicon supplies terraformPlanShape (lexicons/terraform/src/components/capability-plugin.ts:56, #4436). The pulumi lexicon needs a pulumiPlanShape: one entry per URN whose op is not same or read, with its type, replacement from replace ops or replaceReasons, properties from detailedDiff/diffReasons, unknown from the unknown sentinel, and mayAppear entries kept. Stock pulumi up --plan is experimental and hidden behind PULUMI_EXPERIMENTAL (pkg/cmd/pulumi/operations/up.go:969-975), so a stock up previews again at apply time and refuses with PlanShapeMovedError when 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.locks grain for Pulumi members:

    • resource, the default on plunge members: a preview locks each URN its change set touches, mayAppear components included.
    • stack, the default on stock members, where the backend's stack lock already keeps updates in order: a preview locks <member>/<stack>.
    • A stock member set to resource is refused with a named error.
    • Staleness is plunge's saved-plan stamp (exit 40).

    Evidence: target locks take free-form names, but the PR loop fills them from component names (lifecycle/target-lock.ts:101, --from-report reads selection.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 (mayAppear in the note), #4549 (Pulumi Cloud token).

  2. lex00 commented on Oct 27, 2026

    @lex00
    ContributorAuthor

    For item 5: the per-resource lock grain is now #4552. The plan's ci.locks: stack | resource would collide with ci.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.

  3. added
    epic:ci-products
    epic:plywood
    on Oct 27, 2026
  4. lex00 commented on Oct 27, 2026

    @lex00
    ContributorAuthor

    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 up and plunge up is 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 after up goes to refs/chant/snapshots per 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 existing Capability interface (packages/core/src/components/capability.ts:163-220), the same one terraform-apply implements (lexicons/terraform/src/components/capability-plugin.ts:426-504). Core needs no new interface for this: plan, run, outputs, targets, rollbackPolicy and CapabilityPlan.shape already carry everything below.

    Step input (my default; say if you want it shaped otherwise):

    { kind: "pulumi-up", dir: string, stack: string, member?: string, config?: Record<string, unknown>, engine?: "pulumi" | "plunge" }
    • dir holds Pulumi.yaml. member is the name in the wave's set digest and defaults to the workspace member whose directory this is, else Pulumi.yaml's name; the set digest names it <member>/<stack>.
    • The engine comes from pulumi lexicon: engine detection reads plywood's config and PULUMI_BACKEND_URL, not only Pulumi.yaml #4559's resolution once it lands, and from pulumiMemberEngine (lexicons/pulumi/src/member-engine.ts) until then. One kind covers both engines, as terraform-apply covers terraform, tofu and choudoufu.
    • config (a dependent's stackOutput() wiring) is written to a scratch copy of Pulumi.<stack>.yaml and passed with --config-file. --config k=v is never used, because it saves into the stack's config file in the working tree (plunge pkg/cmd/pulumi/operations/up.go:795-796, preview.go:715-716).
    • rollbackPolicy: "needs-opt-out" and targets: "accept" (each target passes as --target <urn> to the preview and to up), matching terraform-apply:430-432.

    plan(ctx, input):

    1. Runs the preview the lexicon already runs (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.
    2. Answers planDigest from pulumiPreviewDigest (lexicons/pulumi/src/change-set.ts:157-170), changeSet from pulumiPreviewPart, outputs from pulumiPlannedStackOutputs (stack-outputs.ts:59), and shape from a new pulumiPlanShape as item 4 of the issue describes (one entry per URN whose op is not same or read, replacement from replace ops and replaceReasons, properties from detailedDiff/diffReasons, unknown from the unknown sentinel, mayAppear entries kept).
    3. artifact is { kind: "pulumi-up", engine, stack, planDigest, shape, planFile? }. planFile is set on plunge only.
    4. With ctx.unresolvedInputs set, the member is a hole naming the upstreams it waits on, the way waitingRoot does 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):

    • plunge, handed an artifact with 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).
    • stock Pulumi, handed an artifact: preview again, compare shapes with planShapeDifferences (packages/core/src/components/covered-round.ts:103), throw PlanShapeMovedError (covered-round.ts:204) when the fresh preview goes beyond the approved one, else pulumi up --yes --json --stack <s>. Question A covers the seconds between that preview and up's own.
    • After up: stack output --json --show-secrets=false (already allowed, run.ts:115) gives the step's outputs, 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.
    • Output: { member, stack, engine, planDigest, fromWavePlan, outputs, summary }, with summary taken from the summaryEvent in up --json's event stream (plunge pkg/backend/display/display.go:136-142: up --json streams engine events, while preview --json prints one digest). plunge#55's per-resource timings join summary when they land.
    • With no plan handed in, see question D.

    outputs(ctx, input): the same blind stack 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-apply plans 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 plan run applies 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, which allowedRead already lets through (run.ts:135-141). Question C covers reading its results, since preview --json drops policy events today. up takes the same --policy-pack and --policy-pack-config arguments 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 runAllowedPulumi and runAllowedPlunge refuse everything but reads (run.ts:115, :135-149, :194-203). Those two keep their meaning: no read path can reach up. The widening adds two separate entry points, runApplyPulumi and runApplyPlunge, called only by pulumi-up's run, each checking against a fixed list in the style of PLUNGE_GRAPH_COMMANDS (run.ts:155-160): the order is fixed and nothing else gets through.

    Engine Argv Entry
    plunge 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 plunge up --plan <file> --yes --json --stack <s> [--config-file <f>] [--target <urn>]... [--policy-pack <dir> [--policy-pack-config <f>]]... runApplyPlunge (new)
    pulumi pulumi up --yes --json --stack <s> [--config-file <f>] [--target <urn>]... [--policy-pack <dir> [--policy-pack-config <f>]]... runApplyPulumi (new)
    pulumi the same with --plan <file> after up, only if question A picks (a) runApplyPulumi

    up is refused with --skip-preview, --refresh, --show-secrets, --replace, --target-replace, --target-dependents, --exclude, --remote, --continue-on-error, --config and any flag not in the table; --stack follows wellFormedStack (run.ts:131-133). The environment stays engineEnv (run.ts:100-104): no update check, no PULUMI_SKIP_CONFIRMATIONS, with --yes passed explicitly.

    Two tightenings of the read side, taken as defaults: preview refuses --show-secrets, since with --save-plan it writes plaintext secrets into the plan file (plunge preview.go:723-726), and refuses --import-file, which writes a file chant never reads.

    The ruling says up runs 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 reaching up, and the generator only calls pr-apply and fan-out applies from apply jobs.

    Review stacks (stack init, destroy --yes, stack rm, for pr-* 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 the stack export for #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.

    Engine result chant outcome
    up exits 0 applied
    plunge exit 40: PlanMovedError, UnstampedPlanError (planstamp.go:48, :76-92) moved (the error carries planMoved: true, capability.ts:502-506)
    stock: fresh preview beyond the approved shape (PlanShapeMovedError) moved
    stock with --plan (question A (a)): the engine refuses a step outside the plan moved
    apply-time digest differs from the approved one (core, pr-run.ts) moved
    mandatory CrossGuard violation in the plan job's preview refused by policy (no gate opens)
    exit 2 (configuration), 3 (authentication), 6 (stack not found), missing binary failed, nothing changed
    exit 1 or 4 during up, including plunge's RecordConflictError and InFlightDependencyError failed; the stream's events name the resources that landed
    exit 8 (cancelled), 9 (timeout), 10 (await), 255 failed

    Pulumi'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. A RecordConflictError mid-up counts 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.

    • (a) Write pulumi preview --save-plan in the apply job and run pulumi up --plan <file> with PULUMI_EXPERIMENTAL=true (the flag is hidden and experimental, up.go:968-975); a step outside the plan stops the update.
    • (b) Run 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.
    • (c) Rely on the fresh preview alone.

    B. pulumiPreviewDigest covers every step, same steps 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).

    • (a) Keep same and read steps in the digest for every member.
    • (b) Leave same and read steps 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) Leave them out for every member, stock included.

    C. preview --json drops policy events (plunge pkg/backend/display/json.go:247-249, the same code as stock), so CrossGuard violations cannot be read from the digest the change set parses.

    • (a) Run the preview with PULUMI_ENABLE_STREAMING_JSON_PREVIEW=true (sdk/go/common/env/env.go:175) and parse the event stream: steps from the resource events, violations from policyEvent. 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.
    • (b) Keep the printed digest and read only the preview's failure: a mandatory violation fails the member, and advisory ones go unseen.
    • (c) Change plunge to keep policy events in the digest, and give stock (b).

    D. run with no approved plan handed in (chant run --components, a release promote, a fan-out with no wave gate).

    • (a) Preview and up in one go, as terraform-apply does 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.
    • (b) Refuse, so up runs only under a plan an approval bound.
  5. lex00 commented on Oct 27, 2026

    @lex00
    ContributorAuthor

    Ruling for ci-products (2026-10-27)

    • A. Stock Pulumi apply: compare events. Run pulumi up --yes --json and 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.
    • B. Digest: leave same and read steps out for members on the resource grain; plunge's stamp still refuses a moved record among changed steps.
    • C. CrossGuard: streaming JSON. Run preview with PULUMI_ENABLE_STREAMING_JSON_PREVIEW=true and parse the event stream (steps from resource events, violations from policyEvent); a recorded fixture checks the digest matches.
    • D. No approved plan handed in: preview and up in one go, as terraform-apply does with no plan.
  6. lex00 commented on Oct 27, 2026

    @lex00
    ContributorAuthor

    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,bundle and npx tsx scripts/typecheck.ts pass 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 existing Capability interface and is registered by pulumiCapabilityPlugin. 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's pulumiMemberEngine, and the artifact keeps its source and because so the plan output can print them. rollbackPolicy: "needs-opt-out", targets: "accept", plus outputs and releaseInputs.
    • run.ts gains runApplyPulumi and runApplyPlunge, each checking one fixed form in PULUMI_APPLY_COMMANDS: plunge up --plan <file> --yes --json --stack <s> and pulumi up --yes --json --stack <s>, then optionally --config-file, each --target, and --policy-pack with --policy-pack-config, in that order. Every other flag is refused. runAllowedPulumi and runAllowedPlunge still refuse up, and a preview now refuses --show-secrets and --import-file. PulumiRunner takes an optional env for the one run.
    • C: plan runs preview --json --show-sames --stack <s> (with --save-plan into an OS temp scratch dir on plunge) under PULUMI_ENABLE_STREAMING_JSON_PREVIEW=true. lexicons/pulumi/src/engine-events.ts turns 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. policyEvent lines become gate-policy findings with rules named crossguard.<pack>.<policy>. A mandatory violation, or Pulumi's policy exit, throws PulumiPolicyDeniedError (policyDenied: true, exitCode 7). Advisory ones stay on the artifact and the run output.
    • B: on the resource grain (lockGrain, default resource on plunge and target on stock) pulumiPreviewDigest(preview, { changedOnly: true }) leaves same and read steps out, under its own label. A stock member set to resource throws PulumiResourceGrainRefusedError.
    • Item 4: pulumiPlanShape (lexicons/pulumi/src/plan-shape.ts) has one entry per changing URN, with type, replacement (conditional when every forcing input is unknown), properties and unknown, and mayAppear entries kept. pulumiShapeDifferences drops resources under a component the approval marked mayAppear before it calls core's planShapeDifferences.
    • plunge run: plunge up --plan <file> with the plan's file. Exit 40 throws PulumiPlanMovedError (planMoved: true, the table's moved code 4).
    • A, stock run: it previews again and throws PlanShapeMovedError when that preview goes beyond the approved shape. Then it runs pulumi up --yes --json and compares the steps the update ran (resourcePreEvent without planning) with the approved shape. A difference throws PulumiAppliedShapeError, a failure and never a moved plan, with the differences in the message the apply record keeps.
    • D: with no plan handed in, run plans and applies in one go on both engines.
    • Every other exit goes through 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. After up, the outputs come from stack output --json --show-secrets=false, and summary comes from the summaryEvent, with plunge#55's plungeTimings by URN when present.
    • Config: config goes into a scratch copy of Pulumi.<stack>.yaml (mode 600), passed with --config-file. A key with no : gets the project prefix. The scratch dir is removed after run.
    • Roll back a Terraform root to a named release: record root trees in release cut, plan them on promote and rollback --release #4542 hook: releaseInputs answers { field: "dir", dir, paths } for the stack's directory, plus main when it points outside the directory. A stack whose backend is a file:// (or plunge+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.
    • Docs: a pulumi-up row 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 in run.test.ts.

    Still missing:

  7. lex00 commented on Oct 28, 2026

    @lex00
    ContributorAuthor

    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>, and stack rm --yes --stack <pr-stack> (never --force, so the engine refuses to remove a stack that still holds resources). isReviewStackName takes pr-<n> or pr-<n>-<suffix>, after at most an organization and a project. runReviewStackPulumi and runReviewStackPlunge refuse 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) and removeReviewStack (destroy, then rm; a stack already gone counts as absent, so a second sweep removes nothing twice).
    • Exported from the lexicon's index. Tests: src/review-stack.test.ts, with fake runners.

    Not wired yet: core's ci.prEnvironment runs (components pr-env up|down|sweep) do not call these. To do that, the pulumi-up capability would need to target stack pr-<n> when DeployContext.env is a pull request's environment and call initReviewStack before its first preview, and the pulumi lexicon would need a teardownOwned/teardown that calls removeReviewStack for the record's stack. That is a pulumi-lexicon feature to file; plywood#15 builds its config and words on top of it.

  8. lex00 commented on Oct 28, 2026

    @lex00
    ContributorAuthor

    pulumi-up now 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 with It 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:

    • A release copy keeps its rules.
    • In a checkout, a Node program gets one <engine> install when there is no node_modules in its directory or above it (a hoisted workspace install and Yarn's .pnp.cjs count) 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.
    • The argv is the same allowlisted pulumi install / plunge install, and the step's backend applies to it.
    • The install runs once per directory per process, whichever engine asks first. Two stacks of one project on plunge and stock Pulumi never install into one directory at the same time.

    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 planned for shop/dev.

  9. lex00 commented on Oct 29, 2026

    @lex00
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:ci-productsepic:plywood

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions