M0: Profile provisioning & skill seeding (S2.1) #13
Notifications
Due Date
No due date set.
Blocks
Depends on
#14 M0: ACP bridge spike (S2.2)
AlexKucera/museion
#15 M0: Profile backup (S2.6)
AlexKucera/museion
#23 M2: museion-tools MCP server (S2.4)
AlexKucera/museion
#12 M0: Engine gate (S2.1)
AlexKucera/museion
Reference: AlexKucera/museion#13
Reference in new issue
Block a user
Destination
Every decision provisioning (#13) needs is made — profile-creation semantics, the museion-tools profile-config seam, failure & retry UX, payload manifest & versioning — so a build session can implement the original acceptance criteria below without deciding anything.
Notes
EngineGateView.onEnginePassfires provisioning in parallel on pass).mcp_servers— registration is #23's job viahermes mcp addonce the mode exists.Decisions so far
Research: Hermes CLI profile-create semantics —
hermes profile create museionis non-interactive & prompt-free; re-run on existing profile exits 1 withalready existson stdout (stderr empty, nothing clobbered); errors go to stdout; fresh profile bootsacp -pimmediately (needs credentials for real turns).Grilling: museion-tools profile-config seam at M0 — provisioning writes nothing to the profile config: never writes
mcp_servers, no stub, no entry, even after #23 exists. #23 fireshermes mcp add museion-toolsitself once the mode actually serves (non-interactive + self-verifying then — it connects on add). M0 AC gains the negative invariant: nomuseion-toolsentry undermcp_serversafter provisioning. ADR-0008 + PRD (G6/S2.4) amended to match.Grilling: provisioning failure & retry UX — provisioning runs on every gate pass, idempotently (dir-check first; spawn only when something's missing — no has-run flag, nothing recorded). One alert, phase-named copy ("couldn't set up the writing profile" / "couldn't copy the writing skills"), excerpt behind Technical details (create errors on stdout per #43, copy on stderr). Actions: Retry (re-runs the whole pass — idempotence makes resume pointless) + Not Now (next launch retries silently). state.json stays schemaVersion 1 engine-gate-only; at most one os_log line per failure.
Grilling: payload manifest format & versioning — ships as
seed-manifest.txtin the payload root (one skill-dir name per line, blank/#lines ignored; inclusion list — only listed dirs copy, non-skill files never seed).ref/writing skills/AGENTS.mdgains the sync contract. No payload-level version: per-skillmetadata.versionfrontmatter is the stamp (bump on meaningful content change). One os_log line per seed pass reads the shipped set's per-skill versions from the bundled resources (never the profile — present skills aren't opened), e.g.seeded writing skills: serif-writing 1.3, … (2 copied, 9 present). Missing-payload entry throws into the #45 copy-error alert path. Build AC: unit test asserting manifest ↔ payload correspondence.Build: implement provisioning pass — success path landed:
ProfileProvisioner.perform(create with--no-alias --no-skillsonly when dir missing; additive per-skill atomic seed per seed-manifest.txt), payload shipped as a folder reference into Resources,onEnginePassseam wired, 10-test fake-binary suite, 23/23 green. Failure alert UX is #48 (rendersProvisioningModel.lastFailure).Not yet specified
<empty — the fog is clear; the way to the destination is decided>
Out of scope
What to build
After the gate passes, first run provisions the Engine: Museion creates the dedicated museion profile (~/.hermes/profiles/museion/) if it is missing, then seeds the bundled writing skills (the ref/writing skills payload, shipped as app resources) into the profile's skills folder. Seeding is additive only: a bundled skill absent from the profile is copied; an existing one is never overwritten — the mentor's self-improved skills live there. (PRD S2.1, G3a)
Acceptance criteria
[ ] Profile created if missing; an existing profile is left intact
[ ] Bundled skills seeded additively — missing copied, existing never overwritten — verified by running provisioning twice with a modified skill in place
[ ] Provisioning is idempotent; later app versions add new skills without touching old ones
[ ] Skills content matches the bundled payload (the G3a set: serif stack, deslop, personas, demonstrator doctrine, craft canon, drill packs)
Blocked by
• #12 — M0: Engine gate (S2.1)
[Generated by AI]