Skip to content

feat(vdd): JsonlWorkspaceCaptureSink — make the LIVE brain observable (#14) - #1719

Merged
joelteply merged 1 commit into
canaryfrom
feat/vdd-workspace-capture
Jun 21, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/vdd-workspace-capture

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

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.) That's why
diagnosing Asha's confabulation meant guessing from log lines.

How

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 actually present?")
  • the assembled context that won attention (the RAG the decider read)
  • 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).

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 remove
the dead one (legacy gets deleted, not kept as a fallback — next slice).

Tests

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.

🤖 Generated with Claude Code

…#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]>
@joelteply
joelteply merged commit f6ea877 into canary Jun 21, 2026
4 checks passed
@joelteply
joelteply deleted the feat/vdd-workspace-capture branch June 21, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant