Skip to content

feat(dist): verify-distribution reports duplicate install channels - #226

Merged
danielvm-git merged 1 commit into
mainfrom
fix/dist-channel-verify-208
Nov 6, 2026
Merged

danielvm-git merged 1 commit into
mainfrom
fix/dist-channel-verify-208

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

What this fixes — #208

Five channels shipped the same catalog to four places pi scans, producing 80 skill-name collisions per start; the copy pi kept was not the one the maintainer edits. This PR adds the diagnostic + contract that stops that from being silent.

Change

  • scripts/verify-distribution.sh — names each active pi channel (package entry in ~/.pi/agent/settings.json vs. ~/.pi/agent/skills symlinks) and fails when both own pi:
    bash scripts/verify-distribution.sh --strict   # exit 1 on conflict
    bash scripts/install.sh --verify               # same, via install.sh
  • tests/test-verify-distribution.sh (4 checks) drives it against a fake HOME: clean, package-only, package+symlink conflict (--strict exit 1), symlink-only. Wired into the golden suite.
  • docs/references/agent-tooling.md — the pi channel matrix and the acceptance line (80 skills loaded, zero warnings).

Scope note

This is the diagnostic half of #208. The full single-channel manifest (distribution-targets.yaml driving sync-skills.sh / install.sh / bin/setup.js, with exclusive-per-host setup) is a multi-story effort and is tracked as epic #214. This PR delivers the detectable contract so the collision is no longer silent, which is the acceptance criterion that was measurable today.

Evidence

ok   T1 clean HOME reports clean
ok   T2 package-only reports clean and names the channel
ok   T3 package+symlink conflict detected, --strict exits 1
ok   T4 symlink-only reports clean

Gates

npm run compliance 0 · bash scripts/run-verification-gates.sh 61/61 · trace-stories --strict 0.

Closes #208

The 80-collision symptom came from the package channel and the symlink
channel both owning pi, loading every skill name twice and ranking a copy the
maintainer does not edit. Add a check that names each active channel and
fails when package + symlink are both present:

  bash scripts/verify-distribution.sh --strict   # exit 1 on conflict
  bash scripts/install.sh --verify               # same via install.sh

tests/test-verify-distribution.sh drives it against a fake HOME (clean,
package-only, conflict, symlink-only) and is wired into the golden suite.
docs/references/agent-tooling.md documents the pi channel matrix and the
acceptance line (80 skills loaded, zero warnings).

Refs #208
@danielvm-git
danielvm-git merged commit 6a55a91 into main Nov 6, 2026
7 checks passed
@danielvm-git
danielvm-git deleted the fix/dist-channel-verify-208 branch November 6, 2026 20:07
github-actions Bot pushed a commit that referenced this pull request Nov 6, 2026
# [2.94.0](v2.93.8...v2.94.0) (2026-11-06)

### Features

* **dist:** verify-distribution reports duplicate install channels ([#226](#226)) ([6a55a91](6a55a91)), closes [#208](#208)
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.94.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(pi): five install channels produce 80 skill-name collisions and pi ranks the wrong copy

1 participant