Commit Graph

8 Commits

Author SHA1 Message Date
Sora-bluesky
9085ef967c fix(profiles): sweep the remaining pre-write mkdirs under the deleted-profile guard
A long-lived serve process keeps a deleted profile as the context home of threads
that outlive the delete. A bare `mkdir(parents=True)` right before an atomic write
brings `profiles/<name>/` back after `hermes profile delete` has written the
tombstone and removed the tree.

The writers in `utils` and the seven callers named in #112592 are guarded by the
preceding commits; this one applies the same `mkdir_under_hermes_home` idiom to the
other pre-write directory creations found by the same mechanical rule (auth,
personality, plugin catalog, skills sync, tool discovery cache, platform adapters,
memory plugins, local runtime supervisor, process identity, breadcrumbs). The two
sites that pass `mode=` keep their mkdir behind `assert_named_profile_home_live`.
The guard is a no-op unless the target has a provable `profiles/<name>` ancestor.

Salvaged from #112596 (30-file sweep) on top of #112594 / #112601; the overlapping
files were resolved to the already-landed versions.
2026-09-16 00:32:15 -07:00
Teknium
086859bdfa refactor(openviking): move ovcli profile write into the setup wizard, simplify batch post loop 2026-09-03 00:07:42 -07:00
Teknium
1e8169a518 refactor(openviking): move setup-only writers into _setup, dataclass _TurnUpload 2026-09-03 00:01:59 -07:00
Teknium
23976c6218 refactor(openviking): fold setup wizard one-site helpers into their menus 2026-09-02 23:53:12 -07:00
Teknium
29984225d5 refactor(openviking): one _state_path for markers/locks, fold latch/claim pairs, exception-unwind setup loop 2026-09-02 22:42:08 -07:00
Teknium
5b2c2dd62f refactor(openviking): fold health-payload predicates into the identity probe, merge emit/secret-file helpers 2026-09-02 22:09:36 -07:00
Teknium
7760efd76e refactor(openviking): compact setup wizard — shared cancel option, _say, inline profile validation 2026-09-02 21:34:04 -07:00
Teknium
365485a9f6 refactor(plugins/memory): openviking — remove dead search/rebuild/migrate paths, extract setup/CLI with dedupe, action dispatch tables 2026-09-02 13:30:09 -07:00