Skip to content

fix(dir): make signature projection deterministic - #2502

Merged
tkircsi merged 2 commits into
agntcy:mainfrom
jay23606:fix/deterministic-signature-projection
Nov 13, 2026
Merged

tkircsi merged 2 commits into
agntcy:mainfrom
jay23606:fix/deterministic-signature-projection

Conversation

@jay23606

Copy link
Copy Markdown
Contributor

Summary

  • Choose the signer with the lexicographically lowest signer_key for verified and revoked signature projections, removing updated_at and database row order from signer selection.
  • Add regression coverage showing the projected signer remains stable when verification timestamps and row order are reversed.

Fixes #2484

Validation

  • Regression gate: both clean-base runs fail on the new assertion; both fix runs pass.
  • cd server && go test ./policy -count=1 passes.
  • cd server && go test ./... has one unrelated Windows temp-directory cleanup failure in server/routing.TestPublishList_ValidMultiSkillQuery; the same failure reproduces on clean origin/main.

@jay23606
jay23606 requested a review from a team as a code owner November 12, 2026 23:49
@github-actions github-actions Bot added the size/XS Denotes a PR that changes 0-49 lines label Nov 12, 2026
@codecov

codecov Bot commented Nov 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jay23606 jay23606 changed the title Make signature projection deterministic fix(dir): make signature projection deterministic Nov 13, 2026
@jay23606
jay23606 force-pushed the fix/deterministic-signature-projection branch from 3127633 to 60eac8d Compare November 13, 2026 04:21

@tkircsi tkircsi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@tkircsi
tkircsi added this pull request to the merge queue Nov 13, 2026
Merged via the queue into agntcy:main with commit 5884735 Nov 13, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-49 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: A record's projected signer depends on the order its verifications were written

2 participants