Summary
Reconcile the published Zi installer and loader with the approved core path-resolution contract without weakening existing installer safety checks.
Current state
public/zsh/init.zsh and public/sh/install.sh already prefer XDG data, cache, and config locations, including creation of a missing XDG data parent. Their legacy behavior is not fully aligned with direct core sourcing, and relative XDG values are not rejected consistently.
Deliverables
Verification
- Extend
tests/installers.sh for legacy-only, XDG-only, both-present, invalid-relative, missing-parent, explicit override, and paths-with-spaces cases.
- Run
sh ./tests/installers.sh and the repository's existing syntax checks.
- Verify the checked-in checksum artifacts remain generated and clean.
Dependency
Blocked on the finalized resolver contract in the Zi core sub-issue. Implementation should not invent a second precedence model.
Next action
After the core truth table is accepted, map each installer entry point to it and add failing fixtures before changing behavior.
References
Summary
Reconcile the published Zi installer and loader with the approved core path-resolution contract without weakening existing installer safety checks.
Current state
public/zsh/init.zshandpublic/sh/install.shalready prefer XDG data, cache, and config locations, including creation of a missing XDG data parent. Their legacy behavior is not fully aligned with direct core sourcing, and relative XDG values are not rejected consistently.Deliverables
ZI_HOME,ZI[...], branch/stream, and custom repository overrides.Verification
tests/installers.shfor legacy-only, XDG-only, both-present, invalid-relative, missing-parent, explicit override, and paths-with-spaces cases.sh ./tests/installers.shand the repository's existing syntax checks.Dependency
Blocked on the finalized resolver contract in the Zi core sub-issue. Implementation should not invent a second precedence model.
Next action
After the core truth table is accepted, map each installer entry point to it and add failing fixtures before changing behavior.
References