Skip to content

[CTX-0721] feat(ui): provider routable envelope plus session reconfirm plus bus v1 plus naming - #1311

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0721/uicore
Sep 23, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0721/uicore

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Priority: P1 | Area: area:ui | Labels: feat,P1,area:ui | Milestone: v0.1.0 | RFC: OQ-058 SMO-1..SMO-4, RFC-OQ-3 Option A, OQ-056 deferral, ADR-0013 | Task: CTX-0721

Implements the UI core batch in dependency order against accepted owner terms (bitty #1300 packet, bitty-docs #367 bb96efe, bitty #997 closed Option A).

Scope:

Changes:

  • crates/bitty-runtime/src/registry/routable.rs (new): MessageKind x7, AgentMessage envelope (message_id non-zero, owner.name sender/recipient, task/parent_run provenance, BoundedPayload 8KiB, deadline/expires_at logical ticks with 0=none, u8 priority), RoutableLedger bounded 256 with dedup/cancel/expiry-sweep/priority-drain; 6 unit tests.
  • crates/bitty-runtime/src/registry/host.rs: PanelRuntime gains routable ledger plus route_message (sender/recipient registration fail-closed SMO-3), cancel_message, sweep_expired_messages, drain_routable_by_priority, routable_len; docs to Accepted OQ-058/RFC-OQ-3/ADR-0013.
  • crates/bitty-runtime/src/registry/provider.rs + registry.rs: provider docs to Accepted, wire routable re-export.
  • crates/bitty-runtime/src/registry/event_bus_v1.rs: docs to OQ-056 deferred frozen v1, v2 scope noted.
  • crates/bitty-ui/src/placement.rs: PLACEMENT_DIRECTION C->A per RFC-OQ-3 acceptance, docs updated, test renamed.
  • crates/bitty-ui/src/view.rs: F-3 docs re-confirmed vs OQ-058+ADR-0013.
  • specifications/ux-decision-0995-session-id.md: re-confirmed keep-current record.
  • crates/bitty-runtime/tests/cw_contracts.rs: +5 CTX-0721 tests (routable delivery, fail-closed unknown recipient, cancel/expiry, v1 frozen, Option A host mirror).
  • crates/bitty-ui/tests/a11y_baseline.rs: F-3 comment update plus session_f3_reconfirmed_vs_adr0013.

Gates (CARGO_TARGET_DIR=.targets/ctx-0721):

  • cargo fmt --all -- --check: pass
  • RUSTFLAGS=-D warnings cargo clippy --workspace --all-targets --locked: pass
  • cargo test --workspace --all-targets --locked: pass
  • scripts/check-scratch-paths.sh: OK; scripts/check-status-drift.sh: OK
  • MSRV 1.85 (no let-chains), English only, no hardcoded paths.

Closes #1001
Closes #995
Closes #1000
Closes #998
Task: CTX-0721

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ui Area: UI / layout feat Feature P1 Priority: high

Projects

None yet

1 participant