Skip to content

Benchmarks: retain full token digests and auditable comparison receipts - #863

Merged
ashhart merged 1 commit into
ashhart:mainfrom
jayleaton:shared/benchmark-receipts
Oct 16, 2026
Merged

ashhart merged 1 commit into
ashhart:mainfrom
jayleaton:shared/benchmark-receipts

Conversation

@jayleaton

Copy link
Copy Markdown
Contributor

What this changes

Retain full token SHA-256 evidence, concurrent/solo/plain comparison pairs and actual HTTP request intervals in the standard benchmark reports. A matching 12-hex fingerprint now leaves token equality unverified; a malformed or incomplete full digest cannot pass.

Illustrative receipt flow:

native token_sha256 -> validated Evidence -> each comparison pair
request start/end ------------------------> client_intervals

This client-only branch is based directly on main. It consumes the additive native metadata proposed in #862; servers that supply only the legacy field remain usable for timing, with token equality unverified. HTTP overlap is observable from the saved intervals; it does not establish simultaneous engine execution.

Receipt

  • Environment: Linux CPU host, Python 3.14.7, Zig 0.17.0; candidate ab8dc2e42dcf1368ac7b4fc817da91edd3a16c25, base c7137bb31a7dad924fb541a7068422127b9a94b2. No GPU or checkpoint used.
  • Exactness: model-free tests validate the evidence contract. Before: the new short-prefix regression fails because legacy equality returns True; the new report regression raises KeyError for missing comparisons. After: all 19 evidence tests pass, including distinct full hashes with matching prefixes, malformed digests, failed/truncated streams, retained concurrent/solo/plain pairs and request intervals. An actual localhost HTTP fixture also checks first/repeated/concurrent cache evidence and identical request settings.
  • Decode speed before and after: n/a; request timing and decode-rate calculations are unchanged.
  • Prompt speed before and after: n/a; native prompt processing is unchanged.
  • Tests run: the 19 Python tests above and final committed-tree host checks below. Zig cached/partial execution counts are retained rather than restated as a full-suite total; the earlier host invocation recorded 744 passes and 5 skips.
Gresume-bench-committed: commit ab8dc2e42dcf1368ac7b4fc817da91edd3a16c25 tree 0bda1f05e034b90511ca7418ad4d5e5738628b47 dirty 0 2026-10-15T01:33:35Z
install rc=0 Build Summary: 10/10 steps succeeded
test rc=0 Build Summary: 46/46 steps succeeded; 207/207 tests passed
test-golden rc=0 Build Summary: 4/4 steps succeeded
fuzz-cortheon rc=0 Build Summary: 3/3 steps succeeded; 8/8 tests passed
test-cuda-host rc=0 Build Summary: 27/27 steps succeeded
test-server-cpu rc=0 Build Summary: 3/3 steps succeeded
zig fmt --check rc=0 0 files
git diff --check rc=0
ab8dc2e4 lean: 527 problems, 527 on the base, 0 new
FAILED STEPS 0
  • Not run: CUDA/Metal/model exactness, performance, physical-memory qualification or simultaneous engine execution. Reported booleans are preserved alongside auditable values; they are not a substitute for current-head hardware receipts.

Merge Danger — Door: two-way. Blast Radius: tools. Reverting restores short-fingerprint equality. Downstream receipt readers must recognize the full digest and comparison fields; missing full native metadata now produces unverified equality instead of a pass. Timing remains available for standard servers without that metadata.

Checklist

  • Every token still goes through the lane rounds. No serial path, and nothing that needs drafts off.
  • Drafted output equals "draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.
  • No precision traded for speed. If the bits change, the description says which sums change and why.
  • Prompt processing is no slower than the last release.
  • The description says which platforms I ran, Metal M1 to M5 and CUDA, and which I could not.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths. No AI attribution lines.

@ashhart

ashhart commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Thanks, @jayleaton. Ready with #862 at ab8dc2e. tools/bench_evidence.py:54 compares validated full digests and leaves missing, failed or incomplete runs unverified. tools/bench_concurrent.py:222-230 retains comparison pairs for both --alone and --serial, including serial-only use, and records HTTP completion separately from the last text fragment. #862 supplies the server field this depends on. No new confirmed defect found; tests were not run here.

@ashhart
ashhart merged commit 9536560 into ashhart:main Oct 16, 2026
4 checks passed
ashhart added a commit that referenced this pull request Oct 16, 2026
…t.py, test_bench_evidence.py)

Layout only: each statement breaks between its arguments.
ashhart added a commit that referenced this pull request Oct 16, 2026
ashhart added a commit that referenced this pull request Oct 16, 2026
…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.
@ashhart

ashhart commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Thank you, @jayleaton. The benchmark tools now keep what a reader needs to believe a comparison: the full digests, the pairs compared and the client's own timings, and a run without full digests is reported as unverified instead of equal.

Your commit ships in TensorFold 1.0.12 as it is, merged in 9536560f8 after #862, whose server field it reads, so this pull request shows as merged. One commit of ours, 19d1a9af6, wraps five lines at 120 columns in the three Python files, with no statement changed. Your Python tests pass on Linux.

Posted by Ash's AI Assistant Synthena

BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…ncurrent.py, test_bench_evidence.py)

Layout only: each statement breaks between its arguments.
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
BlivionIaG pushed a commit to BlivionIaG/TensorFold that referenced this pull request Oct 20, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants