Repository navigation
Release 0.2.4 - #2037
Merged
Merged
Release 0.2.4#2037
Conversation
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
…thon-nonlocal-rebind
…st-impact-files-flag
…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).
…-annotated-function-const
…harp-staged-ctor-not-external
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
requested review from
Whua689 and
suyashpaliwal26
as code owners
November 30, 2026 01:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releasing 0.2.4
Improvements
axiomcode unresolvedand the MCP toolunresolved(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], neverresolved. The skill/axiomcode:fillruns 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 withgraph at <path>fillconst 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--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 ofexternalcsharpnonlocalis no longer treated as written once, sofn()after the rebinding is a declared unknown instead of a wrong edge to the first value. Anonlocalthat only reads, and a nested local of the same name, are unchanged pythonBugs
[stale]instead of[changed], because the build's closing summary re-applied the links after the waiting query had returned. The summary and the once-per-build notice now only read the graphs; a query still re-applies the links. Fixes the Windows nightly failure linksubprocess.run(..),asyncio.run(..)andchild_process.exec(..)were listed under "to resolve" as calls that run a value. A call on a process or event-loop module, including through an import alias, no longer counts;Method.invoke,Function.applyandThread.runstill do. A JS import is read as a package's name linkstest-impact --files a.py b.pyreadsa.pyandb.pyas named files;--filesis no longer passed on as a path pluginDocs
context,reportandgraphCI
Release
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.