Repository navigation
Description
Split out of #2195, which lists this as out of its own scope. #2191's decisions section says the same: signalName stays as the public field name in that sweep and its rename gets its own issue.
Why
signalName is the public field on gate() and on GateStep (packages/core/src/op/types.ts:175, and the identically named field on a component gate step). It reads as a signal delivered to a running thing. Since #2119 nothing is running and nothing is signalled: the executor consults the gate ledger when it reaches the step, a gate nobody has approved records a pending fact and ends the run gated, and chant approve <op> <gate> writes the resolution the next run reads. The field is a name, not a channel. GateStep's own docstring already says so: "The gate's name — what chant approve <op> <gate> resolves."
What to rename
signalName -> gate (or gateName; pick one and use it everywhere), with the old key accepted and deprecated for one minor version rather than removed.
Authored and machine surfaces that carry the name today:
packages/core/src/op/types.ts—GateStep.signalName, andgate()inpackages/core/src/op/builders.ts, which builds the literal.packages/core/src/components/component.ts— the componentgate()helper, andcomponent.schema.json'sGate.signalName(arequiredkey, so the schema needs both accepted during the deprecation).ApplyOp's gate config:gate?: { signalName?: string; timeout?: string; description?: string }(packages/core/src/op/composites/apply-op.ts).- The terraform composites'
signalNameoption onTerraformApplyOpandTerraformAdoptOp(lexicons/terraform/src/composites/), plus the LSP option-key hints inlexicons/terraform/src/lsp/option-keys.ts. - The COMP004 diagnostic message, which prints
gate.signalName(packages/core/src/lint/rules/comp/comp004-gate-needs-durable-runtime.ts). findComponentGate(packages/core/src/components/cli-support.ts), which returns{ signalName }.packages/core/src/fold/foldable-helpers.ts's note on whatgate()returns.packages/core/src/components/README.md, the docs pages that showgate("approve-prod"), and every fixture and test that spells the key out.
Done when
- Both keys are accepted on
GateStepand on the component gate step, the new one is whatgate()writes, and the old one warns once at build. component.schema.jsonaccepts either and requires exactly one.- Every authored surface in this repo (composites, fixtures, docs, examples) uses the new key.
- A deprecation note names the version the old key goes away in.
Activity
lex00 commentedon Sep 7, 2026
The new key is
gateeverywhere except the two terraform composites, where that name is already taken.TerraformApplyOpConfigalready hasgate?: TerraformGateMode("on-destroy" | "always" | "never"), the option that decides whether a Gate phase is emitted at all. RenamingsignalNametogatethere would collide with it.TerraformAdoptOpConfighas nogateoption today, but it sits in the samegateTimeout/gateDescriptionfamily and should read the same way as its sibling.So on both terraform composites the new key is
gateName, alongside the existinggateTimeoutandgateDescription.signalNamestays accepted there on the same one-version terms as everywhere else. Core is unaffected:GateStep.gate, the component gate step'sgate, andApplyOp'sgate: { gate }all take the plaingatename the issue asked for.refactor(op)!: a gate step names itself `gate`, not `signalName` (#2202…