Repository navigation
[delivery] add decision rule - #22
Conversation
AI-1093 Delivery provider: Decision rule
Track the provider/SDK Implemented in pulumi/pulumi-delivery#22. AI-1094 Optional: gate a Delivery stage on preview → Agent → Decision
Make a stage gate consume a Delivery preview, run an Agent against that evidence, and use its structured output in a Decision before promoting or stopping the stage. This is optional for the November 18 demo. It is the likely follow-up if the static Agent and Decision resource work is not ready in time. It must make dependencies explicit rather than relying on resource ordering. |
b6c6aa0 to
a6bebf0
Compare
|
@pulumi-eon /review |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
I reviewed the provider changes (rule_functions.go, annotations.go, main.go, the new test) and spot-checked the generated schema.json and SDK files. The SDKs are consistent with the schema as far as I read them, and I did not regenerate them. The provider tests pass.
One blocking issue: a decision rule written as a literal on a Stage, or nested in all/any, skips all decision validation. Only the delivery.decision() builder validates it. There are also a few nits (NaN threshold, context described as bounded and non-secret without enforcement, thin test coverage).
The PR description is stale. It mentions Delivery preview evidence and rejecting unsupported evidence sources, but the head commit removed the evidence field and its validation. Please update the description to match. The PR also depends on #21 and pulumi/pulumi-service#52302, which I did not check. I also did not check that the service validates decision rules itself.
Specialist passes: child sessions
|
@pulumi-eon /review |
This comment has been minimized.
This comment has been minimized.
|
@pulumi-eon /review |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Re-review of the changes since my last review. The earlier blocking finding is fixed: validateRuleValue now validates literal decision rules (including ones nested in all/any) through validateDecisionValue, and the new TestLiteralDecisionRuleValidation drives them through Construct. The NaN threshold is rejected, question errors are reported in sorted order and name the question, and the context descriptions no longer claim the provider enforces bounds. I ran go test ./... in provider/ and it passes. The generated SDK and schema changes in the incremental diff are description-only and match the provider annotations.
One nit remains (inline): the unknown-value branches of the new validator have no test.
Two things I could not check from this repo. The new context descriptions say Delivery rejects secret values and caps encoded size at 16 KiB. The provider enforces neither, so that is only true if the service does it (pulumi/pulumi-service#52302 is the likely place). The PR description also still mentions Delivery preview evidence and rejecting unsupported evidence sources, but there is no evidence field in the schema or provider any more. Please update it.
I am not approving. This adds a new public builder, resource types and SDK surface across five languages, which is a one-way door for consumers, and it depends on #21 and the service PR. A person should sign off on the contract. This is an automated assessment, not a human review.
Specialist passes: child sessions
Blocking findings addressed; see the follow-up review.
|
@pulumi-eon /review |
Review Verdict: Comment OnlyHIGH risk: The new commit only adds the unknown-value tests I asked for, and the provider tests pass. I did not approve because this adds a new public decision builder and SDK surface across five languages, which is a one-way door. It also depends on pulumi-service#52302 for enforcing View session · Was this review helpful? Yes · No |
There was a problem hiding this comment.
Re-review of the one commit since my last review (7797ab8, test-only). It adds the unknown-value cases I asked for in TestLiteralDecisionRuleValidation: unknown questions, an unknown question, unknown instructions, unknown maximumRisk, and an unknown question next to an invalid one that still errors. That resolves my earlier nit. I ran go test ./... in provider/ and it passes. I found no new issues in the incremental diff.
The PR description now matches the code (the stale evidence wording is gone).
I am not approving. This adds a new public delivery.decision builder, resource types and SDK surface across five languages. That is a one-way door for consumers, and it depends on pulumi/pulumi-service#52302 for the runtime, which I could not check from this repo. The context descriptions say Delivery rejects secrets and caps encoded size, which holds only if the service enforces it. A person should sign off on the contract. This is an automated assessment, not a human review.
Specialist passes: run directly (the incremental diff is a single test-only change; the full diff went through child-session specialist passes in earlier rounds)
| // DecisionQuestion is a narrow judgment. MaximumRisk maps its probability to a deterministic gate outcome. | ||
| type DecisionQuestion struct { | ||
| Instructions string `pulumi:"instructions"` | ||
| MaximumRisk float64 `pulumi:"maximumRisk"` |
There was a problem hiding this comment.
I didn't expect maximum risk to be an actual property. Is that the one they need to set for the gate? It seems narrow as opposed to more flexible to different types of decisions
* Add Pulumi Delivery docs for the Nov 18 public preview (#347) * Scaffold Pulumi Delivery docs for the Nov 18 public preview Adds a new top-level Delivery docs section: landing page, get started, concepts (sources and triggers, stages and gates, members), guides (cloud credentials, pipeline patterns, connected pipelines, a draft notifications stub), and operations (runs and stages, permissions, troubleshooting, limits). Content is drafted from the pulumi/delivery 0.0.1-alpha.5 schema and registry guide, with TODO(launch) comments for items to verify against the GA build. Adds hidden delivery and delivery-approvals features to the pricing data so pages can carry availability markers. Refs MA-868 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Rename Delivery members to steps and trim the concepts overview Calls the resources that do work in a stage (Stacks, Job, Artifact) steps instead of members across the Delivery docs, and moves concepts/members.md to concepts/steps.md. Describes a stage as a phase so it doesn't collide with the new term. In the concepts overview, drops the registration exit-code detail, states that you can't run pulumi up on a run stack, and removes the Delivery and Deployments section for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Describe the pipeline service principal and drop notifications Delivery runs each pipeline as one Pulumi Cloud service principal, created at registration with access to the target stacks or chosen in the pipeline program (DLV-434). Document that on the permissions page, replace the organization-wide Delivery identity and default deployment role everywhere else, and list per-stage identities as a known limitation. TODO(launch) comments mark what DLV-434 still has to settle. Remove the notifications stub: notifications are out of scope for the Nov 18 public preview and will be documented when they ship. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop unsupported-in-preview lists from the Delivery docs Removes statements that list features Delivery doesn't support during public preview (time-based and ESC triggers, dispatch inputs, the http() rule, custom VCS sources, customer-managed runners, a pulumi delivery command), since what ships later isn't settled. Rewords the limits page around current behavior to plan around, and states the single service principal and Pulumi-managed runners as facts rather than temporary gaps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove duplicate step time limit from Delivery limits page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Call Delivery work actions and give artifacts their own page Renames steps to actions across the Delivery docs and moves concepts/steps.md to concepts/actions.md. Actions are the Stacks and Job resources; a note on the actions page and the overview says they aren't GitHub Actions. Generic uses of "action" on the permissions and runs pages become "operation". Artifacts aren't actions, so they move to a new concepts/artifacts.md that covers publishing, reading them with a PipelineSource, and secret artifacts. The overview, landing page, and connected-pipelines guide link to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Go back to calling Delivery work resources members The product team decided to keep the package's term. Renames actions back to members across the Delivery docs and moves concepts/actions.md to concepts/members.md, dropping the GitHub Actions disambiguation. Artifacts keep their own page and are described as the member that publishes a value rather than doing work, matching the SDK, so the 200-member limit needs no artifact caveat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Describe artifacts as part of a release, not members Per the Delivery team, artifacts aren't members of a stage; they're part of a release. Corrects the members page, the concepts overview, and the artifacts page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Give Stacks and Jobs their own sections in the Delivery concepts overview Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fold artifacts into stages and gates; rename members page to stacks and jobs Artifacts move from their own concepts page into a section of the stages and gates page, and become a subsection of Stages in the concepts overview. concepts/members.md becomes concepts/stacks-and-jobs.md and is rewritten around Stacks and Job, keeping members only as the collective term. Links and landing-page cards follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop the members concept from the Delivery concepts overview Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Refer to stacks and jobs explicitly instead of members Drops the members concept from the rest of the Delivery docs. Each use now names stacks and jobs (or stack updates and jobs) directly, including the limits table, the runs page, credentials, permissions, and the pipeline patterns guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * State that artifacts don't count toward the Delivery 200 limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Recommend ESC for secrets and credentials on the stacks and jobs page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Put approval gates ahead of manual gates on the stages and gates page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop the deployment settings reference from Delivery cloud credentials Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Explain that stack references order the stacks in a Stacks resource Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Describe Stacks group ordering as the service implements it Entries in a Stacks resource start together. A stack reference to another entry waits for that entry's update through the group's coherence window, so references decide the order, unrelated stacks update side by side, and a reference cycle fails with an error. Verified against pulumi-service cmd/service/services/delivery/groups.go and cmd/service/model/stack_update_coherence_window.go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Correct Delivery docs against current pulumi-service and provider code Verified against pulumi-service 56b4dea and pulumi-delivery fc1f6ed: - Registration messages quoted verbatim, including the upstream-release message; the message prints during the update, not as the last line. - Console button is Start a run. - Stage operations: no pause or resume exists and rollback doesn't pause; routes and request bodies from the OpenAPI spec. - Retry keeps the run number and reopens gates of unfinished stages. - Run and stage operations accept any credential with write access except Delivery's own run tokens. - Jobs can read outputs from the same or an earlier stage. - trigger takes { paths: [...] }; superseding is by newer release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Correct gates, artifacts, and jobs against current Delivery code - Registration rejects unknown approver names; a gate only waits if an approver leaves later. approval() defaults to the name approval. - Nesting depth counts the leaf rules; jobs aren't previewed. - Continue needs a rule name only with several manual rules; 409 also means the gate closed or the run ended. - Downstream pipelines see artifacts once the stage deploys the release, including artifacts of earlier stages. - Jobs get a short-lived token for uploading outputs; preRunCommands run before a job's command, after pulumi install for stacks. - Stored pipeline stack config wins over the repository file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Count artifacts in the Delivery 200 limit and describe shared concurrency Delivery shares the organization's Pulumi Deployments concurrency limit, which depends on the edition. Per-edition numbers wait on DLV-608. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use the Delivery limits the service enforces Per Florian (#team-delivery): 1,000 members, 5,000 passes, 1,000 stages, 100 sources, 100 config keys and 64 KiB per Stacks entry, and a timeout of 5 minutes to 24 hours (2 hours by default). The limits are not hard caps and can be raised. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove the support note under the Delivery limits table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Align Delivery docs with the Pulumi writing-style guide From a review against brand.pulumi.com/voice/writing-style: - Rewrite the permissions table as prose and the troubleshooting bold lead-ins as a definition list. - Add intros to lists, make the operations index items parallel, and rename the duplicate Limits heading. - Standardize placeholders as <kebab-case>. - Remove repeated facts: registration messages live in troubleshooting, stage replacement in stages and gates. - Add Next steps to concept and guide pages and a Get help section to troubleshooting. - Fix an Essentials reader trap in Get started, a generalization in the overview, and the approver-name guidance in troubleshooting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Show Delivery code samples in every supported language Every TypeScript snippet in the Delivery docs is now a language chooser with Python, Go, C#, and Java versions. Get started creates the pipeline project with pulumi new for the chosen language. The gates prose notes that Python, Go, C#, and Java build rules as RuleArgs with a kind. Verification: TypeScript compiled with tsc --strict and Go with go build/go vet against the generated SDKs; Python ran under Pulumi mocks; C# and Java were checked against the generated SDK source (no toolchain available). The Python SDK currently fails to register a GitHubSource (circular import), noted in a TODO. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Name Pulumi ESC on first mention in Delivery permissions and troubleshooting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Note that the Delivery landing page icons come from marketing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove the Delivery concepts diagram until design provides a branded one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Give each Delivery stage operation its own heading and request block Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Give each Delivery troubleshooting symptom its own heading and drop the exit-code detail Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Note linking Delivery API examples to the public API reference Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Describe where Delivery runs read pipeline stack config Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Tighten wording in Delivery limits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Address pre-merge review: source name, DELIVERY_RUN, credentials setup, approval permissions, style Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Note switching Delivery examples to the pulumi new template once it ships Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Trim Delivery docs for launch and cull the operations section to limits Removes the permissions, runs and stages, and troubleshooting pages, tightens the concepts and guides, and repoints links that targeted the removed pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove Delivery Get started for now and note the upcoming registration command Moves the dispatch API example to Sources and triggers, repoints links that targeted Get started, and adds TODO(launch) notes to restore it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Say Pulumi Delivery is available in every edition, with one pipeline on Free Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add YAML and HCL examples to the Delivery docs Every language chooser now covers YAML and HCL, and the concepts intro says pipelines can be written in any language Pulumi supports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Simplify the language sentences in the Delivery concepts intro Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop a stray word in the Delivery concepts intro Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Address structural review feedback on the Delivery docs - Add an example pipeline to the concepts overview, in every language. - Replace the operations section with a top-level Limits page. - Use gerunds for task headings, including Connecting pipelines. - Spell out Pulumi Delivery on first mention on each page. - Describe gates without naming per-language APIs. - Use general examples instead of smoke tests in concepts prose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Update content/docs/delivery/concepts/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update content/docs/delivery/guides/cloud-credentials.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Address content review feedback on the Delivery concepts Define a release once, move the first-pass caveat to the sources page, list manual gates first and contrast them with approval gates, explain the approval preview, the artifact analogy and value types, target stack creation, Stacks concurrency, and what a trigger is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Clarify Stacks config, drop the dispatch key, and trim the limits page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply cnunciato's review suggestions to the Delivery concepts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Tighten the gates and guides intros Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Reposition the Delivery concepts intro Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Make the Delivery guide examples complete programs and apply review feedback Add imports and source/pipeline declarations to every example in Pipeline patterns and Connecting pipelines, move the stack-reference example into Stacks and jobs, fix the monorepo guidance to point at trigger paths, and explain why downstream service principals need upstream read access. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply suggestion from @cnunciato Co-authored-by: Christian Nunciato <c@nunciato.org> * Reword the pinned-commit sentence on Sources and triggers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Restore the YAML example that an outdated suggestion truncated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply remaining review feedback to the Delivery docs Put the non-ESC credentials approach first, explain why downstream pipelines' service principals need upstream access, drop the YAML helper-function example, and tighten wording. * Fix issues from the docs review of the Delivery pages Fix broken code examples, align concepts and guides with the provider schema (releases, registration, environment, timeout, triggers, artifacts), update stale descriptions, and leave TODOs for open product questions. * Drop the YAML note from the helper example and restore the release definition on Sources and triggers --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Tatiana <tcooke@pulumi.com> Co-authored-by: Christian Nunciato <c@nunciato.org> Co-authored-by: Christian Nunciato <chris@nunciato.org> * Add container image builds to Delivery pipeline patterns (#352) * Add container image builds to Delivery pipeline patterns --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Declare the pulumi/delivery provider in Delivery HCL examples (#353) Without a required_providers entry, Pulumi HCL resolves delivery_* resources against registry.opentofu.org/hashicorp/delivery and pulumi install fails. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Update Delivery docs for explicit registration and delivery:source (#356) * Update Delivery docs for explicit registration and delivery:source pulumi/pulumi-delivery#20 removes Pipeline.program, moves the program location to the delivery:source stack config, and makes registration explicit with PULUMI_DELIVERY_REGISTER=true. - Drop `program` from every Pipeline example in all languages. - Describe delivery:source and the registration command in the Pipeline program concept, and note that a plain `pulumi up` on the pipeline stack is refused. - Tell monorepo users to set `directory` in delivery:source. - Resolve the ESC TODO: the generated principal gets stack access, not environment access. - Format code examples with pulumi-service's Prettier, Ruff, and gofmt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use pulumi delivery register and trim the pipeline program section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Pose <albertopose+pulumi-v6.pose.desktop.rocks@gmail.com> * Document pulumi delivery register and runs from your checkout (#364) * Document pulumi delivery register and runs from your checkout Registration now uses `pulumi delivery register`, which writes delivery:source from the git checkout when it is missing. A plain `pulumi up` on the pipeline stack runs the pipeline from your checkout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Require Pulumi CLI v3.277.0 for Delivery Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply review suggestions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Simplify the pipeline program section around register and local runs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Add Delivery agents and decision gates docs (#360) * Add Delivery agents and decision gates docs Document the Agent stage member (pulumi/pulumi-delivery#21) on a new Agents concept page, and the decision gate rule (pulumi/pulumi-delivery#22) in Stages and gates. Link both from the Delivery home and Concepts pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Mark Delivery agents as a Pro and Enterprise feature Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Tighten Delivery agents and decision gates copy from review Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Mark decision gates as a Pro and Enterprise feature Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Note Neo token usage for agents and the decision gate evidence limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Use the Pulumi Agents edition callout for decision gates Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Rework the decision gates intro Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix typos in the decision gates intro Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop decision gate evidence and Neo wording per Delivery feedback Decision gates now pick up the stage preview automatically, so the examples no longer pass `evidence`. Agent usage refers to Pulumi Agents rather than Neo tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Name Jev and clarify decision gate behavior per Delivery feedback Name TypeSafe's Jev, require a Stacks member in decision gate examples, describe rejection instead of human approval, separate agents from decision gates, and note the Jev context window limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Add Delivery and Agents to the Product menu and footer (#366) * Add the Pulumi Delivery icon and a Pulumi Agents alias for Neo (#22965) Matches pulumi/marketing-web#361. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Add Delivery and Agents to the Product menu and footer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Rename menu items to Delivery as code and AI infrastructure agent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Words --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Christian Nunciato <chris@nunciato.org> * Add a Get started guide for Pulumi Delivery (#368) * Add a Get started guide for Pulumi Delivery Walks through registering a pipeline with `pulumi delivery register` and deploying one app stack through dev, staging, and prod, with a manual gate before prod. Adapted from the launch blog example. Restores the Get started links on the landing, concepts, and pipeline patterns pages, and leaves a TODO to switch to a `pulumi new` template. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Update Delivery Get started from an end-to-end run Ran the TypeScript path on a test organization. Describes the console path to the run and the gate, notes that registering lists each stage as waiting, drops the now-verified first-run TODO, and records the prod stack access failure as a launch blocker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * State that Delivery is available in every edition Drops the TODO to add a pulumi_cloud_feature marker, since markers are only for features that aren't available on the Free edition, and notes the Free edition's one-pipeline limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Remove resolved TODOs from Delivery Get started Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Trim the Delivery Get started prerequisites Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * Document service principals, permission modes, deployment identity and Delivery pipeline identity (#362) * Document service principals, permission modes and deployment identity Add pages for service principals and permission modes, rewrite the deployment "Pulumi Cloud role" page as "Run as", and update the RBAC, access token, organization, least-privilege, audit log and agent pages for built-in default roles, entity access and service principals. Remove the gated deployments guide: the ESC open approval workaround does not work for stacks that run as a service principal or a team. Its URL now redirects to the deployment permissions page. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Document what a Delivery pipeline runs as Add a Pipeline identity page covering the generated service principal, running as a service principal you manage or as a team, who can choose the identity, the Free edition, and run stack access. Correct the statements about the pipeline's service principal and job tokens on the cloud credentials, connecting pipelines, and stacks and jobs pages. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * Match the Everyone team section to pulumi/docs master Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> Co-authored-by: Christian Nunciato <c@nunciato.org> * Reorganize Pulumi Agents docs and integrate launch guides (#361) * Reorganize Pulumi Agents docs and integrate launch guides Co-authored-by: Luke Ward <lward@pulumi.com> * Consolidate shared agent workflows and revise AI setup guides * Correct Sentry and Datadog webhook setup steps * Clarify agent usage limit resets and email alerts * Document default thinking options for agents * Remove organization instructions screenshot --------- Co-authored-by: Luke Ward <lward@pulumi.com> * Add platform diagram to Delivery concepts page * Address issues Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: GH Action - Upstream Sync <action@github.com> Co-authored-by: Daniel Perlovsky <dperlovsky@pulumi.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Tatiana <tcooke@pulumi.com> Co-authored-by: Alberto Pose <albertopose+pulumi-v6.pose.desktop.rocks@gmail.com> Co-authored-by: Jeff Merrick <jmerrick@pulumi.com> Co-authored-by: Boris Schlosser <boris@pulumi.com> Co-authored-by: Mark <mark@pulumi.com> Co-authored-by: Luke Ward <lward@pulumi.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| // DecisionQuestion is a narrow judgment. MaximumRisk maps its probability to a deterministic gate outcome. | ||
| type DecisionQuestion struct { | ||
| Instructions string `pulumi:"instructions"` | ||
| MaximumRisk float64 `pulumi:"maximumRisk"` |
There was a problem hiding this comment.
I'm not sure a user actually wants to set this / knows what value to pick. IMO we should do that implicitly for users. And I agree with Tyler, maximum risk doesn't sound like the right name to me.
As a start I'd vote for not exposing this
There was a problem hiding this comment.
I think let’s keep it for now since it’s in all the blogs. It’s a bit of a tough one to infer because it’s a threshold for when the user is ok if the answer to their question is past that
There was a problem hiding this comment.
Ok, that's fair. But let's aim to simplify the config surface and make the experience as smooth as possible
…ource # Conflicts: # provider/cmd/pulumi-resource-delivery/schema.json # provider/rule_functions.go # provider/rule_functions_test.go # sdk/dotnet/Decision.cs # sdk/dotnet/Inputs/DecisionQuestion.cs # sdk/dotnet/Inputs/DecisionQuestionArgs.cs # sdk/dotnet/Outputs/DecisionQuestion.cs # sdk/java/src/main/java/com/pulumi/delivery/DeliveryFunctions.java # sdk/java/src/main/java/com/pulumi/delivery/inputs/DecisionArgs.java # sdk/java/src/main/java/com/pulumi/delivery/inputs/DecisionPlainArgs.java # sdk/java/src/main/java/com/pulumi/delivery/inputs/DecisionQuestion.java # sdk/java/src/main/java/com/pulumi/delivery/inputs/DecisionQuestionArgs.java # sdk/java/src/main/java/com/pulumi/delivery/inputs/Rule.java # sdk/java/src/main/java/com/pulumi/delivery/inputs/RuleArgs.java # sdk/java/src/main/java/com/pulumi/delivery/outputs/AllOfResult.java # sdk/java/src/main/java/com/pulumi/delivery/outputs/AnyOfResult.java # sdk/java/src/main/java/com/pulumi/delivery/outputs/ApprovalResult.java # sdk/java/src/main/java/com/pulumi/delivery/outputs/DecisionQuestion.java # sdk/java/src/main/java/com/pulumi/delivery/outputs/DecisionResult.java # sdk/java/src/main/java/com/pulumi/delivery/outputs/HttpResult.java # sdk/java/src/main/java/com/pulumi/delivery/outputs/ManualResult.java # sdk/python/pulumi_delivery/_inputs.py # sdk/python/pulumi_delivery/outputs.py
Does the PR have any schema changes?Generated by schema-tools v0.8.1. Looking good! No breaking changes found. New functions:
New types: 1Maintainer note: consult the runbook for dealing with any breaking changes. |
Summary
delivery.decisionrule builder and typed decision-rule inputs across the provider schema and generated SDKswhendecision rules consistentlyRequires pulumi/pulumi-service#52302 for the Delivery decision-gate runtime.
Validation