Repository navigation
fix(compliance): gate per-agent billing phases - #6357
Merged
Merged
Conversation
bokelley
enabled auto-merge (squash)
August 10, 2026 21:23
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean billing-gate fix with regression coverage.
What I checked:
- Gates both per-agent billing phases in
billing-gate-dispatch.yamlonaccount.supported_billingcontaining "agent" via a phase-levelrequires_capability/contains:matcher (well-precedented). Sellers advertising only operator billing now grade the phasesnot_applicablerather than falsely failing the narrower BILLING_NOT_PERMITTED_FOR_AGENT contract (#6343). - Both phases gated identically, so the recover phase's
suggested_billingcontext 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
added a commit
that referenced
this pull request
Aug 10, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
account.supported_billingcontainingagent.Why
Sellers that only advertise operator billing have no per-agent billing permission boundary. The storyboard nevertheless sent
billing: agentand expectedBILLING_NOT_PERMITTED_FOR_AGENT, falsely failing the semantically correct capability-levelBILLING_NOT_SUPPORTEDresponse.The phase-level
requires_capabilitygate is enforced by the released SDK before dispatch and grades these phasesnot_applicablefor sellers that do not offer agent billing.Closes #6343.
Validation
npm run test:sdk-runner-capability-gatesnpm run test:storyboard-test-kitsnpm run build:compliancegit diff --check