Skip to content

test(parser): assert registry completeness in both directions#691

Open
mjacobs wants to merge 1 commit into
kenn-io:mainfrom
mjacobs:fix/registry-completeness-test
Open

test(parser): assert registry completeness in both directions#691
mjacobs wants to merge 1 commit into
kenn-io:mainfrom
mjacobs:fix/registry-completeness-test

Conversation

@mjacobs

@mjacobs mjacobs commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

TestRegistryCompleteness only asserted that each agent listed in its
hand-maintained allTypes slice was present in Registry. The reverse was
never checked, so an agent added to Registry without a matching allTypes
entry passed silently. Five agents had already drifted out this way:
Antigravity, AntigravityCLI, Iflow, WorkBuddy, and Zencoder.

This adds the five missing agents and makes the check bidirectional: allTypes
and Registry must now contain exactly the same set of AgentTypes, and
duplicate entries on either side are rejected. A new AgentDef can no longer
bypass the completeness check, and the failure message names the fix (add the
type to allTypes).

The list stays hand-maintained on purpose: it keeps adding an agent a
deliberate, reviewed act rather than something derived reflectively from
Registry, which would make the assertion tautological. The change is confined
to internal/parser/types_test.go; no production code is affected.

TestRegistryCompleteness only checked that each listed agent was
registered, so agents added to Registry without a matching allTypes
entry passed silently. Five had already drifted out: Antigravity,
AntigravityCLI, Iflow, WorkBuddy, and Zencoder.

Add the missing agents and assert allTypes and Registry match exactly
in both directions, plus reject duplicate entries on either side, so a
new AgentDef cannot bypass the completeness check.
@roborev-ci

roborev-ci Bot commented Jun 14, 2026

Copy link
Copy Markdown

roborev: Combined Review (6748eef)

No issues found.


Panel: ci_default_security | Synthesis: codex | Members: codex_default (codex/default, done, 43s), codex_security (codex/security, done, 10s) | Total: 53s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant