Skip to content

The largest file in a repository is always skipped, and it is the likeliest place for the mechanism #12

Open

Description

@krapcys1-maker

The one file most likely to hold a memory system's persistence mechanism is the one file structurally guaranteed to be skipped.

Where

src/lib/sources/code-inspection.ts — MAX_FILE_BYTES = 200_000. Files above it are dropped into oversizeSkipped and never fetched.

The comment beside the cap already states the case against itself:

The most likely place for a large repository's implementation to live is its largest file.

Observed

Run cmtg7821u, best candidate BMC-INC/Iron-mem (relevance score 4, the highest in the run):

  • src/db.rs — 336 KB, the store implementation of a memory repository
  • never opened, on all five inspection passes
  • the skip was recorded in oversizeSkipped and, at the time, dropped before persistence

The run then reported that no mechanism could be found in that repository's code.

Related, same file

The twelve-file budget is not a ranking when nothing scores. scoreFilePath awards +10 per search term found in the path and +3 for src|lib|core. In that run no term appeared in any path, so every source file under src/ tied at exactly 3 — confirmed by the event message reporting src/db.rs ... score 3. Array.prototype.sort is stable, so the "top 12" was the first 12 files in GitHub's tree order.

12 of 48, 12 of 42, 12 of 17 across the three repositories. CODE_NOT_VERIFIED from an arbitrary 25% sample was stored identically to one from an exhaustive read.

Suggested fix

  • fetch a bounded window of oversize files rather than skipping them. raw.githubusercontent.com supports Range requests; scanning the first N MB is enough to find a symbol.
  • add selectionWasArbitrary = ranked.every(f => f.score <= 3) so a negative built on an arbitrary sample says so.

The caveat fields (oversizeSkipped, filesExamined, filesEnumerated, negativeIsPartial) are now persisted, so the evidence for this is visible on any new run's records.

Activity

  1. added
    help wanted
    good first issue
    recall
    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 wantedrecall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions