Business Architecture (TOGAF Phase B)
Auto-generated from USM features and system.usm.
Features by Service
safekeys/control-plane
| Feature | Summary | Status | Flows | Contracts |
|---|---|---|---|---|
| safekeys/audit-logging | Every resolution is recorded — who, what scope, which jti, which host — without | built | 2 | 4 |
| safekeys/control-plane-api | The Control Plane API is the authority service: it allocates object ids, issues | built | 3 | 4 |
| safekeys/policy-engine | The policy engine decides which sidecar, principal, and process may resolve whic | built | 2 | 4 |
| safekeys/token-revocation | Revocation invalidates a capability token immediately, without waiting for its T | built | 2 | 3 |
| safekeys/capability-token | The capability token is the only secret-bearing artefact an agent reasons about. | built | 2 | 4 |
safekeys/system
| Feature | Summary | Status | Flows | Contracts |
|---|---|---|---|---|
| safekeys/deployment-packaging | Reproducible, hardened packaging so Safekeys can run on a real host: container i | built | 5 | 6 |
| safekeys/distribution | Name reservation and release pipeline for the 0.1.0 publish: npm under @smithgra | built | 3 | 5 |
safekeys/site
| Feature | Summary | Status | Flows | Contracts |
|---|---|---|---|---|
| safekeys/docs-hosting | Publish the generated specification docs to Cloudflare Pages at docs.safekeys.ai | built | 4 | 6 |
safekeys/sidecar
| Feature | Summary | Status | Flows | Contracts |
|---|---|---|---|---|
| safekeys/hardware-root | Phase 1 hardening moves the long-term key share out of ordinary RAM and into a h | planned | 3 | 4 |
| safekeys/threshold-crypto | Phase 2 hardening splits key knowledge between the secure element and the author | planned | 3 | 4 |
| safekeys/secret-creation | Creating a secret is the one flow that touches plaintext, and it deliberately by | built | 2 | 3 |
| safekeys/secret-transport | Transport is how a secret gets from where it was created to where it is used — a | built | 2 | 3 |
| safekeys/encrypted-folder | A Safekeys folder is the transport unit: an ordinary directory (or object prefix | built | 2 | 3 |
| safekeys/envelope-encryption | Envelope encryption separates the key that protects a secret from the key that p | built | 2 | 4 |
| safekeys/dev-key-custody | Development-stack key custody: no key material the coding agent's OS user can re | built | 4 | 3 |
| safekeys/output-control | Output control for model-facing resolution: the sidecar redacts the resolved val | built | 4 | 6 |
| safekeys/secret-injection | Injection is how a resolved secret reaches a consumer without passing through mo | built | 4 | 3 |
| safekeys/sidecar-resolution | Token resolution is the act that turns a capability token into a plaintext value | built | 1 | 5 |
safekeys/mcp-server
| Feature | Summary | Status | Flows | Contracts |
|---|---|---|---|---|
| safekeys/integration-mcp-server | The Safekeys MCP server exposes secret tooling to every MCP-capable agent runtim | built | 2 | 4 |
safekeys/python-sdk
| Feature | Summary | Status | Flows | Contracts |
|---|---|---|---|---|
| safekeys/integration-python-sdk | The Python Agent SDK is a token-only client for teams building agents, shipping | built | 2 | 4 |
safekeys/cli
| Feature | Summary | Status | Flows | Contracts |
|---|---|---|---|---|
| safekeys/exec-wrapper | safekeys exec --token … -- <command> runs a command with secrets injected into | built | 1 | 3 |
User Flows
safekeys/audit-logging
Record a resolution attempt (4 steps) — The sidecar reports each attempt to the audit log, successful or denied.
Query the audit log (3 steps) — An operator or auditor reviews resolution history.
safekeys/control-plane-api
Allocate an object id and wrapping policy (4 steps) — The sidecar asks the control plane to register a new secret object.
Issue a capability token (5 steps) — The control plane mints a signed token for an object, scope, and audience.
Revoke a token (3 steps) — The control plane adds a jti to the denylist.
safekeys/policy-engine
Evaluate policy at issuance (4 steps) — The control plane decides whether to mint the requested token at all.
Evaluate local policy at resolve (4 steps) — The sidecar applies host-local policy before injecting.
safekeys/deployment-packaging
Build the service images (4 steps) — Multi-stage Dockerfiles produce minimal, non-root images for the control plane and the sidecar.
Publish images by digest (4 steps) — CI builds and pushes the images so a host runs exactly what was tested.
Deploy to a single hardened VM (5 steps) — A reference install on one host — users, directories, secrets, and start order.
Provision a production key store (4 steps) — OpenBao runs as a persistent, sealed-at-rest server — not the in-memory dev server.
Provision the token signing key (4 steps) — The Ed25519 signing seed is a root-only credential until HSM custody lands in Phase 1.
safekeys/distribution
Tag-triggered release pipeline (4 steps)
Reserve the defensive names (3 steps)
Verify your install (3 steps)
safekeys/docs-hosting
Publish the contributor docs (5 steps) — Build the developer-audience docs and deploy them to dev-docs.safekeys.ai.
Publish the help docs (4 steps) — Build the filtered public-audience docs and deploy them to docs.safekeys.ai.
Provision the hosting (4 steps) — The one-time Cloudflare and repository setup a new maintainer must perform.
Preview the docs locally (3 steps) — A maintainer reads both audiences on localhost before publishing.
safekeys/hardware-root
Bind a hardware root to an environment (4 steps) — A device is provisioned and bound to customer policy on first plug-in.
Unwrap through the hardware boundary (4 steps) — The device performs or gates the unwrap so key material never enters host RAM.
Revoke a lost device (3 steps) — A lost or stolen device is revoked by serial.
safekeys/threshold-crypto
Split key knowledge across holders (3 steps) — One share lives in the secure element; complementary shares live at the authority.
Reconstruct ephemerally inside the element (4 steps) — The key exists only inside the secure element for the duration of one operation.
Hybrid post-quantum session ratchet (3 steps) — Control-plane sessions use a classical plus PQ ratchet.
safekeys/integration-mcp-server
Expose Safekeys tools over MCP (3 steps) — The MCP server registers token-only tools with the host runtime.
Call a Safekeys tool from an agent (4 steps) — The agent invokes a tool and receives a token or status, never a value.
safekeys/integration-python-sdk
Create a secret via the SDK tool (4 steps) — The agent creates a secret and receives a token.
Resolve a secret for a tool call (4 steps) — The agent requests use of a secret without receiving the value.
safekeys/secret-creation
Create a secret from the CLI (6 steps) — A human supplies a value out-of-band and receives a token.
Create a secret from an agent SDK (4 steps) — An agent creates a secret and receives only a token — it never supplies a value it read from context.
safekeys/secret-transport
Transport a secret between agents (5 steps) — Agent A creates a secret; Agent B uses it, with neither transcript containing plaintext.
Transport a secret across environments (4 steps) — A folder is synced or copied to another environment and used there under a new token.
safekeys/token-revocation
Revoke a capability token (4 steps) — An operator invalidates a specific token by its unique id.
Revoke a device-bound token (later phase) (3 steps) — A lost hardware token is revoked by serial.
safekeys/capability-token
Mint a capability token (5 steps) — The control plane issues a signed token for a specific object, scope, and audience.
Verify a token at the sidecar (6 steps) — The sidecar is the only component that validates a token before resolving.
safekeys/encrypted-folder
Build an encrypted folder (4 steps) — Ciphertext objects plus a manifest are written to a directory or object prefix.
Transport a folder (3 steps) — A folder is moved between environments or agents with no unwrap occurring.
safekeys/envelope-encryption
Wrap a data encryption key (4 steps) — A new DEK is generated locally and wrapped by the KEK without leaving the key store's trust boundary.
Unwrap a DEK for a resolve (4 steps) — The sidecar requests unwrap only after a token has passed every verification step.
safekeys/dev-key-custody
Dev KEK lives in the macOS Keychain (4 steps)
Dev KEK lives in the dev OpenBao instance (3 steps)
Plaintext key file is an explicit, loud opt-in (4 steps)
Separate-user local mode with peer-credential checks (3 steps)
safekeys/exec-wrapper
- Execute a wrapped command (5 steps) — The CLI resolves the token and runs the command with injected env.
safekeys/output-control
Redact the resolved value out of relayed output (4 steps)
Return status-only output by default (4 steps)
Require an allowlist for MCP-initiated resolves (3 steps)
Refuse known dumpers for CLI and SDK resolves without an allowlist (4 steps)
safekeys/secret-injection
Inject as an environment variable (4 steps) — For a child process that already reads env — CLIs and SDKs.
Inject as a 0600 temp file (4 steps) — For tools that require a file — kubeconfig, certificates.
Inject over a Unix socket or pipe (3 steps) — For long-running local services.
Inject via the exec wrapper (4 steps) — Run a command with secrets injected and the environment scrubbed.
safekeys/sidecar-resolution
- Resolve a token and inject the secret (8 steps) — The sidecar takes a token from a local caller and injects the secret into a non-LLM consumer.
Actors
| Actor | Type |
|---|---|
| Control Plane API | Package |
| Sidecar / Resolver | Package |
| Safekeys CLI | Package |
| Safekeys.ai Site | Package |
| Safekeys MCP Server | Package |
| Python SDK | Package |
| TypeScript SDK | Package |
| Key Store (OpenBao / Vault) | Package |
| Control Plane Database | Package |
Business Capability Map
graph TD
subgraph "safekeys/control-plane"
safekeys_control_plane_audit_logging["audit-logging"]
safekeys_control_plane_control_plane_api["control-plane-api"]
safekeys_control_plane_policy_engine["policy-engine"]
safekeys_control_plane_token_revocation["token-revocation"]
safekeys_control_plane_capability_token["capability-token"]
end
subgraph "safekeys/system"
safekeys_system_deployment_packaging["deployment-packaging"]
safekeys_system_distribution["distribution"]
end
subgraph "safekeys/site"
safekeys_site_docs_hosting["docs-hosting"]
end
subgraph "safekeys/sidecar"
safekeys_sidecar_hardware_root["hardware-root"]
safekeys_sidecar_threshold_crypto["threshold-crypto"]
safekeys_sidecar_secret_creation["secret-creation"]
safekeys_sidecar_secret_transport["secret-transport"]
safekeys_sidecar_encrypted_folder["encrypted-folder"]
safekeys_sidecar_envelope_encryption["envelope-encryption"]
safekeys_sidecar_dev_key_custody["dev-key-custody"]
safekeys_sidecar_output_control["output-control"]
safekeys_sidecar_more["+2 more"]
end
subgraph "safekeys/mcp-server"
safekeys_mcp_server_integration_mcp_server["integration-mcp-server"]
end
subgraph "safekeys/python-sdk"
safekeys_python_sdk_integration_python_sdk["integration-python-sdk"]
end
subgraph "safekeys/cli"
safekeys_cli_exec_wrapper["exec-wrapper"]
end