Skip to content

fix(skill-builder): scaffold regenerates registry.json — the 5th one-shot-green surface (ag-ekyq #scaffold-registry-regen)#614

Merged
boshu2 merged 1 commit into
mainfrom
chore/ag-ekyq-scaffold-registry-regen
May 30, 2026
Merged

fix(skill-builder): scaffold regenerates registry.json — the 5th one-shot-green surface (ag-ekyq #scaffold-registry-regen)#614
boshu2 merged 1 commit into
mainfrom
chore/ag-ekyq-scaffold-registry-regen

Conversation

@boshu2
Copy link
Copy Markdown
Owner

@boshu2 boshu2 commented May 30, 2026

What

skill-builder's init.sh new-skill plumbing (ag-cw2y) wired 4 of 5 derived surfaces — dispositions, narrative counts, codex override-catalog — but not the registry.json SKU catalog. A stale registry.json trips contracts-sync ("registry.json is stale") AND correctness(ubuntu) ("SKU_CATALOG: DRIFT") together.

This was the most-missed surface this session: it cost /burndown #600 a 2nd fix-and-repush (22a0af2f) and was a manual generate-registry.sh step for /eval-outcomes (#613).

How

Adds generate-registry.sh as plumbing step 4 in init.sh, positioned last (it scans the whole skills/ tree, so the skeleton + the other 3 surfaces must exist on disk first), guarded with a WARN fallback like its siblings. A new skill is now one-shot-green across all 5 surfaces with zero manual regen.

TDD

tests/scripts/scaffold-registry-regen.bats (4/4 green) locks the wiring + ordering contract: init.sh invokes the canonical generator, guarded, after the override-catalog step and before the final skeleton echo. generate-registry.sh is not repo-root-injectable (it reads hooks/types.go/schedule across the tree), so the contract is the wiring+ordering; the end-to-end behavior was empirically validated this session running generate-registry.sh on the freshly-scaffolded /eval-outcomes (#613, registry included the new skill).

Scope

Reverted the 7 pre-existing-main codex .agentops-generated.json drifts that regen-codex-hashes swept in; surgically rebuilt the manifest to skill-builder's hash delta only (changing init.sh refreshes skill-builder's codex twin hash — a real consequence of this diff).

Closes-scenario: ag-ekyq#scaffold-registry-regen
Bounded-context: BC4-Factory
Evidence: tests/scripts/scaffold-registry-regen.bats

…shot-green surface (ag-ekyq)

init.sh's new-skill plumbing wired 4 of the 5 derived surfaces (dispositions,
narrative counts, codex override-catalog) but NOT the registry.json SKU catalog.
A stale registry.json trips contracts-sync ("registry.json is stale") AND
correctness(ubuntu) ("SKU_CATALOG: DRIFT") together — it cost /burndown #600 a
2nd fix-and-repush (22a0af2) and was a manual step for /eval-outcomes (#613).

Adds generate-registry.sh as plumbing step 4, positioned LAST (it scans the
whole skills/ tree, so the skeleton + other 3 surfaces must exist first),
guarded with a WARN fallback like its siblings. A new skill is now one-shot-green
across all 5 surfaces with zero manual regen.

Closes-scenario: ag-ekyq#scaffold-registry-regen
Bounded-context: BC4-Factory
Evidence: tests/scripts/scaffold-registry-regen.bats (4/4 green; wiring + ordering contract)
@boshu2 boshu2 merged commit b0a7f4e into main May 30, 2026
14 checks passed
@boshu2 boshu2 deleted the chore/ag-ekyq-scaffold-registry-regen branch May 30, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant