Skip to content

Plan cached file purposes in a dry run - #24

Merged
tauanbinato merged 1 commit into
mainfrom
dry-run-cached-purpose
Sep 26, 2026
Merged

tauanbinato merged 1 commit into
mainfrom
dry-run-cached-purpose

Conversation

@tauanbinato

Copy link
Copy Markdown
Contributor

A dry run left files that need a file-purpose answer unplanned, even when the cache held that answer. The units a run then sends for those files were missing, and requests that depend on them (tests, outlines) differed, so a warm cache's estimate counted requests as new that the run answers from the cache.

On devise (evaluation corpus), --dry-run counted 106 of 1,532 first-pass requests as new; the real run sent none. With this change the dry run plans 1,640 requests, all answered by the cache, matching the run's 1,640 cache hits. lobsters, flask and spring-petclinic now plan more requests, all cached.

  • preview records a cached purpose answer and plans the file as resolve_purposes does; an unanswered purpose still leaves the file unplanned, as documented.
  • Test: a_dry_run_plans_the_units_of_a_file_whose_purpose_the_cache_answers.

A dry run left files that need a file-purpose answer unplanned, even
when the cache held that answer, so the units a run then sends for them
were missing and requests that depend on them (tests, outlines) differed.
On devise the estimate counted 106 of 1,532 first-pass requests as new
while the run sent none. The preview now records a cached purpose and
plans the file as a run does.
@tauanbinato
tauanbinato merged commit 7004dca into main Sep 26, 2026
9 checks passed
tauanbinato added a commit that referenced this pull request Sep 26, 2026
#24 was merged into main as 7004dca, the same change as this branch's
first commit (97a9fa6); the conflicts in CHANGELOG.md and src/evaluate.rs
are that change against this branch's later edits, resolved with this
branch's side. The tree is unchanged.
@tauanbinato
tauanbinato deleted the dry-run-cached-purpose branch September 26, 2026 21:16
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