Upgrade

From ai-ecoverse/slicc · View interactive version

Upgrade is an AI agent skill from the GitHub repository ai-ecoverse/slicc. Use this when you receive an `[Upgrade Event: x.y.z→a.b.c]` lick — fired on boot whenever the bundled SLICC version differs from the previous run. The lick renders a binary action card: `lick_confirm` to Update workspace files (three-way merge of bundled `vfs-root` files against the user's local edi

How to use this skill

Skill file

Upgrade

When SLICC boots and discovers that the bundled version (baked into the build at release time from the root package.json) differs from the version it was last seen running, it emits an upgrade lick to the cone. This skill describes how to react.

Event shape

You receive a message like:

[Upgrade Event: 0.4.1→0.5.0]

SLICC was upgraded from `0.4.1` to `0.5.0`.
Released: 2026-04-15T12:00:00Z

Use the **upgrade** skill (...)

The two version strings (from, to) are valid git tags on https://github.com/ai-ecoverse/slicc — the public source repository. The lick message carries a Lick ID: line — you resolve the card with that id.

What to do when you receive an upgrade lick

The runtime renders the upgrade lick as a binary action card automatically — you do not render a sprinkle. The card has exactly two outcomes, which you drive with the lick tools using the Lick ID from the message:

The card flips to ✓ on confirm / muted ✗ on dismiss. Never auto-run the merge — the user must choose. Reviewing the changelog is not a card action; it is a separate step you can run first to help the user decide.

Before lick_confirm or lick_dismiss, check list_scoops. A scoop that is processing may lose its in-flight work when the runtime moves to the new version. There is no notification — the scoop can look ready / finished, indistinguishable from a clean completion. Wait until every scoop is idle, or expect to re-feed any that were still working. Idle scoops survive.

Which version am I running?

uname -r prints the running version. upgrade status adds the last-booted one, whether a merge is pending, and the exact upgrade apply line to run when it is — that is where --from/--to come from without a card on screen. Realm scripts read globalThis.SLICC_VERSION.

Changelog review (separate step — not a card action)

Before the user decides, you can fetch the GitHub compare API for the two tags and summarize the result. This is optional and independent of the card; it does not resolve the lick.

# The repo is public — no auth required for the compare endpoint.
# stdin here is fully buffered, so read() drains the whole response in one shot.
curl -sSL "https://api.github.com/repos/ai-ecoverse/slicc/compare/v${FROM_VERSION}...v${TO_VERSION}" \
  | node -e 'const j=JSON.parse(process.stdin.read()||"{}");console.log((j.commits||[]).map(c=>"- "+c.commit.message.split("\n")[0]).join("\n"))'

Show the conventional-commit messages grouped by type (feat, fix, chore, ...). If the compare returns 404 (tags missing), fall back to the GitHub releases page URL: https://github.com/ai-ecoverse/slicc/releases/tag/v${TO_VERSION}.

Applying workspace files (the `lick_confirm` action)

lick_confirm runs the browser-native command below through the cone shell using the versions stored with the lick. Do not run a second merge after confirming.

upgrade apply --from="${FROM_VERSION}" --to="${TO_VERSION}"

The command discovers bundled files at both release refs under /workspace/skills, /shared/sprinkles, /shared/sounds, and /etc, prefetches and preflights every path; then applies safe updates with VirtualFS and the built-in three-way merge. /etc/MEMORY.md (the memory-pass contract) and the /etc policy files (sudoers, models, llmstxtignore) are seeded only when absent, so this merge is the only way a rule change in them reaches an existing profile — including approval rules such as the Write /etc/models gate. Applying a change to /etc/sudoers still raises its own approval prompt: the card authorizes the merge, not the policy edit. Its JSON output classifies every bundled path as auto-applied, merged-clean, kept-local, needs-review, unchanged, or added-new.

An exit code of 1 means discovery/fetch failed or at least one path needs review. Conflicts are written to the reported collision-safe sidecar while the live file remains unchanged. Show the JSON summary and sidecar paths to the user; never copy conflict markers into the live file automatically. The command never deletes local-only files.

The command can also be run directly with explicit release versions for manual recovery, but an upgrade card still requires the user's confirmation before changing files.

Also check installed skills (separate step — not a card action)

The card only covers bundled files (/workspace/skills, /shared/sprinkles, /shared/sounds, /etc). Skills the user installed themselves with upskill are never touched by it, and they drift silently — a stale one can sit months behind upstream while still loading fine.

A new SLICC release is a good moment to check them. This is read-only:

upskill list --outdated

It reuses the same classification as upskill update --dry-run: each skill's .upskill provenance record (source repo, ref, resolved commit, file list) compared against the latest commit that touched the recorded upstream path. Only skills a bare upskill update would actually change are listed. Skills with no record are omitted with a skipped count — they are not printed as current. Exit 0 whether or not anything is stale; a skill whose check itself failed still exits 1. Use upskill update --dry-run when you want the per-file unchanged / updated / added / removed / kept-local breakdown.

Report what would change and let the user decide. To apply:

upskill update              # every skill with provenance
upskill update <skill>      # just one

Notes worth knowing:

Do not

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.