Skip to content

docs: audit Transferd integration boundaries - #9

Merged
LoopyLuci merged 11 commits into
mainfrom
ci/local-pipeline
Dec 4, 2026
Merged

LoopyLuci merged 11 commits into
mainfrom
ci/local-pipeline

Conversation

@LoopyLuci

Copy link
Copy Markdown
Owner

Summary

  • Document the boundary between Transferd transport services and Continuum's QUIC/UDP overlay.
  • Clarify that LinkTransport/LinkRegistry are not wired into OverlayNode.
  • Record findings and recommended integration prerequisites in docs/INTEGRATION_AUDIT.md.
  • Remove a duplicate overlay refusal regression test uncovered after syncing main.

Validation

  • python ci/ci.py run --profile prepush (all seven stages passed)
  • Commit precommit checks passed.

LoopyLuci and others added 11 commits November 28, 2026 13:26
Adds a local CI pipeline in ci/, run on this computer. It mirrors core-ci.yml
(fmt, clippy, tests, interop binaries, relay build, Python, TypeScript, audit),
and adds the desktop app's tests and a core-sync check against TransferDaemon.

- ci/ci.py: profiles precommit, prepush, full and nightly; --only, --jobs,
  --fail-fast; check, list, last and hooks commands. Stdlib only.
- ci/engine.py: runs stages in dependency order. Cargo stages share one lane,
  and the others overlap with them. Logs and a JSON report per run.
- ci/checks.py: preflight for tools, Cargo.lock, line endings and staged
  changes (whitespace, credentials, large files).
- ci/tests: 68 self-tests. ci/install-nightly.ps1 registers a nightly task
  but is not run by this commit.
- .githooks/pre-commit and pre-push run the precommit and prepush profiles.
  Install with: python ci/ci.py hooks install
- docs/LOCAL_CI.md: stages, profiles, hooks, reports and limits.

core-ci.yml: every job now runs on [self-hosted, <OS>], not GitHub-hosted
machines. The repository is public, so each job a pull request can reach
skips pull requests from forks. Runners must be registered before the jobs
start; until one is, they stay queued.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…ds removed

Every job runs on [self-hosted, Linux, X64] and checks that a pull request comes from this
repository, so a fork's pull request never runs on the runner. The build job is Linux only
and uploads transferd-core-linux. The audit job also gets the full guard, so it now runs on
same-repository pull requests as well as on pushes and the weekly schedule.

LOCAL_CI.md updated to match: CI is Linux only.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…dows runner

The Windows runner on this PC serves both repositories with labels [self-hosted, Windows, X64].
The relay build matrix runs Linux and Windows again, each job with the fork guard. macOS stays
out: there is no macOS runner, and a comment in the matrix says so. LOCAL_CI.md updated to match.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The Windows runner is this PC, and a parallel build exhausted the Windows paging file while
compiling the workspace tests. The Windows build legs set CARGO_BUILD_JOBS=2 for their cargo
steps; the Windows-only pwsh job sets it on the job. Linux is unchanged.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The Windows Rust build needs the MSVC toolchain (Visual Studio Build Tools,
C++ workload). The msvc sandbox runners install it from a cached offline layout,
so the Windows leg now requests the msvc label. The Linux leg keeps its own labels.
Each matrix leg sets runs_on; the job parses it with fromJSON.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…eused

Turning mesh DNS off, or restarting it, dropped the old forwarder, which only
aborted its tasks. An abort takes effect later, so the listening socket could
still be held when the next bind ran. The test
a_node_answers_dns_through_a_paired_nodes_resolver failed on the sandbox runner
for this reason: the address was still in use right after DNS was turned off.

MeshDns::shutdown now aborts the listener tasks and waits for them, then aborts
and waits for the per-query tasks, which each hold a clone of the socket.
set_mesh_dns awaits it before returning. Per-query tasks are tracked in a
JoinSet and reaped as they finish, so finished tasks do not pile up.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
splice closed the application's socket cleanly (FIN) when the overlay-side
connect failed, so the application read the end of the stream and took a cut-off
transfer for a complete one. The function's own contract is that an overlay-side
failure resets the client.

On Linux, a reset that arrives right after the handshake can make connect fail
with ECONNRESET, which is the path that hit proxy::tests::
a_failed_overlay_side_resets_the_client on the sandbox runner. The connect
failure now resets the client, like the read failure already did. A new test,
a_refused_overlay_side_resets_the_client, covers the refused-connection path
deterministically.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…12-31)

curve25519-dalek 4.1.3 has a scalar-multiplication bug in its AVX-512 backend.
The fix is only in curve25519-dalek 5.1.0, which needs ed25519-dalek 3 and
x25519-dalek 3 (direct dependencies of transferd-crypto, both 2.x now). That
is a major bump with API changes, not a lockfile update, so this is a
time-boxed ignore, the same pattern as RUSTSEC-2026-0387.

The bug is reached only on nightly builds on an AVX-512 CPU. Stable builds and
the release binaries are not affected.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@LoopyLuci
LoopyLuci merged commit 2249fca into main Dec 4, 2026
7 checks passed
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.

1 participant