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
docs([issue-2800]): log shared LI taxonomy-tally extraction to changelog
[._.]/ Adam Eivyd23ec83e1e36
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 8b409474cc..56e1793060 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -72,6 +72,8 @@- **[issue-2775] De-flaked the MidiVisualization "Space toggles playback" test.** The MIDI-visualization component tests asserted on the transport button's *optimistic* `playing` state and raced the synth player's async lifecycle (`play()`'s `await ctx.resume()` microtask hop and the immediate `totalSec <= 0 → onEnded` reset), so `findByLabelText('Pause playback')` failed intermittently in CI and passed on re-run. `useMidiPlayer` is now mocked in the component test with a synchronous state-flip stub, so the three chrome-wiring assertions (playing → label, click/Space → toggle, collapse → teardown) are deterministic and no longer depend on audio timing. The hook's real async behavior stays covered directly in `useMidiPlayer.test.jsx` and the player lib in `midiPlayback.test.js`, so no coverage is lost. (`client/src/components/songs/MidiVisualization.test.jsx`)+- **[issue-2800] Extracted a shared taxonomy-tally/render engine for the two Layered Intelligence classifiers.** The rejection-reason taxonomy (#2689) and the execution-failure taxonomy (#2764 §1) carried near-verbatim copies of the same counting + rendering engine — the Map-counting summarize with a commonest-first sort and taxonomy-order tie-break over the three-bucket `{entries, unknown, unclassified, diagnosed, total}` discipline, the top-N-line renderer that names every non-zero gap, and a duplicated private `normalizeToken` — so a tie-break or gap-wording fix had to be applied in two places or silently drift. That engine now lives once in a new pure leaf, `server/lib/taxonomyTally.js`, parameterized by `{ predicate, select, field, vocabulary, sentinel, glossFn, gapWording }`; each taxonomy module keeps only its vocabulary, gloss map, and classifier and binds the engine via `createTaxonomyTally` into its existing `summarize`/`format` exports. `normalizeToken` is shared from the new leaf, which imports nothing from the LI graph, so the two taxonomy modules stay leaves (no cross-import between them). Every exported name, signature, and output shape is unchanged — the existing rejection and execution-failure suites stay green and every downstream consumer is untouched. (`server/lib/taxonomyTally.js`, `server/lib/taxonomyTally.test.js`, `server/services/layeredIntelligenceRejections.js`, `server/services/layeredIntelligenceExecutionFailures.js`)+- **[issue-2706] Stage-seeding migrations now guard their own `data.reference` assets.** Migrations 189 (model-personality), 094 (object-attachment checks), and 182 (CWQE quality) each seed stage prompts on upgrade but shipped without a colocated test, so a rename or removal of a reference template would have surfaced only at runtime as "Stage not found" on a fresh install. Each now has a `.test.js` asserting it seeds when absent, no-ops on re-run, never clobbers a customized template or hand-tuned config entry, and — the point — that every `data.reference/prompts/stages/*.md` template it names and its `stage-config.json` entry actually ship. The guard is anchored to the migration's own stage list (now exposed on the object the seed helper returns), so adding a stage without shipping its template fails the suite instead of leaving it green against a stale hand-copied list. The three suites collapse to one `runSeedStageMigrationTests({ migration, stages, prefix })` call apiece via a new shared helper — the seed-family analogue of `_testHelpers.js`'s `runPromptMigrationTests`. (`scripts/migrations/_seedStageTestHelpers.js`)## Fixed