Repository navigation
v0.1.3: static instance members, CommonJS and agent harness hardening - #9
Merged
Merged
Conversation
Exclude indeterminate sessions from success rates and count planned blocks that never ran. Charge sessions with no reported cost their full cap when checking the budget, and never start one that could exceed it. Kill the agent's process group on interrupt. Require a connected Repogi server (or none, for baseline) and the planned model before grading. Deny web access and paths to grader material in both conditions. Pin the agent executable, grader Node.js and Repogi MCP surface in the plan digest, add draft plans, a STOP file and a total duration limit, and record provenance in every result.
Resolve this.m() and super.m() inside methods of indexed classes to the declaration the class hierarchy statically selects. Report overridden methods as ambiguous and withhold sites where fields, this.m writes, dynamic own members, prototype changes, untracked member writes or dynamic superclasses could redirect the call. Such edges carry evidence.dispatch = static_declaration. Bind literal require() calls in files Node.js loads as CommonJS (using package.json type) and build export tables from unconditional top-level module.exports and exports.name assignments. Conditional, computed or escaping exports stay unresolved; packages and require(expr) are not followed. ES module imports of CommonJS resolve from JavaScript files. A member write now invalidates only that member, and identifiers in computed keys and destructuring defaults are reads. The syntax IR moves to version 3, so the next index reparses every file once. Interrupted impact builds of older IR versions are now cleaned up. Adds hand-labeled instance-dispatch and CommonJS fixtures, an implementation check to the JavaScript oracle evaluation, and docs/STATIC_ANALYSIS_ACCURACY.md.
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.
Summary
v0.1.3 static analysis accuracy, plus agent-outcome harness hardening. The Cargo version stays 0.1.2.
Instance members.
this.m()andsuper.m()resolve inside methods of indexed classes to the declaration that the class hierarchy statically selects. The edge carriesevidence.dispatch = "static_declaration"(retrieval confidencestatic_declaration). Overridden methods are reported as ambiguous. A site is withheld when any of these could redirect the call: fields,this.m = …,this[k] = …, prototype changes, member writes elsewhere, or dynamic, cyclic or deep superclasses.CommonJS. Literal
require()binds in files that Node.js loads as CommonJS (this readspackage.jsontype). Export tables come from unconditional top-levelmodule.exportsandexports.nameassignments. Conditional, computed or escaping exports stay unresolved. Packages andrequire(expr)are not followed. ES module imports of CommonJS resolve from JavaScript files.Invalidation. A member write invalidates only that member. Identifiers in computed keys and destructuring defaults are reads, so
res[parseEdge()] = trueno longer invalidatesparseEdge.Compatibility. The syntax IR moves to version 3: the next
repogi indexreparses every file once. Upgrading and downgrading both reproduce a fresh index exactly. Read-only commands never migrate..repogi/memory.dbis untouched.Harness. These fixes come before any live run:
Design, rules and limits are in
docs/STATIC_ANALYSIS_ACCURACY.md.Results
TypeScript 6.0.3 oracle, same pinned commits for v0.1.2 → this branch:
const x = require(…)declaration, which is the reviewed, not-wrong class.Testing
On Rust 1.98.0 (the CI pin):
fmt --checkandclippy -D warningspass.cargo test --workspace --locked -- --test-threads=1: 316 passed, 0 failed.New tests:
crates/cli/tests/static_accuracy.rs, against hand-labeledfixtures/instance-dispatchandfixtures/commonjs. It checks the exact target line of each edge, incremental vs fresh indexing, and adversarial hierarchies. There are also IR unit tests.Open before release
impact_cache::concurrent_runs_agreefailed intermittently with an immediatedatabase is locked: 2 of 59 local runs on this branch, 0 of 55 on v0.1.2. No SQLite or locking code changed here, and the cause is not identified.claudeexecutable pinned. No live results exist.test_wget_fallback(installer) fails in the local sandbox on v0.1.2 too; expected to pass in CI.