Skip to content

fix(dataset): from-captures excludes nil-room FORK captures by default (#427) - #2299

Merged
joelteply merged 1 commit into
canaryfrom
fix/427-fork-captures-excluded-from-datasets
Aug 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/427-fork-captures-excluded-from-datasets

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

dataset/from-captures now skips captures whose room_id is the nil UUID by default. These are benchmark/eval FORK ticks: fork_eval_cycle keeps cfg.persona_id, so fork traffic appends to the SAME workspace-traces file as the citizen's live room turns — and the default dataset build was ingesting them unlabeled into L1 training data.

  • New include_forks: bool (serde default false) on FromCapturesParams — the explicit opt-in for deliberately training on fork traces.
  • Guard applies only when no explicit room_id filter was given (an explicit filter never matched nil anyway).
  • ts-rs binding regenerated (protocol/typescript/dataset/FromCapturesParams.ts).

Why

Citizenship audit (2026-08-14), AXIS 3: L1 fork contamination. The learning flywheel must lift from LIVED room turns; detached eval forks polluting the corpus mistrain the exact behaviors the campaign is measuring. Task #427.

Validation

  • cargo test -p continuum-core --lib --features metal,accelerate -- dataset::tests → 12 passed, 0 failed, including new regression test from_captures_excludes_nil_room_forks_by_default (one live-room + one nil-room capture: default → 1 example, include_forks:true → 2).
  • Only other FromCapturesParams constructor tree-wide is the test's own closure.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

#427)

Benchmark/eval forks (fork_eval_cycle) keep cfg.persona_id, so their tick
captures append to the SAME workspace-traces file as the citizen's live
turns — with room_id = the nil UUID. dataset/from-captures ingested them
unlabeled, contaminating L1 training data with detached eval traffic.

Guard: when no explicit room_id filter is given, records whose room_id is
the nil UUID are skipped. include_forks=true is the explicit opt-in for
deliberately training on fork traces. An explicit room_id filter is
unchanged (nil never matches a real room anyway).

Regression test seeds one live-room + one nil-room capture: default sees
1 example, include_forks sees 2. ts-rs binding regenerated.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 2b1ed68 into canary Aug 14, 2026
6 of 7 checks passed
@joelteply
joelteply deleted the fix/427-fork-captures-excluded-from-datasets branch August 14, 2026 22:03
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