Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
version: 1
capability:
id: message_delivery
name: full-duplex message delivery
canonical_tests:
- tests/scenarios/message_delivery/test_message_delivery_scenarios.py
- tests/test_session_delivery_fsm.py
shared_harness:
- tests/scenario_harness/core.py
- tests/scenario_harness/message_delivery.py
status_legend:
covered: scenario coverage exists
partial: unit or contract coverage exists but the closed loop is incomplete
manual: currently validated only by human regression
gap: not covered yet
scenarios:
- id: MESSAGE-DELIVERY-031
name: Bounded prewrite retry retains FIFO input across restart until explicit recovery
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_prewrite_retry_budget_survives_restart_and_preserves_original_input
- id: MESSAGE-DELIVERY-032
name: Oversized Codex stdout frames preserve a non-reconnectable failure cause
status: covered
kind: regression
layer: contract
test: tests/test_codex_transport.py::CodexTransportHealthTests::test_oversized_stdout_fails_all_pending_requests_with_typed_cause
- id: MESSAGE-DELIVERY-033
name: Failure recovery cannot replace a Codex process owned by a live neighbour
status: covered
kind: concurrency
layer: contract
test: tests/test_codex_agent.py::CodexAgentHandleMessageTests::test_failure_replacement_respects_live_durable_and_unknown_ownership
- id: MESSAGE-DELIVERY-034
name: Excluded Codex resume responses preserve stored history and next-turn model context
status: partial
kind: regression
layer: contract
test: tests/test_codex_prompt_delivery_contract.py::test_excluded_resume_preserves_native_history_and_model_settings
- id: MESSAGE-DELIVERY-035
name: A Computer Use script's notify and confirm prompt draw as a visible Agent message during a running Web Turn
status: covered
kind: regression
layer: contract
test:
- tests/test_computer_script_interactions.py::test_script_words_carry_the_event_the_web_draws_as_an_agent_message
- "ui/src/components/workbench/ChatPage.hydration.test.tsx::Computer Use script prompt with Activity enabled=true MESSAGE-DELIVERY-035 draws the confirm prompt as a visible Agent message while the Turn runs"
- id: MESSAGE-DELIVERY-001
name: Scheduled result finalizes its delivery anchor
status: covered
kind: happy_path
layer: scenario
test: tests/scenarios/message_delivery/test_message_delivery_scenarios.py::test_scheduled_result_delivery_scenario_finalizes_anchor
- id: MESSAGE-DELIVERY-002
name: Delivery override sends to the parent target but finalizes the source thread
status: covered
kind: happy_path
layer: scenario
test: tests/scenarios/message_delivery/test_message_delivery_scenarios.py::test_scheduled_result_delivery_override_scenario_uses_parent_channel_target
- id: MESSAGE-DELIVERY-003
name: Claude background output is delivered without settling a newer user Turn
status: covered
kind: concurrency
layer: scenario
test: tests/scenarios/message_delivery/test_message_delivery_scenarios.py::MessageDeliveryScenarioTests::test_background_output_scenario_does_not_settle_newer_turn
- id: MESSAGE-DELIVERY-004
name: One Turn emits multiple output Messages and completes once
status: covered
kind: lifecycle
layer: scenario
test: tests/scenarios/message_delivery/test_message_delivery_scenarios.py::MessageDeliveryScenarioTests::test_one_turn_multiple_outputs_scenario_completes_once
- id: MESSAGE-DELIVERY-005
name: One Run retains multiple outputs but callbacks only its terminal result once
status: covered
kind: lifecycle
layer: contract
test: tests/test_scheduled_tasks.py::test_agent_run_keeps_output_ledger_but_callbacks_only_terminal_result
- id: MESSAGE-DELIVERY-006
name: Every turn entry point reaches Show checkpoint lifecycle
status: covered
kind: lifecycle
layer: contract
test: tests/test_show_git_turn_entrypoints.py::test_all_turn_entrypoints_reach_checkpoint_subscriber
- id: MESSAGE-DELIVERY-007
name: Markdown code examples survive terminal result and callback persistence
status: covered
kind: regression
layer: contract
test: tests/test_scheduled_tasks.py::test_base_agent_terminal_markdown_example_persists_complete_run_and_callback
- id: MESSAGE-DELIVERY-008
name: Run callbacks use only terminal output while directed child Runs remain independent
status: covered
kind: concurrency
layer: contract
test: tests/test_scheduled_tasks.py::test_directed_run_and_callback_remain_distinct_while_target_busy
- id: MESSAGE-DELIVERY-009
name: P1 terminal race produces one accepted attachment or one P3 fallback owner
status: covered
kind: concurrency
layer: contract
test: tests/test_session_delivery_fsm.py::test_terminal_between_p1_observation_and_claim_starts_same_submission_once
- id: MESSAGE-DELIVERY-010
name: Concurrent empty P1 requests can claim only the observed FIFO head
status: covered
kind: concurrency
layer: contract
test: tests/test_session_delivery_fsm.py::test_two_empty_p1_requests_claim_exact_same_head_only
- id: MESSAGE-DELIVERY-011
name: Lost accepted steering receipt is retained as positive evidence and materialized without reconciliation
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_lost_accepted_receipt_materializes_from_exact_restart_evidence
- id: MESSAGE-DELIVERY-012
name: Definitive P1 refusal and idle drain start one fallback Turn
status: covered
kind: concurrency
layer: contract
test: tests/test_session_delivery_fsm.py::test_definitive_refusal_racing_idle_drain_starts_same_delivery_once
- id: MESSAGE-DELIVERY-013
name: P0 never interrupts before its successor is durable
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_p0_successor_persistence_failure_never_calls_stop
- id: MESSAGE-DELIVERY-014
name: P0 terminal and restart race claims its successor once after terminal proof
status: covered
kind: concurrency
layer: contract
test: tests/test_session_delivery_fsm.py::test_content_p0_preserves_open_hold_and_claims_successor_once
- id: MESSAGE-DELIVERY-015
name: Concurrent idle P3 admissions choose one Turn owner and retain one FIFO loser
status: covered
kind: concurrency
layer: contract
test: tests/test_session_delivery_fsm.py::test_two_idle_p3_admissions_leave_one_fifo_loser
- id: MESSAGE-DELIVERY-016
name: A late T1 terminal event cannot clear or overwrite active T2
status: covered
kind: concurrency
layer: contract
test: tests/test_session_delivery_fsm.py::test_late_t1_terminal_cannot_clear_active_t2
- id: MESSAGE-DELIVERY-017
name: Ambiguous native start replays once, then fails open without blocking FIFO
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_start_write_ambiguity_replays_once_after_restart
- id: MESSAGE-DELIVERY-018
name: Harness turn echoes its prompt to IM before the result
status: covered
kind: happy_path
layer: scenario
test: tests/scenarios/message_delivery/test_message_delivery_scenarios.py::test_scheduled_turn_scenario_shows_its_prompt_before_the_result
- id: MESSAGE-DELIVERY-019
name: Background-visibility Harness turn echoes nothing outward
status: covered
kind: lifecycle
layer: scenario
test: tests/scenarios/message_delivery/test_message_delivery_scenarios.py::test_background_session_scenario_stays_silent_including_its_prompt
- id: MESSAGE-DELIVERY-020
name: Permanent native start rejection retires one Delivery and unblocks FIFO
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_permanent_start_rejection_retires_delivery_without_retry
- id: MESSAGE-DELIVERY-021
name: Durable OpenCode attempts preserve native order through exact part evidence
status: covered
kind: recovery
layer: contract
test: tests/test_agent_steering.py::test_message_delivery_021_opencode_preserves_native_order_and_recovers_exact_part
- id: MESSAGE-DELIVERY-022
name: Stop retires a starting Turn that has not reached the native write boundary
status: covered
kind: lifecycle
layer: contract
test: tests/test_session_delivery_fsm.py::test_stop_cancels_a_starting_turn_before_native_write
- id: MESSAGE-DELIVERY-023
name: Prewrite Stop releases its runtime gate before a same-runtime successor enters
status: covered
kind: concurrency
layer: contract
test: tests/test_agent_service.py::test_message_delivery_023_prewrite_stop_releases_gate_without_terminal_tidy
- id: MESSAGE-DELIVERY-024
name: Workbench reload keeps an active claimed input visible before native acceptance
status: covered
kind: recovery
layer: contract
test: tests/test_ui_session_stream.py::test_message_delivery_024_claimed_active_input_survives_transcript_reload
- id: MESSAGE-DELIVERY-025
name: The send gesture cannot activate the newly rendered Stop control
status: covered
kind: regression
layer: contract
test: ui/src/components/workbench/Composer.attachmentRetry.test.tsx::MESSAGE-DELIVERY-025
- id: MESSAGE-DELIVERY-026
name: Failed-turn retry crosses Web and controller admission without replaying accepted work
status: covered
kind: recovery
layer: contract
test: tests/test_backend_failure_retry.py::test_failure_retry_web_controller_round_trip
- id: MESSAGE-DELIVERY-027
name: Concurrent failed-notice clicks share one durable continuation owner
status: covered
kind: concurrency
layer: contract
test: tests/test_backend_failure_retry.py::test_failure_retry_concurrent_clicks_have_one_owner
- id: MESSAGE-DELIVERY-028
name: Deferred failed-turn retry cannot execute after newer work
status: covered
kind: concurrency
layer: contract
test: tests/test_backend_failure_retry.py::test_failure_retry_queue_drain_rechecks_the_boundary
- id: MESSAGE-DELIVERY-029
name: Missing Claude transcript retains unwritten input until explicit recovery
status: covered
kind: recovery
layer: contract
test: tests/test_claude_session_recovery.py::test_missing_session_queue_waits_for_explicit_recovery
- id: MESSAGE-DELIVERY-030
name: Restart interruption retains its failed Turn binding through delivery and one Web continuation
status: covered
kind: recovery
layer: contract
test: tests/test_backend_failure_retry.py::test_restart_notice_retries_through_web_and_controller
- id: MESSAGE-DELIVERY-101
name: Unresolved fallback-capable delivery fences only later FIFO submissions
status: covered
kind: concurrency
layer: contract
test: tests/test_session_delivery_fsm.py::test_unresolved_p1_fence_blocks_later_but_not_older_fifo
- id: MESSAGE-DELIVERY-102
name: Stop terminalization immediately resumes the oldest queued segment
status: covered
kind: lifecycle
layer: contract
test: tests/test_session_delivery_fsm.py::test_stop_terminalization_resumes_oldest_queued_segment
- id: MESSAGE-DELIVERY-201
name: Every approved producer class maps to one explicit delivery priority
status: covered
kind: contract
layer: contract
test: tests/test_message_priority_cutover.py::test_source_policy_has_one_explicit_delivery_intent
- id: MESSAGE-DELIVERY-202
name: Ordinary IM input remains outside transcript until exact P1 acceptance
status: covered
kind: lifecycle
layer: contract
test: tests/test_session_delivery_fsm.py::test_im_p1_materializes_only_after_exact_native_acceptance
- id: MESSAGE-DELIVERY-301
name: Mid-turn IM input reports its admission outcome to the sender
status: covered
kind: happy_path
layer: contract
test:
- tests/test_delivery_ack_reaction.py::AdmissionAckTests::test_steered_input_reports_a_receipt
- tests/test_delivery_ack_reaction.py::AdmissionAckTests::test_queued_and_pending_steer_report_the_queued_receipt
- tests/test_delivery_ack_reaction.py::AdmissionAckTests::test_unconfirmed_and_undelivered_states_are_distinguishable
- id: MESSAGE-DELIVERY-302
name: A queued admission receipt is replaced by the running turn indicator
status: covered
kind: lifecycle
layer: contract
test: tests/test_delivery_ack_reaction.py::AdmissionAckTests::test_start_clears_the_queued_receipt_before_the_turn_indicator
- id: MESSAGE-DELIVERY-303
name: Late steer acceptance upgrades the queued admission receipt
status: covered
kind: lifecycle
layer: contract
test: tests/test_session_delivery_fsm.py::test_late_steer_acceptance_upgrades_the_queued_admission_receipt
- id: MESSAGE-DELIVERY-304
name: A receipt racing the turn start is cleared exactly once
status: covered
kind: concurrency
layer: contract
test: tests/test_delivery_ack_reaction.py::AdmissionAckTests::test_receipt_in_flight_when_the_turn_starts_is_still_cleared
- id: MESSAGE-DELIVERY-305
name: The receipt target survives Delivery hydration into a new process
status: covered
kind: recovery
layer: contract
test:
- tests/test_delivery_ack_reaction.py::ReactionTargetSurvivalTests::test_quick_reply_echo_is_captured_from_the_ingress_context
- tests/test_delivery_ack_reaction.py::ReactionTargetSurvivalTests::test_hydrated_context_gets_its_reaction_target_back
- id: MESSAGE-DELIVERY-306
name: A native-less quick reply reacts on its persisted echo target
status: covered
kind: regression
layer: contract
test: tests/test_session_delivery_fsm.py::test_quick_reply_receipt_uses_its_persisted_echo_target
- id: MESSAGE-DELIVERY-307
name: A steer refused after archive replaces its queued receipt
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_definitive_steer_refusal_after_archive_reports_the_retired_receipt
- id: MESSAGE-DELIVERY-308
name: A reservation revived by recovery still reports its admission
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_recovered_reservation_reports_its_admission_receipt
- id: MESSAGE-DELIVERY-309
name: One Turn clears the receipt of every Delivery merged into it
status: covered
kind: lifecycle
layer: contract
test: tests/test_delivery_ack_reaction.py::AdmissionAckTests::test_start_clears_every_receipt_merged_into_its_turn
- id: MESSAGE-DELIVERY-310
name: Steer acceptance creates its Message before linking a Show event
status: covered
kind: regression
layer: contract
test: tests/test_session_delivery_fsm.py::test_steer_acceptance_materializes_message_before_show_event_link
- id: MESSAGE-DELIVERY-311
name: Observation recovery materializes accepted steer evidence without another adapter call
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_observation_recovery_materializes_persisted_accepted_receipt_without_reconcile
- id: MESSAGE-DELIVERY-312
name: Unknown steer evidence remains unreplayed while reconciliation stays conservative
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_missing_restart_evidence_keeps_unknown_without_resteer
- id: MESSAGE-DELIVERY-313
name: Accepted attempt-batch recovery preserves merged materialization and Agent Run attachment
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_accepted_receipt_recovery_preserves_attempt_batch_and_run_attachment
- id: MESSAGE-DELIVERY-314
name: One callee terminal Turn callbacks each callback Session once
status: covered
kind: concurrency
layer: contract
test: tests/test_scheduled_tasks.py::test_one_terminal_turn_callbacks_once_per_callback_session
- id: MESSAGE-DELIVERY-315
name: Accepted delegated messages collapse by Turn while queued deliveries remain distinct
status: covered
kind: lifecycle
layer: contract
test: tests/test_background_work_banner.py::test_agent_run_banner_collapses_accepted_turn_and_keeps_queued_deliveries
- id: MESSAGE-DELIVERY-316
name: WeChat outbound send uses the hydrated platform author, not legacy private identity
status: covered
kind: regression
layer: scenario
test: tests/test_session_delivery_fsm.py::test_wechat_outbound_send_uses_hydrated_author_id
- id: MESSAGE-DELIVERY-317
name: Recovery prompts preserve canonical user text and authenticated sender metadata
status: covered
kind: regression
layer: contract
test: tests/test_message_handler_typing.py::MessageHandlerTypingTests::test_durable_input_keeps_canonical_text_and_authenticated_sender
- id: MESSAGE-DELIVERY-318
name: Native dispatch samples Now after runtime preparation without rewriting user content
status: covered
kind: lifecycle
layer: contract
test: tests/test_agent_steering.py::test_codex_start_renders_now_after_runtime_prompt_preparation
- id: MESSAGE-DELIVERY-319
name: Steering preparation failure preserves a definitively unwritten retryable batch
status: covered
kind: recovery
layer: contract
test: tests/test_session_delivery_fsm.py::test_steering_preparation_failure_preserves_a_definitively_unwritten_batch
- id: MESSAGE-DELIVERY-320
name: Harness restart notices retain same-Session Retry without reviving historical work
status: covered
kind: recovery
layer: contract
test: tests/test_harness_failure_retry.py::test_harness_restart_notice_retries_through_web_and_controller
- id: MESSAGE-DELIVERY-321
name: OpenCode steer keeps a superseded completed reply, delivered as a reply that does not end the Turn, and a silent reply never displaces it
status: covered
kind: regression
layer: contract
test: tests/test_opencode_steer_superseded_reply.py::test_steer_keeps_superseded_completed_reply
- id: MESSAGE-DELIVERY-322
name: A restart notice names the Watch that continues the interrupted command and offers no Retry; a Stop while it waits for that Watch ends the command
status: covered
kind: recovery
layer: contract
test:
- tests/test_backend_failure_retry.py::test_restart_notice_names_the_watch_running_the_command_and_offers_no_retry
- tests/test_backend_failure_retry.py::test_a_restart_notice_waits_until_its_running_command_is_handed_over
- id: MESSAGE-DELIVERY-325
name: A result released versions promoted from a silent final (metadata.promoted_from) keeps its Turn's Activity and its place in the pet; nothing promotes any more (MESSAGE-DELIVERY-334)
status: covered
kind: regression
layer: contract
test:
- tests/test_agent_activity_service.py::test_a_promoted_silent_final_result_keeps_the_turns_activity
- tests/test_agent_activity_service.py::test_a_promotion_marker_counts_only_on_a_promoted_result
supporting_tests:
- ui/src/pet/petState.test.ts
- ui/src/pet/PetPage.test.tsx
- id: MESSAGE-DELIVERY-326
name: A Vibey reply a steer superseded commits as a result from its commit, whatever its length, and a restart's rerun does not read it as the Turn's final
status: covered
kind: regression
layer: contract
test:
- tests/test_agent_transcript.py::test_a_reply_pending_input_superseded_commits_as_a_reply
- id: MESSAGE-DELIVERY-327
name: Startup reruns a Vibey Turn a restart cut in place from its transcript, once its surface can deliver, without a notice
status: covered
kind: recovery
layer: contract
test:
- tests/test_backend_failure_retry.py::test_restart_reruns_a_cut_vibey_turn_in_place_without_a_notice
- tests/test_backend_failure_retry.py::test_a_rerun_that_exits_before_dispatching_fails_its_turn
- tests/test_backend_failure_retry.py::test_a_rerun_whose_setup_fails_is_retried_not_settled
- tests/test_backend_failure_retry.py::test_concurrent_recovery_passes_rerun_a_cut_turn_once
- tests/test_message_handler_typing.py::MessageHandlerTypingTests::test_a_restart_rerun_runs_with_the_request_its_turn_was_accepted_with
- tests/test_backend_failure_retry.py::test_a_cut_vibey_turn_that_no_longer_qualifies_keeps_the_restart_notice
- tests/test_processing_indicator_reaction.py::QueuedReactionLifecycleTests::test_a_restart_rerun_retires_the_running_reaction_its_dead_process_may_have_left
- tests/test_agent_transcript.py::test_the_restart_reads_of_a_turns_context_tail_stay_bounded
- id: MESSAGE-DELIVERY-328
name: A Vibey Agent Run cut by a restart, steered-in Runs included (the Turn waiting open until their receipts materialize), is left at shutdown and settles once from the rerun's result, the answer after its command
status: covered
kind: recovery
layer: contract
test:
- tests/test_harness_failure_retry.py::test_a_vibey_agent_run_cut_by_a_restart_settles_from_the_continued_work
- tests/test_vibey_agent.py::test_a_restart_rerun_waits_for_its_surviving_command_as_the_live_call_would
- id: MESSAGE-DELIVERY-329
name: A cut Vibey Turn that no longer qualifies (Stop, Agent off Vibey, archived, the Turn's own Agent no longer on Vibey, the third restart in a row without a model response) keeps the restart notice; a committed response resets the streak
status: covered
kind: recovery
layer: contract
test: tests/test_backend_failure_retry.py::test_a_cut_vibey_turn_that_no_longer_qualifies_keeps_the_restart_notice
- id: MESSAGE-DELIVERY-330
name: A command still running at restart is left to the rerun (across repeated restarts), which waits for it within its foreground window from launch, hands it over only after, ends it on a Stop, and never starts it again
status: covered
kind: recovery
layer: contract
test:
- tests/test_backend_failure_retry.py::test_restart_reruns_a_cut_vibey_turn_in_place_without_a_notice
- tests/test_backend_failure_retry.py::test_a_turn_waiting_for_its_steer_keeps_its_running_command_for_the_rerun
- tests/test_backend_failure_retry.py::test_a_stop_ends_the_command_of_a_turn_held_for_its_rerun_at_once
- tests/test_backend_failure_retry.py::test_a_rerun_cancelled_before_its_adapter_owns_the_command_still_ends_it
- tests/test_vibey_agent.py::test_a_restart_rerun_waits_for_its_surviving_command_as_the_live_call_would
- tests/agent_core/tools/test_bash.py::test_a_stop_during_a_failed_recovered_handover_ends_the_command_before_another_attempt
- id: MESSAGE-DELIVERY-331
name: Input queued while the service was down runs after the rerun of the Turn a restart cut
status: covered
kind: concurrency
layer: contract
test: tests/test_backend_failure_retry.py::test_restart_rerun_runs_before_input_queued_while_the_service_was_down
- id: MESSAGE-DELIVERY-332
name: A Vibey run that fails because the service is stopping (a model call, or a rerun's preflight) leaves its Turn open for its restart rerun
status: covered
kind: recovery
layer: contract
test: tests/test_vibey_agent.py::test_a_run_the_service_stop_cut_leaves_its_turn_open_for_its_restart_rerun
- id: MESSAGE-DELIVERY-333
name: The rerun of a Turn whose final was committed ends with it through the live end, with no model call; a final not yet delivered is sent once, one already delivered is not sent again, a silent final promotes nothing and leaves the reply the Turn showed before the restart as it was, and the Turn stays open across another restart until then
status: covered
kind: recovery
layer: contract
test:
- tests/test_vibey_agent.py::test_a_restart_rerun_ends_with_the_final_its_cut_run_committed
- tests/test_backend_failure_retry.py::test_restart_reruns_a_cut_vibey_turn_in_place_without_a_notice
- tests/test_backend_failure_retry.py::test_a_cut_vibey_turn_that_no_longer_qualifies_keeps_the_restart_notice
- tests/test_agent_transcript.py::test_the_restart_reads_of_a_turns_context_tail_stay_bounded
- id: MESSAGE-DELIVERY-334
name: A reply is a result whether or not it ends its Turn; a Turn may reply more than once (a steered input's answer is a second result, each notified once), and only the Turn end settles the Run, writes the Turn snapshot, hides the thinking indicator, and finalizes IM, once; a content-free end after a reply promotes nothing; the Activity read of a Session's terminal Turns stays an index-ordered SEARCH within its window
status: covered
kind: regression
layer: contract
test:
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_a_turn_replies_twice_and_ends_once_after_both
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_an_end_without_a_reply_settles_with_the_last_delivered_reply
- tests/test_claude_agent_sessions.py::ClaudeAgentSessionTests::test_steered_assistant_and_result_settle_the_pending_turn
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_a_reply_or_a_failure_keeps_its_type_attached_or_detached
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_only_a_reply_is_a_completed_turns_answer
- tests/test_message_dispatcher_turn_end.py::TurnEndFinalizesImOnceTests::test_im_surfaces_finalize_once_at_the_turn_end
- tests/test_vibey_agent.py::test_a_reply_a_steer_superseded_is_a_result_and_the_turn_ends_once_after_both
- tests/test_vibey_agent.py::test_a_silent_final_after_narration_shows_no_reply
- tests/test_vibey_agent.py::test_a_restart_rerun_ends_with_the_final_its_cut_run_committed
- tests/test_dispatcher_stream_chunk.py::test_only_the_turn_end_sets_done_event
- tests/test_session_fork.py::test_a_reply_while_the_source_turn_runs_is_not_its_completion
- tests/test_agent_activity_service.py::test_nonterminal_output_completes_prior_activity_and_anchors_later_work
- tests/test_agent_activity_service.py::test_the_turn_terminal_read_stays_within_the_window
supporting_tests:
- ui/src/components/workbench/ChatPage.hydration.test.tsx
- ui/src/lib/chatMessageTypes.test.ts
- ui/src/pet/petState.test.ts
- id: MESSAGE-DELIVERY-335
name: Every backend types a complete reply a steer follows as a result that does not end the Turn (Codex by agentMessage.phase, commentary narration; OpenCode by a finish that is not tool-calls); a done Turn end with no reply of its own, a footer-only end included, posts nothing and settles its snapshot and every attached Run with the written copy of its last delivered reply, recorded by the dispatcher for the durable Turn (session_turn_replies) outside its compare-and-set, across a restart and repeated replies, or "" when it delivered none
status: covered
kind: regression
layer: contract
test:
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_an_end_without_a_reply_settles_with_the_last_delivered_reply
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_only_a_delivered_reply_is_what_the_turn_settles_with
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_a_turn_replies_twice_and_ends_once_after_both
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_only_a_reply_is_a_completed_turns_answer
- tests/test_message_dispatcher_turn_end.py::TurnEndFinalizesImOnceTests::test_a_footer_only_end_posts_nothing_and_still_ends_the_turn
- tests/test_turn_last_reply_store.py::test_a_reply_write_and_a_turn_transition_both_land
- tests/test_turn_last_reply_store.py::test_the_reply_write_and_read_are_primary_key_searches
- tests/test_turn_last_reply_store.py::test_a_released_database_upgrades_and_its_running_turn_ends_without_a_reply
- tests/test_codex_event_handler.py::CodexEventHandlerTests::test_an_answer_a_steer_follows_stays_a_reply_in_turn_order
- tests/test_codex_event_handler.py::CodexEventHandlerTests::test_a_silent_answer_keeps_the_declared_answer_as_the_turns_reply
- tests/test_opencode_steer_superseded_reply.py::test_steer_keeps_superseded_completed_reply
- tests/test_claude_agent_sessions.py::ClaudeAgentSessionTests::test_steered_assistant_and_result_settle_the_pending_turn
- tests/test_vibey_agent.py::test_a_reply_a_steer_superseded_is_a_result_and_the_turn_ends_once_after_both
- tests/test_vibey_agent.py::test_a_restart_rerun_ends_with_the_final_its_cut_run_committed
- tests/test_agent_silent_result.py::AgentSilentResultTests::test_a_footer_only_end_is_content_free
- id: MESSAGE-DELIVERY-336
name: Every backend reports output through one typed event set (Reply, Narration, ToolActivity, TurnEnd with its outcome, AgentError, Notice) through one entry; one pure mapping names each event's message type and lifecycle (a Reply never ends the Turn, a TurnEnd always does, its outcome supplies stop, teardown and failure semantics) and reproduces the call each backend made before, and every emit answers with a typed delivery receipt
status: covered
kind: contract
layer: contract
test:
- tests/test_agent_output.py::test_each_event_maps_to_one_dispatch_call
- tests/test_agent_output.py::test_an_event_cannot_contradict_its_lifecycle
- tests/test_agent_output.py::test_an_emit_answers_with_its_delivery_receipt
- id: MESSAGE-DELIVERY-337
name: Every agent output with content gets one presentation decision from a replaceable policy (transcript row, muted, Web Push, outward, IM form), and an output without content is never asked about; the default policy holds the rules the dispatcher applied inline, unchanged (level, background visibility, the Web interim threshold, the catalog's Web Push flags, tool-call delivery, the concise status line, hidden types, editing, progress style), the dispatcher accepts only the default decision plus its allowed deltas (narration's Web transcript copy on or off, a declined Web Push), executes them in full, and refuses any other decision, and each output's record (a fixed, best-effort fact of its type) stores the decision under metadata.presentation
status: covered
kind: contract
layer: contract
test:
- tests/test_presentation.py::test_the_default_policy_decides_each_rule
- tests/test_presentation.py::test_only_the_default_decision_and_its_allowed_deltas_are_accepted
- tests/test_presentation.py::test_the_interim_threshold_counts_lines_and_display_width
- tests/test_presentation.py::test_a_decision_is_recorded_as_stable_metadata
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_each_message_records_and_follows_its_presentation_decision
- tests/test_message_dispatcher_turn_end.py::ReplyAndTurnEndTests::test_each_allowed_delta_is_what_the_dispatcher_executes
- id: MESSAGE-DELIVERY-338
name: Every input source (Web composer, IM, Harness, Show annotation, failure retry, agent-initiated) is normalized into one envelope and admitted through one entry; one default admission policy holds each source's released priority (the OpenCode subagent exception, an Agent Run's --queue and legacy send_now, the scheduled P3 included) and the admitting history event records which policy decided and why
status: covered
kind: contract
layer: contract
test:
- tests/test_input_admission.py::test_each_source_is_admitted_with_its_released_priority_and_records_the_decision
- tests/test_input_admission.py::test_a_source_owned_admission_event_carries_the_decision
- tests/test_input_admission.py::test_an_input_that_already_has_a_delivery_gets_it_back
- tests/test_input_admission.py::test_the_record_names_whichever_policy_decided
next_priority:
- MESSAGE-DELIVERY-339