feat: stable Matrix messages for native turn and tool activity #95

Merged
severus-snape merged 1 commit from feat/matrix-native-activity into main 2026-10-26 20:10:51 +00:00
Collaborator

Scope

Opt-in MATRIX_NATIVE_ACTIVITY=true renders native turn/tool states with stable progress references and edits. Bound/coalesce pending updates, persist delivered call states/dedup hashes, mark retained running calls interrupted after restart. Retriable send failures, timer stop cleanup. No dispatcher-parent forwarding yet.

Corrected original draft race: queued later event no longer mutates persisted delivered call state prematurely. Persist dedup only after durable write. Tests fake homeserver stable IDs/concurrency/failure/cancel/restart and actual Harness blocked prompt liveness without extra model call; send retry/persist ordering regression.

Validation

6focused tests + full550/550tests PASS, typecheck/build/diffcheck PASS. Initial new fixture hung due automatic start flush, corrected bounded wait and ordering; final passing. No live Matrix acceptance claim. Best-effort output can lose unsent updates on crash, not general durable outbox. Optional off by default. Prior review budget not reset/extra round not fabricated; author checked code/tests. Standing operator delivery mandate. Merge/build not deployment; preserved all original drafts.

## Scope Opt-in MATRIX_NATIVE_ACTIVITY=true renders native turn/tool states with stable progress references and edits. Bound/coalesce pending updates, persist delivered call states/dedup hashes, mark retained running calls interrupted after restart. Retriable send failures, timer stop cleanup. No dispatcher-parent forwarding yet. Corrected original draft race: queued later event no longer mutates persisted delivered call state prematurely. Persist dedup only after durable write. Tests fake homeserver stable IDs/concurrency/failure/cancel/restart and actual Harness blocked prompt liveness without extra model call; send retry/persist ordering regression. ## Validation 6focused tests + full550/550tests PASS, typecheck/build/diffcheck PASS. Initial new fixture hung due automatic start flush, corrected bounded wait and ordering; final passing. No live Matrix acceptance claim. Best-effort output can lose unsent updates on crash, not general durable outbox. Optional off by default. Prior review budget not reset/extra round not fabricated; author checked code/tests. Standing operator delivery mandate. Merge/build not deployment; preserved all original drafts.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harness/core!95
No description provided.