Repository navigation
fix(compliance): gate billing capability discovery - #7581
Conversation
There was a problem hiding this comment.
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.
The merge-base changed after approval.
be250c5 to
ee7805e
Compare
There was a problem hiding this comment.
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
patchchangesets 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.
There was a problem hiding this comment.
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.
4af090e to
d9d9030
Compare
…-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]>
Summary
billing_gate_dispatchcapability discovery optionalFixes #7573.
Validation
npm run build:compliance -- --checknode scripts/check-changeset-protocol-scope.cjs origin/mainnpx --no-install changeset status --since=origin/main