Skip to content

feat(skills): skill-builder scaffolds codex override-catalog entry (ag-cw2y item 4)#611

Merged
boshu2 merged 1 commit into
mainfrom
feat/ag-cw2y-override-catalog-scaffold
May 30, 2026
Merged

feat(skills): skill-builder scaffolds codex override-catalog entry (ag-cw2y item 4)#611
boshu2 merged 1 commit into
mainfrom
feat/ag-cw2y-override-catalog-scaffold

Conversation

@boshu2
Copy link
Copy Markdown
Owner

@boshu2 boshu2 commented May 29, 2026

What

ag-cw2y item 4 — the 4th and last new-skill gate that cost /burndown #600 a CI round. A new skill previously tripped validate-codex-override-coverage ("source skill missing from Codex catalog"). skill-builder now adds the catalog entry automatically.

How

Tests (TDD, red→green)

tests/scripts/append-codex-override-entry.bats — appends parity_only / stays valid JSON / idempotent / no-dup-on-existing. 4/4 green. shellcheck clean.

Codex artifact

Refreshed only skill-builder's hash (6 unrelated pre-existing main drifts untouched). PR-scope codex validation passes.

ag-cw2y status after this

Item 1 (#609 check + #610 scaffold) ✅ · Item 2 (#610) ✅ · Item 4 (here) ✅ · Item 3 (codex desc token budget / ag-vzbt) is the only remaining piece. Once item 3 lands, a new skill — and therefore ag-hdqu0.8 + /burndown #600 — is fully one-shot-green.

Closes-scenario: ag-cw2y#override-catalog-scaffold
Bounded-context: BC4-factory
Evidence: tests/scripts/append-codex-override-entry.bats

…g-cw2y item 4)

A new skill previously tripped validate-codex-override-coverage ('source skill
missing from Codex catalog'), the 4th gate that cost /burndown #600 a CI round.

- scripts/append-codex-override-entry.sh: idempotent, JSON-aware helper that
  appends a parity_only entry (name/treatment/wave=catalog-parity/reason) to
  skills-codex-overrides/catalog.json if the skill is absent. parity_only is the
  default for skill-builder's canonical-derived codex form; author flips to
  bespoke + scaffolds the override dir if a Codex-only divergence is needed.
  Repo-root-injectable for testing.
- init.sh: calls it in the new-skill plumbing block alongside the dispositions
  row (#609/#610) and --fix-counts (#610).

Codex artifact: refreshed skill-builder source/generated hash only (6 unrelated
pre-existing main drifts left untouched). PR-scope codex validation passes.

Closes-scenario: ag-cw2y#override-catalog-scaffold
Bounded-context: BC4-factory
Evidence: tests/scripts/append-codex-override-entry.bats
@boshu2 boshu2 merged commit 0023aa5 into main May 30, 2026
14 checks passed
@boshu2 boshu2 deleted the feat/ag-cw2y-override-catalog-scaffold branch May 30, 2026 00:03
boshu2 added a commit that referenced this pull request May 30, 2026
…egate (ag-vzbt) (#612)

## What
**ag-vzbt** — the last `ag-cw2y` item. The skills-codex description
catalog budget was a **hard aggregate** (2800 chars, bumped
2600→2700→2800 as skills landed) with ~17 chars headroom. Adding the
Nth+ skill walls out — `/burndown` #600 was forced into a 17-char stub
("Bounded epic loop") to fit.

## How
Replace the hard aggregate with a **per-skill average** cap
(`CODEX_DESC_AVG_FAIL_CHARS=45`) that scales with the catalog:
- Each terse description keeps the average low; the gate fails only if
descriptions are **bloated on average** — not because the catalog grew.
- Current state: avg **35** chars/skill (77% of 45) — real headroom, and
it never becomes a wall again.
- The per-skill hard cap (`DESC_FAIL_CHARS=180`) still bounds any single
bloated description.
- `BUDGET_REPO_ROOT` override added so the rule is fixture-testable.

## Tests (TDD, red→green)
`tests/scripts/codex-desc-avg-budget.bats` — PASS under budget / FAIL
over budget / **100 skills (total ~3800 > old 2800 wall) still pass**
because avg stays low. 3/3 green; shellcheck clean; real-repo gate
passes (avg 35/45).

## ⚠️ Pre-existing unrelated red
The local fast gate also surfaces a **pre-existing** `mkdocs strict`
failure on `rfcs/0001-finding-generator-parallelism.md` — reproduces on
clean `origin/main` with my changes stashed; my diff touches only the
test script + bats (zero docs). Flagging separately; not in scope here.

## ag-cw2y status
**All four items now done** (items 1,2,4 merged #609/#610/#611; item 3
here). A brand-new skill is now **one-shot-green** → this unblocks
**`ag-hdqu0.8`** (last Outcomes bead) and **`/burndown` #600**.

Closes-scenario: ag-vzbt#per-skill-average-budget
Bounded-context: BC2-validation
Evidence: tests/scripts/codex-desc-avg-budget.bats
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