Skip to content

Add portable conditional KV records across providers - #510

Open
ChristianPavilonis wants to merge 40 commits into
feature/pluggable-geo-providersfrom
feat/kv-record-contract
Open

ChristianPavilonis wants to merge 40 commits into
feature/pluggable-geo-providersfrom
feat/kv-record-contract

Conversation

@ChristianPavilonis

Copy link
Copy Markdown
Collaborator

Summary

  • Add portable conditional KV records with opaque generations, atomic Add/Overwrite/CAS, UTF-8 metadata, authoritative existence and complete partition-scoped listing. Ordinary and record operations use the same stored values.
  • Implement the capability for Fastly KV, Axum's persistent local store, DynamoDB and the EdgeZero-owned store service on official stock celld. Unsupported stores continue to refuse record operations.
  • Declare immutable layouts before preparation, then acquire the prepared capability. Forward native features through configuration and scaffolding without reopening providers or automatically replaying uncertain mutations.

Changes

Crate / File Change
edgezero-core Record types, capability/layout requirements, registry validation and shared contract tests.
Fastly and Axum adapters Conditional Fastly operations and durable local record transactions, generations, expiry and cursors.
edgezero-store-aws DynamoDB conditions, per-key retained allocation history, scoped partition queries/cursors and native item-size accounting.
services/celld-store Additive record API on the existing stock service rows and namespace object. Check the expected instance before effects and transactionally retain successful and rejected mutation outcomes for internal resend handling.
edgezero-store-celld Stock-service record client and read-only capability preparation. No celld fork, custom listener or extra deployment/bootstrap step.
Native bindings, CLI and templates Default-off record wiring, declaration/feature forwarding, alias validation and bootstrap-token capture for record bindings.
Tests, scripts and docs Provider contracts, actual generated consumers, stock celld fleet/restart/reply-loss proofs, feature-aware portable dependency checks and record guidance.

Closes

Closes #472
Closes #473

Stack placement

Base this PR on #439. #454 belongs above this PR; #464 belongs above #454 but remains outside official stack membership. Preserve existing PR identities and ordinary forward-merge ancestry.

flowchart TD
    A["#439: native Geo"] --> B["This PR: conditional records"]
    B --> C["#454: KV-backed Geo"]
    C --> D["#464: error finalization, outside stack membership"]
Loading

Test plan

Local verification uses Rust 1.98.1 with locked dependencies.

  • cargo test --workspace --all-targets after merging current Add pluggable native Geo providers and protected CloudFront ingress #439. Follow-up lint-only changes also pass the affected adapter and example tests.
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • cargo check --workspace --all-targets --features "fastly cloudflare spin"
  • examples/app-demo native workspace tests and strict all-target/all-feature Clippy.
  • Cloudflare and Spin all-target WASM Clippy for production and test-utils feature combinations, including affected lifecycle/ingress fixtures.
  • Isolated integration harness: 679 passed, four existing ignored; strict harness Clippy passes.
  • Prior provider/runtime proofs retained for unchanged provider/service code: persistent local records, DynamoDB Local, actual Fastly WASM KV cases, generated stock-celld TLS consumers, service restart/no-expiry persistence, independent writers, replay/rejection retention, committed-reply loss and two-node official celld takeover.
  • Complete hosted checks for this PR's exact head and intended base. A draft is intentional while checks and the deferred acceptance item below remain outstanding.

Known validation gap

The Viceroy emulator's record race can report more than one successful CAS writer. The one-winner assertion remains unchanged and the failed result remains disclosed. The emulator checks and replacement use separate locking intervals. Its repair is explicitly deferred; no retries for a favorable schedule, serialization, weakened assertions or runtime patch are included here. Successful individual runs do not establish atomicity. This does not establish a production Fastly defect or qualify the full Fastly concurrency acceptance criterion in #472.

Operational limits

Stock celld retains one serialized namespace object and allocator. Same-instance snapshot rollback/restore is not protected. Local/emulator proofs do not qualify production IAM, capacity, hosted fleets, backups or deployment. Native connector credentials remain outside published application configuration. No release, deployment, infrastructure apply or image publication is part of this PR.

