Skip to content

ci(reconciler): registry build + CI validator (PR 4/9) - #5

Merged
andreahlert merged 1 commit into
mainfrom
pr4/registry-ci
May 28, 2026
Merged

andreahlert merged 1 commit into
mainfrom
pr4/registry-ci

Conversation

@andreahlert

Copy link
Copy Markdown
Owner

Aggregates every skill manifest into a canonical registry artefact and gates the whole reconciler chain on CI.

What ships

reconciler/build_registry.py

Walks .claude/skills/**/manifest.yaml, projects each into a slim registry entry, computes a sha256 over the canonical-serialised payload, and writes registry/skills-index.json.

Flags:

  • --check: no write. Exits non-zero if the on-disk file is stale.
  • --stable-timestamp: fixes generated-at to 1970-01-01T00:00:00Z so 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.md

How it's built, how CI enforces freshness, the schema.

.github/workflows/reconciler-ci.yml

New workflow gated on paths under:

  • agent/taxonomy/**
  • .claude/skills/**/manifest.yaml
  • .claude/skills/**/params.schema.json
  • .claude/skills/**/params.defaults.yaml
  • reconciler/**
  • registry/**
  • the workflow file itself

Three sequential steps:

  1. validate_taxonomy.py
  2. validate_manifests.py
  3. build_registry.py --check --stable-timestamp

A 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: read at 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-timestamp is the key to reproducibility across machines.

Tested locally

$ uv run --with pyyaml python reconciler/build_registry.py --stable-timestamp
build_registry: wrote registry/skills-index.json

$ uv run --with pyyaml python reconciler/build_registry.py --check --stable-timestamp
build_registry: up to date

$ uv run --with pyyaml python reconciler/validate_taxonomy.py
validate_taxonomy: ok

$ uv run --with pyyaml --with jsonschema python reconciler/validate_manifests.py
validate_manifests: ok (29 manifest(s), 0 warning(s))

What does NOT ship

  • Reconciler resolve/plan/apply engine (PR 5+).
  • No skill or runtime behaviour change.

Checklist

  • Registry build script committed and reproducible
  • registry/skills-index.json committed (29 skills indexed)
  • CI workflow added with appropriate path filters
  • All three checks pass locally
  • Pinned action shas match existing workflows

Tracks #1.

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]>
@andreahlert
andreahlert merged commit b565ed9 into main May 28, 2026
12 of 14 checks passed
@andreahlert
andreahlert deleted the pr4/registry-ci branch May 28, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant