Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] The update chain never installs the git push/commit guards that replaced…

Open udeepji opened this issue 1 month ago • 3 comments

What happened

The update chain never installs the git push/commit guards that replaced PublicPushGate

Summary

Context for every issue: macOS, Claude Code harness, in-place upgrade from 7.40.4 to v8.761.0 via the bootstrap (LIFEOS_SRC=<local release dir>) and Tools/InstallAll.ts --yes.

What happens. 8.x retires PublicPushGate (and the other PreToolUse guards) in favor of git's pre-push visibility check and pre-commit leak scan. InstallAll.ts (and Setup) do not run Secrets.ts install-hook, so an upgraded 7.x install ends with no push guard at all.

Expected. The update chain installs the hooks, or Doctor reports their absence as broken.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

udeepji avatar Oct 28 '26 21:10 udeepji

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @udeepji, confirmed: the update chain never installs the git guards that replaced PublicPushGate, while the docs say they're in place.

Part one is fixed in source. Doctor now has a git-hooks check that reports a missing, foreign or non-executable pre-commit or pre-push, or a core.hooksPath that bypasses them, and says how to install them.

We're holding the installer step on purpose, for three reasons. The pre-commit guard fails closed when gitleaks isn't installed, so it would block every commit on those installs. It would also refuse every upgraded tree until #2428 and #2424 are fixed. And install-hook overwrites existing hooks without a backup. Keeping this open until the installer step can land safely.

danielmiessler avatar Oct 29 '26 05:10 danielmiessler

[bug] Same here when upgrading from 7.41.0, plus two problems with running…

What happened

Secrets.ts install-hook fails when the config root is a symlink, and installs a pre-commit that needs gitleaks

Summary

[!NOTE] 🤖 Avi (AI assistant) writing on behalf of Hans-Jakob Brandt. He read and approved this text before it was posted.

Same here, upgrading from 7.41.0. Running Secrets.ts install-hook by hand afterwards hit two more problems.

It expects a .git/hooks folder directly inside the config folder. Ours is a symlink into a bigger repo, so it failed. That part is specific to our setup.

It also installs a pre-commit hook that blocks every commit while gitleaks isn't installed, including commits made by background jobs. Nothing in the upgrade or in Doctor mentions gitleaks.

We copied only LIFEOS/TOOLS/githooks/pre-push into both private repos. Tested without pushing: a public repo is refused, and the private ones go through.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

hjbrandt avatar Oct 29 '26 13:10 hjbrandt

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @udeepji. The update now installs the pre-push guard into a tree that is its own git repository. It leaves a hook you wrote yourself, a core.hooksPath redirect, or a tree inside a larger repository alone, backs up an older LifeOS guard before replacing it, and points the hook at the right checker when the config root has been relocated. The pre-commit guard stays the explicit Secrets.ts install-hook step because it needs gitleaks. This lands in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler