Skip to content

registrar: agent and server parse the snapshot version's content hash with two copies of the parser — pin them together #1272

Closed

Description

@bpalermo

From the second-pass review of #1266/#1267. The agent's versionContentHash (registry/internal/registrar) duplicates the server's parser (registrar/internal/server/snapshot.go:99). #1266's emptyResend clear relies on the two agreeing: if a future version-format change updates only one, the agent could clear a correct cache on a renamed answer. Fix: one shared helper (a small package both can import without pulling the server into the agent), or a table test that runs both parsers over every format (<rev>.<h>, <rev>+<h>, hash:<h>, legacy counter).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions