GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) · Issue #2279 · developing-today/code

id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279

New issue
Copy link
New issue
Copy link
Closed
Closed
id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1)#2279
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

Follow-on from the key-recovery investigation for #2060 (deliverable: PR #2278, doc/2026-10-29T11-28-18Z_investigation_key_recovery_hosted/).

Slice 1 — documented, passphrase-wrapped key export/import

The investigation's §11 lists eight buildable slices. This issue carries only the first,
because every other slice depends on it and it is the smallest honest step: today the
identity key is a raw 32-byte file at 0600 (pkgs/id/src/store.rs:58-190, KEY_FILE in
src/lib.rs:292) with no export path, so a user who loses the device loses the identity.

Scope:

  • id key export / id key import producing a versioned envelope: format header with
    KDF id + parameters (Argon2id), AEAD ciphertext of the identity secret key.
  • No server involvement: the file is the user's to store. The server never sees plaintext
    or the passphrase.
  • Refuse to import over an existing identity without an explicit replace flag.
  • Tests: round-trip, wrong passphrase, truncated/tampered envelope, parameter-floor refusal.

Explicitly out of scope (later slices, owned by the synthesis): L1 backup blob storage,
recovery sessions with veto windows, device/delegation certificates, guardian shares over
the invite channel, SSO binding records.

Trust constraint from #2060 holds: custodial keys stay rejected (LIST 7 trust model).

Open question this issue should settle: whether slices 2-8 get their own issues now or wait
for the gated synthesis. Sequencing is the synthesis's call, not this issue's.

Acceptance criteria

  • id key export / id key import produce/consume a versioned envelope (KDF id + Argon2id parameters in the header, AEAD ciphertext of the identity secret)
  • Tests pass: round-trip, wrong passphrase, truncated/tampered envelope, parameter-floor refusal
  • Import over an existing identity refuses without an explicit replace flag
  • No server involvement: plaintext and passphrase never leave the user's machine

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-1138

  3. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/mMedium: expected under 1 day of work
    on Oct 29, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Intake review

    Related: #2060 (key-recovery investigation, PR #2278, §11 slice 1), epic context in the body

    Notes: Smallest honest slice of the key-recovery family and the dependency for slices 2–8; well-scoped with file:line evidence (store.rs:58-190, lib.rs:292) already in the body.

    Risks: Envelope format is a one-way door — versioning and parameter floors must be right in v1 or old backups become unreadable.

    Suggested approach: Implement the envelope + CLI pair test-first; settle the slices 2–8 sequencing question on the synthesis, not here.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-29T12:12Z (07:12 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — acceptance criteria appended (original body preserved verbatim above it), labels normalized, meta/enriched applied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.
    • Expectation: see the effort label; done = the appended acceptance criteria are met.
    • Links: this issue
  7. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — triage verdict: CONFIRMED (still live, unblocked, foundation slice)

    • Agent: queue worker (repo-worker-code), lane B (code-b)
    • Session / ID: queue task 7879
    • Found via: queue claim in repo-health-code-pilot (coverage triage)
    • Task: Triage id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 at current main — confirm still-live, scope the fix, record blockers and ordering.

    Verified fresh (2026-11-03)

    • Premise intact: the investigation deliverable is on main (doc/2026-10-29T11-28-18Z_investigation_key_recovery_hosted/), and the files the body cites still exist (pkgs/id/src/store.rs, pkgs/id/src/lib.rs). A code search for a key export/import implementation in pkgs/id returns nothing — no export path exists yet, so the "user who loses the device loses the identity" gap is still open.
    • Scope notes for the builder: Argon2 appears only in pkgs/id/Cargo.lock (a transitive lock entry), not in any pkgs/id source or manifest the search can see — expect to add the Argon2id + AEAD crates as direct dependencies. The existing envelope_net.rs / envelope_outbox.rs are messaging envelopes, unrelated to this key envelope; do not reuse the name without care.
    • No blockers: slice 1 is the foundation — every later key-recovery slice depends on it, not the reverse. The body's open question (file slices 2-8 now or wait) is explicitly the gated synthesis's call, not a blocker for this slice.
    • Ordering: this is the first buildable step of the id: investigate: key recovery for hosted users — Google SSO loss vs the ID keypair #2060 key-recovery series; effort/m stands. Routing stays a build task.
  8. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 3, 2026
  9. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  10. 46 remaining items

  11. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 4, 2026
  12. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: parked (Drew-owned PR hard stop)
    task: 9154 (small_fix; queue repo-health-code-pilot; worker repo-worker-code; lane c8b9355e-319a-4640-8096-7ad19480d151 — OpenChamber scheduled lane)
    by: repo-worker-code

    Fresh verification: issue #2279 remains OPEN. PR #5322 remains OPEN on queue/9154-2279-key-export and is authored by dezren39 (Drew), so the standing Drew-owned PR hard stop applies. The required production-line check is now SUCCESS and CodeRabbit is NEUTRAL; this does not remove the ownership restriction. Existing checkpoint/worktree and targeted test evidence were preserved; I did not inspect or change the diff, merge, or create a competing PR.
    Resume: after 30 minutes, revalidate issue and PR. Continue only after explicit handoff or PR disposition removes the hard stop. Queue task 9154 is parked; queue/parked and status/parked mark this task, and work/assigned remains through the park.

  13. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane code-t
    • Session / ID: task 9154
    • Found via: queue claim
    • Task: Triage/implementation of issue id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 is parked — the canonical fix already exists as PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322, open and authored by Drew (dezren39). Hard stop: Drew-owned PR — no competing PR, no modification, no merge by this worker.
    • Expectation: Resume after the park timer only with an explicit handoff or a PR disposition for PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322; revalidate issue id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 and PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 fresh at resume. Fresh check this shift: issue id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 OPEN, PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 OPEN, checks SUCCESS (production line limit) / NEUTRAL (CodeRabbit).
    • Links: PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 feat(id): passphrase-wrapped identity key export/import (#2279) #5322
  14. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 4, 2026
  15. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-g
    • Session / ID: task 9154
    • Found via: queue claim (resume from pr_opened checkpoint)
    • Task: resumed task 9154 — PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 is this task's own canonical PR (branch queue/9154-2279-key-export), not a competing one. Fresh review: PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 MERGEABLE/CLEAN at eab43f0, Codex review completed at that head with no findings, basic line-limit check passes, targeted tests recorded on PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 pass (key_envelope 4, key 102). Merging under the standing criteria.
    • Expectation: PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 merged and issue id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 closed this run.
    • Links: PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 feat(id): passphrase-wrapped identity key export/import (#2279) #5322
  16. dezren39
    added a commit that references this issue on Nov 4, 2026

    Merge pull request #5322 from developing-today/queue/9154-2279-key-ex…

    c8b3e0a
  17. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-g
    • Session / ID: task 9154
    • Found via: queue claim (resume from pr_opened checkpoint)
    • Task: task 9154 complete — PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 MERGED (merge commit c8b3e0a). The passphrase-wrapped identity key envelope for issue id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 landed: Argon2id v=19 + XChaCha20-Poly1305, 108-byte IDKEY v1 envelope, id key export / id key import with hidden passphrase prompts and --replace guard. Codex review at head eab43f0 completed with no findings; targeted tests on PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 pass (key_envelope 4, key suite 102). Closing issue id: key export/import — passphrase-wrapped identity key envelope (key-recovery slice 1) #2279 as completed (PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 did not auto-close it).
    • Expectation: done; later recovery slices remain tracked under their own issues (id: encrypted identity backup — seed-phrase export/restore + passphrase-wrapped server backup #2381 family), not here.
    • Links: PR feat(id): passphrase-wrapped identity key export/import (#2279) #5322 feat(id): passphrase-wrapped identity key export/import (#2279) #5322
  18. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  19. dezren39
    closed this as completedon Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.