Repository navigation
test(cross-impl): F8d temporal sequence replay against the Python SDK - #42
Merged
Merged
Conversation
Replays the Lean F8d boundary and generated traces from agent-passport-system formal/lean/TemporalVectors.lean against the Python SDK, with the same rules as the TypeScript replay: SDK behaviour for verification, revocation store, handle gate, reserve, commit and cancel, and harness rules for the reservation association and dispatch admission. The corpus digest is pinned. Signed-off-by: Tymofii Pidlisnyi <tima@aeoess.com>
Repins the corpus, compares the full state at every event inside a session from within the revocation queries, compares charged delegations in chain order, requires every clock read to be a trace time, and tracks coverage per corpus part, as the TypeScript replay does. Signed-off-by: Tymofii Pidlisnyi <tima@aeoess.com>
Signed-off-by: Tymofii Pidlisnyi <tima@aeoess.com>
…ock reads Mirrors the TypeScript follow-up: compares the state after every begin event, asserts exact clock reads for valid and failed verifications, and adds negative controls for a corrupted begin state and a corrupted state inside a session that ends REVOCATION_UNKNOWN, which also shows that a failure raised inside the revocation callback is not absorbed. Signed-off-by: Tymofii Pidlisnyi <tima@aeoess.com>
Signed-off-by: Tymofii Pidlisnyi <tima@aeoess.com>
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.
Python port of the F8d replay: the Lean generated temporal corpus is run against the Python SDK, as
tests/v2/lean-temporal-sequences.test.tsruns it against the TypeScript SDK.tests/cross_impl/lean-temporal-sequences.jsonis vendored byte for byte from agent-passport-system main at189a85d. The provenance file records the commit, path and SHA-256, and the test checks the digest before replaying any trace.tests/cross_impl/test_lean_temporal_sequences.pyreplays every trace, compares the state at session begin and after each step, asserts time order, and asserts the exact number of clock reads per verification.No SDK source change. Tests only.