Skip to content

fix(compliance): isolate ungoverned account scenarios - #7600

Merged
bokelley merged 3 commits into
mainfrom
fix-7585-governance-account-isolation
Sep 19, 2026
Merged

bokelley merged 3 commits into
mainfrom
fix-7585-governance-account-isolation

Conversation

@bokelley

@bokelley bokelley commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Refs #7585

Removes implicit sync_governance mutations from the universal media-buy lifecycle and three non-governance seller specialisms. Each affected storyboard now uses a distinct account natural key; the broadcast-only flow controller-seeds its isolated account, while inline sync_accounts flows carry the same full key through every later request.

The runtime regression loads authored YAML through @adcp/sdk/testing, rejects merge-key-dependent refs, proves governance setup is absent, and verifies ordinary account refs are provisioned. Deliberate negative-account probes remain unseeded.

Expert review follow-up addressed:

  • removed the runtime-broken YAML merge key
  • rotated every affected account key away from shared governance scenarios
  • preserved the catalog sandbox discriminator
  • made the broadcast storyboard independently executable

Validation:

  • full pre-commit server suite: 648 files / 10,842 tests passed, 31 skipped
  • TypeScript typecheck passed
  • npm run build:compliance -- --check
  • governance, schema, test-kit, branch-set, state, and contradiction suites passed

Local storyboard-matrix note: the cloud training agent advertises through 3.2-rc.1 while this checkout is 3.2.0-rc.3, so the advisory matrix stops at capability resolution before executing storyboards. GitHub CI is authoritative.


Open workspace in Conductor

@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: Request changes

Request changes — 1 blocking finding.

Blocking findings

  • static/compliance/source/specialisms/sales-broadcast-tv/index.yaml — New fixtures.accounts entry omits the required fixture: wrapper, so controller seeding never provisions broadcast-tv.pinnacle-agency.example; downstream steps hit ACCOUNT_NOT_FOUND (reproducible runtime error on a load-bearing seeding path). [HIGH]

Medium findings

  • tests/governance-storyboard-routing.test.cjs — The added test's entry.fixture ?? entry fallback masks the malformed seed, so the broken fixture wouldn't be caught by the new test.

The sync_governance removal, account-key isolation, anchor inlining, natural-key consistency, preserved governance coverage via requires_scenarios, and changeset scope all check out. The HIGH must be fixed (add the fixture: wrapper) and the test fallback tightened so the malformed seed is caught rather than masked.

Blocking findings

  • static/compliance/source/specialisms/sales-broadcast-tv/index.yaml — fixtures.accounts entry omits required fixture: wrapper; seeding never provisions broadcast-tv.pinnacle-agency.example, downstream steps hit ACCOUNT_NOT_FOUND (HIGH)

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 19, 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 compliance isolation, no blocking findings.

What I checked:

  • Removes implicit sync_governance steps from the universal media-buy lifecycle and three non-governance specialisms, rotating each onto its own operator natural key (Refs #7585).
  • All four storyboards keep provisioned-vs-referenced natural keys consistent (sandbox discriminator preserved); no dangling *media_buy_lifecycle_account YAML anchor remains.
  • broadcast-tv's new fixtures.accounts seed resolves by natural key via accountMapsForPrincipal.
  • Changeset present and correct (patch, experimental governance surface); DR-0018 not contradicted.

Gate posture: gated_paths: false, high_risk: false, no no-auto-approve team match. review_decision is REVIEW_REQUIRED, but with no gated paths and no prose hard gate triggered (compliance assets, non-breaking isolation), that does not force escalation. No Critical/High/Medium findings recorded → rows 1–8 do not fire → row 9 approve.

Non-blocking note: the storyboard matrix did not execute locally (RC version skew); end-to-end execution rests on the training-agent-storyboards CI gate.

@bokelley
bokelley enabled auto-merge (squash) September 19, 2026 16:11

@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, prior blockers resolved.

This is a subsequent review. The prior Request-changes pass demanded two fixes, both of which are present in this delta:

  • sales-broadcast-tv/index.yaml now nests its fixtures.accounts entry under the required fixture: wrapper, matching the canonical account-identity-reconciliation.yaml shape, so controller seeding provisions broadcast-tv.pinnacle-agency.example.
  • governance-storyboard-routing.test.cjs tightened entry.fixture ?? entry to entry.fixture, which is safe since the other three non-governance storyboards carry no fixtures.accounts.

No critical/high/medium findings in this run. A changeset (.changeset/isolate-ungoverned-media-buy-accounts.md) is present for the compliance-asset changes.

Decision path: no gated paths (gated_paths false), high_risk false, no no-auto-approve team match, zero findings. Rows 1–8 do not fire → row 9 approve. review_decision is REVIEW_REQUIRED but gated_paths is false, so row 2 does not apply.

@bokelley
bokelley merged commit 7509a53 into main Sep 19, 2026
51 checks passed
@bokelley
bokelley deleted the fix-7585-governance-account-isolation branch September 19, 2026 16:37
bokelley added a commit that referenced this pull request Sep 23, 2026
)

* fix(compliance): gate 3.1 governance scenarios by capability

* fix(compliance): backport #7600 governance_setup removal to 3.1.x
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.

1 participant