Skip to content

feat(gateway): add gateway_version to TRACE claims and /readyz health endpoint (CONF-006 CONF-007) - #248

Merged
imran-siddique merged 1 commit into
mainfrom
fix/conf-006-007-trace-version-readyz
Jun 8, 2026
Merged

imran-siddique merged 1 commit into
mainfrom
fix/conf-006-007-trace-version-readyz

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

Test plan

  • test_generate_claim_gateway_version passes: asserts gateway_version is a non-empty string
  • test_generate_claim_gateway_version_is_string_or_unknown passes: covers _GATEWAY_VERSION constant
  • test_readyz_returns_200_when_healthy passes: all checks "ok", status "ready", HTTP 200
  • test_readyz_returns_503_when_policy_missing passes: status "not_ready", checks.policy starts with "failed:", HTTP 503
  • test_readyz_returns_503_when_attestation_stale passes: checks.attestation == "failed: attestation_stale", HTTP 503
  • test_readyz_returns_503_when_agt_unavailable passes: checks.agt starts with "failed:", HTTP 503
  • test_readyz_accessible_without_bearer_token passes: no auth required
  • All 48 tests in test_trace_claim.py and test_mcp_server_auth.py pass

Closes #195, closes #196

🤖 Generated with Claude Code

… endpoint (CONF-006 CONF-007)

CONF-006: gateway_version already present in GatewayAddenda schema and populated
via importlib.metadata.version("cmcp-gateway") with "unknown" fallback. Added
test_generate_claim_gateway_version_is_string_or_unknown to cover the constant.

CONF-007: update _readyz to return {"status": "not_ready"} (not "degraded") on
failure, format failed checks as "failed: <reason>", add Cedar policy check,
TEE attestation staleness check, and AGT (agent_os) availability check. Returns
HTTP 503 on any failure, 200 when all checks pass. Tests updated to match the
revised response shape; added test_readyz_returns_503_when_agt_unavailable.

Closes #195, #196
@imran-siddique
imran-siddique merged commit c315668 into main Jun 8, 2026
1 of 8 checks passed
@imran-siddique
imran-siddique deleted the fix/conf-006-007-trace-version-readyz branch July 29, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant