Skip to content

fix(compliance): require approval after governance conditions - #6277

Merged
bokelley merged 1 commit into
mainfrom
codex/governance-conditions-binary
Aug 8, 2026
Merged

bokelley merged 1 commit into
mainfrom
codex/governance-conditions-binary

Conversation

@bokelley

@bokelley bokelley commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Closes #6273

Summary

  • rewrite governance_conditions as conditions → adjusted intent → approval → governed execution
  • require consultation_context without authorization on the conditions verdict, then capture governance_context only from approval
  • replace the non-normative create-response echo assertion with get_media_buys readback and report_plan_outcome
  • align the governance-aware-seller description and add a regression test that pins ordering, payload identity, capability gating, and the binary execution rule

The seller's execution check remains internal to create_media_buy: a successful mutation is the positive-path evidence that the registered governance agent returned approved. denied blocks mutation, while conditions is explicitly invalid for execution. Negative execution branches remain the follow-on coverage in #5716/#3086.

Validation

  • npm run test:governance-conditions-storyboard
  • targeted lintFile validation for every sample request in governance_conditions.yaml
  • npm run test:storyboard-response-schema
  • npm run test:storyboard-context-output-paths
  • npm run test:storyboard-validations-paths
  • npm run test:storyboard-scoping
  • npm run test:storyboard-branch-sets
  • npm run test:storyboard-provides-state-for
  • npm run test:storyboard-contradictions
  • npm run test:storyboard-context-entity
  • npm run test:storyboard-auth-shape
  • npm run test:storyboard-test-kits
  • npm run test:compliance-source-authority
  • npm run test:patch-3-0-compat-bundle
  • npm run build:compliance
  • npx changeset status --since=origin/main

@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 compliance-scenario rewrite with no blocking or medium findings.

This PR rewrites the governance_conditions compliance scenario around the cross-role authorization contract (non-authorizing consultation handle, adjusted-intent approval before seller commit, get_media_buys readback + report_plan_outcome replacing response-echo assertions). The reviewer verified every asserted wire shape against the schemas — check-governance, create-media-buy-request (governance_context, total_budget object), get-media-buys-response, and report-plan-outcome — and all match. Changeset is present and correctly scoped (patch, no wire-shape change); all doc_refs resolve; regression test pins ordering, payload identity, capability gating, and the binary-execution rule.

Decision-table walk:

  • Row 1 (critical/high): no findings — skip.
  • Row 2 (gated_paths + not APPROVED): gated_paths is false — skip. (review_decision is REVIEW_REQUIRED but no gate is engaged.)
  • Row 3/5 (high_risk): high_risk is false — skip.
  • Row 4/6 (medium data-loss/schema/infra, sticky): no findings, no prior decision — skip.
  • Row 7 (no-auto-approve team): no team match — skip.
  • Row 8 (≥3 medium): zero medium findings — skip.
  • Row 9: approve.

No Breaking-class change is present (patch changeset, no wire-shape change verified by reviewer), so the breaking-change hard gate does not apply.

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.

Rewrite governance conditions storyboard for binary execution checks

1 participant