Skip to content

fix(compliance): gate per-agent billing phases - #6357

Merged
bokelley merged 1 commit into
mainfrom
fix/6343-billing-capability-guard
Aug 10, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/6343-billing-capability-guard

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

What changed

  • Gate both per-agent billing phases on account.supported_billing containing agent.
  • Clarify the storyboard and runner-kit precondition.
  • Add SDK-runtime and storyboard-structure regression coverage.

Why

Sellers that only advertise operator billing have no per-agent billing permission boundary. The storyboard nevertheless sent billing: agent and expected BILLING_NOT_PERMITTED_FOR_AGENT, falsely failing the semantically correct capability-level BILLING_NOT_SUPPORTED response.

The phase-level requires_capability gate is enforced by the released SDK before dispatch and grades these phases not_applicable for sellers that do not offer agent billing.

Closes #6343.

Validation

  • npm run test:sdk-runner-capability-gates
  • npm run test:storyboard-test-kits
  • npm run build:compliance
  • git diff --check

@bokelley
bokelley enabled auto-merge (squash) August 10, 2026 21:23

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — clean billing-gate fix with regression coverage.

What I checked:

  • Gates both per-agent billing phases in billing-gate-dispatch.yaml on account.supported_billing containing "agent" via a phase-level requires_capability/contains: matcher (well-precedented). Sellers advertising only operator billing now grade the phases not_applicable rather than falsely failing the narrower BILLING_NOT_PERMITTED_FOR_AGENT contract (#6343).
  • Both phases gated identically, so the recover phase's suggested_billing context reference cannot dangle.
  • Patch changeset present and appropriate for this compliance-asset change.
  • Regression coverage added for SDK grading and storyboard structure.

No critical/high findings. gated_paths is false and no no-auto-approve team match, so the REVIEW_REQUIRED status does not force escalation. Only one low finding (phase-structure narrative bullet not updated), which is omitted from blocking consideration.

Medium findings: none.

Low (nit): billing-gate-dispatch.yaml:84 — per_agent_gate_recover narrative bullet doesn't mention the new capability gate.

@bokelley
bokelley merged commit ba9d7ad into main Aug 10, 2026
44 checks passed
@bokelley
bokelley deleted the fix/6343-billing-capability-guard branch August 10, 2026 21:28
bokelley added a commit that referenced this pull request Aug 11, 2026
* fix(compliance): drop stale request-signing vector counts (#6074) (#6295)

* docs(request-signing): drop stale conformance vector counts

The Testing section said the spec ships 39 test vectors (12 positive + 27
negative). The set is 40 — 12 positive + 28 negative — since vector
028-unsigned-protocol-method-required was added in 3.1.0.

Refer to the positive/ and negative/ directories instead of stating counts,
matching universal/signed-requests.yaml, whose pass_criteria deliberately
grades "all vectors in positive/ ... and all vectors in negative/" rather
than a total, and so cannot drift as vectors are added.

Refs #6071

* fix(compliance): drop stale vector count from signed-requests-runner header

The header said the storyboard grades a verifier against 28 conformance
vectors. The set is 40 - 12 positive + 28 negative. 28 is the size of
negative/ alone, so the count omitted the positive set entirely.

It was never accurate: at 3.0.x the set was 39 (12 + 27), matching neither
the total nor the negative count. Vector 028-unsigned-protocol-method-required
landed in 3.1.0, which is what made 28 coincide with len(negative/).

Refer to the positive/ and negative/ directories instead of a count, matching
universal/signed-requests.yaml, whose pass_criteria grades "all vectors in
positive/ ... and all vectors in negative/" and therefore cannot drift.

Refs #6071

* chore: add changeset for request-signing vector count fixes

---------

Co-authored-by: Constantine Mirin <[email protected]>
Co-authored-by: Constantine.mirin <[email protected]>

* Version Packages (#6296)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* docs(compliance): clarify controller grading scope (#6314) (#6315)

* fix(compliance): gate per-agent billing phases (#6357) (#6359)

* fix(compliance): gate async buy forcing scenario (#6368) (#6370)

* Version Packages (#6361)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Constantine Mirin <[email protected]>
Co-authored-by: Constantine.mirin <[email protected]>
Co-authored-by: aao-release-bot[bot] <280565558+aao-release-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bokelley added a commit that referenced this pull request Aug 15, 2026
* fix(compliance): drop stale request-signing vector counts (#6074) (#6295)

* docs(request-signing): drop stale conformance vector counts

The Testing section said the spec ships 39 test vectors (12 positive + 27
negative). The set is 40 — 12 positive + 28 negative — since vector
028-unsigned-protocol-method-required was added in 3.1.0.

Refer to the positive/ and negative/ directories instead of stating counts,
matching universal/signed-requests.yaml, whose pass_criteria deliberately
grades "all vectors in positive/ ... and all vectors in negative/" rather
than a total, and so cannot drift as vectors are added.

Refs #6071

* fix(compliance): drop stale vector count from signed-requests-runner header

The header said the storyboard grades a verifier against 28 conformance
vectors. The set is 40 - 12 positive + 28 negative. 28 is the size of
negative/ alone, so the count omitted the positive set entirely.

It was never accurate: at 3.0.x the set was 39 (12 + 27), matching neither
the total nor the negative count. Vector 028-unsigned-protocol-method-required
landed in 3.1.0, which is what made 28 coincide with len(negative/).

Refer to the positive/ and negative/ directories instead of a count, matching
universal/signed-requests.yaml, whose pass_criteria grades "all vectors in
positive/ ... and all vectors in negative/" and therefore cannot drift.

Refs #6071

* chore: add changeset for request-signing vector count fixes

---------

Co-authored-by: Constantine Mirin <[email protected]>
Co-authored-by: Constantine.mirin <[email protected]>

* Version Packages (#6296)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* docs(compliance): clarify controller grading scope (#6314) (#6315)

* fix(compliance): gate per-agent billing phases (#6357) (#6359)

* fix(compliance): gate async buy forcing scenario (#6368) (#6370)

* Version Packages (#6361)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(schema): backport canonical enum references (#6578)

* Version Packages (#6583)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix: preserve main schema discovery metadata

* fix: retain main unreleased changelog notice

---------

Co-authored-by: Constantine Mirin <[email protected]>
Co-authored-by: Constantine.mirin <[email protected]>
Co-authored-by: aao-release-bot[bot] <280565558+aao-release-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bokelley added a commit that referenced this pull request Aug 18, 2026
* fix(compliance): drop stale request-signing vector counts (#6074) (#6295)

* docs(request-signing): drop stale conformance vector counts

The Testing section said the spec ships 39 test vectors (12 positive + 27
negative). The set is 40 — 12 positive + 28 negative — since vector
028-unsigned-protocol-method-required was added in 3.1.0.

Refer to the positive/ and negative/ directories instead of stating counts,
matching universal/signed-requests.yaml, whose pass_criteria deliberately
grades "all vectors in positive/ ... and all vectors in negative/" rather
than a total, and so cannot drift as vectors are added.

Refs #6071

* fix(compliance): drop stale vector count from signed-requests-runner header

The header said the storyboard grades a verifier against 28 conformance
vectors. The set is 40 - 12 positive + 28 negative. 28 is the size of
negative/ alone, so the count omitted the positive set entirely.

It was never accurate: at 3.0.x the set was 39 (12 + 27), matching neither
the total nor the negative count. Vector 028-unsigned-protocol-method-required
landed in 3.1.0, which is what made 28 coincide with len(negative/).

Refer to the positive/ and negative/ directories instead of a count, matching
universal/signed-requests.yaml, whose pass_criteria grades "all vectors in
positive/ ... and all vectors in negative/" and therefore cannot drift.

Refs #6071

* chore: add changeset for request-signing vector count fixes

---------

Co-authored-by: Constantine Mirin <[email protected]>
Co-authored-by: Constantine.mirin <[email protected]>

* Version Packages (#6296)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* docs(compliance): clarify controller grading scope (#6314) (#6315)

* fix(compliance): gate per-agent billing phases (#6357) (#6359)

* fix(compliance): gate async buy forcing scenario (#6368) (#6370)

* Version Packages (#6361)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(schema): backport canonical enum references (#6578)

* Version Packages (#6583)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(compliance): backport rate-limit exhaustion grading (#6607)

Backport the canonical rate-limit exhaustion not-applicable grading contract and regression coverage to the 3.1 maintenance line while preserving the branch-specific reason enum.

* chore: release 3.1.15 (#6612)

Publish the 3.1.x rate-limit exhaustion clarification and immutable release artifacts.

---------

Co-authored-by: Constantine Mirin <[email protected]>
Co-authored-by: Constantine.mirin <[email protected]>
Co-authored-by: aao-release-bot[bot] <280565558+aao-release-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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