Skip to content

fix(compliance): gate billing capability discovery - #7581

Merged
bokelley merged 2 commits into
mainfrom
conductor/gate-billing-capability-discovery
Sep 18, 2026
Merged

bokelley merged 2 commits into
mainfrom
conductor/gate-billing-capability-discovery

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • mark billing_gate_dispatch capability discovery optional
  • skip that phase when the agent does not advertise the account capability block
  • bump the storyboard patch version and add the protocol patch changeset

Fixes #7573.

Validation

  • npm run build:compliance -- --check
  • node scripts/check-changeset-protocol-scope.cjs origin/main
  • npx --no-install changeset status --since=origin/main

@bokelley
bokelley marked this pull request as ready for review September 18, 2026 10:44
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 2026

@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, minimal fix with one non-blocking medium.

What I checked:

  • Gate change on capability_discovery (optional:true + requires_capability present:true) correctly skips billing probing for non-account agents, with both dependent phase families cascade-skipping cleanly — verified against runner semantics and base regression tests.
  • Changeset scope/type (patch, adcontextprotocol) is correct; artifact immutability, oneOf discriminator, and schema↔docs coherence checks all pass.
  • No critical/high findings. gated_paths: false, no no-auto-approve team match, high_risk: false.

Medium findings:

  • static/compliance/source/universal/billing-gate-dispatch.yaml — no regression test pins the new gate, so a silent drift-revert could re-open #7573.

Decision path: no critical/high (row 1 n/a); gated_paths false (row 2 n/a); high_risk false (rows 3/5 n/a); the single medium is not in data-loss/schema/infra (row 4 n/a); no prior escalation (row 6 n/a); no team gate (row 7 n/a); only 1 medium finding (<3, row 8 n/a) → row 9 approve.

@bokelley
bokelley dismissed aao-secretariat[bot]’s stale review September 18, 2026 11:18

The merge-base changed after approval.

@bokelley
bokelley force-pushed the conductor/gate-billing-capability-discovery branch from be250c5 to ee7805e Compare September 18, 2026 11:18
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 2026

@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 pass, no findings.

This PR gates the billing-gate-dispatch storyboard's capability_discovery phase behind a schema-valid requires_capability {path: account, present: true}, so agents that don't advertise the account capability skip the phase instead of receiving a failing billing grade. The three capability_gate_* and two per_agent_gate_* phases already fail-closed on their own predicates, so no downstream phase produces a failing grade or dangling context reference when account is absent.

Checks performed:

  • Changeset scope/type: two patch changesets present for an applicability fix on an experimental conformance-grading surface; storyboard version bumped 1.1.0 → 1.1.1. Correct patch classification, no breaking wire change.
  • No static/schemas/source/** changes → no schema↔docs coherence or oneOf-discriminator concern; test-vector JSON body-integrity fixes are conformance assets.
  • No released-artifact (dist/**) mutation.
  • No transport/auth/signing-profile semantics changed.

Gates: gated_paths false, high_risk false, no no-auto-approve team match, review_decision unknown (not applicable — no gate active). Prior decision was approve; this run remains clean. No decision-table trigger (rows 1–8) fires → row 9 approve.

@bokelley
bokelley enabled auto-merge (squash) September 18, 2026 11:45
@bokelley
bokelley requested a review from a team September 18, 2026 11:45
@bokelley bokelley added the ladon/force-review Force Ladon to review the next eligible PR event label Sep 18, 2026 — with conductor.build App
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 18, 2026

@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.

This PR gates billing_gate_dispatch's capability_discovery phase (optional + requires_capability account present), bumps the storyboard to 1.1.1, and adds a patch changeset — all in-scope, wire-shape coherent, and correct. The request-signing vector "reversions" visible in the diff are a stale-branch artifact against #7580 (the base tip) and will not land as reversions on merge.

Medium findings

  • tests/sdk-runner-capability-gates.test.cjs — the added test asserts the gate's YAML shape only and never exercises the runtime skip/cascade behavior #7573 fixes (missing-test / coverage gap).

Decision path: no critical/high findings (row 1 n/a). gated_paths is false (row 2 n/a). high_risk is false (rows 3/5 n/a). The single medium is a test-coverage gap, not in {data-loss, schema, infra} (row 4 n/a). Prior decision was approve, not escalate (row 6 n/a). No no-auto-approve team match (row 7 n/a). Only 1 medium finding, below the 3+ threshold (row 8 n/a). Falls through to row 9 → approve. Note: review_decision is REVIEW_REQUIRED, but with gated_paths: false and no prose hard gate triggered, that does not block auto-approve.

@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.

Re-approval: no reviewable delta since the prior approval; re-submitting after stale-review dismissal.

@bokelley
bokelley merged commit 516c9d2 into main Sep 18, 2026
51 checks passed
@bokelley
bokelley deleted the conductor/gate-billing-capability-discovery branch September 18, 2026 15:00
bokelley added a commit that referenced this pull request Oct 31, 2026
…-valid bodies (#8572)

Five routed vectors still carried the {"plan_id":"plan_001"} body #7567
reported, so grading them depended on whether a verifier validates the request
before the signature.

- profile-3.2/positive/001, profile-3.2/negative/001 and
  profile-3.2/negative/002 are hand-authored and skipped by the profile-3.2
  generator, so they never received #7580's bodies. Each now carries the
  create_media_buy body its generated siblings use, under its own
  idempotency_key, with Content-Digest and signature re-derived from the test
  key. negative/001 keeps a cryptographically valid signature spelled in
  Base64URL, and negative/002 a signature valid for the canonical host, so
  each still has exactly one fault.
- positive/002 and negative/018 are restored to the bodies and signatures
  #7580 gave them; #7581 merged after #7580 from an older base and put the
  stub versions back.
- The check that every routed vector carries an operation-valid body, which
  #7581 also removed, is restored and now covers profile-3.2/ as well.

Fixes #8571.

Co-authored-by: Brian O'Kelley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/force-review Force Ladon to review the next eligible PR event

Projects

None yet

Development

Successfully merging this pull request may close these issues.

billing_gate_dispatch: capability_discovery has no required_tools guard, failing signals agents on an account capability they cannot declare

1 participant