[codex] Add registry archive bootstrap and sync checks#251
Draft
[codex] Add registry archive bootstrap and sync checks#251
Conversation
Contributor
Author
|
@benbrandt just for your information |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
registry-archivesupport to the registry build, including incremental merge logic and sync validation against the currentregistry.jsonregistry-archive.jsonandregistry-archive.schema.jsonalongside the existing registry artifactsWhy
The registry already publishes immutable historical snapshots, but there was no cumulative index of all published agent versions. This change bootstraps that archive once and then keeps it current incrementally on each build.
Impact
Clients can resolve historical install/run metadata for old agent versions from a single archive file, while the build now fails if the current registry snapshot and archive drift apart.
Validation
cd .github/workflows && uv run --with pytest pytest tests/test_backfill_registry_archive.py -qcd .github/workflows && uv run --with ruff ruff check registry_archive.py build_registry.py tests/test_backfill_registry_archive.py backfill_registry_archive.pySKIP_URL_VALIDATION=1 uv run --with jsonschema .github/workflows/build_registry.py --dry-run --previous-archive .github/workflows/bootstrap/registry-archive.seed.jsonSKIP_URL_VALIDATION=1 uv run --with jsonschema .github/workflows/build_registry.py --previous-archive .github/workflows/bootstrap/registry-archive.seed.json