Skip to content

insights: reading a repo's history in one go is not charged to the per-file time budget, and the page says how many files were left without history - #41

Merged
teocns merged 1 commit into
mainfrom
insights-history-read-not-charged-to-file-budget
Nov 13, 2026
Merged

teocns merged 1 commit into
mainfrom
insights-history-read-not-charged-to-file-budget

Conversation

@teocns

@teocns teocns commented Nov 13, 2026

Copy link
Copy Markdown
Member

Before and after:

  • Before, one 40-second budget covered every git history lookup of the inventory. On a busy laptop it was spent before the instruction files were reached, so every instruction file was left without git history and read as "no history". The counts of your own skills and instruction files then changed from one run to the next, with the same code and the same files, and nothing on the page said so.
  • After, the 40 seconds cover only the lookups made one path at a time. The read of a repository's whole history in one go is not charged to it and has its own limit: 180 seconds for all the git calls of that repository together. A repository over that is noted and falls back to one path at a time. With the budget spent, a repository is read whole at its first question instead of being left unread.
  • The scan counts the files left without history (because the budget was spent or git timed out) and records it in its output. Both pages print one line above the tabs when that number is above 0, for example "The history of 12 files couldn't be read in time, so who made them is a guess in this run." Nothing is printed when it is 0, or when the run is from before the count existed.

Limits: a repository whose whole read is over 180 seconds, or has more than 80,000 commits, still falls back to one path at a time, so on a very large repository some files can still be left without history; the line on the page says how many.

Test:

  • cd plugins/insights/scripts/v15/engine/variants/views && uv run --no-project python -m unittest test_view_built test_view_mylevel test_counts (45 tests, OK)

  • claude plugin validate . passes with the warnings it already gave.

  • The sources this repository is published from have tests for the budget at 0 with the whole read working and failing, a git call that times out or runs past its limit, and the page line present and absent; they pass and are not shipped here.

  • One change. I did not edit a version, a CHANGELOG.md, marketplace.json or kit.json.

  • Nothing personal: no names, no paths from my machine, no output of my own scan, no secrets.

No version change: nothing reaches members until a release.

…r-file time budget, and the page says how many files were left without history

Kit-Commit: c54cb01fa648be4c052348cf6584b82f73e3326d
Kit-Only: plugins/insights
@teocns
teocns merged commit 5e19c4d into main Nov 13, 2026
@teocns teocns mentioned this pull request Nov 13, 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