feat(workflow): two-key owned pipelines with CallStep and a single call event #76

Merged
john merged 1 commit from feat/two-key-pipelines into main 2026-11-25 06:10:30 +00:00
Owner

Two-key migration, CDK side (no release; Arch pins stay on 0.3.1-dev.1 until this ships).

New API

func CallStep(slot, archTarget string) Step          // node id = slot, params {"arch_target": archTarget}
type CallProps struct { Suffix string; Plugin *xyops.Plugin; TimeoutSeconds int }
// PipelineProps.Calls *CallProps; Pipeline.Call *xyops.Event; Pipeline.InvokeVault *xyops.Secret
func PipelineCategory(suffix string) string        // "pipeline_<suffix>"
func CallEventID(suffix string) string             // "<suffix>_call"
func InvokeVaultID(suffix string) string           // "pipeline_<suffix>_invoke"

Behaviour

  • With Calls, NewPipeline creates the single call event (custom plugin, pipeline category, executor, bounded timeout) and the invoker vault granted only to it. The vault carries no value; the platform delivers ARCH_INVOKE_KEY.
  • Owned-pipeline rule (synthesis-time, mirrors stock xyOps): category must be pipeline_<suffix>, and only call steps, approvals and gates are allowed. Task, PluginTask and Run steps are refused, because the editor key kedit_<suffix> can only reference events in its own category. A refusal leaves no partial resources.
  • Pipelines without Calls are byte-for-byte unchanged.

Provider limitation (why keys and categories are not constructs here): provider 0.1.2-dev.9 has no xyops_category resource, and xyops_api_key has no categories/groups (the schema file lists only event/plugin/secret/workflow). So kedit_<S> / kcall_<S> and the pipeline_<S> category are created by the Arch definitions gate via the stock API (arch #256), which also keeps the plain keys out of any OpenTofu state. If we want them declarative later, the provider needs those attributes first.

Tests: check.sh passes (gofmt, vet, tests, govulncheck). New: call steps use only in-category events, vault grant is exclusive and value-free, every cross-category or invalid shape is refused with no partial resources, pipelines without Calls are unchanged.

Two-key migration, CDK side (no release; Arch pins stay on 0.3.1-dev.1 until this ships). **New API** ```go func CallStep(slot, archTarget string) Step // node id = slot, params {"arch_target": archTarget} type CallProps struct { Suffix string; Plugin *xyops.Plugin; TimeoutSeconds int } // PipelineProps.Calls *CallProps; Pipeline.Call *xyops.Event; Pipeline.InvokeVault *xyops.Secret func PipelineCategory(suffix string) string // "pipeline_<suffix>" func CallEventID(suffix string) string // "<suffix>_call" func InvokeVaultID(suffix string) string // "pipeline_<suffix>_invoke" ``` **Behaviour** - With `Calls`, `NewPipeline` creates the single call event (custom plugin, pipeline category, executor, bounded timeout) and the invoker vault granted **only** to it. The vault carries no value; the platform delivers `ARCH_INVOKE_KEY`. - **Owned-pipeline rule** (synthesis-time, mirrors stock xyOps): category must be `pipeline_<suffix>`, and only call steps, approvals and gates are allowed. Task, PluginTask and Run steps are refused, because the editor key `kedit_<suffix>` can only reference events in its own category. A refusal leaves no partial resources. - Pipelines without `Calls` are byte-for-byte unchanged. **Provider limitation (why keys and categories are not constructs here)**: provider `0.1.2-dev.9` has no `xyops_category` resource, and `xyops_api_key` has no `categories`/`groups` (the schema file lists only event/plugin/secret/workflow). So `kedit_<S>` / `kcall_<S>` and the `pipeline_<S>` category are created by the Arch definitions gate via the stock API (arch #256), which also keeps the plain keys out of any OpenTofu state. If we want them declarative later, the provider needs those attributes first. **Tests**: `check.sh` passes (gofmt, vet, tests, govulncheck). New: call steps use only in-category events, vault grant is exclusive and value-free, every cross-category or invalid shape is refused with no partial resources, pipelines without Calls are unchanged.
feat(workflow): two-key owned pipelines with CallStep and a single call event
All checks were successful
CI / release-check-1 (pull_request) Successful in 12s
CI / release-check (pull_request) Successful in 0s
CI / checks (pull_request) Successful in 2m2s
f7080a8b64
john merged commit 84b9c5cd02 into main 2026-11-25 06:10:30 +00:00
john deleted branch feat/two-key-pipelines 2026-11-25 06:10:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
john/cdk!76
No description provided.