Epic: Phase 1 — Local Mode Encrypted Store + Password Unlock + TTL + Approvals#82
Merged
NoahCardoza merged 7 commits intomainfrom Feb 25, 2026
Merged
Conversation
Add targeted tests for uncovered lines in store.ts, encrypted-store.ts, unlock.ts, service.ts, grant.ts, config.ts, remote-service.ts, and secret-store.ts. Replace `npm test` with `npm run test:coverage` in lefthook pre-commit to enforce the 95% threshold. Add .prettierignore to exclude .claude/ agent files from formatting checks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fac9274 to
1d49aa6
Compare
Owner
Author
iloom Session SummaryKey Themes:
Session Details (click to expand)Key Insights
Decisions Made
Challenges Resolved
Lessons Learned
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #48
Epic: Phase 1 — Local Mode Encrypted Store + Password Unlock + TTL + Approvals
Overview
Implement the foundational encrypted storage layer and local-mode approval workflow as specified in
docs/encrypted-storage-spec.md(Sections 2–3, 5).This phase transforms 2keychains from plaintext secret storage to encryption-at-rest with password-based unlock sessions, TTL-based auto-locking, and notification-based grant approvals in standalone (local) mode.
Goals
LocalServicestub to real store + workflow + grantsKey Design Decisions
node:crypto— AES-256-GCM (AEAD) +scryptKDF. Zero new dependencies for Phase 1."2kc:v1:" + uuid + ":" + refbinds ciphertext to secret identity~/.2kc/secrets.enc.jsonwith plaintext metadata + ciphertext values + per-entry nonces + saltunlock.ttlMs: 900000)~/.2kc/grants.json(survives restarts)Migration: One-time2kc store migratecommand converts plaintext → encryptedOut of Scope
Spec Reference
docs/encrypted-storage-spec.md— Sections 2 (Common Foundations), 3 (Variant A: Local Mode), 5 (Notifications)This PR was created automatically by iloom.