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: note the tag-taxonomy registration in the sync friendlify changelog entry (#3942)

[._.]/ Adam Eivyde03296c8907
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index f756d9246b..59625c79e8 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -79,4 +79,4 @@
- Saving a universe no longer issues one database read per canon entry. `projectToCatalog` — which runs synchronously inside `updateUniverse` to keep each catalog row in step with its embedded character/place/object entry — called `getIngredient` once per entry just to compare timestamps, so a universe with 50 canon items cost 50 single-row `SELECT`s before the first write, on the request the user is waiting on. The freshness lookup is now a single batched query (`getIngredientTimestamps`, `WHERE id = ANY($1)`, two columns rather than the whole jsonb row), with the loop-break guard applied before the batch so a guarded ingredient is never fetched at all. The LWW rule is unchanged (an entry at least as fresh as its row wins; an older one is skipped), missing rows still count as skipped instead of being confused with stale ones, and a per-entry write failure is still logged and skipped without aborting the rest of the pass.
- Unsaved Quota Burn edits are no longer lost silently when you navigate away. The page has no Save button — edits persist on a 500ms trailing edge — and the dismount flush that catches everything typed inside that window swallowed its own failure with `.catch(() => {})`, so leaving the page while the header still read "Saving changes…" dropped a pasted work prompt or a changed interval for good, with no toast and nothing on screen having said so. A failed flush now raises an error toast naming what happened and keeps the patch in tab-scoped `sessionStorage`; the next visit that successfully reads a plan replays it through the normal save path, so the edits come back on screen AND get re-sent to the server instead of waiting for the user to retype the field. A visit whose own read failed leaves the stash alone for the visit after it, and a stash that is not a patch object is ignored rather than replayed into a 400.
- Clearing a Quota Burn number box no longer discards the edit without saying so. `NumberField` held an uncommitted draft so an empty box could not commit `Number('') === 0` into a 400, but on blur it simply dropped the draft and snapped the input back to the stored value — a user who cleared "Check every (minutes)" or "Reserve (%)" and clicked away saw the old number reappear with nothing on screen explaining why. An empty, non-numeric or out-of-range draft now stays on screen next to an inline error naming what the field accepts ("Must be between 5 and 720"), wired up with `aria-invalid`/`aria-describedby`; the error clears the moment the draft is committable again, and only a committable draft is released back to the stored value. Out-of-range numbers are also no longer committed mid-typing, so a 721-minute interval is caught in the field rather than by the server.
-- Applying an inbound catalog sync envelope no longer writes each legacy-tagged ingredient twice. The friendlify-on-sync repair — which rewrites an older peer's raw `from-universe` / `universe:<id>` tags to the friendly universe name — ran as a follow-up `updateIngredient` after `upsertIngredientFromPeer` had already written the row, so an envelope carrying N such ingredients cost 2N queries and left a redundant `catalog_ingredient_revisions` entry for every one of them. The rewrite now happens on the row before it is upserted, so it lands cleaned in a single write with no extra revision history. Behavior is otherwise unchanged: the universe name map is still built lazily and only once per apply, a row whose universe is not resolvable locally still lands with its machine tags intact for a later pass, an LWW skip still touches nothing, and a failure to build the map is isolated per row (reported as `ingredient-prepare`) with the raw row still applied.
+- Applying an inbound catalog sync envelope no longer writes each legacy-tagged ingredient twice. The friendlify-on-sync repair — which rewrites an older peer's raw `from-universe` / `universe:<id>` tags to the friendly universe name — ran as a follow-up `updateIngredient` after `upsertIngredientFromPeer` had already written the row, so an envelope carrying N such ingredients cost 2N queries and left a redundant `catalog_ingredient_revisions` entry for every one of them. The rewrite now happens on the row before it is upserted, so it lands cleaned in a single write with no extra revision history. Behavior is otherwise unchanged: the universe name map is still built lazily and only once per apply, a row whose universe is not resolvable locally still lands with its machine tags intact for a later pass, an LWW skip still touches nothing, and a failure to build the map is isolated per row (reported as `ingredient-prepare`) with the raw row still applied. The friendly universe name — minted locally rather than carried by the peer — is still registered in the canonical tag taxonomy so autocomplete can suggest it, but now only for the label the rewrite adds, once per apply, instead of re-normalizing every row's whole tag array.