Skip to content

rename signalName on gate() and GateStep to a name that does not imply a signal #2202

Closed

Description

@lex00

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, and gate() in packages/core/src/op/builders.ts, which builds the literal.
  • packages/core/src/components/component.ts — the component gate() helper, and component.schema.json's Gate.signalName (a required key, 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' signalName option on TerraformApplyOp and TerraformAdoptOp (lexicons/terraform/src/composites/), plus the LSP option-key hints in lexicons/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 what gate() returns.
  • packages/core/src/components/README.md, the docs pages that show gate("approve-prod"), and every fixture and test that spells the key out.

Done when

  • Both keys are accepted on GateStep and on the component gate step, the new one is what gate() writes, and the old one warns once at build.
  • component.schema.json accepts 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

  1. lex00 commented on Sep 7, 2026

    @lex00
    ContributorAuthor

    The new key is gate everywhere except the two terraform composites, where that name is already taken.

    TerraformApplyOpConfig already has gate?: TerraformGateMode ("on-destroy" | "always" | "never"), the option that decides whether a Gate phase is emitted at all. Renaming signalName to gate there would collide with it. TerraformAdoptOpConfig has no gate option today, but it sits in the same gateTimeout / gateDescription family and should read the same way as its sibling.

    So on both terraform composites the new key is gateName, alongside the existing gateTimeout and gateDescription. signalName stays accepted there on the same one-version terms as everywhere else. Core is unaffected: GateStep.gate, the component gate step's gate, and ApplyOp's gate: { gate } all take the plain gate name the issue asked for.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions