WEBVTT

00:00:01.290 --> 00:00:02.320
Hi, I'm Tulip!

00:00:02.320 --> 00:00:05.410
DeepSeek's new agent harness has an ordinary agent loop.

00:00:05.410 --> 00:00:08.157
What's unusual is the check wrapped around it.

00:00:09.808 --> 00:00:12.084
The rule: the session log is the source.

00:00:12.084 --> 00:00:16.067
Every request to the model is checked against a fresh replay of that log.

00:00:16.067 --> 00:00:18.343
If they differ by a byte, it throws.

00:00:20.008 --> 00:00:23.919
It's built on Cordis, where everything is a plugin: the model adapter,

00:00:23.919 --> 00:00:27.178
the tool registry, the session log, even the agent loop.

00:00:28.675 --> 00:00:32.568
The agent loop builds a request: messages, model, temperature, tools.

00:00:32.568 --> 00:00:35.682
It's frozen, so nothing can edit it afterwards.

00:00:36.102 --> 00:00:39.800
At dispatch time, the harness replays the session log to derive what

00:00:39.800 --> 00:00:41.032
the messages should be.

00:00:41.452 --> 00:00:45.401
A listener placed first on the model stream compares the two byte

00:00:45.401 --> 00:00:47.705
for byte, header and sampling settings included.

00:00:48.125 --> 00:00:49.864
Match, and the request goes out.

00:00:49.864 --> 00:00:51.024
Differ, and it throws.

00:00:51.024 --> 00:00:54.212
A plugin can't slip the model a message it didn't log.

00:00:55.858 --> 00:00:58.645
A tool call is logged before it runs, so a crash

00:00:58.645 --> 00:00:59.659
still leaves a record.

00:01:00.079 --> 00:01:03.764
A guard denial, a refused approval, a throw or a timeout all

00:01:03.764 --> 00:01:04.992
become an error result.

00:01:05.412 --> 00:01:09.530
So every call ends in exactly one logged result, which the model sees.

00:01:11.092 --> 00:01:15.186
Every one of the two hundred nineteen packages has an invariant file.

00:01:15.186 --> 00:01:16.210
Thirty-five check something.

00:01:16.210 --> 00:01:20.304
The other one hundred eighty-four must say, in a comment, why not.

00:01:21.808 --> 00:01:25.189
Make the log the source, then check it: a divergence becomes a

00:01:25.189 --> 00:01:26.879
crash instead of a slow mystery.

00:01:29.858 --> 00:01:33.142
To recap: plugins all the way down, a log that is the

00:01:33.142 --> 00:01:35.057
source, and a check on every request.

00:01:35.477 --> 00:01:37.621
Every source is in the full article.

00:01:37.621 --> 00:01:38.234
I'm Tulip.

00:01:38.234 --> 00:01:38.540
Bye!
