Skip to content

context: export the graph's facts before reading its edges - #1849

Merged
swapnilpaliwal-sd merged 2 commits into
0.1.9from
fix/context-crash-after-bg-warm
Oct 2, 2026
Merged

swapnilpaliwal-sd merged 2 commits into
0.1.9from
fix/context-crash-after-bg-warm

Conversation

@swapnilpaliwal-sd

@swapnilpaliwal-sd swapnilpaliwal-sd commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Since index started warming impact's facts in the background, context could run before edge.facts existed. It never exported the facts itself, so it died on a missing file. This failed engine (typescript) on 0.1.9 with two different cases. G.edges() now exports first, which costs nothing when the facts are already stamped.

Also: a failing case now prints the tail of its output too, so a traceback shows the error line.

Checked: reproduced by deleting out/dl after index (FileNotFoundError), fixed after the change; TypeScript cases 225/225, Python cases 287/287, latency and freshness pass.

swapnilpaliwal-sd and others added 2 commits October 2, 2026 13:04
…k names the error

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
index now warms impact's facts in the background, so a query can arrive before
edge.facts exists. context never exported them and died on a missing file.

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
@swapnilpaliwal-sd swapnilpaliwal-sd changed the title tests: show why a failing case's command stopped context: export the graph's facts before reading its edges Oct 2, 2026
@swapnilpaliwal-sd
swapnilpaliwal-sd marked this pull request as ready for review October 2, 2026 20:08
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 147f4a8 into 0.1.9 Oct 2, 2026
12 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the fix/context-crash-after-bg-warm branch October 2, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant