Find: a house program from at-update's records, then PATH, never beside the caller (AGT-87) #3

Merged
merge-queue merged 1 commit from find-house-program into main 2026-11-30 00:25:28 -08:00
Owner

Work package: AGT-87

A caller that finds strip-owner (or tmux-strip) not running started it from its own install folder, else PATH. pull-request now installs on its own, with no strip-owner.exe beside it, and strip-owner is moving to an app of its own, so the caller's folder is the wrong place to look; and a long-running process's PATH can predate the install that put a program on it.

Removes

  • besideOrOnPath and the look in the caller's own folder: no program is taken from beside the caller any more.

Adds

  • Find(name): the program in the first app's current folder at-update has registered (%LOCALAPPDATA%\at-update\registered\<app>.json's path, apps in name order, the order at-update gives AT_HOME_PATH), then exec.LookPath; an error names both the records folder and PATH when neither has it. The records list no programs per app, so it checks each app's folder for the file: strip-owner is found in at-home-tools' folder today and in its own app's once it moves, with nothing hardcoded. A record that doesn't read is skipped.
  • StartProgram(name, args...): Find, then start it detached. Start now uses it for strip-owner.
  • Spawn(path, args...): the detached start on its own, for a caller starting itself (os.Executable()).
  • Table tests (start_test.go): strip-owner in at-home-tools' record; in its own app's record; a record winning over a PATH from before the install; no record having it and PATH having it, with a broken record skipped; no records folder at all; found nowhere, with both places in the error.

Leaves alone

  • StartBeside keeps its signature as a deprecated alias of StartProgram, so the strip-owner and tmux-strip moves (AHT-278, AHT-279), whose branches call it, build unchanged and get the new lookup.
  • connect's retry and the Low-integrity rule: a Low process still never starts strip-owner.
  • The socket, its methods and JSON.
Work package: [AGT-87](https://openproject.home.romaine.life/wp/AGT-87) A caller that finds strip-owner (or tmux-strip) not running started it from its own install folder, else PATH. pull-request now installs on its own, with no strip-owner.exe beside it, and strip-owner is moving to an app of its own, so the caller's folder is the wrong place to look; and a long-running process's PATH can predate the install that put a program on it. **Removes** - `besideOrOnPath` and the look in the caller's own folder: no program is taken from beside the caller any more. **Adds** - `Find(name)`: the program in the first app's current folder at-update has registered (`%LOCALAPPDATA%\at-update\registered\<app>.json`'s `path`, apps in name order, the order at-update gives AT_HOME_PATH), then `exec.LookPath`; an error names both the records folder and PATH when neither has it. The records list no programs per app, so it checks each app's folder for the file: strip-owner is found in at-home-tools' folder today and in its own app's once it moves, with nothing hardcoded. A record that doesn't read is skipped. - `StartProgram(name, args...)`: Find, then start it detached. `Start` now uses it for strip-owner. - `Spawn(path, args...)`: the detached start on its own, for a caller starting itself (`os.Executable()`). - Table tests (`start_test.go`): strip-owner in at-home-tools' record; in its own app's record; a record winning over a PATH from before the install; no record having it and PATH having it, with a broken record skipped; no records folder at all; found nowhere, with both places in the error. **Leaves alone** - `StartBeside` keeps its signature as a deprecated alias of `StartProgram`, so the strip-owner and tmux-strip moves (AHT-278, AHT-279), whose branches call it, build unchanged and get the new lookup. - `connect`'s retry and the Low-integrity rule: a Low process still never starts strip-owner. - The socket, its methods and JSON.
Find: a house program from at-update's records, then PATH, never beside the caller (AGT-87)
All checks were successful
Suite go / check-test-windows (pull_request) Successful in 1m10s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite go / reused-checks (pull_request) Successful in 13s
Suite default / check-fetches (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 13s
Suite default / check-logs (pull_request) Successful in 13s
Suite release / check-package (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 32s
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 31s
Suite go / check-test-linux (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 34s
Suite release / reused-checks (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 16s
Suite default / reused-checks (pull_request) Successful in 7s
merge-queue landed on main
54840c4fb1
merge-queue deleted branch find-house-program 2026-11-30 00:25:28 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
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
romaine-life/strip-protocol!3
No description provided.