Wire Protocol 3.2¶
Wire protocol 3.2 adds the scene, text and bar view kinds, timelines and stamps, the scene messages for points, lines, arrows, boxes, meshes, images, cameras, transforms, class tables and clears, and the recording and cursor messages, in the C++, Python and TypeScript codecs.
| Field | Value |
|---|---|
| ID | STR-09 |
| Status | Shipped |
| Scope | Core |
| Pillar | Live Data, Streaming and Recordings |
| Sprint | None |
| Depends On | Protocol 3.1 Controls (STR-03) |
| Unblocks | Scene Fallback Without WebGPU (EMB-17)Scene View ( REN-12)caliper.scene ( STR-10)Timelines in Caliper LIB ( STR-23)Scene Data Views ( STR-25) |
| Docs | Wire Protocol 3.2, Implementation Status |
| Branches | None |
| Design | None |
Coverage Ledger¶
- Branch
sprint4-build, 165 commits, none outside sprint4-integ3. Head of pull request 1 (546bacaa): sprint 4 through demo 0 with every review fix. - Branch
sprint4-fixnet, 144 commits, none outside sprint4-integ3. Review fixes for the network route of scenes, first round. - Branch
sprint4-fixnet2, 153 commits, none outside sprint4-integ3. Review fixes for the network route of scenes, second round. - Branch
sprint4-integ3, 209 commits not on main, the superset of the finished build branches; the six branches draws, rec, tex, time, ts9, points hold 30 commits outside it. Third integration branch: every finished build branch (protocol 3.2 series, step 5, 7, 9, scale bar, up-axis, rest of scene calls, first draws commit). - Branch
sprint4-polish, 87 commits, none outside sprint4-integ3. Test and polish pass on the scene route. - Branch
sprint4-pr1-main2, 165 commits, none outside sprint4-integ3. Pull request 1 candidate, 546bacaa with main merged in. - Branch
sprint4-proto3, 175 commits, none outside sprint4-integ3. All of protocol 3.2 in the three codecs, every caliper.scene call, both senders and the hub. - Branch
sprint4-proto32, 23 commits, none outside sprint4-integ3. Scenes subset of protocol 3.2 and the first caliper.scene calls. - Branch
sprint4-integ3, ed1e13e3, 0019f916, 3b921891, bb1aadcd, 437eb439, cfb54828, 64078a53, 435b9ab3. Protocol 3.2 and its three codecs (Python, C++, TypeScript): the scenes capability, SCENE_UPDATE and SCENE_CLEAR first, then every part of SCENE_UPDATE, SCENE_TRANSFORMS and SCENE_CLASSES, with golden frames and checks in the same order. - Branch
sprint4-integ3, fd97ad02. Timelines, stamps, text, bars and recording messages of protocol 3.2 in the codecs (the VIEWS key timelines, stamps on SNAPSHOT, SERIES and CONTROLS, static snapshots, TEXT, bar charts, split updates, recording messages), reproducing the draft's two example frames byte for byte. - Branch
sprint4-integ3, 7d0de741, c7e6de34, a309817d. Protocol 3.2 docs, eleven readings of the draft, test variables, the attach guide, and rebuilt browser bundles. - Branch
sprint4-integ3, d0ff8947, 92afbbee, b6ed1bf7, 3236d239, 1c5fc75c, 01de675b, 435447d9, d33b7a5d, 65462943, 8163cf51, a15d3cce, b52327b3. The hub's scene support: it announces scenes, keeps the newest batch per entity part, class table and transforms for a late viewer, splits large batches, and bounds its in-order queues. - Branch
sprint4-time, 6273f1d1. The hub's timelines: the hub announces timelines, keeps a session's timelines and each retained series value's stamp, and forwards stamps only to viewers that announced them. design/scenes.mdon the branchsprint4, under Open decisions. Open decision: sprint 2 must confirm or replace the kind ids 6, 7 and 8.design/sprint-4.mdon the branchsprint4, under 1. A loss landscape in a notebook. The protocol 3.2 subset in three codecs with golden frames: capability scenes, kind scene (6), SCENE_UPDATE with points, lines and mesh, SCENE_CLEAR with reset (2 of 4 days).design/sprint-4.mdon the branchsprint4, under 3. Every primitive natively, through shared memory. The rest of protocol 3.2 in three codecs: other parts, SCENE_TRANSFORMS, SCENE_CLASSES, stamps, text, bars, u16, split updates and the recording messages (2 of 4 days).design/sprint-4.mdon the branchsprint4, under Decisions. Wire and demo decisions: strip break masks built by the viewer from strip_lengths, the key static travelling with scenes alone, the path's principal-component plane as demo 0's default, demo 0's defaults and cost budget, MCAP and recording only when started.design/windows-parity.mdon the branchsprint4-pr1-main2, under 3. Caliper LIB. The scene layout of the shared-memory session on named shared memory (3 days).design/wire-protocol-3-2.mdon the branchsprint4, under What is built and what is planned. Nothing of 3.2 is built according to this page; it rests on 3.1 as the sprint 2 branch builds it. The page's example frames come from a prototype encoder kept outside the repository.design/wire-protocol-3-2.mdon the branchsprint4, under What 3.2 adds. Five capabilities: timelines, scenes, text, bars and recordings, each used only with a peer that announced it, with every 3.1 message unchanged.design/wire-protocol-3-2.mdon the branchsprint4, under Checking for clashes. The ids of 3.2 (message types 0x0070 to 0x007F, kinds 6 to 8, dtypes above 5) were checked against all nineteen sprint 2 branches and are free.design/wire-protocol-3-2.mdon the branchsprint4, under Timelines and Stamps. Timelines and stamps on the wire.design/wire-protocol-3-2.mdon the branchsprint4, under Declaring timelines. Timelines are declared by a VIEWS key timelines.design/wire-protocol-3-2.mdon the branchsprint4, under The stamp. A stamp is an i64 section per message, or per value for series and text, and a static key marks items with no stamp.design/wire-protocol-3-2.mdon the branchsprint4, under The dtype u16. The dtype u16 (6) carries depth and segmentation.design/wire-protocol-3-2.mdon the branchsprint4, under New Kinds in VIEWS. Kinds scene (6), text (7) and bars (8) in VIEWS with their keys.design/wire-protocol-3-2.mdon the branchsprint4, under Message Types. Message types 0x0070 to 0x0074 for scenes and text and 0x0078 to 0x007B for recordings.design/wire-protocol-3-2.mdon the branchsprint4, under scene_update. SCENE_UPDATE carries the arrays of one entity part (points, lines, mesh and the other parts); the points, lines and mesh parts are built.design/wire-protocol-3-2.mdon the branchsprint4, under Splitting a large update. A large update is split into pieces that go together and are replaced only as a whole.design/wire-protocol-3-2.mdon the branchsprint4, under scene_transforms. SCENE_TRANSFORMS carries entity transforms as matrices batched per scene.design/wire-protocol-3-2.mdon the branchsprint4, under scene_clear. SCENE_CLEAR clears entities or parts, with reset for a new subscription; the clear is built in the subset.design/wire-protocol-3-2.mdon the branchsprint4, under scene_classes. SCENE_CLASSES carries a class table.design/wire-protocol-3-2.mdon the branchsprint4, under The state of a scene for a new subscription. A producer or hub sends a scene's state, built from the class table, transforms, cameras and newest batches, to a late subscriber.design/wire-protocol-3-2.mdon the branchsprint4, under text. The TEXT message carries log lines in binary sections with levels and stamps.design/wire-protocol-3-2.mdon the branchsprint4, under bars. A bar chart is a SNAPSHOT of kind 8 with labels and colours.design/wire-protocol-3-2.mdon the branchsprint4, under recordings. RECORDINGS lists the recordings a server holds, announced by the capability recordings.design/wire-protocol-3-2.mdon the branchsprint4, under recording_open. RECORDING_OPEN opens a recording as an ended session, answered by VIEWS or an error.design/wire-protocol-3-2.mdon the branchsprint4, under cursor. CURSOR moves a viewer's cursor, with generations, and is answered by TIME_STATE.design/wire-protocol-3-2.mdon the branchsprint4, under time_state. TIME_STATE reports a viewer's cursor and playback state.design/wire-protocol-3-2.mdon the branchsprint4, under Flow Control. Flow control: scene updates coalesce per entity part, clears keep their order, split pieces go together, text lines never drop silently, and playback obeys max_rate.design/wire-protocol-3-2.mdon the branchsprint4, under Hub Forwarding. A 3.2 hub filters additions for older viewers, keeps scene state and text for late viewers, answers CURSOR and records or serves recordings.design/wire-protocol-3-2.mdon the branchsprint4, under Limits. Limits of 3.2 messages, such as the retained text lines and scene state counted toward the hub's 1 GiB budget.design/wire-protocol-3-2.mdon the branchsprint4, under Error codes. New error codes for the 3.2 messages.design/wire-protocol-3-2.mdon the branchsprint4, under Versioning and Compatibility. 3.2 is additive; senders use each capability only with a peer that announced it, and a recorded session is an ended session to a 3.1 viewer.design/wire-protocol-3-2.mdon the branchsprint4, under Worked Example. A worked example of a scene with entity transforms over timelines.design/wire-protocol-3-2.mdon the branchsprint4, under Example frames. Example frames made by a prototype encoder that reproduces the golden frames of 3.0 to 3.2 byte for byte.design/wire-protocol-3-2.mdon the branchsprint4, under Numbers to Confirm. Sprint 2 must confirm minor version 2, kinds 6 to 8, message types, the u16 dtype, the capabilities, the hub's new duties and the caliper.step(n) form.design/wire-protocol-3-2.mdon the branchsprint4, under Decisions. Decisions: stamps in i64 sections, timelines in VIEWS, one scene message per entity part, entity transforms as matrices, only u16 added, index-pair edges as an indices section of lines, bars as a SNAPSHOT, text in binary sections, a cursor per viewer connection, the hub never forwards CURSOR to a producer.design/wire-protocol-3-2.mdon the branchsprint4, under Open Decisions. Open decisions: the timeline declaration as a VIEWS key, server-side playback, time windows as a later key window, the text log's levels, and scene state at the hub.- Orchestrators' notes,
_notes/HANDOFF-sprint4.md. Pull request 1 content is finished and held on sprint4-pr1-main2 at 44840c5b: graphics layer, shader generation, scene core, scene view, WebGPU backend, colormap by keys, protocol 3.2 subset, caliper.scene and demo 0. - Orchestrators' notes,
_notes/HANDOFF-sprint4.md. The reviewer's major findings were fixed with tests: the hub's retained scene state bound, a queued Metal write ordering, index clamps of an unsubmitted frame, scene buffer release on reset, the viewer queue never dropping a reset, the browser recolour check, and the demo grid orientation. - Orchestrators' notes,
_notes/HANDOFF-sprint4.md. The remaining parts of protocol 3.2 (transforms, class tables, stamps, recording messages, split updates), every caliper.scene call, both senders and the hub are finished on sprint4-proto3 and carried onto sprint4-integ3. - Orchestrators' notes,
s4-view/STATUS.md. Source::take_scene and live/scene_queue.h are the seam through which a source of scene messages feeds the scene view. - Orchestrators' notes,
s4-proto32/STATUS.md. The protocol 3.2 scenes subset in the three codecs, with golden frames and a reference page, and the hub forwarding scenes. - Orchestrators' notes,
s4-proto32/STATUS.md. The web client does not announce the scenes capability until the view that draws scenes adds it to HELLO. - Orchestrators' notes,
s4-proto3/STATUS.md. Every part of SCENE_UPDATE, SCENE_TRANSFORMS, SCENE_CLASSES, stamp sections and recording messages (RECORDINGS, RECORDING_OPEN, CURSOR, TIME_STATE) are in the three codecs; split updates are assembled by the sources. - Orchestrators' notes,
s4-integ3/STATUS.md. The third pull request in progress: the protocol series is carried on sprint4-integ3, and the draws series is picked up to its first commit, with the rest, the meeting points and final suites still to do.