Skip to content

Privacy scan rechecks unchanged files on every commit #761

Closed

Description

@jparker2006

Follow-up of #757 / PR #760. Each scanned commit gets a full tree scan (about 7.5 s per commit), so a PR with roughly 40 or more of its own commits still hits Privacy's 5-minute cap even with the narrowed range.

Fix: cache each file version's check result, keyed by the blob SHA plus the checker version (policy and code), so a commit's scan checks only blobs it hasn't already seen in this run. Commit messages and identities are still checked per commit.

Keep: every commit is still checked; a cache entry from another checker version, or anything unreadable, is ignored and the blob is rechecked (fail closed). No cross-run cache unless it is keyed by the checker version and refuses on any doubt.

Proof: red first: a multi-commit range rechecks unchanged blobs today. Show the same findings with and without the cache on a fixture with a forbidden blob in an early commit, and before and after timings on a large range (e.g. #721's 24 commits).

Order: after #760 merges.

Owned paths: tools/privacy-check/ (the scan code and its tests), changes/<this issue>.md if needed.

Activity

  1. added
    ready-for-agent
    on Nov 15, 2026
  2. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

  3. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions