Repository navigation
E21-30: the chart starts executors on Alpaca's paper host in staging (DEC-2306 item 1) - #2026
Merged
Merged
Conversation
…(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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
executor.broker(defaultfixture, oralpaca-paper) andexecutor.vaultAddress.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.brokerisfixtureoralpaca-paperonly, so a live or unnamed broker is refused.vaultAddressis empty orhttps://host[:port], andalpaca-paperrequires it.alpaca-paperrequiresdeploymentTier: staging, so dev, ci (the local cell) and production cannot name it.deploy/gitops/clusters/staging/workspace.yamlnamesalpaca-paperwithhttps://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:
/run/mandate/vault, the projected ServiceAccount token volume at/run/mandate/vault-token(audiencemandate-vault), and the executor's<hex>ServiceAccount.paper-api.alpaca.markets:443and 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-checkJob takes its args fromrun.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_itfails, and with the schema reverted,test_the_paper_broker_needs_staging_and_its_vaultfails.Spec clause → test
alpaca-paperhands every executor the paper broker, the vault's address and the CA's directory, managed or Deployment; nothing else changestest_cell.py::test_the_executor_runs_on_alpaca_paper_where_staging_names_ittest_cell.py::test_the_paper_broker_needs_staging_and_its_vaulttest_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)
unwrap,expect, or panics on trading paths (n/a)x-plannedor(planned: ...)marker addedChecks
deploy/tests: 319 passed, 1 skipped (helm present)cargo xtask cell generateclean, typos cleanGenerated by Claude Code
#2026: PASS at a256937
Coordinator review (LV-4, chart configuration; no secret involved).
executor.broker(fixtureby default, oralpaca-paper) andexecutor.vaultAddress. One helper,mandate.executorBroker, adds--broker alpaca-paper --vault-address <addr> --vault-dir /run/mandate/vaultto the executor only. It is used for both the deploy manager's pod template and the Deployment path, so the two can't drift.brokeris an enum;vaultAddressmust behttps://host[:port]and is required withalpaca-paper;alpaca-paperrequiresdeploymentTier: staging, so dev, ci and production can't name it. The object is closed.alpaca-paperathttps://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.Coordinator-approved-head: a256937
Generated by Claude Code