Skip to content

Add Rust turn batching boundary - #1060

Merged
joelteply merged 1 commit into
canaryfrom
feature/rust-recipe-rag-turn-boundary
May 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feature/rust-recipe-rag-turn-boundary

Conversation

@joelteply

@joelteply joelteply commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a Rust-owned cognition/plan-turn-batch IPC command for deterministic cognition turn planning.
  • Define ts-rs exported contracts for turn triggers, persona candidates, shared RAG source plans, and per-persona turn plans.
  • Wire the TypeScript IPC mixin and RustCognitionBridge so Node can act as host/UX wrapper while Rust owns turn keys, persona dedupe, shared-source cache keys, and local-generation concurrency policy.

Why

This is the first narrow boundary for moving persona/RAG orchestration out of ad hoc TS loops. It gives the chat path a canonical Rust control-plane shape before we move more of RAG composition and persona admission into Rust.

Validation

  • cargo test --manifest-path workers/continuum-core/Cargo.toml --features metal,accelerate turn_batch --lib
  • npx tsc --noEmit --project tsconfig.json --pretty false
  • pre-push: TypeScript clean, Rust compile clean with metal,accelerate, Rust tests passed

Known follow-up

  • Native-arch Docker push failed in the pre-push helper and continued; CI verify-architectures should be treated as the merge gate for image freshness.

@joelteply
joelteply merged commit 3aaffa6 into canary May 8, 2026
3 checks passed
@joelteply
joelteply deleted the feature/rust-recipe-rag-turn-boundary branch May 8, 2026 00:48
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