Repository navigation
ci(reconciler): registry build + CI validator (PR 4/9) - #5
Merged
Merged
Conversation
Aggregate every skill manifest into a single canonical
registry artefact and gate it on CI.
- reconciler/build_registry.py: walks .claude/skills/**/
manifest.yaml, projects each into a registry entry,
computes a sha256 checksum over the canonical-serialised
payload, writes registry/skills-index.json. Supports
--check (no write, CI freshness check) and
--stable-timestamp (fix generated-at to epoch for
reproducible checksums).
- registry/skills-index.json: committed canonical index.
29 skills, taxonomy summary, schema-version 1.
- registry/README.md: how it is built, how CI enforces
freshness, schema in jsonc.
- .github/workflows/reconciler-ci.yml: new workflow gated
on paths under agent/taxonomy/, .claude/skills/**/
manifest.yaml + params.*, reconciler/, registry/, and
the workflow itself. Three steps:
1. validate_taxonomy.py
2. validate_manifests.py
3. build_registry.py --check
A manifest edit without a registry rebuild fails the PR.
Adopter behaviour unchanged. Reconciler engine itself
arrives in PR 5.
Tracks #1.
Signed-off-by: André Ahlert <[email protected]>
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.
Aggregates every skill manifest into a canonical registry artefact and gates the whole reconciler chain on CI.
What ships
reconciler/build_registry.pyWalks
.claude/skills/**/manifest.yaml, projects each into a slim registry entry, computes a sha256 over the canonical-serialised payload, and writesregistry/skills-index.json.Flags:
--check: no write. Exits non-zero if the on-disk file is stale.--stable-timestamp: fixesgenerated-atto1970-01-01T00:00:00Zso the checksum is reproducible. CI uses this flag.registry/skills-index.json(committed)Canonical aggregated view. 29 skills, taxonomy summary, schema-version 1. Adopter tooling reads this single file instead of walking the skill tree.
{ "schema-version": 1, "framework-version": "0.0.0", "generated-at": "1970-01-01T00:00:00Z", "taxonomy": { "domains.yaml": 7, "audiences.yaml": 5, "risk-tiers.yaml": 5, "integrations.yaml": 9 }, "skill-count": 29, "skills": { ... }, "checksum": "sha256:7a47a78b..." }registry/README.mdHow it's built, how CI enforces freshness, the schema.
.github/workflows/reconciler-ci.ymlNew workflow gated on paths under:
agent/taxonomy/**.claude/skills/**/manifest.yaml.claude/skills/**/params.schema.json.claude/skills/**/params.defaults.yamlreconciler/**registry/**Three sequential steps:
validate_taxonomy.pyvalidate_manifests.pybuild_registry.py --check --stable-timestampA manifest edit without a corresponding registry rebuild blocks the PR.
Pinned actions (matches existing workflow style):
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd(v6.0.2)astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b(v8.1.0)permissions: {}at workflow level,contents: readat job level.Why JSON and not YAML for the registry
Adopter tooling reads this. JSON parses with stdlib in every runtime; YAML needs a dep. Manifests stay YAML because authors write them by hand and want comments / multi-line strings.
Why checksum the registry
A manifest edit can change the projected registry entry. The checksum lets CI compare bit-identically — no semantic compare needed, no false negatives from key ordering.
--stable-timestampis the key to reproducibility across machines.Tested locally
What does NOT ship
Checklist
registry/skills-index.jsoncommitted (29 skills indexed)Tracks #1.