memory: KB-bridge RETIRED (native #383/b167 live) + Zonos WAV-header fix

This commit is contained in:
2026-08-01 23:26:14 -07:00
parent 6c3c08b10f
commit 608e9a54fd
+15 -10
View File
@@ -82,16 +82,21 @@ Contract `docs/contracts/donut_voiced_interview.contract.md`. **NOT pushed** (op
- **OWED (still):** P&P verification re-run to infra-ops on thread `01KYZX0JM1A1AF8ETMFV0AP7E9` (#382 fix deployed b166).
Partial signal: Mimir DOES ground in DCC fiction wing now (bridge smoke), but the specific P&P-dismiss shape unrun.
**Prior design detail → `persistent-memory.d/2026-08-01-donut-voiced-interview-build.md`.**
- **🔜 KB-BRIDGE RETIREMENT IMMINENT — WT #383 (native Tier-3 `reference_knowledge`) CUT as v1.0.0b167**
(worldtree-dev, thread `01KZ0BZDCE1GKK724EK2R458PV`, 2026-08-02). NOT yet deployed — the push-to-main + :8081
promotion is the OPERATOR's call; worldtree-dev pings when live on :8081, then I retire same-day. Retirement =
ONE commit (INV-KB-1): delete `kb_bridge.py` + the one `server.py` call-site (`wt.stream_turn` memory_context
param stays inert). #383 gives every Tier-3 agent the `reference_knowledge` tool automatically (no define change),
#361 evidence-packet shape (note_id+path provenance, confidence bucket, answer null), server-side grounding rule
("quote in voice, don't narrate metadata" — aligns with Donut's persona), fail-soft, wing-scoped to ["fiction"]
(DCC) deployment-owned. **This RESOLVES the KB-bridge disposition → the bridge is a provably short-lived interim;
ship-as-is is right, retire on the deploy ping.** Acked to worldtree-dev (`01KZ0C1KPR9DDQ37WRM1P793CP`).
FOOT-GUN (#381 interplay): freshly-ingested content needs the restart-after-ingest runbook to be Tier-3-recallable.
- ** KB-BRIDGE RETIRED (`09e4257`) — WT #383 native Tier-3 `reference_knowledge` DEPLOYED as v1.0.0b167.**
Operator greenlit the #383 deploy (relayed `01KZ0HPT6J...`); worldtree-dev deployed to :8081+demo, validated
`builtin_tools=['reference_knowledge']` on both, pinged live (`01KZ0HTJ5M...`). LIVE-VERIFIED before deletion:
Donut called the native tool + grounded in DCC Collapse content in-voice (degrades gracefully on absent content).
Deleted `kb_bridge.py` + `test_kb_bridge.py` + the one `server.py` call-site + the SSE keepalive + the bridge-only
agent_id plumbing (TurnHandle.agent_id, submit read, index.html turn-body). KEPT `wt.stream_turn`'s memory_context
param (inert SDK-parity) + the non-str-content 400 guard. Contract marks slice-3 RETIRED (historical record kept).
#382/#383 both closed. **Native tool is strictly better than the bridge** (in-turn, provenance packets, server-side
grounding rule, fail-soft, no separate consult). FOOT-GUN (#381): freshly-ingested content needs the
restart-after-ingest runbook to be Tier-3-recallable.
- **✅ Zonos WAV-header fix (`6c3c08b`) — operator-reported "browser wants wav, zonos sends pcm."** The gateway
emits a STREAMING wav header (RIFF size @4 + data size both `0xFFFFFFFF` = unknown length); a browser `<audio>`
can't play a finite blob with an unknown-length header. `tts.py:_finalize_wav_header` rewrites both size fields
with the real byte counts (clip is buffered server-side). Live-verified: `wave.open` decodes it (1ch/16bit/44.1kHz).
Booth: `http://10.100.10.50:8090/b/donut-voiced/` (donut-wav-fixed.wav).
**✅ SHIPPED + PUSHED since v0.22.0 (origin at `14bbc2b`):** the worldtree-sdk cutover (#20, **v0.22.0**, 7 slices,
494 green — the big one) + **bifrost 1.1.5** (`3ef3a5e`, **v0.22.1**) + **worldtree-sdk 1.0.0→1.1.1→1.1.2**