ADR-0005: Declarative Workflow Execution, First-Party Action Repositories, and Runner Runtime¶
- Status: Proposed
- Date: 2026-11-26
- Scope: Declarative workflow syntax and expression safety, OCI/Wasm-first hybrid action execution runtimes, first-party action repositories (
stravin-actions/*), static Go runner runtime (stravin-runner) with local Docker parity, and Day-1 third-party ephemeral microVM runner hooks across Stravin Run, Stravin Core, Stravin Gate, Stravin Auth, and Stravin Webhooks.
Context¶
Prior ADRs establish the control-plane transport, durability, and security seams for Stravin Run:
- ADR-0001 designates Temporal as the durable workflow orchestrator for Run and Gate, NATS JetStream (
STRAVIN_CORE,STRAVIN_RUN) for internal async events, andstravin-webhooksfor outbound machine-to-machine HTTP delivery. - ADR-0002 establishes the Phase 1 Job-Lease Seam (where Run's Temporal DAG leases individual jobs to hosted or external runners over
lease,heartbeat,log-stream,report-result, andcancel-poll), external OIDC App authentication with zero static secrets, 6-tuple job-lease binding,commit_oid-pinnedgit:readtokens (TTL <= 120s), opt-ingit:bundle:readgating, and< 200 mscancellation propagation. - ADR-0003 designates
stravin-authas the sole token and STS issuer for external OIDC App exchanges and Valkeyjtirevocation.
Before Wave 3 builds stravin-run and its runner agent in stravin-dev/platform, four execution-plane questions must be settled:
- Workflow authoring contract: What declarative format do developers check into repositories, and how does Stravin prevent expression-based shell injection and stdout command-smuggling vulnerabilities?
- Action packaging and runtime model: How are reusable build steps (
checkout,cache,upload-artifact, toolchain setup) packaged and executed without forcing heavy Node.js or .NET runtimes into every ephemeral microVM rootfs? - Runner binary and local parity: How does the runner agent achieve
< 300 msmicroVM cold starts in production while letting engineers run the exact same workflows locally under Docker Engine? - Third-party microVM runner interoperability: What Day-1 hooks allow specialized third-party microVM runner providers to provision on-demand VMs, register cleanly with zero static secrets, and plug in co-located NVMe caches or sticky disks without bespoke Stravin forks?
Decision¶
We adopt Option B: CUE-Backed Declarative Workflows (YAML + CUE) + OCI/Wasm-First Hybrid Action Runtimes + Static Go stravin-runner + Day-1 Third-Party MicroVM Runner Hooks.
flowchart TB
subgraph ControlPlane["Stravin Control Plane (Cilium eBPF SPIFFE mTLS)"]
direction TB
Temporal["Stravin Run (Temporal DAG)\nCUE v1 Engine (.yml + .cue) -> Workflow IR\nMatrix Fan-Out, <200ms Cancel, tree_oid Reuse"]
Auth["stravin-auth (External OIDC App Seam)\nSingle-Use JIT Runner Registration Token\n(6-Tuple Job-Lease Bound, Zero Static Secrets)"]
Core["Stravin Core (stravin-edge)\ncommit_oid-Pinned git:read (TTL <= 120s)\nValkey+S3 Pack Cache & Opt-In bundle-uri"]
Webhooks["stravin-webhooks\nOutbound run.job.queued Event\n(Labels + Pool Only, Zero Git Tokens)"]
ProdStorage["Default Run Endpoints\nS3-Backed Cache & Artifact Service\n(STRAVIN_CACHE_URL / STRAVIN_RUNTIME_URL)"]
end
subgraph HostedPool["Hosted MicroVM Pool (Firecracker / Kata, <300ms Cold Start)"]
HostedRunner["stravin-runner (Static Go Binary)\nComposite + OCI + Optional Wasm"]
HostedActions["stravin-actions/*\ncheckout, cache, upload/download-artifact,\nsetup-go, setup-node, setup-python"]
HostedRunner --> HostedActions
end
subgraph ThirdPartyPool["Third-Party MicroVM Runner Provider (Day-1 Interop)"]
Provisioner["Provider Autoscaler\n(Receives run.job.queued Webhook)"]
ThirdRunner["stravin-runner (Open-Source Static Go Binary)\nBoots with JIT Registration Token"]
LocalNVMe["Overridable Provider Cache / Artifacts\n(Co-Located NVMe Cache / Sticky Disks\nvia STRAVIN_CACHE_URL & STRAVIN_RUNTIME_URL)"]
Provisioner -->|"1. Provision Ephemeral MicroVM"| ThirdRunner
ThirdRunner <-->|"Fast Local Cache / Artifacts"| LocalNVMe
end
Temporal -.->|"NATS JetStream -> Outbound Webhook"| Webhooks
Webhooks -->|"run.job.queued (runs-on labels)"| Provisioner
Provisioner -->|"2. OIDC Exchange -> JIT Token"| Auth
HostedRunner <-->|"Pull Lease / Heartbeat / Logs / Cancel-Poll"| Temporal
ThirdRunner <-->|"3. Pull Lease / Heartbeat / Logs / Cancel-Poll"| Temporal
HostedActions -->|"git:read (TTL <= 120s)"| Core
ThirdRunner -->|"git:read (TTL <= 120s)"| Core
HostedActions <-->|"Default Endpoints"| ProdStorage
1. Workflow Syntax & Expression Safety¶
Workflows are authored as declarative YAML (.stravin/workflows/*.yml, *.yaml, YAML 1.2) or CUE (.stravin/workflows/*.cue) files, fetched at the exact triggering commit_oid and compiled against one canonical CUE #Workflow schema:
- Core Schema: Supports
ontriggers (push,pull_request,merge_group,workflow_dispatch,schedule),jobs,needs(DAG edges),runs-on(label selector routing),strategy.matrix(withinclude/exclude/fail-fast),services(sidecar containers attached to the job network), andsteps(name,id,if,uses,with,run,env,working-directory,continue-on-error,timeout-minutes). - Expression Engine & Shell-Injection Guardrails:
${{ }}expressions support standard logical/comparison operators, context objects (stravin.*,inputs.*,matrix.*,needs.*,steps.*,env.*,vars.*,secrets.*), and pure built-in functions (contains,startsWith,endsWith,format,join,toJSON,fromJSON,hashFiles,always,success,failure,cancelled).- Strict Untrusted-Context Guardrail: Direct interpolation of untrusted event-context fields (such as PR titles, PR bodies, branch/head ref names, commit messages, comment bodies, or author display names) inside
run:shell scripts is rejected at workflow validation time and blocked by the runner evaluator. Authors MUST bind untrusted values throughenv:variables and reference them as quoted shell variables ("$PR_TITLE"), eliminating expression-to-shell injection by default.
- File-Based Step Commands (Zero Stdout Command Parsing):
- Steps communicate outputs, environment mutations, PATH additions, and post-step state exclusively through per-step temporary files exposed via environment variables:
STRAVIN_OUTPUT— Key-value step outputs consumed by downstream steps and joboutputs.STRAVIN_ENV— Environment variables propagated to subsequent steps in the same job (with a deny-list blocking sensitive loader/runtime overrides such asLD_PRELOAD,NODE_OPTIONS, andSTRAVIN_RUNTIME_TOKEN).STRAVIN_PATH— Directory entries prepended toPATHfor subsequent steps.STRAVIN_STATE— Private state shared between a step'spre,main, andposthooks.
- Legacy stdout magic-string directives are not supported, removing log-injection command-smuggling vectors.
- Steps communicate outputs, environment mutations, PATH additions, and post-step state exclusively through per-step temporary files exposed via environment variables:
CUE v1 Compiler Engine, Canonical Workflow IR & Pluggable Frontends¶
stravin-run's Temporal DAG engine and stravin-runner execute only a canonical Protobuf Workflow IR (WorkflowSpec, JobSpec, StepSpec), decoupled from authoring syntax:
- CUE (
cuelang.org/go) as the v1 Schema & Compiler Engine (Day 1): Both.stravin/workflows/*.yml(*.yaml, YAML 1.2) and.stravin/workflows/*.cueare unified against one canonical#WorkflowCUE schema behind theWorkflowCompiler -> WorkflowIRseam to emit the validated Protobuf Workflow IR (WorkflowSpec,JobSpec,StepSpec). - Dual-Format Ergonomics from One Schema:
.yml/.yaml(YAML 1.2): The single#WorkflowCUE schema auto-exports JSON Schema for.ymlIDE autocomplete and linting; YAML literal blocks (run: |) or.stravin/scripts/*.share recommended for multi-line shell logic..cue(Native CUE): Authors get native CUE LSP support,cue fmt, raw#"""..."""#multiline shell blocks, and DRY workflow reuse via#Definitions, hidden_fields, and&unification.
- Strict 1-File = 1-Workflow Isolation (No Cross-File Unification): Every workflow file in
.stravin/workflows/(*.yml,*.yaml,*.cue) is compiled independently into its ownWorkflowSpeckeyed by relative file path. Files in.stravin/workflows/(including mixed.ymland.cuefiles, or same-stemci.yml+ci.cue) are never loaded as one shared CUE package or collapsed/unified together. - Shared CUE Helpers: Reusable
#Definitionsand hidden_fieldslive outside.stravin/workflows/(e.g.,.stravin/lib/*.cue) and are explicitly imported by individual.stravin/workflows/*.cuefiles. - Pluggable Future Frontends (
Starlark/Pkl): Optional deterministic, sandboxed frontends (.star,.pkl) can plug into the sameWorkflowCompiler -> WorkflowIRseam with zero changes to Temporal orchestration,stravin-runner,stravin-actions/*, orstravin-gate.
Untrusted Workflow Parsing & Evaluation Guardrails¶
Because workflows are authored in untrusted repository commits and pull requests, compilation enforces strict resource and security boundaries before emitting Workflow IR:
- Valid YAML Anchors/Aliases with Expansion Caps: Legitimate YAML anchors and aliases (
&anchor,*alias) are permitted for DRY workflows, with strict caps on raw file size (<= 512 KiB), alias expansion depth (<= 4), expanded AST node count, and compiled Workflow IR size (<= 1 MiB) to prevent exponential alias-bomb DoS. - Duplicate Key Rejection & YAML 1.2: Duplicate YAML keys are strictly rejected at decode time; YAML 1.2 parsing ensures keys and scalars such as
on,no, andyesremain strings rather than booleans. - Pure Hermetic
cuecontextEvaluation: Alltool/*CLI packages (tool/exec,tool/http,tool/file) are disabled and network or out-of-repo imports are blocked; evaluation allows only the built-in#Workflowschema and repo-local pure.cuefiles under.stravin/. - Bounded Eval Budget: Compilation enforces a
<= 2stimeout, maximum AST depth and node caps,<= 256expanded matrix jobs, and isolated memory-capped evaluation to mitigate CUE disjunction or comprehension blowup. - Post-IR Security Pass:
${{ }}runtime expression validation, untrusted-context shell-injection blocking, and SHA/digest pinning run uniformly on the compiled Protobuf Workflow IR regardless of source format.
Reusable Workflow Calls (workflow_call) Seam¶
Reusable workflow composition is phased across Wave 3 and Wave 4 without introducing breaking schema or IR migrations:
- Wave 3 (Schema & IR Reservation): Both the canonical CUE
#Workflowschema and Protobuf Workflow IR reserveon.workflow_call(typedinputs,outputs, and declaredsecrets) alongside a job-leveluses:union variant (WorkflowCallJob) from Day 1, ensuring reusable workflow calls activate with zero breaking IR or runner protocol changes. - Wave 4 (Full Execution):
stravin-runimplements same-repo and cross-repo full-SHA-pinnedworkflow_callresolution, Temporal subgraph / child-workflow expansion with cycle detection and max nesting depth (<= 4), and strict secret-passing isolation (explicitsecrets:mapping required;secrets: inheritis forbidden across untrusted or external repository boundaries).
2. Action Execution Runtimes (Composite + OCI + Optional Wasm)¶
Every uses: step executes through one of three runtime tiers, prioritizing zero-overhead composition, hermetic digest-pinned OCI containers, and optional zero-dependency Wasm sandboxes:
- Composite Actions (First-Class, Default for Multi-Step Tooling):
- Declared with
runs: using: 'composite'inaction.yml. - Recursively expanded directly into the job's step queue by
stravin-runner, inheriting the workspace, environment, andSTRAVIN_*command files with zero nested VM or container startup overhead.
- Declared with
- OCI Container Actions (First-Class, Default for Packaged Logic):
- Declared with
runs: using: 'oci'referencing a digest-pinned OCI image (image: oci://registry.example.com/org/action@sha256:...). - Runs inside a hardened container sandbox with a read-only root filesystem, explicit workspace bind mount, dropped Linux capabilities, and inputs injected via
INPUT_<NAME>environment variables.
- Declared with
- Optional Sandboxed Wasm Actions (
using: 'wasm'):- Declared with
runs: using: 'wasm'and executed via an embeddedwazeroruntime insidestravin-runnerwith zero external host dependencies. - Maps
with:inputs onto the standardINPUT_<NAME>environment bridge and invokes bundledaction.wasmentrypoints, providing portable cross-OS execution (Linux, macOS, Windows) with minimal startup overhead.
- Declared with
- Why Host
using: nodeIs Omitted:- Any author who wants Node.js or JavaScript execution can package it in a digest-pinned OCI container (
using: 'oci') without forcingstravin-runnerto ship, patch, or maintain host Node.js runtimes across EOL cycles. using: 'composite'(shell and static Go binaries) andusing: 'wasm'handle cross-OS portability (Linux, macOS, Windows) and hostPATH/toolchain setup (setup-*) without introducing Node.js runtime debt.
- Any author who wants Node.js or JavaScript execution can package it in a digest-pinned OCI container (
- Mandatory Pinning Policy for External
uses:References:- External
uses:references MUST be pinned to a full commit SHA (40-char SHA-1 or 64-char SHA-256 matching repositoryobject_format) or an immutable OCI image digest (@sha256:...). - Mutable tag or branch references (e.g.,
@v1,@main) on third-party repositories are rejected by policy unless explicitly exempted in tenant/repository settings; first-partystravin-actions/*repositories publish immutable signed releases and major-version tags under tenant policy control.
- External
3. First-Party Shared Action Repositories (stravin-actions/*)¶
Stravin maintains a focused set of official, audited first-party action repositories under the stravin-actions organization namespace:
| Repository | Runtime Tier | Responsibility & Contract |
|---|---|---|
stravin-actions/checkout |
Composite + static helper / Wasm | Checks out the exact commit_oid using ADR-0002's commit_oid-pinned git:read token (TTL <= 120s), Protocol v2 deterministic fetch flags (stravin-edge Valkey+S3 pack-cache hit maximization), traceparent header propagation, and opt-in git:bundle:read for bundle-uri bootstrap on large repos. Strips credentials from .git/config in its post hook. |
stravin-actions/upload-artifact |
Wasm / static Go helper | Streams build artifacts (with SHA-256 manifest and retention metadata) to STRAVIN_RUNTIME_URL authenticated with STRAVIN_RUNTIME_TOKEN. |
stravin-actions/download-artifact |
Wasm / static Go helper | Verifies manifest digests and downloads job or cross-job artifacts from STRAVIN_RUNTIME_URL. |
stravin-actions/cache |
Wasm / static Go helper | Computes content-addressed cache keys (with restore-key prefix fallback) and reads/writes compressed archives against STRAVIN_CACHE_URL (main restore + post save). |
stravin-actions/setup-go |
Composite | Installs and caches pinned Go toolchains (respecting go.mod / .tool-versions), updates STRAVIN_PATH, and wires Go module/build caches. |
stravin-actions/setup-node |
Composite | Installs pinned Node.js/pnpm/npm toolchains on demand inside the job workspace without baking Node.js into the base microVM image. |
stravin-actions/setup-python |
Composite | Installs pinned Python/uv toolchains and configures virtualenv caching. |
stravin-actions/templates |
Composite | Reusable composite action templates and reference patterns for repository maintainers. |
4. Runner Runtime (stravin-runner) & Local Execution Parity¶
- Single Static Go Binary (
stravin-runner):- Compiled with
CGO_ENABLED=0into a single static Linux/macOS binary with zero .NET, Node.js, or Python host dependencies. - Keeping the agent footprint under ~25 MiB and dependency-free enables
< 300 msFirecracker / Kata microVM cold starts from minimal rootfs snapshots. - Speaks ADR-0002's Phase 1 pull-lease protocol (
lease,heartbeat,log-stream,report-result,cancel-poll), propagates W3Ctraceparentacross step execution, and enforces< 200 mscancel acknowledgment (SIGTERM-> grace window ->SIGKILL).
- Compiled with
- Local Docker Engine Execution Mode (
stravin-runner local/ Docker Compose):- Developers run workflows locally against their working tree via
stravin-runner localor the unifiedstravin-dev/platformDocker Compose stack without requiring Firecracker, Kata, or Kubernetes. stravin-runner locallaunches an embedded local HTTP artifact & cache server bound to loopback (127.0.0.1) and injects the exact same environment variables used in production:STRAVIN_RUNTIME_URL— Job artifact and step-metadata API endpoint.STRAVIN_CACHE_URL— Content-addressed build cache endpoint.STRAVIN_RUNTIME_TOKEN— Scoped per-job bearer token.
- Because
stravin-actions/upload-artifact,download-artifact, andcachetalk exclusively to these HTTP endpoints, local runs and production S3-backed runs exercise the exact same action code paths 1:1 (wire contract, presigned multipart flows, and cache-poisoning isolation defined in Run Artifacts & Cache Interface).
- Developers run workflows locally against their working tree via
5. Third-Party Ephemeral MicroVM Runner Hooks (Day-1 Interoperability)¶
Stravin Run is designed from Day 1 so specialized third-party microVM runner providers can plug into Stravin's hosted workflow UX without maintaining custom protocol shims or holding long-lived credentials:
runs-on:Label Routing &run.job.queuedOutbound Webhook:- Workflow jobs specify target labels via
runs-on:(e.g.,runs-on: [self-hosted, linux-arm64-16c]or provider-managed pool labels). - When a job enters the queued state on an external/provider-backed
runner_pool, Run publishes an event toSTRAVIN_RUNthatstravin-webhooksdelivers as a signedrun.job.queuedoutbound webhook containing(tenant_id, repo_id, job_id, attempt_id, runner_pool, labels[])— with zero embedded Git tokens or runner secrets (ADR-0002). - The third-party provider's autoscaler provisions a fresh ephemeral microVM matching the requested labels.
- Workflow jobs specify target labels via
- Single-Use JIT Runner Registration Token (Zero Static Secrets):
- The provider exchanges its workload identity assertion over ADR-0002's external OIDC App seam at
stravin-authto mint a single-use JIT Runner Registration Token strictly bound to the 6-tuple job lease(tenant_id, repo_id, runner_pool, job_id, attempt_id, runner_instance_id). - The JIT token expires immediately upon lease claim or short TTL (
<= 120s) and is injected into the ephemeral microVM boot config; the provider never stores static org-wide runner registration keys.
- The provider exchanges its workload identity assertion over ADR-0002's external OIDC App seam at
- Open-Source Static
stravin-runnerBinary Inside Any Third-Party MicroVM:- Third-party providers bake or inject the open-source static
stravin-runnerbinary into their microVM images. - On boot,
stravin-runner --jit-token <token> --ephemeralclaims its exact leased job, streams ANSI logs to Run's mintedlog_stream_url, heartbeats liveness, honors< 200 mscancel-polldirectives, and exits cleanly so the provider destroys the microVM immediately after one job.
- Third-party providers bake or inject the open-source static
- Overridable Cache & Artifact Endpoints (
STRAVIN_CACHE_URL,STRAVIN_RUNTIME_URL):- Third-party microVM providers can override
STRAVIN_CACHE_URLand/orSTRAVIN_RUNTIME_URLat runner boot (e.g., pointing to a co-located regional NVMe cache proxy or sticky-disk cache service on the host hypervisor). stravin-actions/cacheandstravin-actions/*-artifacttransparently use the overridden endpoints while preserving Run's cache-key scoping and token validation—letting providers deliver sub-second NVMe cache throughput without asking users to rewrite workflow YAML.
- Third-party microVM providers can override
6. Regional Runner Placement¶
- Default — Repo Home Region:
stravin-runschedules jobs on the repository's home-region runner pool by default, delivering zero cross-region S3 egress for Git packfiles, build caches, and artifacts, instant read-after-write consistency oncommit_oid, and automatic data residency. - Opt-In — Multi-Region / External Pools: Workflows may target other regions or external pools via
runs-on:labels orrunner_poolconfiguration (for example, GPUs, macOS hosts, customer VPCs, third-party microVM providers, or capacity spillover). Remote runners fetch from the neareststravin-edgeread replica (falling back to the repository's home region on replication lag) and use either home-region S3 presigned URLs or a provider-localSTRAVIN_CACHE_URL. - Residency Guardrail: Tenants with strict data-residency policies can lock
runner_poolplacement to the repository's home region only, rejecting cross-region pool routing and external endpoint overrides.
Alternatives Considered¶
| Alternative | Summary | Why Rejected |
|---|---|---|
Option A: Host Node.js / JS-Mandatory Parity (using: node) |
Require a full Node.js / .NET runner agent or host using: node runtime shim so actions execute as Node.js processes. |
Bloats microVM rootfs images and slows Firecracker/Kata cold starts past < 300 ms; forces stravin-runner and third-party microVM providers to ship and patch Node.js runtimes across EOL cycles when authors can already package Node.js inside a digest-pinned using: oci container; inherits legacy stdout command-injection and unpinned-tag supply-chain hazards. |
| Option C: Pure OCI Step Pipelines | Require every single workflow step to run as an isolated OCI container image with no composite action expansion or lightweight host-step execution. | Adds container-pull and layer-unpack latency to trivial steps (checkout, cache, setup-go); breaks ergonomic multi-step composition; complicates Docker-in-Docker and nested tooling inside ephemeral microVMs. |
| Option D: Programmable Container DAGs / BuildKit SDKs | Author CI pipelines in general-purpose programming languages (Go, TypeScript, Python SDKs) compiling to BuildKit LLB graphs instead of declarative YAML. | Raises the onboarding bar for teams expecting familiar declarative .stravin/workflows/*.yml files; shifts DAG state out of Run's Temporal engine, weakening tree_oid verdict reuse, per-check Gate fail-fast eviction, and visual DAG inspection; poorly matched to third-party microVM providers expecting job-level runs-on webhooks. |
Why Option B Wins: Option B combines familiar, low-friction declarative ergonomics (.stravin/workflows/*.yml and .stravin/workflows/*.cue compiled through one Day-1 CUE #Workflow schema engine, stravin-actions/*, composite actions) with modern supply-chain and runtime hygiene (bounded hermetic parsing/evaluation guardrails, strict expression-injection guardrails, file-based step commands, mandatory SHA/digest pinning, zero-dependency static Go stravin-runner, and composite + oci + optional wasm execution with zero host Node.js runtime debt) while giving third-party microVM runner providers first-class Day-1 hooks (run.job.queued, single-use JIT OIDC tokens, open-source static runner binary, and overridable STRAVIN_CACHE_URL/STRAVIN_RUNTIME_URL).
Consequences¶
Positive¶
- Unified CUE v1 schema and safe authoring (
.yml+.cue): One#WorkflowCUE schema auto-exports JSON Schema for.ymlIDE tooling while giving.cueauthorscue fmt, raw#"""..."""#blocks, and DRY#Definitions/&reuse under hermetic, bounded evaluation guardrails. - Fast, lean microVM cold starts: A single static Go
stravin-runnerwith zero .NET/Node.js host dependencies keeps Firecracker/Kata rootfs images minimal and cold starts< 300 ms. - Strong default supply-chain and shell safety: Blocking untrusted
${{ }}interpolation inrun:scripts, eliminating stdout magic commands, and enforcing full commit-SHA / OCI-digest pinning prevent entire classes of CI exploitation at parse time. - 1:1 local and production parity:
stravin-runner localwith an embedded loopback HTTP cache/artifact server exercises the exact sameSTRAVIN_RUNTIME_URL/STRAVIN_CACHE_URLcontract as production S3-backed endpoints. - Zero-friction third-party microVM ecosystem: Providers integrate on Day 1 using standard webhooks, zero-static-secret JIT OIDC tokens, the open-source
stravin-runnerbinary, and overridable NVMe cache endpoints—while Run retains full Temporal DAG ownership and< 200 msGate cancellation.
Negative / Trade-offs¶
- CUE evaluation complexity and parser hardening: Compiling both YAML 1.2 and
.cuethroughcuelang.org/gorequires maintaining strict memory, AST, alias-expansion, and<= 2stimeout caps to defend against untrusted workflow DoS (mitigated by pure hermeticcuecontextevaluation and bounded IR compilation). - No host
using: noderuntime: Authors bringing Node.js or JavaScript actions must package them as digest-pinned OCI containers (using: 'oci') or port them tocomposite/wasmactions, incurring container startup latency for Node.js-packaged actions (mitigated by keeping all first-partystravin-actions/*oncomposite,wasm, or static Go helpers). - Maintenance of
stravin-actions/*repositories: Owning first-party repositories (checkout,cache,upload-artifact,download-artifact,setup-*) requires dedicated release automation, security patching, and cross-arch (amd64/arm64) builds. - Strict expression lint friction: Developers migrating scripts that directly interpolate untrusted event fields into
run:blocks will encounter validation errors until those values are moved intoenv:bindings (mitigated by clear diagnostic messages with exact copy-paste fixes).
Undo / Rollback Path¶
- Adding or retiring action runtime tiers: Because
stravin-runnerdispatches steps behind aStepRuntimeinterface (composite,oci,wasm), adding a new runtime tier or retiring optional Wasm support requires no change to Temporal DAG orchestration, Core Git tokens, or Gate verdict contracts. - Extending workflow syntax and frontends: The canonical
#WorkflowCUE schema carries an explicit schema version withN / N-1additive compatibility across.stravin/workflows/*.ymland.stravin/workflows/*.cue, and theWorkflowCompiler -> WorkflowIRseam isolates authoring formats from execution—so disabling.cueper tenant, gating Wave 4workflow_callexecution behind tenant policy (using the Wave 3 reservedon.workflow_call/WorkflowCallJobIR seam), or adding/retiring optional future frontends (Starlark,Pkl) requires zero changes to Temporal orchestration, third-partystravin-runnerbinaries,stravin-actions/*, orstravin-gate. - Disabling endpoint overrides per tenant: Overriding
STRAVIN_CACHE_URLandSTRAVIN_RUNTIME_URLis controlled by runner-pool policy instravin-run, allowing tenants with strict data-residency requirements to pin all cache and artifact traffic to Stravin-managed S3 endpoints.
Related Documents¶
- ADR-0001: Platform Transport, Internal Events, External Webhooks, and Durable Workflows — Temporal workflow ownership, NATS JetStream, and
stravin-webhooks. - ADR-0002: External Runner Seam, State-Machine Ownership, and OIDC App Authentication — Phase 1 Job-Lease protocol, 6-tuple lease binding, external OIDC App seam,
commit_oid-pinnedgit:readtokens (TTL <= 120s), andgit:bundle:readgating. - ADR-0003: Platform IAM, Authentication, STS, and Pluggable SSO Seam (
stravin-auth) — External OIDC App token exchange and Valkeyjtirevocation. - Core ⟷ Run Interface — Runner checkout protocol,
stravin-edgepack cache, andcommit_oid-pinned token minting. - Run Artifacts & Cache Interface — Dual-mode
STRAVIN_RUNTIME_URL/STRAVIN_CACHE_URLwire API, direct-to-S3 presigned multipart flows, branch/pool cache isolation, andstravin-actions/*schemas. - Run ⟷ Gate Interface — Speculative merge-queue batch builds,
< 200 mscancellation, and partitionedtree_oidverdict reuse. - External Webhooks Interface — Signed outbound
run.job.queuedwebhook delivery viastravin-webhooks. - Full-Stack Build Waves — Wave 3 implementation deliverables for
stravin-run,stravin-runner,stravin-actions/*, andworkflow_callschema/IR reservation, plus Wave 4 reusable workflow call execution.