Skip to content

Requirements ​

Functional Requirements ​

FeatureSummaryIntentStatus
safekeys/audit-loggingEvery resolution is recorded — who, what scope, which jti, which host — withoutA system that promises "the model never sees secrets" must be able to prove whatbuilt
safekeys/control-plane-apiThe Control Plane API is the authority service: it allocates object ids, issuesTokens need an issuing authority, policy needs a central place to live and changbuilt
safekeys/policy-engineThe policy engine decides which sidecar, principal, and process may resolve whicA valid token proves authority was once granted; it does not prove the request ibuilt
safekeys/deployment-packagingReproducible, hardened packaging so Safekeys can run on a real host: container iThe software MVP works end to end, but "works on the author's laptop" and "safebuilt
safekeys/distributionName reservation and release pipeline for the 0.1.0 publish: npm under @smithgraThe MVP is real but unnameable: the npm org, PyPI names, Docker org, and crates.built
safekeys/docs-hostingPublish the generated specification docs to Cloudflare Pages at docs.safekeys.aiThe specs are the source of truth, but until they are published they only existbuilt
safekeys/hardware-rootPhase 1 hardening moves the long-term key share out of ordinary RAM and into a hIn the software-only MVP the promise holds architecturally, but a rooted host caplanned
safekeys/threshold-cryptoPhase 2 hardening splits key knowledge between the secure element and the authorA hardware root protects a key from a compromised host, but the device itself replanned
safekeys/integration-mcp-serverThe Safekeys MCP server exposes secret tooling to every MCP-capable agent runtimEvery agent framework integration is a thin adapter on the same contract, so buibuilt
safekeys/integration-python-sdkThe Python Agent SDK is a token-only client for teams building agents, shippingAgent developers will do whatever is easiest, so the safest path has to be the ebuilt
safekeys/secret-creationCreating a secret is the one flow that touches plaintext, and it deliberately byIf creation flowed through model context — "here is the API key, please store itbuilt
safekeys/secret-transportTransport is how a secret gets from where it was created to where it is used — aAgentic systems route credentials through many hops, and each hop is traditionalbuilt
safekeys/token-revocationRevocation invalidates a capability token immediately, without waiting for its TShort TTLs alone leave an unacceptable window when a token is known to be leakedbuilt
safekeys/capability-tokenThe capability token is the only secret-bearing artefact an agent reasons about.Agents must be able to define, create, transport, and request use of secrets witbuilt
safekeys/encrypted-folderA Safekeys folder is the transport unit: an ordinary directory (or object prefixSecrets need to move the way artefacts move — through git, object stores, artefabuilt
safekeys/envelope-encryptionEnvelope encryption separates the key that protects a secret from the key that pRotating or revoking a master key must not require re-encrypting every secret evbuilt
safekeys/dev-key-custodyDevelopment-stack key custody: no key material the coding agent's OS user can reThe dev stack currently stores the KEK in a 0600 file owned by the same OS userbuilt
safekeys/exec-wrappersafekeys exec --token … -- <command> runs a command with secrets injected intoThe cleanest "the model never sees plaintext" path is the one where the secret nbuilt
safekeys/output-controlOutput control for model-facing resolution: the sidecar redacts the resolved valresolve_for_tool runs a model-chosen command and relays its output to the model,built
safekeys/secret-injectionInjection is how a resolved secret reaches a consumer without passing through moA resolved secret is useless unless the process that needs it can actually get ibuilt
safekeys/sidecar-resolutionToken resolution is the act that turns a capability token into a plaintext valueThis is the enforcement point for the whole product. Every other component can bbuilt

Non-Functional Requirements ​

CategoryTargetDescription
PerformanceResolution and injection under 50ms p95 locally, excluding key-store unwrap latency.The sidecar sits on the hot path for tool calls, so resolution must stay cheap.
ScalabilitySingle sidecar per decrypting environment; control plane scales horizontally behind Postgres.—
SecurityCompromise of the model, the agent sandbox, or the sidecar must not yield the long-term key.Architectural in the MVP; cryptographic plus hardware in later phases.
ReliabilityDeny-by-default when the key store or control plane is unreachable.A failed resolution must never fall back to plaintext or a cached value.
MaintainabilityAgent-facing API unchanged across software, hardware, and threshold phases.—