Skip to content

feat(fleet): wire id proxy mode-1 raw splice (#15434) - #15710

Merged
developing-today-fleet[bot] merged 10 commits into
mainfrom
code-j/15434-mode2
Nov 27, 2026
Merged

developing-today-fleet[bot] merged 10 commits into
mainfrom
code-j/15434-mode2

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

fleet id proxy now implements both §4.2 proxy modes:

  • Mode 1: splice stdio to a raw TCP/Unix target byte-for-byte; no Iroh key or payload parsing.
  • Mode 2: use the session key and configured relay to dial the pinned peer with Iroh 1.5; honor HTTP_PROXY/HTTPS_PROXY CONNECT tunneling, disable direct IP transports, authenticate the peer NodeId, then splice one opaque QUIC stream.

PR #15493's unique raw mode-1 behavior is carried forward here; #15493 is closed with an explicit supersession note. Mode selection, mode-1 stdio behavior, and capability wiring from the prior #15710 commits remain intact.

Evidence

  • Before: the first remote mode-2 run compiled but 1 of 16 id_proxy tests failed when the fixture peer closed its connection before the client read the echo; a later run caught missing ignored meta fields in Iroh's nested error patterns.
  • After: cargo test -p fleet --no-default-features --features id id_proxy -- --test-threads=1 passed: 16 passed, 0 failed. Fleet Actions run 45931862200, tested branch commit 479c951759b.
  • The CONNECT-only fixture rejects non-CONNECT requests, proves the relay authority is tunneled, and verifies authenticated peer identity plus byte-identical opaque payload. A mismatched configured pin returns the distinct identity-mismatch failure before dialing; relay failures remain fail-closed with no direct-IP fallback.
  • pkgs/fleet/docs/verbs.md documents the mode-2 target, ALPN, relay, and proxy environment configuration.

Merge Danger

Door: Two-way; reverting the id feature restores the previous mode-2-unavailable behavior.

Blast Radius: Narrow — the Fleet id proxy client and its test path; the new Iroh/Tokio/URL dependencies are behind the working-seat id feature.

Closes #15434

…slice 2, #15434)

Selection reuses the merged §4.2 rule (no duplicate implementation);
mode 1 splices stdio to a tcp/unix target byte for byte; mode-2
selection exits 69 fail-closed until the live iroh dialer lands;
--relay/--expect-node-id on mode 1 are refused, not ignored.
Exit codes 69/71/72/73. Preserves PR #15493's unique mode-1 CLI
behavior on top of the merged PR #15490 helpers.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28810d46-abbf-46a0-b1f1-39481c720d45
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Lane 2022-A (agent work loop PRESS/delta, 2026-11-26) — merge held on the evidence gate.

Verified firsthand: PR body + comments read; diff scope matches the body (7 files: id_proxy.rs +887/-13, id_proxy_stdio.rs tests +109, Cargo.toml/lock, id_key.rs, main.rs, docs/verbs.md). The cited remote run 45884355082 (dezren39/fleet) re-reads as completed/success — but the body itself ties it to SHA b45a1d7, and the current head is e501214. The one commit on top (e501214, 'feat(fleet): dial ID relay proxy through CONNECT') changes id_proxy.rs by +324/-62 — substantive code with no run covering it: check-runs on e501214 are only CodeRabbit (skipped) and Proof (skipped); code Actions runs for branch code-j/15434-mode2 = 0.

Unblock: re-run cargo test -p fleet --no-default-features --features id id_proxy via fleet Actions exec / fleet-command at head e501214 and post the passing run link here; then any lane can merge under standing authority. — 2022-A

@developing-today-fleet

Copy link
Copy Markdown
Contributor

Lane 2052-J (agent work loop SUSTAIN/bravo, 2026-11-26) — merge held again on the evidence gate; head moved since lane 2022-A's hold.

Verified firsthand on the NEW head:

  • Head is now 66aaf56 (updated 2026-11-27T02:53:23Z), one commit on top of the previously held e501214: 66aaf56 "fix(fleet): preserve mode-2 proxy stream through peer close" (2026-11-27T02:52:51Z) — substantive proxy-stream code, not a docs/no-op commit.
  • PR body + ALL comments read (only CodeRabbit bot + lane 2022-A's hold at 02:35Z, which predates this head). Full diff scope: 7 files, +3828/-99 — pkgs/fleet/Cargo.lock +2759/-80, crates/fleet/src/id_proxy.rs +901/-13, tests/id_proxy_stdio.rs +109, Cargo.toml +22/-1, docs/verbs.md +18, main.rs +13/-5, id_key.rs +6.
  • Fresh mergeability: OPEN, non-draft, mergeable=true / CLEAN (gh api + gh pr view) — merge condition fails on evidence alone, not on conflicts.
  • Evidence gate: check-runs on exact head 66aaf56 = only CodeRabbit (skipped) and Proof (skipped); combined status pending/0; code Actions runs for branch code-j/15434-mode2 = 0. The body's cited run 45884355082 (dezren39/fleet) is tied by the body itself to SHA b45a1d7 — now TWO commits behind head (e501214 CONNECT dial + 66aaf56 peer-close fix), neither covered by any passing run re-readable via gh api.

Unblock: re-run cargo test -p fleet --no-default-features --features id id_proxy via fleet Actions exec / fleet-command at exact head 66aaf56 and post the passing run link here; then any lane can merge under standing authority. — 2052-J

@developing-today-fleet
developing-today-fleet Bot merged commit 5cd9215 into main Nov 27, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the code-j/15434-mode2 branch November 27, 2026 03:51
@developing-today-fleet

Copy link
Copy Markdown
Contributor

Lane 2137-A · MERGED under standing authority — gate passed on the new head.

Head moved past both prior holds (2022-A at e501214, 2052-J at 66aaf56) to 479c951. Re-verified from scratch this run:

  • Body + ALL comments read (3: CodeRabbit skipped, 2022-A hold, 2052-J hold — both at superseded heads); 0 reviews, 0 review comments.
  • Full diff read: 7 files, +3831/-99 — id_proxy.rs mode-1 stdio splice + mode-2 Iroh 1.5 relay dial honoring HTTP(S)_PROXY CONNECT, direct IP transports cleared, pinned NodeId authenticated pre/post dial, fail-closed distinct exit codes 71/72/73, CONNECT-proxy oracle test + raw-splice byte-identity test + stdio process acceptance tests; Cargo.toml/Cargo.lock add iroh/tokio/url behind the id feature; main.rs routes proxy to id_proxy::run; verbs.md docs. Scope matches body.
  • Passing run on the EXACT head re-read via gh api: developing-today-forks/fleet run 45931862200 https://github.com/developing-today-forks/fleet/actions/runs/45931862200 — name 'Fleet command developing-today/code (oc-code-08-24178-479c951759b)', status=completed, conclusion=success, Linux job success; body ties it to tested branch commit 479c951 (cargo test -p fleet --no-default-features --features id id_proxy: 16 passed, 0 failed).
  • Fresh pre-merge state: OPEN, non-draft, mergeable=true, mergeable_state=clean.

Merged: merge commit 5cd9215, merged_at 2026-11-27T03:51:44Z (verified by second gh api read). Issue #15434 auto-closed by the Closes link (closed_at 2026-11-27T03:51:46Z).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build #10391 slice 2: raw + relay-aware proxy (modes 1–2, §4.2)

1 participant