feat(live): first-open assistant naming, Max2 reuse, explicit birth preview, and helper follow-ups (PR B) #97

Closed
clawdie wants to merge 0 commits from clawdie/feat/first-open-naming-and-max2-reuse into main AGit
Owner

PR B of Eva/Helix naming (Option 4): first-open assistant naming in clawdie-firstboot-confirm (Helix -> helix-usb), saved Eva/Helix reuse in Max2 Q1, explicit USB/disk/ID preview in clawdie-birth-certificate, plus Codex PR #95 follow-ups (pinned absolute python3 -I in clawdie-name-derive, fcntl.flock serialization and localhost seeding in clawdie-set-hostname).

PR B of Eva/Helix naming (Option 4): first-open assistant naming in clawdie-firstboot-confirm (Helix -> helix-usb), saved Eva/Helix reuse in Max2 Q1, explicit USB/disk/ID preview in clawdie-birth-certificate, plus Codex PR #95 follow-ups (pinned absolute python3 -I in clawdie-name-derive, fcntl.flock serialization and localhost seeding in clawdie-set-hostname).
feat(live): first-open assistant naming, Max2 name reuse, explicit birth preview, and PR #95 follow-ups (PR B)
All checks were successful
format-check / gates (pull_request) Successful in 2m49s
86c65575f8
Implements PR B of the Eva/Helix ask-once, derive-defaults, store-separately
naming model (Option 4) plus all four Codex PR #95 follow-ups:

1. First-open assistant naming (clawdie-firstboot-confirm):
   - Prompts once on first open: 'What do you call your assistant? [Clawdie]: '
     (Enter keeps Clawdie + usb.clawdie.home.arpa; invalid symbol-only input
     re-prompts; EOF exits cleanly to shell without mutating state).
   - Saves ASSISTANT_NAME atomically (0600, symlink-safe) in
     ~/.config/clawdie/operator-profile.env and derives <slug>-usb via
     clawdie-name-derive + doas /usr/local/sbin/clawdie-set-hostname without
     touching /etc/machine-id.
2. Zero duplicate questions in Max2 onboarding (clawdie-max2-onboard):
   - Q1 reuses saved CLAWDIE_OPERATOR_NAME and ASSISTANT_NAME from
     operator-profile.env without re-prompting.
3. Explicit target/hostname/ID Birth Certificate preview (clawdie-birth-certificate):
   - Hoists collect_usb_derivation() ahead of interactive agreement and prints
     target kind (USB/disk/node), Hostname at birth, Installation ID,
     Derived from USB (when present), and 'Registering <target> <node> to
     <operator> (assistant: <assistant>).' before 'I agree'.
4. PR #95 follow-ups:
   - clawdie-name-derive: pins absolute system python3 (/usr/local/bin/python3
     or /usr/bin/python3) with -I and uses an explicit RuntimeError check
     (survives python3 -O) for the disjoint USB/disk pair invariant.
   - clawdie-set-hostname: serializes concurrent callers via fcntl.flock on
     .clawdie-set-hostname.lock, seeds localhost loopback entries when creating
     a missing /etc/hosts, and clarifies auto alias retention in usage().
fix(live): skip USB rename and assistant-named marker if profile save fails
All checks were successful
format-check / gates (pull_request) Successful in 2m52s
62c07520e5
Simple 2-line guard in clawdie-firstboot-confirm: when saving ASSISTANT_NAME
to operator-profile.env fails, report the error truthfully and return without
renaming the USB hostname or writing the assistant-named marker so Max asks
again next time.
clawdie closed this pull request 2026-11-22 01:24:38 +01:00
All checks were successful
format-check / gates (pull_request) Successful in 2m52s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
clawdie/clawdie-iso!97
No description provided.