Checklist

  • Follow repository conventions; changes are separated from inherited upstream repairs.
  • No Tokio dependency added to Core or portable adapters; portable checks inspect enabled features rather than version exceptions.
  • Route parameters use brace syntax and application HTTP types use EdgeZero's re-exports.
  • Store wiring uses the registries and prepared capabilities, not a second provider instance.
  • New behavior has contract, provider and runtime coverage with the limitations above stated separately.
  • No real credentials or secrets committed.

Preserve record and current stock-service/Geo ancestry. Add the service record API, prepared Rust client, generated TLS proofs and two-node resend/deadline/takeover checks.

Local checkpoint only. Native SDK, stock celld and strict lint checks pass; final SDK acceptance remains blocked by an observed Viceroy concurrent-CAS defect. Keep exact-one-winner assertions unchanged.
@aram356 aram356 linked an issue Nov 18, 2026 that may be closed by this pull request
1 task
@aram356
aram356 marked this pull request as ready for review November 18, 2026 17:27
@aram356 aram356 linked an issue Nov 18, 2026 that may be closed by this pull request
1 task
aram356 added a commit that referenced this pull request Nov 19, 2026
#517 (10ed380) tops ChristianPavilonis's line on #439:
- #510, the KvStore record contract with DynamoDB and celld providers on
  Axum (#472, #473);
- #454, portable KV-backed geo;
- #514, country and region through ctx.geo() on Cloudflare and Spin (#480,
  #486);
- #517, the portable ClientInfo contract with its Fastly, Axum, Cloudflare and
  Spin mappings (#475, #90, #91, #92, #485).

#517 also merged #469 and #502 itself, so its tree contains everything this
branch had. The only conflicts were JA4 lines that #517 refactors on top of
#469; this merge takes #517's version, and its tree is identical to #517's.
@prk-Jr prk-Jr mentioned this pull request Nov 20, 2026
14 of 15 tasks
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 894c8bd0 and cba2a91f, two merges of #439's new heads. 894c8bd0 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. cba2a91f 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, and the production hosting tests' held port reservations and
spawn-token respawn from PR #406 up, with each later PR's tests reading
the live host's address.
…rors

A record declaration naming an undeclared store ID is a deployment mistake, not a client error, so it must not answer every request with 400. Matches the Fastly adapter.

@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.

PR Review

Summary

Follow-up review at a839312d. The new commits deal with most of the review feedback since a296a067: Fastly/Cloudflare/Spin misconfiguration now returns 500, the guide sample compiles, record cursors carry a scope digest, DynamoDB partition queries use a begins_with key condition, Fastly read errors use the mutation classification, and the shared contract now runs a stale CAS while the key is absent. The record design is still careful. I'm requesting changes because my earlier blocking finding about Fastly CAS on an absent key is still open, the branch now conflicts with its base, and no hosted CI has run on this head.

😃 Praise

  • Every provider now runs the absent-key CAS assertion (record_store.rs:77), and redb, DynamoDB and celld reject it by construction. The DynamoDB partition-query fix also tightens cursor validation, so a forged allocator-row position is rejected (dynamodb_records.rs:434-446).
  • The production code reviewed here matches the stated atomicity model. redb checks and allocates in one write transaction. DynamoDB uses a per-key allocator that is never reset, plus a conditional PutItem with SDK retries disabled (max_attempts(1)), so a resent request cannot turn a committed CAS into PreconditionFailed. celld checks the instance, ledger and precondition and performs the write inside one transactionSync. Each mutation also gets a new ID from the client.

Prior findings status

  • 🔧 Still open: a stale CAS on a deleted key is not established on Fastly (crates/edgezero-adapter-fastly/src/key_value_store.rs:372). b4be3c3 added the shared-contract assertion I asked for. However, the Fastly provider still passes the generation straight to native if_generation_match. The repository's Viceroy patch (patches/viceroy/0.22.0-body-readiness.patch, the if let Some(g) = generation && let Some(val) = &existing hunk) still only rejects when a row exists. The Fastly record-contract phase that crates/edgezero-test-harness/src/runners/ci.rs:239-260 adds to the Fastly CI suite would therefore fail on the pinned emulator. The author's reply and the plan (docs/superpowers/plans/2026-11-13-kv-record-contract.md:15-21) confirm this. Production Fastly behaviour is also still unverified: the linked JS SDK page doesn't cover a missing key, and no hosted trace was run. Please land the emulator fix through the base, or take Fastly out of the CAS claim or document it as a Fastly limitation, so the required suite can pass.
  • ✅ Resolved: celld ordinary exists on record bindings now uses the live, instance-checked lookup. Only records.exists_strong uses the physical HEAD.

Findings

Blocking

  • 🔧 Merge conflict with the current base: git merge-tree --write-tree against feature/pluggable-geo-providers (dd34d19d) reports CONFLICT (content): Merge conflict in CHANGELOG.md. The base's new native Geo entry and this PR's ### Portable conditional KV records entry both insert directly under ## Unreleased. Please forward-merge the base and keep both entries.
  • 🔧 No hosted CI on this head: GitHub reports zero check runs and zero statuses for a839312d, and none for b4be3c3d. The workflows only trigger on PRs targeting main. The last green set was at a296a067, which predates the absent-key assertion that is expected to fail the Fastly suite. Please run the full suite for this exact head (for example by temporarily targeting main, or with a manual dispatch) and link it.

Non-blocking

  • 🤔 celld Add/CAS judge expired rows by physical presence (inline at services/celld-store/src/index.js:860). This is a cross-provider difference that the portable guide doesn't spell out.

Checks run locally (Rust 1.98.1, --locked, at a839312d)

  • cargo fmt --all -- --check: pass.
  • cargo test for edgezero-core, -adapter-axum, -store-aws, -store-celld, -adapter-fastly, -adapter-cloudflare and -adapter-spin: pass (includes the Axum shared record contract).
  • cargo clippy --all-targets --all-features -D warnings for core, axum, store-aws, store-celld, fastly and cli on the host target: pass. Cloudflare on wasm32-unknown-unknown and Spin on wasm32-wasip2: pass.
  • node --test services/celld-store/test/*.test.mjs on the pinned Node 24.20.0: 28/28 pass. Two empty-body cases fail on Node 24.12, which looks like a local runtime difference, not this PR.
  • Not run: Fastly WASM under the pinned Viceroy 0.22.0, DynamoDB Local, stock celld interop and the full workspace. Test scripts, specs and plans were only skimmed.

CI Status

  • No hosted checks reported for a839312d (blocking, see above).

RecordWriteMode::Add => request.mode(InsertMode::Add),
RecordWriteMode::Overwrite => request.mode(InsertMode::Overwrite),
RecordWriteMode::IfGenerationMatch(generation) => {
request.if_generation_match(generation.as_u64())

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.

🔧 Still open: a stale CAS can recreate a deleted key on the tested Fastly runtime

The shared contract now asserts the right behaviour (thanks). This call still passes the generation through unchanged, and the pinned Viceroy (with patches/viceroy/0.22.0-body-readiness.patch applied) only fails the precondition when existing is Some. So the Fastly record-contract phase wired into runners/ci.rs fails at assert_stale straight after the delete. Production Fastly is still unverified.

To unblock, any one of these is enough:

  1. Land the emulator fix in the base so the required Fastly suite passes on this head.
  2. Document it as a Fastly limitation (and have the contract skip that one assertion for Fastly only).
  3. Don't claim IfGenerationMatch on Fastly yet.

Leaving a required suite that is known to fail is not mergeable.

let result;
if (meta.op === "put") {
const { allocator } = readMeta(this.sql);
const existing = meta.op === "record-put" ? this.row(meta.key) : undefined;

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.

🤔 Add/CAS see expired-but-unswept rows, while lookup hides them

this.row() doesn't apply live(row, now). Until the alarm sweep runs (sweepIntervalMs = 60s, in batches of 256), two things happen:

  • A CAS that holds a pre-expiry generation returns Written and revives a value that lookup already reports as absent.
  • lookup returns None while Add returns PreconditionFailed, so a "lookup miss, then Add" flow keeps losing for up to a minute.

redb evaluates Add/CAS against live rows (key_value_store_records.rs:216), so the two record providers behave differently. The celld README and the stock-celld spec describe this as intended, but the portable guide (docs/guide/kv-records.md:145-149) only says celld "can hide expired rows". Consider either applying live() to existing here (sweep never resets the allocator, so generations stay unique), or stating this behaviour in the portable TTL section.

records.delete(key).await.unwrap();
assert_eq!(kv.get_bytes(key).await.unwrap(), None);
assert!(!records.exists_strong(key).await.unwrap());
assert_stale(records, key, before_delete).await;

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.

😃 Running the stale CAS while the key is absent, and then confirming it stayed absent, is exactly the check that separates a provider that recreates the key from one that doesn't. Putting it in the shared contract means every provider gets it for free.

.scan_index_forward(true).limit(native_limit)
// Value SKs share `r#<partition>`; allocator `g#` rows sort first
// and stay outside the key range, so `Limit` counts only values.
.key_condition_expression("#pk = :pk AND begins_with(#sk, :prefix)")

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.

😃 Bounding the Query with begins_with(#sk, :prefix) keeps Limit counting only value rows. Pairing it with the value_position check in decode_cursor also closes off allocator-row cursors. Nice fix.

@prk-Jr

prk-Jr commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

📝 Correction to blocking item 3 in my review above: the workflows are not restricted to PRs targeting main — test.yml triggers on every pull_request. The missing runs on a839312d (and b4be3c3d) are more likely because GitHub can't build the PR merge ref while this PR conflicts with its base (mergeable: UNKNOWN, CHANGELOG conflict in item 2). Also there is no workflow_dispatch trigger, so the practical path is: forward-merge the base, resolve the conflict, and confirm the full suite runs green on the new head. The finding itself (no hosted CI on the reviewed head) stands.

Bring in PR #439's native Geo sanitization fixes and the review fixes
below it, from PR #422 down to PR #275, including
NativeProviderCapabilities::missing_feature, the bindings-only validate
rules, typed KvOpenFailure categories for local KV, error propagation in
the celld dependency contract, the Geo contract's tokio 1.53.1 and
main's lockfile versions.

CHANGELOG.md: both sides added Unreleased sections at the top. The
resolution keeps the base's sections first, then this PR's "Portable
conditional KV records".

crates/edgezero-adapter-axum/src/native_bindings.rs and
native_stores.rs: the base checks compiled providers through
missing_feature on a named capabilities value. This PR added the
DynamoDbRecords and CelldRecords variants and their capability flags.
The resolution keeps the base's call and teaches missing_feature both
record variants: aws-dynamodb-records and celld-records. The
capabilities value gains dynamodb_records and celld_records.

crates/edgezero-adapter-axum/src/key_value_store.rs: the imports keep
this PR's records module and record types and the base's io,
DatabaseError and StorageError. The base's typed open also sets this
PR's record_binding: None. open moves after this PR's new_records, so
the impl's methods stay in alphabetical order.

crates/edgezero-adapter-axum/src/dev_server.rs: the base returns
KvOpenFailure from local KV opens and reports error.category(). This PR
added record-bound opens through new_records. kv_handle_from_path and
kv_handle_from_path_with_records keep this PR's layout split and the
base's KvOpenFailure return. A record-bound open maps the KvError from
new_records through a new record_open_failure helper: Unavailable stays
Unavailable, and any other error becomes Initialize. The production
local KV path uses the base's open for ordinary stores and the same
mapping for record stores, with the base's "KV" subject and failure
category. The development registry keeps this PR's rule that a
record-bound ID is never omitted as optional, and uses the base's
category in both messages. run_production_selected keeps the base's
"configure: application: assembly failed" error and this PR's
build_production_stores_with_records. The test modules keep this PR's
record_preparation_tests and the base's scoped ordering expect on
native_store_tests.

crates/edgezero-cli/tests/celld_generated_proof.rs: PR #422 made the
official celld TLS proof Linux-only and pointed its ignore reason at
scripts/run_native_celld_integration.mjs. This PR added a stock-service
records proof next to it, and that script runs both proofs. The
records proof and its generate_records and record_bindings helpers now
get the same Linux gate and ignore reason.

crates/edgezero-cli/src/config.rs (not conflicted): this PR's
record-provider validate test set the --target* fields, which PR #414
removed. The test drops them.

scripts/check_native_store_dependency_contract.sh: PR #422 made
cargo tree failures fail the script. This PR generalized
celld_features into provider_features for the record features. The
resolution keeps provider_features and adds PR #422's || return and
|| exit 1 to it and to every caller.

scripts/check_geo_dependency_contract.sh: the base pinned the Cloudflare
empty-feature tokio at 1.53.1. This PR replaced the exact-version
exception with assert_wasm_tokio_features, which accepts any version
without runtime features. The resolution keeps this PR's check.

scripts/ci_tooling.test.mjs (not conflicted): PR #422's test that the
native store contract fails closed runs that script against a cargo
stub. The stub only answered PR #422's graph queries, so this PR's
record-feature queries made the success run fail ("Selected AWS service
SDK is missing"). The stub now answers this PR's DynamoDB and celld
record graphs and keeps formatted store-aws queries empty. The injected
AWS-only graph failure still fails the script.
Bring in PR #275's Fastly contract test fix, which expects the terminal
error body in the production key order (serde_json without
preserve_order sorts keys alphabetically). The merge is clean.
aram356 added a commit that referenced this pull request Dec 1, 2026
Take PR #536's head, which adds the bounded record update on top of PR #510's round 12 review fixes.
Bring in PR #275's Viceroy repair, which fails an if-generation-match
insert when the key has no live entry, so a stale generation cannot
recreate a deleted key. The merge is clean.
@aram356

aram356 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Round 12 identity realignment: rc/identity (#495) is now at 38cb74fe. This branch fast-forwarded from a839312d to 90589c0d:

The Fastly wasm suite failed here on the record contract's stale write after a delete (b4be3c3d). That was an emulator defect, now fixed in #275's Viceroy repair patch and carried up. The plan paragraph that says the emulator fix belongs upstream of this PR is now stale.

Each merge message says what it carries and how any conflict was resolved.

Bring in PR #275's lockfile update, which moves the yanked
pin-project-lite, chacha20 and yoke-derive versions to their
replacements. The merge is clean.
@aram356

aram356 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Round 15 identity realignment: rc/identity is now at ef5cbf308. This branch fast-forwarded from 90589c0db to 861d56ea6:

Each merge message says what it carries and how any conflict was resolved.

A record store missing or unregistered at request time is a deployment fault, so every route must not answer as a client error. An ordinary-only binding keeps its 501.
Generation 0 is a valid token that never names a stored celld record, so it answers PreconditionFailed like the other providers instead of a validation error.
A CAS on a key that never allocated its generation created a permanent allocator row and sent a doomed PutItem. The allocator condition now rejects it, and only an exhausted allocator stays Unavailable.
An absent key with many descendants cost one strong list call per 1,000 descendants on a request path. The walk now stops after eight pages with Unavailable.
run_app_with_config wires no KV and FastlyService binds only the default ID, so a record app assembled and then failed every request. Both now fail before preparation with an error naming the constraint.
…d Viceroy

The records guide promised the CAS check on Fastly without saying its only evidence is the locally patched emulator CI runs.
The guide only asked for an explicit cutover decision. redb refuses to open, DynamoDB silently starts an empty keyspace, and celld and Fastly keep old rows under the new rules.
One pair per mode could not tell a race from two sequential writes. Each round now starts both inserts at one wall-clock instant, and the evidence requires every round to have one winner and at least one round whose inserts overlapped.
# Conflicts:
#	crates/edgezero-adapter-axum/src/run_options.rs
#	crates/edgezero-store-celld/src/test_support.rs
#	crates/edgezero-test-harness/src/evidence/cutover/reviewed_owners.json
#	crates/edgezero-test-harness/src/runners.rs
#	scripts/run_celld_store_fleet_proof.mjs
#	scripts/run_celld_store_fleet_proof.test.mjs
aram356 added a commit that referenced this pull request Dec 5, 2026
@aram356

aram356 commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Review follow-up: fixes committed to this branch

A full review of this PR turned up the problems below; each would otherwise have needed a follow-up ticket, so it is fixed on this branch instead. Every item names its commit.

Fixed in an earlier pass:

  • The record-contract fixture build ran unsupervised. 3e70fde replaces raw Cargo output capture with the supervised process/capture path; a direct SIGTERM now terminates and reaps the build.

Fixed in this pass:

  • Unbound record requirements answered every route with 400 (follows thread, whose fix changed only build_target_app). All three adapters re-validated record requirements on every request and rendered a missing registry or unregistered record ID as 400, so an operator misconfiguration looked like a client error. 2d2ea20 renders those failures as 500 and keeps 501 for an ordinary-only binding. The Fastly and Cloudflare unbound_record_requirements_answer_server_errors_on_every_route tests fail with 400 before the change; the Spin contract test unbound_record_requirement_answers_a_server_error covers Spin in CI.
  • Fastly manual entrypoints assembled and then failed every request. run_app_with_config wires no KV, and FastlyService binds a bare handle only under default, so an app declaring a record store under another ID failed at request time. c0f7d59 makes run_app_with_config fail assembly naming the constraint, has FastlyService answer 500 before preparation or any store open for a record ID other than default, and documents the constraint. Tests: entrypoints_without_kv_reject_record_declarations_at_assembly, service_rejects_record_ids_its_default_binding_cannot_serve.
  • A layout ID/version change did something different on each provider, undocumented. redb refuses to open, DynamoDB silently starts an empty keyspace (lookups miss, Add duplicates), celld and Fastly keep old rows under the new rules. 303d4f0 adds a per-provider table and recommends a new logical store or namespace for a cutover. Docs only.
  • Fastly exists_strong walked strong list pages without a bound on the request path (one host call per 1,000 keys sharing the prefix). bcd2a74 stops after 8 pages with KvError::Unavailable and documents the limit. Test: exact_existence_fails_after_its_page_bound_instead_of_walking_on.
  • celld rejected CAS on generation 0 as a 400 validation error, where redb, DynamoDB and Fastly answer PreconditionFailed. 0702fa5 returns PreconditionFailed locally without a request. Test: generation_zero_never_matches_and_is_rejected_without_a_request.
  • A DynamoDB CAS on a never-written key created a permanent allocator row and sent a doomed PutItem, so client-driven CAS requests grew the table. 9e031ed adds the expected generation to the allocator condition: a generation the key never allocated fails there with PreconditionFailed, with no allocator and no PutItem; an exhausted allocator stays Unavailable. Tested on the wire fixture and against the pinned DynamoDB Local image (the new assertion fails without the change).
  • The Fastly native race check could not tell a race from two serial writes. It ran one writer pair per mode and checked only outcome counts. 306ce8e runs 50 rounds per mode on separate keys, starts both inserts at a shared instant, records each guest's interval around insert, requires one winner per round and at least one overlapping round, and validate_events rejects single-round or non-overlapping evidence. On unpatched Viceroy 0.22.0 the runner now fails with "did not have exactly one winner".
  • The records guide promised Fastly's stale-CAS-on-absent-key behaviour with no caveat (follows prk-Jr threads 4706162201 and 4751578399). 37e70e8 says it is verified only on the locally patched Viceroy and that hosted behaviour for an absent key is unverified. Docs only.

Fixes made on the PRs below this one in the stack were merged into this branch with merge commits. The merge of #422's fixes (6ee5166) carried these resolutions: the celld token capture now also skips celld-records bindings when that feature is compiled out (a celld_records flag beside #422's celld_kv); the celld store test fixture keeps #422's x-edgezero-apply-before field in this PR's rewritten header parser; the fleet proof keeps both hold mechanisms and its record drops now also assert the reply arrived before the drop; the vacuous must-not-create-data assertion this PR added to the records emulator proof is removed (it set an environment variable nothing reads); and the reviewed_owners.json fingerprint for the Fastly runner dispatch is re-pinned (record-contract and outbound-lifetimes both run after the Viceroy pin check).

aram356 added a commit that referenced this pull request Dec 5, 2026
# Conflicts:
#	crates/edgezero-test-harness/src/main.rs

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.

DynamoDB and celld providers on Axum meet the record contract KvStore record contract with listing strong within a partition

3 participants