KeiSeiKit-1.0/install
KeiSei84 abae256c1d feat(install): opt-in hook packs + stack profiles (public posture)
A fresh install now activates only the safety pack; discipline hooks and
agents are opt-in via an onboarding step (step 6) or `kei configure`.
"People don't need Rust-only" — they pick their own stack.

- _primitives/hook-packs.toml: SSoT mapping pack -> hooks, stack -> packs +
  agent groups. safety always on; evidence/observability/epistemic/
  orchestration/git-guard/stack-rust opt-in. rust-first/no-python only under
  the systems stack; git-guard (no-github-push) opt-in only, pulled by no stack.
- lib-profile: extract generic _toml_array (reused by lib-packs); profile_members
  becomes a thin wrapper (no behavior change).
- lib-packs: pack/stack/agent resolvers + selection loader.
- lib-hooks: filter_snippet_by_packs (install-time allowlist) + prune_kit_hooks
  (reconfigure removes deselected kit hooks, keeps foreign ones); activate_hooks
  rewired to prune + filter + merge. No custom settings.json fields (/doctor safe).
- lib-agents: install_manifests filters by stack agent set (empty = install all).
- onboarding: pick_stack step (reuse _onb_read_choice), persists stack_profile +
  enabled_packs to onboarding.toml; i18n STR_* added.
- bin/kei configure -> scripts/kei-configure.sh (re-pick without reinstall);
  install stamps ~/.claude/.kei-kit-dir.
- numeric-claims-guard: money regex no longer matches shell positionals ($1..$9);
  requires decimal / unit / 2+ digits / tilde. Real money + time still caught.
- gate one-liner added to 8 discipline hooks (runtime toggle via hooks-control).

Verified end-to-end (scratch HOME): fresh=safety only; evidence pack adds
numeric+citation; systems stack wires rust-first + 14 base/systems agents (no
data-science/swift); reconfigure-shrink prunes kit hooks but keeps a foreign
hook; settings schema clean; assembler golden 3/3.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 17:27:14 +08:00
..
i18n feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
launchd-templates KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
preflight fix(install,router): close 5 HIGH audit findings 2026-05-17 16:28:33 +08:00
sql fix(audit-batch-2): regressions from prev batch + 2nd-wave audit findings 2026-05-03 20:30:51 +08:00
lib-agents.sh feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
lib-args.sh fix(install): make fresh install complete + ship tamagotchi (#1) 2026-05-20 18:50:09 +00:00
lib-backup.sh fix(install): backup_file mv→cp -a, install --activate-hooks больше не падает 2026-05-18 14:33:22 +08:00
lib-bin.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-bridges.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-dev-hub-datasette.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-dev-hub-daytona.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-dev-hub-forgejo-runner.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-dev-hub-forgejo.sh fix: pre-public audit — critical install regression + 7 blockers 2026-05-24 10:48:06 +08:00
lib-dev-hub-gdrive-import.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-dev-hub-mdbook.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-dev-hub-restic.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-dev-hub-zoekt.sh fix: pre-public audit — critical install regression + 7 blockers 2026-05-24 10:48:06 +08:00
lib-frustration-bootstrap.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-hooks.sh feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
lib-i18n.sh feat(i18n): расширил язык-набор с 2 до 16 2026-05-17 16:51:44 +08:00
lib-launchd.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-log.sh style(install): KeiSei brand colors + ASCII banner in installer output 2026-05-22 16:01:33 +08:00
lib-menu.sh fix: pre-public audit — critical install regression + 7 blockers 2026-05-24 10:48:06 +08:00
lib-onboarding-registry.sh fix(onboarding): no crash on text input, Claude Code default, explanations 2026-05-22 12:42:50 +08:00
lib-onboarding-state.sh feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
lib-onboarding-ui.sh feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
lib-onboarding.sh feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
lib-packs.sh feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
lib-pathway.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-plan.sh style(install): KeiSei brand colors + ASCII banner in installer output 2026-05-22 16:01:33 +08:00
lib-preflight.sh fix(install): run onboarding + profile wizard in curl|bash (gate on stdin, not stdout) 2026-05-22 03:58:55 +08:00
lib-prereqs.sh fix(install): make fresh install complete + ship tamagotchi (#1) 2026-05-20 18:50:09 +00:00
lib-primitives.sh style(install): KeiSei brand colors + ASCII banner in installer output 2026-05-22 16:01:33 +08:00
lib-profile-outcome-only.sh fix(release+slices): v0.14.4 publish auth fallback + 4 fix-implementer slices 2026-05-04 00:16:48 +08:00
lib-profile.sh feat(install): opt-in hook packs + stack profiles (public posture) 2026-05-25 17:27:14 +08:00
lib-rust-mirror.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-rust-prebuild.sh fix(install): make fresh install complete + ship tamagotchi (#1) 2026-05-20 18:50:09 +00:00
lib-rust.sh Revert "feat(mcp-server): production-ready publish path via GitHub Packages" 2026-05-03 18:04:00 +08:00
lib-scaffold.sh feat(kei message): persistent inter-session mailbox + pull-inbox hook 2026-05-23 15:00:10 +08:00
lib-skills.sh KeiSeiKit-public — clean state 2026-05-01 12:09:03 +08:00
lib-substrate.sh chore(kit): wire kei-db-contract into installer + drop final #[path] hack 2026-05-01 17:55:52 +08:00
lib-summary.sh feat(install): first-run nudge to /onboard projects after bundle install 2026-05-22 19:05:00 +08:00
lib-wizard.sh fix(install): wire PATH in curl|bash — gate pathway on stdin, not stdout 2026-05-22 14:12:14 +08:00