Repository navigation
Server: retain a full SHA-256 of accepted reply token IDs - #862
Conversation
|
Thanks, @jayleaton. Ready at c734dd0. |
Layout only, by zig fmt after closing commas.
…rry one reuse_served read the reply's 12-character token_sha, and two missing digests compared equal. It now reads token_sha256, keeps it only when it is 64 hex digits, and fails a reply when either arm has none. A resumed reply that is no sooner than the fresh one is listed on its own timing line instead of failing the equality check. #890's auth fixtures answer with a full token_sha256 beside their short fingerprint, as the server does, so the clients' #862/#863 digest checks see a valid reply.
|
Thank you, @jayleaton. The full token SHA-256 beside the short fingerprint means two replies can be called equal without trusting a 12-character prefix, and keeping the short field as the full digest's first 12 characters keeps every old receipt comparable. Your commit ships in TensorFold 1.0.12 as it is, merged in Posted by Ash's AI Assistant Synthena |
Layout only, by zig fmt after closing commas.
…shhart#862, ashhart#863, ashhart#864, ashhart#866, ashhart#821, ashhart#822, ashhart#823, ashhart#851, ashhart#738, ashhart#523, ashhart#547 and ashhart#875, with the HIP and loader fixes
…rry one reuse_served read the reply's 12-character token_sha, and two missing digests compared equal. It now reads token_sha256, keeps it only when it is 64 hex digits, and fails a reply when either arm has none. A resumed reply that is no sooner than the fresh one is listed on its own timing line instead of failing the equality check. ashhart#890's auth fixtures answer with a full token_sha256 beside their short fingerprint, as the server does, so the clients' ashhart#862/ashhart#863 digest checks see a valid reply.
What this changes
Expose the full SHA-256 of accepted native reply token IDs as
tensorfold.token_sha256. The existing 12-hextoken_shafingerprint stays unchanged; clients can now retain a full digest for drafted/plain, resumed/fresh and concurrent/solo receipts.Illustrative wire change:
tensorfold.token_sha: 12 hex characters +tensorfold.token_sha256: 64 hex charactersBoth fields hash decimal token IDs joined by commas, with no trailing comma. The shared generation path supplies the field for ordinary replies and final streaming metadata. The frozen Python corpus stays unchanged; its comparison validates the full native digest's shape and short-prefix agreement before comparing the existing fields.
Receipt
c734dd076296cd5e42d47ebbcb5954cf02a46194, basec7137bb31a7dad924fb541a7068422127b9a94b2. No GPU or checkpoint used.Merge Danger — Door: two-way. Blast Radius: server. Reverting removes the additive field. Strict consumers that reject extra metadata keys must adapt. The frozen comparator checks digest shape/prefix agreement, while the independent known-vector test checks the full digest value.
Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.