Skip to content

docs(cognition): VDD/TDD harness guide — the iteration loop for the brain - #1658

Merged
joelteply merged 1 commit into
canaryfrom
docs/cognition-harnesses
Jun 20, 2026
Merged

joelteply merged 1 commit into
canaryfrom
docs/cognition-harnesses

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Makes the VDD + TDD harness toolbox navigable so we can iterate on the persona brain by evidence, not guessing. Catalogs the glass-box/record-replay instruments, the determinism enablers, the test discipline, and the capture→replay→diff→lock loop. Doc-only.

…ersona brain

Catalogs the instruments for iterating on cognition safely + visibly (per the
"half the work is harnesses" doctrine): the VDD glass-box/record-replay set
(WorkspaceCaptureSink + WorkspaceTrace, prompt_view, recorder + vdd::turn_replay,
RagCaptureSink, the replay A/B bench, the live glass-box test) with the
determinism enablers (lexical FNV embedder, injectable clock, heuristic adapter,
content-addressed cache), the TDD test discipline + current cognition test
surface, and the capture→replay→introspect→mutate-diff→lock-as-test loop. Notes
the in-flight pieces (bench + relevance_weight tunable + neural embedder PRs)
converging on canary. Frames it for the docker-persona-grid-peer deploy: the
harness runs the same build_workspace_cycle path the live peer uses.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@joelteply
joelteply merged commit f094ae6 into canary Jun 20, 2026
1 check passed
@joelteply
joelteply deleted the docs/cognition-harnesses branch June 20, 2026 00:57
joelteply added a commit that referenced this pull request Nov 5, 2026
…airc pin 759fe0a -> b158a7e (ShownScope) (ONE-ACT stage 6, card aef54715)

Joel 2026-11-04: a shown id's lookup is "localized to each concern", and it should be
"easy, automatic, centralized as much as possible". airc #1658 (b158a7e) gave that lookup
one shape: `ShownScope<T>` plus `Shown::resolve_in(&scope)`. Here continuum's one
multi-board concern takes it:

- persona/work_board/horizon.rs: `BoardHorizon` is a `ShownScope` for `WorkCardId` and
  `ClaimId`, built from each board's own scope (airc-work's `BoardSnapshot`).
- work_card_state_changed: `resolve_card_id`, `resolve_card_id_in_boards` and
  `resolve_claim_id` read through `Shown` and resolve with `resolve_in(&horizon)`. The
  hand-built candidate `Vec<Uuid>` and the repairing `id_resolve::{normalize, resolve}`
  calls are gone. An empty scope is still the horizon's own "not found" (outage, no
  rooms), now decided from the typed `ShownIdError::NoMatch { total: 0 }` instead of a
  second read. A claim miss keeps its expiry hint.
- Cargo.toml / Cargo.lock: airc rev 759fe0ab -> b158a7e93 (the only commit between them is
  #1658).

The submission verbs are #5775's (merged, `Shown<T>` typed at serde). work_similar's
full-id fast path waits on card 39c554f7.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Nov 5, 2026
…airc pin 759fe0a -> b158a7e (ShownScope) (ONE-ACT stage 6, card aef54715) (#5781)

Joel 2026-11-04: a shown id's lookup is "localized to each concern", and it should be
"easy, automatic, centralized as much as possible". airc #1658 (b158a7e) gave that lookup
one shape: `ShownScope<T>` plus `Shown::resolve_in(&scope)`. Here continuum's one
multi-board concern takes it:

- persona/work_board/horizon.rs: `BoardHorizon` is a `ShownScope` for `WorkCardId` and
  `ClaimId`, built from each board's own scope (airc-work's `BoardSnapshot`).
- work_card_state_changed: `resolve_card_id`, `resolve_card_id_in_boards` and
  `resolve_claim_id` read through `Shown` and resolve with `resolve_in(&horizon)`. The
  hand-built candidate `Vec<Uuid>` and the repairing `id_resolve::{normalize, resolve}`
  calls are gone. An empty scope is still the horizon's own "not found" (outage, no
  rooms), now decided from the typed `ShownIdError::NoMatch { total: 0 }` instead of a
  second read. A claim miss keeps its expiry hint.
- Cargo.toml / Cargo.lock: airc rev 759fe0ab -> b158a7e93 (the only commit between them is
  #1658).

The submission verbs are #5775's (merged, `Shown<T>` typed at serde). work_similar's
full-id fast path waits on card 39c554f7.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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