feat/first-open-naming-and-max2-reuse #98

Merged
clawdie merged 2 commits from feat/first-open-naming-and-max2-reuse into main 2026-11-21 19:59:57 +01:00
Owner
No description provided.
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 deleted branch feat/first-open-naming-and-max2-reuse 2026-11-21 19:59:57 +01:00
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!98
No description provided.