Llavero delivery plan Proposed

2026-11-22 · gmackie/llavero · LLAV-1, LLAV-2 · original roadmap, with implementation updates below

Worker fixture verified on Cloudflare. The stock OpenBao v2.7.3 CLI and Go SDK exercised KV v2 and Transit in two private SQLite Durable Objects. Both reopened sealed after eviction and recovered their original data using tenant-specific shares. The fixture used generated values and a software seal. The ForgeGraph production migration requires hardware-backed recovery, trace verification and a cutover and rollback rehearsal. The implementation plan identifies each caller to migrate, the private agent and mobile workflows, and the evidence required for release. Full implementation plan · Vault and KMS system design

The first live custody target is Llavero staging. Its objectives are 99.5% availability over 30 days, warm p95/p99 of 2/4 seconds, cold p95/p99 of 5/10 seconds and full recovery within 60 minutes with zero acknowledged changes lost. The rollback path must restore service within 15 minutes and stay usable for 7 days. Retain daily encrypted backups, the replay journal and signed checkpoints for 30 days. The owner holds the off-host checkpoint and the first recovery approval. Lead dev holds the second. Staging cutover policy

On 27 November the auto-seal fixture recovered historical KV and Transit data from a backup held on a second Mac, using its Secure Enclave after the primary key handles had been removed. Two Google Cloud HSM versions passed the cold history and recovery-share checks. A deployed Worker also authenticated to a Secure Enclave gateway over Workers VPC and recovered its historical data after root rotation and eviction. On 28 November the deployed Worker renewed its tenant-bound workload lease. The gateway refused warm use and fresh enrollment after revocation. A fresh local gateway process reopened the surviving Secure Enclave handle. A two-Mac rehearsal rejected stale authority state against a checkpoint on the recovery host. The offline ceremony now verifies the two role-bound approvals. A disposable PostgreSQL and upstream Worker rehearsal recovered a partially completed rename, retained a deletion and preserved separate sink outcomes through rollback. The first live writer switch awaits the two hardware comparisons, independent recovery and workload uptake. Hardware recovery evidence

Original credential-service pilots

The following phases record the November 22 rollout proposals and their evidence. The current design governs trace isolation, production key custody and cutover sequencing.

Acquisition tiers

1 · APILlavero issues with vault-held bootstrap authority. Unattended rotation. Cloudflare, AWS, OpenRouter.
2 · RedirectProvider redirects to Llavero's callback. GitHub App manifest, OAuth grants.
3 · Browser revealAgent stops at reveal, then owner paste or pinned capture. Assisted only. Twitch, Linear keys, GitHub OAuth.
0 · ImportOwner pastes an existing secret into protected intake for the staging pilot.

Agent runtime

CF Browser Rendering + Workers AI

  • Extraction happens in code, so the model only sees redacted views
  • Unattended runs possible where there is no MFA
  • Billed per browser-hour and per inference. Login handoff is unsolved.

Phases

  1. 0 · Design and scaffold

    In review

    README, scaffold and extraction docs (PR #1). Self-hosted design, tiers, playbooks and logging (LLAV-2).

  2. 1 · Installable foundation

    Todo

    Deploy button and script, root key, passkey first-run claim, per-organization Durable Object vault, D1 metadata, hash-chained audit, Llavero OAuth MCP issuer. All with dummy data.

    Tasks
    TaskFilesVerificationStatus
    Wrangler bindings and deploy scriptapps/web/wrangler.jsonc, scripts/deployFresh account deploy; claim closes after first ownerTodo
    Vault envelopes under per-organization keyspackages/vaultCross-tenant reads denied; restore rehearsal reads every versionTodo
    Audit chain and redactionpackages/auditChain verifies on export; seeded canaries absent from logs and responsesTodo
    OAuth MCP issuer with reference-only toolsapps/web/src/mcpWrong audience, excluded project and revoked refresh all deniedTodo
  3. 2 · Staging import

    Todo

    Tier 0. The owner imports the GitHub OAuth secret. Deliver only clientSecret to the approved ForgeGraph stage as GITHUB_CLIENT_SECRET and preserve GITHUB_CLIENT_ID. A replay produces no extra write. Hand the redeploy to the app owner.

  4. 3 · Self-hosted agent pilot

    Todo

    On a fresh test account: create an OpenRouter key (tier 1) and a GitHub App via manifest (tier 2) from a T3 thread, then rotate the OpenRouter key under an approved policy. No secret may appear in the transcript.

    Acceptance
    • Thread transcript, snapshots and logs contain no canary or issued value.
    • Scheduled rotation: issue, deliver, verify uptake, overlap, retire. The log shows each step with provider request IDs.
    • Forced timeout during issue lands in reconciliation-required with no second key.
  5. 4 · Sandbox rotation and revocation

    Todo

    An agent (Bob or T3) proposes and resumes an approved sandbox rotation. An excluded startup is denied. After revocation, both the access token and the refresh fail, and a waiting plan does not execute.

  6. 5 · Browser-reveal tier on T3

    Todo

    Intake tickets with owner paste. Canary probe for pinned capture: no leak to snapshot, screenshot, recording, console, network or transcript, and an injected page cannot redirect the post. First tier-3 playbooks: Twitch, Linear, Sentry.

  7. 6 · Playbook catalog

    Todo

    Port the ten bizpulse-add-* skills and add AWS, Sentry, Linear and OpenRouter. Each meets playbook acceptance: sources checked, sandbox lifecycle, denied overbroad scope, reconciliation exercised.

  8. 7 · Cloudflare runtime (target)

    Todo

    Browser Rendering session owned by the Worker, model behind AI Gateway, release-pinned capture straight to the vault. Repeat the staging pilot with a dummy GitHub OAuth credential and provider-supported GitHub Mobile number matching.

    An attended Browser Run path is implemented for Stripe test mode. A live dummy handoff verified viewer disconnection and reconnect refusal. The reviewed Stripe account still needs a form check. Setup and evidence

  9. 8 · BizPulse portfolio migration

    Todo

    BizPulse becomes a Llavero consumer. Migrate one approved project at a time with reconciliation at zero, then rehearse rollback (see extraction doc).

Risks

High A T3 agent snapshots during a reveal and the secret enters model context. Owner paste by default, capture gated on the canary probe, reveal-window flag in the log, issue-and-retire if detected.

High Root key loss makes an install unrecoverable. Recovery export at install and a restore rehearsal as acceptance.

Medium Provider console drift or terms of service forbid automation. Playbook reviewedAt and terms, a tier-1 preference, and assisted runs for tier 3.

Medium Unattended retries double-issue after uncertain results. Checkpoint before the call, idempotency keys, reconciliation-required with no auto-retry.

Account credentials for agents

In review. Settings stores each personal reference under its owner’s account. The owner grants individual API keys access to a reference. A trusted CLI command can then receive the current value in its environment from any project. Release verification covers account isolation, revocation, stale forms, root-key rotation and account deletion.

Open decisions

Pinned capture versus paste-only on T3 · Cloudflare login handoff · root key escrow · distribution model (template button or CLI) · MCP discovery for third-party installs. Details are in docs/llavero/self-hosted.md.