Files
relicario/STATUS.md
adlee-was-taken 0cd417ded7 docs(org): complete A5 living-docs sweep (item CRUD merged) + dead_code cleanup
Extends the A5 pre-stage now that dev-b's full B-stream (item CRUD + all 19
org subcommands) merged to main (7392795). Living docs:
- FORMATS/CRYPTO/SECURITY/DESIGN: flip the item-CRUD "pending Dev-B" markers to
  shipped; SECURITY audit vocabulary moves item-* actions to live.
- crates/relicario-cli/ARCHITECTURE.md: full 19-subcommand surface (12 admin +
  7 item CRUD), accurate OrgAddKind scope (Login/SecureNote/Identity).
- STATUS.md: enterprise-org-vault landed section (merged 7392795) + tracked
  follow-ups + honest known-limitations; correct spec citation.
- ROADMAP.md: backend-complete row + phase-2 follow-ups.
- CHANGELOG.md: finalize the enterprise-org-vault Unreleased section (item CRUD
  into Added; Card/Key/Document/Totp + extension + phase-2 into Deferred).

Code (PM-directed dead_code fixes): wire device::current_device_seed by removing
the identical duplicate private fn in org_session.rs (de-dup); #[allow(dead_code)]
+ justification on org_session org_meta_path/load_meta (API completeness, no
command consumes org.json yet). Also silence a 3rd pre-existing test-only warning
(unused relicario() helper in tests/org_init_signing.rs).

Honest deferrals kept explicit throughout: Card/Key/Document/Totp org add/edit
parity, extension org switch/read (Dev-D) + writes, phase-2 (SSO/LDAP, read
audit, per-collection subkeys, HTTP plane). Full workspace cargo test green,
zero warnings. All cited code constants pinned file:line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TJo44YM3UbBjro2fG6NrKy
2026-06-20 15:54:51 -04:00

16 KiB
Raw Blame History

Relicario — Project Status

Update this file at the end of every dev iteration. It is the single source of truth for what is done, in progress, and next.

Version

Last release tagged: v0.6.0 — rolled up Phase 2B, v0.5.1 Streams A/B/C, 1C-γ, Plan B refactor (Cycles 1+2), management-surfaces revamp, and the doc-structure redesign into one tag. Active track: extension restructure (Plan C) — COMPLETE. All six phases merged. Phases 1, 2, 5 merged 2026-05-30; Phases 3, 4, 6 merged 2026-05-31/06-01 via three parallel worktree streams (Dev-A/B/C under PM coordination). Versions bumped to v0.7.0; tag pending.

What landed on main since the v0.5.0 version bump

Phase 2B — polish foundation + form layout (merged 2026-05-02, 5da1e52)

