Repository navigation
fix(llm): recover bare arrays and truncated JSON from gateway content (#253) - #269
Frankie-Xu wants to merge 4 commits into
Conversation
🌱 graft blast radius1 area changed → 1 area can be affected. 4 dependent symbols, depth 2. flowchart TB
A0(("Code Synthesis<br/>4 symbols"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0 reached;
Who knows this code — 2 people across 2 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 4 dependent symbols, grouped by areaCode Synthesis — 4 symbols in 2 files
Test signal per changed area — 1 ✓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.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
9b8f87b to
0e7cf16
Compare
|
Kept this as Draft while the review queue was full. Rebased onto Closes #253. |
0e7cf16 to
0a644c9
Compare
|
Rebased onto main after #277 so the stale not-ok-197 checks could re-run — all checks green now. |
…trailhq#253) Co-authored-by: Cursor <[email protected]>
0a644c9 to
9afde32
Compare
|
CI is green on current main. Ready for review. |
…#253) (#269) Re-landed from #269 with the conflicts against main resolved; the contributor's fork couldn't take the merge commit. Co-Authored-By: Shrish Dwivedi <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
linksor metadata cannot cause that node to be accepted.toolCallsprecedence remain covered.Opt-in raw-content diagnostics from #253 remain separately scoped. Recovery changes are in
src/ai/llm/recover-tool.tsandtest/llm-ops.test.ts. The CodeQL initialization pin is also aligned with the existing analysis pin (4.38.1), allowing scans to start after current main introduced mismatched action versions.Addresses #253
Validation
npm run buildpassed after a normal merge of current main (fe30ead39d5e6f0c921018d364da2bdbc9d4b3ad).node --import tsx --test --test-concurrency=1 test/llm-ops.test.ts— 18 passed, zero failed or skipped.git diff --check upstream-live/main...HEADpassed.Local macOS validation used an exact-lock
npm ci --ignore-scriptsinstall plus a matching cached Kotlin 0.3.8 native binary copied into the isolated dependency directory and verified on Node ABI 137. Tests use a fake model with no external model calls. Linux and Windows validation is left to the updated GitHub CI run.