feat(orchestrator): radio receipts inline (005 phase B)
Requirement 005: every radio message in the Stream and the radio log shows the avatars of the agents that read it, with read time and an ack badge where a receipt exists; receipt rows no longer appear as entries of their own, and the sender shows once. Read times come from seen marks, stamped only after a fresh presence pass no older than two sighting intervals; a stored time before its row is refused. An operator message links to its relay row through the ts radio.py prints first on stdout right after store(), checked against an exact row (sender Operator, relay text, targets, no to_sessions); a ts shared by two rows shows no readers. radio.py clips printed addresses; the hub keeps the first stdout line whole. Accepted MEDUSA false positives: MM-SCAN-058 at server.py:73, JB-SCAN-641 and JB-SCAN-616 at radio.py:389 (clip, the output sanitizer), FLA-SCAN-055 at radio.py:109. Committed below the 90/5 bar on the operator's word; the receipts e2e runs through the queue. 🎯 Fix: 89 % 💥 Break: 6 % 💸 Cost: – ⏱️ Time: – 🛡️ Security: 100 % 🏆 Score: 84 🚦 Gate: ⛔ fix 89 % < 90, break 6 % > 5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
92f5087eed
commit
30b2a32095
25 files changed
+1432
-87
No files matched your search
@@ -55,14 +55,14 @@ flowchart TD
|
||||
|
||||
### Server
|
||||
|
||||
- [ ] Each radio row the hub serves carries `readers` (session id, name, read
|
||||
- [x] Each radio row the hub serves carries `readers` (session id, name, read
|
||||
time) and `acks` (session ids), computed by the function `radio.py`
|
||||
uses for its own seen check; a unit test covers every class.
|
||||
- [ ] A receipt counts for its call when the call is served, even if the
|
||||
- [x] A receipt counts for its call when the call is served, even if the
|
||||
receipt row lies outside the served window.
|
||||
- [ ] A missing, malformed, unreadable or future-dated seen mark counts as
|
||||
- [x] A missing, malformed, unreadable or future-dated seen mark counts as
|
||||
not read.
|
||||
- [ ] Receipt rows are absent from the rows served to the Stream, the radio
|
||||
- [x] Receipt rows are absent from the rows served to the Stream, the radio
|
||||
log and agent pages; count badges count messages without receipts.
|
||||
|
||||
### Page
|
||||
@@ -78,9 +78,9 @@ flowchart TD
|
||||
|
||||
### Tests
|
||||
|
||||
- [ ] Unit: readers and acks per class; malformed marks; receipt to call
|
||||
- [x] Unit: readers and acks per class; malformed marks; receipt to call
|
||||
matching by call time; the header renders the sender once.
|
||||
- [ ] Integration: the hub state endpoint over a council fixture (posts,
|
||||
- [x] Integration: the hub state endpoint over a council fixture (posts,
|
||||
calls, broadcasts, receipts, seen marks) returns readers and acks and
|
||||
no receipt rows.
|
||||
- [ ] E2E: Chromium and Firefox at 1920, 1366 and 390: a call with two
|
||||
|
||||
Reference in new issue
Block a user