Spec: docs/superpowers/specs/2026-05-02-phase-2b-form-layout-design.md Plan: docs/superpowers/plans/2026-05-02-phase-2b-polish-and-form-layout.md

  • Patina gold palette tokens (--gold-base #a88a4a, --gold-mid, --gold-shadow, etc.) replacing the bright amber #d2ab43
  • .surface-backdrop (radial top-glow + 18px grid texture) on popup body, setup body, vault body
  • .glass card class with backdrop-filter: blur(8px) for unlock card, setup steps, form columns
  • .btn-primary / .btn-secondary button hierarchy alongside existing .btn
  • GLYPH_NEXT = '▸' (U+25B8) replacing ASCII in next/continue buttons
  • Unlock view restructure: logo-lockup (logo + brand + tagline) + glass card + primary "unlock vault" button + secondary open-vault/settings demoted
  • Setup wizard: backdrop + glass step cards + glass mode-picker cards + ▸ on next buttons
  • Two-column login form (surface: 'popup' | 'fullscreen' flag on renderForm)
  • Sticky save bar in fullscreen forms with externalActions flag
  • Form header with title + dirty-state subtitle + platform-aware save hint (⌘+S / Ctrl+S)

v0.5.1 Stream A — fullscreen + popup layout polish (merged 2026-05-03, c16adc4)

  • 3-column vault tab: sidebar (200px) + list (flex) + detail drawer (440px)
  • Sidebar type-category nav replacing flat item list (All items + per-type counts)
  • Bottom sheet for "new item" type picker (pane-only scrim, sidebar stays interactive)
  • Shared toast system at extension/src/shared/toast.ts (showToast(message, type, durationMs))
  • GLYPH_VAULT_TAB = '⧉' (U+29C9) replacing &#x2934; pop-out button in popup
  • Per-type glyph icons in popup item rows
  • Empty-state treatments (popup list empty, popup search-empty, vault list section-empty)
  • Emoji sweep — all remaining UI emoji replaced with monochrome glyph constants

v0.5.1 Stream B — settings UX redesign (merged 2026-05-03, bd6a301)

  • Unified left-nav settings page (Device / Vault grouping)
  • Sections: Autofill (Device), Display (Device — password coloring), Security (Vault — Recovery QR + trusted devices), Generator (Vault), Retention (Vault), Backup (Vault), Import (Vault)
  • devices standalone sidebar entry subsumed into Security section

v0.5.1 Stream C — Recovery QR (merged 2026-05-03, 934dfe0)

Spec: docs/superpowers/specs/2026-05-01-recovery-qr-design.md Plan: docs/superpowers/plans/2026-05-01-recovery-qr-and-entropy-floor.md

  • Rust core: relicario-core/src/recovery_qr.rsgenerate_recovery_qr / unwrap_recovery_qr / recovery_qr_to_svg (109-byte binary payload, never written to disk)
  • WASM bindings: generate_recovery_qr / unwrap_recovery_qr + session stores image_secret for regeneration
  • CLI: relicario recovery-qr generate / recovery-qr unwrap subcommands (TTY render)
  • Extension: three-state Security settings card; setup wizard "generate before you go" banner
  • Setup wizard Style C redesign — centered hero card + colored progress track + glyph mode icons (replacing the prior glass-card vertical wizard)

1C-γ — attachments + Document type + device registration + trash + history

Specs: docs/superpowers/specs/2026-04-24-relicario-extension-1c-gamma1-design.md, docs/superpowers/specs/2026-04-26-relicario-extension-1c-gamma2-design.md Plans: docs/superpowers/plans/2026-04-24-relicario-extension-1c-gamma1.md, docs/superpowers/plans/2026-04-26-relicario-extension-1c-gamma2.md

  • Core: relicario-core/src/item_types/document.rs (DocumentCore — signature + signed-on date)
  • Extension: Document type form + signature-block detail (extension/src/popup/components/types/document.ts)
  • Attachments wired into 6 type forms via shared disclosure; 📎 indicator in item list
  • Attachment cap setting (per-vault bytes cap) in vault settings; CLI enforces cap on attach
  • Service worker: trash operations (listTrashed, restoreItem, purgeItem, purgeAllTrash); batched purge
  • Device registration from the popup (no setup-wizard detour)
  • Field history end-to-end (WASM get_field_history, popup viewer)
  • Attachment IDs expanded to 128 bits with is_valid check (audit I2)
  • Per-vault attachment bytes cap enforced (audit I3)
  • IDs validated on backup restore (audit B4)

Plan B multi-stream refactor (2026-05-09 → 2026-05-25)

Cycle 1:

  • Stream A: security audit fixes + docs polish (89090a8)
  • Stream B: main.rs split into commands/ modules + git_run helper (b9bd152)

Cycle 2:

  • Stream A: prompt_or_flag<T> + builder compression — compressed build_*_item helpers (3dd1e1b)
  • Stream B: Vault::after_manifest_change wrapper, single canonical ParamsFile in session (3759f6a)
  • Stream C: core/WASM seam — base32_decode_lenient, parse_month_year, guess_mime exported from WASM; CLI parsers migrated to relicario-core::parse (e69b347)

Misc:

  • CLI: gen alias for generate, -l/-w short flags, batched purge
  • base32 module extracted from core, two duplicate RFC-4648 impls deduplicated
  • License switched to GPL-3.0-or-later

Vault-tab management surfaces revamp (2026-05-24 → 2026-05-30)

Spec: docs/superpowers/specs/2026-05-23-vault-tab-management-surfaces-revamp-design.md Plan: docs/superpowers/plans/2026-05-24-vault-tab-management-surfaces-revamp.md

  • Shared utilities: relative-time.ts consolidating 5 duplicate inline copies (9da45dd, a587965), webcrypto ssh-fingerprint.ts (1edfa67), shared section-header / glyph-btn / kv-row / fingerprint CSS (367adce), history/revoke/restore glyph constants (c943a06)
  • Settings pane revamp — synced/local split + session timeout UI (299e7db)
  • Devices pane revamp — SHA256 fingerprint + added-by display + glyph revoke with inline two-step confirm (047df6e)
  • Trash pane revamp — per-item purge countdown via daysUntilPurge + glyph restore + bottom-right empty-trash (ed6e218)
  • Field-history pane visual polish — section headers + glyph reveal/copy buttons (32e674e)
  • Item-history-index pane — top-level "items with history" list (32e1632)
  • Sidebar slot wiring + #history/<id> route with #field-history/<id> legacy normalization (88d7228)

Enterprise org vault — core + server hook + CLI (merged 2026-06-20, 7392795)

Spec: docs/superpowers/specs/2026-06-06-relicario-enterprise-org-vault-design.md; plan: docs/superpowers/plans/2026-06-06-enterprise-org-vault.md

relicario-core org module (crates/relicario-core/src/org.rs): OrgId, MemberId, OrgRole (Owner/Admin/Member), OrgMember, OrgMembers/OrgCollections/OrgMeta/OrgManifest/OrgManifestEntry (all schema_version: 1); generate_org_key; ECIES X25519 key wrap/unwrap (wrap_org_key / unwrap_org_key) — ed25519→X25519 conversion via SHA-512(seed)[..32] + RFC 7748 clamp, ephemeral DH, SHA-256(dh_shared || ephemeral_pk || recipient_pk) wrap key, inner cipher delegated to crate::crypto::encrypt (XChaCha20-Poly1305, no Argon2id in org path); OrgManifest::filter_for_member for collection-scoped manifest views. Vault wrappers: encrypt_org_manifest / decrypt_org_manifest in vault.rs. 5 acceptance tests in crates/relicario-core/tests/org.rs incl. wrap/unwrap round-trip, revoke-after-rotation, manifest filter, and an RFC 8032 ed25519→X25519 known-answer vector.

relicario-server org hook (crates/relicario-server/src/{lib.rs,main.rs}): pure classify_path / extract_schema_version in new lib.rs target; verify_org_commit — commit-signature verification against members.json ed25519 keys, path-scoped authorization (protected JSON → owner/admin only; items/<slug>/… → slug in signer's grants), enforce_owner_only_elevation (parent-role check; guards against privilege self-escalation), enforce_schema_monotonicity (schema_version must not decrease; merge commits rejected; genesis allowed); generate-org-hook subcommand emits a wrapper script. New [lib] target added to relicario-server crate.

relicario-cli — all 19 relicario org subcommands (crates/relicario-cli/src/{org_session.rs,commands/org.rs,device.rs}): org_session.rs provides UnlockedOrgVault (org key in Zeroizing), collection-scoped item_path, fingerprint-based member match, atomic_write, org_git_run (signed commits — does NOT suppress commit.gpgsign).

Admin/lifecycle commands: init (structure + wrap + configure_git_signing + signed bootstrap commit), add-member / remove-member / set-role (owner-only escalation guard), create-collection / grant / revoke, rotate-key (fresh key + re-wrap all members + re-encrypt every items/<slug>/<id>.enc blob + manifest, concurrent-rotation abort, Relicario-Action: key-rotate), transfer-ownership, delete-org, status, audit (verified-signer attribution + TAMPERED flag).

Item CRUD commands (B9B14): org add (OrgAddKind: Login/SecureNote/Identity; card/key/document/totp deferred — see below), org get <query> [--show], org list [--trashed], org edit <query> [--title/--username/…], org rm, org restore, org purge. All ops are collection-scoped + grant-enforced; audit trail emits item-create / item-update / item-delete / item-restore / item-purge.

A5 doc-fix (enforce_owner_only_elevation parent-role close, 519e503) and this living-docs sweep also landed.

Tracked follow-ups (deferred, not shipped):

  • org add / org edit parity for Card, SshKey, Document, Totp item types (Login/SecureNote/Identity only today; get/list can display all types if present)
  • Extension org-vault switch + read parity (Dev-D deferred)
  • Extension org write operations
  • Phase 2: SSO/LDAP federation, read audit log, per-collection subkeys (true cryptographic scope separation), HTTP management plane

Known limitations (by design in phase 1): shared org master key — reads are not cryptographically scoped per collection (hook scopes writes; client filters manifest); no read audit (git records writes only); delete-org is a local tombstone only (hook rejects protected-file deletion on push).

Extension restructure — Plan C Phases 3, 4, 6 (merged 2026-05-31 → 06-01, v0.7.0)

Spec: docs/superpowers/specs/2026-05-04-extension-restructure-design.md Plan: docs/superpowers/plans/2026-05-30-extension-restructure.md

Three parallel worktree streams under PM coordination (relay-bus), completing the restructure begun with Phases 1/2/5:

  • Phase 3 — setup wizard SW migration + step registry (Dev-A, merge 9df2fee). create_vault / attach_vault SW handlers own the full vault-creation/attach flow (embed/unlock, encrypt+push, register_device+addDevice, persist config+image, session.setCurrent; failure path locks+frees the handle). setup.ts collapses 1230→58 LOC (UI-only shell, no relicario-wasm import); step registry + state + clearWizardState + finishSetup extracted to new setup/setup-steps.ts. clearWizardState bound to beforeunload + goto('mode'). Copy-vault-JSON escape hatch preserved.
  • Phase 4 — vault.ts split + vault_locked lift (Dev-B, merge 3b8368d). vault.ts 1037→194 LOC. Five named modules (vault-shell, vault-sidebar, vault-list, vault-drawer, vault-form-wrapper) plus two support modules (vault-context — the VaultController contract; vault-router — hash routing + pane dispatch, to hold vault.ts ≤250). vault_locked RPC intercept lifted into shared/state.ts's sendMessage wrapper. 80ms debounced sidebar search (SEARCH_DEBOUNCE_MS); ensureDrawerClosedForRoute; #vault-status-slot footer staged for Phase 6.
  • Phase 6 — get_vault_status + sidebar status indicator (Dev-C, merge 397cc78). get_vault_status SW handler returns cached {ahead, behind, lastSyncAt, pendingItems} with no network call; vault-status.ts renders the sidebar-footer indicator (renderStatusIndicator into #vault-status-slot, refreshed on mount + manual button, no timer polling). Closes the last relicario status CLI/extension parity gap. Also nulls state.gitHost on the explicit lock handler (symmetric with session-expiry) so the indicator can't show a stale lastSyncAt.

Final merged-tree validation: 423/423 vitest (62 files), build:all clean (only the pre-existing 4MB WASM size warning). Task 7.1 done-criteria sweep: all green.

Doc-structure redesign (2026-05-30, complete)

Spec: docs/superpowers/specs/2026-05-30-doc-structure-redesign-design.md Plan: docs/superpowers/plans/2026-05-30-doc-structure-redesign.md (all 37 sub-step boxes ticked)

  • Task 1: Renamed ARCHITECTURE.mdDESIGN.md, docs/ARCHITECTURE.mddocs/CRYPTO.md, FORMATS.mddocs/FORMATS.md (36a59cd)
  • Task 2: Added scope headers + "Next:" footers to all tour docs (5e7023f)
  • Task 3: Fixed incoming links to renamed paths (01377e7)
  • Task 4: Updated CLAUDE.md living-docs table + added three discipline rules (bae3f7c)
  • Task 5: Final verification gate — all 6 steps pass cleanly (Step 3 grep had three false positives — correct new-path sibling links inside docs/, not stale references)

Post-audit cleanup (2026-05-30)

  • STATUS.md + ROADMAP.md synced with three weeks of stealth-shipped work (72a59c6, 0bde093)
  • CLAUDE.md gains rule #4 (plan-state hygiene) + doc-structure plan checkboxes ticked retroactively (cccb7d7)
  • Vault lock-screen logo: <img class="brand-logo"> added to renderLockScreen for parity with popup unlock view (39ae629)
  • Extension test-debt cleared: 17 stale tests (settings + devices + router) updated to match the post-Stream-B + post-revamp components — 371/371 extension + 281 Rust tests green (797709b, c9802ef, 361f3b4)
  • v0.6.0 cut: version bumps + CHANGELOG entry covering the full v0.5.x train

In progress (uncommitted on main)

  • .claude/settings.json — harness config tweaks (kept aside intentionally)
  • Two superseded doc-plan/spec files showing modifications — 2026-04-22-relicario-extension-1c-beta1.md and 2026-04-11-relicario-design.md (kept aside intentionally)

Up next

Per the 2026-05-30 post-v0.6.0 audit of the three 2026-05-04 architecture-review specs:

  • CLI restructure (2026-05-04-cli-restructure-design.md) — already shipped as Plan B Cycles 1+2 (b9bd152, 3dd1e1b, 3759f6a, e69b347); the last gap (read-side refresh_groups_cache callers in list/get) closed in d717f0d. Done-criteria all met.
  • Security polish (2026-05-04-security-polish-design.md) — already shipped as Stream A Cycle 1 (89090a8) plus follow-ups (0c9387f start.sh fourth window, 229e483 recovery_qr.rs docs). All four phases done.
  • Extension restructure (2026-05-04-extension-restructure-design.md, plan docs/superpowers/plans/2026-05-30-extension-restructure.md) — COMPLETE (all six phases merged; see the dated landing section above). Phases 1/2/5 merged 2026-05-30; Phases 3/4/6 merged 2026-05-31 → 06-01. Final tree: 423/423 vitest, build:all clean. v0.7.0 versions bumped; tag pending.

Enterprise org vault COMPLETE (backend) — all 19 CLI subcommands + core + server hook merged 7392795 2026-06-20. Deferred follow-ups tracked in the landing section above.

Pending org-vault follow-ups (in rough priority order):

  • org add/edit parity for Card, SshKey, Document, Totp
  • Extension org switch + read parity (Dev-D)
  • Extension org write operations
  • Phase 4: command palette — ⌘K global search + action dispatch across the vault tab (no spec yet)

Long-term: relay server, mobile. See ROADMAP.md for the longer arc and CHANGELOG.md for tagged-release history (current head: v0.6.0; the v0.7.0 entry covers extension-restructure completion).