Add AgentTopology enum — Create `cxrp/vocabulary/agent#14
Conversation
Extends the canonical CxRP vocabulary with AgentTopology, a str-Enum that names the five supported agent arrangements (SINGLE, PAIR, SWARM, HIERARCHICAL, PIPELINE) used in CxRP contracts. Mirrors the LaneType pattern: Apache-2.0 SPDX header, Velascat copyright, and str-Enum inheritance for seamless JSON serialisation.
|
Self-review (pass 34) — concerns: cxrp/vocabulary/agent.py is well-formed and matches all project conventions (SPDX header, Velascat copyright, str+Enum base, UPPER_CASE members, lowercase values, single-line docstring). However, the PR diff includes several extraneous tooling/workflow artifacts that must not be merged into the repository. |
|
Escalated to human review after 34 self-review pass(es). Remaining concerns: cxrp/vocabulary/agent.py is well-formed and matches all project conventions (SPDX header, Velascat copyright, str+Enum base, UPPER_CASE members, lowercase values, single-line docstring). However, the PR diff includes several extraneous tooling/workflow artifacts that must not be merged into the repository. Reply |
Replaces kodo's non-compliant agent.py (5 wrong members, wrong filename) with the spec-mandated agent_topology.py (4 members, correct values). Changes: - cxrp/vocabulary/agent_topology.py: AgentTopology(str, Enum) with SINGLE_AGENT, SEQUENTIAL_MULTI_AGENT, DAG_WORKFLOW, SWARM_PARALLEL. Includes _BANNED_DEGREE_TOKENS/_BANNED_SIZE_TOKENS for guardrail tests. - tests/test_agent_topology.py: 9 tests — members, ≤4-count (ADR G1), lowercase snake_case, no numerics, no size/degree words, round-trip, str-subclass, invalid-value-raises. - pyproject.toml: version bumped 0.2.0 → 0.3.0 - CHANGELOG.md: [0.3.0] entry documenting AgentTopology addition - Removed: agent.py (wrong filename/members), .kodo/, .baseline-validation.json Spec: docs/specs/cxrp-backend-card-vocabulary.md (campaign 10c50210) ADR: OperationsCenter ADR 0002 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Operator spec-compliance fix — The review bot correctly flagged What kodo got wrong → what was fixed:
All 9 naming-guardrail tests pass. Ready for re-review. |
|
Changes applied: revision complete — please re-review |
|
/lgtm Operator approval — spec-compliance verified:
|
|
Changes applied: revision complete — please re-review |
2 similar comments
|
Changes applied: revision complete — please re-review |
|
Changes applied: revision complete — please re-review |
|
/lgtm |
Auto-generated by Operations Center execution.
Goal
[Impl] Add
AgentTopologyenum — Create `cxrp/vocabulary/agent