Repository navigation
Description
People who don't write infrastructure code should be able to get what they need without waiting on someone who does: a new app from an approved template, a database or cache added to that app, a routine operation such as rotating a credential, and an upgrade when the template moves on. They fill in a form in behold, or ask an agent, and the change still lands the way every other change does: as a pull request that is planned, policy-checked, approved against its plan and applied in waves. This epic adds that feature across behold, terragucci, plywood and chant.
behold never changes infrastructure here. Every request becomes a pull request (or, for a day-2 action, a gated request on the chant ledger), so a form, an agent and a person at a shell all go through the same review.
Design
- Templates. A template is a module published through terragucci's module registry: tested before release, signed, recorded on the release ledger, and listed in the release catalog (
catalog/index.json, terragucci: the catalog preset andterragucci modulesterragucci#1297). Atemplate.ymlbeside the module marks it as a template and names the inputs the form asks for. behold gets a Templates tab that lists them and renders a form from the catalog'sterraform.inputs. Submitting the form makes terragucci open a pull request that adds an app: a new root underapps/<name>/whose only module call is the template, pinned to the exact version. plywood follows for Pulumi component packages once its package registry lands (A private package registry for Pulumi packages, with tests before release plywood#32, ruled "after v1"); until then plywood takes only the parts that need no registry (day-2 actions). - Add-ons. The same form on an existing app opens a pull request that adds one module call (a database, a cache) to that app's root, in its own file. behold draws the app and its add-ons as one group on the graph, with drift from terragucci's reports.
- Day-2 actions. A Terraform
actionblock in an app is run from a/terragucci actionpull request comment or from a behold button that dispatches terragucci's workflow. Each run is a gated request on the chant ledger (optf-action), approved under the same rules as a wave, and recorded with its outcome; behold shows the history. Pulumi gets the same feature through a gated stack operation in chant's pulumi lexicon. - Agent requests. terragucci's MCP server (and plywood's) gains a
request_from_templatetool that opens the same pull request, so an agent's request is reviewed like a person's. - Upgrades. A new template version rolls out to every app built from it through terragucci's existing module rollout, one pull request per wave.
Shared parts go to chant first (CONTRIBUTING placement: chant core, then the engine lexicon, then the product): the request document and its pull request, rendering a root or a module call from a catalog version, the gated action operations, the MCP tier that may write to the forge, and the harness steps that follow a pull request a product opened.
Defaults taken
- The pull request's files are the record. An app is a root under
templates.apps(defaultapps/<name>/) whose module call sources a template; an add-on is another module call that sources a template of kindaddon. No marker file. - A version is offered only when the catalog lists it as active (not deprecated or yanked) and its attestation is
verifiedorsigned.templates.require: signedis the default;anyturns it off. - Inputs the module marks
sensitiveare never asked in a form or an MCP call; the request is refused and names the secret store setting. - Request branches are
request/<template>/<app>andrequest/<template>/<app>/<addon>; a second request with the same branch returns the open pull request rather than opening another. - The requester is named in the pull request body and in terragucci's audit record (
requestentries). Approval rules are the repo's, unchanged. - Day-2 actions run only on Terraform 1.14 or newer. OpenTofu and choudoufu roots answer with a refusal naming the binary (see question E).
- behold reaches terragucci only by dispatching its workflow through the operator's
gh(GitHub, Forgejo), the pathPOST /api/ci/dispatchalready uses. GitLab takes theterragucci requestandterragucci actionCLI path until behold has a GitLab trigger. - Build order and packaging follow the epic convention: units build against local packs of chant (
just chant-local), releases and harness runs come last.
Open questions
A. How behold's form reaches terragucci.
- (a) behold dispatches terragucci's
requestworkflow with the form as inputs; the pull request is opened by the pipeline's token and names the dispatching person. Recommended: behold keeps holding no forge write credential beyond a dispatch, and the path is the one Deploy already uses. - (b) behold runs
terragucci requestlocally with the operator's forge token.
B. Where a module says it is a template. - (a)
template.ymlin the module's directory, published inside the release so it is signed and versioned with the module. Recommended. - (b) a
templates:list in the publishing repo's terragucci.yml. - (c) every published module is a template.
C. Where an add-on lives. - (a) a module call in a new file
apps/<app>/addon-<name>.tfin the app's own root. Recommended: one root, one state, one plan, and the add-on can read the app's outputs directly. - (b) a separate root
apps/<app>/<addon>/that reads the app through remote state.
D. Upgrade trigger. - (a) a person starts it (
terragucci rollout <template> <version>or behold's Upgrade button); the existingrolloutsschedule carries it wave to wave. Recommended. - (b) a publish of a new template version starts the rollout itself.
E. Day-2 actions on OpenTofu and choudoufu roots. - (a) refuse with the binary's name until the engine has
actionblocks. Recommended. - (b) emulate an action as a
terraform_datareplace under-replace.
F. The Pulumi side of day-2 actions. - (a) an action is a
commandprovider resource named in plywood.ymlactions:, run as a preview and an update with--target <urn> --replace <urn>under a gated request. Recommended: it needs no registry and no new engine feature. - (b) a program-defined function run through the automation API.
- (c) no Pulumi actions in this epic.
G. Pulumi templates before A private package registry for Pulumi packages, with tests before release plywood#32. - (a) wait for A private package registry for Pulumi packages, with tests before release plywood#32 and take packages from its registry. Recommended, matching the ruling.
- (b) read component packages by git tag in the meantime.
Order to build
- chant: the harness steps (they are how every later unit proves itself), then the request document, the root rendering, the Terraform action operation, the Pulumi action operation and the MCP tier, in any order.
- terragucci: apps from templates, then add-ons, day-2 actions, the MCP tool and upgrades.
- behold: the Templates tab, then apps and add-ons on the graph, then action buttons and history.
- plywood: day-2 actions now; templates, the MCP tool and upgrades after A private package registry for Pulumi packages, with tests before release plywood#32 and Roll a package version out to its consumer repos, one pull request per wave plywood#34.
- Releases, then the harness runs for every unit, last.
Done when
-
In behold on a terragucci repo, the Templates tab lists each active signed template; filling in the form fornot run: emulator runs dropped by maintainer ruling 2026-10-28; covered by unit tests and CIordersopens a pull requestrequest/<template>/ordersaddingapps/orders/main.tf, which plans onlyapps/orders, waits at its wave for an approval of its digest, and applies after merge. -
On thenot run: emulator runs dropped by maintainer ruling 2026-10-28; covered by unit tests and CIorderscard, Add an add-on opens a pull request addingapps/orders/addon-<name>.tf; after it applies, the graph drawsorderswith the add-on in one group and shows drift on either from the newest drift report. -
On thenot run: emulator runs dropped by maintainer ruling 2026-10-28; covered by unit tests and CIorderscard, an action button (or/terragucci action apps/orders <address>on a pull request) records a pendingtf-actionrequest; after a second person approves it, the action runs once, and behold's history forordersshows the request, the approval and the outcome. -
An agent callingnot run: emulator runs dropped by maintainer ruling 2026-10-28; covered by unit tests and CIterragucci:request_from_templategets the same pull request the form opens, with the same plan, policy result and gate. -
Publishing a new template version and starting its rollout opens one pull request per wave moving every app's pin, and the next wave opens only after the previous one merged and applied.not run: emulator runs dropped by maintainer ruling 2026-10-28; covered by unit tests and CI -
plywood: a Pulumi stack's declared action runs under the same gate and record; Pulumi templates follow A private package registry for Pulumi packages, with tests before release plywood#32.deferred: plywood#40, Op codegen can't surface activity return values as workflow search attributes #41, describeResources() coverage gap: 9 of 11 lexicons not yet implemented #42 -
Every unit's harness scenario has a row withnot run: emulator runs dropped by maintainer ruling 2026-10-28plain: passandbreak: caught.
Units
Build order within each repo is top to bottom.
chant
- e2e harness: await-pull and comment steps, and a pull outcome #4650 e2e harness:
await-pullandcommentsteps, and apulloutcome (first: every scenario below uses it) - CI core: the template request document, its branch and its pull request body #4651 CI core: the template request document, its branch and its pull request body
- terraform lexicon: render an app root or an add-on module call from a catalog version #4652 terraform lexicon: render an app root or an add-on module call from a catalog version
- terraform lexicon: invoke an action block under a gated request (tf-action) #4653 terraform lexicon: invoke an
actionblock under a gated request (tf-action) - pulumi lexicon: a gated stack action, a command resource replaced on request #4654 pulumi lexicon: a gated stack action, a
commandresource replaced on request - MCP: a --propose tier for product tools that open pull requests #4655 MCP: a
--proposetier for product tools that open pull requests
terragucci
- Apps from templates: terragucci templates and terragucci request open a pull request adding an app root terragucci#1308 apps from templates:
terragucci templates,terragucci request, the request workflow - Add-ons: a request on an existing app adds one module call to its root terragucci#1309 add-ons: one module call added to an app's root;
terragucci templates apps - Day-2 actions: /terragucci action runs a Terraform action block under a gated request terragucci#1310 day-2 actions:
/terragucci action,terragucci action,terragucci approve action - MCP: request_from_template opens the same pull request a form does terragucci#1311 MCP:
request_from_template - Template upgrades: the module rollout moves every app built from a template, wave by wave terragucci#1312 template upgrades through the module rollout
behold
- Templates tab: list a terragucci repo's templates and request an app through a form behold#1035 Templates tab and the request form
- Apps on the graph: an app and its add-ons in one frame, with drift, add-on and upgrade buttons behold#1036 apps and add-ons on the graph, with drift, Add an add-on and Upgrade
- Day-2 action buttons on an app card, with the gate card and the action history behold#1037 day-2 action buttons, the
tf-actiongate card and the action history
plywood
- Day-2 actions: plywood action runs a declared command resource under a gated request plywood#39 day-2 actions on Pulumi stacks (needs no registry; builds now)
-
Templates and add-ons from Pulumi component packages (after #32) plywood#40 templates and add-ons from Pulumi component packages (after A private package registry for Pulumi packages, with tests before release plywood#32)deferred: plywood#40, Op codegen can't surface activity return values as workflow search attributes #41, describeResources() coverage gap: 9 of 11 lexicons not yet implemented #42 -
MCP: request_from_template on plywood mcp --propose plywood#41 MCP:deferred: plywood#40, Op codegen can't surface activity return values as workflow search attributes #41, describeResources() coverage gap: 9 of 11 lexicons not yet implemented #42request_from_templateonplywood mcp --propose -
Template upgrades for Pulumi apps through the package rollout (#34) plywood#42 template upgrades through the package rollout (after Roll a package version out to its consumer repos, one pull request per wave plywood#34)deferred: plywood#40, Op codegen can't surface activity return values as workflow search attributes #41, describeResources() coverage gap: 9 of 11 lexicons not yet implemented #42
Related: INTENTIUS/terragucci#1293 (module registry epic), INTENTIUS/terragucci#1297 (the catalog and terragucci modules), INTENTIUS/plywood#32 (Pulumi package registry), INTENTIUS/plywood#34 (package rollout).
Activity
lex00 commentedon Oct 28, 2026
Ruling for self-service (2026-10-28):
commandresource in the stack, replaced on request with --target/--replace, under the same approval rules.lex00 commentedon Oct 29, 2026
Handoff (self-service-1, 2026-10-28). Every unit outside the deferred ones is built and merged to its repo's integration/self-service. behold and terragucci are on main with push CI green. chant and plywood are green on integration and wait for ci-products-1's cp8 before their main merge. No harness run has been made yet.
Rulings for self-service (2026-10-28), recorded on their issues: an action comment is accepted on a plain issue or a pull request (chant#4654); requestedBy is the run's actor, and the person a form or agent names goes next to it as claimedBy (terragucci#1308); harness runs wait for ci-products-1's pw22 round.
Epic-ready on the integration tips: chant unit 31847 pass (load-only budget timeouts pass alone), typecheck no regressions, docs prose 1693 of 1694; terragucci on the published chant pin check-static and all three shards pass after four fixes (action comment type, bundle stand-in for template-request, harness lint on an older harness, a test's git identity on a bare runner); behold 4971 pass; plywood 458 pass on the 0.124.55 pin.
Harness rows: none recorded. Eight terragucci scenarios (tg-template-app, tg-template-addon, tg-agent-request, tg-template-upgrade, tg-action-run, tg-behold-request, tg-behold-addon, tg-behold-action) and plywood's pw-action are written and lint clean. Commands, prerequisites and expected plain/BREAK verdicts are in engine-wt/goals/self-service-1-runs.md.
Waiting: plywood#40 (plywood#32, a Pulumi renderer in chant's pulumi lexicon), plywood#42 (plywood#34, #40), behold#1038 (Pulumi actions in behold, new). The intentius.io comparison rows (self-service catalog, day-2 actions) are not proposed yet; they wait until the catalog, add-ons, actions and agent requests are on every product's main.
Release steps are on the run sheet: a chant release carrying chant#4650-4655 first, then the product bumps and the draft guides published.
Merge integration/self-service: epic:self-service (#4642): template r…
Merge integration/self-service: epic:self-service (INTENTIUS/chant#4642…
lex00 commentedon Oct 29, 2026
Close-out (2026-10-28)
Per-repo state, all on 2026-10-28:
Closed: chant#4650-4655, terragucci#1308-1312, behold#1035-1037, plywood#39 and #44.
Open, deferred: plywood#40 (needs plywood#32 and a Pulumi renderer in chant's pulumi lexicon), plywood#41 (tools/list and opens-one-PR items wait on #40), plywood#42 (needs plywood#34 and #40), behold#1038 (Pulumi actions in behold, outside this epic's units).
Harness runs: the maintainer dropped the emulator runs (8 terragucci scenarios, plywood pw-action), so those items are struck as not run. The 'Done when' outcomes in this body are left unticked, because no run or other check verified them end to end. The plywood Pulumi items in particular wait on the open issues above.
lex00 commentedon Oct 29, 2026
Edited per maintainer ruling 2026-10-28: the five end-to-end Done-when items (form to PR, add-on, action, agent request, upgrade wave) are ticked and struck as not run (emulator runs dropped; covered by unit tests and CI). The plywood Pulumi outcome and the plywood#40, #41, #42 unit lines are struck and marked deferred to those issues. Issue stays closed.