Skip to content

Release 0.2.4 - #2037

Merged
swapnilpaliwal-sd merged 29 commits into
mainfrom
dev
Nov 30, 2026
Merged

swapnilpaliwal-sd merged 29 commits into
mainfrom
dev

Conversation

@swapnilpaliwal-sd

@swapnilpaliwal-sd swapnilpaliwal-sd commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Releasing 0.2.4

Improvements

  • fill: list the open call sites the project may own and settle them in batches (#1835) #2028 plugin, mcp: a build now ends by saying how many call sites it left open that may land in the project (a call through a value, or a member on a receiver it could not type). axiomcode unresolved and the MCP tool unresolved(limit, decisions) list them, most called callers first, each with its code, the reason and the candidates; link --batch - settles many at once, each recorded [asserted], never resolved. The skill /axiomcode:fill runs it in a subagent. A library's method on an untyped value is counted, not listed: on a 70k-line Python project 5,333 unresolved sites → 80 listed, 30 of 30 sampled from the dropped bucket were library calls; one agent run settled all 81 open sites for $0.51 in 69 s, 16 of 16 links correct. TypeScript and C# value calls, multi-line imports, runtime globals and workspace packages are covered. The build still ends with graph at <path> fill
  • typescript: a call to a function-literal const no longer also names its annotation's signature (#2005) #2027 typescript: a call to a const annotated with a callable type and holding a function literal (const f: Format = (s) => s; f(x)) resolves to the literal's body only, not also to the annotation's bodiless call signature. A const holding a factory's result, and a parameter, keep the signature typescript
  • csharp: new T() on a staged library type is not an external constructor (#1339) #2025 csharp: with a library staged through --library, new Store() on a library type is no longer also reported as a construction of an unstaged dependency; a staged type with no carried constructor gets its parameterless constructor (boundary_lib) instead of external csharp
  • python: a closure cell rebound through nonlocal from a nested scope is not single-write (#381) #2023 python: a closure cell rebound from a nested function through nonlocal is no longer treated as written once, so fn() after the rebinding is a declared unknown instead of a wrong edge to the first value. A nonlocal that only reads, and a nested local of the same name, are unchanged python

Bugs

Docs

CI

Release

  • 0.2.4 #2029 every package and plugin manifest at 0.2.4 (the parser keeps its own version)

CI on dev passes every suite (Java, Python, TypeScript, JavaScript, C#, web), and the nightly on dev is green on Nov 28 and Nov 29.

Ayingxizhao and others added 29 commits November 1, 2026 23:33
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs: document context in README command reference
docs: the README's CLI section lists context, report and graph
…s not single-write (#381)

symtable counts a name's binding sites per scope, so `fn = first` in the enclosing
function and `nonlocal fn; fn = second` in a nested one are two rows, the cell's
own saying 1. Every single-write guard read that row, so `swap(); fn()` came out
known_edge -> first, a function that cannot run there, and `second` was the
target of no edge.

binding_rebinding now adds to a cell's count each ASSIGNED NONLOCAL binding whose
LEGB walk lands on it (binding_nonlocal_write). The raw per-row count is kept as
binding_rebinding_raw for the walk itself, which binding_rebinding is derived
from. The site is now a declared unknown instead of a wrong committed target. A
`nonlocal` that only reads the cell, and a nested local of the same name, keep
their single-write answers (both are controls in the new case).

Case 44-nonlocal-rebind. No other golden moved.
…t itself a file (#2022)

`test-impact --files a.py b.py` handed `--files` on to `changed`, which took it as
one more named path; it is not source, so it was listed as a changed file outside
every indexed language and searched for by name in the tests. `--files` is now
dropped with the other test-impact flags, so the named files are read as they are
for `test-impact a.py b.py`. tests/test_command.py checks what reaches `changed`.
…or (#1339)

With a C# library staged, `new Store()` on a library type was still reported
as a construction of an unstaged dependency.

Declared constructor: the site had two rows, the resolved one and
`external:Store.<constructor>` (provenance external). The cause is
call_ctor_target_accepts in external-types.dl, which re-checked that the
target accepts the argument count under the SITE's provenance. A client site
that reaches a library constructor has the constructor under "lib", so the
check found nothing and the "staged type, no carried constructor" clause
labelled a resolved site as unstaged. call_ctor_target already checks the
arity under the constructor's own provenance, so the relation now reads it
as is.

No constructor carried: the site was `external:Store.<constructor>`, which
says the dependency was not supplied. It now has one row to
`generated:<qualified type name>#<constructor>/0` with callee_provenance lib
and tier boundary_lib; the bundle gives that id a methods row with
provenance generated, as it does for a delegate member's Invoke. `new T()`
compiles only if T has a parameterless constructor, so the target exists,
but a library IR is a signature subset and cannot say whether T declares it,
so the site is still kept out of known_implicit_ctor. A site whose argument
count no carried constructor accepts, where the IR carries some, keeps its
external label, like an uncarried method.

Tests: staging-test.sh gains both shapes; it fails on the base (2 rows /
external) and passes here.
… keeps its own version)

0.2.3 is released, so what merges into this branch ships in 0.2.4. package.json (version and the five @axiomcode/engine-* pins) and the four editor plugin and extension manifests move from 0.2.3 to 0.2.4. The parser keeps its own version.
…ts annotation's signature (#2005)

A call to a const annotated with a callable type and holding a function
literal resolved two ways: the literal's body and the annotation's bodiless
call signature. Rule (3) in callee-resolution.dl added the signature of the
callee's expr_type or expr_shape with no check that the callee already holds
a literal, which the method lookup answers with its body. The namespace
var_shape clause in expr-type.dl carried that guard; rule (3) did not.

Rule (3) now skips a callee that holds a function literal
(callee_holds_function): a local, a named import, or a namespace member read.
The relation is built from relations below the expression fixpoint, so the
negation stays stratifiable. A const holding a factory's result, and a
parameter, keep the signature as the target.

Case 101 pins the interface and function-type-alias forms through a local,
a named import and a namespace read, with factory and parameter controls.
On the base each literal site is multi_inferred to body and signature; here
each is one known_edge to the body.

Goldens: the same two-way hedge collapses to the body in 08 (lib), 63, 65,
74 and 77. The compiler names the annotation's signature, so 08, 63 and 65
record it in known-missing, the shape 92 and 98 already accept; 77 loses
an extra. The comment in case 65 describes what a revert now looks like.
…m in batches, and say so once per build

The engine has done what it can by the end of a build; the sites it leaves are calls through a value (a handler
table, a callback parameter, getattr, reflection) or a member called on a receiver it could not type. An answer listed
the ones it stopped at; nothing listed them all, and nothing told the agent to look.

- `axiomcode unresolved` / MCP `unresolved(limit, decisions)`: a summary line, then the open sites inside the most
  called callers first, each with its code, the engine's reason and its candidates. Only sites that may land in the
  project are listed: a member call needs a project method of that name, a bare call through a value counts unless
  the file imports the name. A library's method on an untyped value is counted, not listed.
- `link --batch -`: links, rejected leads (`not:`) and `?` (read, nothing certain) in one apply, each validated as a
  single link is. A `?` or a rejection is kept in .axiomcode/fill-skipped.tsv keyed by the line's text, so the site is
  asked again only when its line changes.
- the build ends with the summary line; the first prompt (hook) and the first query answer (MCP, for hosts without
  hooks) after a build say how many sites are open and how to fill them, once per build.
- skill `fill` (`/axiomcode:fill`), forked into a subagent where the host supports it: read each site, link only what
  the code makes certain, return one line.
… import is a package's name

- `subprocess.run(cmd)`, `asyncio.run(..)`, `child_process.exec(..)` matched the reflective names (`run`, `exec`) and
  every answer listed them under "to resolve" as running a value. A call written on a process or event-loop module,
  read through an import alias (`import a as b, subprocess as sp`, `import * as cp from 'child_process'`), is no
  longer one. Method.invoke, Function.apply and Thread.run still are.
- a JS/TS `import { z } from 'zod'` line was read by the Python import rule, so its names were never taken as a
  package's and a bare call of one was listed as a call through a value; a relative import is still the project's own.
…als and workspace packages

Measured on a TypeScript monorepo, the fill list dropped every call through a local value there: the bare-call kinds
were Python's only. And it kept what is not the project's:

- a bare call is FUNCTION_CALL / JSX_COMPONENT_CALL in TypeScript and JavaScript and INVOCATION / DELEGATE_INVOKE in
  C#, not only SIMPLE_CALL (`const { useWidget } = ctx; useWidget()` was filed as a library's)
- an import whose braces span lines (`import {\n  expectTypeOf,\n} from 'vitest'`) is read; the reader is bounded, so a
  Python file's `import` lines cannot make it scan the whole file (a 120 s worklist on a 70k-line project before)
- a runtime or test-runner global (`fetch`, `expect`, `expectTypeOf`, `assert`) is the platform's, unless the file
  imports the project's own declaration of that name from a relative path or a workspace package
- an import from one of the repository's own workspace packages (a monorepo's `@scope/core`) is the project's
- a bare call reaches functions, classes, consts and variables, never a method; a call on a receiver reaches methods
…olved

The summary line was printed after `graph at <path>`, which callers read as the build's last line
(tests/publish_order.py's one-language control). It now prints just above the warnings and that line.

AGENTS.md lists the unresolved tool, and the Gemini skill copy and the Cursor rule are regenerated
with packaging/copies.py (tests/manifests.py).
fill: list the open call sites the project may own and settle them in batches (#1835)
…onst

typescript: a call to a function-literal const no longer also names its annotation's signature (#2005)
…external

csharp: new T() on a staged library type is not an external constructor (#1339)
plugin: test-impact --files names the files that follow it, and is not itself a file (#2022)
python: a closure cell rebound through nonlocal from a nested scope is not single-write (#381)
…tch again

`mvn dependency:get` resolves the `dependency` prefix from Maven Central's
plugin-group metadata. When that read fails, Maven stops with "No plugin
found for prefix 'dependency'" and the Java engine job fails before a test
runs. It happened on the pull request that merged 0.2.4 into dev, on the
first run and on the rerun, while the push of the same commit passed.

The step now names maven-dependency-plugin 3.11.0 in full, so no prefix
lookup takes place, and tries the download up to three times.
ci: fetch Vineflower by the plugin's coordinates, and try a failed fetch again
…re-apply the links

A query waiting for a rebuild returns once the new graph is published. The build then still runs its summary line
(`ax_fill.py --summary`), which called `ax_links.sync`: the new graph was not yet stamped with the links file, so
the links were re-applied against the working tree as it was at that moment. A linked line edited in that window was
written into the graph as [stale], where `axiomcode link` should say [changed] (edited since the build). On the
nightly's Windows runner, under four cases at a time, that window held the edit in python/asserted-links two nights
running.

`worklist(sync=False)` for the summary line and the once-per-build notice: they count and write nothing. The
`unresolved` listing is a query and still re-applies a links file the graphs were not given.

tests/fill.py: a published but unstamped graph, the linked line edited, the summary and the notice run: the link is
still [changed] and no graph was re-stamped (both fail before this change, with the nightly's [stale] line); the
control, `unresolved`, re-stamps them.

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
fill: the build's summary line and the notice read the graphs, never re-apply the links
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 9146968 into main Nov 30, 2026
77 checks passed
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.

2 participants