Repository navigation
feat: deeper JavaScript intelligence for the consolidated 0.1.4 release - #10
Merged
Merged
Conversation
Give JavaScript callable values source-located declarations: function-
valued assignments (exports.f = function () {}, F.prototype.m = ...),
members of module.exports = {...} and const x = {...}, and class
expressions in top-level slots. TypeScript output is unchanged.
Resolve members of static object tables, prototype methods of
const x = new F() receivers (evidence.dispatch = static_declaration),
and alias origins (const v = obj.m). Objects and constructors that
escape, are written elsewhere or define a member twice stay unconfirmed.
Understand exports = module.exports = f and const p = module.exports =
{...}; split dynamic CommonJS reasons into member-only and value-
replacing ones; treat module passed as a value as dynamic. Withhold an
export that another module overwrites through its require() binding,
which earlier builds confirmed.
Resolve directory imports through package.json main (including
require("..")) and a package's own name through exact exports subpaths
with require/import/default conditions. package.json is read as data,
never through symlinks or outside the repository.
Classify a class extending require() of a package as external, as for
an ES import. Syntax IR goes to 4: indexes from 0.1.2 or the internal
0.1.3 build reparse once; memory stores are untouched.
Add the javascript-intelligence labeled fixture, adversarial bounds,
the nodekit-v1 CommonJS agent task suite, a binary-independent recall
metric and alias-origin checks in the oracle evaluation, and the 0.1.4
release notes draft.
This was referenced Nov 16, 2026
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.
Consolidated 0.1.4 work: the internal 0.1.3 static-accuracy changes (already on
main, never released) plus deeper JavaScript analysis. One upgrade path from 0.1.2; no 0.1.3 release. The Cargo version is still 0.1.2: the bump is a separate, unapproved step.What changes
JavaScript only (TypeScript output is identical to
main):exports.f = function () {},F.prototype.m = …, members ofmodule.exports = {…}andconst x = {…}, class expressions such asmodule.exports = class App {}.obj.m()resolves when the object does not escape, is not written elsewhere and definesmonce.x.m()forconst x = new F()with a staticF.prototype(evidence.dispatch = "static_declaration").const v = obj.mresolves to the implementation; the chain keeps the local declaration.exports = module.exports = f,const p = module.exports = {…}; member-only vs value-replacing dynamic reasons;factory(module)is dynamic.package.jsonmainfor directory imports (includingrequire("..")), self-reference through exactexportssubpaths withrequire/import/default. Read as data only, never through symlinks or outside the repo.Fixes found on the way:
require()binding (require('./svc').validate = other) was still confirmed for other importers. Now withheld (member_reassigned).require()of a package was a dynamic superclass; now external, as for an ES import.Syntax IR 3 → 4: the first
repogi indexafter upgrading from 0.1.2 or a 0.1.3 build reparses once. No SQLite migration;.repogi/memory.dbuntouched.Evidence
instance-dispatch,commonjs,javascript-intelligence(new); no false confirmed edge. Threecommonjslabels moved to resolved as an intended change (recorded undercorrections).All remaining disagreements are classified in
docs/STATIC_ANALYSIS_ACCURACY.md; none names a wrong declaration. No resolved edge of 0.1.2 or 0.1.3 is lost; TypeScript-file edges are identical to 0.1.3.memory.dbis byte-identical through upgrade and downgrade, the memory verifiescurrent, and the upgraded graph equals a fresh index. The MCP tool list (all 9atlas_*tools) is byte-identical to 0.1.2.Checks run locally
cargo fmt --check,clippy -D warnings(1.98.0),cargo test --workspace --locked -- --test-threads=1(318 passed), release build,prepare_source.py, dependency notices for all four targets, release smoke test, agent harness validation (both suites) and its 36 tests.Not passing locally:
test_wget_fallback(installer test; fails on unmodified 0.1.2 in the same sandbox, installers untouched). Not run locally: macOS. Packaging can't be checked here (local glibc 2.39 is above the 2.34 floor).Agent outcomes
No live agent runs have been authorized, so this PR claims nothing about task success, tokens, time or cost. It adds the
nodekit-v1CommonJS suite (5 tasks; reference solutions pass, no-ops fail);ledgerlite-v1is unchanged.Before release
Approve the 0.1.4 version bump, green hosted CI (Linux + macOS), release-workflow packaging, and the publishing decision.