Skip to content

fix: bound large-repo memory and traversal work - #1583

Open
danusha2345 wants to merge 31 commits into
colbymchenry:mainfrom
danusha2345:fix/resolution-memory-and-graph-bounds
Open

danusha2345 wants to merge 31 commits into
colbymchenry:mainfrom
danusha2345:fix/resolution-memory-and-graph-bounds

Conversation

@danusha2345

@danusha2345 danusha2345 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Validation

  • full suite after rebuilding the native kernel: 191 test files, 3,194 passed, 9 skipped
  • TypeScript build passes
  • focused WAL regression proves sync() invokes backpressure during changed-file storage and orphan resolution: 21/21
  • focused MCP/root/WAL regressions exercise a real spawned server: one child is opened as default, multiple children are listed through MCP and stderr, and no-index startup explains that live sync is disabled: 67/67
  • self-index after the merge/fixes: 594 files, 12,978 nodes, 46,052 edges, 0 pending refs, 0 pending changes, 0-byte WAL
  • native kernel build and focused archive/quadratic-synthesis regressions pass
  • 290 MB sparse .har probe: rejected before decode, 58 MB peak RSS, 0.05 s
  • ArduPilot full index (13,633 files): peak PSS reduced from 4.09-4.26 GB to 3.316 GB with resolver workers disabled
  • ArduPilot graph remained identical to baseline: 177,869 nodes / 474,074 edges
  • 100,000-node shortest path probe: 0.14 s, ~119 MB max RSS

Commits are separated by defect for review.

danusha2345 and others added 5 commits August 24, 2026 11:01
…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
…say when no project resolves (colbymchenry#1606, colbymchenry#1607)

The MCP server's root resolution only walked UP, so a host launched from a
workspace root above its indexed children started healthy-looking but inert:
no default project, no watcher, no daemon, and nothing said so.

- resolveServerRoot(): up-walk, then the bounded colbymchenry#964 down-scan behind a
  manifest-or-.git gate (never $HOME / fs root); exactly one indexed
  sub-project is adopted, zero or several never guess.
- doInitialize/retryInitializeSync/resolveDaemonRoot/handleInitialize all use
  it, so adoption comes with live sync, the shared daemon, and the matching
  instructions variant; the retry path picks up children indexed later
  (down-scan throttled per 5s).
- The no-root branch now logs what was searched and which indexed
  sub-projects exist, and the no-default tool response lists them with
  projectPath guidance (still success-shaped, never isError).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LxZj6W6Y1SHXwvpT3uwJpK
danusha2345 added 2 commits September 8, 2026 11:19
…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
#	__tests__/wal-deferral.test.ts
#	src/extraction/index.ts
#	src/index.ts
…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (3adf067, post-#1770) into this branch: head e681dcd. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (43271f3) into this branch: head 1b81c76. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (85550eb) into this branch: head c48e644. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (8733c28) into this branch: head ef854d5. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (8c04734) into this branch: head 68cc98f. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (ee83636) into this branch: head 8856408. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (e720f6c) into this branch: head a3c66ea. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
#	src/resolution/index.ts
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (de5adba, post-#1790) into this branch: head 5bbaec8. The only conflict was the js-builtins import line beside memory-budget in resolution/index.ts (plus the CHANGELOG) — both imports kept, no behaviour change. tsc clean; the branch's tests and resolution.test.ts pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (cece072) into this branch: head c47857c. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (040ba38) into this branch: head 1cf0ceb. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (374b3b4) into this branch: head b6749d7. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (71d049c) into this branch: head 8b17110. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (9181dd1) into this branch: head 5c6f6a3. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (64bd45c) into this branch: head 9fbbb8b. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

…-and-graph-bounds

# Conflicts:
#	__tests__/extraction.test.ts
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (799f8b2, post-#1806) into this branch: head 810ce53. The only conflict was the import lines at the top of extraction.test.ts (#1806's scanDirectoryAsync / ScanSkipStats beside this branch's getParser); all kept. tsc clean; the branch's tests pass (758).

…-and-graph-bounds

# Conflicts:
#	CHANGELOG.md
@danusha2345

Copy link
Copy Markdown
Contributor Author

Merged current main (748311f) into this branch: head c0c6354. The only conflict was the CHANGELOG entry; no source conflict. tsc clean, the branch's tests pass.

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