Repository navigation
fix(deep): retry pending nodes — don't cache empty meaning summaries (#172) - #177
Conversation
…ding (trailhq#172) Silent empty tool/content responses left every node pending, exited 0, and made graft check loop on "run --deep". Reject blank summaries as cache hits, recover crux payloads from content when gateways ignore tool_choice, and name pending nodes in check with a real next step. Co-authored-by: Cursor <[email protected]>
# Conflicts: # package-lock.json
|
Verified locally on top of current Fixes #172's two silent-success paths in Load-bearing evidence: the PR's 4 new #172 tests fail 0/4 against base main (base emits the exact stuck |
…ores tool_choice (#129) (#216) * fix(llm): parse emulated tool calls from content when the gateway ignores tool_choice (#129) DeepSeek-class gateways drop tool_calls and write the payload in content, so ChatSynthesizer returned [] with no warning. Recover the same JSON conservatively (array / object / fence), reuse #177's empty-result retry, and log per-batch node/link counts so a 0-link multi-batch run is visible. Co-authored-by: Cursor <[email protected]> * fix(llm): parse gateway tool-call content without backtracking regex (#129) Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]>
…or (#235) (#254) Empty/unusable crux replies stay failed and uncached (#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]>
…ding (trailhq#172) (trailhq#177) Silent empty tool/content responses left every node pending, exited 0, and made graft check loop on "run --deep". Reject blank summaries as cache hits, recover crux payloads from content when gateways ignore tool_choice, and name pending nodes in check with a real next step. Co-authored-by: Cursor <[email protected]> Co-authored-by: Shrish Dwivedi <[email protected]>
…ores tool_choice (trailhq#129) (trailhq#216) * fix(llm): parse emulated tool calls from content when the gateway ignores tool_choice (trailhq#129) DeepSeek-class gateways drop tool_calls and write the payload in content, so ChatSynthesizer returned [] with no warning. Recover the same JSON conservatively (array / object / fence), reuse trailhq#177's empty-result retry, and log per-batch node/link counts so a 0-link multi-batch run is visible. Co-authored-by: Cursor <[email protected]> * fix(llm): parse gateway tool-call content without backtracking regex (trailhq#129) Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]>
…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
graft build --deepcould finish successfully while leaving every wiring nodesummary: null/pending, thengraft checktold you to re-run--deepforever. That is exactly #172.Root cause
Two silent paths in the meaning tier (not thrown provider errors — those are already covered by #127):
describeFilereturned[](gateway ignoredtool_choiceand lefttoolCallsempty, or the model omitted every symbol),collectFileCruxreturned{ results: ∅ }with no error. Enrich left nodespending,failedFilesstayed 0, the CLI exited 0, and check’s only advice was “rungraft build --deep”.ready.node.summary = r.summary || nullstill setsummary_state: "ready", so the next--deepwas a permanent body-hash cache hit withsummary: null.The reporter’s Together / DeepSeek-V4-Flash setup is the same trigger as #129 (content instead of tool calls). This PR is the meaning-tier / pending-state fix: fail loudly, don’t cache empties, recover crux payloads from content when present, and make check name the stuck nodes. Full synth-side recovery for #129 is still separate.
Changes
enrich: total miss → error +failedFiles(CLI deep build swallows per-file LLM failures (incl. 429) and exits successfully #127 path exits 1); whitespace-only summaries staypendingand remain retryable.ChatCruxSummarizer: iftoolCallsis empty, recover{symbols:…}fromcontent(plain JSON, fences, or[{name, parameters}]emulation).graft check: list pending ids and say that if a deep build already left them pending, look at that build’s errors — re-running alone will not clear a failed meaning pass.Test plan
test/graph-enrich-pending.test.ts— empty reply →failedFiles; blank summary not cached as ready; check wording; content recoverynpm run build && npm test— 758 passsrc/calc.py) →build --deepeither fills meaning or exits non-zero with a readable error;graft checknames pending nodes if any remainCloses #172
Made with Cursor