Skip to content

fix(skills): make the zi-install loader probe positive - #638

Merged
ss-o merged 1 commit into
mainfrom
fix/zi-install-loader-probe
Sep 19, 2026
Merged

ss-o merged 1 commit into
mainfrom
fix/zi-install-loader-probe

Conversation

@ss-o

@ss-o ss-o commented Sep 19, 2026

Copy link
Copy Markdown
Member

Summary

  • .github/skills/zi-install/SKILL.md: the Loader verification probe is now positive evidence. It sources the resolved init.zsh in a clean zsh -f shell, requires zzinit to be defined by that source, runs it, and requires it to remove itself; each failure prints its own line. The previous zzinit:0 check after an interactive shell was also satisfied when init.zsh had never been sourced, so a pre-existing integration could pass Loader verification without exercising the installed loader (raised by Copilot on the src pilot delivery, chore(agents): install the zi-install skill src#216).

Refs #636

Verification

  • The probe was run against the real public/zsh/init.zsh from z-shell/src main with a stand-in zi.zsh: prints loader ok when the loader is present and loader missing with exit 1 when it is not.
  • python3 scripts/validate-agent-policy.py passes; no manifest change, the surface already exists.

Instruction impact review (runbooks/instruction-update.md)

  1. Scoped advisory guidance; a correction inside an existing skill surface.
  2. Same consumers as before; no routing change.
  3. Canonical owner unchanged; the src delivery copy is re-pinned to this commit in chore(agents): install the zi-install skill src#216.
  4. No duplication introduced.
  5. No manifest change.
  6. Advisory, so no mandatory rule depends on it.
  7. Validator passes; outside the generated composite.

Agent handoff

No handoff needed.

Copilot AI balanced review requested due to automatic review settings September 19, 2026 04:10
@ss-o
ss-o requested a review from a team as a code owner September 19, 2026 04:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The probe mishandles relative XDG paths and does not verify cleanup of all loader helpers.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Updates Zi Loader verification to exercise init.zsh directly and validate zzinit cleanup.

Changes:

  • Adds a clean-shell Loader probe with explicit diagnostics.
  • Separates Loader verification from install-only verification.
File Description
.github/​skills/​zi-install/​SKILL.md Strengthens post-install Loader verification.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/skills/zi-install/SKILL.md Outdated
Comment thread .github/skills/zi-install/SKILL.md Outdated
Copilot AI review requested due to automatic review settings September 19, 2026 04:14
@ss-o
ss-o force-pushed the fix/zi-install-loader-probe branch from 2e0a08e to eb128ed Compare September 19, 2026 04:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The probe can still accept a pre-existing zzinit, and the linked pilot remains pinned to the old probe.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
Resolved since last review (2)

Comment thread .github/skills/zi-install/SKILL.md Outdated
Comment thread .github/skills/zi-install/SKILL.md Outdated
`zzinit:0` after an interactive shell was also true when init.zsh was
never sourced, so a pre-existing integration could pass Loader
verification without exercising the installed loader. The probe now
sources the resolved init.zsh in a clean shell, requires zzinit to be
defined by that source, runs it, and requires it to remove itself.

Refs #636
Copilot AI review requested due to automatic review settings September 19, 2026 04:18
@ss-o
ss-o force-pushed the fix/zi-install-loader-probe branch from eb128ed to 96508fa Compare September 19, 2026 04:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The revised probe addresses the previously identified false-positive, path-resolution, startup-state, and cleanup gaps.

Review effort: Balanced
Findings: None

Resolved since last review (2)

@ss-o
ss-o merged commit de88a85 into main Sep 19, 2026
12 checks passed
@ss-o
ss-o deleted the fix/zi-install-loader-probe branch September 19, 2026 04:20
ss-o added a commit to z-shell/src that referenced this pull request Sep 19, 2026
z-shell/.github#638 replaced the Loader verification with a positive
probe; pin the delivery to its squash commit de88a85250897123602f3586ca7861cac782bc4b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants