feat(prime-agent): generate the kit's real USAi models.json from the catalog emitter (#362) - #385
Open
wz-gsa wants to merge 1 commit into
Open
feat(prime-agent): generate the kit's real USAi models.json from the catalog emitter (#362)#385wz-gsa wants to merge 1 commit into
wz-gsa wants to merge 1 commit into
Conversation
…catalog emitter Fifth step of the harness-neutral USAi catalog (issue #362, epic #357). Replaces the prime-agent kit's placeholder models.json (empty models[]) with the REAL config generated by the USAi catalog prime-agent emitter — the emitter (#361) and the kit skeleton (#369) are both now on main, so the artifact can be produced. - files/home/prime-agent-config/models.json: regenerated by emitPrimeAgentModelsFromCatalog(catalog.json) — 14 models, prime-agent array shape, apiKey="USAI_API_KEY" (env-var NAME, no secret). The committed file IS the emitter output byte-for-byte. - tests/models-json-regen.test.mjs (node --test, runs under make test-kits): a BYTE-EXACT lockstep guard asserting emitPrimeAgentModelsFromCatalog(catalog) == the committed kit models.json (fails CI if catalog.json changes without regenerating the kit file), plus a 14-model/env-var-name check and a no-key-material scan on the shipped artifact. - spec.yaml: updated the file's comment + description from "PLACEHOLDER" to "GENERATED by the USAi catalog prime-agent emitter, kept in lockstep by a regeneration test" (prose, per AGENTS.md §9.3 — no bare issue ref in the spec). Verified: emitter output == committed file (byte-identical); a one-field perturbation of the kit models.json flips the regen test to FAIL (guard has teeth); make test-kits (44+14) + validate-kits (7/7) + validate all green; no key-like material in the shipped file. Refs #357 #362 Co-authored-by: OpenCode Agent <william.zujkowski@gsa.gov>
6 tasks
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.
Closes #362. Epic #357 MVP is now complete: the prime-agent kit ships a real, generated
models.jsoninstead of the placeholder.What changed
prime-agent-config/models.json— regenerated byemitPrimeAgentModelsFromCatalog(catalog.json)(the USAi catalog: prime-agent emitter + shape/no-secret tests #361 emitter). 14 models, prime-agent array shape,apiKey: "USAI_API_KEY"(env-var NAME, no secret). The committed file is the emitter output byte-for-byte.tests/models-json-regen.test.mjs— a byte-exact lockstep guard: assertsemitPrimeAgentModelsFromCatalog(catalog) == committed kit models.json, so CI fails ifcatalog.jsonchanges without regenerating the kit file. Plus a 14-model/env-var-name assertion and a no-key-material scan on the shipped artifact.spec.yaml— comment/description updated from "PLACEHOLDER" → "GENERATED by the USAi catalog prime-agent emitter, kept in lockstep by a regeneration test" (prose per AGENTS.md §9.3, no bare issue ref).Verification (orchestrator, first-hand)
make test-kits(44 + 14) ·make validate-kits(7/7) ·make validate— all green. No key-like material in the shipped file.Dependency note
Both prerequisites are on main (emitter #361, kit skeleton #369), which is why this could land now. Remaining prime-agent kit work (real install / CA-bundle / kernel scripts + verify, #370–#373) is live-test-heavy and tracked separately.
Refs #357 #362
AI-assisted (OpenCode).