ProfileLayout + one config-set rail — the Hermes profile's paths and CLI contract get owners #182

Closed
opened 2026-11-09 11:18:53 +01:00 by AlexKucera · 0 comments
Owner

What to build

From the 2026-11-09 architecture review (settings cluster).

The Hermes profile's directory layout gets a single owner — injectable root, per-profile path builders for the profile dir, .env, the configured marker, the gateway pid, and the skills dir — adopted by the provisioner, the settings writer, and backup/restore. Today the profile-root string repeats five times across three modules and layout facts are scattered; a layout change means finding every path derivation by hand.

The config set CLI contract (argv shape, provider-first ordering because switching providers clears stale inherited values, ✓-line verification) is written once as a thin rail both callers use. Each caller keeps its own key list — the provisioner seeds provider/default/max_tokens; the writer edits provider/default/effort/base_url — only the mechanism and ordering rule unify. The duplicated fake-CLI test stubs and ordering pins collapse into one shared double.

Acceptance criteria

  • One layout module owns the root default and every per-profile path; no literal profile-root string remains outside it
  • One config-set rail owns the mechanism + ordering rule; both callers route through it with their own key lists
  • Provisioner, settings writer, and backup/restore construct paths via the layout; a layout change is one module + one pinning suite
  • The duplicated CLI test doubles collapse into one shared double
  • Full suite green

Blocked by

None (can start immediately).

[Generated by AI]

## What to build From the 2026-11-09 architecture review (settings cluster). The Hermes profile's directory layout gets a **single owner** — injectable root, per-profile path builders for the profile dir, `.env`, the configured marker, the gateway pid, and the skills dir — adopted by the provisioner, the settings writer, and backup/restore. Today the profile-root string repeats five times across three modules and layout facts are scattered; a layout change means finding every path derivation by hand. The `config set` CLI contract (argv shape, provider-first ordering because switching providers clears stale inherited values, ✓-line verification) is written **once** as a thin rail both callers use. Each caller keeps its own key list — the provisioner seeds provider/default/max_tokens; the writer edits provider/default/effort/base_url — only the mechanism and ordering rule unify. The duplicated fake-CLI test stubs and ordering pins collapse into one shared double. ## Acceptance criteria - [ ] One layout module owns the root default and every per-profile path; no literal profile-root string remains outside it - [ ] One config-set rail owns the mechanism + ordering rule; both callers route through it with their own key lists - [ ] Provisioner, settings writer, and backup/restore construct paths via the layout; a layout change is one module + one pinning suite - [ ] The duplicated CLI test doubles collapse into one shared double - [ ] Full suite green ## Blocked by None (can start immediately). [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-09 11:18:56 +01:00
Sign in to join this conversation.