Repository navigation
v3 V3-05: observe reach rungs from the response, never the request - #60
Merged
Merged
Conversation
src/reach reports which rungs (R0, R1, R3, R4) an Ollama chat response actually carried, digests logprobs without keeping token text, and names requested rungs that came back missing as silentlyDropped. Covers the two V3-01 findings: cloud models drop logprobs silently, and think:false can leak reasoning into content. src/reach is classified grantable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR #60 flagged its own doubt: requested always held R0 (and R1 when tools were offered), so a pure tool call with empty content reported R0 as "silently dropped", and a text answer with tools offered reported R1. Neither is a drop: R0 and R1 are the model's behavior. Only R3 (think) and R4 (logprobs) are switched on by the caller and can be withheld by the runtime. requested is unchanged; silentlyDropped filters on the new CAPABILITY_RUNGS constant. Probe over the 14 V3-01 raw bodies: glm-5.3-flash think-true (tool call, no content) no longer reports R0 dropped; every cloud body still reports the silent R4 drop. 4 new tests, npm test 1074/1074. Executor glm-5.3-flash (chain seq 36184); orchestrator ran the tests and the probe, the executor's sandbox could not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…prob, null top_logprobs recorded
- reachReport: any truthy think (true, "low", "medium", "high") requests R3,
so a withheld reasoning channel lands in silentlyDropped. Tests E, F.
- Test 6 changes only the first logprob by 0.001 and keeps its top_logprobs,
so the digest shift is attributable to the logprob alone.
- canonicalTopLogprobs: a non-object element (null) hashes as null instead of
throwing; logprobs.malformedTopLogprobs lists its { entry, index }. Test G.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Review fixes pushed in 2a711ac.
For the owner, not fixed here:
|
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69, #70, #71: #62 takes 75, #61 takes 76, this PR takes 77. Every citation on this branch moves with it (KNOWN-LIMITS.md heading and the limit 53 note, src/views/matcher-history.js header, test/matcher-history.test.js comment). On this branch alone the numbering test reports 75 and 76 missing; that clears once #62 and #61 are on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69, #70, #71: #62 takes 75, #61 takes 76, #67 takes 77, this PR takes 78. Every citation on this branch moves with it: KNOWN-LIMITS.md heading, CHANGELOG.md, docs/receipt-coverage.md, and the V3-03 proposal note. The staged .patch carries no limit number and is unchanged. On this branch alone the numbering test reports 75, 76 and 77 missing; that clears once #62, #61 and #67 are on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
Merged
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
#60 (V3-05) creates src/reach/index.js for observeRungs and reachReport and merges first, so this branch no longer claims that file. The certificate module moves to src/reach/certificate.js unchanged apart from its header, and every import follows it: src/ingest/index.js, test/reach-certificate.test.js, and the staged session-start wiring in proposals/v3-02-session-open-reach.patch (same line counts, so the hunk headers stand; `git apply --check` passes on the committed blob, against the working tree and the index). The proposal table names the new path and notes that #60's GRANTABLE line for `reach` settles the classification test once #60 is on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
Merged
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69, this branch moves with it (KNOWN-LIMITS.md heading and the limit 53 note, src/views/matcher-history.js header, test/matcher-history.test.js comment). On this branch alone the numbering test reports 75 and 76 missing; that clears once #62 and #61 are on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
V3-05: observe reach from what came back, not what was asked
WO: V3-05 of the Lotor v3 spec (granularity), the R4 rung for local Ollama models. Not core.
Spec sections: "The reach certificate", risk "Reach overclaimed", and the V3-01 measurement (2026-10-18) that found Ollama cloud models drop logprobs silently.
What it adds
src/reach/index.js: pure functions, no I/O.observeRungs(body)reads a parsed Ollama/api/chatresponse and reports R0 (content), R1 (tool calls), R3 (reasoning, from thethinkingfield and/or<think>markers in content), R4 (logprobs). Logprobs are kept as count, min, mean and a sha256 digest; token text never leaves the function.reachReport(request, body)pairs what was requested with what was observed and names the gap assilentlyDropped. An error body is loud, so it never counts as a silent drop.test/reach-observe.test.js: 20 tests, synthetic fixtures (the 12 WO cases, the RUNG_ORDER guard, A-D from V3-05b, E-G from review).test/core-classification.test.js:src/reachrecorded as grantable, with the reason and the condition that moves it to core.Tested
npm test: 1077/1077 green on the branch head after the review fixes (1074 before them).reachReport. Every cloud body (glm-5.3-flash, minimax-m3) reportsR4insilentlyDropped. glm-5.3-flash with think off reports R3 fromcontent-markers, the stray</think>leak. Local qwen2.5, llama3.1 and deepseek-r1 report R4 with 10 to 279 logprob entries. Error bodies report nothing observed and nothing dropped.Evals
ghp_token in the logprobs does not appear in the serialized report.What a reviewer should doubt
requestedstill lists R0 (and R1 when tools are offered), but since V3-05bsilentlyDroppedcounts only the capability rungs, R3 and R4. A tool-call response with empty content no longer reports R0 dropped (test A), and a text answer when tools were offered no longer reports R1 dropped (test B). Whether R0 belongs inrequestedat all is now cosmetic.<think>marker check is literal. Other reasoning tags (<reasoning>, model-specific channels) would be misfiled as R0. It is the only leak measured so far.RUNG_ORDERon purpose: a chat response body cannot show them.thinklevels. Ollama acceptsthink: "low" | "medium" | "high"as well astrue. Any truthythinknow requests R3 (tests E, F). A truthy value outside those levels also counts; Ollama would reject it, so this errs toward reporting a drop.top_logprobs. A null element no longer throws; it hashes as null and its position is listed inlogprobs.malformedTopLogprobs. R4 still depends only on each entry's ownlogprob(test G).How it was made
Executor: glm-5.3-flash:cloud via Ollama, three sessions,
session.modelconfirmed on the receipt chain (seqs 36123, 36129, 36139). One run stopped before writing tests; a follow-up WO finished them and added the error-body precedence fix. The orchestrator edited one test title (a garbled marker) and the classification entry.🤖 Generated with Claude Code