Skip to content

id: complete serve-proxy protocol after codec and mux-credit slices #14918

In progress

Description

@dezren39

Problem

PR #7666 delivered slice 1 of the serve-proxy implementation: the typed frame codec and local credit primitive. PR #13859 later added mux-level credit accounting. The original issue #7569 is closed, but its acceptance still includes leg establishment, full mux routing/scheduling, keepalive/dead-leg handling, resumption, and the E2E ciphertext-forwarding test; #7666's own body lists these as remaining, and #13859 states it does not wire a live leg.

The #5792 decision record already settles the protocol. This issue tracks the remaining implementation slices without changing its trust, fallback, or E2E decisions. #5798's fleet-surface design is separate.

Remaining acceptance

  • Establish TLS 1.3/TCP legs over HTTP CONNECT where required and the optional WebSocket binary-message adapter where CONNECT is denied; both carry the same typed frames.
  • Map per-leg stream IDs and schedule control, interactive, and bulk streams across the two connection classes without control frames queuing behind DATA.
  • Implement fake-clock keepalive/dead-leg behavior: PING after 25 seconds with ±20% jitter, dead after three unanswered PINGs, and close silent legs into the resume window after 120 seconds.
  • Implement broker-issued identity-bound resume tokens and signed RESUME, per-stream sequence/delivered-up-to vectors, exact replay of the unacknowledged tail, and the five-minute in-memory resume window.
  • Add the E2E test: forward ciphertext between a UDP-denied client leg and server rendezvous leg while proving the broker cannot read plaintext.
  • Preserve the id: design: id broker / serve-proxy role (from #5671) #5792 invariants: no content keys, no payload logging, no disk persistence in v1, no credit overrun, and no duplicate or reordered per-stream delivery.

First slice

Start with leg establishment (TLS/CONNECT and the WebSocket adapter) and a transport-level test that round-trips typed frames through each supported leg. Keep later mux scheduling, keepalive, resumption, and E2E forwarding as separate reviewable slices.

Evidence

Acceptance criteria

  • TLS 1.3/TCP legs are established over HTTP CONNECT where required, and the optional WebSocket binary-message adapter works where CONNECT is denied; both carry the same typed frames, proven by a transport-level test round-tripping typed frames through each supported leg.
  • Per-leg stream IDs are mapped and control, interactive and bulk streams are scheduled across the two connection classes without control frames queuing behind DATA.
  • Fake-clock keepalive/dead-leg behaviour matches spec: PING after 25 seconds with ±20% jitter, dead after three unanswered PINGs, silent legs closed into the resume window after 120 seconds.
  • Broker-issued identity-bound resume tokens and signed RESUME work: per-stream sequence/delivered-up-to vectors, exact replay of the unacknowledged tail, five-minute in-memory resume window.
  • The E2E test forwards ciphertext between a UDP-denied client leg and a server rendezvous leg while proving the broker cannot read plaintext.
  • The id: design: id broker / serve-proxy role (from #5671) #5792 invariants hold throughout: no content keys, no payload logging, no disk persistence in v1, no credit overrun, no duplicate or reordered per-stream delivery.

Activity

  1. added
    priority/normal
    queue/queued
    app/id
    effort/l
    task/fix
    on Nov 25, 2026
  2. developing-today commented on Nov 25, 2026

    @developing-today
    Contributor
  3. added
    queue/claimed
    work/assigned
    status/in-progress
    and removed
    queue/queued
    on Nov 25, 2026
  4. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · attention: missing agent note

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 01:14 CST; queue task 23711
    • Found via: monitor reconciliation (Duty 4 protocol check)
    • Task: This issue is claimed by a queue worker (task 23711, worker repo-worker-code) and now carries queue/claimed + work/assigned + status/in-progress, but no comment on the issue contains the required agent-note:v1 footer. The holding agent did not leave the required agent note — this protocol gap needs a human/Muse review of why the protocol was not followed.
    • Expectation: holder posts a standard agent note at its next transition.
  5. added
    user/review
    meta/protocol-gap
    on Nov 25, 2026
  6. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · claim: queue task 23711, slice 1 of this issue (serve-proxy transport legs)

    • Agent: archer (Muse lane QD)
    • Session / ID: queue task 23711, lane any-archeroccgdagpdpihlipdphdkfbfcblamhenh, claimed 2026-11-26T11:23:34Z
    • Premise check: read issue + all comments; no live claim by another agent, no held label, no Drew-only decision gate. Codec (feat(id): serve-proxy wire protocol slice 1 — typed frame codec (#7569) #7666) and mux credit (feat(id): serve-proxy mux credit accounting for DATA accept and WINDOW_UPDATE (#13694) #13859) are merged; no live leg exists — premise holds.
    • Plan: new pkgs/id/src/serve_proxy_leg.rs (owned paths only + Cargo.toml/lock wiring): TLS 1.3-only rustls config, HTTP CONNECT tunnel establishment, WebSocket binary-message adapter (one typed frame per message), all carrying the existing serve_proxy codec unchanged. Named-oracle tests serve_proxy_leg_*: typed-frame byte preservation across each leg, 16 KiB DATA cap, malformed/oversized rejection at the boundary. Verify via fleet Actions exec cargo test -p id --lib serve_proxy_leg, then PR + merge under standing authority.
  7. 14 remaining items

  8. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Progress from lane 3: the keepalive and idle-timeout slice (decision #5792 §4–5) merged in #15703 as pkgs/id/src/serve_proxy_keepalive.rs.

    • EndpointKeepalive: PING every 25 s ±20% on a quiet leg, reset by DATA or WINDOW_UPDATE in either direction, PING answered with PONG, leg dead after three unanswered PINGs (about 75 s).
    • BrokerIdle: a broker leg with no frame of any kind for 120 s closes.
    • ResumeWindow: open for 5 minutes from leg death.

    Time and jitter are injected, so all 12 tests (including proptests on the jitter band and death timing) run without a clock; clippy is clean. Still open on this issue: wiring these machines into mux routing and the resumption handshake.


    Generated by Claude Code

  9. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Mux scheduling slice opened

    PR #15837 adds the standalone serve-proxy scheduler: FIFO control frames, interactive DATA ahead of bulk DATA, and one-frame-per-stream round robin, with close-stream cleanup and validation. Focused scheduler tests pass 5/5 on the branch after merging current main (Fleet run 45921123329).

    This is a reviewable implementation slice, not completion of the remaining protocol acceptance. Transport wiring and the other listed protocol items remain open; continue the issue after this PR is merged.

  10. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Progress: opened PR #15837 for the mux scheduling slice and verified the focused tests pass 5/5 on the merged-main branch. The issue remains open for transport wiring and remaining protocol acceptance. This task is being returned to the queue to resume after the PR merges; no owner action is required.

  11. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Triage update — lane oc-code-04 (task 24462, 2026-11-27)

    Verdict: VALID; keep open and continue with the next implementation slice. The prior resume condition is now satisfied: PR #15837 is MERGED (head 7594bda8f38d4df6809887364c4f259a538025af), adding the standalone scheduler with FIFO control, interactive-before-bulk DATA, and per-stream round-robin. Earlier legs (#15560) and keepalive/idle-timeout (#15703) are also MERGED.

    The scheduler PR does not finish the protocol. Remaining acceptance includes wiring live mux/leg routing and per-leg stream IDs to the scheduler, then identity-bound resumption/replay and the ciphertext-forwarding E2E proof. Recommended next slice: integrate the scheduler and LegRoute into the live mux/leg path with named-oracle tests for control preemption, stream fairness, and close cleanup through that public path. Keep resumption and E2E behind this integration; no design decision or owner action is needed.

  12. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged: queue task 26084 — #14918 remains valid, keep open, no small fix closes it

  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Progress: landed the first live routing slice in PR #15937. LiveLeg now joins per-leg mux credit with the merged scheduler: DATA is admitted only after both credit windows accept it, controls preempt DATA, and stream close removes credit and queued scheduling state. The named-oracle integration suite covers those behaviors. Local check passed (3 tests); Fleet run #45942576993 is still running. Remaining #14918 acceptance is not complete: the next slice should connect LiveLeg to established ByteStreamLeg / WebSocket transport, then map broker-side IDs across the paired legs. Later work remains for keepalive/dead-leg, resume/replay, and end-to-end ciphertext forwarding.

  14. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Triage verdict — task 26084 (lane oc-code-03, 2026-11-27)

    VALID; kept open; next slice returned to the queue as task 26120.

    Fresh check (~05:20Z): slices landing fast — #15560 (legs), #15703 (keepalive), #15837 (scheduler), #15937 (live mux routing, merged 05:14Z) all MERGED. No open serve-proxy PR remains. Remaining acceptance per the latest progress note: connect LiveLeg to established ByteStreamLeg/WebSocket transport, then broker-side ID mapping; resume/replay and E2E ciphertext forwarding after that.

    Enqueued repo-health:v1:slice:developing-today/code:issue:14918:slice-4 (task 26120, queue repo-health-code-pilot): LiveLeg transport connection + broker-side ID mapping, owned paths pkgs/id/src/serve_proxy_leg.rs + serve_proxy_mux.rs, 45-min timebox. Nothing small-fixable here; no duplicate work started.

  15. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    oc-code-06 progress: slice 4 is implemented and ready for review in PR #16057. Current main was merged into the branch. Verification passed on the laptop through the Fleet shell: cargo test --manifest-path Cargo.toml --lib live_leg_ (2 passed) and cargo test --manifest-path Cargo.toml --lib paired_leg_stream_ids_translate_both_directions_without_leaking_ids (1 passed); git diff --check origin/main...HEAD is clean. The PR leaves the parent issue open for remaining slices.

  16. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census — lane CEN-C15, 2026-11-29 (full-census pass: body + all comments re-read firsthand; this comment is the current-state record for a cold pickup).

    Verdict: ready. Remaining acceptance is enumerated in the body with the #5792 invariants binding every slice. (This issue was filed to repair a premature closure — #7569 closed on a slice — with evidence pointers; exactly right.)

    Merged: PRs #15560 (legs), #15703 (keepalive), #15837 (scheduler), #15937 (live routing). Slice 4 is in PR #16057 (open for review). Remainder: resume/replay + the E2E ciphertext-forwarding test. No blockers.

    Labels/priorities were verified correct in the census — no label changes were needed.

  17. added
    kind/feature
    on Nov 29, 2026
  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The remainder is scoped against the closed original precisely (PR #7666's codec + credit primitive and PR #13859's mux credit accounting are credited; the unwired acceptance items — leg establishment, full mux routing/scheduling, keepalive/dead-leg handling, resumption, the E2E ciphertext-forwarding test — are enumerated), and the design authority is pinned (#5792's decision record settles the protocol; this issue changes none of it). priority/normal already set.

    GAPS: No kind/* label. Execution is healthy: slices are landing in sequence (legs #15560, keepalive #15703, scheduler #15837; slice 4 in PR #16057, verified and ready for review at last note).

    FIXES I APPLIED: Added kind/feature (protocol implementation work).

    REMAINS: Nothing for Drewry. Ready for pickup slice by slice; the E2E ciphertext-forwarding test is the natural closing slice.

  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found

    • No kind/* label at census time — added kind/feature.
    • Acceptance sat under a 'Remaining acceptance' heading rather than an ## Acceptance criteria section — the section is appended below, restating the body's own remaining-acceptance list verbatim in substance.
    • status/in-progress and queue/parked sit side by side — noted; left as-is (queue/* is worker-managed).

    Strengths

    Actions taken by this census

    • Labels added: kind/feature.
    • Appended an ## Acceptance criteria section to the body (original text unchanged).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/ideffort/lkind/featuremeta/protocol-gappriority/normalqueue/parkedstatus/in-progresstask/fixuser/review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions