Expand description
Central registry of the VTA’s keyspace names.
Every store.keyspace(..) call in the VTA (vta-service server, offline
CLIs, backup, tests) names its keyspace through a const here rather than a
bare string literal. This is the single source of truth that killed the
"imported" / "imported_secrets" test-vs-production divergence (a test
opened a different, empty keyspace than the one production writes). The
no_bare_keyspace_literals guard in vta-service keeps it that way by
scanning that crate’s source for bare .keyspace("…") literals.
Keyspace names live here; per-keyspace key formats (the key:, seed:,
path_counter: … record families inside a keyspace) are a separate concern
and are not yet centralised.
A near-leaf crate: it holds the shared keyspace vocabulary (the name
constants) plus the Keyspaces handle bundle, so that every VTA subsystem
crate can name and pass keyspaces without depending on vta-service. Its
only dependency is vti-common (for KeyspaceHandle).
Structs§
- Keyspaces
- Shared bundle of borrowed keyspace handles passed to operations that need several keyspaces at once.
Enums§
- DidDelete
Effect - What happens to a keyspace’s DID-keyed contents when that DID is deleted.
Constants§
- ACL
- ACL entries + the seal record + the integrity-anchor root.
- ALL
- Every production keyspace. Partitioned by
BACKED_UP+EXCLUDED_FROM_BACKUP; the [tests::backup_partition_is_total] guard asserts the partition stays exhaustive so a newly-added keyspace can’t be silently omitted from the backup decision. - APP_
STATE - Versioned, namespaced application state (
vta/app-state/{get,put,list, delete,get-many,put-many}/1.0) — the third store, besideVAULT(secrets and credentials) andMEMORY(agent memory), for JSON an application owns and the VTA does not interpret. - AUDIT
- Audit log.
- AUDIT_
KEY - The keyed-hash keys the audit log commits actor and target identifiers under, and their history.
- BACKED_
UP - Keyspaces a backup carries, every row of each, as a raw dump.
- BACKUP_
BUNDLES - In-flight backup-bundle control-plane records.
- BOOTSTRAP
- KMS-protected, unencrypted boot keyspace (TEE integrity manifest, etc.).
- CONSENT
- Inbound-messaging consent: durable grants + TTL’d pending requests
(
vti_common::consent). The VTA is the first gate for bridged conversations. - CONSENT_
APPROVERS - Per-(platform, context) approver bindings — who decides consent and how the
prompt routes (
vti_common::consent::ApproverBinding). - CONTEXTS
- Trust contexts (the BIP-32 key hierarchy roots).
- DID_
TEMPLATES - Stored DID templates (global + context-scoped).
- DRAINS
- Persisted protocol-management drain set.
- ENVIRONMENT_
BOUND_ ROWS - Rows inside a
BACKED_UPkeyspace that belong to the deployment, not to the agent, as(keyspace, key prefix). - EXCLUDED_
FROM_ BACKUP - Keyspaces deliberately not in a backup, each for a stated reason.
- EXTERNAL_
ACCOUNTS - External accounts a VTA holds at clouds and third-party providers
(
external/accounts/*), keyedacct:<context>:<accountId>, plus aretired:<context>:<accountId>tombstone per deleted id so an id is never reused while a provider-side trust policy may still name it. - EXTERNAL_
SECRETS - The secret halves of external accounts whose model holds one
(
s3-static-presign,static-secret), set byexternal/accounts/secret/set/0.1and wrapped under the seed-derived KEK the way imported keys are. Keyedsecret:<context>:<accountId>. - IDEMPOTENCY
- Idempotency records for keyed Trust Tasks — one row per
(actor, idempotency-key), holding the request digest and, for tasks whose response may be replayed, the original response. Lets a client’s retry of a lost reply converge on the first execution instead of producing a second durable effect. - IMPORTED_
SECRETS - Imported secret material (KEK-wrapped). Named
imported_secrets, notimported— the latter was a long-standing test-only typo that operated on an empty keyspace disjoint from production. Always reference this const. - INTERNAL_
KEYS - Non-extractable internal signing keys.
- ISSUED_
CREDENTIALS - VTA-issued credentials (minted by
vta/credentials/issue/0.1, revoked byvta/credentials/revoke/0.1). One record per credential keyedcred:<id>; revocation is a tombstone (revokedAtset in place), not a delete. Distinct fromVAULT(which stores credentials the holder holds). - KEYS
- Master seed + key records (
key:,seed:,path_counter:,active_seed_id,imported_kek_salt, …) and the backup import sentinel. - MEMORY
- Per-context key/value store for AI-agent memory (
vta/memory/{put,list, delete}/0.1). One record per(contextId, key)pair, keyedmem:<contextId>:<key>;listis amem:<contextId>:prefix scan. Durable user data → inBACKED_UP. - OUTBOX
- Durable reliable-messaging outbox backing
vti_common::outbox_store::VtiOutboxStorefor the delivery-layerMessagingService(D2 P2a cut-over). HoldsGuaranteed-delivery outbox entries; dormant in P2a (all current sends areBestEffort) but wired so the drain/confirmation loops persist across restarts once P2b adds guaranteed VTA pushes. Runtime state, not backed up. - PASSKEY_
VMS - In-flight passkey-as-verificationMethod enrolment state.
- PCS_
ENGINE - The VTA’s hidden-vetting PCS engine state (
vta/pcs/*): one vetter engine per (context, community), keyedvetter:<context>:<community>, and one applicant engine per application, keyedapp:<applicationId>. - PERSONA
- The holder’s identity attributes, profiles, bindings and contacts
(
persona/*) — the fourth store, besideVAULT(secrets and credentials),MEMORY(agent memory) andAPP_STATE(uninterpreted application JSON). - POLICY
- Rego policy modules for the Policy Decision Point (
policy/{upsert,list, delete,evaluate}). Onepolicy::PolicyModuleper id, keyedpolicy:<id>; the active set is every enabled row, priority-ordered. Durable operator security config → inBACKED_UP(a lost policy set would silently drop enforcement on restore). - RELATIONSHIPS
- Durable TSP relationship state, backing the SDK’s
RelationshipStorefor the TSP transport. One record per facet per(our_vid, their_vid)pair — the relationship FSM state, thread digests, reply path and learned capability. - ROOM_
GROUPS - A member’s MLS group state for each data room they belong to
(
rooms/keys/{welcome,commit,open}), keyed per member:room-group/<roomId>/<persona>, beside the member’s pending KeyPackage (room-kp/…), pending epoch advance (room-advance/…), root memory (room-roots/…), the epoch a commit removed the member at (room-removed/…) and an owner’s last applied admission, Welcome included, kept for at most 24 hours so a repeated request can be answered (room-admitted/…,rooms/owner/group/add/0.3item 8) under the same<roomId>/<persona>. One VTA may hold several members of one room — several principals, or several personas of one — and each is a different leaf with different secrets. Rows a per-room build wrote (room-group:<roomId>, …) are moved under their member on first touch. - ROOM_
INVITATIONS - Invitation credentials this VTA has consumed by joining a room
(
rooms/keys/welcome), keyedroom-vic:<credentialId>. - SEALED_
NONCES - Sealed-bootstrap anti-replay nonce log.
- SERVICE_
STATE - Persistent runtime service-enable state (
operations::protocol::runtime_state). - SESSIONS
- Auth sessions + challenges.
- SNAPSHOT
- Per-kind previous-config snapshots for fail-forward rollback.
(Historically
operations::protocol::snapshot::KEYSPACE_NAME.) - TASK_
CONSENT - Task-execution consent for the PDP’s
requireConsentdisposition: pending approvals keyed by payload digest, and granted consents a re-submitted task consumes. Distinct fromCONSENT(messaging-bridge conversation consent). Onevti_common::task_consent::PendingTaskConsentperpending:<digest>andvti_common::task_consent::TaskConsentGrantpergrant:<digest>:<requester>. Durable operator-facing security state →BACKED_UP. - TRUST_
TASK_ PUSHES - Trust Task pushes in flight or recently finished — one record per push,
holding the signed document, the transport plan and the outcome
(
vti_common::trust_task_push). Encrypted at rest; runtime delivery state likeOUTBOX, not backed up. - VAULT
- Holder credential vault (third-party secrets stored on this VTA).
- WEBVH
- WebVH DID records +
did.jsonlstate. - WITNESS_
SESSIONS - The VTA’s records of witnessed sessions in flight (
vta/witness/*): one per session, keyedsession:<sessionId>, fromvta/witness/openuntil the record expires — minutes, near the witness’s own session lifetime — with an accepted session reduced to its stub (vta/_shared/0.6/CONVENTIONS.md§3).
Functions§
- did_
delete_ effect - The effect a DID deletion has on
keyspace, orNoneif the name is not a keyspace this build knows. - is_
environment_ bound - Whether
keyinkeyspaceis anENVIRONMENT_BOUND_ROWSrow.