Repository navigation
Conversation
Signed-off-by: bootjp <contact@bootjp.me>
Signed-off-by: bootjp <contact@bootjp.me>
Signed-off-by: bootjp <contact@bootjp.me>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (193bbb6):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
Please review the full draft at |
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 193bbb601f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| exported, err := s.exportVersionsFromLocked(ctx, sc.batch, exportOpts, true) | ||
| if err != nil { | ||
| return CleanupVersionsResult{}, err | ||
| } | ||
| if err := stageCleanupVersionDeletes(sc.batch, exported.Versions); err != nil { |
There was a problem hiding this comment.
Preserve visible-head agreement during covered-range cleanup
This is the documented blocker, not an additional defect: replicas with different local compaction histories select cleanup rows from different physical histories. With versions 10 and 20 initially present, one replica can compact away 10 before both apply a cleanup with ceiling 20 and a one-row budget. Deleting version 20 then exposes version 10 on one replica and leaves the key missing on the other, despite identical applied indices. Permanent coverage excludes CAS but does not make divergent ordinary reads safe. TestCoveredCleanupAgreesAcrossReplicaRetention captures this scenario. The positive Lean and TLC agreement results exclude independent compaction; the separate retention counterexample documents the failure rather than establishing its safety. Cleanup must preserve logical visibility independently of retained historical rows.
Useful? React with 👍 / 👎.
| (cond-> (-> s (observe [:floor key] version) (assoc-in [:values [key version]] value)) | ||
| (< version bound) (violation :version-regressed call op) | ||
| (and (some? known) (not= known value)) (violation :version-value-changed call op) |
There was a problem hiding this comment.
Reject observations that cannot originate from any write
Beyond the known cleanup blocker, the public checker can certify fabricated register contents because a previously unseen version/value pair is accepted without checking its provenance. For example, append a completed read returning version 40 and value 999 to the test's healthy history, after all operations have completed and with no additional write invocation: check-history still returns :valid? true. That observation is impossible for this fresh, non-expiring key, whose last successful replacement was version 30 with value 3. The same gap permits corruption on the first read after seeding. Track possible producing writes, including overlapping and indeterminate operations, and reject reads that cannot correspond to any of them instead of treating every new version as authoritative.
Useful? React with 👍 / 👎.
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
Signed-off-by: bootjp <contact@bootjp.me>
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (44a53e3):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Main conflicts are resolved at 44a53e3. CAS/Forward/timestamp/TTL/read handoff integration tests pass with the race detector, and the new CAS history witness rejects fabricated versions and spurious mismatches. This remains Draft: TestCoveredCleanupAgreesAcrossReplicaRetention still reproduces predecessor resurrection after physical-only cleanup. The approved replicated logical retirement and bounded physical reclamation protocol is not implemented yet; the current review receipt must not be treated as resolving that known blocker. |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (f204ddf):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (81e2ba7):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Review the latest pushed HEAD c386826. The only change after the previously reviewed HEAD is a self-removal test observation fix. Configuration and applied indexes are separate publications; the test now witnesses configurationTransition=true during held SaveSnap, waits for its existing completion barrier to clear, then retains both index assertions, peer removal, close/join and budget checks. No production code, timeout, skip, revocation, WAL ordering or outcome semantics changed. V1/V2 passed 30 normal and 30 race repetitions; full lint is clean. A full-suite failure exposed the old sampling assumption and is preserved. Performance adoption remains pending and no trial has passed. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Keep learner snapshot cancellation and pacing without losing original capture retirement or fatal export cleanup errors. Quiesce disk-usage fixtures before measuring physical files. Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (9a5db83):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review Please review latest pushed HEAD 9a5db83. Main conflicts are resolved while retaining learner snapshot cancellation/pacing and owned-export retirement. The original capture is closed exactly once; only catch-up payload write failures are retryable, while final file fsync/rename/directory durability and joined source-close errors remain fatal before Raft publication. Snapshot/learner/Append tests passed all 62 cases three times normally and with race, including TCP-enabled cases and real fsync faults for regular and catch-up snapshots. The rest-CI OPTIONS-file race is fixed by measuring only closed stores; all physical/numeric comparisons remain unchanged. Full lint reports zero issues. Per-operation revocation, WAL sync -> apply -> ACK, and UNKNOWN semantics are unchanged. Full latest-HEAD CI, whole-Go tests and the original performance adoption trial are still required; no performance pass is claimed. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (add58a6):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review Please review exact HEAD add58a6, including revocation boundaries, individual WAL-sync/apply/ACK ordering, and snapshot export ownership after the main integration. The latest commit only restores the full expected snapshot retry metadata in the ingress feedback test. Performance adoption is still pending; current CI failures are under investigation and are not being waived. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
Signed-off-by: bootjp <contact@bootjp.me>
Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (e934e1a):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review Please review exact HEAD e934e1a after the final push. The separately committed fenced-floor design narrows transfer classification, prevents a new TSO reservation retry, and preserves UNKNOWN for pending EXEC/list/XADD allocation failures without replay. Please audit caller/error precedence, revocation, original attempt identity, snapshot ownership, and individual WAL-sync/apply/ACK ordering. The CI fixture repairs retain the catch-up and all-member admission assertions. Focused race tests and full KV race passed; all latest-HEAD CI and the original performance adoption remain mandatory and are not waived. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (a7993de):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review Please review exact final-push HEAD a7993de. A separately accepted design configures only synchronous Raft MaxInflightBytes=max(8 MiB,effective message target); async stays 128 MiB. Preserve every receipt/native generation, full-member per-caller capability check and WAL-sync -> individual apply -> ACK order. Please audit custom/unlimited targets, legal 64 MiB wire entries and following-entry progress, owner-turn bounds versus total queue/heap claims, and nil production observers. Faithful three-node worker tests now reload each committed local catalog on every recovery and prove the selected real healthy ACK advances Match/commit, with revoked-ACK and corrupted-catalog negative controls. Parent targeted race, full lint and dependency checks passed. R14 original performance remains FAILED, hot NOT RUN; no partial or profiled result is acceptance. Full CI, 300s CAS/ZSet stress and unchanged primary/hot adoption must still pass on this HEAD. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Signed-off-by: bootjp <contact@bootjp.me>
Signed-off-by: bootjp <contact@bootjp.me>
TLA+ spec divergence review (auto-triggered)This PR touches files that the TLA+ safety spec has an anchor on (per Anchored files changed in this PR head (f82cbac):
What to check, by subsystem:
If the change is correct but requires a spec update, edit @claude review please verify TLA+ spec divergence per the checklist above. @codex review please verify TLA+ spec divergence per the checklist above. |
|
@codex review Please review exact final-push HEAD f82cbac. The last two commits are test/CI only: a narrowly typed RawGet retry for the exact lost-read-fence error (global mutation replay classification unchanged), and moving the new unchanged 64 MiB compatibility test into the existing isolated native CI step with explicit verbose evidence. The full 9999-iteration raw/transaction sequences passed twice under race. The max-value test retained its original values, five-second waits, elections, ACK, following-entry and three-store equality checks; two-core runs passed twice after the concurrent owned WAL-heavy test ended. Earlier competing-load failures remain recorded, not called passes. Please audit UNKNOWN semantics, exact error/detail handling, test caller cleanup and complete CI coverage. The synchronous byte-window policy, genuine receipt/native revocation, WAL-sync -> individual apply -> ACK and original performance gates are unchanged. R14 remains failed and hot unrun; R15 is not allocated. All final-HEAD reviews, actual CI, 300s CAS/ZSet stress and unchanged adoption remain mandatory. |
Design:
docs/design/2026_11_20_proposed_single_key_mvcc_cas.mdCurrent Decision
Performance adoption remains deferred. Version CAS is disabled by default.
Current source/review/CI target:
f82cbac3eb82e47f7965dcc1aa32ffdb1835082e.Do not merge or enable on review, CI, diagnostics or partial windows alone.
The original R10 adoption trial FAILED both cells: its first Fresh measurement
had 2,309 UNKNOWNs at primary 217/s and 684 at hot 105/s. Neither reached a CAS
comparison. R11 was a retained-process diagnostic, not an adoption retry:
25,957 successes and 83 UNKNOWNs at primary 217/s. Backlog preceded the first
UNKNOWN. Sync accounting was complete on the leader and one follower but
incomplete on the other. These observations do not prove every hot outcome's cause.
R12 never ran calibration or measurement: its whole-suite prerequisite exposed
test-fixture issues. It was collected as setup-only, and all four VMs, disks
across eight hosts, watchdog and ephemeral SSH/TLS keys were deleted and verified.
R13 was also SETUP ONLY: its initial natural n2 leader did not match its fixed
n1 endpoint, so launch admission stopped before calibration. No serving reset
or forced transfer was attempted. All four VMs, disks, watchdog and ephemeral
keys were collected/deleted and verified. R14 is registered before allocation
and independently reviewed: bind the first ready natural leader, pin it for
both cells, and reject any later identity change. Check the bound identity
before/after each cell; no cross-hardware absolute-rate equivalence is claimed.
R14 retains the original independent primary/hot calibration,
ten alternating pairs, 30s warmup, 120s measurement, eight workers, 1 KiB values,
four attempts and 1s scheduled-arrival deadline. Zero UNKNOWNs, original paired
p99/goodput thresholds, final heads and history checks remain mandatory.
R14 FAILED primary at the fourth pair's Fresh measurement: 22,362 successes,
1,397 UNKNOWNs, 1,401 deadline misses, zero unsent, and p99 925.591152 ms
at the frozen 198/s rate. The following 30s all-voter drain timed out, stopping
the campaign; hot was NOT RUN. The preceding three complete pairs and fourth
CAS window do not establish adoption. Original evidence was frozen before
profiling. One explicitly ineligible, intrusively profiled diagnostic at 198/s
completed one pair without UNKNOWNs; it is neither a reproduction nor a pass.
All R14 VMs, disks across eight hosts, watchdog and ephemeral keys were deleted
and independently verified after collection. Earlier failures remain failures.
An additional separately committed design bounds synchronous Raft catch-up
refill to
max(8 MiB, effective message target)without changing per-operationsession/native admission, WAL sync, apply or ACK order. The candidate is pushed
with faithful recovery regression checks. This candidate does
not claim a total heap/dispatch-queue bound or resolution of every hot UNKNOWN.
It requires fresh final-HEAD review, CI and the unchanged full performance gate.
R15 is prepared before allocation with the same original criteria and the
accepted natural-leader binding protocol. No R15 performance verdict exists.
Changes
retaining async's independent 128 MiB window, all message-count/queue limits,
individual admission, failure feedback and durable ACK order. Custom targets
retain opening semantics and legal oversize entries retain progress.
per-member committed-catalog recovery and exact selected-ACK attribution.
Corrupt equal-version/missing catalogs and revoked selected ACKs fail closed.
Test callers cancel, unblock and join before fixture resources close.
outcomes and final replicated FSM validation.
TTL, tombstones, adoption identity, ownership return and snapshot recovery.
turns with per-operation admission and unchanged WAL sync, apply and ACK.
them on the snapshot worker. Preserve ordinary Snapshot, TSO and async paths,
source-index fences, durable publication ordering and WAL retention.
Omit only private owned-export scratch SST sync, retaining final snapshot
file/directory sync, source fence and durable Raft publication.
acknowledged Match covers the entire validated original range. Actual failure
counters, invalid/empty/partial/old-term/snapshot fallback and queued data remain.
PUTs as well as existing CAS. Pin cutover and retain message/entry/byte, FIFO,
priority, control, commit, term, configuration and generation boundaries.
Classification adds no authority, re-encoding or shared FSM/Pebble commit.
snapshot retirement. Close the original capture exactly once. Retry catch-up
payload write failures, but keep final fsync/rename/directory durability and
joined source-Close failures fatal before Raft publication or WAL release.
through the floor boundary without exposing other causes or changing
watermark RPC status. Project it to floor-only at TSO term initialization
so it cannot enable a new reservation retry. The real Redis target/proxy
returns one terminal EXEC error rather than fabricating per-command slots.
attempt timestamps/write sets unchanged and no new mutation dispatch.
Permit only bounded preflight-fixture recovery from an unchanged checkpoint,
requiring an identical page replay and next-tick progress. Production guards,
timeouts and unsupported-member assertions remain unchanged.
Authority and Operations
No positive authority cache, early ACK, skipped per-message session admission,
or UNKNOWN-to-mismatch conversion is introduced. Protected ACKs need the actual
current receipt and native generation before advancing Match. Local transport
feedback does not grant peer authority.
Store locks live at
<DB-parent>/.elastickv-store-locks/<DB-basename>, includingwhen CAS is disabled. Parent-directory write permission or an appropriately
pre-provisioned lock directory is required. Never unlink active anchors. Use
matching builds throughout experimental membership; do not overlap older feature
builds against the same store.
Verification
Add single-key compare-and-swap by MVCC version #1535 (comment)
Current review/CI and 300s CAS/ZSet stress are pending:
https://github.com/bootjp/elastickv/actions/runs/47216735678
The old e934 review/CI/stress links below are historical evidence only, not
approval or CI coverage of the new HEAD.
but its Go CI FAILED the raw read sequence and new maximum-value case. Those
failures are retained. The read test now retries only the exact lost-read-fence
status, without changing mutation replay. A real RawGet server-to-TCP-client
control went RED first; terminal status/detail and cancellation controls passed.
Both original 9999-iteration raw/transaction sequences passed twice under race.
The new unchanged 64 MiB test is now in the existing isolated native step,
with explicit verbose success required. No payload, deadline or assertion was
reduced; the normal shard script is unchanged. All 71 packages, five shards,
both native steps and aggregate still require fresh final-HEAD success.
engine/server packages, zero skips/failures/race reports. Full-repository
lint and production import-direction checks passed. The hook also passed.
Independent source review resolved catalog/ACK-observation blockers; a final
teardown control reproduced the remaining early-return join gap, now fixed.
12,593,047 payload bytes in 13 messages before the healthy ACK. The candidate
emitted 8,854,413 in 9, below 8 MiB plus its largest message (9,372,438 total).
Every selected live healthy ACK advanced Match and commit 132 -> 133; a real
revoked receipt left both at 132. A legal exact 64 MiB protected wire envelope
and its following entry replicated, as did the 16 MiB custom message target.
Async's 128 MiB boundary and explicit unlimited sync opening remain.
These are work-bound/safety controls, not original performance acceptance.
four race schedules. The maintained 128 x 96 KiB fixture preserves the same
12 MiB suffix and five-second waits while reducing individual applies.
The earlier failures remain adverse throughput evidence, not erased passes.
Historical e934 Verification
Add single-key compare-and-swap by MVCC version #1535 (comment)
https://github.com/bootjp/elastickv/actions/runs/47176275031
Both jobs passed. CAS: 1014 successes, 1013 chained successes, 974 reads after
ACK, 988 rejected reuses, no errors, linearizable/valid. Its 27 indeterminate
operations under fault stress are not a normal-operation performance pass.
ZSet: 539 reads, 918 mutations, zero errors, linearizable/valid.
Add single-key compare-and-swap by MVCC version #1535 (comment)
Security review passed:
Add single-key compare-and-swap by MVCC version #1535 (comment)
Latest four-channel check found no current-HEAD findings, no failed/pending
checks and a clean merge state. Performance adoption remains a separate gate.
all five shards, their aggregate, both additional native large-value steps,
and actual successful summaries for all 71 test-bearing packages. This is
explicitly CI-shard provenance, not a claimed local single-command pass:
https://github.com/bootjp/elastickv/actions/runs/47176140137
The earlier 9a local run failed its snapshot expectation with 70 packages
passing; add58 CI failures remain recorded, not waived or counted as passes.
integration: all 62 selected tests passed three times normally and with race,
zero skips, including the two real TCP cases. Additional dispatch/helper
extraction coverage passed race three times. GC disk fixtures passed 8/8
normally and with race, with original numerical comparisons retained.
four-versus-one count was invalid production-equivalent evidence. The corrected
positive holds a same-term independent-key Save, queues four original frames,
consumes the prefix ACK, and observes four subsequent Saves versus one.
Every append has its own native check and ACK. A separate real-revocation
negative denies the old receipt during and after the term-changing Save.
pending-result correlation. Ordered OCC, visible values and durable applied
indexes remain. Pre-/post-write failures suppress ACKs. Reordered protobuf
fields preserve decoded equivalence and original bytes; suffix bounds and
classifier CPU/allocation benchmarks are covered.
retaining both index assertions, peer removal, close/join and zero-budget
checks. V1/V2 passed 30 normal and 30 race repetitions before integration.
poisoning and swallowed final rename errors. Owned cancellation/retirement and
fatal joined-close/rename failures now pass. Real pipe-induced fsync failure
is tested for both regular and catch-up snapshots without publication/release.
physical measurement now requires a closed DB and released lifecycle lock.
A deterministic precondition RED exposed all three old open-store call orders.
No ENOENT/file is ignored; survivor, version, progress, compaction, SST equality
and numeric reclamation comparisons remain.
producer fix, on an extra TSO retry. The final allocator observed one floor
attempt and zero reservations. Real TCP EXEC target/proxy tests preserve
terminal and genuine mixed-array shapes; landed-write/lost-response controls
preserve UNKNOWN and one dispatch. Full KV race, focused ten-fold race,
surrounding Redis race repetitions, and independent scoped source review
passed. A test-only lint import repair was followed by fresh race and lint.
catch-up test retains its unreachable minimum and typed rejection. An expired
real transfer probe reproduced the split fixture failure; a second persistent
timeout still fails, and all original migration/capability guards remain.
of every Go path, the OS or the transport feedback rule.
Five Review Lenses
snapshot durability before publication/release. Exact reopen, held-Save,
cancellation, fsync, rename and joined-close fault checks pass. Reuse-allocation
failure preserves the landed prior attempt and issues no new mutation.
Byte flow control retains real post-Save ACKs and legal oversize progress.
term/config invalidation, cutover and FIFO/priority boundaries. Worker cancel
precedes join; original owned handles retire once. Transfer error identity
adds no authority or TSO retry. Race repetitions pass. Recovery reloads each
local committed catalog; exact selected-ACK observation happens outside both
scopes. Caller cancellation/unblocking/join precedes test resource cleanup.
measured independently. Contribution to hot UNKNOWNs and full adoption are
still unproven, so the original performance gate remains open. One refill is
now bounded and measured; total dispatch ownership and full adoption are not.
definitive-versus-UNKNOWN semantics remain. Disk-size fixtures measure stopped
stores after logical/value/version assertions without changing GC algorithms.
Corrupt/missing catalog and exact revoked-ACK controls fail closed.
immutability, suffix bounds, publication completion and learner/owned-snapshot
failure integration are covered. Latest whole-suite, CI and stress evidence
is finalized separately from performance adoption. New tests connect the
floor producer to the real Redis proxy and retain negative ambiguity/status
controls. The additional error-boundary and byte-window designs each preceded
their implementation. Original R14 remains failed, hot not run; R15 pending.
Related follow-up designs are under
docs/design/2026_12_03_proposed_*.md.The original batching commit combined design and implementation; the corrective
validation design was committed separately before its test changes. Published
history was not rewritten.