rdmpw3265m-changelog-20260924-2337-chat-recency-agentbus-projection
Changelog: Tyrell Chat Activity Recency Sorting & Agent-Bus Projection Channel
[2026-09-24 23:37:00 EDT · rdmpw3265m]
- Author:
agy@rdmpw3265m/1b772f66-eb66-4280-b839-1638b7406470 - Tickets Resolved:
FEAT-20260901-15,TASK-20260924-13 - Repositories Affected:
apps/Tyrell,issues,sites/dev.ecs0.net
Summary of Changes
Activity-Based Conversation Recency Sorting (
ChatPresentation.swift):- Added
ChatConversationOrdering.activity(for:)computingsummary.lastMessage?.sentAt ?? summary.conversation.createdAt. - Updated
ChatConversationOrdering.ordered(_:)to prioritize latest activity descending within category sections (domain,direct,group,channel,project), preserving alphabetical name and ID tie-breaking. - Added
ChatConversationOrdering.byRecency(_:)for flat multi-category recency ordering. - Fixes the bug where conversations sorted strictly alphabetically by display name regardless of recent messages received.
- Added
Read-Only Agent-Bus Projection Channel (
ChatAgentBusProjector.swift,ChatServerLogic.swift):- Implemented
AgentBusProjectorfor stateless, in-memory projection of~/.agent-coordination/mail/*.mdbus communications intoChatEnvelopestreams. - Preserves bus message provenance: sender
agent@hostname, topic, priority, and thread provenance without mutating or persisting rows into SQLite (per DEC-20260916). - Added
agentBusChannelIDandagentBusChannelName(#agent-bus) toChatDomainPolicy. - Added
#agent-busprovisioning toChatServerLogic.bootstrap. - Enriched
ChatServerLogic.listConversationswith newest bus envelope timestamp so UI channels display accurate freshness timestamps. - Gated
ChatServerLogic.sendMessageagainst#agent-buswrites with 403read_only_channel. - Added bus message overlay to
#execand#agent-businChatServerLogic.messages(...)with cursor-based pagination.
- Implemented
Verification Evidence:
scripts/verify_zero_fleet_identity.zsh: 0 compiled-in fleet identity references found across all files in Sources/. (exit 0).ChatTransportTests: 12/12 passed (includingchatConversationOrderingSortsByLatestActivityDescendingWithinCategories).AgentBusProjectorTests: 4/4 passed (metadata preservation, cursor pagination, read-only 403 gate, list/messages integration).ChatServerLogicTests: 13/13 passed.TyrellAppSupportTests: 127/127 passed.
Integration & Rollout:
- Merged to canonical
mainasa5d6070viaTYRELL_CANONICAL_INTEGRATION=1. - Session checkpoint recorded in
SESSION-STATE.md(commit74072db). - Pushed to
fleet(git.ecs0.net:git/apps/Tyrell.git) andbackup(github.com/richhdoty/rdmsm4x-dev-apps-tyrell.git). - Ticket records updated in issueRoo; 1,227 HTML pages generated and
pushed to
dev.ecs0.net/wiki/issues/. - Broadcast milestone message
20260924-233637-E4927F85sent toallviaagent_msg.zsh.
- Merged to canonical