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
Merge remote-tracking branch 'origin/main' into next/issue-2377
[._.]/ Adam Eivy33b4f46bda9f
diff --cc .changelog/NEXT.mdindex a54aa39fdd,b84a0eb987..fbe594cf5e--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -2,8 -2,8 +2,10 @@@## Changes+- **The Claude reviewer now takes an optional model, including an Ollama-backed Claude for local-only setups (#2377).** Code Review Defaults gains a **Claude model** field alongside the existing Codex one: pick a Claude tier, or — if you run `claude` pointed at a local Ollama daemon — type or pick one of your installed Ollama models, and the Review Loop invokes the reviewer as `claude --model <id>`. Under the hood the codex-only model threading is generalized into a reviewer-keyed model map, so any CLI reviewer that supports `--model` (today: Codex and Claude) threads its configured model through the review-loop follow-up with a single code path instead of a per-reviewer special case. Older in-flight review tasks that stored only the legacy Codex tier still work unchanged.++ - **The MIDI transcription button now shows a distinct "Downloading model…" phase with a toast, instead of an opaque multi-minute spinner.** MuScriptor auto-downloads its (gated, multi-hundred-MB) weights from HuggingFace on first use, but the sidecar reported that first-run download as the same generic `load-model` stage as a fast cached load — so the Transcribe MIDI / MIDI buttons just sat in an animation state with no explanation for minutes. `transcribe_muscriptor.py` now peeks at the HF hub cache and emits a separate `download-model` STAGE only when a download is actually about to happen; the shared `useMidiTranscription` hook maps it to a "Downloading model…" label (now exposed as a ready-to-render `stageLabel` both the Rounds and Music Video surfaces use — the Music Video button previously showed only a static "MIDI · Cancel" with no progress) and fires a one-time toast ("Downloading the MuScriptor model — first use only, this can take a few minutes.") when the download begins. Cache detection is best-effort — a wrong guess only mislabels the stage, never fails the transcription.+- **The offline service worker's cold-first-visit route gap is now a documented, accepted trade-off rather than an open question (#2424).** A route visited *only* during the very first page load (before the SW registers at `window.load`) has an uncached chunk, so an offline reload of exactly that route boots the shell but can't render until the route is visited online once more. Fully closing this would require a build-time precache manifest (workbox / vite-plugin-pwa or an emitted asset-manifest) that precaches *every* build chunk upfront — which spends first-visit bandwidth on routes the user may never open, directly against this SW's low-bandwidth goal. For a single-user app the mitigation is a one-time online load per route, so the limitation is deliberately left in place; the reasoning is now recorded inline in `client/public/sw.js` so it doesn't dangle-point at a closed issue. No behavior change.- **CoS task-learning success rates now decay via a recency window, so a since-resolved failure burst stops signaling Layered Intelligence that work is needed (#2460).** The `byTaskType` counters in `data/cos/learning.json` are lifetime-cumulative and never age out — a provider misconfig or PTY-capture artifacts recorded as failures on a now-retired task type permanently depressed the success rate the LI reasoner reads via its `cosMetrics` source (default-on for PortOS), long after the root cause was fixed. Each task-type bucket now also carries a bounded `recentOutcomes` ring (`{ t, s }`, cap 50, mirroring the `failureSignatures.recent` precedent) that `recordTaskCompletion` appends to; a new pure `computeWindowedStats` derives a `recentSuccessRate` windowed by BOTH count and age (defaults: last 30 runs / 30 days, configurable), exposed via `getWindowedStats(taskType, { maxCount, maxAgeMs })`. The LI `cosMetrics` source now surfaces lifetime and windowed rates labeled distinctly, so a resolved failure burst self-heals without a manual `resetTaskTypeLearning`, while the lifetime counters stay intact for the dashboard/telemetry views. `recentSuccessRate` uses a `null` sentinel (never a fabricated `0%`) when the window has no samples, so the reasoner falls back to the lifetime rate. Store version bumped 1→2 with an idempotent migration (188) that initializes an EMPTY ring per task type — deliberately not backfilled from failure-only history, which would fabricate an all-failure window.