--- spec: nix-flake-packaging --- ## What to build Resolve the spec's one open verification item, then act on what is found. The `setup` command's hook installation passes the agent SDK both an absolute path to the running entrypoint and the bare binary name. Under Nix the absolute path is content-addressed: it changes on every rebuild and is eventually garbage-collected, so a hook that records it would break silently — a session-start hook that cannot execute simply does not run. The bare binary name strongly suggests the SDK prefers search-path resolution and treats the absolute path as a fallback, which would make this a non-issue, but that could not be confirmed during design because the dependency was not installed. The decision is to verify before acting. Determine, against the installed SDK, which of the two the hook installation actually records. If it prefers the bare name, record the finding and close the item — no code changes. If it records the absolute path, the immediate mitigation is documenting that the hook setup should be re-run after an upgrade. Changing the `setup` command to prefer the bare name is explicitly **not** part of this task: it would become a separate task with its own ADR, justified on the grounds that a stable search-path name is more robust for *every* installation method, and explicitly not as a special case that detects Nix store paths in application code. ## Acceptance criteria - [ ] The SDK's actual hook-path behavior is determined by observation against the installed dependency, not inference from its interface. - [ ] The finding is recorded where a future reader will meet it, so the question is not re-opened from scratch. - [ ] If the absolute path is recorded, the documentation states that hook setup must be re-run after an upgrade. - [ ] No change is made to how the `setup` command constructs the hook in this task.