Synthetic request comparisons
Including 64 seeded generated histories. No user history or credentials.
Finite reference kernel · Lean 4 · MIT
Make the connection between a tool call, its policy decision, and the next request explicit.
CORDIS Lean carries evidence through a finite, modeled harness. Its types connect exact requests, results, and session endpoints. The boundary of each claim stays visible.
Explore a synthetic traceSame call. Same decision. Same result.
Physical log → model-facing surface.
A body tied to its typed source.
Proof-carrying local values. Explicit runtime obligations.
01 / Interactive notebook
Step through an invented log. Watch the visible messages change, then inspect an illustrative request body.
Log-only events never add a model-facing message.
Replacement changes the surface while retaining the physical log.
Illustrated compatibility adapter
Model notes: SessionValidation.lean checks typed events after payload parsing. DeepSeekHarnessCompatibility.lean defines the separate serializer adapter.
02 / Before dispatch
A modeled policy decision and a matching lease are both required. A rejected call cannot take the dispatch transition.
Keep the exact subject and call identifier.
An allow state may proceed; a non-allow state may terminate as rejected.
Consume the lease belonging to that same call.
Retain a result indexed by the original subject.
At-most-once is local. The result applies to one explicitly threaded pure trace. Lean values can be duplicated. This does not establish authenticated approval, cross-process exclusion, or exactly-once external effects. Read the policy boundary
03 / Pinned integration evidence
The public integration loop calls the actual pinned DeepSeek Harness TypeScript serializer and compares complete JSON values against the Lean adapter.
Including 64 seeded generated histories. No user history or credentials.
Missing usage, Boolean-to-number drift, reversed messages, schema corruption, a missing case, and a duplicate ID.
Response format, tool choice, conflicting thinking/effort, and each explicit strict flag value.
Object member order is irrelevant. Array order, absent versus null fields, strings, and Boolean versus numeric values remain observable. Differences are not normalized away.
Finite executable compatibility evidence at one upstream revision. They do not prove TypeScript semantics, provider behavior, upstream session reconstruction, asynchronous scheduling, or deployed equivalence.
04 / Trust, explicitly scoped
Proofs are only as broad as the modeled values, assumptions, and interfaces they describe.
Local process or loopback fixtures elsewhere in the repository are evidence about those fixtures. They do not remove the runtime boundary. Read the repository's trust notes