M0: Profile provisioning & skill seeding (S2.1) #13

Closed
opened 2026-08-28 18:33:03 +02:00 by AlexKucera · 0 comments
Owner

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

  • Plan-don't-do: this map produces decisions, not deliverables. Execution stays with the build session that picks up the spec.
  • Consult: CONTEXT.md (Museion Profile, Mentor, Engine), PRD.md G3/G3a + S2.1 + "The bundled skill set", ADR-0007, Museion/AGENTS.md (gate seam: EngineGateView.onEnginePass fires provisioning in parallel on pass).
  • Grilling tickets: load grilling + domain-modeling skills. Research tickets: research skill.
  • Tracker ops: docs/agents/issue-tracker.md (Wayfinding operations).
  • Charting decisions (2026-09-03 — settled, do not re-ask):
    • Scope: this map covers #13 only. #14 (bridge spike) and #15 (backup) are separate efforts with their own future maps.
    • Profile creation runs the Hermes CLI as a subprocess — the engine owns its profile format; Museion never hand-scaffolds it. Exact command semantics: the research ticket below.
    • Payload ships as a plain Resources directory (copy phase; no zip, no compiled manifest); .DS_Store excluded.
    • Seeding is per-skill atomic (copy to temp name, rename into place); an interrupted seed is healed by the next launch's additive pass — no journal, no rollback. Tests inject the profile base dir (EngineGateTests fake-HOME pattern).
    • Payload manifest is curated: 11 mentor skills ship; ste-writing and writing-for-agents stay in ref/ as authoring tools, never seeded.
    • Failure posture inherited from #41: provisioning failure = separate alert + retry, never re-raises the gate.
    • MCP seam (#44): provisioning never writes mcp_servers — registration is #23's job via hermes mcp add once the mode exists.

Decisions so far

  • Research: Hermes CLI profile-create semantics — hermes profile create museion is non-interactive & prompt-free; re-run on existing profile exits 1 with already exists on stdout (stderr empty, nothing clobbered); errors go to stdout; fresh profile boots acp -p immediately (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 fires hermes mcp add museion-tools itself once the mode actually serves (non-interactive + self-verifying then — it connects on add). M0 AC gains the negative invariant: no museion-tools entry under mcp_servers after 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.txt in 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.md gains the sync contract. No payload-level version: per-skill metadata.version frontmatter 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-skills only when dir missing; additive per-skill atomic seed per seed-manifest.txt), payload shipped as a folder reference into Resources, onEnginePass seam wired, 10-test fake-binary suite, 23/23 green. Failure alert UX is #48 (renders ProvisioningModel.lastFailure).

Not yet specified

<empty — the fog is clear; the way to the destination is decided>

Out of scope

  • #14 ACP bridge spike (S2.2) — separate effort, own future map.
  • #15 profile backup (S2.6) — separate effort, own future map.
  • Profile credentials/model config — PRD-fixed: user-managed in the profile config; Museion never touches it (#43 finding: a fresh profile inherits shell-env keys until the user sets them).
  • Building the museion-tools MCP server itself (#23) — this map decides only the profile-config seam; #23 builds the server.

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]

## 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 - Plan-don't-do: this map produces decisions, not deliverables. Execution stays with the build session that picks up the spec. - Consult: CONTEXT.md (Museion Profile, Mentor, Engine), PRD.md G3/G3a + S2.1 + "The bundled skill set", ADR-0007, Museion/AGENTS.md (gate seam: `EngineGateView.onEnginePass` fires provisioning in parallel on pass). - Grilling tickets: load grilling + domain-modeling skills. Research tickets: research skill. - Tracker ops: docs/agents/issue-tracker.md (Wayfinding operations). - Charting decisions (2026-09-03 — settled, do not re-ask): - Scope: this map covers #13 only. #14 (bridge spike) and #15 (backup) are separate efforts with their own future maps. - Profile creation runs the Hermes CLI as a subprocess — the engine owns its profile format; Museion never hand-scaffolds it. Exact command semantics: the research ticket below. - Payload ships as a plain Resources directory (copy phase; no zip, no compiled manifest); .DS_Store excluded. - Seeding is per-skill atomic (copy to temp name, rename into place); an interrupted seed is healed by the next launch's additive pass — no journal, no rollback. Tests inject the profile base dir (EngineGateTests fake-HOME pattern). - Payload manifest is curated: 11 mentor skills ship; ste-writing and writing-for-agents stay in ref/ as authoring tools, never seeded. - Failure posture inherited from #41: provisioning failure = separate alert + retry, never re-raises the gate. - MCP seam (#44): provisioning never writes `mcp_servers` — registration is #23's job via `hermes mcp add` once the mode exists. ## Decisions so far - [Research: Hermes CLI profile-create semantics](https://git.babylondreams.de/AlexKucera/museion/issues/43) — `hermes profile create museion` is non-interactive & prompt-free; re-run on existing profile exits 1 with `already exists` on stdout (stderr empty, nothing clobbered); errors go to stdout; fresh profile boots `acp -p` immediately (needs credentials for real turns). - [Grilling: museion-tools profile-config seam at M0](https://git.babylondreams.de/AlexKucera/museion/issues/44) — provisioning writes **nothing** to the profile config: never writes `mcp_servers`, no stub, no entry, even after #23 exists. #23 fires `hermes mcp add museion-tools` itself once the mode actually serves (non-interactive + self-verifying then — it connects on add). M0 AC gains the negative invariant: no `museion-tools` entry under `mcp_servers` after provisioning. ADR-0008 + PRD (G6/S2.4) amended to match. - [Grilling: provisioning failure & retry UX](https://git.babylondreams.de/AlexKucera/museion/issues/45) — 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](https://git.babylondreams.de/AlexKucera/museion/issues/46) — ships as `seed-manifest.txt` in 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.md` gains the sync contract. **No payload-level version**: per-skill `metadata.version` frontmatter 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](https://git.babylondreams.de/AlexKucera/museion/issues/47) — success path landed: `ProfileProvisioner.perform` (create with `--no-alias --no-skills` only when dir missing; additive per-skill atomic seed per seed-manifest.txt), payload shipped as a folder reference into Resources, `onEnginePass` seam wired, 10-test fake-binary suite, 23/23 green. Failure alert UX is #48 (renders `ProvisioningModel.lastFailure`). ## Not yet specified <empty — the fog is clear; the way to the destination is decided> ## Out of scope - #14 ACP bridge spike (S2.2) — separate effort, own future map. - #15 profile backup (S2.6) — separate effort, own future map. - Profile credentials/model config — PRD-fixed: user-managed in the profile config; Museion never touches it (#43 finding: a fresh profile inherits shell-env keys until the user sets them). - Building the museion-tools MCP server itself (#23) — this map decides only the profile-config seam; #23 builds the server. --- ## 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]
AlexKucera added the ready-for-agent label 2026-08-28 18:33:03 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:40 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:41 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:41 +02:00
AlexKucera added a new dependency 2026-08-28 19:18:43 +02:00
AlexKucera added wayfinder:map and removed ready-for-agent labels 2026-09-03 16:33:13 +02:00
Sign in to join this conversation.