GeezerVison is showing github.com — feat(id): authenticate spill cursor through the host controller by developing-today-fleet[bot] · Pull Request #14991 · developing-today/code
Conversation
Summary
Successor slice to draft PR #14749 (task 23727): wire the authenticated successor replay cursor through the production spill host/controller path, with WorldHandle::dispatch_spill_copy as the final serialized lease and replay-boundary gate. Stacked on code-f/21349-spill-v2 because there was no host/controller dispatch path to extend — this adds the smallest typed adapter seam, per the task packet.
- New module
world/spill_controller.rs — the first production caller of the spill admission gate:
CursorAuthenticator: the host-adapter seam (same seam that establishes roster authentication in spill_pool) verifies a presented proof for the exact (holder, epoch, replayed_position) triple.
AuthenticatedReplayCursor: fields private, only constructor is the authentication check — a raw node-asserted position can never be dressed up as a verified cursor.
SpillController fixes the order with no bypass: authenticate → residency gate (id_core::residency::evaluate) → WorldHandle::dispatch_spill_copy (actor rechecks live holder/epoch/term/replay boundary) → send exactly once, only with actor-released bytes. Every refusal (UnauthenticatedCursor / Residency / Authority) sends zero bytes.
handle.rs: the dispatch_spill_copy doc now names the controller as the sanctioned production caller.
- Design doc update in
doc/2026-11-25T01-38-00Z_design_spill_replay_gate/ recording the controller path.
Evidence
- Fleet run 45584638384 success on head
f247b8c1d: cargo test -p id-worlds --features sandbox --lib spill = 29 passed / 0 failed (26 pre-existing + 3 new), failover = 5 passed / 0 failed.
- New tests named in the log:
spill_controller::tests::an_authenticated_cursor_carries_the_exact_verified_triple, spill_controller::tests::a_forged_or_rebound_proof_never_becomes_a_cursor, and the end-to-end spill_controller_dispatches_only_an_authenticated_cursor_at_the_boundary — against a live actor it proves: forged proof → no bytes; authenticated stale cursor → ReplayPending, no bytes; wrong-epoch cursor → no bytes; residency-denied (expired host evidence) → no bytes; cursor at the current grant boundary → exactly one send; same cursor after handback → refused, no further bytes.
- Two earlier runs (45579787297, 45581336793) failed in executor prep (rustup/ring on developing-today/fleet — known executor defect fleet-command executor: ring/aws-lc-sys build-script binary fails to execute (os error 2) — native build-script dependency trees unbuildable dezren39/fleet#111), and 45582944312 caught a real compile error in the first version of the e2e test helper (closure returning an async block); fixed by expanding the dispatch inline via a macro. No new dependencies.
Remaining on #7572 (explicit, not claimed here)
- A concrete transport authenticator for a real deployment (the seam and a deterministic double exist; no network dispatcher is wired yet).
- The remaining design §7 failover oracle cases and reader-then-holder integration beyond this path.
- Q2 failover detection/grant/replay measurements.
- The 30s/10s lease defaults are unchanged.
Refs #7572
{
"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-25T09:36:48Z",
"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": "c11f41086f57d626be7eb582763b721f8f557408"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add world/spill_controller.rs: the first production caller of the spill
admission gate. A host-adapter CursorAuthenticator verifies the exact
(holder, epoch, replayed_position) triple; only then can an
AuthenticatedReplayCursor exist. SpillController fixes the order
authenticate -> residency -> WorldHandle::dispatch_spill_copy (the
serialized final lease/replay gate) -> send exactly once with the
actor-released bytes. Every refusal sends zero bytes.
End-to-end test against a live actor proves forged, stale,
wrong-epoch, and residency-denied cursors send nothing, the cursor at
the current grant boundary dispatches, and the same cursor is refused
after handback. Refs #7572. Lease defaults 30s/10s unchanged; remaining
design S7 cases and Q2 measurements stay open.
The closure returning an async block moved its captures on first use
and failed lifetime checks on the remote executor; a macro_rules
helper expands inline at each call site instead.
coderabbitai
Bot
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
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:
512db018-3929-49f7-b031-45bd860a5e6c
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|