What problem does it solve?
It helps contributors implement polyphony CLI verbs consistently and correctly by enforcing the project’s command shape, DI wiring, JSON serialization rules, exit-code conventions, and required test coverage.
Core Features & Use Cases
- Consistent verb implementation: Use the ConsoleAppFramework command pattern, primary-constructor DI, and consistent parameter/flag mapping.
- Correct deterministic output: Emit AOT-safe JSON using PolyphonyJsonContext with mandatory snake_case field names.
- Production-grade error behavior: Return only the approved exit codes (including consistent not-found error JSON formats) and integrate postcondition/state durability expectations.
- Test-driven integration: Add/extend CommandTestBase-based verb tests and update JsonOutputContractTests to prevent contract regressions.
Quick Start
Update or add a verb under src/Polyphony/Commands/ and then run the existing command and JSON contract tests to confirm exit code, snake_case JSON, and serializer context behavior match the repo’s conventions.