Skip to content

alpha Lane D: Rust PersonaTurnFrame e2e cognition with prod record/replay #1394

@joelteply

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#1394",
  "status": "in-progress",
  "env": "any",
  "evidence": "Created from 2026-05-18 architecture correction: E2E Rust cognition and prod record/replay must be canonical, not chat-only context.",
  "next_action": "Claim after #1385 PR is opened/merged: build PersonaTurnFrame skeleton and prod-shaped replay record under Lane D.",
  "owner": "airc-8a5e-bc43",
  "last_heartbeat": "2026-05-18T17:45Z @ a89c8ab47"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

Scope

Canonical alpha-gap Lane D work: build the Rust-owned e2e cognition boundary for personas.

Requirements:

  • PersonaTurnFrame is the Rust-owned frame for chat, live, coding, game/VR, and AIRC hosts.
  • Hosts submit generic inbox/activity items; Node/TS must not own truth-layer cognition state.
  • Frame outputs include consolidated inbox chunk, RAG context, media summary, priority/tool relevance, model requirement, response prompt, and resource admission metadata.
  • Every persona remains independent: own inbox view, memories/hippocampus selections, prompt budget, model/backend needs, and response decision.
  • Production turns emit replayable records: inputs, frame decisions, RAG source hashes, selected memories, prompt assembly, resource leases, model/backend choice, output metadata.
  • Offline replay must load records captured from prod without booting the full app and reproduce the same RAG/prompt/admission decisions.

Why

This captures the architectural correction from 2026-05-18: new requirements must update alpha docs/issues first, then code follows. The system must move toward Node-independent Rust cognition instead of more TS/Node stopgaps.

Links

Acceptance

  • Rust PersonaTurnFrame skeleton with typed inputs/outputs and lazy outputs.
  • Real prod turn capture format committed and documented.
  • Replay test uses captured prod-shaped record and can inspect RAG at every step.
  • TS cognition code decreases or is guarded by the deletion ratchet; no new TS truth-layer fallback.

Status log

Metadata

Metadata

Assignees

No one assigned

    Labels

    airc-queueAIRC-backed agent work queue card

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions