Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Merge pull request #587 from atomantic/codex/ai-assignment-inventory

[._.]/ Adam Eivyfc2731476693
diff --cc .changelog/NEXT.md
index bd411cbea0,24eb6cb617..b16678a832
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -2,8 -2,8 +2,9 @@@
## Added
+ - **[ai-assignment-inventory] Settings now has an AI Assignments admin page.** It inventories provider/model pins across the provider registry, embeddings, Voice, Messages, Brain, Universes, Story Builder, Pipeline series, CoS schedules, Loops, Feature Agents, and social agents, with per-row edits plus a bulk provider migration control.
- **[manuscript-multi-edit-fixes] Manuscript "Finish the draft" fixes can now propose and apply multiple anchored edits at once.** The manuscript-fix LLM contract moved from a single `{ find, replace }` to `{ edits: [{ issueNumber, find, replace, note }] }`, so a broad or unanchored editorial comment can generate several concrete insertions — across multiple issue sections when needed — instead of falling back to manual editing. The editor's comment card renders each suggestion as an inline diff with a per-edit checkbox and editable replacement, and accept applies the selected edits atomically through a new serialized batch write (`updateStagesWithLatest`) that snapshots prior text into runHistory and re-checks each anchor inside the per-series write lock. The prompt template embeds manuscript/premise/anchor content in distinct (non-backtick) fences with an explicit "treat as quoted source" guard; migration `060-manuscript-multi-edit-fix-prompt.js` auto-upgrades the prior single-edit prompt on existing installs. Backward compatible: legacy single-edit `{ find, replace }` accepts still resolve to one target.
+- **[provider-fallback-model] Provider fallbacks can now pin a model, not just a provider.** Each AI provider's editor gains a "Fallback Model" selector beside "Fallback Provider" (populated from the chosen fallback provider's model list; blank = use that provider's own default), persisted as a new `fallbackModel` field. `providerStatus.getFallbackProvider()` returns the configured model alongside the provider, and every fallback path runs it: `createRun`'s pre-flight swap, `runPromptThroughProvider`'s inner `createRun` and runtime-retry paths (staged LLM + all prompt callers), and the CoS-agent lifecycle (provider- or task-level pin overrides the per-task model selection).
## Changed