Skip to content

Review received-head and CI fixture follow-ups to PR 275 - #499

Open
ChristianPavilonis wants to merge 15 commits into
docs/outbound-http-specfrom
review/pr275-cutover-followup-20261112
Open

ChristianPavilonis wants to merge 15 commits into
docs/outbound-http-specfrom
review/pr275-cutover-followup-20261112

Conversation

@ChristianPavilonis

@ChristianPavilonis ChristianPavilonis commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Current review status

At creation, #275 still points to 14a6ca8bb5a5cbe055a1f725bdab8f42569a3bf0 and already contains these changes. This branch has the same source tree, so the PR Files changed view is intentionally empty.

The branch contains a local combined revert baseline, followed by three separately reviewed reapplications. The intended three-commit, six-file delta can be inspected now through this explicit comparison:

9c7c2f0...e0f01bc

After Aram's cleanup, we will synchronize our owned baseline with his actual resulting source, merge that baseline forward into this branch, and verify that the PR shows only the intended remaining changes. Merely waiting for the base to change does not guarantee the correct GitHub merge-base diff. Existing author changes must survive that reconciliation.

No force push, direct update to #275, tag move, main merge, image publication or deployment is part of this PR.

Changes

Crate / file Intended change after base reconciliation
edgezero-core app/router and received-head tests Optional read-only received-head preparation before managed-host sanitation; no body access, header mutation, routing or response at this seam
Qualification progress fixture and CI artifact reader Write framing receipts as complete lines; retain all records under the existing byte cap without a count-only 512-record ceiling; keep malformed/oversized rejection
Fastly lifecycle test Retain unpolled work for stale callback assertions instead of depending on whether loopback IO has already completed

Prepared commits: eb95665f, 1ea46af3, e0f01bc0. Their patch IDs match the original changes. Aram's 27 changed-file blobs are unchanged.

Closes

None. This draft coordinates review with #275 and does not close that PR or another issue.

Test plan

Current local checks are recorded against head e0f01bc08fe7bbac8a43c129c2b0d49fae035c73, tree efb75526c878ba0a17779933553cbc2f461ff075.

  • cargo fmt --all -- --check
  • cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
  • cargo test --locked --workspace --all-targets
  • cargo check --locked --workspace --all-targets --features "fastly cloudflare spin"
  • Spin wasm32-wasip2 compilation and actual SDK resource tests
  • Full native harness suite: 660 passed, 1 failed, 3 ignored. net::wire::tests::idle_finish_and_drop_wake_both_collectors_without_fake_connections failed its closed-port connection assertion. The original failed run is retained. One isolated execution of that test passes, but it does not clear the full-suite failure or establish its cause. Harness build, strict harness/fixture lint/format and CLI-only compilation pass.
  • Fastly WASM unit tests on the explicitly repaired local Viceroy, not stock or hosted proof
  • Repository tooling, legacy/docs contracts and docs format/lint/build
  • All 78 qualification fixture tests pass serially
  • Default parallel qualification fixture suite: the pre-existing global logger capture/poisoning failure also reproduces on the original public 14a6ca8 source. Serial success does not clear that gap.
  • Full local Fastly CI passes, including smoke, client-progress and complete wire evidence, using the explicitly repaired local Viceroy. This is not stock-runtime or hosted qualification.
  • Full app-demo/generated-project and all other adapter runtime qualification were not repeated for this placeholder.
  • Hosted qualification on the eventual cleaned/reconciled base is pending. Test, format and CodeQL workflows currently select PR bases named main, so this non-main draft does not automatically receive those runs.

Checklist

  • Original author work and all published history retained
  • No new Tokio dependencies, provider operations or runtime policy changes
  • Existing API/fixture regression controls retained without broader limits or deadlines
  • No credentials or private deployment inputs added
  • No update to Aram's branch or PR metadata
  • Reconcile onto the actual author-cleaned base before requesting merge readiness

Current downstream hosted observations include cancelled-host-suite aggregate failures, exact cache misses and missing CLI artifacts. Other checks remain unfinished. These outcomes are retained, not counted as passes; their causes are not resolved by this draft.

ChristianPavilonis and others added 8 commits November 11, 2026 19:52
Restore isolated CLI activation, supervised progress tooling, raw qualification telemetry and stable evidence identities. Correct empty Spin request framing, nonce fixtures and documentation while preserving outbound limits, deadlines and ownership contracts.

Validation: all five primary Rust gates, 2702 workspace tests, 660 harness tests, 38 tooling tests, isolated CLI compilation and the outbound documentation contract. Full four-adapter/demo and hosted qualification gates remain open.
Undo the changes from 14a6ca8, 658f89d, and 410a162 as one history-preserving revert.

Preserve b97efec and all existing commits. This is a local comparison baseline; Aram is handling the public cleanup. No remote branch update is part of this commit.

The five required Rust gates pass. Broader checks retain a pre-existing parallel fixture logger failure and reproduce the restored Fastly framing-receipt issue. Neither is hidden by this cleanup.
Prepare this change on an owned local follow-up for review. The parent is a temporary local revert baseline; publication and reconciliation onto the actual author-cleaned head are separate steps.

Original-commit: 410a162
Prepare this change on an owned local follow-up for review. The parent is a temporary local revert baseline; publication and reconciliation onto the actual author-cleaned head are separate steps.

Original-commit: 658f89d
Prepare this change on an owned local follow-up for review. The parent is a temporary local revert baseline; publication and reconciliation onto the actual author-cleaned head are separate steps.

Original-commit: 14a6ca8
aram356 added a commit that referenced this pull request Nov 14, 2026
Brings #275 at e9ffaa8 and the refreshed heads of #499, #460, #406,
#407, #409, #414, #422 and #439. Each PR merged the one below it, so
this merge has no conflicts.

