You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Emitted installers have no same-version replace path; local dev loop needs manual uninstall + rm #400
Rebuilding a plugin without bumping package.json version, then re-running the emitted installers:
Cursor artifact/plugin/install.mjs: Error: Refusing content collision at ~/.cursor/plugins/local/cargo-hauler. — no flag to replace. Had to rm -rf the install dir first.
Claude: claude plugin marketplace update + claude plugin update cargo-hauler@… → ✔ cargo-hauler is already at the latest version (0.3.0) even though the marketplace snapshot content changed. Had to claude plugin uninstall then install.
Codex: codex plugin add re-copied fine.
The collision guard is correct for a foreign install, but for the artifact you just built it turns every iteration into a three-host manual dance, and Claude's version-equality shortcut silently leaves stale hooks/MCP in place (I only caught it with diff -rq artifact/plugin ~/.claude/plugins/cache/...).
Request
install.mjs --replace (or --force) that replaces the install when the plugin name matches, still refusing when the target isn't an agent-bundle-emitted layout of the same plugin.
Have install.mjs print a content-hash comparison on collision (same version, different content) so the operator knows a stale copy is running.
Document, in the emitted INSTALL.md, the reinstall recipe per host for same-version rebuilds — including that Claude's plugin update is version-gated and needs uninstall + install for content-only changes.
Nice to have: agent-bundle install --hosts cursor,claude,codex --replace that runs the right sequence per host and diffs the installed copy against the artifact afterwards.
agent-bundle install <host>, the package-relative installer bin, and the emitted standalone install.mjs accept --replace (alias --force) and automatically replace a same-version stale copy: an agent-bundle install of the same plugin whose version matches but whose content hash differs is replaced without a flag; an identical artifact is an already-installed no-op that says so.
Cursor copies carry an install receipt .agent-bundle-install.json (plugin, version, host, content hash over path + executable bit + bytes, installer-created directories, owned files). Replacement is in place and touches owned files only; state/ and any other unowned entry survive, and an incoming file that would land on an unowned entry aborts before any change. A pre-receipt copy (emitted INSTALL.md + install.mjs, matching manifest) needs --replace once to be adopted; a byte-identical one reports adopted.
Claude: same-version drift is replaced through claude plugin uninstall <id> --scope <scope> --keep-data + marketplace add + install (verified against the real CLI that re-install, marketplace update and plugin update all leave the cache stale). Codex: codex plugin remove + add. Both are located via plugin list --json; an unusable inventory keeps plain install and fails --replace closed. A different installed version is an AB7005 collision without --replace.
Foreign directories are still refused (AB7005) with the installed-vs-artifact comparison installed <name>@<v> content <hash> vs artifact <name>@<v> content <hash> (same version, different content).
agent-bundle doctor --from reports per host current / stale (same version, different content) (AB7308) / version-mismatch (AB7309) / foreign (new AB7321) / not-installed (AB7307) with both hashes; Claude scopes are compared individually; Claude/Codex inventories now come from plugin list --json (AB7303 only when unusable).
Emitted INSTALL.md documents the same-version reinstall recipe per host, including Claude's version-gated plugin update. Docs: package README, docs/framework-mode.md, docs/diagnostics.md (receipt format, policy matrix, AB7321).
Tests
tests/install.test.ts, tests/doctor.test.ts, tests/install-surface.test.ts (incl. running the emitted install.mjs end to end), tests/installer-entry.test.ts: no-op, owned-only replace, legacy gate/adoption, foreign refusal with hash comparison, receipt validation (traversal, backslashes, Windows-reserved names, preserved roots, symlinked/non-regular receipts), symlinked ancestors, file↔directory restructures, case-alias handling, Claude/Codex replace sequences and fail-closed inventory, doctor states for all hosts.
Real-host proofs (pnpm test:host-install, pnpm test:host-install:packed:build) now perform a same-version rebuild round trip against real claude, codex, an isolated Cursor home, and the portable install.mjs: replaced → cache carries the new file → already-installed. Green locally and in CI.
Shipped in #420 (squash merge 826dea20d, changeset agent-bundle patch). Verified against merged main (826dea20d) with the built CLI, an isolated HOME, and the skills-starter example rebuilt with --target cursor --target portable --target claude --target codex:
1. install.mjs --replace / --force, refusing anything that is not an agent-bundle layout of the same plugin — met.
First run: Installed [email protected] … (content 140823d3c4ee); rerun and rerun with --replace on identical content: Already installed … (idempotent no-op).
Same-version rebuild (content change, no version bump): plain rerun → Replaced [email protected] … (content 140823d3c4ee -> b62cf977539f) — automatic, no flag needed; the installed copy carries the new bytes. Replacement is in place and touches owned files only (receipt .agent-bundle-install.json lists owned files and installer-created directories; state/, operator files and pre-existing directories are never removed or overwritten).
Pre-receipt legacy copy with drift: refused until --replace adopts it once (Replaced … (content b62cf977539f -> 2b8ce9a5a5cf)); later same-version rebuilds replace automatically.
Foreign directory under the plugin name: Refusing foreign install at … the directory is not an agent-bundle install of skills-starter, so --replace does not apply. — from install.mjs --replace and from agent-bundle install cursor --replace (AB7005).
Different installed version: AB7005 Refusing version collision … without the flag; --replace (and alias --force) replaces it.
2. Content-hash comparison on collision — met. Every refusal and Doctor verdict carries installed <name>@<v> content <hash> vs artifact <name>@<v> content <hash> (same version, different content | different version | same content), e.g. Refusing content collision at …: installed [email protected] content b62cf977539f vs artifact [email protected] content 2b8ce9a5a5cf (same version, different content); this copy predates install receipts. Re-run with --replace once ….
3. Per-host reinstall recipe in the emitted INSTALL.md — met. claude/INSTALL.md ("Reinstall after a same-version rebuild": claude plugin update is version-gated → claude plugin uninstall <id> --scope <scope> --keep-data + marketplace add + install), codex/INSTALL.md (codex plugin remove + add), cursor//portable/INSTALL.md (install.mjs receipt semantics, --replace/--force).
4. agent-bundle install … --replace per host + diff of the installed copy — met per host: agent-bundle install <claude|codex|cursor> --from <bundle-dir> [--replace|--force] runs the right sequence for each host (Claude: plugin list --json → uninstall --keep-data → marketplace add → install; Codex: plugin list --json → remove → marketplace add → add; Cursor: receipt-managed in-place replace), and agent-bundle doctor --from <artifact-root> compares the installed copy of every host against the artifact:
cursor: installed copy: current; installed 1.0.1 content 979eb526660d, artifact content 979eb526660d
cursor: installed copy: stale (same version, different content); … AB7308
cursor: installed copy: version mismatch; … AB7309
cursor: installed copy: foreign install; … AB7321
cursor: installed copy: not installed … AB7307
claude/codex: located through the host's own `plugin list --json` (claude 2.1.257, codex 0.147.0 on this machine)
The one nice-to-have not delivered as literally requested: a single multi-host --hosts cursor,claude,codex invocation — today it is one agent-bundle install <host> per host (same flags), with doctor --from as the cross-host diff. Open a follow-up if that single command is still wanted.
Automated evidence on main @ 826dea20d:tests/install.test.ts + tests/doctor.test.ts + tests/install-surface.test.ts 84/84; pnpm test:host-install:build 21 passed / 2 pre-existing opt-in skips, including the real-host same-version rebuild round trip for Claude, Codex, Cursor home and the portable install.mjs (installed → replaced → already-installed); tests/installer-entry.test.ts (package-relative installer bin: --replace/--force, auto-replace) 4/4; PR CI green on the merged head (Verify, Release gates, Host install proofs, Examples check).
Activity
fix(install): harden replace policy per review (#400)
fix(install): guard symlinked ancestors and case aliases; patch chang…
fix(install): receipt inventory, owned restructures, multi-scope doct…
fix(install): empty directories are collisions; validate Claude rows …
fix(install): legacy adoption preserves unknown files; empty descenda…
fix(install): case-alias identity only, alias-aware ancestors, exclus…
fix(install): prove case aliases via realpath; refuse symlinked recei…
fix(install): public-host version collisions fail closed; foreign bea…
fix(install): uncomparable host copies fail closed; alias-aware legac…
fix(install): require inventory versions; report public-host destinat…
fix(install): hash executable bits; reject Windows-normalised receipt…
fix(install): runtime state roots are never inventoried, installed, o…
fix(install,doctor): filter runtime roots during staging; real Claude…
feat(install): same-version replace path for every emitted installer (#…
fix(install): harden replace policy per review (#400)
9 remaining items
fix(install): hash executable bits; reject Windows-normalised receipt…
fix(install): runtime state roots are never inventoried, installed, o…
fix(install,doctor): filter runtime roots during staging; real Claude…
fix(install): receipts never own runtime roots; receipt must be a reg…
fix(install): preserved roots match case-insensitively; tests for FIF…
fix(install): receipts own the directories the installer created; onl…
fix(install): empty artifact directories are not content: never stage…
fix(install): refuse artifact paths that cannot round-trip through a …
fix(install): the receipt filename is reserved in every spelling (#400)
fix(install): reserve the receipt name as a top-level segment, file o…
fix(install): reject Windows device names in receipt and artifact pat…
feat(install): same-version replace path for every emitted installer (#…
ScriptedAlchemy commentedon Sep 3, 2026
Fixed in #420 (merged as 826dea2).
What changed
agent-bundle install <host>, the package-relative installer bin, and the emitted standaloneinstall.mjsaccept--replace(alias--force) and automatically replace a same-version stale copy: an agent-bundle install of the same plugin whose version matches but whose content hash differs is replaced without a flag; an identical artifact is analready-installedno-op that says so..agent-bundle-install.json(plugin, version, host, content hash over path + executable bit + bytes, installer-created directories, owned files). Replacement is in place and touches owned files only;state/and any other unowned entry survive, and an incoming file that would land on an unowned entry aborts before any change. A pre-receipt copy (emittedINSTALL.md+install.mjs, matching manifest) needs--replaceonce to be adopted; a byte-identical one reportsadopted.claude plugin uninstall <id> --scope <scope> --keep-data+marketplace add+install(verified against the real CLI that re-install,marketplace updateandplugin updateall leave the cache stale). Codex:codex plugin remove+add. Both are located viaplugin list --json; an unusable inventory keeps plain install and fails--replaceclosed. A different installed version is anAB7005collision without--replace.AB7005) with the installed-vs-artifact comparisoninstalled <name>@<v> content <hash> vs artifact <name>@<v> content <hash> (same version, different content).agent-bundle doctor --fromreports per hostcurrent/stale (same version, different content)(AB7308) /version-mismatch(AB7309) /foreign(newAB7321) /not-installed(AB7307) with both hashes; Claude scopes are compared individually; Claude/Codex inventories now come fromplugin list --json(AB7303only when unusable).INSTALL.mddocuments the same-version reinstall recipe per host, including Claude's version-gatedplugin update. Docs: package README,docs/framework-mode.md,docs/diagnostics.md(receipt format, policy matrix,AB7321).Tests
tests/install.test.ts,tests/doctor.test.ts,tests/install-surface.test.ts(incl. running the emittedinstall.mjsend to end),tests/installer-entry.test.ts: no-op, owned-only replace, legacy gate/adoption, foreign refusal with hash comparison, receipt validation (traversal, backslashes, Windows-reserved names, preserved roots, symlinked/non-regular receipts), symlinked ancestors, file↔directory restructures, case-alias handling, Claude/Codex replace sequences and fail-closed inventory, doctor states for all hosts.pnpm test:host-install,pnpm test:host-install:packed:build) now perform a same-version rebuild round trip against realclaude,codex, an isolated Cursor home, and the portableinstall.mjs:replaced→ cache carries the new file →already-installed. Green locally and in CI.ScriptedAlchemy commentedon Sep 3, 2026
Shipped in #420 (squash merge
826dea20d, changesetagent-bundlepatch). Verified against mergedmain(826dea20d) with the built CLI, an isolatedHOME, and theskills-starterexample rebuilt with--target cursor --target portable --target claude --target codex:1.
install.mjs --replace/--force, refusing anything that is not an agent-bundle layout of the same plugin — met.Installed [email protected] … (content 140823d3c4ee); rerun and rerun with--replaceon identical content:Already installed …(idempotent no-op).Replaced [email protected] … (content 140823d3c4ee -> b62cf977539f)— automatic, no flag needed; the installed copy carries the new bytes. Replacement is in place and touches owned files only (receipt.agent-bundle-install.jsonlists owned files and installer-created directories;state/, operator files and pre-existing directories are never removed or overwritten).--replaceadopts it once (Replaced … (content b62cf977539f -> 2b8ce9a5a5cf)); later same-version rebuilds replace automatically.Refusing foreign install at … the directory is not an agent-bundle install of skills-starter, so --replace does not apply.— frominstall.mjs --replaceand fromagent-bundle install cursor --replace(AB7005).AB7005 Refusing version collision …without the flag;--replace(and alias--force) replaces it.2. Content-hash comparison on collision — met. Every refusal and Doctor verdict carries
installed <name>@<v> content <hash> vs artifact <name>@<v> content <hash> (same version, different content | different version | same content), e.g.Refusing content collision at …: installed [email protected] content b62cf977539f vs artifact [email protected] content 2b8ce9a5a5cf (same version, different content); this copy predates install receipts. Re-run with --replace once ….3. Per-host reinstall recipe in the emitted
INSTALL.md— met.claude/INSTALL.md("Reinstall after a same-version rebuild":claude plugin updateis version-gated →claude plugin uninstall <id> --scope <scope> --keep-data+marketplace add+install),codex/INSTALL.md(codex plugin remove+add),cursor//portable/INSTALL.md(install.mjsreceipt semantics,--replace/--force).4.
agent-bundle install … --replaceper host + diff of the installed copy — met per host:agent-bundle install <claude|codex|cursor> --from <bundle-dir> [--replace|--force]runs the right sequence for each host (Claude:plugin list --json→uninstall --keep-data→marketplace add→install; Codex:plugin list --json→remove→marketplace add→add; Cursor: receipt-managed in-place replace), andagent-bundle doctor --from <artifact-root>compares the installed copy of every host against the artifact:The one nice-to-have not delivered as literally requested: a single multi-host
--hosts cursor,claude,codexinvocation — today it is oneagent-bundle install <host>per host (same flags), withdoctor --fromas the cross-host diff. Open a follow-up if that single command is still wanted.Automated evidence on
main@826dea20d:tests/install.test.ts+tests/doctor.test.ts+tests/install-surface.test.ts84/84;pnpm test:host-install:build21 passed / 2 pre-existing opt-in skips, including the real-host same-version rebuild round trip for Claude, Codex, Cursor home and the portableinstall.mjs(installed→replaced→already-installed);tests/installer-entry.test.ts(package-relative installer bin:--replace/--force, auto-replace) 4/4; PR CI green on the merged head (Verify,Release gates,Host install proofs,Examples check).