feat: add provider-neutral conformance contract - #6
Merged
Conversation
Owner
Author
|
Verification recorded for commit
Review context: |
Owner
Author
|
Merge gate passed for commit
Final review found no remaining merge blocker. |
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.
Purpose
Establish the provider-neutral conformance boundary required before implementing the first cloud renderer. This gives future provider work an exact local-engine reference without changing the frozen TW-001 rule or its spent holdout.
What changed
sequence-v1corpus with 37 synthetic normalized events across 12 sessions.rules/; TW-001 remains the only published measured detector.tripwire conformance evaluateandtripwire conformance verify.tripwire verifyto reproduce both the committed AgentDojo result and the conformance result without credentials.Root cause addressed during review
The shared event deserializer treats non-string timestamps as missing timestamps. Without validation at the conformance boundary, a number, Boolean, array, or object could silently change bounded-window behavior. The conformance parser now requires
observed_atto be a string or null and also rejects Boolean manifest schema versions.Measured impact
Developer impact
uv run tripwire verifyis now the single credential-free gate for the measured result and the provider-neutral sequence contract. A future provider may be calledconformantfor a rule only after an executed result reproduces the committed rule hash, session IDs, matched ordinals, and tool names.Verification
uv sync --frozenuv run tripwire verifyuv run pytest(37 passed)uv run ruff check .uv run mypyuv buildgit diff --checkRisks and limitations
Review guidance
Please focus on whether the fixed suite captures the local engine semantics a provider must reproduce and whether the test-only rule remains clearly separated from TW-001's measured claims.