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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
changelog: note provider/model pairing fix for extract-canon + extract-scenes
[._.]/ Adam Eivy17585e53b441
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1c05dee722..ad92543644 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -54,7 +54,7 @@## Fixed-- **[canon-extraction-failure-retry] Failed prose→canon extraction is now retained and retryable with a different model.** When a pipeline issue's prose finishes, PortOS auto-extracts characters / places / objects into the linked universe. A provider failure (e.g. Codex safety-refusing the `object` kind, a Claude `401`, or a malformed-JSON response) used to be swallowed — and because all three kinds ran in one `Promise.all`, a single failing kind discarded the characters + places that *did* extract. Now extraction is per-kind resilient: the kinds that succeed are merged, the rest are flagged, and the outcome (`ok` / `partial` / `failed` + which kinds failed, the error, and the provider/model used) is persisted on the prose stage so it survives a reload. The Nouns stage surfaces a banner for partial/failed extractions and adds a provider/model picker next to "Extract from prose" (defaulting to the series' configured LLM) so you can keep retrying different models until the failed kinds come through — the entries that already landed are kept. The manual extract now routes through the pipeline endpoint (which accepts `prose` alongside `comicScript`/`teleplay` and a `model` override) so both the auto and manual paths stamp the same marker.+- **[canon-extraction-failure-retry] Failed prose→canon extraction is now retained and retryable with a different model.** When a pipeline issue's prose finishes, PortOS auto-extracts characters / places / objects into the linked universe. A provider failure (e.g. Codex safety-refusing the `object` kind, a Claude `401`, or a malformed-JSON response) used to be swallowed — and because all three kinds ran in one `Promise.all`, a single failing kind discarded the characters + places that *did* extract. Now extraction is per-kind resilient: the kinds that succeed are merged, the rest are flagged, and the outcome (`ok` / `partial` / `failed` + which kinds failed, the error, and the provider/model used) is persisted on the prose stage so it survives a reload. The Nouns stage surfaces a banner for partial/failed extractions and adds a provider/model picker next to "Extract from prose" (defaulting to the series' configured LLM) so you can keep retrying different models until the failed kinds come through — the entries that already landed are kept. The manual extract now routes through the pipeline endpoint (which accepts `prose` alongside `comicScript`/`teleplay` and a `model` override) so both the auto and manual paths stamp the same marker. Both the `extract-canon` and storyboards `extract-scenes` routes also stop pairing an override provider with the series' stored model id (a model id is provider-specific) — switching providers in a retry now correctly resolves the new provider's default model instead of forwarding e.g. an OpenAI model id to Anthropic.- **[catalog-character-sheet-enrichment] Catalog character stats now display.** The catalog detail page's read-only stats list read each stat's `.key` field, but the storyBible canon shape stores stats as `{ label, value }` — so every stat rendered with a blank label. The new editable stat editor and the read path both standardize on `.label`, so stats finally show (and edit) correctly.- **[browser-navigate-ssrf-guard] SSRF guard on the browser navigate route.** `POST /api/browser/navigate` validated its URL with a bare `z.string().url()`, so `file://`, loopback, link-local, and cloud-metadata (`169.254.169.254`) targets were reachable — a redirect or agent-driven navigation could turn it into local-file exfiltration or a metadata-endpoint hit. It now reuses the catalog ingest guard (`isSafeIngestUrl`): http(s) only, with loopback / link-local / metadata hosts blocked (including IPv4-mapped-IPv6 bypass forms like `[::ffff:127.0.0.1]`). Private/LAN and Tailscale hosts stay allowed; `localhost`/`127.x` are now blocked, so navigate a local app by its LAN IP/hostname. Bad input also returns a clean 400 instead of a 500. The shared host guard was also hardened against two literal bypasses (deprecated IPv4-compatible IPv6 like `[::127.0.0.1]`, and trailing-FQDN-dot hosts like `localhost.`), which strengthens catalog URL ingest as well.- **[catalog round-trip + cast multi-role] Catalog export → re-import keeps ref links, scraps, and non-primary payload keys; Cast unlink is role-precise.** Re-importing a JSON export bundle through Bulk Import now recreates the bundle's slice membership: the parser carries the bundle's own `ref` plus each row's `roleForExportedRef`, and the route falls back to them when no explicit `defaults.*Ref` override is supplied — so a re-imported slice is no longer invisible to "Appears in" and to future slice exports. The markdown parser now recognizes the ` ```json ` payload fence and the `### Scraps` subsection as body terminators and round-trips them into `payload.*` / a sibling `scraps[]` instead of polluting the primary description/summary with fence text. The Cast (from Catalog) panel's unlink now removes only the `(ingredient, role)` row that was unlinked, not every row sharing the ingredient id — correct when the same ingredient is linked to one record under multiple roles.