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
age the inventory's provenance line and harden the manifest recorders' no-throw contract
[._.]/ Adam Eivy1685907ee966
diff --git a/client/src/components/models/ModelStatusTab.test.jsx b/client/src/components/models/ModelStatusTab.test.jsxindex e06f187d06..cd0e33288e 100644--- a/client/src/components/models/ModelStatusTab.test.jsx+++ b/client/src/components/models/ModelStatusTab.test.jsx@@ -143,6 +143,6 @@ describe('ModelStatusTab', () => {// The rescan is what drops a model deleted outside PortOS — a row that// survived it would still offer a delete button for weights that are gone.expect(screen.queryByText('tracked-example')).not.toBeInTheDocument();- expect(screen.getByText(/scanned just now/i)).toBeInTheDocument();+ expect(screen.getByText(/· scanned .*(ago|just now)/i)).toBeInTheDocument();});});diff --git a/client/src/components/models/ModelsPanel.jsx b/client/src/components/models/ModelsPanel.jsxindex d9fe8308c3..1c80326758 100644--- a/client/src/components/models/ModelsPanel.jsx+++ b/client/src/components/models/ModelsPanel.jsx@@ -108,9 +108,7 @@ export default function ModelsPanel({ report, loading, initializing = false, onR</div><p className="mt-1 text-xs text-gray-500">{report.models.downloaded.length} item{report.models.downloaded.length === 1 ? '' : 's'} · {Number.isFinite(report.models.totals.all) ? formatBytes(report.models.totals.all) : 'size unavailable'}- {fromManifest- ? ` · tracked, last verified ${timeAgo(report.reconciledAt)}`- : ' · scanned just now'}+ {` · ${fromManifest ? 'tracked, last verified' : 'scanned'} ${timeAgo(report.reconciledAt || report.generatedAt)}`}</p></div><div className="flex flex-wrap items-center gap-2">diff --git a/server/services/modelManifest.js b/server/services/modelManifest.jsindex 4accd03527..cecaf3c896 100644--- a/server/services/modelManifest.js+++ b/server/services/modelManifest.js@@ -158,7 +158,10 @@ export async function getModelManifest() {* @param {string} [row.source] How PortOS learned about it ('install' by default)* @returns {Promise<boolean>} Whether the manifest now holds the entry*/-export function recordModelInstall({ source = 'install', ...row }) {+export function recordModelInstall({ source = 'install', ...row } = {}) {+ // Guards the whole contract, not just a typo: a row builder answers `id: null`+ // for a backend or key it could not use, and this function promises never to+ // fail the install it is describing.if (!row.id) return Promise.resolve(false);return mutateManifest(`Could not record model install ${row.id}`, (manifest) => {const previous = manifest.models[row.id];@@ -186,7 +189,7 @@ export function recordModelInstall({ source = 'install', ...row }) {* @param {string} input.key The backend's own identifier for the weights* @returns {Promise<boolean>} Whether an entry was actually removed*/-export function recordModelUninstall({ backend, key }) {+export function recordModelUninstall({ backend, key } = {}) {const id = modelInventoryId(backend, key);if (!id) return Promise.resolve(false);return mutateManifest(`Could not record model uninstall ${id}`, (manifest) => {diff --git a/server/services/systemResources.js b/server/services/systemResources.jsindex 7039cb97b0..6b01592d51 100644--- a/server/services/systemResources.js+++ b/server/services/systemResources.js@@ -602,8 +602,8 @@ export function getSystemResourceReport({ force = false } = {}) {* This is what Models → Status loads on arrival. It is shaped as a PARTIAL system* resource report rather than a bespoke payload so the page renders it through the* same component that renders a live scan: the two differ in `inventorySource` and- * in the fields a scan alone can supply (residency, duplicates, per-store totals- * for stores whose rows the manifest may not cover).+ * in the fields only a scan can supply — live residency, and the duplicate-weight+ * report, whose scan is the most expensive walk of them all.** `reconciledAt: null` means no scan has ever reconciled this install — the page* shows its "run the inventory" prompt rather than claiming an empty machine.