Repository navigation
Closed
Milestone
Description
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-noticeopt-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.shcopies the runtime repo's compatibility snapshotskills/session-peer/SKILL.mdinto~/.claude/skills/session-peer.- The skills CLI installs from
abruption/session-peer-skillinto~/.agents/skills/session-peer, records source and folder hash in~/.agents/.skill-lock.json, and may symlink~/.claude/skills/session-peerto it.
- SKILL.md frontmatter currently has no version field, so the installed skill version cannot be read.
Why not auto-update
- 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.
- 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.
update --hostalready inspects SSH hosts; automatic skill writes there would widen the blast radius across machines.- The practical risk is runtime/skill incompatibility, not merely "not latest".
Proposal
- Notice (runtime): extend the existing cached, background, opt-out update check to also read the latest
session-peer-skillrelease, using the same cache, interval and--no-update-noticeflag. 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. - 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. - 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
versionand a minimum runtime version in SKILL.md frontmatter (tracked inabruption/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-noticesuppresses 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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
abruption commentedon Sep 23, 2026
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 extendvalidate-skill.mjsaccordingly. Detection in this issue should read those fields once they land and report "unknown" until then.abruption commentedon Sep 23, 2026
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.
abruption commentedon Sep 23, 2026
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
metadatamap (Agent Skills spec):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:
runtime-min-versionmeans the skill is unsupported; the runtime is at least that version but belowruntime-full-versionmeans some documented options are unavailable.metadata. Treat a missing or unparseable version as outdated (notice), and never raise an error for it.metadatasupport), Codex CLI 0.155.0 (skills/listloads it) and skills CLI 1.7.0 (preservesmetadata). Antigravity loader acceptance is not yet verified; this is the remaining prerequisite.origin/main's snapshot has nometadata.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.
abruption commentedon Sep 23, 2026
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.