Repository navigation
feat(examples): golden example L3 — approval gate on Temporal (#216) - #226
Merged
Merged
Conversation
L3 adds a gated production shape over the same L1 declarations. deploy-gated.op.ts inserts an approval gate before the apply, plus an onFailure rollback. A gate is a durable wait-for-signal, so this Op runs on Temporal (--temporal), not the local executor — L2's `deploy` stays the fast local path. chant run deploy-gated --temporal # pauses at "Approve" chant run signal deploy-gated approve-deploy # releases it - deploy-gated.op.ts — Build → Approve (gate) → Apply, with Rollback onFailure - chant.config.ts — typed temporal `local` profile (read by the Op worker) - README — L3 section; status note now L1–L3 - test — compile check (gate present, phases, onFailure rollback) Build-only validated, as with L2 (no cluster/Temporal in CI). The gated run is a documented local step. examples.test.ts: 151 passed. Part of #216. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
L3 of the golden teaching example — a human-approval gate, on Temporal.
What L3 adds
deploy-gated.op.tsis L2's deploy with one addition: an approval gate before the apply, plus anonFailurerollback. A gate is a durable wait-for-signal (holds for hours, survives a worker restart), so this Op runs on Temporal — the local executor errors on a gate by design. L2'sdeploystays the fast local path; this is the gated production shape.Phases: Build → Approve (gate) → Apply, with
onFailureRollback.deploy-gated.op.ts— the gated Opchant.config.ts— typed temporallocalprofile (read by the generated Op worker)README— L3 section; status note now L1–L3Validation (build-only, as agreed)
No cluster/Temporal in CI. A compile test asserts the Op is well-formed — phases
[Build, Approve, Apply], an actualgatestep in Approve, and anonFailureRollback. The gated run is the documented local step.eslint packages/clean.Part of #216.
🤖 Generated with Claude Code