docs,test: claims WB-format-8 to 10, the interface, the handbook and the tests follow the review
WB-format-8 now says every reader applies the frame rule because ids are reused after a failed call, and names the committed accessor and the labels; WB-format-9 the keyed argument digest, the bounded answer, the in-memory table for calls that wrote nothing and what a repeat of a long answer is told; WB-format-10 the vault staged inside the transaction and the honest words when the closing line is on disk. docs/mcp-interface.md, the receipt store's frame paragraph and the handbook (contract, tracing figures) say the same. Tests follow the new shapes: a call that wrote nothing leaves no line, the head a write answers is where its own lines end and its closing line follows, the idempotency table compares events, and the checks that a refusal or a preview wrote nothing compare the raw journal. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
4c23fade7a
commit
b592aaf416
13 files changed
+175
-68
No files matched your search
+18
-8
@@ -199,14 +199,24 @@ a backup is then proven where it lands, by a drill (docs/mcp-interface.md,
|
||||
- **A tool call is a frame, not a record** (plan P15 2a, D-88, feature
|
||||
`call_transactions`): a call that writes lines is framed by
|
||||
`call.begun {tool, token, key, args}` before its first line and
|
||||
`call.closed {tool, token, key, args, outcome, first_seq?, last_seq?,
|
||||
answer?, error?}` after its last. The lines between count only when
|
||||
`outcome` is `ok` (then `answer` is the text of the answer given, kept
|
||||
so a repeat of `key` returns it); `failed` and `unfinished` (written by
|
||||
the open that finds a call that never closed) say the lines in the frame
|
||||
never count, in any replay. A call that wrote no line is a closing line
|
||||
alone. A line outside a frame applies as ever, so every journal written
|
||||
before the feature replays as it was. `store.created` carries
|
||||
`call.closed {tool, token, key, args, outcome, first_seq, last_seq,
|
||||
answer | answer_sha256 + answer_bytes | error}` after its last. `args`
|
||||
is an HMAC-SHA256 of the call's arguments under the books' own secret
|
||||
(`keys/calls.key`), never a plain hash (a tax id would be guessable). The
|
||||
lines between count only when `outcome` is `ok` (then `answer` is the
|
||||
text of the answer given, kept so a repeat of `key` returns it, when at
|
||||
most 4096 bytes; above that `answer_sha256` and `answer_bytes` stand in
|
||||
its place); `failed` and `unfinished` (written by the open that finds a
|
||||
call that never closed) say the lines in the frame never count, in any
|
||||
replay. A call that wrote no line has no frame and no closing line (its
|
||||
key and answer are kept in memory for the life of the server only). A
|
||||
line outside a frame applies as ever, so every journal written before
|
||||
the feature replays as it was. **Every reader that derives a fact reads
|
||||
the committed journal** (`calls::committed`: the lines outside a frame and
|
||||
those of `ok` frames), because ids are handed out again after a failed
|
||||
call and a raw reader would pin the dead lines on whatever takes the id
|
||||
next; a reader that shows history shows every line and says of the dead
|
||||
ones that they did not count (`calls::standings`). `store.created` carries
|
||||
`books_id` (the books' own unique id) in books made since the feature;
|
||||
older books are given one in the `journal.format_set` of their upgrade.
|
||||
Neither frame line moves the audit's figure head.
|
||||
|
||||
Reference in new issue
Block a user