Skip to content

D-CODEGRAPH-RECON-2: coverage-aware impact report, report-rs #33 from compiler facts - #2002

Open
AdaWorldAPI wants to merge 11 commits into
mainfrom
claude/sharepoint-excel-schema-reconciliation-t3dsy5
Open

AdaWorldAPI wants to merge 11 commits into
mainfrom
claude/sharepoint-excel-schema-reconciliation-t3dsy5

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Codegraph::impact returns an empty set for a public symbol whose callers live in crates the store does not hold (#2000). This adds Codegraph::impact_report, which keeps impact's masks exactly and adds a typed list of what the answer could not see. It then answers three questions about report-rs PR #33 from a Charon store, graded blind against the manual EXO-185 findings. Board: EXO-229, EXO-230.

Changes

  • crates/lance-graph-codegraph/src/impact_report.rs (new, additive): Scope, Targets, SymbolState, Gap, ImpactReport, Codegraph::impact_report. impact is unchanged.
    • Gaps: external consumers unobserved, targets not extracted or undeclared, excluded regions (opaque modules, features off), unresolved dispatch, incomplete harvest, stale or unrecorded files, and .rs files under a read directory that files.tsv does not list.
    • The external-consumer gap fires when the symbol, or anything that reaches it, is public. When the consumer set is declared closed, every stored crate's coverage is checked instead, including a crate whose call into the symbol sits in code it did not extract.
    • Missing coverage is never written into Graded.unknown.
    • A missing symbol in a stored crate carries its crate's target, region, harvest and file gaps, because each is a place it may still be defined.
    • closed_in_scope() is local; Coverage::no_known_gap() alone is never treated as closure.
  • examples/cg_query.rs: a report subcommand with --targets, --exclude, --consumers-closed.
  • tests/impact_coverage.rs: 14 tests.
  • .claude/probes/2026-11-11-codegraph-recon-2/: report, questions, held-out answer key, both arms' answers, grades, raw store output.
  • .codegraph/ regenerated; board entry.

Findings (details in REPORT.md)

Checks

  • In crates/lance-graph-codegraph: cargo fmt -- --check, cargo clippy --all-targets -- -D warnings, cargo test.
  • Every new guard was disabled and its test went red (both directions for unread files).
  • python3 .claude/tools/codegraph_index.py --check: current.

Open

  • Stores per configuration (features, test targets) would close the two unsupported items.
  • Targets and opaque modules are declared by the caller; the extractor could record them in the store.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XAqKMLLhjfT6wad5BaeNBS

Codegraph::impact is unchanged. impact_report returns the same masks plus
typed gaps from store facts and a declared scope: unobserved external
consumers of a PUBLIC symbol, targets not extracted or undeclared, a dynamic
call that may reach the symbol, an incomplete harvest, stale or unrecorded
source files, unchecked freshness. A missing symbol is Missing, never an
empty answer. Unobserved callers never become positions in Graded.unknown.
closed_in_scope is local to the declared scope; no-known-gap is not global
completeness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMLLhjfT6wad5BaeNBS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMLLhjfT6wad5BaeNBS
A symbol defined only in an opaque module or a disabled feature has no
position, so impact_report now reports declared excluded regions as
RegionsExcluded, and a missing symbol in a stored crate carries that
crate's target and region gaps instead of reading as absent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMLLhjfT6wad5BaeNBS
impact_report now lists .rs files below a directory the extraction read
from that its files table does not record (feature-gated modules, binary
roots), as SourceFilesUnread. cg_query gains a report subcommand that
prints impact_report for a declared scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMLLhjfT6wad5BaeNBS
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Pre-merge checks: Passed 1 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Passed Passed checks: 1 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review November 11, 2026 07:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T07:23:02.573356Z b0364e4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b0364e4ecd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…bol harvest

External callers of a public caller of the symbol are unobserved too, so
the external-consumer gap fires when anything graded is public, not only
the symbol. With the consumer set declared closed, every stored crate is
checked for coverage, including one whose call sits in code it did not
extract. A missing symbol now carries its crate's HarvestIncomplete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMLLhjfT6wad5BaeNBS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAqKMLLhjfT6wad5BaeNBS

This branch has not been deployed

No deployments
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