Repository navigation
Conversation
Use an implicit Euler-tour treap and binary lifting; add focused tests and the actual S0 three-way differential harness.
Preserve zero-side-effect receipt replay, refresh root incarnation on safe fence reset, compare graph identity independently, register PYTHONPATH, and enforce writer domains in Debug builds.
Keep default-OFF generic dfkv targets independent of test/cyclestore and register S1/S2/S3 targets with the module's own includes, hermetic dependencies and CTest entries.
Cover invalid-parent links and stale/non-leaf prune probes, count them in random traces, and preserve causally valid minimized failure projections for replay.
…op snapshots - Reject missing TTLs and duplicate persistent unique-index keys before business persistence. - Bind business checkpoints to braft's live applied index and ordered leadership term. - Cover replicated invalid-command recovery, first-no-op snapshots, and durable store faults.
|
Review gate: this head is not ready to merge. Independent review of the main-relative S4 delta found (1) capability/live-coverage validation running before exact existing-operation replay, so a valid old capability can lose its FINAL/token replay, and (2) live Lookup failing to compare both operation digests before advancing toward Commit. It also found old-base changes that would undo unrelated current-main fixes. The adapter fixes now have their focused evidence; capability replay must be fixed on the updated S4 tree after #631. The branch must first converge with actual main, preserve all unrelated new main behavior and helpers, and rerun its required validation and CI. No auto-merge, force push, or administrator bypass has been enabled. |
…e/pr634-main-reviewfix # Conflicts: # src/cyclestore/src/fsm.cc # src/cyclestore/src/store_rocksdb.cc # test/cache/ram_tier_test.cc
- validate both live Lookup payload digests before admitting a token - publish terminal fallback and exhausted transport responses with their actual fault identity - derive branch tip depth from the supplied path length
- Match semantic-v2 commit and lookup retries before current capability applicability checks. - Preserve canonical identity, receipt, legacy fallback, and negative-path validation semantics.
- Bind duplicate Lookup capability reuse to the operation's persisted encoding history. - Preserve terminal identity for contradictory commit timestamps. - Assert schedule-derived capability graph and lease highwaters.
- Bound short COMMIT replay to the target operation's persisted capability history. - Keep authoritative negative FINAL receipts before prefill terminal and test both paths.
Reject cap-only FINAL retries that prove only live coverage, not the operation history and token read watermark. Cover late same-operation and live cross-operation capabilities while retaining original LOOKUP capability replay.
Classify the replay request before generic evidence reconstruction fills its page vector. Use a full-evidence hot commit for the late-watermark counterexample and retain repeated original-capability replay.
Reject unbound capabilities only when they would replay a FINAL receipt, retaining cross-path operation conflicts. Isolate the late-watermark fixture and register its regression independently.
Keep the live donor commit at the victim's accepted timestamp so the subsequent replacement still creates generation two.
|
A tree-identical linear-history successor is now open as #646. This is only a delivery-history change, not a source change:
This PR remains open and unmerged while #646 is verified. Once #646 is actually merged, #634 will be closed as superseded by its actual merge result; the original commits and the prior |
|
Superseded by #646, which has actually MERGED. Delivery evidence:
I am closing this original PR as superseded, not MERGED. The original public integration branch and its |
- Add origin/read-watermark export with bounded retention, deterministic replay and S2/S5 gating. - Preserve observed_lsn replay semantics and additive fused/shadow lineage conflict handling. - Add focused C++ helpers, integration tests and the opt-in shadow adapter. Tree-identical linear replay of the verified candidate in dingodb#634. The original integration branch is preserved for audit.
Overview
Add S4 evidence capabilities and a default-off shadow adapter on the existing CycleStore service. The controller remains an independent CPU-side component. New adapter paths are opt-in fixtures and helpers; this PR does not move production traffic, deployment, charging, or inference-engine defaults onto the adapter.
capability_client_adapted=falsein the real shadow fixture: no adapter fast path or independent client-side authority is claimed.dfkv_serverandlibdfkv.DFKV_BUILD_CYCLESTOREremains OFF in the maintained/default full-build profile.Current integration and ancestry
PR #631 is now actually MERGED as
1df1493f145ff5ddf408a60a7aa067d7fc865a4f; it is no longer an open-prerequisite branch.The current PR head is
83f517f212e3fdb9d20ff19d61d9fe971429ddc3, treed1c1905c86a8d0b254af21b4ccd455c9a72a7300, with both #631's actual merged tree and the original S4 candidate in its ancestry. The update was a normal fast-forward; no raw history was force-pushed or substituted for the actual main line.The maintained-full source binder records the exact 32 changed paths against that merged main, the per-file blob/content identities, and a complete-history bundle with both the owned branch and upstream-main ref. It does not treat the old PR-base property or an earlier full run as proof for this head.
Capability replay and receipt authority
Lookup/commit retain token, path, generation, operation-id, and final-receipt identity checks. A capability-only FINAL replay must additionally pass operation-local provenance and the token read watermark before any existing receipt can be replayed or a capability echoed.
ApplyCommitfreezes the early origin validation before generic live-evidence resolution. A later generic Resolve result cannot authorize replay after that validation fails. Regression coverage includes:validated_apply_indexexceeds the token's read watermark;The adapter preserves deterministic negative FINAL outcomes without manufacturing a successful logical commit or issuing another retry. A negative FINAL is not made equivalent to a positive receipt merely to satisfy timestamp or projection checks.
Prefill completion and optional-hook boundary
Shadow admission uses finalized prefill statistics and retains one prefill timestamp; it does not independently choose a billing timestamp for each retry. Both prefill completion and physical contribution completion are required.
The optional
on_prefill_executedfan-out is a declared companion/test integration seam, not an assertion that every upstream vLLM MultiConnector has that hook. An absent parent hook producesunsupported_prefill_hook: no callback is fabricated, the logical cycle stays unknown, and no logical Commit is projected. Test-only fan-out fixtures do not establish upstream-wide ABI support or real-model/full-rank admission.The earlier prefill-hook/linkage compatibility fixes remain part of this head. They do not remove the requirements for receiver compatibility, distributed/rank coverage, Msh/streaming behavior, or production Router/Nexus integration.
Verification status for this exact head
Independent final source and focused-evidence review returned GO, zero must-fix, including both live-origin cases, conflict precedence, fixture timing, full evidence, legacy/fallback and authentic repeated replay. This is not merge approval or a claim that all runtime evidence is complete.
On this exact head, the raw focused artifacts establish:
errors=[]. Late-FINAL and live cross-operation capabilities are rejected with fallback and no replay/echo; authentic original-LOOKUP capabilities replay the same original receipt, including repeated retries.Public CI for this head is run 46309075250. Its terminal status and each of its jobs are evaluated independently of the intermediate
b3b92a78run, which ended cancelled after that intermediate head was superseded and is not final evidence.Maintained full and validation correction
On this exact head, the fresh clone build and maintained native run completed 390 build steps and executed 2149 of 2155 discovered cases: 2050 PASS / 99 SKIP / 0 FAIL by direct JUnit. The raw result was 2044 PASS / 105 SKIP / 0 FAIL; six name-only apparent skips have matching CTest PASS and JUnit
status=runevidence. All 32 inherited required cases passed, and all 2149 JUnit files were independently checked.The unit had
env -iwith only explicit paths/locale and owned HOME/tmp/coordination values. The effective-environment guard passed, C/C++ compiler launchers were empty, the etcd PID/listeners were privately owned,DFKV_BUILD_CYCLESTORE=OFF, and the unit stopped successfully. This is a default-OFF native/RDMA/io_uring regression; it does not execute the opt-in CycleStore focused cases, which are evidenced separately above.The original finalization failed because its checker incorrectly required the literal cache type
STRING=PRE_TEST. The actual cache entry was the valid CMake representationUNINITIALIZED=PRE_TEST. A later validator-only correction requires exactly onePRE_TESTvalue, independent of the normal cache-type annotation, and accepts the same original native evidence:accepted=true,errors=[]. The original failed coordinator history remainsvalidation_rc=1,status=failed, and is preserved alongside the rejected manifest. It was not rewritten into a completed claim. An attempt to append a completed record was refused because the original active claim no longer existed; no replacement or synthetic claim was created.An immutable correction envelope records that distinction, the exact checker and all source/unit hashes, the actual cache entry and the original/current validation semantics, all raw/adjudicated TSV results and all 2149 JUnit payload hashes. Envelope SHA-256 is
eb8f22bba7c5038af4bc292b54aad6f41aeeacab0e965e70f089d8c6170be3ac. The retained full-evidence package is namedfull-gates-evidence-83f517f212e3fdb9d20ff19d61d9fe971429ddc3.tar.gz, with SHA-25615ee945459a470d5117cff020152ef97b4a0b8aec44159f7990d7c1d3bc0e288. Consequently, the original pipeline failure is not hidden, and this native-evidence correction is not described as an original-pipeline success.The retained code-workspace evidence directory is
${CODE_ROOT}/dfkv-evidence/pr634-delivery-83f517f2, containing the verified package, correction envelope, accepted manifest and independent package-content verification. The retained remote root is/mnt/disk1/dfkv-test/cyclestore-pr634-83f517f2-r1.Earlier full/focused results—including those for
4db634ec2dcc7b4d92d4a052d8af6038c90dbabfand830aa22f4957199a9dfbb794e15363042cd398ca—remain historical evidence only. They are not promoted to acceptance for this exact head, and earlier failures are not rewritten.Explicit boundaries
Isolated controller and adapter fixtures, journal/restart tests, replay differential tests, and replication fixtures are not real-model admission or a public service entry. No claim is made for full-rank TP/PP/DCP/PCP/KDA/PD, multi-host admission, SGLang acceptance, Msh response pass-through, production Router/Nexus, persistent receiver-hash compatibility, public SLA/p99, charging rollout, or production deployment.
Focused core builds are not evidence of a real model, real GPU training workload, or production performance. Default OFF behavior and opt-in test operation must be distinguished throughout review and delivery. Merge remains gated on the exact-head runtime evidence, maintained full, public CI, and final integration review; source-only review alone is not a merge GO.