Repository navigation
fix(deep): don't abort a 96% meaning pass the same way as a quota error (#235) - #254
Conversation
…or (trailhq#235) Empty/unusable crux replies stay failed and uncached (trailhq#177), but consecutive content-quality misses no longer trip LlmFailureGate. Quota/auth still stop immediately. Per-file errors now include miss class and finish_reason. Co-authored-by: Cursor <[email protected]>
🌱 graft blast radius2 areas changed → 4 areas can be affected. 7 dependent symbols, depth 2. flowchart TB
A0(("Engine Initialization<br/>3 symbols"))
A1(("Graph Building<br/>2 symbols"))
A2(("Context Building<br/>1 symbol"))
A3(("Pull Request Review<br/>1 symbol"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0,A1,A2,A3 reached;
Who knows this code — 3 people across 6 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 7 dependent symbols, grouped by areaEngine Initialization — 3 symbols in 1 file
Graph Building — 2 symbols in 2 files
Context Building — 1 symbol in 1 file
Pull Request Review — 1 symbol in 1 file
Test signal per changed area — 2 ✓Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
36 test suites also reference this code43 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
|
This is exactly the right fix for #235 — thank you for taking it on, and for the careful separation of concerns. Verified locally on top of current
New |
…or (trailhq#235) (trailhq#254) Empty/unusable crux replies stay failed and uncached (trailhq#177), but consecutive content-quality misses no longer trip LlmFailureGate. Quota/auth still stop immediately. Per-file errors now include miss class and finish_reason. Co-authored-by: Cursor <[email protected]>
Summary
ready. Combined withLlmFailureGate's consecutive-failure cutoff, that turned a ~96% meaning pass (the same files 0.10.1 used to defer as pending) into a hard abort: remaining files were skipped, resume died on the same set, andgraft build --deepexited like a quota error.empty-toolCalls/unparseable/truncated/empty-parsed) and the providerfinish_reason, so truncation vs empty vs parse-miss is one line.failedFiles(exit 1 unless--allow-partial) and are not written as successful cache. They no longer increment the consecutive-failure cutoff, so the rest of the pass is attempted. Quota/auth still stop immediately (deep build swallows per-file LLM failures (incl. 429) and exits successfully #127).max_tokensscaling / symbol chunking (issue request 1). Maintainer diagnosis confirmed truncation on dense files, but this window has no Together key and no rawfinish_reason=lengthdump from the reporter's files, so a token policy would be a guess. The new miss class will make that follow-up obvious when it happens.Test plan
toolCallsacross 12 files: nofatal, every file attempted, nodes staypending(not cached ready)empty-toolCalls/truncated/unparseable/empty-parsedplusfinish_reason=…--deep(fix(deep): retry pending nodes — don't cache empty meaning summaries (#172) #177 / build --deep leaves nodes permanentlypending; graft check then reports an unresolvable "not yet summarized" state #172)graph-enrich-failures,graph-enrich-pending,llm-ops,cli-deep-failuretestsnpx tsc -p tsconfig.json --noEmitandnpm test— 1066 pass, 0 fail (Node 24;npm installneeded--ignore-scriptshere because tree-sitter-kotlin's native rebuild cannot find C++ headers on this machine)Closes #235
Made with Cursor