Repository navigation
feat(vdd): JsonlWorkspaceCaptureSink — make the LIVE brain observable (#14) - #1719
Merged
Merged
Conversation
…#14) VDD instrument, slice 1. The always-on persona recorder watches the LEGACY respond() path; the live decision path is the WorkspaceCycle, whose WorkspaceCaptureSink defaulted to Noop — so the mind that actually runs ran UNOBSERVED. (Confirmed by inspecting on-disk fixtures: the only captures are respond()-path turns with systemPrompt:null — not the cycle.) This is why we were reduced to guessing from log lines whether recall surfaced an engram. JsonlWorkspaceCaptureSink records every WorkspaceCycle tick to a per-persona JSONL (`~/.continuum/fixtures/workspace-traces/<persona_id>.jsonl`): every faculty BID incl. losers (recall's bid CONTENT is the engram text the decider saw — the load-bearing field for "was memory present?"), the assembled context that won attention (the RAG the decider actually read), and the decision. Wired into build_workspace_cycle via the existing `with_capture` seam; best-effort (degrades to Noop on FS error, never fails persona spawn — observability is not load-bearing). This is the measuring instrument the rest of the cognition work is validated through (VDD: half the work is harnesses). It's also the prerequisite for DELETING the legacy respond() fallback — you instrument the real path before you remove the dead one ([[no-fallbacks-ever]]: legacy gets deleted, not kept as a fallback; that's the next slice). Own module (cognition/workspace_capture.rs); WorkspaceTraceRecord owns the wire format so it evolves independently of the live Contribution type. 2 tests: bids+context+decision round-trip with content intact; one-line-per-tick append. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
VDD instrument, slice 1. The always-on persona recorder watches the legacy
respond()path; the live decision path is theWorkspaceCycle, whoseWorkspaceCaptureSinkdefaulted toNoop— so the mind that actually runs ranunobserved. (Confirmed by inspecting on-disk fixtures: the only captures are
respond()-path turns withsystemPrompt: null— not the cycle.) That's whydiagnosing Asha's confabulation meant guessing from log lines.
How
JsonlWorkspaceCaptureSinkrecords everyWorkspaceCycletick to a per-personaJSONL (
~/.continuum/fixtures/workspace-traces/<persona_id>.jsonl):the decider saw (the load-bearing field for "was memory actually present?")
Wired into
build_workspace_cyclevia the existingwith_captureseam.Best-effort: degrades to
Noopon FS error, never fails persona spawn(observability is not load-bearing).
Why it matters
This is the measuring instrument the rest of the cognition work is validated
through — half the work is harnesses. It's also the prerequisite for deleting
the legacy
respond()fallback: you instrument the real path before you removethe dead one (legacy gets deleted, not kept as a fallback — next slice).
Tests
Own module (
cognition/workspace_capture.rs);WorkspaceTraceRecordowns the wireformat so it evolves independently of the live
Contributiontype. 2 tests:bids+context+decision round-trip with content intact; one-line-per-tick append.
🤖 Generated with Claude Code