Skip to content

feat(update): notify about outdated or incompatible session-peer skill installs (notice-only) #167

Closed

Description

@abruption

Summary

session-peer surfaces cached update notices for its own runtime (#67), but not for the separately released agent skill (abruption/session-peer-skill). A user can run a current runtime with an outdated skill, or a skill that documents options the installed runtime does not support (for example 1.0-only --relay-login on a 0.9 runtime), without any signal.

This proposes a notice-only extension plus a compatibility check. It deliberately does not auto-update the skill.

Current behavior (origin/main)

  • session_peer_core/updates.py: GitHub latest-release check with a local cache, background refresh, --no-update-notice opt-out; package-managed installs are never overwritten (installed_as_distribution()), only an upgrade command is shown.
  • The skill reaches a machine through two channels:
    • install.sh copies the runtime repo's compatibility snapshot skills/session-peer/SKILL.md into ~/.claude/skills/session-peer.
    • The skills CLI installs from abruption/session-peer-skill into ~/.agents/skills/session-peer, records source and folder hash in ~/.agents/.skill-lock.json, and may symlink ~/.claude/skills/session-peer to it.
  • SKILL.md frontmatter currently has no version field, so the installed skill version cannot be read.

Why not auto-update

  1. SKILL.md is an instruction file that agents follow with Bash access. Silently replacing it from a remote source is a larger trust change than a runtime update.
  2. The skills CLI owns its install (lock file + folder hash). Writing into that directory would desynchronize the lock and fight the manager, contrary to the existing rule of not overwriting package-managed files.
  3. update --host already inspects SSH hosts; automatic skill writes there would widen the blast radius across machines.
  4. The practical risk is runtime/skill incompatibility, not merely "not latest".

Proposal

  1. Notice (runtime): extend the existing cached, background, opt-out update check to also read the latest session-peer-skill release, using the same cache, interval and --no-update-notice flag. Detect installed skill locations ($CLAUDE_CONFIG_DIR/~/.claude/skills/session-peer, ~/.agents/skills/session-peer) and read the version from frontmatter. Show a manager-appropriate command only (skills CLI → npx skills update …; install.sh copy → the install command). Never write skill files.
  2. Compatibility (doctor): in doctor, report skew such as "skill requires runtime >= X, installed runtime is Y" or "skill version unknown (no version field)". Keep this out of every command's hot path.
  3. Optional explicit command: consider session-peer update --skill, run only on explicit user invocation and delegating to the owning manager (for skills CLI installs), never performing its own file replacement. Separate decision.

Dependencies

  • Requires the skill to declare version and a minimum runtime version in SKILL.md frontmatter (tracked in abruption/session-peer-skill, to be linked).
  • The runtime repo's compatibility snapshot should carry the same fields once they exist.

Acceptance

  • Tests: skill newer than installed → notice with the correct manager command; skill up to date → no notice; missing or unreadable skill or version → no crash (doctor reports "unknown"); --no-update-notice suppresses both runtime and skill notices; runtime below the skill's minimum → doctor warning.
  • No network in the hot path beyond the existing cached refresh; no writes to skill directories.

Activity

  1. abruption commented on Sep 23, 2026

    @abruption
    OwnerAuthor

    Skill-side dependency is tracked in abruption/session-peer-skill#8: add machine-readable version fields to SKILL.md frontmatter (candidate: metadata.version / metadata.min-runtime, preserved by skills CLI 1.7.0; loader support for nested maps in Claude Code, Codex and Antigravity still to be confirmed) and extend validate-skill.mjs accordingly. Detection in this issue should read those fields once they land and report "unknown" until then.

  2. added this to the v1.0.0-rc.3 milestone on Sep 23, 2026
  3. abruption commented on Sep 23, 2026

    @abruption
    OwnerAuthor

    Milestone: v1.0.0-rc.3 as a non-blocking item. RC3's purpose is the #161 Relay stability validation (#163/#164); this notice-only change must not delay it.

  4. abruption commented on Sep 23, 2026

    @abruption
    OwnerAuthor

    Prerequisite status update: abruption/session-peer-skill#8 is closed and released as session-peer-skill v0.3.0.

    SKILL.md frontmatter now carries a string-valued metadata map (Agent Skills spec):

    metadata:
      version: "0.3.0"               # skill release, matches the vX.Y.Z tag
      runtime-min-version: "0.9.1"   # minimum runtime the skill supports
      runtime-full-version: "1.0.0"  # runtime needed for every option the skill documents

    Values are always quoted strings. The skill repo CI (validate-skill.mjs, including tag pushes) checks them against the body, the four README editions and the release tag.

    Implementation notes for this issue:

    • Two warning levels: the runtime is below runtime-min-version means the skill is unsupported; the runtime is at least that version but below runtime-full-version means some documented options are unavailable.
    • Missing metadata: skill installs at v0.2.0 or earlier have no metadata. Treat a missing or unparseable version as outdated (notice), and never raise an error for it.
    • Loaders: confirmed for Claude Code (documented metadata support), Codex CLI 0.155.0 (skills/list loads it) and skills CLI 1.7.0 (preserves metadata). Antigravity loader acceptance is not yet verified; this is the remaining prerequisite.
    • Runtime snapshot: docs(skill): sync the compatibility snapshot with session-peer-skill v0.3.0 #165 updates the runtime compatibility snapshot to the v0.3.0 SKILL.md and is open. Until it merges, origin/main's snapshot has no metadata.
    • Test fixtures: installed copies on the five validation hosts have been updated to v0.3.0, so tests can read real installs.

    The milestone condition from the previous comment is unchanged: this is non-blocking for RC3 and must be merged before the RC3 four-hour campaign starts, otherwise it moves to v1.0.0 or 1.0.1.

  5. modified the milestones: v1.0.0-rc.3, v1.0.0 on Sep 23, 2026
  6. abruption commented on Sep 23, 2026

    @abruption
    OwnerAuthor

    Deferred out of v1.0.0-rc.3 by maintainer decision (2026-09-23): RC3 is scoped to the #161/#163 Relay stability validation. Moved to the v1.0.0 milestone; it remains non-blocking and may move to a later patch release.

  7. modified the milestones: v1.0.0, v1.0.1 on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions