Skip to content

feat(persona): capture turn frame replay records - #1325

Merged
joelteply merged 1 commit into
canaryfrom
feature/persona-turn-frame-recording
May 16, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feature/persona-turn-frame-recording

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • add a versioned PersonaTurnFrameReplayRecord for rust-first persona replay/debugging
  • capture the raw inbox frame plus derived consolidated inbox and RAG seed in one stable envelope
  • keep empty frames from synthesizing placeholder replay records

Tests

  • cargo test --manifest-path src/workers/continuum-core/Cargo.toml --features metal,accelerate persona::turn_frame --lib
  • cargo test --manifest-path src/workers/continuum-core/Cargo.toml --features metal,accelerate persona::inbox --lib
  • precommit: TypeScript passed; Rust clippy baseline held; browser tests skipped because local jtag/core socket prerequisites were unavailable
  • pre-push: TypeScript clean; ESLint baseline held; Rust compile clean; Rust tests passed; native-arch Docker push failed and continued per hook

@joelteply
joelteply merged commit aa547c2 into canary May 16, 2026
3 checks passed
@joelteply
joelteply deleted the feature/persona-turn-frame-recording branch May 16, 2026 19:57
joelteply added a commit that referenced this pull request Aug 7, 2026
…ved was a declaration nothing could read (#353)

`activity/archive` writes RoomStanding{archived} to the room's wall. Grep for
`RoomStanding | current_standing | STANDING_WALL_CATEGORY` across all of src/
returns ZERO hits outside modules/activity.rs. The verb is correct, the wall post
is correct, and archiving a room today changes nothing about how anyone behaves —
the #344 class exactly: built, correct, called by nothing.

The reason is structural, not an oversight. The type, the category constant, and
the parse+supersede rule all lived INSIDE the command module, reachable only
through a private `async fn` over `&Airc`. The only code that could read a
standing back was the command that wrote it.

So the rule moves to `experience::standing`, beside `recipe` (the content-type)
and `membership` (the parties) — standing is the content ITEM's lifecycle state,
and that is where the three belong together. `project_standing(&[WallPost])` is
pure: callable from a command handler, from a persona's wake gate, or from a test,
with still exactly one place that decides what a standing means.

Two behaviours preserved deliberately and pinned by tests:
- An empty wall is NOT an error. A room nobody marked is live and unprotected,
  and that is the overwhelmingly common case.
- A present-but-unparseable standing IS an error. Defaulting there would read a
  room a newer client declared archived as live, and on the write path would
  overwrite that declaration with a lossy version of itself. Failing loud costs
  one turn; guessing loses a declaration. A newer client's UNKNOWN FIELD still
  parses fine — that distinction is what makes the loud failure affordable.

RoomStanding also picks up `#[ts(export)]`. It derived TS and was never emitted,
so the type crossed the command boundary to TS clients with nothing generated for
it. Binding committed.

Next in #353: the wake gate itself, which needs airc PR #1325 (`wall_posts_in`)
merged and the pin bumped — a persona must ask about the room the traffic came
from, not whichever room its handle points at.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Aug 7, 2026
…#353 unblock)

Lands four merged airc PRs:
- #1322 work board labels the room it read + CardState::is_settled convergence
- #1323 claim_heartbeat suppressed from the feed (lease keepalive is churn)
- #1324 the send receipt no longer reads as a reach ratio
- #1325 wall_posts_in(room, category) — a room-scoped wall read

#1325 is the one #353 needs: a persona must ask "is this activity concluded?"
about the room the traffic came FROM, and `wall_posts` could only answer for the
room its handle happened to point at. `cargo check -p continuum-core` clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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