clavitor/clavis/clavis-vault/lib
James 230acd394e feat: vault v2 rewrite — CVT tokens, scoped access, agents-as-entries, 14 importers
Complete vault rewrite with correct foundation:

- CVT encrypted envelope tokens (type 0x00 wire, type 0x01 client credential)
- Agents and scopes stored as L1-encrypted entries (no separate tables)
- Scope-based access control with AgentCanAccess() set intersection
- Owner-only admin enforcement (agents cannot manage agents/scopes)
- 14 password manager importers (Proton, Bitwarden, 1Password, LastPass,
  Dashlane, KeePass, KeePassXC, NordPass, Keeper, RoboForm, Enpass,
  Safari/iCloud, Chrome, Firefox)
- FIELD_SPEC single source of truth for field kind and tier
- L2/L3 client-side encryption on import (PRF required)
- Domain classification service on clavitor.ai/classify
- Scope auto-assignment during import (13 categories)
- Light theme default (Figtree font, matching clavitor.ai branding)
- Unified page shell across all screens (topbar on every page)
- Batch import with progress indicator
- ZIP extraction for Proton Pass exports
- Proton dedup by title+user+url
- 55 tests passing (26 API + 29 lib)
- Key leak detection tests (L1/L2/L3 never in responses)
- CLI updated for CVT token format
- Old code archived in _old/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 13:36:04 -04:00
..
backup.go chore: auto-commit uncommitted changes 2026-03-25 06:04:04 -04:00
config.go chore: auto-commit uncommitted changes 2026-03-28 06:01:23 -04:00
crypto.go chore: auto-commit uncommitted changes 2026-03-25 06:04:04 -04:00
crypto_test.go chore: auto-commit uncommitted changes 2026-03-26 06:03:15 -04:00
cvt.go feat: vault v2 rewrite — CVT tokens, scoped access, agents-as-entries, 14 importers 2026-03-31 13:36:04 -04:00
cvt_test.go feat: vault v2 rewrite — CVT tokens, scoped access, agents-as-entries, 14 importers 2026-03-31 13:36:04 -04:00
dbcore.go feat: vault v2 rewrite — CVT tokens, scoped access, agents-as-entries, 14 importers 2026-03-31 13:36:04 -04:00
dbcore_test.go chore: auto-commit uncommitted changes 2026-03-26 06:03:15 -04:00
id.go chore: auto-commit uncommitted changes 2026-03-25 06:04:04 -04:00
id_test.go chore: auto-commit uncommitted changes 2026-03-26 06:03:15 -04:00
importers.go chore: auto-commit uncommitted changes 2026-03-25 06:04:04 -04:00
importers_test.go chore: auto-commit uncommitted changes 2026-03-26 06:03:15 -04:00
l2labels.go chore: auto-commit uncommitted changes 2026-03-25 06:04:04 -04:00
telemetry.go chore: auto-commit uncommitted changes 2026-03-26 00:01:24 -04:00
telemetry_test.go chore: auto-commit uncommitted changes 2026-03-26 06:03:15 -04:00
tls.go chore: auto-commit uncommitted changes 2026-03-29 06:01:26 -04:00
tokenmap.go chore: auto-commit uncommitted changes 2026-03-25 06:04:04 -04:00
types.go feat: vault v2 rewrite — CVT tokens, scoped access, agents-as-entries, 14 importers 2026-03-31 13:36:04 -04:00