Repository navigation
E21-30: start the executor on Alpaca's paper host under its vault lease (DEC-2306) - #2009
Merged
Merged
Conversation
kunwarshivam
marked this pull request as ready for review
October 19, 2026 16:48
9 of 10 tasks
kunwarshivam
marked this pull request as draft
October 19, 2026 16:52
Owner
Author
|
Back to draft for now. The login is reshaped for Kubernetes auth (the coordinator's row 23, V2's option B), and Generated by Claude Code |
9 of 10 tasks
kunwarshivam
marked this pull request as ready for review
October 19, 2026 17:17
9 of 10 tasks
kunwarshivam
added a commit
that referenced
this pull request
Oct 19, 2026
…(DEC-2306 item 1) (#2026) ## 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) - [x] No floats in money or quantity paths (n/a) - [x] No clock reads or randomness in the core (n/a) - [x] No `unwrap`, `expect`, or panics on trading paths (n/a) - [x] Ordering (n/a) - [x] Replay (n/a) - [x] No secrets in values: an address only; no broker credential, which stays in the vault - [x] No `x-planned` or `(planned: ...)` marker added ## Checks - [x] `deploy/tests`: 319 passed, 1 skipped (helm present) - [x] `cargo xtask cell generate` clean, typos clean - [ ] Review agent report: the coordinator's review --- _Generated by [Claude Code](https://claude.ai/code/session_01Lp178JBQK9jnN93ufjoJM4)_ #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](https://claude.ai/code)_
Base automatically changed from
claude/lv-live-rows-executor-start-tests
to
main
October 21, 2026 04:18
kunwar-vp
pushed a commit
that referenced
this pull request
Oct 21, 2026
…EC-2306) (#2008) ## Story E21-30, lane LV slice LV-2b (claim #1897), the tests half of a DEC-77 pair. Decision: DEC-2306 items 1 to 3 (the paper broker, the vault credential, no lease no broker). **Reshaped for Kubernetes auth.** The coordinator approved V2's option B (row 23): executors log in to OpenBao by Kubernetes auth, bound to their ServiceAccount. There is no mounted AppRole secret-id. `vault_login` therefore takes the token reader and the login as injected functions. The process passes `mandate-vault`'s, which is being agreed with V2, and the test scripts them. Everything after the login is unchanged. `mandate-executord/src/credential.rs` gains the start sequence for `--broker alpaca-paper`, as stubs: - **`paper_settings(flag, fixture)`:** `None` for the fixture broker. For `alpaca-paper`, a `VaultMount` from `--vault-address` and `--vault-dir` (where the vault's CA is mounted). Refusals: - `broker_unknown` for any other broker value - `broker_conflict` for `alpaca-paper` over the in-memory journal - `vault_address_missing` and `vault_dir_missing` for the missing flags - **`vault_config(mount)`:** the vault's configuration, its CA read whole from the mount's `ca.crt`. A refused CA file is `vault_ca_unreadable`. - **`vault_login(service_account_token, login, connection)`:** reads the pod's ServiceAccount token first (`vault_credentials_unreadable`, with nothing dialled), then logs in as `Identity::Executor(connection)` with it (`vault_login_failed`). - **`paper_broker(vault, connection, now)`:** the lease on the connection, the token it decodes to, and `AlpacaBroker` over `paper_transport`, with a `RunLease`. A lease whose secret does not decode is given back to the vault before the start is refused. - **`lease_verdict(tick)`:** - `Unchanged` keeps the run going. - `Rotated` gives `credential_rotated`; the supervisor's restart takes the new lease. - `Lost` gives `credential_lost`. - A tick error gives its own code. - **`RunLease::pass(now)`:** ticks once a pass until a verdict stops the run, then gives the same code without asking the vault again. - **`RunLease::give_back()`:** revokes the lease. Also here: the `secrecy` row in `docs/dependencies.md` names `mandate-executord` and corrects its stale "2 crates" to 12. ## Spec clause → test | Spec clause or invariant | Test name | |---|---| | DEC-2306 item 1: the flags name the paper run and its vault; never over the in-memory journal | `paper_start::the_flags_name_the_paper_run_and_its_vault` (pending) | | The vault's CA is read whole from the mount; a group-readable or missing one is refused | `paper_start::the_vault_ca_is_read_from_the_mount` (pending) | | Kubernetes auth: the ServiceAccount token is read before any dial, and the login is as the connection's executor | `paper_start::the_login_reads_the_service_account_token_before_dialling` (pending) | | Items 2 and 3: the lease is on the checked connection, and the broker runs over its token | `paper_start::the_broker_runs_over_the_leased_token` (pending) | | Item 3: a refused lease refuses the start; an undecodable one is given back, then refuses it | `paper_start::a_refused_or_undecodable_lease_refuses_the_start` (pending) | | Item 3: only an unchanged credential keeps the run going | `paper_start::only_an_unchanged_credential_keeps_the_run_going` (pending) | | Item 3: an outage keeps the lease; its expiry stops the run once and for good | `paper_start::the_run_lease_stops_the_run_once_and_for_good` (pending) | | A stopped run gives its lease back | `paper_start::a_stopped_run_gives_its_lease_back` (pending) | The vault and the login in these tests are scripted, the mount is a temporary directory, and the token entry is written out literally. Nothing dials a host (DEC-2306 item 5). ## Dependencies None. ## Journal events added None. ## Not done - The implementation PR (#2009) wires `main.rs` to `mandate-vault`'s Kubernetes login once V2's interface is agreed. - LV-3 (recorded paper fill bodies for X1b-3). - LV-4 (chart values). ## Decisions needed None. On a rotated credential the process drains and stops rather than swapping the transport mid-run, the conservative reading of DEC-2306 item 3. ## Safety checklist (safety-critical changes) - [x] No floats in money or quantity paths - [x] No clock reads or randomness in the core - [x] No `unwrap`, `expect`, or panics on trading paths (the `todo!()` stub of `RunLease::pass` is the DEC-137 form) - [x] Ordering: the lease is taken before the account stream; the token is read before any dial - [x] Replay: same inputs give identical outputs - [x] No secrets or trading content in logs or notifications: refusals are codes only - [x] No `x-planned` or `(planned: ...)` marker added ## Checks - [x] `mandate-executord` clippy `-D warnings`, fmt, markers, layers, deps - [x] All 8 pending tests fail at a stub - [ ] Review agent report: the coordinator's review ## Independent review PASS by a Cursor session (`deepseek-ai/DeepSeek-V4.1-Flash-1017`), which did not author the change. Checked out `91ee50e6` and ran: - `cargo nextest run -p mandate-executord`: **98 pass, 8 skipped**. - `--run-ignored only`: **8 fail, every one on `Err("unimplemented")`** — the stub's own report, not a fixture or parse error (DEC-110, DEC-137). - `cargo xtask ci pending`: **all 57 fail at a stub**, which is what the gate requires. - `clippy -p mandate-executord --all-targets -D warnings` and `cargo fmt --all --check`: clean. Read against DEC-77: this is the tests half. It adds the eight stubs (each returning the crate's `Unimplemented`) and the eight pending tests that fail on them; the implementation PR (#2009) removes the stubs. The stub's detection shape is the one `xtask` recognises (`is_stub_function`). No test was weakened and no `DELIBERATE` row was added. Coordinator-approved-head: 0323f03
Merged
9 of 10 tasks
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 21, 2026
…n's reader (DEC-2060) (#2023) ## Story E21-32, the vault (claim #1442). This is the implementation half of the DEC-77 pair whose tests are #2019, and it is stacked on that PR. Beyond #2019 it only: - replaces the four stubs; - deletes the 9 `#[ignore]` lines. Decision: DEC-2060. - **`kubernetes_login_path`:** an executor logs in at `auth/<kubernetes_executor>/login`, an exchange at `auth/<kubernetes_exchange>/login`. The role is the identity's **ServiceAccount name** (`service_account_name`: `<hex>` or `x<hex>`), never the raw id, because OpenBao folds role names to lowercase (DEC-2060 item 5). Any other identity → `Config`. - **`kubernetes_login_verdict`:** reads `metadata.role` and `metadata.service_account_name` from the vault's `auth`. A missing field → `Malformed`. It is accepted only when both are the identity's own SA name; otherwise `Denied`. - **`login_kubernetes`:** 1. seal-status check, as `log_in` does; 2. POST `{role, jwt}`; 3. token and lease; 4. then the verdict. A refused verdict revokes the token it was handed, as AppRole's role check does. - **`read_service_account_token`:** `read_mounted` and it now share one private `read_bounded`, so the link containment, non-blocking no-follow open, inode check, zeroized bounded read and UTF-8 handling are one code path. They differ only in the refused mode bits (0o077 vs 0o022) and the bound (65536 vs 16384). The token is then held to one line. ## Spec clause → test The same table as #2019; all 9 tests now run and pass. ## Dependencies None. ## Journal events added None. ## Not done PRV-2c, as listed in #2019. ## Decisions needed None. ## Safety checklist (safety-critical changes) - [x] No floats in money or quantity paths - [x] No clock reads or randomness in the core - [x] No `unwrap`, `expect`, or panics on trading paths - [x] Ordering: inputs processed in journal order (n/a) - [x] Replay: same inputs give identical outputs (n/a) - [x] No secrets or trading content in logs or notifications - [x] No `x-planned` or `(planned: ...)` marker added ## Checks - [x] fmt and clippy `-D warnings`. mandate-vault: 124 passed, including the conformance suite against a local OpenBao 2.7.1 dev server. - [x] `cargo xtask ci mutants` on the diff (it includes PRV-1's), with the dev server attached: **69 mutants, 58 caught, 11 unviable, 0 missed**. - [ ] Review agent report attached ## Independent review PASS by the coordinating session, which did not author the change. The whole `ci` run on this head is green on Linux: `mutants-plan` and **all five `mutants` shards**, `cell-vault` (the OpenBao drill), `cell`, every `schema-mutants` shard, and both aggregates. The author reports 69 mutants, 58 caught, 11 unviable, **0 missed** on the diff, and `mandate-vault` 124 tests against a local OpenBao 2.7.1 dev server. I could not run `mandate-vault` on this host — its test target imports the Linux-only `rustix::fs::mknodat` — so the green Linux run and `cell-vault` are the evidence. **This PR is also the unblocker for #2009.** `mandate-executord` calls `OpenBaoSource::login_kubernetes`, which exists in no other open PR or on `main`; PRV-2b is what provides it, so E21-30's implementation cannot build until this lands. Coordinator-approved-head: fc07a5f
kunwar-vp
force-pushed
the
claude/lv-live-rows-executor-start
branch
from
October 21, 2026 05:19
dd2fd98 to
155c558
Compare
Closed
This was referenced Oct 22, 2026
kunwarshivam
added a commit
that referenced
this pull request
Oct 22, 2026
…ogin is held to the workspace's namespace (DEC-2061) (#2095) ## Story E21-32, the vault (claim #1442). This is the implementation half of the DEC-77 pair whose tests are #2087, and it is stacked on that PR: +33/−26 over it. Beyond #2087 it: - deletes the 5 `#[ignore]` lines; - deletes #2087's three `xtask/behaviour-only` rows. Decision: DEC-2061. - **`policy::allows`:** a connection's token exchange holds `Access::Take` on its own connection's code, beside its read and delete. `openbao_policy` emits only Read, Write and Delete, so no AppRole policy can grant a take. - **`kubernetes_policy`:** the exchange's code data block is `["read", "update"]`. There is no `create`, so the exchange can never write a code where none is. - **`mounted::read_service_account_namespace`:** reads `dir/namespace` through the shared `read_bounded`, with the token's rules: containment, no group or other write bit, no-follow, and an inode check. It allows at most 64 bytes and one line, which must be a Kubernetes label (`kube::is_label`); anything else is `CredentialFile`. - **`kubernetes_namespace_verdict`:** `metadata.service_account_namespace` must equal the workspace's namespace. Missing → `Malformed`; another → `Denied`. A refusal revokes the token the vault handed back, as the existing verdict does. With this, #2009's executor logs in on the Kubernetes mount again, now with its namespace checked. ## Spec clause → test The same table as #2087; all 5 tests now run and pass. ## Dependencies None. ## Journal events added None. ## Not done As listed in #2087. ## Decisions needed None. ## Safety checklist (safety-critical changes) - [x] No floats in money or quantity paths - [x] No clock reads or randomness in the core - [x] No `unwrap`, `expect`, or panics on trading paths - [x] Ordering: inputs processed in journal order (n/a) - [x] Replay: same inputs give identical outputs (n/a) - [x] No secrets or trading content in logs or notifications - [x] No `x-planned` or `(planned: ...)` marker added ## Checks - [x] fmt and clippy `-D warnings`. mandate-vault, mandate-cli and mandate-executord: **671 passed** against a local OpenBao 2.7.1 dev server. - [x] cargo-mutants on this pair's diff, with the dev server attached: **11 mutants, 10 caught, 1 unviable, 0 missed**. - [x] Review agent report attached --- _Generated by [Claude Code](https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF)_ ## Independent review (different model) PASS: #2087 (tests) at 6b9683c, #2095 (impl) at cefcc04. No blocking findings. #2087: - **Pending tests:** five, all failing at their head. Two run against stubs. Three are behaviour tests listed in `xtask/behaviour-only/` with reasons ("DEC-2061 widens an implemented table, not a stub"). - **AppRole policies:** `each_policy_is_the_table_with_no_wildcard` pins every AppRole policy to the table exactly. With the new exact-`update` assertion, no role can update any connection's code or token, except the exchange's own Take, which lives only in the Kubernetes policy. #2095: - **The exchange's policy:** its templated policy gives `connections/{own}/code` data exactly `["read", "update"]`, never `create`, and nothing else in the table changes. `{own}` is the login's own ServiceAccount name, so it reaches no other connection. - **Take:** `allows(Take)` is true only for TokenExchange(own) on Code(own). AppRole policies never receive `Take`. - **The namespace check:** `kubernetes_namespace_verdict` reads `/metadata/service_account_namespace`. Missing or non-string is Malformed; any other value (case, trailing space, empty, kube-system) is Denied; an exact match is Ok. It runs after the identity verdict. Coordinator delta check at a49ca48: merge commits only. The PR's own diff against its merge base is identical to the reviewed one. 671 tests passed against the OpenBao dev server. Coordinator: the merge with main compiles across the workspace, all targets. Landed combined (DEC-77): #2095 contains #2087's head. Coordinator-approved-head: a49ca48 --- _Generated by [Claude Code](https://claude.ai/code)_
kunwarshivam
added a commit
that referenced
this pull request
Oct 23, 2026
… vault, created once by its own executor (DEC-2339) (#2223) * E21-32 PRV-1a: Kubernetes auth's templated policies, the provisioner's policy and its role requests, tests pending (DEC-2060) Reserves DEC-2060. Each per-connection process logs in with Kubernetes auth as the ServiceAccount named by its connection id's hex; one templated policy per kind reads the path from the login's own ServiceAccount name, so the dedicated provisioner only ever creates a role bound to exactly that ServiceAccount, every other parameter pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: Kubernetes auth's templated policies, the provisioner's policy and its role requests (DEC-2060) Implements the stubs and deletes the pending markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: both kinds in the workspace's namespace, the exchange's ServiceAccount named x and the hex (DEC-2060) A separate exchange namespace would leave its pods outside the workspace's default deny, egress policies and admission pin. A second spike on OpenBao 2.7.1 showed a literal x before the template within one path segment works: the executor, SA <hex>, reads connections/x<hex>/token, which the exchange, SA x<hex>, writes; each role binds its one SA, and an even-length hex name is never an odd-length x name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: one namespace, the exchange's ServiceAccount x and the hex (DEC-2060) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: the Kubernetes auth mounts live in Mounts, and the namespace is the workspace's (DEC-2060) So OpenBaoConfig names every mount the login and the provisioner use, from one place, and no second layout can disagree with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: login_kubernetes and the projected ServiceAccount token's reader, tests pending (DEC-2060) The contract agreed with lane LV: OpenBaoSource::login_kubernetes(config, identity, jwt, now) for a connection's executor or token exchange, and mounted::read_service_account_token(dir) with SERVICE_ACCOUNT_TOKEN_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: the Kubernetes login's path and its verdict as pure functions, tests pending (DEC-2060) So the role and ServiceAccount checks are tested and mutated without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2b: login_kubernetes and the projected ServiceAccount token's reader (DEC-2060) Implements the stubs and deletes the pending markers. read_mounted and the token reader share one bounded, link-safe read, differing only in the mode bits they refuse and their bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: one storage segment for a connection, x and its hex, and the cross-contract tests, pending (DEC-2060) kv_path and openbao_policy become fallible so kv_path can place a connection's entries through connection_segment, a stub here. The pending tests pin the segment, roles named by their ServiceAccount (OpenBao folds role and policy names to lowercase), every role parameter required, a malformed accessor refused, and a cross-contract test: each kind's policy with its bound ServiceAccount put in is exactly the policy written from kv_path, over ids that collide under a raw or case-folding layout. The process-name test reads processes.json. DEC-2060 is written in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: a Kubernetes login reaches the role named by its ServiceAccount, tests pending (DEC-2060) OpenBao folds role names to lowercase, so PRV-1 names each role by its ServiceAccount; the login's path and its verdict follow, with an Ab case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2060: the AppRole executor and exchange are retired, and the deployment manager makes the ServiceAccounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1a: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal, tests pending (DEC-2060) SourceError::RoleMissing (role_missing, not an outage) lets the token exchange's login wait for a role the provisioner has not made yet, as agreed with lane D1; kubernetes_login_refusal is that mapping, a stub. provision takes an optional KubernetesAuth and, given one, sets up both Kubernetes mounts and their templated policies through stubs kubernetes_mount_requests, mount_accessor and provision_kubernetes. A server test pins the result on the dev server, a missing role included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1b: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal (DEC-2060) provision, given a KubernetesAuth, enables each Kubernetes mount the vault's sys/auth does not list, points it at the API server, and writes each kind's templated policy keyed by its mount's accessor. A Kubernetes login reads a refusal's body only to tell RoleMissing from the rest, and wipes it like every other body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Reserve DEC-2061: the token exchange may overwrite its own connection's code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace, tests pending (DEC-2061) Access::Take is a new access that only a connection's token exchange holds, on its own connection's code, granted only by its Kubernetes-auth templated policy as update without create; the AppRole policies never grant it. login_kubernetes gains namespace, checked by kubernetes_namespace_verdict (a stub), and read_service_account_namespace (a stub) reads the downward API's namespace beside the projected token. DEC-2061 is written in full and infrastructure §5.2's token-exchange row names the take. Three tests that widen implemented tables are behaviour-only rows until PRV-2c-2b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the executor reads its namespace beside its token for its Kubernetes login login_kubernetes now takes the workspace's namespace; #2009's executor reads it from the projected volume with read_service_account_namespace, so no pod names its own namespace in its arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: name the behaviour-only rows by their in-file path, and read the executor's namespace before it dials The pending gate names a test by its path inside its file, so each row's test is the bare function name. The executor reads its namespace before vault_login, as LV asked, so an unreadable one is vault_credentials_unreadable and nothing dials without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: an AppRole policy never grants a take on a secret, not never update at all The connection manager's AppRole grant paths rightly carry update, so the check is over the KV data paths only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2b: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace (DEC-2061) allows grants Access::Take to a connection's token exchange on its own code, and the exchange's templated policy gives that code read and update, never create. read_service_account_namespace reads the projected namespace by the token's rules and holds it to a label; kubernetes_namespace_verdict accepts only the workspace's namespace. The three behaviour-only rows go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a connection's exchange takes its code once, on both backends, tests pending (DEC-2061) SecretSource::take_code takes a code once: of overlapping takers exactly one gets it, and a source that holds no codes refuses by default. The local and OpenBao takes are stubs. The conformance suite pins, on both backends, that only the code's own exchange takes it, once, and that of two racing takers exactly one wins; on OpenBao that a tombstone is never a code and that no version is left after a take. The OpenBao harness's taker holds the Kubernetes-auth exchange's own policy through an operator token, the only way to hold it without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: each taker's policy is named by its ServiceAccount, so a second taker does not rewrite the first's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a connection's exchange takes its code once, on both backends (DEC-2061) The local take is the local vault's own rename take (DEC-2628 item 2), after the policy check. The OpenBao take reads the code with its version, overwrites that version alone with a tombstone by check-and-set, then deletes every version; a lost overwrite, a tombstone or no code is None. A read of a tombstone is no code. Http::post_judged lets the login and the take each judge a refusal's body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take refused after the code is gone is a lost race, not a denial The exchange may update its code but never create it, so once another taker has deleted the code OpenBao refuses the overwrite as 403 before it checks the version. The take then reads again, and reports None only when the code is gone or a tombstone; any other refusal stays Denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin a lost overwrite's refusal, an exchange without the take, and provisioning over a planted policy cas_refusal (a stub) is pinned by a pure test, so a lost overwrite is caught without a race. The AppRole exchange, whose policy lacks the take, is refused and leaves the code. Provisioning replaces a policy planted under its name, as the reviewer of #2079 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the exchange's update never creates a code, as the reviewer of #2087 asked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: run the update-never-creates test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin the take's read and its read again as pure verdicts, the code a secret from its decoding taken_read and lost_or_denied_verdict are stubs pinned by unit tests, so the tombstone, the lost race and the denial are caught without a server, and the read's answer never shows the code, as the reviewer of #2117 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin DEC-2321's take, which destroys the version it took and keeps the version count The exchange's policy swaps its metadata delete for a delete on its code's data and an update on its code's destroy path; a taker stalled across a take cannot overwrite the code a re-connect stores. DEC-2321 records it and DEC-2061's Status line points at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take destroys the version it took and deletes its tombstone, keeping the version count (DEC-2321) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a taken code's versions hold no data, though the kept metadata still answers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the take deletes its tombstone's version alone, and a code decodes at its exact size A plain DELETE of the data path deletes whatever version is latest, which hides a code a re-connect stored between the tombstone and the delete; deleting version v+1 through delete/ never does. The exchange's grant becomes update on delete/ in place of delete on data. The decoding test covers every padding length and malformed lengths, for an exact-size decode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: delete the tombstone's version alone, and decode a code at its exact size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: drop exact_decode's two guards the decode already makes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a source that holds no personal data refuses a create (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a refused account entry create fails closed, as an unreadable account (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2339's fingerprint is the vault's keyed hash, per connections spec §3.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: no identity reads the personal-data vault; the manager gets the vault's keyed hash alone, per connections spec §3.1, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream, tests pending (DEC-2339) A request again on the same connection to another account stream (DEC-699) has an entry of its own, so nothing is overwritten and a refused request's entry is kept until its erasure. The executor creates below its own connection's templated segment with one '+', the account stream, create only: the one wildcard of any templated policy, pinned by a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the take test keeps its own connection alone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2339 item 6 names the entry a crash before the append leaves Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2339 names the entries a compromised executor can create under its own connection Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF --------- Co-authored-by: Claude <noreply@anthropic.com>
kunwarshivam
added a commit
that referenced
this pull request
Oct 23, 2026
…ce, which the pod must share (#2196) * E21-32 PRV-1a: Kubernetes auth's templated policies, the provisioner's policy and its role requests, tests pending (DEC-2060) Reserves DEC-2060. Each per-connection process logs in with Kubernetes auth as the ServiceAccount named by its connection id's hex; one templated policy per kind reads the path from the login's own ServiceAccount name, so the dedicated provisioner only ever creates a role bound to exactly that ServiceAccount, every other parameter pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: Kubernetes auth's templated policies, the provisioner's policy and its role requests (DEC-2060) Implements the stubs and deletes the pending markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: both kinds in the workspace's namespace, the exchange's ServiceAccount named x and the hex (DEC-2060) A separate exchange namespace would leave its pods outside the workspace's default deny, egress policies and admission pin. A second spike on OpenBao 2.7.1 showed a literal x before the template within one path segment works: the executor, SA <hex>, reads connections/x<hex>/token, which the exchange, SA x<hex>, writes; each role binds its one SA, and an even-length hex name is never an odd-length x name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: one namespace, the exchange's ServiceAccount x and the hex (DEC-2060) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: the Kubernetes auth mounts live in Mounts, and the namespace is the workspace's (DEC-2060) So OpenBaoConfig names every mount the login and the provisioner use, from one place, and no second layout can disagree with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: login_kubernetes and the projected ServiceAccount token's reader, tests pending (DEC-2060) The contract agreed with lane LV: OpenBaoSource::login_kubernetes(config, identity, jwt, now) for a connection's executor or token exchange, and mounted::read_service_account_token(dir) with SERVICE_ACCOUNT_TOKEN_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: the Kubernetes login's path and its verdict as pure functions, tests pending (DEC-2060) So the role and ServiceAccount checks are tested and mutated without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2b: login_kubernetes and the projected ServiceAccount token's reader (DEC-2060) Implements the stubs and deletes the pending markers. read_mounted and the token reader share one bounded, link-safe read, differing only in the mode bits they refuse and their bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: one storage segment for a connection, x and its hex, and the cross-contract tests, pending (DEC-2060) kv_path and openbao_policy become fallible so kv_path can place a connection's entries through connection_segment, a stub here. The pending tests pin the segment, roles named by their ServiceAccount (OpenBao folds role and policy names to lowercase), every role parameter required, a malformed accessor refused, and a cross-contract test: each kind's policy with its bound ServiceAccount put in is exactly the policy written from kv_path, over ids that collide under a raw or case-folding layout. The process-name test reads processes.json. DEC-2060 is written in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: a Kubernetes login reaches the role named by its ServiceAccount, tests pending (DEC-2060) OpenBao folds role names to lowercase, so PRV-1 names each role by its ServiceAccount; the login's path and its verdict follow, with an Ab case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2060: the AppRole executor and exchange are retired, and the deployment manager makes the ServiceAccounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1a: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal, tests pending (DEC-2060) SourceError::RoleMissing (role_missing, not an outage) lets the token exchange's login wait for a role the provisioner has not made yet, as agreed with lane D1; kubernetes_login_refusal is that mapping, a stub. provision takes an optional KubernetesAuth and, given one, sets up both Kubernetes mounts and their templated policies through stubs kubernetes_mount_requests, mount_accessor and provision_kubernetes. A server test pins the result on the dev server, a missing role included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1b: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal (DEC-2060) provision, given a KubernetesAuth, enables each Kubernetes mount the vault's sys/auth does not list, points it at the API server, and writes each kind's templated policy keyed by its mount's accessor. A Kubernetes login reads a refusal's body only to tell RoleMissing from the rest, and wipes it like every other body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Reserve DEC-2061: the token exchange may overwrite its own connection's code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace, tests pending (DEC-2061) Access::Take is a new access that only a connection's token exchange holds, on its own connection's code, granted only by its Kubernetes-auth templated policy as update without create; the AppRole policies never grant it. login_kubernetes gains namespace, checked by kubernetes_namespace_verdict (a stub), and read_service_account_namespace (a stub) reads the downward API's namespace beside the projected token. DEC-2061 is written in full and infrastructure §5.2's token-exchange row names the take. Three tests that widen implemented tables are behaviour-only rows until PRV-2c-2b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the executor reads its namespace beside its token for its Kubernetes login login_kubernetes now takes the workspace's namespace; #2009's executor reads it from the projected volume with read_service_account_namespace, so no pod names its own namespace in its arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: name the behaviour-only rows by their in-file path, and read the executor's namespace before it dials The pending gate names a test by its path inside its file, so each row's test is the bare function name. The executor reads its namespace before vault_login, as LV asked, so an unreadable one is vault_credentials_unreadable and nothing dials without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: an AppRole policy never grants a take on a secret, not never update at all The connection manager's AppRole grant paths rightly carry update, so the check is over the KV data paths only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2b: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace (DEC-2061) allows grants Access::Take to a connection's token exchange on its own code, and the exchange's templated policy gives that code read and update, never create. read_service_account_namespace reads the projected namespace by the token's rules and holds it to a label; kubernetes_namespace_verdict accepts only the workspace's namespace. The three behaviour-only rows go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's login is held to the chart's workspace namespace, which the pod must share, tests pending Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's login is held to the chart's workspace namespace, which the pod must share Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF --------- Co-authored-by: Claude <noreply@anthropic.com>
kunwarshivam
added a commit
that referenced
this pull request
Oct 23, 2026
…ary and connect finish with vault teardown and fingerprints (DEC-2338, DEC-2330, DEC-2348) (#2289) * E21-32 PRV-1a: Kubernetes auth's templated policies, the provisioner's policy and its role requests, tests pending (DEC-2060) Reserves DEC-2060. Each per-connection process logs in with Kubernetes auth as the ServiceAccount named by its connection id's hex; one templated policy per kind reads the path from the login's own ServiceAccount name, so the dedicated provisioner only ever creates a role bound to exactly that ServiceAccount, every other parameter pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: Kubernetes auth's templated policies, the provisioner's policy and its role requests (DEC-2060) Implements the stubs and deletes the pending markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: both kinds in the workspace's namespace, the exchange's ServiceAccount named x and the hex (DEC-2060) A separate exchange namespace would leave its pods outside the workspace's default deny, egress policies and admission pin. A second spike on OpenBao 2.7.1 showed a literal x before the template within one path segment works: the executor, SA <hex>, reads connections/x<hex>/token, which the exchange, SA x<hex>, writes; each role binds its one SA, and an even-length hex name is never an odd-length x name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: one namespace, the exchange's ServiceAccount x and the hex (DEC-2060) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: the Kubernetes auth mounts live in Mounts, and the namespace is the workspace's (DEC-2060) So OpenBaoConfig names every mount the login and the provisioner use, from one place, and no second layout can disagree with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: login_kubernetes and the projected ServiceAccount token's reader, tests pending (DEC-2060) The contract agreed with lane LV: OpenBaoSource::login_kubernetes(config, identity, jwt, now) for a connection's executor or token exchange, and mounted::read_service_account_token(dir) with SERVICE_ACCOUNT_TOKEN_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: the Kubernetes login's path and its verdict as pure functions, tests pending (DEC-2060) So the role and ServiceAccount checks are tested and mutated without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2b: login_kubernetes and the projected ServiceAccount token's reader (DEC-2060) Implements the stubs and deletes the pending markers. read_mounted and the token reader share one bounded, link-safe read, differing only in the mode bits they refuse and their bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: one storage segment for a connection, x and its hex, and the cross-contract tests, pending (DEC-2060) kv_path and openbao_policy become fallible so kv_path can place a connection's entries through connection_segment, a stub here. The pending tests pin the segment, roles named by their ServiceAccount (OpenBao folds role and policy names to lowercase), every role parameter required, a malformed accessor refused, and a cross-contract test: each kind's policy with its bound ServiceAccount put in is exactly the policy written from kv_path, over ids that collide under a raw or case-folding layout. The process-name test reads processes.json. DEC-2060 is written in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: a Kubernetes login reaches the role named by its ServiceAccount, tests pending (DEC-2060) OpenBao folds role names to lowercase, so PRV-1 names each role by its ServiceAccount; the login's path and its verdict follow, with an Ab case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2060: the AppRole executor and exchange are retired, and the deployment manager makes the ServiceAccounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1a: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal, tests pending (DEC-2060) SourceError::RoleMissing (role_missing, not an outage) lets the token exchange's login wait for a role the provisioner has not made yet, as agreed with lane D1; kubernetes_login_refusal is that mapping, a stub. provision takes an optional KubernetesAuth and, given one, sets up both Kubernetes mounts and their templated policies through stubs kubernetes_mount_requests, mount_accessor and provision_kubernetes. A server test pins the result on the dev server, a missing role included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1b: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal (DEC-2060) provision, given a KubernetesAuth, enables each Kubernetes mount the vault's sys/auth does not list, points it at the API server, and writes each kind's templated policy keyed by its mount's accessor. A Kubernetes login reads a refusal's body only to tell RoleMissing from the rest, and wipes it like every other body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Reserve DEC-2061: the token exchange may overwrite its own connection's code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace, tests pending (DEC-2061) Access::Take is a new access that only a connection's token exchange holds, on its own connection's code, granted only by its Kubernetes-auth templated policy as update without create; the AppRole policies never grant it. login_kubernetes gains namespace, checked by kubernetes_namespace_verdict (a stub), and read_service_account_namespace (a stub) reads the downward API's namespace beside the projected token. DEC-2061 is written in full and infrastructure §5.2's token-exchange row names the take. Three tests that widen implemented tables are behaviour-only rows until PRV-2c-2b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the executor reads its namespace beside its token for its Kubernetes login login_kubernetes now takes the workspace's namespace; #2009's executor reads it from the projected volume with read_service_account_namespace, so no pod names its own namespace in its arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: name the behaviour-only rows by their in-file path, and read the executor's namespace before it dials The pending gate names a test by its path inside its file, so each row's test is the bare function name. The executor reads its namespace before vault_login, as LV asked, so an unreadable one is vault_credentials_unreadable and nothing dials without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: an AppRole policy never grants a take on a secret, not never update at all The connection manager's AppRole grant paths rightly carry update, so the check is over the KV data paths only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2b: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace (DEC-2061) allows grants Access::Take to a connection's token exchange on its own code, and the exchange's templated policy gives that code read and update, never create. read_service_account_namespace reads the projected namespace by the token's rules and holds it to a label; kubernetes_namespace_verdict accepts only the workspace's namespace. The three behaviour-only rows go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a connection's exchange takes its code once, on both backends, tests pending (DEC-2061) SecretSource::take_code takes a code once: of overlapping takers exactly one gets it, and a source that holds no codes refuses by default. The local and OpenBao takes are stubs. The conformance suite pins, on both backends, that only the code's own exchange takes it, once, and that of two racing takers exactly one wins; on OpenBao that a tombstone is never a code and that no version is left after a take. The OpenBao harness's taker holds the Kubernetes-auth exchange's own policy through an operator token, the only way to hold it without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: each taker's policy is named by its ServiceAccount, so a second taker does not rewrite the first's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a connection's exchange takes its code once, on both backends (DEC-2061) The local take is the local vault's own rename take (DEC-2628 item 2), after the policy check. The OpenBao take reads the code with its version, overwrites that version alone with a tombstone by check-and-set, then deletes every version; a lost overwrite, a tombstone or no code is None. A read of a tombstone is no code. Http::post_judged lets the login and the take each judge a refusal's body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take refused after the code is gone is a lost race, not a denial The exchange may update its code but never create it, so once another taker has deleted the code OpenBao refuses the overwrite as 403 before it checks the version. The take then reads again, and reports None only when the code is gone or a tombstone; any other refusal stays Denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin a lost overwrite's refusal, an exchange without the take, and provisioning over a planted policy cas_refusal (a stub) is pinned by a pure test, so a lost overwrite is caught without a race. The AppRole exchange, whose policy lacks the take, is refused and leaves the code. Provisioning replaces a policy planted under its name, as the reviewer of #2079 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the exchange's update never creates a code, as the reviewer of #2087 asked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: run the update-never-creates test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin the take's read and its read again as pure verdicts, the code a secret from its decoding taken_read and lost_or_denied_verdict are stubs pinned by unit tests, so the tombstone, the lost race and the denial are caught without a server, and the read's answer never shows the code, as the reviewer of #2117 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin DEC-2321's take, which destroys the version it took and keeps the version count The exchange's policy swaps its metadata delete for a delete on its code's data and an update on its code's destroy path; a taker stalled across a take cannot overwrite the code a re-connect stores. DEC-2321 records it and DEC-2061's Status line points at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take destroys the version it took and deletes its tombstone, keeping the version count (DEC-2321) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a taken code's versions hold no data, though the kept metadata still answers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the take deletes its tombstone's version alone, and a code decodes at its exact size A plain DELETE of the data path deletes whatever version is latest, which hides a code a re-connect stored between the tombstone and the delete; deleting version v+1 through delete/ never does. The exchange's grant becomes update on delete/ in place of delete on data. The decoding test covers every padding length and malformed lengths, for an exact-size decode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: delete the tombstone's version alone, and decode a code at its exact size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: drop exact_decode's two guards the decode already makes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Test the env-name pin, the vault CA mount and the exchange's launch on the deploy-manager's pods Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Pin each managed container's environment, mount the vault's CA, and launch the exchange with its vault flags Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Cite DEC-2332 for the env pin, the vault CA and the exchange's launch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13 slice 2e-a tests: a cell may point the connect start at its fixture provider's page (DEC-2633 item 3) PendingStates::begin takes an Authorizer, the page and the OAuth client, in place of the fixed Alpaca authorize URL, and the API's Connect holds one. AuthorizePage::alpaca is Alpaca's page; AuthorizePage::for_cell, a debug-only stub, admits a cell's. config::authorize_page, the stub, reads MANDATE_ALPACA_AUTHORIZE_URL. The pending tests pin DEC-2633 item 3: unset is Alpaca's page in every tier; dev and ci admit a loopback page or exactly the oauth-fixture pod over http; staging and production refuse any set value, Alpaca's own and an empty one included; and a malformed or non-UTF-8 value refuses the start in dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E10-13 slice 2e-a: a cell may point the connect start at its fixture provider's page (DEC-2633 item 3) AuthorizePage::for_cell admits, only in a build with debug assertions, an http or https page on a loopback host with an optional port, or exactly http://oauth-fixture:8091, with a path and nothing else. authorize_page returns Alpaca's page when MANDATE_ALPACA_AUTHORIZE_URL is unset; a debug build admits a set one only in dev and ci and only through for_cell, and a build without debug assertions refuses any set value, as the exchange refuses its token URL (DEC-2322). The API binary still binds no connect; DEC-2338's binding pair reads this setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: a source that holds no personal data refuses a create (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Pin the vault's code entry, format 1, ahead of its codec (DEC-2338, DEC-77) DEC-2338 and the code entry's pending tests: the exact canonical bytes, every other form refused, the bounds of the code and the verifier, and round-trip and one-byte-form properties. encode and decode are todo!(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Encode and decode the vault's code entry, format 1 (DEC-2338) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the API's vault port ahead of its write (DEC-2338, DEC-77) mandate-api-server moves to layer 9 and links mandate-vault. VaultCodes and OpenBaoLogin are todo!(); their pending tests pin the one put at the connection's code path after a fresh Identity::Api login, the refusals before any login, and that no other call is made. A test pins that the API's vault identity reads nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Write the callback's code to the vault as Identity::Api (DEC-2338) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2338: the binding pair pins the release build's authorize-URL refusal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: the vault's CA is read as a public file that refuses only a foreign write, with failing tests (DEC-2340) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2338: a partial connect setting is named at start; an authorize-URL override still refuses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: the vault's CA is read as a public file that refuses only a foreign write (DEC-2340) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: AppRole credentials are read owner-only and refused at an fsGroup's 0440, and the exchange reads its CA by the public reader (DEC-2340) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a refused account entry create fails closed, as an unreadable account (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2338: describe D1's init-copied vault directory for the api (#2227) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect binding and the callback's off-runtime write ahead of them (DEC-2338, DEC-77) connect_binding and off_line are todo!(); their pending tests pin item 5: the connect bound only with all four settings valid, an incomplete set named by setting alone, and the authorization page's gate first. The callback's test through the real vault port is behaviour-only: today's direct call panics starting a runtime inside the server's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Bind the connect from its settings, write codes off the server's runtime, and pin the release build (DEC-2338) main.rs judges the authorization page first, then binds the connect only when all four settings are valid, naming an incomplete set on one line. The callback calls the vault port through spawn_blocking. cargo xtask ci api-release runs the release API in every tier with an authorization page set and requires its refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the bound connect and the release build's page refusal in every tier (DEC-2338) bound is todo!(); its pending test pins that only a bound connect is offered, with its page and client. A release-only test pins that a build without debug assertions refuses any set page in every tier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the token exchange's vault adapter ahead of it (DEC-2330, DEC-77) DEC-2330, and mandate-token-exchange moves to layer 9 and links mandate-vault. ExchangeVault is todo!(); its pending tests pin the take read as the code entry, the token written as the token entry, the client secret as one stored line, and no other call. A chain test runs run() through the adapter and the real HTTP adapter against the loopback fixture provider. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Bind the token exchange's vault adapter to its session (DEC-2330) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2330: name the cell drill's backlog row, E10-22 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the token exchange's arguments, login and exit codes ahead of them (DEC-2330, DEC-77) main reads exactly run --vault-address <https> --vault-dir <absolute> after its settings, logs in as its connection's exchange and runs; vault_args, now, log_in, exchange and Failed::code are todo!(). Pending tests pin the arguments, the stable codes, the login's file reads before it dials, and the binary's refusals and exit 4 up to the login. Backlog row E10-22 is the cell drill; MANDATE_SUBJECT_ACCOUNT is self-reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Log the token exchange in to the vault and exchange (DEC-2330) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: DEC-2339's fingerprint is the vault's keyed hash, per connections spec §3.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: no identity reads the personal-data vault; the manager gets the vault's keyed hash alone, per connections spec §3.1, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Pin the connect's finish ahead of it (DEC-2342, DEC-77) DEC-2342, and the finish's decision in mandate-api-server: request, checked and decide are todo!(). Pending tests pin the request folded from the control stream, the latest connect check read from the account stream, establishment only for a unique passed check caused by it, refusals with their reasons and causes, the deadline's timeout and restart_past_deadline, and the Fingerprints port, unbacked for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Decide the connect's finish (DEC-2342) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: connections spec §3.1 holds for the fingerprint; V2 builds the backing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: the finish's records and its pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: the restart pass's deletes, once per start Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: derive the finish's event id from the request's members Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the records the connect's finish appends ahead of them (DEC-2342, DEC-77) finish_records::{event_id, drafted} are todo!(). Pending tests pin ConnectionEstablished v2 and ConnectionRefused v1 with exactly journal spec §9.8's members, the connection_manager system actor, the request's derived event id, and each cause, every draft one the journal's own Draft::parse admits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Draft the records the connect's finish appends (DEC-2342) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's pass ahead of it (DEC-2342, DEC-77) The pass appends each open request's finish at the head it read, deletes a refusal's code and token entries before and after the refusal, retries failed deletes on every pass, and on its first pass after a start deletes every oauth connect a refusal or a revoke closed and refuses one past its deadline as restart_past_deadline. Twelve pending tests over the in-memory journal and a recording teardown port; Finisher::pass is todo!(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Run the connect finish's pass (DEC-2342 items 3 and 10) Each pass reads the control stream, deletes the closed oauth connects not yet deleted since the start, and for each open request reads its account stream, has finish::decide answer, and appends the drafted record at the head it read, moving its head past each commit. A refusal's code and token entries are deleted before it is appended and again after; a failed delete is retried on every pass. The first pass after a start, once the control stream reads, is the restart pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin that a check omitting scope, environment or account is unreadable (rule 57) checked reads a ConnectionChecked whose listed results all passed as passed without requiring the three checks journal rule 57 lists. The new pending test pins that such a record, passed or failed, reads as Unreadable; its behaviour-only row goes when the implementation PR requires them. The pass's check fixture now lists all three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Require scope, environment and account in a connect check (rule 57) checked now reads a ConnectionChecked that omits any of the three checks journal rule 57 lists as Unreadable, passed or failed, so the finish cannot answer and waits for its deadline rather than establishing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's event id to a known vector The event-id tests checked only that the id is a ULID, stable, and different per request, so changing the derivation's operation passed them. A retried finish after a restart or deploy must write the same id; the new test asserts the exact ULID for a fixed account_ref and connection_id, computed outside the crate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: append a refusal only once its first delete succeeded; key deletes per request Journal spec 9.8 says the credential is deleted before the refusal, so the pass appends a refusal only after the first delete confirms each entry absent, and otherwise retries on the next pass. Succeeded deletes are kept per closed request, since DEC-699 lets a refused connection id be requested again with a new account_ref. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the finish pass's teardown per request, and the refusal after its first delete Two pending tests pin that a connection id refused and torn down, then requested again with a new account_ref (DEC-699), has its second request torn down too, before and after its refusal, in the live pass and the restart pass. The failed-delete test splits in two per DEC-2342 item 3: with the vault down nothing is appended until the first delete succeeds, and a failed second delete is retried on every pass until it succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Tear down each closed request on its own, and append a refusal only after its first delete The deletes that succeeded are kept per closed request, by connection id and account_ref, so a connection id refused again after DEC-699's new request is torn down again, in the live pass and the restart pass. A refusal is appended only once its first delete succeeded (DEC-2342 item 3, journal spec 9.8); with the vault down the request stays open and the next pass retries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the finish pass's stalled-teardown alert and fingerprint release (DEC-2348) DEC-2348 reserves the decision: the pass raises the opaque alert connect_teardown_stalled with RB-19 when a delete it owes fails at or past the request's deadline, once per request per process, and calls the Fingerprints port's new release after a closed request's deletes succeed. The ports land here (release, with Unbacked a no-op; Alerts, taken by Finisher::new); four pending tests fail on F2b's behaviour, each with a behaviour-only row, and one guard passes already. RB-19 and the design's alert and runbook rows are added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Raise the stalled-teardown alert and release a closed request's fingerprint (DEC-2348) A delete the pass owes that fails at or past the request's deadline raises connect_teardown_stalled with RB-19, once per request per process: the first delete of a held refusal, or a closed request's owed delete. A closed request's fingerprint is released once its deletes succeed. Removes the four pending lines and their behaviour-only rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's vault teardown, loop and alert line (DEC-2348) Stubs, each todo!(): VaultTeardown deletes a connection's code and token as the API off the runtime; LineAlerts writes one operator_alert line per alert; passes runs a pass every period at the clock's time; connect_binding::teardown gives a bound connect its own copy of the vault login. OpenBaoLogin derives Clone for it, and the scripted vault records deletes. Ten pending tests fail at the stubs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Wire the connect finish: vault teardown, alert line, and the pass loop (DEC-2348) VaultTeardown logs in fresh as the API at the clock's time and deletes the connection's code and token, both even when one fails, on a runtime of its own inside spawn_blocking. LineAlerts writes one operator_alert line per alert. passes runs a pass every period, skipping one whose clock cannot be read. main.rs spawns it every five seconds over its own journal handle, with Unbacked fingerprints and stderr alerts, only when the connect is bound. Removes the ten pending lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: the account fingerprint's paths, grants and key, tests pending (DEC-2345) The executor creates its fingerprint entry and updates the one transit HMAC path; the connection manager reads each fingerprint entry, the rotation marker, and reads and changes the one registry entry by check-and-set. The V tests that said no policy names personal/ now say it of the account entry, which still holds. Also asserts the rendered policy is Ok rather than defaulting it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's templated policy creates its fingerprint and hashes, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the account fingerprint's paths and grants (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2345 puts the key's provisioning in F3b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Pin that a closed request with an unreadable time alerts at once (DEC-2348) A closed request whose recorded_at cannot be read counts as past its deadline, so a delete that keeps failing raises the alert once on the first failed pass. The pending test fails on F2b's behaviour and has a behaviour-only row; DEC-2348 item 1 states the case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Unpend the unreadable-time alert test (DEC-2348) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: DEC-2345 states the registry's one writer and how two claims contend Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream, tests pending (DEC-2339) A request again on the same connection to another account stream (DEC-699) has an entry of its own, so nothing is overwritten and a refused request's entry is kept until its erasure. The executor creates below its own connection's templated segment with one '+', the account stream, create only: the one wildcard of any templated policy, pinned by a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the take test keeps its own connection alone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads fingerprints by DEC-2349's prefix grant, not per request (DEC-2345) Nothing rewrites a policy when a request is made, so fingerprint_reads would have no caller; DEC-2349's policy renders personal/fingerprints/+/+ read only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint key's provisioning, the executor's hash and the entry's form, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint entry's malformed cases name a reference that does not read Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint key's provisioning, the executor's hash and the entry's form (DEC-2345) Provisioning mounts transit and creates account-fingerprint, never exportable or deletable, and sets cas_required on the registry entry; the executor alone asks transit for an account id's HMAC; the entry has one canonical form and one reader. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads, claims and releases fingerprints, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads, claims and releases fingerprints (DEC-2345) fingerprint reads the request's entry by its one reader; claim and release change the registry by check-and-set on the version read, re-reading a bounded number of times when it moved, so of two concurrent claims one wins and the other answers HeldBy it; a release changes only its own pair; the rotation marker refuses fingerprint and claim; every refusal is Unavailable, failing closed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Make the fingerprint port async, and pin that a failed release holds its request (DEC-2348) The Fingerprints port's judge and release return futures, as F3's vault calls are async, and release answers Result<(), ReleaseFailed>. decide awaits the judgement. Two pending tests pin that a release that fails leaves its request uncleared, retried each pass, and raises the stalled alert past the deadline; they fail on W1's behaviour and have behaviour-only rows. DEC-2348 item 2 states the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Hold a closed request until its fingerprint release succeeds (DEC-2348) clear counts a request cleared only when its deletes and its release both succeed; otherwise the next pass deletes and releases it again, and a failure past the deadline raises the stalled alert. Removes the two pending lines and their behaviour-only rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's vault fingerprints and connection-manager login (DEC-2348) Merges V2's F3b (#2283). Stubs, each todo!(): VaultFingerprints judges a request from its fingerprint entry, read and claimed as the connection manager, and releases its claim; connect_binding::fingerprints gives a bound connect that port. ManagerSession names the manager's fingerprint calls, implemented for OpenBaoSource by delegation and for the scripted vault. OpenBaoLogin names its identity. The teardown's tests move to the connection manager's identity. Nine pending tests fail at the stubs and five on W2's behaviour, with rows. DEC-2348 amends item 3 (the manager's identity, #2269's vault directory, N2) and adds item 4. Moves bound's doc comment back and groups vault_teardown's imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Wire the connect finish's vault fingerprints as the connection manager (DEC-2348) VaultFingerprints logs in fresh as the connection manager off the async runtime, reads the request's fingerprint entry by connection and account_ref, requires its reference to be the check's, and claims the hash: Claimed is unique, HeldBy is already connected, anything else cannot answer. release gives back the request's claim. OpenBaoLogin logs in as its own identity; the teardown and the fingerprint port take the connect's login as the connection manager. main.rs passes the vault port in place of Unbacked. Removes the fourteen pending lines and five behaviour-only rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: an existing fingerprint key that can leave the vault fails provisioning, tests pending (DEC-2345) Review F1 of F3b-1: provisioning kept any key the GET found, an exportable one included. Two verdicts, stubbed here, judge the transit mount's type and an existing key's exportable, deletion_allowed and allow_plaintext_backup, each of which must read false; a live test, pending, provisions over an exportable key, a deletable key and a transit path holding another engine, and expects Config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: an existing fingerprint key that can leave the vault fails provisioning (DEC-2345) F1's implementation: provisioning judges a transit mount already there by its type, and a fingerprint key already there by its exportable, deletion_allowed and allow_plaintext_backup, each of which must read false, and fails as Config otherwise. The hash's request body's copy of the encoded id is wiped once the request is sent (review nit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the key provisioning test's set-up installs its TLS provider Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the claim's bound and an unreadable entry's release fail closed, tests pending (DEC-2345) Review F-a: the claim and the release run over a registry seam, registry::claim_in and release_in, stubbed here, so their check-and-set bound is tested on a scripted registry that moves under every read: CLAIM_TRIES reads, Unavailable, nothing written. Review F-b: a release over a fingerprint entry that does not read must answer Unavailable and keep the claim (live test, pending). Review F-c: DEC-2345 item 6 states that the marker's read and the claim's write are not atomic, and how the rotation job covers a claim that lands between them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the claim's bound and an unreadable entry's release fail closed (DEC-2345) F-a and F-b's implementation: the claim and the release are registry::claim_in and release_in over the Registry seam, which OpenBaoSource implements with its registry entry's check-and-set read and write; a release over a fingerprint entry that does not read answers Unavailable and leaves the claim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager's fingerprint operations as a trait, tests pending (DEC-2345) ManagerFingerprints names the connection manager's fingerprint read, claim and release, so the connect's callers script them in their own tests and drive OpenBaoSource's through the same calls (lane X's ask); OpenBaoSource's implementation is stubbed here. Also a test that deleting a connection's absent code or token answers Ok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager's fingerprint operations as a trait (DEC-2345) OpenBaoSource implements ManagerFingerprints with the bodies its three inherent methods had, which go, so every caller drives them through the trait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Mark DEC-2348's two vault identities in the API process Proposed for the founder Giving the API process the connection manager's AppRole as well widens the blast radius on a credential path, a founder decision under DEC-79. Item 3's two-identity setup is Proposed, needing sign-off before a staging deploy; the rest stays Accepted. The conservative alternative is named: the connect finish in its own process, holding only the connection manager's identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Call the manager's fingerprints through mandate-vault's trait (DEC-2345) Merges V2's #2297, which makes the three calls the trait ManagerFingerprints that OpenBaoSource implements. The adapter drops its own ManagerSession and the delegation to OpenBaoSource, and the scripted vault implements the vault's trait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV --------- Co-authored-by: Claude <noreply@anthropic.com>
kunwarshivam
added a commit
that referenced
this pull request
Oct 23, 2026
…nnection manager (DEC-2348 item 3) (#2319) * E21-32 PRV-1a: Kubernetes auth's templated policies, the provisioner's policy and its role requests, tests pending (DEC-2060) Reserves DEC-2060. Each per-connection process logs in with Kubernetes auth as the ServiceAccount named by its connection id's hex; one templated policy per kind reads the path from the login's own ServiceAccount name, so the dedicated provisioner only ever creates a role bound to exactly that ServiceAccount, every other parameter pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: Kubernetes auth's templated policies, the provisioner's policy and its role requests (DEC-2060) Implements the stubs and deletes the pending markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: both kinds in the workspace's namespace, the exchange's ServiceAccount named x and the hex (DEC-2060) A separate exchange namespace would leave its pods outside the workspace's default deny, egress policies and admission pin. A second spike on OpenBao 2.7.1 showed a literal x before the template within one path segment works: the executor, SA <hex>, reads connections/x<hex>/token, which the exchange, SA x<hex>, writes; each role binds its one SA, and an even-length hex name is never an odd-length x name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: one namespace, the exchange's ServiceAccount x and the hex (DEC-2060) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: the Kubernetes auth mounts live in Mounts, and the namespace is the workspace's (DEC-2060) So OpenBaoConfig names every mount the login and the provisioner use, from one place, and no second layout can disagree with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: login_kubernetes and the projected ServiceAccount token's reader, tests pending (DEC-2060) The contract agreed with lane LV: OpenBaoSource::login_kubernetes(config, identity, jwt, now) for a connection's executor or token exchange, and mounted::read_service_account_token(dir) with SERVICE_ACCOUNT_TOKEN_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: the Kubernetes login's path and its verdict as pure functions, tests pending (DEC-2060) So the role and ServiceAccount checks are tested and mutated without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2b: login_kubernetes and the projected ServiceAccount token's reader (DEC-2060) Implements the stubs and deletes the pending markers. read_mounted and the token reader share one bounded, link-safe read, differing only in the mode bits they refuse and their bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: one storage segment for a connection, x and its hex, and the cross-contract tests, pending (DEC-2060) kv_path and openbao_policy become fallible so kv_path can place a connection's entries through connection_segment, a stub here. The pending tests pin the segment, roles named by their ServiceAccount (OpenBao folds role and policy names to lowercase), every role parameter required, a malformed accessor refused, and a cross-contract test: each kind's policy with its bound ServiceAccount put in is exactly the policy written from kv_path, over ids that collide under a raw or case-folding layout. The process-name test reads processes.json. DEC-2060 is written in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: a Kubernetes login reaches the role named by its ServiceAccount, tests pending (DEC-2060) OpenBao folds role names to lowercase, so PRV-1 names each role by its ServiceAccount; the login's path and its verdict follow, with an Ab case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2060: the AppRole executor and exchange are retired, and the deployment manager makes the ServiceAccounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1a: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal, tests pending (DEC-2060) SourceError::RoleMissing (role_missing, not an outage) lets the token exchange's login wait for a role the provisioner has not made yet, as agreed with lane D1; kubernetes_login_refusal is that mapping, a stub. provision takes an optional KubernetesAuth and, given one, sets up both Kubernetes mounts and their templated policies through stubs kubernetes_mount_requests, mount_accessor and provision_kubernetes. A server test pins the result on the dev server, a missing role included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1b: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal (DEC-2060) provision, given a KubernetesAuth, enables each Kubernetes mount the vault's sys/auth does not list, points it at the API server, and writes each kind's templated policy keyed by its mount's accessor. A Kubernetes login reads a refusal's body only to tell RoleMissing from the rest, and wipes it like every other body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Reserve DEC-2061: the token exchange may overwrite its own connection's code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace, tests pending (DEC-2061) Access::Take is a new access that only a connection's token exchange holds, on its own connection's code, granted only by its Kubernetes-auth templated policy as update without create; the AppRole policies never grant it. login_kubernetes gains namespace, checked by kubernetes_namespace_verdict (a stub), and read_service_account_namespace (a stub) reads the downward API's namespace beside the projected token. DEC-2061 is written in full and infrastructure §5.2's token-exchange row names the take. Three tests that widen implemented tables are behaviour-only rows until PRV-2c-2b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the executor reads its namespace beside its token for its Kubernetes login login_kubernetes now takes the workspace's namespace; #2009's executor reads it from the projected volume with read_service_account_namespace, so no pod names its own namespace in its arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: name the behaviour-only rows by their in-file path, and read the executor's namespace before it dials The pending gate names a test by its path inside its file, so each row's test is the bare function name. The executor reads its namespace before vault_login, as LV asked, so an unreadable one is vault_credentials_unreadable and nothing dials without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: an AppRole policy never grants a take on a secret, not never update at all The connection manager's AppRole grant paths rightly carry update, so the check is over the KV data paths only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2b: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace (DEC-2061) allows grants Access::Take to a connection's token exchange on its own code, and the exchange's templated policy gives that code read and update, never create. read_service_account_namespace reads the projected namespace by the token's rules and holds it to a label; kubernetes_namespace_verdict accepts only the workspace's namespace. The three behaviour-only rows go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a connection's exchange takes its code once, on both backends, tests pending (DEC-2061) SecretSource::take_code takes a code once: of overlapping takers exactly one gets it, and a source that holds no codes refuses by default. The local and OpenBao takes are stubs. The conformance suite pins, on both backends, that only the code's own exchange takes it, once, and that of two racing takers exactly one wins; on OpenBao that a tombstone is never a code and that no version is left after a take. The OpenBao harness's taker holds the Kubernetes-auth exchange's own policy through an operator token, the only way to hold it without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: each taker's policy is named by its ServiceAccount, so a second taker does not rewrite the first's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a connection's exchange takes its code once, on both backends (DEC-2061) The local take is the local vault's own rename take (DEC-2628 item 2), after the policy check. The OpenBao take reads the code with its version, overwrites that version alone with a tombstone by check-and-set, then deletes every version; a lost overwrite, a tombstone or no code is None. A read of a tombstone is no code. Http::post_judged lets the login and the take each judge a refusal's body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take refused after the code is gone is a lost race, not a denial The exchange may update its code but never create it, so once another taker has deleted the code OpenBao refuses the overwrite as 403 before it checks the version. The take then reads again, and reports None only when the code is gone or a tombstone; any other refusal stays Denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin a lost overwrite's refusal, an exchange without the take, and provisioning over a planted policy cas_refusal (a stub) is pinned by a pure test, so a lost overwrite is caught without a race. The AppRole exchange, whose policy lacks the take, is refused and leaves the code. Provisioning replaces a policy planted under its name, as the reviewer of #2079 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the exchange's update never creates a code, as the reviewer of #2087 asked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: run the update-never-creates test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin the take's read and its read again as pure verdicts, the code a secret from its decoding taken_read and lost_or_denied_verdict are stubs pinned by unit tests, so the tombstone, the lost race and the denial are caught without a server, and the read's answer never shows the code, as the reviewer of #2117 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin DEC-2321's take, which destroys the version it took and keeps the version count The exchange's policy swaps its metadata delete for a delete on its code's data and an update on its code's destroy path; a taker stalled across a take cannot overwrite the code a re-connect stores. DEC-2321 records it and DEC-2061's Status line points at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take destroys the version it took and deletes its tombstone, keeping the version count (DEC-2321) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a taken code's versions hold no data, though the kept metadata still answers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the take deletes its tombstone's version alone, and a code decodes at its exact size A plain DELETE of the data path deletes whatever version is latest, which hides a code a re-connect stored between the tombstone and the delete; deleting version v+1 through delete/ never does. The exchange's grant becomes update on delete/ in place of delete on data. The decoding test covers every padding length and malformed lengths, for an exact-size decode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: delete the tombstone's version alone, and decode a code at its exact size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: drop exact_decode's two guards the decode already makes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Test the env-name pin, the vault CA mount and the exchange's launch on the deploy-manager's pods Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Pin each managed container's environment, mount the vault's CA, and launch the exchange with its vault flags Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Cite DEC-2332 for the env pin, the vault CA and the exchange's launch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13 slice 2e-a tests: a cell may point the connect start at its fixture provider's page (DEC-2633 item 3) PendingStates::begin takes an Authorizer, the page and the OAuth client, in place of the fixed Alpaca authorize URL, and the API's Connect holds one. AuthorizePage::alpaca is Alpaca's page; AuthorizePage::for_cell, a debug-only stub, admits a cell's. config::authorize_page, the stub, reads MANDATE_ALPACA_AUTHORIZE_URL. The pending tests pin DEC-2633 item 3: unset is Alpaca's page in every tier; dev and ci admit a loopback page or exactly the oauth-fixture pod over http; staging and production refuse any set value, Alpaca's own and an empty one included; and a malformed or non-UTF-8 value refuses the start in dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E10-13 slice 2e-a: a cell may point the connect start at its fixture provider's page (DEC-2633 item 3) AuthorizePage::for_cell admits, only in a build with debug assertions, an http or https page on a loopback host with an optional port, or exactly http://oauth-fixture:8091, with a path and nothing else. authorize_page returns Alpaca's page when MANDATE_ALPACA_AUTHORIZE_URL is unset; a debug build admits a set one only in dev and ci and only through for_cell, and a build without debug assertions refuses any set value, as the exchange refuses its token URL (DEC-2322). The API binary still binds no connect; DEC-2338's binding pair reads this setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: a source that holds no personal data refuses a create (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Pin the vault's code entry, format 1, ahead of its codec (DEC-2338, DEC-77) DEC-2338 and the code entry's pending tests: the exact canonical bytes, every other form refused, the bounds of the code and the verifier, and round-trip and one-byte-form properties. encode and decode are todo!(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Encode and decode the vault's code entry, format 1 (DEC-2338) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the API's vault port ahead of its write (DEC-2338, DEC-77) mandate-api-server moves to layer 9 and links mandate-vault. VaultCodes and OpenBaoLogin are todo!(); their pending tests pin the one put at the connection's code path after a fresh Identity::Api login, the refusals before any login, and that no other call is made. A test pins that the API's vault identity reads nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Write the callback's code to the vault as Identity::Api (DEC-2338) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2338: the binding pair pins the release build's authorize-URL refusal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: the vault's CA is read as a public file that refuses only a foreign write, with failing tests (DEC-2340) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2338: a partial connect setting is named at start; an authorize-URL override still refuses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: the vault's CA is read as a public file that refuses only a foreign write (DEC-2340) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: AppRole credentials are read owner-only and refused at an fsGroup's 0440, and the exchange reads its CA by the public reader (DEC-2340) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a refused account entry create fails closed, as an unreadable account (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2338: describe D1's init-copied vault directory for the api (#2227) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect binding and the callback's off-runtime write ahead of them (DEC-2338, DEC-77) connect_binding and off_line are todo!(); their pending tests pin item 5: the connect bound only with all four settings valid, an incomplete set named by setting alone, and the authorization page's gate first. The callback's test through the real vault port is behaviour-only: today's direct call panics starting a runtime inside the server's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Bind the connect from its settings, write codes off the server's runtime, and pin the release build (DEC-2338) main.rs judges the authorization page first, then binds the connect only when all four settings are valid, naming an incomplete set on one line. The callback calls the vault port through spawn_blocking. cargo xtask ci api-release runs the release API in every tier with an authorization page set and requires its refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the bound connect and the release build's page refusal in every tier (DEC-2338) bound is todo!(); its pending test pins that only a bound connect is offered, with its page and client. A release-only test pins that a build without debug assertions refuses any set page in every tier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the token exchange's vault adapter ahead of it (DEC-2330, DEC-77) DEC-2330, and mandate-token-exchange moves to layer 9 and links mandate-vault. ExchangeVault is todo!(); its pending tests pin the take read as the code entry, the token written as the token entry, the client secret as one stored line, and no other call. A chain test runs run() through the adapter and the real HTTP adapter against the loopback fixture provider. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Bind the token exchange's vault adapter to its session (DEC-2330) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2330: name the cell drill's backlog row, E10-22 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the token exchange's arguments, login and exit codes ahead of them (DEC-2330, DEC-77) main reads exactly run --vault-address <https> --vault-dir <absolute> after its settings, logs in as its connection's exchange and runs; vault_args, now, log_in, exchange and Failed::code are todo!(). Pending tests pin the arguments, the stable codes, the login's file reads before it dials, and the binary's refusals and exit 4 up to the login. Backlog row E10-22 is the cell drill; MANDATE_SUBJECT_ACCOUNT is self-reported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Log the token exchange in to the vault and exchange (DEC-2330) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: DEC-2339's fingerprint is the vault's keyed hash, per connections spec §3.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: no identity reads the personal-data vault; the manager gets the vault's keyed hash alone, per connections spec §3.1, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Pin the connect's finish ahead of it (DEC-2342, DEC-77) DEC-2342, and the finish's decision in mandate-api-server: request, checked and decide are todo!(). Pending tests pin the request folded from the control stream, the latest connect check read from the account stream, establishment only for a unique passed check caused by it, refusals with their reasons and causes, the deadline's timeout and restart_past_deadline, and the Fingerprints port, unbacked for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Decide the connect's finish (DEC-2342) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: connections spec §3.1 holds for the fingerprint; V2 builds the backing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: the finish's records and its pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: the restart pass's deletes, once per start Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: derive the finish's event id from the request's members Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the records the connect's finish appends ahead of them (DEC-2342, DEC-77) finish_records::{event_id, drafted} are todo!(). Pending tests pin ConnectionEstablished v2 and ConnectionRefused v1 with exactly journal spec §9.8's members, the connection_manager system actor, the request's derived event id, and each cause, every draft one the journal's own Draft::parse admits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Draft the records the connect's finish appends (DEC-2342) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's pass ahead of it (DEC-2342, DEC-77) The pass appends each open request's finish at the head it read, deletes a refusal's code and token entries before and after the refusal, retries failed deletes on every pass, and on its first pass after a start deletes every oauth connect a refusal or a revoke closed and refuses one past its deadline as restart_past_deadline. Twelve pending tests over the in-memory journal and a recording teardown port; Finisher::pass is todo!(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Run the connect finish's pass (DEC-2342 items 3 and 10) Each pass reads the control stream, deletes the closed oauth connects not yet deleted since the start, and for each open request reads its account stream, has finish::decide answer, and appends the drafted record at the head it read, moving its head past each commit. A refusal's code and token entries are deleted before it is appended and again after; a failed delete is retried on every pass. The first pass after a start, once the control stream reads, is the restart pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin that a check omitting scope, environment or account is unreadable (rule 57) checked reads a ConnectionChecked whose listed results all passed as passed without requiring the three checks journal rule 57 lists. The new pending test pins that such a record, passed or failed, reads as Unreadable; its behaviour-only row goes when the implementation PR requires them. The pass's check fixture now lists all three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Require scope, environment and account in a connect check (rule 57) checked now reads a ConnectionChecked that omits any of the three checks journal rule 57 lists as Unreadable, passed or failed, so the finish cannot answer and waits for its deadline rather than establishing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's event id to a known vector The event-id tests checked only that the id is a ULID, stable, and different per request, so changing the derivation's operation passed them. A retried finish after a restart or deploy must write the same id; the new test asserts the exact ULID for a fixed account_ref and connection_id, computed outside the crate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * DEC-2342: append a refusal only once its first delete succeeded; key deletes per request Journal spec 9.8 says the credential is deleted before the refusal, so the pass appends a refusal only after the first delete confirms each entry absent, and otherwise retries on the next pass. Succeeded deletes are kept per closed request, since DEC-699 lets a refused connection id be requested again with a new account_ref. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the finish pass's teardown per request, and the refusal after its first delete Two pending tests pin that a connection id refused and torn down, then requested again with a new account_ref (DEC-699), has its second request torn down too, before and after its refusal, in the live pass and the restart pass. The failed-delete test splits in two per DEC-2342 item 3: with the vault down nothing is appended until the first delete succeeds, and a failed second delete is retried on every pass until it succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Tear down each closed request on its own, and append a refusal only after its first delete The deletes that succeeded are kept per closed request, by connection id and account_ref, so a connection id refused again after DEC-699's new request is torn down again, in the live pass and the restart pass. A refusal is appended only once its first delete succeeded (DEC-2342 item 3, journal spec 9.8); with the vault down the request stays open and the next pass retries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the finish pass's stalled-teardown alert and fingerprint release (DEC-2348) DEC-2348 reserves the decision: the pass raises the opaque alert connect_teardown_stalled with RB-19 when a delete it owes fails at or past the request's deadline, once per request per process, and calls the Fingerprints port's new release after a closed request's deletes succeed. The ports land here (release, with Unbacked a no-op; Alerts, taken by Finisher::new); four pending tests fail on F2b's behaviour, each with a behaviour-only row, and one guard passes already. RB-19 and the design's alert and runbook rows are added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Raise the stalled-teardown alert and release a closed request's fingerprint (DEC-2348) A delete the pass owes that fails at or past the request's deadline raises connect_teardown_stalled with RB-19, once per request per process: the first delete of a held refusal, or a closed request's owed delete. A closed request's fingerprint is released once its deletes succeed. Removes the four pending lines and their behaviour-only rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's vault teardown, loop and alert line (DEC-2348) Stubs, each todo!(): VaultTeardown deletes a connection's code and token as the API off the runtime; LineAlerts writes one operator_alert line per alert; passes runs a pass every period at the clock's time; connect_binding::teardown gives a bound connect its own copy of the vault login. OpenBaoLogin derives Clone for it, and the scripted vault records deletes. Ten pending tests fail at the stubs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Wire the connect finish: vault teardown, alert line, and the pass loop (DEC-2348) VaultTeardown logs in fresh as the API at the clock's time and deletes the connection's code and token, both even when one fails, on a runtime of its own inside spawn_blocking. LineAlerts writes one operator_alert line per alert. passes runs a pass every period, skipping one whose clock cannot be read. main.rs spawns it every five seconds over its own journal handle, with Unbacked fingerprints and stderr alerts, only when the connect is bound. Removes the ten pending lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: the account fingerprint's paths, grants and key, tests pending (DEC-2345) The executor creates its fingerprint entry and updates the one transit HMAC path; the connection manager reads each fingerprint entry, the rotation marker, and reads and changes the one registry entry by check-and-set. The V tests that said no policy names personal/ now say it of the account entry, which still holds. Also asserts the rendered policy is Ok rather than defaulting it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's templated policy creates its fingerprint and hashes, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the account fingerprint's paths and grants (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2345 puts the key's provisioning in F3b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Pin that a closed request with an unreadable time alerts at once (DEC-2348) A closed request whose recorded_at cannot be read counts as past its deadline, so a delete that keeps failing raises the alert once on the first failed pass. The pending test fails on F2b's behaviour and has a behaviour-only row; DEC-2348 item 1 states the case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Unpend the unreadable-time alert test (DEC-2348) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: DEC-2345 states the registry's one writer and how two claims contend Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream, tests pending (DEC-2339) A request again on the same connection to another account stream (DEC-699) has an entry of its own, so nothing is overwritten and a refused request's entry is kept until its erasure. The executor creates below its own connection's templated segment with one '+', the account stream, create only: the one wildcard of any templated policy, pinned by a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the take test keeps its own connection alone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads fingerprints by DEC-2349's prefix grant, not per request (DEC-2345) Nothing rewrites a policy when a request is made, so fingerprint_reads would have no caller; DEC-2349's policy renders personal/fingerprints/+/+ read only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint key's provisioning, the executor's hash and the entry's form, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint entry's malformed cases name a reference that does not read Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint key's provisioning, the executor's hash and the entry's form (DEC-2345) Provisioning mounts transit and creates account-fingerprint, never exportable or deletable, and sets cas_required on the registry entry; the executor alone asks transit for an account id's HMAC; the entry has one canonical form and one reader. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads, claims and releases fingerprints, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads, claims and releases fingerprints (DEC-2345) fingerprint reads the request's entry by its one reader; claim and release change the registry by check-and-set on the version read, re-reading a bounded number of times when it moved, so of two concurrent claims one wins and the other answers HeldBy it; a release changes only its own pair; the rotation marker refuses fingerprint and claim; every refusal is Unavailable, failing closed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Make the fingerprint port async, and pin that a failed release holds its request (DEC-2348) The Fingerprints port's judge and release return futures, as F3's vault calls are async, and release answers Result<(), ReleaseFailed>. decide awaits the judgement. Two pending tests pin that a release that fails leaves its request uncleared, retried each pass, and raises the stalled alert past the deadline; they fail on W1's behaviour and have behaviour-only rows. DEC-2348 item 2 states the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Hold a closed request until its fingerprint release succeeds (DEC-2348) clear counts a request cleared only when its deletes and its release both succeed; otherwise the next pass deletes and releases it again, and a failure past the deadline raises the stalled alert. Removes the two pending lines and their behaviour-only rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Pin the connect finish's vault fingerprints and connection-manager login (DEC-2348) Merges V2's F3b (#2283). Stubs, each todo!(): VaultFingerprints judges a request from its fingerprint entry, read and claimed as the connection manager, and releases its claim; connect_binding::fingerprints gives a bound connect that port. ManagerSession names the manager's fingerprint calls, implemented for OpenBaoSource by delegation and for the scripted vault. OpenBaoLogin names its identity. The teardown's tests move to the connection manager's identity. Nine pending tests fail at the stubs and five on W2's behaviour, with rows. DEC-2348 amends item 3 (the manager's identity, #2269's vault directory, N2) and adds item 4. Moves bound's doc comment back and groups vault_teardown's imports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Wire the connect finish's vault fingerprints as the connection manager (DEC-2348) VaultFingerprints logs in fresh as the connection manager off the async runtime, reads the request's fingerprint entry by connection and account_ref, requires its reference to be the check's, and claims the hash: Claimed is unique, HeldBy is already connected, anything else cannot answer. release gives back the request's claim. OpenBaoLogin logs in as its own identity; the teardown and the fingerprint port take the connect's login as the connection manager. main.rs passes the vault port in place of Unbacked. Removes the fourteen pending lines and five behaviour-only rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * E21-32: an existing fingerprint key that can leave the vault fails provisioning, tests pending (DEC-2345) Review F1 of F3b-1: provisioning kept any key the GET found, an exportable one included. Two verdicts, stubbed here, judge the transit mount's type and an existing key's exportable, deletion_allowed and allow_plaintext_backup, each of which must read false; a live test, pending, provisions over an exportable key, a deletable key and a transit path holding another engine, and expects Config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: an existing fingerprint key that can leave the vault fails provisioning (DEC-2345) F1's implementation: provisioning judges a transit mount already there by its type, and a fingerprint key already there by its exportable, deletion_allowed and allow_plaintext_backup, each of which must read false, and fails as Config otherwise. The hash's request body's copy of the encoded id is wiped once the request is sent (review nit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the key provisioning test's set-up installs its TLS provider Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the claim's bound and an unreadable entry's release fail closed, tests pending (DEC-2345) Review F-a: the claim and the release run over a registry seam, registry::claim_in and release_in, stubbed here, so their check-and-set bound is tested on a scripted registry that moves under every read: CLAIM_TRIES reads, Unavailable, nothing written. Review F-b: a release over a fingerprint entry that does not read must answer Unavailable and keep the claim (live test, pending). Review F-c: DEC-2345 item 6 states that the marker's read and the claim's write are not atomic, and how the rotation job covers a claim that lands between them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the claim's bound and an unreadable entry's release fail closed (DEC-2345) F-a and F-b's implementation: the claim and the release are registry::claim_in and release_in over the Registry seam, which OpenBaoSource implements with its registry entry's check-and-set read and write; a release over a fingerprint entry that does not read answers Unavailable and leaves the claim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager's fingerprint operations as a trait, tests pending (DEC-2345) ManagerFingerprints names the connection manager's fingerprint read, claim and release, so the connect's callers script them in their own tests and drive OpenBaoSource's through the same calls (lane X's ask); OpenBaoSource's implementation is stubbed here. Also a test that deleting a connection's absent code or token answers Ok. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager's fingerprint operations as a trait (DEC-2345) OpenBaoSource implements ManagerFingerprints with the bodies its three inherent methods had, which go, so every caller drives them through the trait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Mark DEC-2348's two vault identities in the API process Proposed for the founder Giving the API process the connection manager's AppRole as well widens the blast radius on a credential path, a founder decision under DEC-79. Item 3's two-identity setup is Proposed, needing sign-off before a staging deploy; the rest stays Accepted. The conservative alternative is named: the connect finish in its own process, holding only the connection manager's identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Call the manager's fingerprints through mandate-vault's trait (DEC-2345) Merges V2's #2297, which makes the three calls the trait ManagerFingerprints that OpenBaoSource implements. The adapter drops its own ManagerSession and the delegation to OpenBaoSource, and the scripted vault implements the vault's trait. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Run the connect finish in its own process as the connection manager: tests first (DEC-2348 item 3) `mandate-api-server finish` holds only the connection manager's AppRole and runs the finish pass; the API keeps the API's identity alone. The binding (`finish_binding`) is a todo!() stub, with five pending tests; DEC-2348 item 3 takes the conservative option and is Accepted, and RB-19 now points at the finish process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Require the connection manager's own pair for the finish: tests first (DEC-2348 item 3) A vault directory holding the API's pair, half the connection manager's, or its pair readable by others binds nothing, and the finish exits 2 naming the directory; it never falls back to another identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV * Run the connect finish in its own process as the connection manager (DEC-2348 item 3) `finish_binding` binds the four settings, requiring the connection manager's own credential pair in the vault directory, and logs in as `Identity::ConnectionManager`. The API process no longer runs the pass: `connect_binding` drops its connection-manager logins, so the API holds the API's identity alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NZBdnWEF8SQMEaFNtuGvtV --------- Co-authored-by: Claude <noreply@anthropic.com>
kunwarshivam
added a commit
that referenced
this pull request
Oct 23, 2026
… from /v2/account alone and kept in the account entry's one byte form (DEC-2339) (#2228) * E21-32 PRV-1a: Kubernetes auth's templated policies, the provisioner's policy and its role requests, tests pending (DEC-2060) Reserves DEC-2060. Each per-connection process logs in with Kubernetes auth as the ServiceAccount named by its connection id's hex; one templated policy per kind reads the path from the login's own ServiceAccount name, so the dedicated provisioner only ever creates a role bound to exactly that ServiceAccount, every other parameter pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: Kubernetes auth's templated policies, the provisioner's policy and its role requests (DEC-2060) Implements the stubs and deletes the pending markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: both kinds in the workspace's namespace, the exchange's ServiceAccount named x and the hex (DEC-2060) A separate exchange namespace would leave its pods outside the workspace's default deny, egress policies and admission pin. A second spike on OpenBao 2.7.1 showed a literal x before the template within one path segment works: the executor, SA <hex>, reads connections/x<hex>/token, which the exchange, SA x<hex>, writes; each role binds its one SA, and an even-length hex name is never an odd-length x name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: one namespace, the exchange's ServiceAccount x and the hex (DEC-2060) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: the Kubernetes auth mounts live in Mounts, and the namespace is the workspace's (DEC-2060) So OpenBaoConfig names every mount the login and the provisioner use, from one place, and no second layout can disagree with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: login_kubernetes and the projected ServiceAccount token's reader, tests pending (DEC-2060) The contract agreed with lane LV: OpenBaoSource::login_kubernetes(config, identity, jwt, now) for a connection's executor or token exchange, and mounted::read_service_account_token(dir) with SERVICE_ACCOUNT_TOKEN_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: the Kubernetes login's path and its verdict as pure functions, tests pending (DEC-2060) So the role and ServiceAccount checks are tested and mutated without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2b: login_kubernetes and the projected ServiceAccount token's reader (DEC-2060) Implements the stubs and deletes the pending markers. read_mounted and the token reader share one bounded, link-safe read, differing only in the mode bits they refuse and their bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: one storage segment for a connection, x and its hex, and the cross-contract tests, pending (DEC-2060) kv_path and openbao_policy become fallible so kv_path can place a connection's entries through connection_segment, a stub here. The pending tests pin the segment, roles named by their ServiceAccount (OpenBao folds role and policy names to lowercase), every role parameter required, a malformed accessor refused, and a cross-contract test: each kind's policy with its bound ServiceAccount put in is exactly the policy written from kv_path, over ids that collide under a raw or case-folding layout. The process-name test reads processes.json. DEC-2060 is written in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: a Kubernetes login reaches the role named by its ServiceAccount, tests pending (DEC-2060) OpenBao folds role names to lowercase, so PRV-1 names each role by its ServiceAccount; the login's path and its verdict follow, with an Ab case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2060: the AppRole executor and exchange are retired, and the deployment manager makes the ServiceAccounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1a: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal, tests pending (DEC-2060) SourceError::RoleMissing (role_missing, not an outage) lets the token exchange's login wait for a role the provisioner has not made yet, as agreed with lane D1; kubernetes_login_refusal is that mapping, a stub. provision takes an optional KubernetesAuth and, given one, sets up both Kubernetes mounts and their templated policies through stubs kubernetes_mount_requests, mount_accessor and provision_kubernetes. A server test pins the result on the dev server, a missing role included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1b: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal (DEC-2060) provision, given a KubernetesAuth, enables each Kubernetes mount the vault's sys/auth does not list, points it at the API server, and writes each kind's templated policy keyed by its mount's accessor. A Kubernetes login reads a refusal's body only to tell RoleMissing from the rest, and wipes it like every other body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Reserve DEC-2061: the token exchange may overwrite its own connection's code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace, tests pending (DEC-2061) Access::Take is a new access that only a connection's token exchange holds, on its own connection's code, granted only by its Kubernetes-auth templated policy as update without create; the AppRole policies never grant it. login_kubernetes gains namespace, checked by kubernetes_namespace_verdict (a stub), and read_service_account_namespace (a stub) reads the downward API's namespace beside the projected token. DEC-2061 is written in full and infrastructure §5.2's token-exchange row names the take. Three tests that widen implemented tables are behaviour-only rows until PRV-2c-2b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the executor reads its namespace beside its token for its Kubernetes login login_kubernetes now takes the workspace's namespace; #2009's executor reads it from the projected volume with read_service_account_namespace, so no pod names its own namespace in its arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: name the behaviour-only rows by their in-file path, and read the executor's namespace before it dials The pending gate names a test by its path inside its file, so each row's test is the bare function name. The executor reads its namespace before vault_login, as LV asked, so an unreadable one is vault_credentials_unreadable and nothing dials without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: an AppRole policy never grants a take on a secret, not never update at all The connection manager's AppRole grant paths rightly carry update, so the check is over the KV data paths only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2b: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace (DEC-2061) allows grants Access::Take to a connection's token exchange on its own code, and the exchange's templated policy gives that code read and update, never create. read_service_account_namespace reads the projected namespace by the token's rules and holds it to a label; kubernetes_namespace_verdict accepts only the workspace's namespace. The three behaviour-only rows go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a connection's exchange takes its code once, on both backends, tests pending (DEC-2061) SecretSource::take_code takes a code once: of overlapping takers exactly one gets it, and a source that holds no codes refuses by default. The local and OpenBao takes are stubs. The conformance suite pins, on both backends, that only the code's own exchange takes it, once, and that of two racing takers exactly one wins; on OpenBao that a tombstone is never a code and that no version is left after a take. The OpenBao harness's taker holds the Kubernetes-auth exchange's own policy through an operator token, the only way to hold it without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: each taker's policy is named by its ServiceAccount, so a second taker does not rewrite the first's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a connection's exchange takes its code once, on both backends (DEC-2061) The local take is the local vault's own rename take (DEC-2628 item 2), after the policy check. The OpenBao take reads the code with its version, overwrites that version alone with a tombstone by check-and-set, then deletes every version; a lost overwrite, a tombstone or no code is None. A read of a tombstone is no code. Http::post_judged lets the login and the take each judge a refusal's body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take refused after the code is gone is a lost race, not a denial The exchange may update its code but never create it, so once another taker has deleted the code OpenBao refuses the overwrite as 403 before it checks the version. The take then reads again, and reports None only when the code is gone or a tombstone; any other refusal stays Denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin a lost overwrite's refusal, an exchange without the take, and provisioning over a planted policy cas_refusal (a stub) is pinned by a pure test, so a lost overwrite is caught without a race. The AppRole exchange, whose policy lacks the take, is refused and leaves the code. Provisioning replaces a policy planted under its name, as the reviewer of #2079 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the exchange's update never creates a code, as the reviewer of #2087 asked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: run the update-never-creates test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin the take's read and its read again as pure verdicts, the code a secret from its decoding taken_read and lost_or_denied_verdict are stubs pinned by unit tests, so the tombstone, the lost race and the denial are caught without a server, and the read's answer never shows the code, as the reviewer of #2117 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin DEC-2321's take, which destroys the version it took and keeps the version count The exchange's policy swaps its metadata delete for a delete on its code's data and an update on its code's destroy path; a taker stalled across a take cannot overwrite the code a re-connect stores. DEC-2321 records it and DEC-2061's Status line points at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take destroys the version it took and deletes its tombstone, keeping the version count (DEC-2321) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a taken code's versions hold no data, though the kept metadata still answers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the take deletes its tombstone's version alone, and a code decodes at its exact size A plain DELETE of the data path deletes whatever version is latest, which hides a code a re-connect stored between the tombstone and the delete; deleting version v+1 through delete/ never does. The exchange's grant becomes update on delete/ in place of delete on data. The decoding test covers every padding length and malformed lengths, for an exact-size decode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: delete the tombstone's version alone, and decode a code at its exact size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: drop exact_decode's two guards the decode already makes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a source that holds no personal data refuses a create (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the broker account id is a shared secret type, read from /v2/account alone and kept in the account entry's one byte form, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the broker account id is a shared secret type, read from /v2/account alone and kept in the account entry's one byte form (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the account id form test names a stub's report when it fails Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: two ids are equal only by their text, and an entry is written only under a pii_ reference Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the id equality and pii_ reference tests run Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a refused account entry create fails closed, as an unreadable account (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the entry decode test's name is spelled as typos reads it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2339's fingerprint is the vault's keyed hash, per connections spec §3.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: no identity reads the personal-data vault; the manager gets the vault's keyed hash alone, per connections spec §3.1, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream, tests pending (DEC-2339) A request again on the same connection to another account stream (DEC-699) has an entry of its own, so nothing is overwritten and a refused request's entry is kept until its erasure. The executor creates below its own connection's templated segment with one '+', the account stream, create only: the one wildcard of any templated policy, pinned by a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the take test keeps its own connection alone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * CI (lane GO): run api-release in a full-checks-3 job of its own (DEC-2334, DEC-2338) #2289 added `api-release` to `cargo xtask ci full` (DEC-2338 item 5) after #2195 had split `full`'s parts into `full-checks` and `full-checks-2` (DEC-2334). No CI job ran `api-release`, and `the_full_jobs_run_exactly_the_full_group` failed on main. Its release build of `mandate-api-server` takes about five minutes on its own. Neither existing job has room for that under ten minutes (DEC-464): `full-checks-2`'s `reference` alone is about 4.5 minutes, before its two release builds. So it runs in `full-checks-3`, on the same selection, and `full` needs all three. The verdict table now shows a failed, cancelled or skipped `full-checks-3` failing `full`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UoxcMViCbnGUTPSaduuGYU * Supply chain: bump ctutils 0.4.2 -> 0.4.5 for RUSTSEC-2026-0385 `cargo deny --locked check` fails on main. In ctutils 0.4.2, the constant-time `Choice` mask lacked an optimization barrier (RUSTSEC-2026-0385, RustCrypto/utils#1569); 0.4.4 and later fix it. ctutils is a transitive RustCrypto crate, reached through aes-gcm, crypto-bigint, digest, sec1 and universal-hash (webpush, p256, sqlx-postgres). `cargo update -p ctutils` makes a patch-level bump. Nothing else in Cargo.lock moves, and no manifest or dependency row changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UoxcMViCbnGUTPSaduuGYU --------- Co-authored-by: Claude <noreply@anthropic.com>
kunwarshivam
added a commit
that referenced
this pull request
Oct 23, 2026
… admits exactly those (DEC-2349) (#2279) * E21-32 PRV-1a: Kubernetes auth's templated policies, the provisioner's policy and its role requests, tests pending (DEC-2060) Reserves DEC-2060. Each per-connection process logs in with Kubernetes auth as the ServiceAccount named by its connection id's hex; one templated policy per kind reads the path from the login's own ServiceAccount name, so the dedicated provisioner only ever creates a role bound to exactly that ServiceAccount, every other parameter pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: Kubernetes auth's templated policies, the provisioner's policy and its role requests (DEC-2060) Implements the stubs and deletes the pending markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: both kinds in the workspace's namespace, the exchange's ServiceAccount named x and the hex (DEC-2060) A separate exchange namespace would leave its pods outside the workspace's default deny, egress policies and admission pin. A second spike on OpenBao 2.7.1 showed a literal x before the template within one path segment works: the executor, SA <hex>, reads connections/x<hex>/token, which the exchange, SA x<hex>, writes; each role binds its one SA, and an even-length hex name is never an odd-length x name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: one namespace, the exchange's ServiceAccount x and the hex (DEC-2060) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: the Kubernetes auth mounts live in Mounts, and the namespace is the workspace's (DEC-2060) So OpenBaoConfig names every mount the login and the provisioner use, from one place, and no second layout can disagree with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: login_kubernetes and the projected ServiceAccount token's reader, tests pending (DEC-2060) The contract agreed with lane LV: OpenBaoSource::login_kubernetes(config, identity, jwt, now) for a connection's executor or token exchange, and mounted::read_service_account_token(dir) with SERVICE_ACCOUNT_TOKEN_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: the Kubernetes login's path and its verdict as pure functions, tests pending (DEC-2060) So the role and ServiceAccount checks are tested and mutated without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2b: login_kubernetes and the projected ServiceAccount token's reader (DEC-2060) Implements the stubs and deletes the pending markers. read_mounted and the token reader share one bounded, link-safe read, differing only in the mode bits they refuse and their bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: one storage segment for a connection, x and its hex, and the cross-contract tests, pending (DEC-2060) kv_path and openbao_policy become fallible so kv_path can place a connection's entries through connection_segment, a stub here. The pending tests pin the segment, roles named by their ServiceAccount (OpenBao folds role and policy names to lowercase), every role parameter required, a malformed accessor refused, and a cross-contract test: each kind's policy with its bound ServiceAccount put in is exactly the policy written from kv_path, over ids that collide under a raw or case-folding layout. The process-name test reads processes.json. DEC-2060 is written in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: a Kubernetes login reaches the role named by its ServiceAccount, tests pending (DEC-2060) OpenBao folds role names to lowercase, so PRV-1 names each role by its ServiceAccount; the login's path and its verdict follow, with an Ab case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2060: the AppRole executor and exchange are retired, and the deployment manager makes the ServiceAccounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1a: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal, tests pending (DEC-2060) SourceError::RoleMissing (role_missing, not an outage) lets the token exchange's login wait for a role the provisioner has not made yet, as agreed with lane D1; kubernetes_login_refusal is that mapping, a stub. provision takes an optional KubernetesAuth and, given one, sets up both Kubernetes mounts and their templated policies through stubs kubernetes_mount_requests, mount_accessor and provision_kubernetes. A server test pins the result on the dev server, a missing role included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1b: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal (DEC-2060) provision, given a KubernetesAuth, enables each Kubernetes mount the vault's sys/auth does not list, points it at the API server, and writes each kind's templated policy keyed by its mount's accessor. A Kubernetes login reads a refusal's body only to tell RoleMissing from the rest, and wipes it like every other body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Reserve DEC-2061: the token exchange may overwrite its own connection's code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace, tests pending (DEC-2061) Access::Take is a new access that only a connection's token exchange holds, on its own connection's code, granted only by its Kubernetes-auth templated policy as update without create; the AppRole policies never grant it. login_kubernetes gains namespace, checked by kubernetes_namespace_verdict (a stub), and read_service_account_namespace (a stub) reads the downward API's namespace beside the projected token. DEC-2061 is written in full and infrastructure §5.2's token-exchange row names the take. Three tests that widen implemented tables are behaviour-only rows until PRV-2c-2b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the executor reads its namespace beside its token for its Kubernetes login login_kubernetes now takes the workspace's namespace; #2009's executor reads it from the projected volume with read_service_account_namespace, so no pod names its own namespace in its arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: name the behaviour-only rows by their in-file path, and read the executor's namespace before it dials The pending gate names a test by its path inside its file, so each row's test is the bare function name. The executor reads its namespace before vault_login, as LV asked, so an unreadable one is vault_credentials_unreadable and nothing dials without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: an AppRole policy never grants a take on a secret, not never update at all The connection manager's AppRole grant paths rightly carry update, so the check is over the KV data paths only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2b: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace (DEC-2061) allows grants Access::Take to a connection's token exchange on its own code, and the exchange's templated policy gives that code read and update, never create. read_service_account_namespace reads the projected namespace by the token's rules and holds it to a label; kubernetes_namespace_verdict accepts only the workspace's namespace. The three behaviour-only rows go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a connection's exchange takes its code once, on both backends, tests pending (DEC-2061) SecretSource::take_code takes a code once: of overlapping takers exactly one gets it, and a source that holds no codes refuses by default. The local and OpenBao takes are stubs. The conformance suite pins, on both backends, that only the code's own exchange takes it, once, and that of two racing takers exactly one wins; on OpenBao that a tombstone is never a code and that no version is left after a take. The OpenBao harness's taker holds the Kubernetes-auth exchange's own policy through an operator token, the only way to hold it without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: each taker's policy is named by its ServiceAccount, so a second taker does not rewrite the first's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a connection's exchange takes its code once, on both backends (DEC-2061) The local take is the local vault's own rename take (DEC-2628 item 2), after the policy check. The OpenBao take reads the code with its version, overwrites that version alone with a tombstone by check-and-set, then deletes every version; a lost overwrite, a tombstone or no code is None. A read of a tombstone is no code. Http::post_judged lets the login and the take each judge a refusal's body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take refused after the code is gone is a lost race, not a denial The exchange may update its code but never create it, so once another taker has deleted the code OpenBao refuses the overwrite as 403 before it checks the version. The take then reads again, and reports None only when the code is gone or a tombstone; any other refusal stays Denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin a lost overwrite's refusal, an exchange without the take, and provisioning over a planted policy cas_refusal (a stub) is pinned by a pure test, so a lost overwrite is caught without a race. The AppRole exchange, whose policy lacks the take, is refused and leaves the code. Provisioning replaces a policy planted under its name, as the reviewer of #2079 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the exchange's update never creates a code, as the reviewer of #2087 asked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: run the update-never-creates test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin the take's read and its read again as pure verdicts, the code a secret from its decoding taken_read and lost_or_denied_verdict are stubs pinned by unit tests, so the tombstone, the lost race and the denial are caught without a server, and the read's answer never shows the code, as the reviewer of #2117 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin DEC-2321's take, which destroys the version it took and keeps the version count The exchange's policy swaps its metadata delete for a delete on its code's data and an update on its code's destroy path; a taker stalled across a take cannot overwrite the code a re-connect stores. DEC-2321 records it and DEC-2061's Status line points at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take destroys the version it took and deletes its tombstone, keeping the version count (DEC-2321) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a taken code's versions hold no data, though the kept metadata still answers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the take deletes its tombstone's version alone, and a code decodes at its exact size A plain DELETE of the data path deletes whatever version is latest, which hides a code a re-connect stored between the tombstone and the delete; deleting version v+1 through delete/ never does. The exchange's grant becomes update on delete/ in place of delete on data. The decoding test covers every padding length and malformed lengths, for an exact-size decode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: delete the tombstone's version alone, and decode a code at its exact size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: drop exact_decode's two guards the decode already makes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a source that holds no personal data refuses a create (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a refused account entry create fails closed, as an unreadable account (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2339's fingerprint is the vault's keyed hash, per connections spec §3.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: no identity reads the personal-data vault; the manager gets the vault's keyed hash alone, per connections spec §3.1, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the account fingerprint's paths, grants and key, tests pending (DEC-2345) The executor creates its fingerprint entry and updates the one transit HMAC path; the connection manager reads each fingerprint entry, the rotation marker, and reads and changes the one registry entry by check-and-set. The V tests that said no policy names personal/ now say it of the account entry, which still holds. Also asserts the rendered policy is Ok rather than defaulting it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's templated policy creates its fingerprint and hashes, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the account fingerprint's paths and grants (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2345 puts the key's provisioning in F3b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2345 states the registry's one writer and how two claims contend Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream, tests pending (DEC-2339) A request again on the same connection to another account stream (DEC-699) has an entry of its own, so nothing is overwritten and a refused request's entry is kept until its erasure. The executor creates below its own connection's templated segment with one '+', the account stream, create only: the one wildcard of any templated policy, pinned by a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Test that the Api's and the connection manager's policies reach a connection no provisioning named (DEC-2349) Pending E21-33. For any connections listed, both policies grant exactly what policy::allows permits on a connection minted after provisioning, read the way OpenBao reads a one-segment +, and their connection blocks are the three (Api) and two (connection manager) prefixes alone. Not pending: only these two policies hold a +, only on those write and delete paths, never reading or listing; nothing holds a *; the templated Kubernetes-auth policies hold neither. Reserves and fills DEC-2349. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * E21-32: the take test keeps its own connection alone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Give the Api's and the connection manager's policies a one-segment + on their connection write and delete paths (DEC-2349) A connect from the web makes its connection after the vault is provisioned, so the API's code write and the connect finish's code and token deletes were refused for it. Those two policies now hold <kv>/data/connections/+/code (create, update; Api) and <kv>/metadata/connections/+/code and +/token (delete), in place of their per-connection code and token blocks. No + is on a read, no other identity holds one, nothing holds *, and policy::allows is unchanged. The older no-wildcard tests now exempt exactly these two policies, which policy_prefix pins. Mutants on the diff: 3 of 3 caught. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * E21-32: the manager reads fingerprints by DEC-2349's prefix grant, not per request (DEC-2345) Nothing rewrites a policy when a request is made, so fingerprint_reads would have no caller; DEC-2349's policy renders personal/fingerprints/+/+ read only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Move the older policy tests' DEC-2349 edits here, narrow their exemption, and read + as OpenBao does (DEC-2349, review) The table test and names_and_paths_are_pinned take DEC-2349's rule in this tests PR, pending E21-33 with behaviour-only rows; the platform proptest's exemption passes either way. The table test now leaves unchecked only the Api's and the connection manager's write and delete of a connection's code or token, the + paths, and checks every read and every other path as before. The oracle's + matches any one segment, an empty one included, as OpenBao's ACL does; DEC-2349's risks say why that is harmless. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * E21-32: the manager's policy reads any request's fingerprint by one `+/+` (DEC-2345, DEC-2349) The connection manager's policy renders `personal/fingerprints/+/+` read, gated on `allows` with a probe connection and account, so a connect made after provisioning can be checked against its account's fingerprint. No other `+` reads; tests pin that it is the only reading `+`, that it names neither the claims nor the rotation marker, and that the templated policies' `+` only creates under the login's own name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Name the manager's fingerprint read as DEC-2349's one reading `+`, and the executor's create-only `+` as DEC-2339's and DEC-2345's (DEC-2349, review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Let a templated policy's `+` only create a last segment under the login's own name, as DEC-2339 and DEC-2345 grant (DEC-2349, review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * State the manager's fingerprint read in the crate doc's policy rule (DEC-2349) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * State DEC-2349's fingerprint read and the executor's create-only `+` in its status and the crate doc (DEC-2349, review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Keep the fingerprint module in the crate root after the DEC-2349 doc merge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Hold a templated policy's `+` to the executor's two exact create paths (DEC-2349 item 4, review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm * Let the vault drill admit DEC-2349's six prefix stanzas, each in its own policy, and nothing wider The drill's scan refused any policy holding a + or *, so DEC-2349's prefix grants failed it. The scan now prints each wildcard stanza, whitespace squeezed, and the judge admits only the API's code write and code and token deletes and the connection manager's two deletes and fingerprint read. A credential read, another path, an added capability, a *, a grant in another policy, or a wildcard outside a stanza still fails, and the unit test seeds each. DEC-2349 item 5 records it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmJtE8JXVQjyqTteJ5b9Cm --------- Co-authored-by: Claude <noreply@anthropic.com>
kunwarshivam
added a commit
that referenced
this pull request
Oct 23, 2026
…-2345, F3c) (#2288) * E21-32 PRV-1a: Kubernetes auth's templated policies, the provisioner's policy and its role requests, tests pending (DEC-2060) Reserves DEC-2060. Each per-connection process logs in with Kubernetes auth as the ServiceAccount named by its connection id's hex; one templated policy per kind reads the path from the login's own ServiceAccount name, so the dedicated provisioner only ever creates a role bound to exactly that ServiceAccount, every other parameter pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: Kubernetes auth's templated policies, the provisioner's policy and its role requests (DEC-2060) Implements the stubs and deletes the pending markers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: both kinds in the workspace's namespace, the exchange's ServiceAccount named x and the hex (DEC-2060) A separate exchange namespace would leave its pods outside the workspace's default deny, egress policies and admission pin. A second spike on OpenBao 2.7.1 showed a literal x before the template within one path segment works: the executor, SA <hex>, reads connections/x<hex>/token, which the exchange, SA x<hex>, writes; each role binds its one SA, and an even-length hex name is never an odd-length x name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1b: one namespace, the exchange's ServiceAccount x and the hex (DEC-2060) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: the Kubernetes auth mounts live in Mounts, and the namespace is the workspace's (DEC-2060) So OpenBaoConfig names every mount the login and the provisioner use, from one place, and no second layout can disagree with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: login_kubernetes and the projected ServiceAccount token's reader, tests pending (DEC-2060) The contract agreed with lane LV: OpenBaoSource::login_kubernetes(config, identity, jwt, now) for a connection's executor or token exchange, and mounted::read_service_account_token(dir) with SERVICE_ACCOUNT_TOKEN_DIR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: the Kubernetes login's path and its verdict as pure functions, tests pending (DEC-2060) So the role and ServiceAccount checks are tested and mutated without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2b: login_kubernetes and the projected ServiceAccount token's reader (DEC-2060) Implements the stubs and deletes the pending markers. read_mounted and the token reader share one bounded, link-safe read, differing only in the mode bits they refuse and their bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-1a: one storage segment for a connection, x and its hex, and the cross-contract tests, pending (DEC-2060) kv_path and openbao_policy become fallible so kv_path can place a connection's entries through connection_segment, a stub here. The pending tests pin the segment, roles named by their ServiceAccount (OpenBao folds role and policy names to lowercase), every role parameter required, a malformed accessor refused, and a cross-contract test: each kind's policy with its bound ServiceAccount put in is exactly the policy written from kv_path, over ids that collide under a raw or case-folding layout. The process-name test reads processes.json. DEC-2060 is written in full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2a: a Kubernetes login reaches the role named by its ServiceAccount, tests pending (DEC-2060) OpenBao folds role names to lowercase, so PRV-1 names each role by its ServiceAccount; the login's path and its verdict follow, with an Ab case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * DEC-2060: the AppRole executor and exchange are retired, and the deployment manager makes the ServiceAccounts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1a: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal, tests pending (DEC-2060) SourceError::RoleMissing (role_missing, not an outage) lets the token exchange's login wait for a role the provisioner has not made yet, as agreed with lane D1; kubernetes_login_refusal is that mapping, a stub. provision takes an optional KubernetesAuth and, given one, sets up both Kubernetes mounts and their templated policies through stubs kubernetes_mount_requests, mount_accessor and provision_kubernetes. A server test pins the result on the dev server, a missing role included. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-1b: provisioning sets the Kubernetes auth mounts up, and a missing role is its own refusal (DEC-2060) provision, given a KubernetesAuth, enables each Kubernetes mount the vault's sys/auth does not list, points it at the API server, and writes each kind's templated policy keyed by its mount's accessor. A Kubernetes login reads a refusal's body only to tell RoleMissing from the rest, and wipes it like every other body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Reserve DEC-2061: the token exchange may overwrite its own connection's code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace, tests pending (DEC-2061) Access::Take is a new access that only a connection's token exchange holds, on its own connection's code, granted only by its Kubernetes-auth templated policy as update without create; the AppRole policies never grant it. login_kubernetes gains namespace, checked by kubernetes_namespace_verdict (a stub), and read_service_account_namespace (a stub) reads the downward API's namespace beside the projected token. DEC-2061 is written in full and infrastructure §5.2's token-exchange row names the take. Three tests that widen implemented tables are behaviour-only rows until PRV-2c-2b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: the executor reads its namespace beside its token for its Kubernetes login login_kubernetes now takes the workspace's namespace; #2009's executor reads it from the projected volume with read_service_account_namespace, so no pod names its own namespace in its arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: name the behaviour-only rows by their in-file path, and read the executor's namespace before it dials The pending gate names a test by its path inside its file, so each row's test is the bare function name. The executor reads its namespace before vault_login, as LV asked, so an unreadable one is vault_credentials_unreadable and nothing dials without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2a: an AppRole policy never grants a take on a secret, not never update at all The connection manager's AppRole grant paths rightly carry update, so the check is over the KV data paths only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-2b: the exchange takes its own code, and a Kubernetes login is held to the workspace's namespace (DEC-2061) allows grants Access::Take to a connection's token exchange on its own code, and the exchange's templated policy gives that code read and update, never create. read_service_account_namespace reads the projected namespace by the token's rules and holds it to a label; kubernetes_namespace_verdict accepts only the workspace's namespace. The three behaviour-only rows go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a connection's exchange takes its code once, on both backends, tests pending (DEC-2061) SecretSource::take_code takes a code once: of overlapping takers exactly one gets it, and a source that holds no codes refuses by default. The local and OpenBao takes are stubs. The conformance suite pins, on both backends, that only the code's own exchange takes it, once, and that of two racing takers exactly one wins; on OpenBao that a tombstone is never a code and that no version is left after a take. The OpenBao harness's taker holds the Kubernetes-auth exchange's own policy through an operator token, the only way to hold it without a cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: each taker's policy is named by its ServiceAccount, so a second taker does not rewrite the first's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a connection's exchange takes its code once, on both backends (DEC-2061) The local take is the local vault's own rename take (DEC-2628 item 2), after the policy check. The OpenBao take reads the code with its version, overwrites that version alone with a tombstone by check-and-set, then deletes every version; a lost overwrite, a tombstone or no code is None. A read of a tombstone is no code. Http::post_judged lets the login and the take each judge a refusal's body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take refused after the code is gone is a lost race, not a denial The exchange may update its code but never create it, so once another taker has deleted the code OpenBao refuses the overwrite as 403 before it checks the version. The take then reads again, and reports None only when the code is gone or a tombstone; any other refusal stays Denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin a lost overwrite's refusal, an exchange without the take, and provisioning over a planted policy cas_refusal (a stub) is pinned by a pure test, so a lost overwrite is caught without a race. The AppRole exchange, whose policy lacks the take, is refused and leaves the code. Provisioning replaces a policy planted under its name, as the reviewer of #2079 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the exchange's update never creates a code, as the reviewer of #2087 asked Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: run the update-never-creates test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin the take's read and its read again as pure verdicts, the code a secret from its decoding taken_read and lost_or_denied_verdict are stubs pinned by unit tests, so the tombstone, the lost race and the denial are caught without a server, and the read's answer never shows the code, as the reviewer of #2117 asked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: pin DEC-2321's take, which destroys the version it took and keeps the version count The exchange's policy swaps its metadata delete for a delete on its code's data and an update on its code's destroy path; a taker stalled across a take cannot overwrite the code a re-connect stores. DEC-2321 records it and DEC-2061's Status line points at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: a take destroys the version it took and deletes its tombstone, keeping the version count (DEC-2321) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: a taken code's versions hold no data, though the kept metadata still answers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3a: the take deletes its tombstone's version alone, and a code decodes at its exact size A plain DELETE of the data path deletes whatever version is latest, which hides a code a re-connect stored between the tombstone and the delete; deleting version v+1 through delete/ never does. The exchange's grant becomes update on delete/ in place of delete on data. The decoding test covers every padding length and malformed lengths, for an exact-size decode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: delete the tombstone's version alone, and decode a code at its exact size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32 PRV-2c-3b: drop exact_decode's two guards the decode already makes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's login is held to the chart's workspace namespace, which the pod must share, tests pending Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's login is held to the chart's workspace namespace, which the pod must share Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor starts only as its own connection's ServiceAccount, tests pending (DEC-2336) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor starts only as its own connection's ServiceAccount (DEC-2336) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a connection's broker account id is kept in the personal-data vault, created once by its own executor (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a source that holds no personal data refuses a create (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the broker account id is a shared secret type, read from /v2/account alone and kept in the account entry's one byte form, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the broker account id is a shared secret type, read from /v2/account alone and kept in the account entry's one byte form (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the account id form test names a stub's report when it fails Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: two ids are equal only by their text, and an entry is written only under a pii_ reference Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the id equality and pii_ reference tests run Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a refused account entry create fails closed, as an unreadable account (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged executor's OAuth connect check keeps the account id in its entry and fails closed on any refused create, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the pii_ reference's minting moves to E2, where it is wired Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged executor's OAuth connect check keeps the account id in its entry and fails closed on any refused create (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the entry decode test's name is spelled as typos reads it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E10-13: the account entry is built at its exact length, so no spare copy of the id is freed unwiped Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged executor reads its connection from its ServiceAccount and mints its account entry's reference from an injected source, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged executor reads its connection from its ServiceAccount and mints its account entry's reference from an injected source (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor reads its account stream's establishment state, drafts its copy, and holds openings while connecting, tests pending (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor reads its account stream's establishment state, drafts its copy, and holds openings while connecting (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2341 says why the copy is not in the fold's COPIED list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: each pass writes the establishment's copy when due and opens the executor's gate, tests pending (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: each pass writes the establishment's copy when due and opens the executor's gate, and the run drains on a closed connection (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2339's fingerprint is the vault's keyed hash, per connections spec §3.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: no identity reads the personal-data vault; the manager gets the vault's keyed hash alone, per connections spec §3.1, tests pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: a closed or unreadable connection keeps the gate shut and every exit going, never stopping the executor itself, tests pending (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: Connected::Closed says the caller stops nothing (DEC-2341 item 4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the run reports a closed or unreadable connection once and never drains on the gate's word (DEC-2341 item 4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the closed and unreadable tests read what the executor follows (DEC-2341 item 4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the gate is pinned against an increase, every risk reduction over a real position, and the journal's own schema for the copy (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the copy's schema test takes its event id as the process does (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the copy's schema test names a canonical original (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the schema test runs against the copy's draft (DEC-2341) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: every risk reduction acts under a shut gate, and a restarted established executor opens on its first pass, pending (DEC-2341) The alike test now asserts each exit is received and sent, and the kill switch applied, under the shut gate; the owner exit follows its OwnerExitRequested with the runtime's proposal. A protective order never reaches the binding gate from a proposal, so its pass-through is asserted where the gate acts, with every purpose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the gate's code is reported once per change, tests pending (DEC-2341 item 4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the gate's code is reported once per change (DEC-2341 item 4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2341 item 3 says the executor's own protective orders never reach the binding gate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged executor's start checks a fresh stream once over its own lease, tests pending (DEC-2339) Covers E2c's items: the scopes checked are the lease's own, the account id is in no record and no code on any route, an entropy failure refuses the start before any create, and a time before the epoch mints no reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged start's account read is the paper host's, test pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged start's scope test reads a lease that is not the request's, and no negative time is minted for (DEC-2339) A stored token entry always holds exactly the requested scopes, so a narrower one does not decode: the start refuses it as credential_malformed. UtcNanos holds no time before the epoch, so item (d) is the type's already and its pending test and row go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged executor's start checks a fresh stream once over its own lease (DEC-2339) serve takes the executor's own connection from its ServiceAccount, logs in once, runs the start with the OS random source and the paper host's account read, and refuses a checked connection that is not its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2341 item 3 points to DEC-2346 for the OAuth path Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the run and the wait before it are the library's, tests pending (DEC-2346) The serve loop moves out of the binary so a test can drive it with a wiring that admits openings: the gate the run installs, the pass after each step, and each gate code said once are pinned. The wait before the process starts appends nothing, ticks the lease, is live and not ready, and ends fail-safe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the run and the wait before it are the library's (DEC-2346) main hands serve::serve the host clock, the lease's tick, SIGTERM and stderr, serves the probe from the start, and on the paper host waits while the connection is still connecting before the process takes the account stream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the run leases only its own checked connection, test pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the run leases only its own checked connection (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the account fingerprint's paths, grants and key, tests pending (DEC-2345) The executor creates its fingerprint entry and updates the one transit HMAC path; the connection manager reads each fingerprint entry, the rotation marker, and reads and changes the one registry entry by check-and-set. The V tests that said no policy names personal/ now say it of the account entry, which still holds. Also asserts the rendered policy is Ok rather than defaulting it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor's templated policy creates its fingerprint and hashes, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the account fingerprint's paths and grants (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2345 puts the key's provisioning in F3b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: DEC-2345 states the registry's one writer and how two claims contend Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream, tests pending (DEC-2339) A request again on the same connection to another account stream (DEC-699) has an entry of its own, so nothing is overwritten and a refused request's entry is kept until its erasure. The executor creates below its own connection's templated segment with one '+', the account stream, create only: the one wildcard of any templated policy, pinned by a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: one account entry per request, below its connection and account stream (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the take test keeps its own connection alone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the OAuth connect check's entry is the request's, below its connection and account stream (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the OAuth connect check creates the request's entry, below its connection and account stream (DEC-2339) A scope whose account is not an account stream's reference creates nothing and journals the account as unreadable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the exchanged start's test names the request's entry (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads fingerprints by DEC-2349's prefix grant, not per request (DEC-2345) Nothing rewrites a policy when a request is made, so fingerprint_reads would have no caller; DEC-2349's policy renders personal/fingerprints/+/+ read only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: an unreadable stream refuses the exchanged start, test pending (DEC-2339) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: an unreadable stream refuses the exchanged start (DEC-2339) A stream the start cannot read is no longer taken for one with no check, so a refused connect is never run again into a second create through a moment the journal cannot be read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: an agentless closed connection ends the wait cleanly, and a start is live only within its bound, tests pending (DEC-2346) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint key's provisioning, the executor's hash and the entry's form, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint entry's malformed cases name a reference that does not read Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint key's provisioning, the executor's hash and the entry's form (DEC-2345) Provisioning mounts transit and creates account-fingerprint, never exportable or deletable, and sets cas_required on the registry entry; the executor alone asks transit for an account id's HMAC; the entry has one canonical form and one reader. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads, claims and releases fingerprints, tests pending (DEC-2345) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the manager reads, claims and releases fingerprints (DEC-2345) fingerprint reads the request's entry by its one reader; claim and release change the registry by check-and-set on the version read, re-reading a bounded number of times when it moved, so of two concurrent claims one wins and the other answers HeldBy it; a release changes only its own pair; the rotation marker refuses fingerprint and claim; every refusal is Unavailable, failing closed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor writes its account's fingerprint at connect, tests pending (DEC-2345) F3c of DEC-2345 item 7. The exchanged start asks the vault for the keyed hash of the id it read, and the connect check creates the request's fingerprint entry beside its account entry, under the same reference; any refusal of the hash or either create journals the account as unreadable. The fingerprint create is stubbed; the tests that need it are pending, with behaviour-only rows. The hash moves onto SecretSource (refused by default), taking a BrokerAccountId, whose new accessor hands the vault the id's text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: format the fingerprint connect tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the executor writes its account's fingerprint at connect (DEC-2345) F3c's implementation: the connect check creates the request's fingerprint entry, its fingerprint and reference in encode_entry's form, after the account entry. It deletes the pending markers and the five behaviour-only rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: an existing fingerprint key that can leave the vault fails provisioning, tests pending (DEC-2345) Review F1 of F3b-1: provisioning kept any key the GET found, an exportable one included. Two verdicts, stubbed here, judge the transit mount's type and an existing key's exportable, deletion_allowed and allow_plaintext_backup, each of which must read false; a live test, pending, provisions over an exportable key, a deletable key and a transit path holding another engine, and expects Config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: an existing fingerprint key that can leave the vault fails provisioning (DEC-2345) F1's implementation: provisioning judges a transit mount already there by its type, and a fingerprint key already there by its exportable, deletion_allowed and allow_plaintext_backup, each of which must read false, and fails as Config otherwise. The hash's request body's copy of the encoded id is wiped once the request is sent (review nit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the key provisioning test's set-up installs its TLS provider Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the claim's bound and an unreadable entry's release fail closed, tests pending (DEC-2345) Review F-a: the claim and the release run over a registry seam, registry::claim_in and release_in, stubbed here, so their check-and-set bound is tested on a scripted registry that moves under every read: CLAIM_TRIES reads, Unavailable, nothing written. Review F-b: a release over a fingerprint entry that does not read must answer Unavailable and keep the claim (live test, pending). Review F-c: DEC-2345 item 6 states that the marker's read and the claim's write are not atomic, and how the rotation job covers a claim that lands between them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the claim's bound and an unreadable entry's release fail closed (DEC-2345) F-a and F-b's implementation: the claim and the release are registry::claim_in and release_in over the Registry seam, which OpenBaoSource implements with its registry entry's check-and-set read and write; a release over a fingerprint entry that does not read answers Unavailable and leaves the claim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the connect check creates the fingerprint entry before the account entry, tests pending (DEC-2345) Review hardening: with the fingerprint first, a refused second create leaves only the pseudonymous hash, never the raw account id. The tests follow the order: a refused fingerprint create keeps no account id, and a refused account create leaves the fingerprint alone. With the stub first, the retry-after-crash test now stops at the stub too, so it is pending with its own behaviour-only row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the fingerprint-first rows go with the implementation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: only a missing fingerprint key is created, and any other GET error fails provisioning, test pending (DEC-2345) Review F1, round 2: a failed GET of the key was read as missing, so provisioning created over a key OpenBao kept unchanged, and an exportable one was accepted unverified after one transient error. key_needs_creating, stubbed here, reads only a 404 as missing, judges a key that is there by the verdict, and passes every other refusal on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: only a missing fingerprint key is created, and any other GET error fails provisioning (DEC-2345) F1 round 2's implementation: key_needs_creating creates the key only on a 404 and verifies one that is there; any other refusal of the GET fails provisioning. After a create, provisioning reads the key again and verifies it, and it reads the transit mount again after mounting it, so neither is ever taken unverified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * E21-32: the key provisioning test sets its vault up before it judges provisioning The set-up posted the transit mount and the key without reading the answers, so a mount not yet routable left no key, provisioning made a fresh one, and the test saw Ok. Each step now retries until the vault takes it, and the planted key is read back as exportable or deletable before provisioning runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Restore main's manager-trait and absent-delete vault tests the union dropped Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF * Bound the serve tests' runs so a run that never drains fails fast SIGTERM alone and a stop code alone must each drain the run. The test edge now ends any run at a pass bound with its own code, and the lease test checks its pass, so the || to && mutant in serve's stopping is caught at once instead of timing out the mutation run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5V2t72QcDywyLPViJtmFF --------- Co-authored-by: Claude <noreply@anthropic.com>
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-2b (claim #1897): the implementation half of a DEC-77 pair. Its base is the tests PR, #2008. Decision: DEC-2306 items 1 to 3.
Stacking. This PR merges lane V2's PRV-2a (#2019, branch
claude/v2-vault-prv2, stacked on #2016). That PR carries the agreedOpenBaoSource::login_kubernetes,mounted::read_service_account_tokenandSERVICE_ACCOUNT_TOKEN_DIR. Until #2019 lands on main, this diff also shows V2's files, which are V2's to review. The merge order is #2016, then #2019, before this PR.credential.rspaper_settings:broker_choice, thenbroker_conflictwith--fixture, then the two vault flags.vault_config:read_mounted(dir, "ca.crt"), with the cell'sMounts::default().vault_login: calls the injected ServiceAccount-token reader first (vault_credentials_unreadable), then the injected login asIdentity::Executor(connection)(vault_login_failed).paper_broker:credential_unavailableif refused).read_token, thenpaper_transport, thenAlpacaBroker::new.lease_verdict: mapsHeldand the tick's error as the tests say.RunLease::pass: ticks only while nothing has stopped the run, and keeps the first stop code.RunLease::give_back: revokes.lease::runtimeis nowpub(crate).main.rspaper_settingsis read once, forrunandconnect-check. A refusal prints its code and exits 2.runwithalpaca-paper:checked_connectionreads the account stream.vault_configreads the CA in--vault-dir.vault_logingetsread_service_account_token(SERVICE_ACCOUNT_TOKEN_DIR)andOpenBaoSource::login_kubernetes; the token is read fresh at every login.paper_broker.ExecutorProcess::starttake the stream.RunLease::passis called. A stop code drains the process like SIGTERM, and the code is printed beside the lifecycle's own. The lease is given back when the run returns.connect-checkwithalpaca-paper: runs under the lease on the--connectionit checks, and gives it back after the check is journaled.serve_onandchecked_on.paper_only's pin still holds: onlycredential.rsnames the paper transport, and no source names a host or an HTTP client.The only test-file change is the 8 removed pending markers.
Spec clause → test
The eight pending tests in #2008 now run.
Dependencies
None.
mandate-vaultis already a dependency.Journal events added
None.
Not done
LV-3, and LV-4: the chart's
--broker alpaca-paper,--vault-addressand--vault-dir, plus the projected token volume, which is V2's and the deploy manager's.Decisions needed
None.
Safety checklist (safety-critical changes)
main.rs, ES-05)unwrap,expect, or panics on trading pathsx-plannedor(planned: ...)marker addedChecks
mandate-executordnextest 106/106, clippy-D warnings, fmtcargo mutants --in-diffvs main: 23 caught, 19 unviable, 0 missedIndependent review
PASS by the coordinating session, which did not author the change. This is the implementation half of E21-30, after #2008's eight pending tests merged. I resolved its conflict with that merge by hand: kept its implementation of
credential.rs, took #2008's test file with the eight#[ignore]markers removed (the DEC-77 implementation step), and verifiedmandate-executordat 106 tests, 0 skipped, all pass — the eight that were pending now pass. The author reportscargo mutants --in-diff: 23 caught, 19 unviable, 0 missed. The wholecirun on this head is green on Linux.Independent review
PASS by the coordinating session, which did not author the change. This closes the E21-30 DEC-77 pair: #2008's eight pending tests merged first, and this removes the stubs and makes them pass. The whole
cirun on this head is green on Linux, both aggregates included.The branch was rebuilt, not merged. It had carried a copy of the vault stack that #2016 and #2023 landed in newer form, so merging main into it conflicted on files this change does not own. I rebuilt it as
mainplus onlycrates/mandate-executord/src/and the test file with the eight#[ignore]markers removed — 4 files, 177 insertions, 56 deletions — and lefttests/support/mod.rsandtests/outage.rsas main's, since #2048 had since added helpers and a test there. Verified locally:mandate-executord108 pass, 1 skipped, the skip being #2048's own E21-26 pending test, which this story does not implement. The author reportscargo mutants --in-diff: 23 caught, 19 unviable, 0 missed.It could not build at all before #2023 merged: it calls
OpenBaoSource::login_kubernetes, which existed in no other branch.Coordinator-approved-head: 155c558