Repository navigation
fix(compliance): isolate ungoverned account scenarios - #7600
Conversation
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 1 blocking finding.
Blocking findings
static/compliance/source/specialisms/sales-broadcast-tv/index.yaml— Newfixtures.accountsentry omits the requiredfixture:wrapper, so controller seeding never provisionsbroadcast-tv.pinnacle-agency.example; downstream steps hitACCOUNT_NOT_FOUND(reproducible runtime error on a load-bearing seeding path). [HIGH]
Medium findings
tests/governance-storyboard-routing.test.cjs— The added test'sentry.fixture ?? entryfallback 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)
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean compliance isolation, no blocking findings.
What I checked:
- Removes implicit
sync_governancesteps 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_accountYAML anchor remains. - broadcast-tv's new
fixtures.accountsseed resolves by natural key viaaccountMapsForPrincipal. - 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.
There was a problem hiding this comment.
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.yamlnow nests itsfixtures.accountsentry under the requiredfixture:wrapper, matching the canonicalaccount-identity-reconciliation.yamlshape, so controller seeding provisionsbroadcast-tv.pinnacle-agency.example.governance-storyboard-routing.test.cjstightenedentry.fixture ?? entrytoentry.fixture, which is safe since the other three non-governance storyboards carry nofixtures.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.
) * fix(compliance): gate 3.1 governance scenarios by capability * fix(compliance): backport #7600 governance_setup removal to 3.1.x
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:
Validation:
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