Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] `LinkUser` leaves a full USER backup inside the system tree

Open udeepji opened this issue 1 month ago • 1 comments

What happened

LinkUser leaves a full USER backup inside the system tree

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. Migrating LIFEOS/USER to <home>/<path> leaves LIFEOS/USER.pre-link-backup-<ts>/ (the principal's entire personal tree) inside LIFEOS/, which the config-root .gitignore does not ignore. A routine git add LIFEOS would stage it.

Expected. The backup goes outside the config root, or the .gitignore rules cover LIFEOS/USER.pre-link-backup-*.

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, this one matters: establishLink writes LIFEOS/USER.pre-link-backup-<stamp> (and a MEMORY twin) inside the config root, and the ignore rules only named LIFEOS/USER exactly, so a full copy of someone's personal tree sat unignored in the repo.

Fixed in source: the installer's gitignore rules now include LIFEOS/*.pre-link-backup-*/, and existing installs pick it up on the next LinkUser --apply. We kept the backup where it is, because the importer finds it there. A test checks both backup names against a real git init repo, with a control that fails without the rule. This lands in the next release, and you're added to the README credits.

danielmiessler avatar Oct 29 '26 05:10 danielmiessler