Skip to content

chore(install-remote): port logrotate, hook union-merge, Cellar layout from install#596

Merged
bakeb7j0 merged 1 commit into
kahuna/581-wave-pattern-hardening-campaign-afrom
chore/install-remote-hardening
May 5, 2026
Merged

chore(install-remote): port logrotate, hook union-merge, Cellar layout from install#596
bakeb7j0 merged 1 commit into
kahuna/581-wave-pattern-hardening-campaign-afrom
chore/install-remote-hardening

Conversation

@bakeb7j0
Copy link
Copy Markdown
Contributor

@bakeb7j0 bakeb7j0 commented May 5, 2026

Resolves the kahuna→main trust-gate finding on Plan #581 PR #595: scripts/install-remote.sh (the documented curl | bash flow) was missing the three install-hardening features merged this campaign into install. This commit ports them so curl-bash users get the same on-disk shape.

Three features ported

Reviewer pass — initial findings, addressed in rework

Initial review surfaced 2 findings, both fixed via amended commit:

  1. IMPORTANT (conf 85): added a post-farming sanity check that warns if expected prebuilt binaries are missing from the symlink farm (covers the case where a release tarball ships without dist/).
  2. MINOR (conf 90): removed dead --check settings-drift stub (was just : with misleading comments). Replaced with explicit note pointing users to ./install --check from a checkout for full settings drift detection.

Re-review post-rework: both findings addressed, no new issues introduced.

Verification

  • ./scripts/ci/validate.sh: 126 passed, 0 failed
  • shellcheck scripts/install-remote.sh: clean
  • pytest tests/test_install_remote_hardening.py -v: 10/10 passed
  • macOS portability preserved: the one remaining -printf from install:690 was replaced in this port (in install-remote.sh) with a portable while+-nt loop and stat -c '%y' || stat -f '%Sm' fallback — actually better than reference for macOS.

Trust-gate context

Per WAVE_AXIOMS Axiom 5 (continuing cheaper than stopping), the gate-blocked PR #595 was kept open while this commit lands on kahuna. Once merged into kahuna, PR #595 will auto-update with this commit included; trust-gate code-reviewer signal should re-evaluate CLEAN.

🤖 Generated with Claude Code

…t from install

Resolves the kahuna→main trust-gate finding on Plan #581 PR #595:
scripts/install-remote.sh (the curl | bash flow) was missing the three
install-hardening features merged this campaign into install. This commit
ports them so curl-bash users get the same on-disk shape.

- #540 logrotate: --with-logrotate / --without-logrotate flags + Linux-gated
  install_logrotate_config + --check drift detection.
- #556 hook union-merge: merge_settings() now union-merges matcher arrays
  for shared event keys, with --check reporting "missing matcher" drift.
- #560 Cellar + symlink-farm: deploys to $CELLAR_DIR=~/.claude/scripts and
  farms top-level symlinks to ~/.local/bin/. Skill helpers namespaced
  under $CELLAR_DIR/skills/<skill_name>/<helper>. Portable
  find ... | sed 's|^\./||' pattern (no -printf — BSD/macOS).

Closes #581 install-remote.sh parity.
@bakeb7j0 bakeb7j0 merged commit abadc7c into kahuna/581-wave-pattern-hardening-campaign-a May 5, 2026
@bakeb7j0 bakeb7j0 deleted the chore/install-remote-hardening branch May 5, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant