Repository navigation
Description
What happened
Measured in #1911's 5-run matrix baseline against main @ 9b2b6b23.
Scenario 8e ("Query across types") regressed from 2/3 (#1862 arm A) to 0/5. The failure mode is the concerning part: the model calls zero tools and then reports fabricated search results, including an invented nodespace:// URI that looks real:
I found the following nodes that look like albums you might want to review:
Kind of Blue by Miles Davis (nodespace://3878701d-7e86-4b5a-87f6-991c3fb16326) — A text note containing details about an album.
No search_nodes call was made. The node does not exist. The URI is fabricated in a well-formed shape.
Why this is worse than a failed assertion
This is #1865's signature — report success, touch nothing — but on the read path rather than the write path. A user asking what they have stored gets a confident, specific, plausibly-formatted answer that is entirely invented. On reads there is no later write to contradict it, so nothing surfaces the fabrication.
The invented URI is the sharpest part: it is not a vague hallucination but a syntactically valid identifier a user (or a downstream component) could reasonably try to follow.
Relationship to the existing anti-fabrication guard
de452a50 (#1873) added "I have <verb>ed" phrasing to the anti-fabrication action-claim guard. It does not cover this:
- 8e fabricates with "I found the following nodes…" — a read claim, not an action claim
- 8d still fabricates in 4/5 runs on current
maindespite the guard
So the guard's phrasing coverage is narrower than the behavior. Worth checking whether the right fix is broadening the phrasing list, or whether phrasing-matching is the wrong mechanism for this class — a guard keyed on "did any tool actually fire before a result-shaped claim" would be behavioral rather than lexical.
Lexical vs. behavioral — investigate before deciding
Don't pick a direction from first principles. Investigate concretely and report a recommendation with real tradeoffs, per this cluster's standing methodology (verify before deciding):
- How often does the current lexical guard actually fail? It already misses 8e's "I found the following..." phrasing entirely, and 8d still fabricates in 4/5 runs despite having a guard. Get a real count/rate across available traces of how many distinct fabrication phrasings exist and how many the current list actually catches.
- Is there a clean structural signal for "behavioral" to key on, other than phrasing? The obvious approach — flag any zero-tool-call turn with a result-shaped claim — must NOT also flag a genuine clarifying question. Check whether route_clarify's structured question/options are discarded before reaching the frontend; no HITL UI state exists #1930's work (
route_clarify's structuredquestion/options, once it reaches the frontend properly) gives a real way to distinguish "this turn is asking" from "this turn is claiming a result," or whether that distinction still ends up needing phrasing analysis under the hood, which would undermine the point of going behavioral. This may mean Scenario 8e fabricates search results with invented nodespace:// URIs and zero tool calls #1913 is best sequenced slightly behind route_clarify's structured question/options are discarded before reaching the frontend; no HITL UI state exists #1930 rather than fully parallel — confirm once you've looked. - What would a behavioral check cost to build and verify? Rough scope: a small addition near the existing guard in
agent_loop.rs, or new plumbing.
Acceptance criteria
- 8e calls
search_nodesrather than fabricating results - The model does not emit fabricated
nodespace://URIs for nodes it never retrieved - Investigation above completed and a recommendation reported (lexical-widened vs. behavioral vs. hybrid), with reasoning — not a decision made unilaterally without the investigation
- Verified across multiple runs; full matrix run before merge to catch bystander regressions
Reference
- Post-ADR-064 matrix baseline: has the doctrine wave actually moved reliability, and what still fails #1911 — the baseline that found this; traces at
~/nodespace/issue-1911-matrix-baseline/ - Agent claims it created a node while calling no tool: matrix 8d is a silent data-loss path #1865 — the write-path version of this signature (8d)
- Recognize "I have created" phrasing in the anti-fabrication guard (#1865) #1873 /
de452a50— the current anti-fabrication guard
Activity
malibio commentedon Aug 3, 2026
On the lexical-vs-behavioral decision: investigate both, don't pre-commit
Don't pick a direction before looking. Investigate concretely and report back a recommendation with real tradeoffs — this is exactly the kind of design call that should follow this cluster's own standard (verify before deciding), not be settled from first principles in a comment.
Specifically worth answering with evidence, not speculation:
agent_loop.rsnear the existing guard, or does it need new plumbing.Report back with a recommendation and the reasoning, not a decision already made. This may also intersect with #1930 (structured clarify data) — flag that connection if it holds up under investigation.
malibio commentedon Aug 3, 2026
Investigation complete — the premise does not hold against the traces
Before writing any code I checked #1913's claims against the actual
~/nodespace/issue-1911-matrix-baseline/traces (60 turns = 12 scenarios x 5 runs). The described failure mode does not appear in the data. Reporting before deciding a direction, per this cluster's standing methodology.1. 8e does not fabricate. It clarifies.
8e's reply text across all 5 runs is one of exactly two system-generated strings — neither is model output:
CLARIFICATION_OPENER—agent_loop.rs:77, emitted byformat_clarificationon aRouteDecision::ClarifyCONFIRMATION_REQUEST—agent_loop.rs:416-417, i.e. the anti-fabrication guard's own output8e fails its assertion (
Expected 'search_nodes' exactly once, got 0) because it routes to clarify instead of query. That is a routing failure, not a fabrication failure. In run 2 the guard demonstrably did fire and did suppress something — it worked.2. The quoted fabrication is from 8c, not 8e — and it is not a fabrication
The invented URI
nodespace://3878701d-7e86-4b5a-87f6-991c3fb16326cited in the issue body is real text from the corpus, but it belongs to scenario 8c, run 2, on a turn that calledcreate_node:The node was created and that URI is genuine. 8c's recorded failure is the property-persistence one, not fabrication: "create_node succeeded but persisted 0 property value(s)". That is #1937/#1938's shape (already fixed and merged as of
5890d64c), not a read-path invention.The "I found the following nodes that look like albums…" prose in the issue body appears only in
README.md's narrative summary, never in anyrun*.jsonor.trace.jsonlreply field. It looks like a paraphrase written up from 8c's output while summarizing, then attributed to 8e. #1913 was filed from that summary rather than the traces.3. Counted across the whole corpus: zero read-path fabrications
CLARIFICATION_OPENERCONFIRMATION_REQUEST(guard fired)nodespace://URInodespace://URIcreate_nodecallSo the guard's phrasing list is not "narrower than the behavior" in this corpus. There is no uncaught fabrication phrasing to widen it against, because there is no uncaught fabrication. Note also that
"i found"/"i've found"/"i have found"are already inACTION_PHRASES(agent_loop.rs:607-609) — the exact phrasing #1913 says is uncovered is covered.4. 8d's "4/5 fabrications" is also the guard working
8d fails 4/5, but in each of those 4 the reply is verbatim
CONFIRMATION_REQUEST. It fails by calling no tool at all and getting correctly suppressed — not by fabricating past a guard. In run 2, the run it passes, it callscreate_nodeand reports a real URI.Recommendation: close #1913 as not-reproducible; do not build a behavioral guard
Answering the three investigation questions the issue asks, on evidence:
The real, measured defect behind 8e is routing: "Run through the albums for me" routes to
clarifyin 5/5 runs when it should route toquery/search_nodes. That is a genuine standing failure worth its own issue, and it is a different problem with a different fix (routing/skill-description retrieval, the same sensitivity documented in the 35%→75% rewording finding) than anything the anti-fabrication guard touches.Proposing: close #1913, and file the 8e routing failure separately with the trace evidence above. Proceeding on that basis unless redirected — happy to open the routing issue as the follow-up.
One caveat stated plainly: this rests on the 5-run #1911 corpus, which is the evidence #1913 itself cites. If a read-path fabrication was observed live somewhere outside that corpus, that trace would change the picture and I'd want to see it.
malibio commentedon Aug 3, 2026
Frontend baseline: 171 test files passed, 4108 tests passed (47.09s), on main @ 5890d64.
malibio commentedon Aug 3, 2026
Investigation results
0. Empirical finding first: 8e does not currently reproduce on
mainBefore deciding lexical vs. behavioral, I tried to reproduce the fabrication live, since #1911's own traces (
~/nodespace/issue-1911-matrix-baseline/) no longer exist on disk (worktree removed). Rebuilt--releasefrom currentmain(5890d64c), fresh purgedNODESPACE_HOMEper rep,gemma-4-e4b-q4km,n_ctx=32768— same conditions as #1911.3/3 runs, scenario 8e (
"Run through the albums for me") calledsearch_nodescleanly, zero fabrication, in every rep:A separate, independently-run 3-rep matrix from the #1927 work (now archived as a reference copy in
nodespace-nlp-experiment/matrix-harness/results/) shows the same: 8e passed 3/3 there too, samerawOutputshape. That's 6/6 clean across two independent efforts on currentmain.#1911's baseline was measured at9b2b6b23. Commits landed since then that touch Stage-1 routing — most plausiblyfdc1a256/83bdabed("Preserve literal subject nouns in Stage-1 routing") and2002fa82(route_multi) — are the likely fix; scenario 8's whole prompt sequence ("Run through the albums for me") is exactly the kind of subject-noun-preservation case those commits targeted. I did not do a full bisection since the evidence is already strong, but this should be called out plainly: the read-path fabrication this issue was filed against is not currently reproducing.This does not close the issue — the guard-coverage gap identified below is real independent of whether 8e itself still triggers it, and the AC requires calling 8e specifically as fixed/verified. But it changes the shape of the work: this is now "hardening a guard that has a real gap" rather than "fix a live, reproducing bug."
1. How often does the lexical guard actually fail?
Re-checked directly:
contains_action_claimalready matches 8e's exact fabricated phrase ("I found the following nodes...") via the pre-existing"i found"entry — this predates evende452a50/#1873's "I have" extension (added in418f3548, months earlier). The committed baseline fixturescripts/results-e4b.json(recorded Jul 31, beforede452a50) shows this exact class of phrase being caught and converted to a confirmation request in a live run. So the "guard is lexical and 8e's phrasing evades it" framing in the original report doesn't hold for the specific transcript quoted — that phrase was always covered.The real lexical gap is structural, not this specific miss: every entry in
ACTION_PHRASESandPASSIVE_CLAIMSrequires either a first-person action verb ("I found/created/updated...") or passive voice ("was created/updated..."). A bare declarative listing with no action verb at all is not covered — e.g. "Kind of Blue by Miles Davis (nodespace://...) is one of your tracked albums." has no "I found", no "was", nothing in either list would fire. That's a real, demonstrable phrasing-coverage gap; it just isn't the one the original 8e trace happened to hit.2. Is there a clean structural signal for "behavioral", other than phrasing?
Partially, but not cleanly enough to drop phrasing entirely, at least until #1930 lands:
!any_real_tool_calls(zero tool calls anywhere this turn) is already exactly the structural trigger the issue proposes, and it's already what every guard in this file keys on. Good news: it's cheap and already correct today.RouteDecision::Clarifyis a genuine structured "the model is asking, not claiming" signal, but it only covers Stage-1's own explicit clarification tool call — it says nothing about a Stage-2 zero-tool-call turn that happens to read like a question ("What would you like me to search for?") vs. one that reads like a result ("Here's what I found...").gh:view 1930→State: open; its worktree exists but contains no implementation yet, just a straybun.lockdiff on latestmain). So there is currently no frontend-reaching structured distinction between "asking" and "claiming" beyondroute_clarify's narrow case.action_claim_does_not_fire_on_capability_statementstest class. That's real phrasing analysis, just inverted (excluding, not including). So "behavioral instead of lexical" is not a clean binary — it's "zero-tool-calls as the primary gate, phrasing only for the exclusion, not the trigger."I also checked whether a coarser structural signal — "any
nodespace://URI appearing when zero tool calls fired this turn" — could replace phrasing analysis for the URI-fabrication case specifically. It's tempting (a URI can't be legitimately known without a tool call ever having returned it), but it's unsafe as stated: multi-turn history is a real, exercised path (stage1_blends_prior_turns_into_its_query), so a later turn can legitimately reference a real URI a tool surfaced earlier in the same session with zero tool calls in the current turn. Catching that correctly needs to track "URIs this session has legitimately seen" across turns, which is real new state, not a one-line check.3. What would a behavioral check cost?
!any_real_tool_calls— specifically, anodespace://URI appearing in the response AND the URI does not appear anywhere earlier insession.messages(i.e., it's newly introduced this turn with no tool having run). This reuses the existing zero-tool-call gate, adds one new check function (~20-30 lines) alongsidecontains_action_claim, and one new test class mirroring the existinganti_fabrication_guard_*tests plus a multi-turn test for the "legitimate echo of an earlier real URI" case. Small, contained, no new plumbing.AgentSession, population at every tool-result site, and cache invalidation/lifetime questions. This is the same shape of cost route_clarify's structured question/options are discarded before reaching the frontend; no HITL UI state exists #1930 will eventually need anyway for structured clarify state, so building it twice (once ad hoc here, once properly for route_clarify's structured question/options are discarded before reaching the frontend; no HITL UI state exists #1930) is wasteful.Recommendation: hybrid, minimal version now
nodespace://URI introduced in a zero-tool-call response, not previously present in session history" — alongside the existing lexicalcontains_action_claim. This directly targets the sharpest part of the report (an invented URI, syntactically valid enough to mislead a user or downstream component) without waiting on route_clarify's structured question/options are discarded before reaching the frontend; no HITL UI state exists #1930.Will implement (1), re-verify 8e + run the full matrix, then report back before closing.
malibio commentedon Aug 3, 2026
Strong investigation — tracing the quoted fabrication text back to its actual source (8c's real
create_nodecall, misattributed to 8e via a narrative summary that conflated the two) is exactly the kind of verification this cluster should be doing before accepting an issue's premise at face value. The false-positive projection (19 of 24 zero-tool turns would trip a naive behavioral check, all 19 legitimate) is genuinely valuable evidence against building that guard reflexively — good that this got investigated before implementing, not after.Agreed: close #1913 as not-reproducible against the corpus it cites.
One thing before filing the routing follow-up: this is based entirely on the #1911 corpus, which predates #1926, #1927, and #1938 all landing. Given this cluster's own history of #1912/#1914-style issues going stale the moment they were re-checked against current main, do one fresh live check that "Run through the albums for me" still routes to clarify instead of query on current HEAD before filing — if it's already fixed as a side effect of later work, that saves filing a stale issue; if it still reproduces, file it with a note that it's freshly confirmed on current main, not just carried over from the older corpus.
malibio commentedon Aug 3, 2026
Yes — fix it directly rather than file a separate issue
Context is already loaded and the diagnosis is done; filing a new issue just to re-derive what you already know would be the "out of scope" reflex this project's own issue-workflow doc says to avoid. Fix it in this thread.
One thing to hold to, though: this is a skill-description/retrieval-sensitivity change, and this cluster has direct, repeated evidence that class of fix needs the same discipline as any other routing change — #1904 is the standing example of a small, plausible-looking description tweak cleanly regressing a bystander scenario, caught only by a full matrix run. So:
Go ahead.
malibio commentedon Aug 3, 2026
Coordination check: two parallel investigations on this issue
I've been working #1913 independently (in worktree
issue-1913-anti-fabrication-read-path) and just read the full thread, including the 15:06 UTC investigation that used the actual~/nodespace/issue-1911-matrix-baseline/traces before I found them already deleted.That investigation reached a sharper, differently-shaped conclusion than mine:
nodespace://3878701d-..., "I found the following nodes...") is a misattribution — it's really scenario 8c's genuinecreate_nodeoutput, mislabeled in a narrative README summary and attributed to 8e in the issue body.clarifyin 5/5 runs, not fabrication.mainand fix the routing bug directly in this thread, and replied "proceeding on that basis unless redirected."My own independent live reproduction (rebuilt
--releasefrom currentmain@5890d64c, fresh purged DB, 3 reps, plus a separately-archived 3-rep run from the #1927 work) shows 8e passing cleanly 6/6 — routes toquery, callssearch_nodes, no clarify, no fabrication. That's a different outcome than "routes to clarify in 5/5" — either something between those measurements changed it, or the two corpora/conditions differ in a way I haven't reconciled.I also implemented a narrow guard addition (
contains_fabricated_node_uriinagent_loop.rs, alongsidecontains_action_claim) before reading this thread in full. Given the other investigation's quantified finding — a naive zero-tool-call+result-shaped-claim check would false-positive on 19 of 24 zero-tool turns in the #1911 corpus — that addition may be solving a problem that doesn't exist. I haven't pushed or merged anything.Question for whoever picks this up (possibly the same session that posted the 15:06 comment): should I stand down and let that session's routing fix proceed as the resolution to #1913, or is there a reason to keep both threads (a routing fix + a defensive URI guard) rather than just the one? I'll hold here pending a reply rather than duplicate or race the routing fix.
malibio commentedon Aug 3, 2026
Stand down on the guard addition; reconcile the 6/6-vs-5/5 discrepancy before any fix
Good instinct stopping to ask rather than racing. Answers:
On the two threads: stand down on
contains_fabricated_node_uri. The other investigation's quantified false-positive finding (19 of 24 zero-tool turns in the #1911 corpus would trip a naive check, all 19 legitimate) is strong evidence this guard would cause more harm than good. Don't push or merge it. If a real read-path fabrication is ever observed live (not from a corpus, an actual trace), that's grounds to revisit — but nothing so far shows one.On the discrepancy — this needs resolving before anything else proceeds, it's the more important finding right now. Your 6/6 clean pass on current
main@5890d64cand the other thread's "5/5 routes to clarify" claim (from the #1911 corpus, which predates #1926/#1927/#1938) cannot both describe the current state of the code. Two possibilities:Whoever is running the routing-fix thread: before writing or merging a routing fix, re-run the exact live check yourselves against current main and compare notes with this 6/6 result. If it also comes back clean, don't implement a fix for a bug that isn't reproducing — close #1913 with both findings on record (the misattribution correction and the now-confirmed-fixed-or-never-real routing behavior). If it still reproduces 5/5 for you, that's a real, useful data point too — figure out what differs between the two runs before trusting either number, per this cluster's own standing rule that single-run/small-n results aren't decision-grade and unreconciled contradictory measurements are worse than either alone.
malibio commentedon Aug 3, 2026
Reconciling 6/6-clean vs. the 5/5-clarify claim: confirmed clean, no routing bug to fix
Reverted
contains_fabricated_node_uri(the guard addition) — working tree is clean, nothing was pushed or committed. Standing down on that per the note above.On the reconciliation: I now have two independent measurement efforts, 6/6 total, both showing
routingDecision: "query"(neverclarify) for "Run through the albums for me":--releasefrom currentmain@5890d64c, fresh purgedNODESPACE_HOMEper rep,gemma-4-e4b-q4km,n_ctx=32768—routing=queryall 3,search_nodescalled, no fabrication, no clarify.2026-08-03T05:41:28Z,evalCommit=26148a88, same model/n_ctx) — alsorouting=queryall 3, same clean pass, samerawOutputshape ("I couldn't find any albums to listen to right now.").Both post-date
9b2b6b23(#1911's baseline commit,2026-08-02). Both are internally consistent with each other and with zero instances ofclarifyrouting for this prompt. I don't have a third data point showing 5/5clarifyon any commit later than9b2b6b23— that claim traces back to the original #1911 corpus itself, which is now three fix-commits (#1926/#1929,#1927/bcb3637d,#1938) and several routing-specific commits (fdc1a256,83bdabed,2002fa82) old.Given the instruction above ("if it also comes back clean, don't implement a fix for a bug that isn't reproducing — close #1913 with both findings on record"): it comes back clean. Recommend closing #1913 with both findings on record:
create_nodeoutput, mislabeled in a narrative summary).clarify-routing behavior measured in the original Post-ADR-064 matrix baseline: has the doctrine wave actually moved reliability, and what still fails #1911 corpus does not reproduce on any commit checked today (6/6 clean across two independent efforts) — most plausibly fixed as a side effect of the routing-focused commits landed since (fdc1a256/83bdabed's subject-noun preservation, or2002fa82'sroute_multi), though I haven't done a full bisection to pin the exact commit given the strength of the current-state evidence.No code change needed. Holding here pending confirmation before closing, since closing is a state change on a shared issue.
malibio commentedon Aug 3, 2026
Confirmed — close it. Six reps across two independent efforts, zero clarify-routing, is decisive evidence this doesn't reproduce on current main. Good call not spending time on a full bisection; the current-state evidence is strong enough that pinning the exact fixing commit wouldn't change the outcome, only satisfy curiosity.
Final record for #1913: the originally-reported fabrication was a misattribution (8c's genuine create_node output, mislabeled in a narrative summary and attributed to 8e), and the clarify-routing behavior in the original #1911 corpus doesn't reproduce on current main — most plausibly a side effect of the subject-noun-preservation and route_multi work landed since. No code change needed.
malibio commentedon Aug 3, 2026
Closing — final record
Summary: The originally-reported fabrication was a misattribution — the quoted
nodespace://URI and "I found the following nodes..." text belong to scenario 8c's genuinecreate_nodeoutput, mislabeled as 8e's in a narrative README summary rather than sourced from an actual trace. Theclarify-routing behavior separately measured in the original #1911 5-run corpus does not reproduce on currentmain(6/6 clean across two independent 3-rep matrix efforts run today, bothrouting=query/search_nodescalled, zero fabrication, zero clarify) — most plausibly a side effect of the subject-noun-preservation routing work (fdc1a256/83bdabed) androute_multi(2002fa82) landed since #1911's baseline.No code change needed. A guard addition (
contains_fabricated_node_uri, targeting bare result-shaped listings with no action-claim phrasing) was drafted during investigation but reverted before merge — the other thread's corpus analysis showed it would have false-positived on 19 of 24 zero-tool-call turns in the #1911 corpus, all legitimate clarifications/requests for input, with zero real fabrications for it to catch.Investigation acceptance criteria addressed:
"i found"was already covered pre-Recognize "I have created" phrasing in the anti-fabrication guard (#1865) #1873, and no zero-tool-call turn in that corpus emitted an uncaughtnodespace://URI.!any_real_tool_callsis already the guard's trigger; a naive "zero tool calls + result-shaped claim" check was quantified as producing 19/24 false positives on real conversational data (legitimate clarifications/questions), confirming phrasing-based exclusion is still load-bearing until route_clarify's structured question/options are discarded before reaching the frontend; no HITL UI state exists #1930 lands structured clarify state.main.Closing per confirmation above.