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

docs: stop telling contributors to regenerate a deleted media-models seed and fix stale file references

Adam Eivy49444242a204
diff --git a/client/src/hooks/README.md b/client/src/hooks/README.md
index 8614cd1a23..8c6b7733fe 100644
--- a/client/src/hooks/README.md
+++ b/client/src/hooks/README.md
@@ -141,7 +141,7 @@ grep -i "what you want to do" client/src/hooks/README.md
| `useFirstTouchHint` | `{ visible, showOnFirstTouch }` — reveals a brief one-time touch gesture hint, then auto-hides it. | 3D canvases whose primary one-finger gesture needs an initial explanation. |
| `useKeyCapture` | `useKeyCapture({ enabled?, enabledInDialog?, onKeyDown, onKeyUp })` — capture-phase window listener whose handler *claims* an event by returning `true`; a claimed event is `preventDefault`ed AND `stopImmediatePropagation`ed so no app-global bubble handler sees it. Which events are offered is decided by the shared `shouldIgnoreGlobalKey` predicate (`lib/a11yKeyboard.js`): never events from an editable field, never Space on a focused button (so native activation still works), and not while an `aria-modal` dialog is open (`{ enabledInDialog: true }` for a surface that lives INSIDE one — same name and default as `useKeyboardShortcuts`). Auto-repeat and ⌘/Ctrl/Alt chords deliberately DO still arrive, because a claiming surface tracks press/release itself. Each listener subscribes only when its handler is supplied. | A surface that must own a key an app-global handler already binds — chiefly Space, which the voice widget uses for push-to-talk: the POST cognitive drills (n-back, go/no-go, reaction-time), the Morse keyer, RapidReader, the OpenWorld playback transport, and the exploration-mode jump key. Not for ordinary shortcuts (that is `useKeyboardShortcuts`). |
| `useKeyboardShortcuts` | `useKeyboardShortcuts(active, bindings, opts?)` — fire a `{ key: handler }` map while `active`; ignores whatever the shared `shouldIgnoreGlobalKey` predicate (`lib/a11yKeyboard.js`) rules out — editable fields, Space on a focused button, ⌘/Ctrl/Alt chords, OS key auto-repeat (`{ ignoreRepeat: false }` to opt back in), and any keystroke while an `aria-modal` dialog is open (`{ enabledInDialog: true }` for a modal-owned shortcut); a falsy handler disables that key. | Single-surface action shortcuts (editorial comment card prev/next + accept/dismiss/generate, #1603). Not for held-key game input. |
-| `useHfTokenStatus` | Reads the central HuggingFace token status (`GET /image-gen/setup/hf-token-status` → `server/lib/hfToken.js`: stored → env → `hf auth login`). Returns `{ present, source, refresh }` where `present` is TRI-state — `null` means "unknown/failed", not "absent" — so a slow fetch can't flash a token nag at a user who has one. `{ enabled }` gates the fetch (false resets to unknown, so a modal re-checks per open); `{ errorAs: 'absent' }` opts a surface into offering the paste form when the status call fails. | Any gated-HuggingFace surface (3D page, MIDI gated modal, Image Gen banners) — use this instead of re-rolling the fetch, or the same blip renders differently per page. |
+| `useHfTokenStatus` | Reads the central HuggingFace token status (`GET /image-gen/setup/hf-token-status` → `server/services/hfToken.js`: stored → env → `hf auth login`). Returns `{ present, source, refresh }` where `present` is TRI-state — `null` means "unknown/failed", not "absent" — so a slow fetch can't flash a token nag at a user who has one. `{ enabled }` gates the fetch (false resets to unknown, so a modal re-checks per open); `{ errorAs: 'absent' }` opts a surface into offering the paste form when the status call fails. | Any gated-HuggingFace surface (3D page, MIDI gated modal, Image Gen banners) — use this instead of re-rolling the fetch, or the same blip renders differently per page. |
| `useKeyboardHelp` | Esc closes, even from inputs/textareas. | Help/cheatsheet modals. |
| `useLiveSuggest` | Post-typing debounce for an imperative panel trigger: `{ registerTrigger, scheduleSuggest }` re-arms one `debounceMs` timer per keystroke and fires the registered fn only while `enabled` and still mounted. | An editor that asks a sibling AI panel to suggest once the writer pauses (WorkEditor ↔ LiveContinuationPanel). |
| `useLockToggle` | Optimistic-PATCH lock toggle. | New "lock this field/stage/arc" button — use this, do not re-implement. |
diff --git a/docs/features/identity-system.md b/docs/features/identity-system.md
index 8600b38f86..d633884ff4 100644
--- a/docs/features/identity-system.md
+++ b/docs/features/identity-system.md
@@ -591,10 +591,7 @@ CoS injects identity context into agent briefings when relevant
- `server/routes/identity.js` -- API routes
- `server/lib/identityValidation.js` -- Zod schemas
- `client/src/components/digital-twin/tabs/IdentityTab.jsx` -- dashboard
-- `client/src/components/digital-twin/identity/ChronotypeEditor.jsx`
-- `client/src/components/digital-twin/identity/TasteQuestionnaire.jsx`
-- `client/src/components/digital-twin/identity/GoalTracker.jsx`
-- `client/src/components/digital-twin/identity/CrossInsights.jsx`
+- The chronotype, taste, goal, and cross-insight panels were folded into `IdentityTab.jsx`, `TasteTab.jsx`, and `GoalsTab.jsx` under `tabs/`; the planned `digital-twin/identity/` component directory was never created
**Modified files:**
- `client/src/components/digital-twin/constants.js` -- add Identity tab
diff --git a/docs/features/video-speed-profiles.md b/docs/features/video-speed-profiles.md
index 5d6fbf8206..ce5b4c795a 100644
--- a/docs/features/video-speed-profiles.md
+++ b/docs/features/video-speed-profiles.md
@@ -133,8 +133,12 @@ treats a confidently wrong number as strictly worse than none.
2. Set `modes` to only the modes that route through the pipeline you measured.
3. Name any adapter the schedule depends on in `requiresAdapter`, so a pack
without it degrades loudly instead of rendering slower than the label claims.
-4. Regenerate `data.reference/media-models.json` and extend migration 295's
- coverage if you are shipping to an entry id it does not already reach.
+4. Nothing to regenerate for fresh installs: there is no `data.reference/media-models.json`
+ seed (removed in #8443). `DEFAULT_REGISTRY` in `server/lib/mediaModels.js` runs the
+ shipped entries through `applyVideoSpeedProfiles`, so a fresh install picks the new
+ profile up from the table above. Extend migration 295's coverage only if you are
+ shipping to an entry id it does not already reach, so existing installs get the profile
+ written into their `data/media-models.json`.
`validateSpeedProfileTable()` / `sanitizeSpeedProfiles()` warn about and strip a
malformed profile at load, so a hand-edited `data/media-models.json` can never
diff --git a/server/lib/README.md b/server/lib/README.md
index 64d97212d7..5e4d90a4dd 100644
--- a/server/lib/README.md
+++ b/server/lib/README.md
@@ -205,7 +205,7 @@ The barrel `server/lib/index.js` is a machine-checkable enumeration of every pub
| `universeMarkdown.js` | `universeToMarkdown(record)` / `parseUniverseMarkdown(text)` for the Universe Builder's Markdown world-bible export and import, plus safe download filename helpers. |
| `universePromptRenderers.js` | Renderers that turn a universe's `categories` map + canon into prompt context, including the authored character-engine block and the shared story canon digest. |
| `universeExpandMerge.js` | Pure lock/preserve/dedupe merge of a Universe Builder expansion into a universe draft: `mergeExpandIntoDraft(draft, result, {mergeInfluences, ensureDraftCategories})`, `extractPreservedFromDraft`, `mergeVariations`, `mergeCanonByName` (existing wins; name/alias/slugline identity). The one definition shared by the Universe Builder client (`client/src/lib/universeBuilderExpand.js` re-exports it) and the Story Builder server step. |
-| `universeVisualStyle.js` | The style a universe contributes to an IMAGE prompt: `buildVisualStyleClause(universe, {override, mode})` (curated `influences.embrace` tokens + a series `stylePromptOverride`, NEVER the free-text `styleNotes`, which is writing-stage direction), `universeStylePreset(universe, series)` (the `{prompt, negativePrompt}` preset `composeStyledPrompt` consumes — the one definition shared by the browser and the FableLoom visual-canon compiler, `client/src/lib/universeStylePreset.js` re-exports it), `universeAestheticLine` (the labeled variant canon sheet/LoRA renders lead with), `universeVisualStyleTokens`, `joinInfluenceList` (thin trim+join over one chip-token list, re-exported by `client/src/lib/joinInfluenceList.js` and `server/services/universeBuilder/compile.js`), `splitPromptTokens`, `stripStyleClause(text, clause)` (removes the copy the browser already prefixed, so the compiler keeps the LEADING one — matched on the joined clause so a token with its own punctuation like `M.C. Escher` still matches) and `mergeNegativePromptTokens` (token-level union of comma-joined negatives). |
+| `universeVisualStyle.js` | The style a universe contributes to an IMAGE prompt: `buildVisualStyleClause(universe, {override, mode})` (curated `influences.embrace` tokens + a series `stylePromptOverride`, NEVER the free-text `styleNotes`, which is writing-stage direction), `universeStylePreset(universe, series)` (the `{prompt, negativePrompt}` preset `composeStyledPrompt` consumes — the one definition shared by the browser and the FableLoom visual-canon compiler, `client/src/lib/universeStylePreset.js` re-exports it), `universeAestheticLine` (the labeled variant canon sheet/LoRA renders lead with), `universeVisualStyleTokens`, `joinInfluenceList` (thin trim+join over one chip-token list, re-exported by `server/services/universeBuilder/compile.js`), `splitPromptTokens`, `stripStyleClause(text, clause)` (removes the copy the browser already prefixed, so the compiler keeps the LEADING one — matched on the joined clause so a token with its own punctuation like `M.C. Escher` still matches) and `mergeNegativePromptTokens` (token-level union of comma-joined negatives). |
| `writersRoomPresets.js` | Writers Room enums (WORK_KINDS, WORK_STATUSES, ANALYSIS_KINDS). |
| `writersRoomStylePresets.js` | Curated style presets for storyboards + universe. |