Repository navigation
feat(replay): compare canonical observations - #625
Merged
Merged
Conversation
ketor
force-pushed
the
lr/sto18-replay-eval-df500248
branch
3 times, most recently
from
November 28, 2026 21:39
1b09be0 to
efc751c
Compare
- Preserve exact input hashes and source/generation/sequence event identities. - Compare canonical JSON without coercing types or inferring cache lineage. - Return no equality verdict for invalid or unknown-inventory captures.
ketor
force-pushed
the
lr/sto18-replay-eval-df500248
branch
from
November 28, 2026 22:34
efc751c to
5dfd47b
Compare
ketor
marked this pull request as ready for review
November 28, 2026 23:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a bounded offline comparator for validated replay observations.
compare_replay_traces()independently validates each capture, retains exact input-file SHA-256/byte identities and source-qualified capture/generation/sequence event IDs, then compares complete canonical JSON bytes.Only
capture_idand measured capture/wall/monotonic timestamps are excluded. Generation, sequence, ordered items/pages, keys, statuses, retention, payload descriptors and extension fields remain significant. Canonical bytes, not Python/raw-object coercion or hash-only equality, determine equality; nestedFalse/0,True/1and-0.0/0.0stay distinct.Missing, empty, duplicate, mixed, malformed and unknown-inventory inputs do not establish semantic equality. Unknown inventory is
unknown; comparison isnot_establishedwithsemantic_equal = null. The existingvalidate_replay_trace()eight-field result shape and trace schema v1 are unchanged. Capture remains optional and disabled by default.Changed files
CHANGELOG.mddocs/design/replay-trace.mdintegration/common/src/dfkv_common/replay_trace.pytest/python/run_sto18_replay_trace_validation.pytest/python/test_sto18_replay_trace.pyNo transport, storage-startup, connector, health-map or production configuration implementation changes are included.
Current exact source identity
5dfd47b4b35dc671387bed6c4555b1e1aee841d4c4d18e7ffc27489e98c2a88b723950e673775241235d8676fc65bb37a695163ef83fa7c6d46a0bdc46197336452— completed / success, 13/13 jobs, all withhead_sha = 5dfd47b4b35dc671387bed6c4555b1e1aee841d4.That is COMPLETE PUBLIC CI ONLY, not itself a merge decision or production approval.
Only that existing five-file patch was replayed onto this base. All five file blobs and exact delta bytes are unchanged; patch ID is
d6a4fc12bd246b0aae7b6b74d9275f9a587a6e04.Older
6c6cf72…,fdc77bd…,1b09be09…andefc751cd…sources, raw full runs and CI are retained as separate historical evidence. They are not reused as this head's results.This is a draft, not a ready/review, queue, merge, release or deployment request.
Current focused checks (separate invocations)
unknown,not_established,semantic_equal = nullrather than known-empty or false equivalence.Behavioral mutations against the real current fixture distinguish nested
False/0,True/1,-0.0/0.0, status values, retention parameters, requested lengths, payload descriptors and extension fields. Generation/order contract failures and empty/missing/duplicate/mixed/unknown inputs return no equality verdict. Existing focused cases also exercise valid-generation mismatch, item reorder, disabled observation and open-failure behavior.Current exact full-regression evidence
A separately acquired current-main full for the exact
5dfd47b4…candidate completedcompleted/0with corrected direct CTest/JUnit adjudication: 2122 discovered, 2116 executed, 2017 PASS, 99 SKIP, 0 FAIL. EightReplayTracerows andpython_replay_trace_validationall executed and passed; an expanded same-head validation additionally records the new comparator case and 20/20 Python. Six maintained TSV-skip labels were explicitly retained as corrections from direct per-case JUnit PASS evidence; the remaining 99 skips are not promoted to passes or hardware coverage.Retained artifacts include the complete per-case JUnit XML/results, full logs, source and bundle identities, ownership lifecycle, manifest checks and source hashes. The result coordinator released the exclusive full-regression claim normally; no later full is claimed here.
Boundary and remaining gates
Focused native evidence uses in-memory
TraceTransportobservation and native recorder/rotation paths. It does not establish native C ABI/server behavior, external storage, RDMA/network hardware, payload/tensor parity or a live cache result.Canonical observation comparison does not establish chain manifests, lineage, ownership epochs, live warm behavior, eviction, cold promotion, production hit rate, giant-model warm readback, M3 or M5 completion.
The exact current head now has complete public CI and its own current-main raw full-regression evidence. Independent final integration review and parent-controlled ready/queue decisions remain before merge. No older CI/full result is relabeled as this head's check.