feat(onboarding): 9-question FreeBSD bsddialog flow, Herdr VPN tab, and Birth Certificate dialogs #110

Merged
clawdie merged 3 commits from clawdie/feat/bsd-onboarding-menus into main 2026-11-23 20:22:28 +01:00 AGit
Owner
  • Upgrade Max2 onboarding catalog (questions.json) to the 9-question plain-language flow:
    Q0_workstation_names -> Q6_mesh_enrollment -> Q2_node_role -> Q1_operator_identity ->
    Q3_security_posture -> Q4_storage_topology -> Q5_temporal_locale_profile ->
    Q7_vault_hydration -> Q9_extra_tools, preserving canonical IDs and option keys.
  • Add closed action scripts 00-workstation-names.sh (atomic 0600 profile persistence +
    derived USB hostname update) and 09-extra-tools.sh (finish_minimal, fail-closed
    memory_stack, and honest preference_saved when Colibri is not bundled).
  • Add reusable /usr/local/bin/clawdie-vpn-setup helper (2A menu, 2B Join form with blank
    default Server + https:// validation + preview + 0600 scrubbed auth-key temp file +
    BackendState==Running verification + 0600 receipt, 2C Start new honest explanation).
  • Add reusable _launch_in_herdr_tab helper in clawdie-max2-onboard (creates focused VPN
    tab in Herdr, waits for completion or early tab close, refocuses onboarding tab, and
    never treats early tab close as enrollment success).
  • Unify FreeBSD bsddialog UX across clawdie-firstboot-confirm (HW yesno+summary msgbox,
    two-name form, numeric workflow menu), clawdie-max2-onboard (dynamic STAGE_TOTAL=9,
    short numeric tags, embedded Jev badge, consequential-only --default-no, Birth
    Certificate terms yesno + issued summary msgbox, stage-gate hold yesno), and dynamic
    stage-badge decoding in clawdie-evidence.
  • Wire clawdie-vpn-setup and new actions into build.sh, stage-birth-jev-matrix.sh, and
    validate-live-image.sh; add tests/bsd-onboarding-menus-test.sh to ci-checks.sh.
  • Verified live on FreeBSD 15.1-RELEASE-p7 (valhala) bsddialog 1.0.5 across 44x20,
    54x24, 58x24, and 88x30 PTYs (76/76 passed, 0 EXIT_ERROR).
- Upgrade Max2 onboarding catalog (questions.json) to the 9-question plain-language flow: Q0_workstation_names -> Q6_mesh_enrollment -> Q2_node_role -> Q1_operator_identity -> Q3_security_posture -> Q4_storage_topology -> Q5_temporal_locale_profile -> Q7_vault_hydration -> Q9_extra_tools, preserving canonical IDs and option keys. - Add closed action scripts 00-workstation-names.sh (atomic 0600 profile persistence + derived USB hostname update) and 09-extra-tools.sh (finish_minimal, fail-closed memory_stack, and honest preference_saved when Colibri is not bundled). - Add reusable /usr/local/bin/clawdie-vpn-setup helper (2A menu, 2B Join form with blank default Server + https:// validation + preview + 0600 scrubbed auth-key temp file + BackendState==Running verification + 0600 receipt, 2C Start new honest explanation). - Add reusable _launch_in_herdr_tab helper in clawdie-max2-onboard (creates focused VPN tab in Herdr, waits for completion or early tab close, refocuses onboarding tab, and never treats early tab close as enrollment success). - Unify FreeBSD bsddialog UX across clawdie-firstboot-confirm (HW yesno+summary msgbox, two-name form, numeric workflow menu), clawdie-max2-onboard (dynamic STAGE_TOTAL=9, short numeric tags, embedded Jev badge, consequential-only --default-no, Birth Certificate terms yesno + issued summary msgbox, stage-gate hold yesno), and dynamic stage-badge decoding in clawdie-evidence. - Wire clawdie-vpn-setup and new actions into build.sh, stage-birth-jev-matrix.sh, and validate-live-image.sh; add tests/bsd-onboarding-menus-test.sh to ci-checks.sh. - Verified live on FreeBSD 15.1-RELEASE-p7 (valhala) bsddialog 1.0.5 across 44x20, 54x24, 58x24, and 88x30 PTYs (76/76 passed, 0 EXIT_ERROR).
feat(onboarding): 9-question FreeBSD bsddialog flow, Herdr VPN tab, and Birth Certificate dialogs
All checks were successful
format-check / gates (pull_request) Successful in 3m41s
15574602f5
- Upgrade Max2 onboarding catalog (questions.json) to the 9-question plain-language flow:
  Q0_workstation_names -> Q6_mesh_enrollment -> Q2_node_role -> Q1_operator_identity ->
  Q3_security_posture -> Q4_storage_topology -> Q5_temporal_locale_profile ->
  Q7_vault_hydration -> Q9_extra_tools, preserving canonical IDs and option keys.
- Add closed action scripts 00-workstation-names.sh (atomic 0600 profile persistence +
  derived USB hostname update) and 09-extra-tools.sh (finish_minimal, fail-closed
  memory_stack, and honest preference_saved when Colibri is not bundled).
- Add reusable /usr/local/bin/clawdie-vpn-setup helper (2A menu, 2B Join form with blank
  default Server + https:// validation + preview + 0600 scrubbed auth-key temp file +
  BackendState==Running verification + 0600 receipt, 2C Start new honest explanation).
- Add reusable _launch_in_herdr_tab helper in clawdie-max2-onboard (creates focused VPN
  tab in Herdr, waits for completion or early tab close, refocuses onboarding tab, and
  never treats early tab close as enrollment success).
- Unify FreeBSD bsddialog UX across clawdie-firstboot-confirm (HW yesno+summary msgbox,
  two-name form, numeric workflow menu), clawdie-max2-onboard (dynamic STAGE_TOTAL=9,
  short numeric tags, embedded Jev badge, consequential-only --default-no, Birth
  Certificate terms yesno + issued summary msgbox, stage-gate hold yesno), and dynamic
  stage-badge decoding in clawdie-evidence.
- Wire clawdie-vpn-setup and new actions into build.sh, stage-birth-jev-matrix.sh, and
  validate-live-image.sh; add tests/bsd-onboarding-menus-test.sh to ci-checks.sh.
- Verified live on FreeBSD 15.1-RELEASE-p7 (valhala) bsddialog 1.0.5 across 44x20,
  54x24, 58x24, and 88x30 PTYs (76/76 passed, 0 EXIT_ERROR).
Addresses all 6 review items + Pi 44x20 rendered-screen findings on PR #110:
- Ask for workstation names once on fresh guided setup: clawdie-firstboot-confirm
  delegates profile writes + hostname propagation to shared 00-workstation-names.sh
  (--no-receipt), preserving unrelated keys and saved CLAWDIE_OPERATOR_NAME, and
  propagating renames through clawdie-set-hostname; clawdie-max2-onboard Q0 reuses
  already-saved names cleanly without a second form.
- Exact two-name labels ('AI assistant name' / 'Operator name') across both scripts;
  clawdie-vpn-setup pre-populates https://mesh.clawdie.si with honest bsddialog 1.0.5
  edit hint (Tab/Enter keeps default; Del or End+Bksp replaces).
- Hide invitation Key across the entire entry path: bsddialog --insecure --mixedform
  (flag=1) redirecting stderr to a scrubbed 0600 file, stdin-only _validate_auth_key,
  and xtrace-suppressed stty -echo unbuffered plain-mode reader (zero key in screen
  capture, ps -ww, or sh -x trace).
- Strict VPN verification (BackendState==Running, Self.HostName match,
  Self.TailscaleIPs[0] in 100.64.0.0/10), 0600 redacted status JSON stripping all
  *Key*/*Secret*/*Token*/AuthURL/CurrentTailnet fields, pre-join already-connected /
  server-switch refusal, and second-run receipt idempotency.
- Shortened all titles (<=33 chars) and option labels (<=30 chars) for 44x20 panes,
  added <44x20 plain-mode floor guard, and added tests/bsddialog-layout-test.sh
  (static budgets + real FreeBSD bsddialog 1.0.5 rendered-screen capture matrix
  passing 72/72 across 44x20, 54x24, 58x24, 88x30 on valhala).

Test status:
- debby ./scripts/ci-checks.sh: all checks passed (bsd-onboarding-menus-test: 37/37,
  max2-onboard-state-machine-test: 76/76, bsddialog-layout-test static: 1/1).
- valhala FreeBSD 15.1-RELEASE-p7 bsddialog 1.0.5 rendered-screen matrix: 72/72 PASS.
- Image build: PENDING review.
clawdie force-pushed clawdie/feat/bsd-onboarding-menus from e5fa050768
Some checks failed
format-check / gates (pull_request) Has been cancelled
to 9c0123717f
All checks were successful
format-check / gates (pull_request) Successful in 3m59s
2026-11-23 17:36:43 +01:00
Compare
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!110
No description provided.