Skip to content

Make Rust persona recorder the single fixture source - #1068

Merged
joelteply merged 1 commit into
canaryfrom
rust/persona-recorder-single-source
May 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
rust/persona-recorder-single-source

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • remove duplicate TypeScript persona fixture writing from PersonaResponseGenerator
  • leave the TS shim responsible for building the IPC request and posting the Rust result only
  • document the Rust recorder as the single persona-turn fixture source for all hosts
  • remove an obsolete ESLint complexity suppression now that the TS method is smaller

Why

This is a small Rust-persona migration step: turn capture belongs beside continuum-core::persona::response::respond, not inside the Node chat shim. That makes the fixture/replay corpus host-independent and removes filesystem work from the TS hot path.

Validation

  • npx tsx scripts/build-with-loud-failure.ts
  • npx eslint system/user/server/modules/PersonaResponseGenerator.ts --max-warnings 0 --quiet
  • cargo test -p continuum-core --features metal,accelerate persona::recorder --lib
  • normal precommit passed: TS build, staged-file ESLint clean, Rust clippy at baseline, browser ping
  • normal pre-push passed: TS build, ESLint baseline, Rust build/tests with metal,accelerate

Notes

Pre-push still reports the native Docker slice helper cannot run because validation dirties tracked generated TS whitespace. The generated whitespace churn was cleaned locally after push.

@joelteply
joelteply force-pushed the rust/persona-recorder-single-source branch from 8ba597c to 67a73c2 Compare May 8, 2026 09:22
@joelteply

Copy link
Copy Markdown
Contributor Author

Updated #1068 with stronger Rust-side tests per Joel's direction. persona::recorder now has 6 tests: existing serialization/media/capability coverage plus new side-effect tests proving record_turn writes one fixture JSON under an isolated HOME and respects CONTINUUM_DISABLE_TURN_RECORD without creating a fixture dir.

Validation rerun:

  • npx tsx scripts/build-with-loud-failure.ts
  • npx eslint system/user/server/modules/PersonaResponseGenerator.ts --max-warnings 0 --quiet
  • cargo test -p continuum-core --features metal,accelerate persona::recorder --lib → 6/6
  • normal precommit passed
  • normal pre-push passed Rust build/tests with metal,accelerate

@github-actions github-actions Bot added size: L and removed size: M labels May 8, 2026
@joelteply
joelteply merged commit 31e4a6a into canary May 8, 2026
2 checks passed
@joelteply
joelteply deleted the rust/persona-recorder-single-source branch May 8, 2026 09:24
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