Skip to content

E21-30: the chart starts executors on Alpaca's paper host in staging (DEC-2306 item 1) - #2026

Merged
kunwarshivam merged 1 commit into
mainfrom
claude/lv-live-rows-chart-tests
Oct 19, 2026
Merged

kunwarshivam merged 1 commit into
mainfrom
claude/lv-live-rows-chart-tests

Conversation

@kunwarshivam

@kunwarshivam kunwarshivam commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Story

E21-30, lane LV slice LV-4 (claim #1897). Decision: DEC-2306 item 1, which says the broker is chosen by the run configuration and the dev cell, local cell and CI run only the fixture.

  • New values: the workspace chart gains executor.broker (default fixture, or alpaca-paper) and executor.vaultAddress.
  • Rendered args: with alpaca-paper, every executor gets --broker alpaca-paper --vault-address <address> --vault-dir /run/mandate/vault. This holds both when the deployment manager starts it (mandate.managedPod) and when it is a Deployment (services.yaml). One helper, mandate.executorBroker, renders the flags for both paths.
  • Schema:
    • broker is fixture or alpaca-paper only, so a live or unnamed broker is refused.
    • vaultAddress is empty or https://host[:port], and alpaca-paper requires it.
    • alpaca-paper requires deploymentTier: staging, so dev, ci (the local cell) and production cannot name it.
  • Staging: deploy/gitops/clusters/staging/workspace.yaml names alpaca-paper with https://vault.ws-ws1.svc:8200. It takes effect once promotion names an executor image and the manager starts one.

Not in this PR, owned elsewhere:

  • V2 and the deployment manager: the vault CA mount at /run/mandate/vault, the projected ServiceAccount token volume at /run/mandate/vault-token (audience mandate-vault), and the executor's <hex> ServiceAccount.
  • GO: egress to paper-api.alpaca.markets:443 and the vault.

Until those land, an executor started with these flags fails closed at its vault login (#2009), and no order goes out.

The connect-check Job takes its args from run.args, which whoever runs it supplies; it gains the same flags when the connect flow runs it in staging.

Tests and implementation ship together here. This is chart configuration, not a safety-critical crate, and the chart tests have no pending convention. I checked each test against the change: with the templates reverted, test_the_executor_runs_on_alpaca_paper_where_staging_names_it fails, and with the schema reverted, test_the_paper_broker_needs_staging_and_its_vault fails.

Spec clause → test

Spec clause or invariant Test name
Item 1: alpaca-paper hands every executor the paper broker, the vault's address and the CA's directory, managed or Deployment; nothing else changes test_cell.py::test_the_executor_runs_on_alpaca_paper_where_staging_names_it
Item 1: only staging may name the paper broker, only with an https vault address; any other broker is refused test_cell.py::test_the_paper_broker_needs_staging_and_its_vault
The fixture stays the default: unchanged executor args test_cell.py::test_deploy_manager_contained (existing)

Dependencies

None.

Journal events added

None.

Not done

LV-3 (recorded paper fill bodies for X1b-3).

Decisions needed

None. Allowing staging only is the conservative reading of DEC-2306 item 1.

Safety checklist (safety-critical changes)

  • No floats in money or quantity paths (n/a)
  • No clock reads or randomness in the core (n/a)
  • No unwrap, expect, or panics on trading paths (n/a)
  • Ordering (n/a)
  • Replay (n/a)
  • No secrets in values: an address only; no broker credential, which stays in the vault
  • No x-planned or (planned: ...) marker added

Checks

  • deploy/tests: 319 passed, 1 skipped (helm present)
  • cargo xtask cell generate clean, typos clean
  • Review agent report: the coordinator's review

Generated by Claude Code

#2026: PASS at a256937

Coordinator review (LV-4, chart configuration; no secret involved).

  • The workspace chart gains executor.broker (fixture by default, or alpaca-paper) and executor.vaultAddress. One helper, mandate.executorBroker, adds --broker alpaca-paper --vault-address <addr> --vault-dir /run/mandate/vault to the executor only. It is used for both the deploy manager's pod template and the Deployment path, so the two can't drift.
  • Schema: broker is an enum; vaultAddress must be https://host[:port] and is required with alpaca-paper; alpaca-paper requires deploymentTier: staging, so dev, ci and production can't name it. The object is closed.
  • Staging names alpaca-paper at https://vault.ws-ws1.svc:8200. Nothing changes until an executor image is promoted and the manager starts one. Without the CA mount, the projected token and the ServiceAccount (V2's and the manager's), the executor fails closed at login.
  • Tests: each new test was checked to fail with its half reverted (template, schema). deploy/tests: 319 pass. The chart has no pending-test convention, so this is a single PR.

Coordinator-approved-head: a256937


Generated by Claude Code

…(DEC-2306 item 1)

LV-4. The workspace chart gains executor.broker, `fixture` by default or
`alpaca-paper`, and executor.vaultAddress. With alpaca-paper, every
executor gets --broker alpaca-paper, --vault-address and
--vault-dir /run/mandate/vault, whether the deployment manager starts it
or it is a Deployment.

The schema allows alpaca-paper only on the staging tier and only with
the vault's https address; any other broker is refused. Staging's
workspace values name it. The vault CA and the ServiceAccount token
volume are V2's and the deployment manager's, and egress is GO's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lp178JBQK9jnN93ufjoJM4
@kunwarshivam
kunwarshivam marked this pull request as ready for review October 19, 2026 17:23
@kunwarshivam
kunwarshivam merged commit 4fd8ef8 into main Oct 19, 2026
36 checks passed
@kunwarshivam
kunwarshivam deleted the claude/lv-live-rows-chart-tests branch October 19, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants