Caelum 0716bfb8d9
fix(api): /skills/:id routing (axum 0.7) + expand Python operator CLI (#24)
Building out the Python CLI surfaced a dead route. The API uses axum 0.7
(matchit 0.7), whose path-param syntax is ':id' — but the skill-detail routes
were registered with the axum-0.8 '{id}' form, so '/skills/{id}' and
'/skills/{id}/backtest' were treated as literal segments and 404'd for every
real id, on every client (TS/Go/Python SDKs and the dashboard). Corrected to
':id'; OpenAPI keeps the '{id}' template (that is the correct OpenAPI form).

Python SDK: add the operator-read endpoints it was missing relative to the
TS/Go SDKs — journal, ensemble, ensemble_live, snapshots, skills,
skill_detail(id), proof_verify.

Python CLI: expand from a 3-command stub to operator parity with guardrailctl
and the TS CLI — status, regime, journal, ensemble, snapshots, skills [ID],
verify, smoke. Each renders a focused summary (or --json), offline-safe except
the smoke gate.

Verified live (API on 127.0.0.1:8097): cargo clippy clean, 35 api tests pass;
/skills/cmc-regime-routed-alpha now HTTP 200 (was 404), .../backtest 200;
every Python CLI command renders real data incl. 'skills <id>'; smoke → all 9
PASS.
2026-06-16 20:08:32 +03:00
..