Repository navigation
Description
Parent design: #10391 (pass 2, closed as a design record). Slice 5 of its §5 build table. Filed 2026-11-25 by a felix lane working #14229's premise check: #14229 (pass-3 §6.6 seam conformance) names this slice as its blocker — "pass-2 slice 5 (serving socket, tracked under #10391 — no dedicated build issue filed for it yet; this issue waits on that socket existing)" — and the check confirmed the slice was never filed and none of pass 2 is built.
State found (main 16a4284, 2026-11-25)
- No
fleet id serve-ws, no §4.5 envelope type, and no iroh/postcard code anywhere inpkgs/fleet; no CBOR crate in either workspace's lock file. - Pass-2 slices 1–4 (key lifecycle + stamping; raw + relay-aware proxy; postcard initiator; byte streaming) are likewise unfiled and unbuilt — the §5 table said "this design files none of them", and none were filed since. This slice depends on slices 3–4 per the design, so it cannot start until that chain is filed and built; whoever files slices 1–4 should add the dependency edges here.
- Pass 3's side exists: PR feat(id-web): /v1/runs, sessions and app presentation (#10392 §6.1–§6.5) #14734 landed §6.1–§6.5 (
pkgs/id/crates/id-web/src/sessions.rs,/v1/sessions+ socket), and §6.6 (Build #10392 §6.6: seam conformance with pass 2 (envelope round-trip) #14229) is the last pass-3 slice.
Scope (design §5 slice 5, §4.5)
Conversion + WS/WTransport serving (edge): threshold-triggered postcard→CBOR/MessagePack conversion (enum variants by name), the chunked envelope { v: 1, seq, kind: req|resp|chunk|error, alpn, payload, digest? } (BLAKE3 digest on chunked transfers), fleet id serve-ws binding localhost by default with credentialed non-local serving, Sec-WebSocket-Protocol: fleet-id-cbor-v1 (or -msgpack-v1) negotiation.
Acceptance (design §5 slice 5)
- A browser-fixture client with no postcard knowledge completes a value exchange and a >1 MiB chunked transfer with per-chunk sequence + BLAKE3 digest verified.
- Variant-by-name encoding proven against a skew fixture.
- Non-local serve without credentials refused.
- On landing, Build #10392 §6.6: seam conformance with pass 2 (envelope round-trip) #14229's golden envelope round-trip (oracle: this slice's §4.5 framing bytes) becomes buildable; note it there.
Open question for the implementer
Pass-3 §4.2 wraps session events in this envelope when they cross to a fleet socket, but neither design names which kind an event takes (the four kinds are req/resp/chunk/error). Decide it in this slice's PR and record it on #14229 — do not fork the envelope (no new fields; a new kind value is an envelope change both passes must name).
Related but not this slice: #14718 (iroh pilot under the #13717 transport forms) builds iroh transport for fleet doors, not the ID serving socket.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-26T04:58:57Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "30247ab2d608be39eb0ebe922589e002a3771a66"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}Acceptance criteria
- Prerequisite chain filed and built first: pass-2 slices 1-4 of design Design mill pass 2: iroh-native ID transport in fleet — identity, postcards, format conversion #10391 (this slice depends on slices 3-4 per the design); dependency edges added to this issue by whoever files slices 1-4.
- A browser-fixture client with no postcard knowledge completes a value exchange and a >1 MiB chunked transfer against
fleet id serve-ws, with per-chunk sequence and BLAKE3 digest verified (design Design mill pass 2: iroh-native ID transport in fleet — identity, postcards, format conversion #10391 §4.5 envelope{ v: 1, seq, kind: req|resp|chunk|error, alpn, payload, digest? }). - Variant-by-name encoding (postcard→CBOR/MessagePack conversion, threshold-triggered) proven against a skew fixture.
- Non-local serving without credentials is refused; localhost binding is the default;
Sec-WebSocket-Protocol: fleet-id-cbor-v1(or-msgpack-v1) negotiation works. - The session-event
kindquestion is decided in this slice's PR and recorded on Build #10392 §6.6: seam conformance with pass 2 (envelope round-trip) #14229 (no new envelope fields); on landing, Build #10392 §6.6: seam conformance with pass 2 (envelope round-trip) #14229's golden envelope round-trip becomes buildable and is noted there.
Activity
developing-today-fleet commentedon Nov 26, 2026
Intake review
Related: parent design #10391 (pass 2, closed as a design record); blocked consumer #14229 (pass-3 §6.6 seam conformance, whose golden envelope round-trip needs this slice's §4.5 framing bytes); pass-3 implementation PR #14734 (§6.1-§6.5, already landed); #14718 is related but is iroh transport for fleet doors, not this serving socket.
Live check: no open or merged PR references #15399; nothing in
pkgs/fleetimplementsserve-wsyet per the filer's main-state survey (main16a4284ee, 2026-11-25). The issue is live and not resolved.Notes / risks: this slice cannot start until pass-2 slices 3-4 exist, and slices 1-4 are themselves unfiled — the dependency chain is the real risk, not the socket work. The event-
kindambiguity (design names only req/resp/chunk/error) must be settled in the implementing PR and recorded on #14229, without forking the envelope.Suggested approach: file slices 1-4 first (or confirm they were filed after this intake), add the native blocked-by edges, then implement slice 5 against the §4.5 envelope with the browser-fixture and skew-fixture tests as the oracle.
Labels normalized:
effort/l(multi-stage, dependency-gated),app/idadded;kind/feature,priority/normal,status/needs-triagekept. Acceptance criteria appended from the issue's own Acceptance section.— fleet monitor (intake enrichment, protocol §5)
feat(fleet): id session key lifecycle + stamping (#10391 slice 1, §4.1)
dezren39 commentedon Nov 26, 2026
Progress — prerequisite chain filed, slice 1 in PR
This slice was blocked exactly as filed: pass-2 slices 1–4 of design #10391 were never filed, and this slice depends on slices 3–4. Working the blocker this run:
fleet id session-key— per-session ephemeral ed25519 key (OS RNG) or caller-supplied verbatim,fleet_node_idqueue stamp +FLEET_ID_NODE_ID/FLEET_ID_SECRETenv stamping alongside Design: automatic context propagation — every fleet action carries its origin #10357, memory-only zeroizing storage with session-end zeroize. Remote verification: fleet-command run 45778488134 (result lands on Build #10391 slice 1: key lifecycle + stamping (fleet id, §4.1) #15430).Next slice in the same form: after #15446 merges, slice 2 (#15434) — "after that PR, a CONNECT-only proxy fixture shows mode 2 reaching a stock peer through the shim with TLS intact."
The §4.5 session-event
kindquestion stays with slice 5's PR, as this issue specifies.developing-today-fleet commentedon Nov 26, 2026
Triage verdict — verified blocked on prerequisite chain (queue task 23862)
Premise + ownership check (2026-11-26, lane RF): no live claim, held label, or Drew-decision gate on this issue. The blocker stated at filing is real and still present.
Verified state:
Disposition: park queue task 23862 with a dependency ready-condition (not a person): resume when #15435 and #15436 are both closed. No code change in this triage — implementing the §4.5 envelope /
fleet id serve-wsbefore the postcard initiator and byte-streaming slices exist would fork the envelope this issue forbids. The session-eventkindquestion remains with slice 5's implementing PR, as specified, and is to be recorded on #14229 at that time.developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · re-park, blocker narrowed (lane oc-code-05, task 23862)
Recheck 2026-11-27 ~11:00-06:00: #15435 (slice 3) is now CLOSED (2026-11-27T16:47:59Z). #15436 (slice 4, initiator byte streaming) remains OPEN, so slice 5 stays dependency-blocked. Prior triage verdict (comment 7191991538) otherwise stands. Resume when #15436 closes.
developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · claimed (lane 1352-I, bravo SUSTAIN run 2026-11-27 13:52 CST)
Premise + ownership check done: issue + all comments read. No live sibling claim (prior notes are parks whose wake has now fired). Park wake MET, live-verified this lane: #15434 CLOSED 2026-11-27T03:51:46Z, #15435 CLOSED 2026-11-27T16:47:59Z, #15436 CLOSED 2026-11-27T19:42:01Z — the full prerequisite chain (slices 1–4) is built, so slice 5 (§4.5 envelope +
fleet id serve-ws) can start.Plan: implement slice 5 via the Git-API contents route (no clone), verify in repo CI on the branch, open the PR, decide the session-event
kindquestion in the PR and record it on #14229, merge when verified under standing merge authority.developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · landed (lane 1352-I)
Slice 5 is implemented and merged: PR #16314 #16314 (merge commit a0bd9df); this issue auto-closed by the Fixes link.
What landed (
pkgs/fleet/crates/fleet/src/id_serve.rs,fleet id serve-ws): §4.4 conversion (postcard↔CBOR/MessagePack, variants by name, 1 MiB default threshold trigger rule), the §4.5 envelope in both formats, 256 KiB chunking with per-chunk + whole-payload BLAKE3 digests, RFC 6455 serving socket with fleet-id-cbor-v1/-msgpack-v1 negotiation, localhost default bind, and credentialed non-local serving (NodeId-derived session token; anonymous non-local refused pre-bind, distinct exit 3).Verification on the exact PR head 247bb1a (fleet-command, branch ref): id_serve suite 12/12 passed (run 46064236824) incl. the browser-fixture value exchange with no postcard knowledge, the >1 MiB chunked transfer over the live socket with digests verified, the by-name skew fixture, and the 400/401 refusals; whole id domain 62/62 passed (run 46065185943), no slice 1–4 regressions.
Session-event kind decided (resp) and recorded on #14229 (comment 7227879476); its golden envelope round-trip is now buildable against this slices framing bytes. The live iroh dial plugs into the slices Bridge seam as the follow-on, the same shape slices 3/4 took for their live verbs.
test(fleet): golden session-event envelope round-trip (#16326)