Files
ngit-grasp/grasp-audit/src
DanConwayDev 2dbb8dfdaf fix(audit): compare Git refs against one preferred state snapshot
The read-only probe merged refs from multiple repository states and resolved equal timestamps by iteration order. Superseded branches and tags could therefore cause false audit failures.

Select one complete state using the newest timestamp and lowest event ID before deriving expected refs. This assumes the existing fetch supplies the repository's applicable states; authority resolution, fetch scope and comparison of extra advertised refs are unchanged. Keep grasp-audit independent of ngit-grasp.

Validation: both regressions fail against the former selection logic and pass with this fix. Cover both arrival orders, same-second states from different authors, removed branches and tags, and a newer empty snapshot. The complete grasp-audit test suite, all-target Clippy and workspace formatting pass.

Assisted-by: GPT-6
2026-09-17 15:58:00 +00:00
..
2025-11-19 17:01:36 +00:00
2026-07-17 16:19:37 +01:00