Skip to content

Code inspection is invisible to the report, and to the model that concludes no candidate exists #11

Open

Description

@krapcys1-maker

The model that writes NO_CANDIDATE_FOUND is never told what was read.

Where

src/lib/agents/scientist/meta-review.ts loads inspectionDepthByRepo() and uses it for exactly one thing — computing epistemicClass on retained memory records. The MetaReview prompt contains no code-inspection block at all, and renderMarkdown emits no inspection section.

Observed

Run cmtg7821u produced a 24,521-character final report matching none of /code inspect|README_READ|CODE_INSPECTED|files? searched/i.

So the model that concluded "no candidate found" for three targets was never told:

  • that three repositories had been opened
  • that 12 of 48 files were read in the best candidate
  • what vocabulary was searched
  • that a 336 KB implementation file was skipped for exceeding the size cap
  • that two of the three failure modes contributed no search vocabulary at all

It saw only BEST EVIDENCE CLASS: REPO_CLAIM in the ledger and Coverage status: COMPLETE.

Why it matters

A negative conclusion is only worth as much as the search behind it. Right now the search is invisible at exactly the point where someone decides whether absence of evidence is evidence of absence — and the reader of the report cannot audit it either.

Suggested fix

Add a "Code inspection" block to the MetaReview prompt and a section to renderMarkdown, per repository: depth reached, verdict, files examined against files enumerated, searched terms, verdict reason, and every caveat now persisted on the record (treeTruncated, readFailures, oversizeSkipped, matchesTruncatedIn, negativeIsPartial).

Activity

  1. added
    help wanted
    good first issue
    on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions