v0.49.0 — Plugin auto-update
Consumers: run /marvin:upgrade-agent-os and answer its one auto-update question. After a yes, commit .claude/settings.json. See upgrades/v0.49.0.md.
Why. The architect asked for Marvin and its companion plugins to stay current without a manual claude plugin update in every project, using Claude Code's own marketplace auto-update rather than anything the kit runs itself, and for the token-telemetry companion to get a docs page (epic AOS-370).
What changed.
- The script (AOS-371).
scripts/marvin-autoupdate.sh check|enablereads the project's.claude/settings.jsonand reportson,off,declared,absentorerror <reason>.enablerunsclaude plugin marketplace add … --scope projectonly whenemproveis absent, inserts"autoUpdate": trueinto theemproveobject in the file's own indentation and line endings, keeps every other key, and re-checks. Any failure restores the backup. It never follows a symlink, refuses duplicate or non-boolean keys and text after the root object, and refuses anemproveentry whose source is not exactly the kit's: one source object, each key once,githubwith the kit repo orgit/urlwith its GitHub URL, so no second value can ride along; a key name written with an escape is refused outright, since Claude Code would decode it into a key the check cannot see. The write is atomic (a random-named sibling renamed over the file). - The setting (AOS-372).
plugin_autoupdate: on | offinPROJECT-INFO.md, aftersecurity_rules. Absent means not asked yet; an unknown value counts asoff. The project-info skill,/marvin:infoand the settings page agree. - Ask once (AOS-373). Install step 6f and upgrade step 4a ask Turn on automatic updates for this project (Recommended) · Not now. The question discloses that updates install without review or a signed-update check. A teammate is never asked;
offis never re-asked;onis only checked. Both plans list the key, the command and GitHub as the network host. - The session message (AOS-374). With
plugin_autoupdate: on, a newer plugin reads Marvin updated itself to vX (this project's install is vY), followed by the same upgrade steps. - Token telemetry page (AOS-375).
site/mods/token-telemetry.html: how it records, install, everyday commands, how Marvin uses it, and what happens without it. - Consumer guide (AOS-373).
agentic-skills.mdnames the consentedemproveentry as the one AST02/AST07 exception, so a consumer's security validator does not flag the kit's own recommended change. - Docs (AOS-376). The Upgrading page shows the automatic-updates path as a flow with its trade-off; the Agentic security page replaces AOS-361 with AOS-381; the marvin-progress page covers v0.3.2's agents pane with an illustrative render;
AGENTS.mdis a byte copy ofCLAUDE.md, held by the docs test. - Site style (AOS-377). The site clears the Impeccable 4.13 design findings: no side-tab bars, glows or eyebrow labels, an 11px floor for small text, and Montserrat kept as the brand face through one ignore-value in
.impeccable/config.json.
Decisions and deviations, flagged for the architect.
- Project scope only. The question writes the committed project setting, which the team inherits; a personal opt-in stays with
/plugin. - Check errors write
off. Acheckerror on a first install writesoff, which the upgrade never re-asks (as 6e does). A re-install keeps an existing key. - The session message keys on the setting only. The plugin is newer whichever way it arrived, so after a manual update the wording is slightly off at worst.
- Parked (T1 R2-1). A hand-crafted file with a later non-object
emprove, or a second root key, still reportson. It needs a crafted file and fails toward "not updated". - The token-telemetry page is screenshot-free. The plugin has no surface inside Claude Code, so
pages.jsongives it nofeature. - AOS-361 is superseded: auto-update is now offered with consent and its trade-off stated.
Acceptance.
- Documentation (repo rule 10): README inventory rows for
scripts/marvin-autoupdate.shandscripts/test-autoupdate.sh, the suite count (24) and list; rule 8 lists "auto-update" inCLAUDE.mdandAGENTS.md, now byte-identical; the PROJECT-INFO template,site/settings-install.md, the install, upgrade and project-info skills and/marvin:infocarryplugin_autoupdate; the consumer guideagentic-skills.mdis refreshed; the Upgrading, Agentic security, Token telemetry and marvin-progress pages are updated and regenerated. - Site (repo rule 11): (a) the automatic-updates flow is drawn on the Upgrading page, as no concept page covers updating; (b) no new in-Claude-Code surface: the token-telemetry page has none, and the marvin-progress page adds an illustrative v0.3.2 render, captioned as such; live shots stay in AOS-331.
- Gates on
release/0.49.0(Claude Code 2.1.332): all 24scripts/test-*.shsuites pass twice, normally and with SIGPIPE ignored (trap '' PIPE), test-autoupdate at 286 checks;validate-kit.sh(31 checks),build-docs.sh --check,claude plugin validate .(passed with warnings) andclaude plugin test .(211 pass, 0 fail) pass. No migration script, somutate-migrations.shdoes not apply. - Live CLI seam: the real
claude plugin marketplace add Zenosyne-Technologies/emprove-marketplace --scope project --json(2.1.332), run in a scratch repo against a temporary config holding the user-scopeemproveregistration, with the network denied: rc 0, "already on disk — declared in project settings", andmarvin-autoupdate.sh enable .wentabsent→on, other keys kept; a re-run changed nothing. No user state was touched and nothing was downloaded. - Scratch install (repo rule 5): a
git initrepo with a stub CLI:checkabsent, a yes →enableon (one CLI call, other keys kept), re-run on with no CLI call;autoUpdate: false→ exit 3 untouched; a commented file → exit 1 untouched; the session hook shows the new lead only withplugin_autoupdate: on. - Reviews: every story had completion and security validators. The whole-branch completion review failed once (the consumer guide still banned what the release recommends; the live CLI seam unverified) and passed after the fix and the live run. The whole-branch security review failed twice on the foreign-source check (a second
repo/urlriding along, then escaped key names Claude Code decodes) and passed at r3 across 14 hostile files checked against node'sJSON.parse.
AOS-377 leftovers (not in this release). The home page grid background, em-dashes in already-released notes, the lifecycle diagram's small text, and the mods sketches on mobile.
Follow-ups.
- Not yet filed: a check error or CLI failure at first install writes
off, which is never asked again (the upgrade note says to delete the key); a re-ask path. - Not yet filed: the token-telemetry 0.16 minimum is stated, not enforced; an optional dashboard screenshot for its page.
- Not yet filed: a hostile repo's
PROJECT-INFO.mdcan make the session message say updated itself (cosmetic; the upgrade keeps its own gates). - Not yet filed: crafted settings files that still read
onwhile nothing would update (a later non-objectemproveor second root key, text after over 1 MiB of whitespace): they fail toward "not updated". - Not yet filed: no lock against two hand-run
enables at once; a read-only.claude/reports "restore failed" although the file was never touched. - Not yet filed: re-run the live CLI check on each new Claude Code version (the seam is verified on 2.1.332 only).
- Filed: AOS-331 (live marvin-progress shots; the render's sample data names AOS-359 as a spike), AOS-359 (signed releases), AOS-381 (release revocation).
Upgrade
Consumer-facing: Marvin can keep itself current. One question turns on Claude Code's own plugin auto-update for the emprove marketplace (marvin, marvin-progress, token-telemetry). Map: docs site page Upgrading → Automatic updates.
- Update the plugin, then run
/marvin:upgrade-agent-os. It asks once: Turn on automatic updates for this project. It never asks again, and never asks a teammate. - A yes runs
bash <plugin>/scripts/marvin-autoupdate.sh enable ., which addsautoUpdate: trueunderextraKnownMarketplaces.emprovein.claude/settings.json. Commit that file so the team gets it. - The answer is stored as
plugin_autoupdate: on | offin.marvin/PROJECT-INFO.md, aftersecurity_rules. Absent means not asked yet; any other value counts asoff. To be asked again, delete that line and run the upgrade. - Trade-off: a new release then installs without your review and without a signed-update check (AOS-359, AOS-381). Your repo's files still change only through this upgrade. Answer Not now to keep updating by hand.
DISABLE_UPDATES,DISABLE_AUTOUPDATERorCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICturns it off.- An
emproveentry that points at another source is reported as must-act and is never turned on. - With it on, the session-start message reads Marvin updated itself to vX. The next step is still
/marvin:upgrade-agent-os. - The refreshed
.marvin/agents/agentic-skills.mdnames this consentedemproveentry as the one exception to AST02 and AST07. - No migration script.
Changes
Added
- Plugin auto-update, asked once by install and upgrade. A yes adds
autoUpdate: truefor theemprovemarketplace to the committed.claude/settings.json, covering marvin, marvin-progress and token-telemetry. scripts/marvin-autoupdate.sh check|enable: reportson,off,declared,absentorerror <reason>. It merges the key without touching any other key, writes atomically, restores the file on any failure, and never follows a symlink.plugin_autoupdate: on | offinPROJECT-INFO.md. Absent means not asked yet; an unknown value counts asoff./marvin:inforeports it with the live status.scripts/test-autoupdate.sh, the 24th suite, run by CI.- Docs site: a Token telemetry page for the companion plugin, and an Automatic updates flow on the Upgrading page.
Changed
- With auto-update on, the session-start message says Marvin updated itself to vX, followed by the same upgrade steps.
- Docs site clears the Impeccable 4.13 design findings: no side-tab bars, glows or eyebrow labels, and an 11px floor for small text. Montserrat stays as the brand face (AOS-377).
- Docs site: the marvin-progress page covers v0.3.2's agents pane, with an illustrative render.
agentic-skills.mdnames the consentedemproveauto-update as the one AST02/AST07 exception; any otherautoUpdate: trueis a finding.AGENTS.mdis a byte copy ofCLAUDE.md, and the docs test holds it so.
Security
- Only the kit's own
emprovesource counts, read as Claude Code reads it: one source object, each key once, the type deciding which key names the repo. Any other entry, or a settings key written with an escape, is refused and reported, never turned on. - The question discloses that updates install without review or a signed-update check (AOS-359, AOS-381); the upgrade plan lists the key, the command and GitHub as its network host.
Action needed
- Run
/marvin:upgrade-agent-osand answer the auto-update question. After a yes, commit.claude/settings.json.