Two edits fit #469 to #275, as #469's open review asks:

- #469's ingress JA4 test calls into_core_request with one argument.
  #275 now passes the Axum outbound executor through that function, so
  the test gets an executor handle the way the other ingress tests do.
- The Axum guide names EdgeZeroAxumService, which #275 removes and
  check_outbound_legacy_api.sh rejects. The guide now names only
  AxumDevServer::with_trusted_ja4_header.
aram356 added a commit that referenced this pull request Nov 16, 2026
Brings #275 at b65e714 and the refreshed heads of #499, #460, #406,
#407, #409, #414, #422 and #439. Each PR merged the one below it, so
this merge has no conflicts. #409 resolved the one conflict on the way
up, in edgezero-core's app.rs imports, by keeping both.
aram356 added a commit that referenced this pull request Nov 17, 2026
Brings #275 at ea2549f and the refreshed heads of #499, #460, #406,
#407, #409, #414, #422 and #439, including #422's stock-celld store
service and its merge into #439. Each PR merged the one below it, with
no conflicts on the way up, so this merge has no conflicts.
@ChristianPavilonis
ChristianPavilonis removed this pull request from stack #501 November 17, 2026 17:14
Bring in main's Fastly SDK 0.13.3 upgrade (#529) with Viceroy 0.22.0
and the Fastly CLI 17.2.0 upgrade (#531), with PR #275's exact pins at
0.13.3 and url 2.5.9, its Viceroy readiness repair on 0.22.0 and its
typed Image Optimizer unavailability check for SDK 0.13.3.
Bring in PR #275's installation of the wasm32-unknown-unknown target
before the Viceroy 0.22.0 readiness repair builds, which the fastly
wasm tests and Portable record contracts (Fastly) jobs need.
@aram356

aram356 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#495), I pushed f60bae42 and 599f3296, two merges of #275's new heads. f60bae42 takes EdgeZero main's Fastly SDK 0.13.3 upgrade (#529), with Viceroy 0.22.0 and the Fastly CLI 17.2.0 upgrade (#531), with #275's exact pins at 0.13.3 and url 2.5.9, its Viceroy readiness repair on 0.22.0, its typed Image Optimizer unavailability check and its drain of declared uploads after an early response on Axum. 599f3296 takes #275's d8cd85c8, which installs the wasm32-unknown-unknown target before the Viceroy 0.22.0 readiness repair builds, as the fastly wasm tests and Portable record contracts (Fastly) jobs need. Both merges had no conflicts.

Bring in PR #275's atomic conditional KV insert in the Viceroy readiness
repair, which the Fastly record contract's native race needs.
@aram356

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#495), I pushed f7751058, a merge of #275's new head that brings #275's 41cdf035, which makes conditional KV inserts atomic in the Viceroy readiness repair, as the Fastly record contract's native race needs. It had no conflicts.

Bring in PR #275's batch cutoff test fix, which advances the test clock
when the request arms its own deadline instead of after dispatch.
@aram356

aram356 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

For the identity integration branch (#495), I pushed 27901990, a merge of #275's new head that brings #275's 0e2a58ae, which fixes an intermittent failure of the batch cutoff test by advancing its clock when the request arms its deadline timer. It had no conflicts.

@prk-Jr prk-Jr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 27901990 against base 0e2a58ae (five-file delta: received-head preparation seam in core, the framing-receipt write in the qualification fixture, and the wire-reader test assertions).

Verdict: approve. The preparer is optional and defaults to a no-op. It gets &HeaderMap, so it can't change headers, and it never sees the body, the route or the response. Router clones share it through Arc, as the doc says. The fixture now panics when a framing receipt can't be written, where it used to silently drop qualification evidence. That fits a qualification fixture. The reader test now checks that oversized input fails with the oversize error, so it can't pass on a different error.

Non-blocking

  1. router.rs:367: see the inline note. In this PR no adapter calls the new seam yet.
  2. The PR description is out of date. It says the Files changed view is empty and describes a six-file delta. Since #275 moved, the view shows these five files, and the Fastly lifecycle test change is already in the base. Please refresh the summary and the "reconcile onto the cleaned base" checklist item so later reviewers see the real scope.

Evidence (local, Rust 1.98.1 per .tool-versions)

  • cargo test -p edgezero-core --test received_head_preparation: 2 passed.
  • Broken control: I made RouterService::prepare_received_head skip the callback. received_head_preparation_retains_only_authenticated_fact_without_mutating_headers failed at its extension assertion, then passed again after restoring the code.
  • Harness runners::ci tests: 18 passed.
  • cargo clippy -p edgezero-core --all-targets --all-features -- -D warnings and cargo fmt --all -- --check: clean.

Limits

  • Hosted test/format workflows don't run on this non-main base.
  • The one failing hosted job, cache-restore-seed, fails on sccache GHA cache write errors after three attempts. Nothing in this delta touches workflows or scripts.
  • I didn't run the full workspace, adapter runtime or WASM suites for this delta.


/// Sets a body-blind preparation callback for structurally validated received heads.
///
/// Managed hosts call it before stripping forwarding fields or provider credentials.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: no adapter calls prepare_received_head at this head, so a preparer registered here never runs on Fastly, Cloudflare, Spin or Axum. Further up the stack, only the Axum service wires it in (#409). Consider naming the host that invokes it, e.g. "The Axum managed host calls it…", or saying that adapters which don't sanitize forwarding fields never invoke it. That way an app on another adapter won't count on authenticated facts that never get filled in.

This branch has not been deployed

No deployments
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.

3 participants