Skip to content

fix: correct README structure and add billing conformance check#37

Merged
George-iam merged 3 commits intomainfrom
fix/readme-structure-billing-check
Mar 8, 2026
Merged

fix: correct README structure and add billing conformance check#37
George-iam merged 3 commits intomainfrom
fix/readme-structure-billing-check

Conversation

@George-iam
Copy link
Copy Markdown
Contributor

Summary

  • README: replace stale checks/fixtures/runner.py tree with actual suite.py flat layout; remove broken link to non-existent docs/coverage-matrix.md
  • suite.py: add _check_enterprise_billing_contract — the only API family (PATCH/GET /v1/billing/plan, GET /v1/billing/invoices) that previously had zero conformance checks
  • Register the new check in run_contract_suite()

Test plan

  • pytest passes with the new billing check included
  • README structure matches actual directory layout

Made with Cursor

…heck

README: replace the stale checks/fixtures/runner.py directory tree with
the real structure (suite.py flat layout). Remove broken link to
non-existent docs/coverage-matrix.md; replace with inline prose describing
actual coverage status including the billing gap.

suite.py: add _check_enterprise_billing_contract covering PATCH/GET
/v1/billing/plan and GET /v1/billing/invoices — the only API family that
previously had zero conformance checks.

Made-with: Cursor
The happy-path and reports-failures test harnesses hardcode the expected
number of ContractResults. Adding enterprise_billing raised that count
from 44 to 45. Also add mock handlers for PATCH/GET /v1/billing/plan and
GET /v1/billing/invoices so the happy-path test passes.

Made-with: Cursor
GET /v1/billing/plan returns the current plan for the org/workspace —
it doesn't have to carry the same plan_id that was just returned by the
PATCH upsert (implementations may store one plan per scope). Check that
plan_id is a string, not that it equals the upsert response id.

Made-with: Cursor
@George-iam George-iam merged commit a03aa5d into main Mar 8, 2026
1 check passed
@George-iam George-iam deleted the fix/readme-structure-billing-check branch March 9, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant