Skip to content

feat(index): unresolved calls staging (SCHEMA 36)#162

Merged
SutuSebastian merged 14 commits into
mainfrom
feat/unresolved-calls-staging
Jun 4, 2026
Merged

feat(index): unresolved calls staging (SCHEMA 36)#162
SutuSebastian merged 14 commits into
mainfrom
feat/unresolved-calls-staging

Conversation

@SutuSebastian

@SutuSebastian SutuSebastian commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Two-phase call resolution (SCHEMA 36) plus in-repo test bench hardening — merged as one squash commit (6e50d77).

Index — call resolution staging

  • SCHEMA_VERSION 36: unresolved_calls queue, calls.callee_symbol_id / callee_resolution_kind
  • resolveCalls() in src/application/call-resolver.ts after bindings; reuses loadBindingIndexContext / resolveNameAtSite
  • Full rebuild + incremental scope via expandHeritageResolveScope (changed/requested/deleted paths); deletion-only path in run-index.ts
  • Method calls (is_method_call) deferred — not queued, callee_* stay NULL
  • Bundled recipes: unresolved-call-sites, call-resolution-stats
  • Changeset: minor (unresolved_calls rebuild on upgrade)

Canonical docs: architecture.md (calls, unresolved_calls), glossary.md. Shipped plan retired per docs-governance (no docs/plans/unresolved-calls-staging.md).

Test bench (no external CODEMAP_ROOT)

  • fixtures/README.md, fixtures/CAPABILITIES.json, docs/testing-coverage.md
  • Substrate pin-down goldens + scripts/query-golden-coverage-matrix.test.mjs
  • Agent-eval probes + capability-probes.test.mjs; src/cli/cmd-test-bench-e2e.test.ts
  • Plan: docs/plans/in-repo-test-bench.md (Phases 1–3 shipped)

Docs / hygiene

  • Glossary + CONTRIBUTING guard scope; roadmap Rule 2 (shipped P2 items removed)
  • No rot-prone inventory counts in narrative (docs/README.md Rule 6)

Out of scope (follow-up)

Test plan

  • bun run check (CI green on merge)
  • bun test src/application/call-resolver.test.ts src/application/run-index.test.ts
  • bun run test:golden + bun run test:scripts + bun run test:agent-eval
  • Post-merge: on main, bun src/index.ts --full + codemap query --json --recipe call-resolution-stats

Add SCHEMA_VERSION 36, call-resolver pass after bindings, incremental scoped
re-resolve, and unresolved-call-sites / call-resolution-stats recipes.
@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8d5dd13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/codemap Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@SutuSebastian, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 14 minutes and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 95e404ab-b21a-470f-8f37-4d10448b6780

📥 Commits

Reviewing files that changed from the base of the PR and between 1d9c09e and 8d5dd13.

📒 Files selected for processing (67)
  • .changeset/unresolved-calls-staging.md
  • .github/CONTRIBUTING.md
  • docs/README.md
  • docs/architecture.md
  • docs/benchmark.md
  • docs/glossary.md
  • docs/golden-queries.md
  • docs/plans/callback-dispatch-synthesis.md
  • docs/plans/in-repo-test-bench.md
  • docs/plans/substrate-extraction.md
  • docs/plans/unresolved-calls-staging.md
  • docs/research/agent-eval-findings-2026-05.md
  • docs/roadmap.md
  • docs/testing-coverage.md
  • fixtures/CAPABILITIES.json
  • fixtures/README.md
  • fixtures/golden/minimal/async-calls-prefetch.json
  • fixtures/golden/minimal/barrel-files.json
  • fixtures/golden/minimal/bindings-createClient.json
  • fixtures/golden/minimal/boundary-rules-ui-no-api.json
  • fixtures/golden/minimal/call-resolution-stats.json
  • fixtures/golden/minimal/calls-createClient-resolved.json
  • fixtures/golden/minimal/calls-method-ping-unresolved.json
  • fixtures/golden/minimal/decorators-sealed.json
  • fixtures/golden/minimal/dynamic-imports-prefetch.json
  • fixtures/golden/minimal/file-metrics-complexity-fixture.json
  • fixtures/golden/minimal/files-count.json
  • fixtures/golden/minimal/files-hashes.json
  • fixtures/golden/minimal/files-largest.json
  • fixtures/golden/minimal/function-params-createClient.json
  • fixtures/golden/minimal/import-specifiers-consumer.json
  • fixtures/golden/minimal/index-summary.json
  • fixtures/golden/minimal/index-table-stats.json
  • fixtures/golden/minimal/meta-fts5-enabled.json
  • fixtures/golden/minimal/module-cycles-cache-store.json
  • fixtures/golden/minimal/re-export-chains-product-card.json
  • fixtures/golden/minimal/refactor-risk-ranking.json
  • fixtures/golden/minimal/references-product-card-perms.json
  • fixtures/golden/minimal/runtime-markers-env.json
  • fixtures/golden/minimal/scopes-product-card.json
  • fixtures/golden/minimal/shop-symbols-recipe.json
  • fixtures/golden/minimal/source-fts-row-count.json
  • fixtures/golden/minimal/symbol-neighborhood-depth-2.json
  • fixtures/golden/minimal/symbol-neighborhood.json
  • fixtures/golden/minimal/unimported-exports.json
  • fixtures/golden/minimal/unresolved-call-sites.json
  • fixtures/golden/scenarios.json
  • fixtures/minimal/README.md
  • fixtures/minimal/src/bench/method-call-sites.ts
  • scripts/agent-eval/capability-probes.test.mjs
  • scripts/agent-eval/parse-agent-log.test.ts
  • scripts/agent-eval/scenarios.json
  • scripts/query-golden-coverage-matrix.test.mjs
  • scripts/query-golden.ts
  • src/application/bindings-engine.ts
  • src/application/call-resolver.test.ts
  • src/application/call-resolver.ts
  • src/application/index-engine.ts
  • src/application/run-index.test.ts
  • src/application/run-index.ts
  • src/cli/cmd-test-bench-e2e.test.ts
  • src/db.test.ts
  • src/db.ts
  • templates/recipes/call-resolution-stats.md
  • templates/recipes/call-resolution-stats.sql
  • templates/recipes/unresolved-call-sites.md
  • templates/recipes/unresolved-call-sites.sql
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/unresolved-calls-staging

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Use expandHeritageResolveScope for incremental call resolve, include all
--files paths even when hash-unchanged, global unresolved_calls_residual meta,
skip method-call false binds, resolve after deletion-only incremental, add
changeset.
Add substrate pin-down goldens, index-table-stats aggregate, coverage-matrix
guard, run-index call/deletion integration tests, and expanded agent-eval probes.
Document the harness map in docs/testing-coverage.md.
Add fixtures/README.md, CAPABILITIES.json, and in-repo-test-bench plan so CI
validates Codemap without external CODEMAP_ROOT. Bench corpus stays at
fixtures/minimal; --corpus bench aliases minimal. Add method-call bench slice
and golden; extend coverage-matrix guard for manifest files.
Add shop-symbols-recipe golden, cmd-test-bench-e2e for show/snippet/impact/
validate/SARIF on fixtures/minimal, and an agent-eval probe. Mark plan phases
2–3 largely complete in in-repo-test-bench.md.
Expand probes to 18 golden-backed scenarios, add capability-probes.test.mjs
guard, and fix live MCP smoke to assert find-call-sites by id not index.
Treat re-exported/same-file without symbol_id as resolved; document method
calls in call-resolution-stats; restore bindings-engine comments moved to
loadBindingIndexContext.
Align P2 backlog with shipped plans (PR #162); Phase 4 bench scale stays in plan only.
Delete plan file per docs-governance; point roadmap and callback-dispatch
deps at architecture.md (#162).
Align architecture with deletion-only resolve scope and method-call NULL
kinds; fix testing-coverage paths and agent-eval probe wording; sync
CAPABILITIES.json substrate scenario ids with testing-coverage table.
Per docs/README Rule 6: remove hardcoded recipe/scenario/probe counts;
point schema version at src/db.ts; fix agent-eval and substrate-extraction
stale wording; label historical 3-probe benchmark sample.
Remove shipped P2 backlog lines; add unresolved_calls glossary entries;
testing-coverage cross-ref in docs/README; bench tier points at shipped docs.
Add calls/coverage to SUBSTRATE_SCENARIO_BY_TABLE; fix glossary
architecture anchor; clarify CONTRIBUTING guard scope.
@SutuSebastian SutuSebastian merged commit 6e50d77 into main Jun 4, 2026
11 checks passed
@SutuSebastian SutuSebastian deleted the feat/unresolved-calls-staging branch June 4, 2026 15:36
@github-actions github-actions Bot mentioned this pull request Jun 4, 2026
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.

1 participant