Skip to content

ci(storyboards): grade the simulated inventory tenants - #9146

Merged
bokelley merged 7 commits into
mainfrom
ci/storyboards-inventory-tenants
Nov 21, 2026
Merged

bokelley merged 7 commits into
mainfrom
ci/storyboards-inventory-tenants

Conversation

@bokelley

@bokelley bokelley commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds /inventory-adserver and /inventory-content (#9025 part B) to the training-agent storyboard matrix, on the current compliance surface only.

  • Current surface only. The new rows go in through include, not the tenant list, so the 3.0-compat cross-join does not pick them up. The tenants postdate 3.0.
  • Isolated runs. Each storyboard runs in its own bounded child process (run-storyboards-isolated-shards.sh, 8 shards, 4 at a time), as creative-builder already does. A new isolated: true matrix key routes the rows.
    • A local monolithic run stalled for 25 minutes right after signed_requests on both tenants.
    • stale_response_advisory, the next storyboard, passes alone in about a minute. So the stall comes from state left over in a long-lived process, not from one storyboard.
  • Timeout. A new timeout_minutes matrix key gives these rows 60 minutes; every other row keeps 30. Each tenant has about 180 applicable storyboards, and runs take 35-45 minutes. One adserver run hit a 45-minute limit at 45m17s.
  • Floors. The floors are this PR's first CI result (below).
  • Changeset. The workflow is protocol-scoped, so this adds a patch changeset.

Storyboard selection

Selection comes from each tenant's live capabilities, the same as every other row.

Tenant Applicable Out of scope Quarantined Corpus
/inventory-adserver 184 65 1 (webhook_emission) 250
/inventory-content 183 66 1 (webhook_emission) 250

The tenants' comply_test_controller serves only reset_state and sandbox_clock, with no seed_* scenarios.

  • Media-buy storyboards that seed fixtures skip as fixture_seed_unsupported. They grade not applicable, not failed.
  • So this matrix row mostly proves the tenants don't fail what they claim. It is not deep step coverage.
  • Adding seed scenarios would change tenant behaviour, so it is not in this PR.

CI result (run 44857442220, first run of the new rows)

Tenant Clean Passed steps Failed steps Skipped steps Duration
/inventory-adserver 178 / 184 28 4 509 35 min
/inventory-content 177 / 183 28 4 501 38 min

The floors are now set to these numbers.

Failing on both tenants: a real tenant gap, left visible and not quarantined.

Storyboard Result Cause
media_buy_seller/unprovisioned_account_reference 1P / 3F get_products with an account reference the seller never provisioned returns public products, not ACCOUNT_NOT_FOUND. The tenants' account resolver accepts any reference. The fix changes tenant behaviour, so it's in a separate PR.

signed_requests: now not applicable on the inventory tenants. The runner grades it on /<tenant>/mcp-strict-required, and only the original tenants mount the strict signing routes. The inventory tenants advertise no request_signing and serve no strict route, so discovery failed there (0P / 1F). Selection now reports it not applicable on those two tenants only; /sales still runs it.

Out of scope, now not applicable. These storyboards declare requires: [multi_agent] with default_agent: sales:

  • media_buy_seller/governance_approved
  • governance_conditions
  • governance_denied
  • governance_denied_recovery

The runner refuses to grade such a storyboard from any tenant but its default agent, so they errored on these rows. Selection now reports a multi-agent storyboard not applicable on every tenant except its default_agent (gradesAnotherTenant, with a unit test). With signed_requests too, local selection takes applicable from 184 to 179 on adserver and 183 to 178 on content. Clean counts and floors are unchanged, because those rows were never clean.

Release workflow. scripts/check-release-state.cjs and its fixture now expect the two new jobs. A release head is then verified only when they pass too.

Test plan

  • --list-applicable-json selection for both tenants (table above)
  • stale_response_advisory alone on /inventory-adserver: clean
  • CI: the floors are set from the first run (35 and 38 minutes). The limit was raised to 60 after one run took 45m17s
  • Existing rows unchanged

🤖 Generated with Claude Code

Add current-surface matrix rows for /inventory-adserver and
/inventory-content. They run each storyboard in a bounded child, like
creative-builder, with a 45-minute job limit. Floors start at zero and are
ratcheted from this PR's first CI run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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: Escalate to human review

Escalate — gated path requires human/CODEOWNERS review.

This PR modifies .github/workflows/training-agent-storyboards.yml, which matches the hard approval gate glob .github/workflows/** (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision table row 2 fires: the gate is not satisfied and the PR cannot be approved without an explicit human/CODEOWNERS approval.

The diff itself is clean — the reviewer found no blocking or medium findings. It adds two isolated matrix rows, makes timeout-minutes matrix-configurable, generalizes the isolation gate, per-tenants the orchestrator-failure error, and ships a correctly-scoped patch changeset. The isolation gate is safe for unset rows, the timeout fallback works, and both inventory tenants exist. The only noted soft spot is a Low, by-design 0/0 regression floor on the new rows.

No blocking or medium findings exist, so this escalation is purely to satisfy the deterministic gated-path approval requirement.

Escalation reasons

  • Touches gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); requires human/CODEOWNERS approval — review_decision is REVIEW_REQUIRED, not APPROVED.

Why human review

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required before merge.
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Nov 21, 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: Escalate to human review

Escalate — gated path requires human/CODEOWNERS approval.

This PR modifies .github/workflows/training-agent-storyboards.yml, which matches the hard approval gate .github/workflows/** (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and auto-approval is blocked (decision table row 2).

The diff itself is clean: the reviewer found no critical/high/medium findings. The one-line change in scripts/check-release-state.cjs correctly adds inventory-adserver and inventory-content to the current-surface storyboardJobs required-check list, matching the workflow's job-name template and the two new current-only matrix rows, and correctly excludes them from the 3.0-compat group. check-release-state.cjs stays in sync with the matrix and the immutability test.

Escalation reasons

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — a human/CODEOWNERS approval must be recorded before merge.

Why human review

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required before merge.
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

bokelley and others added 3 commits November 21, 2026 02:41
…gent storyboards are out of scope

Set the inventory rows' floors from their first CI run: 178 clean and 28
passed steps on /inventory-adserver, 177 and 28 on /inventory-content.

A requires: [multi_agent] storyboard grades only its default_agent tenant,
and the runner refuses to run it under any other. Selection now reports it
not applicable there instead of letting it error: the four
media_buy_seller/governance_* storyboards (default_agent sales) on the
inventory tenants.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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: Escalate to human review

Escalate — gated path requires human/CODEOWNERS approval.

This PR modifies .github/workflows/training-agent-storyboards.yml, which matches the hard, path-based approval gate .github/workflows/** (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied and the PR cannot be auto-approved regardless of how clean the diff is (decision table row 2).

No blocking or medium findings were reported — the reviewer's pass was clean (operational/CI delta: raising storyboard floors, adding a gradesAnotherTenant helper for non-applicable multi-agent storyboards under non-default tenants, and tracking two new jobs across release-state/sharding/freshness fixtures, all unit-tested). The prior-run escalation also stands on the same gated-path basis.

Escalation reasons

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required before merge.

Why human review

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

…ants

The runner grades signed_requests on /<tenant>/mcp-strict-required. Only
the original tenants mount the strict signing routes; the inventory tenants
advertise no request_signing and serve no strict route, so discovery failed
there. Report it not applicable on those tenants. Clean floors are
unchanged: the row was never clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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: Escalate to human review

Escalate — gated path requires human/CODEOWNERS approval.

This PR modifies .github/workflows/training-agent-storyboards.yml, which matches the hard approval gate glob .github/workflows/** (gated_paths: true). The current GitHub review decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied (decision table row 2). Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

No blocking findings. The reviewer did a clean pass on the delta: a comment rewording in the workflow file and the signed_requests out-of-scope logic in server/tests/manual/run-storyboards.ts:758-759, verified to correctly fold into notApplicable for inventory tenants only. No protocol/schema/wire surface touched. No critical/high/medium findings.

Escalation reasons

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.

This is unchanged from the prior escalate: the diff remains clean, but the path-based approval gate persists until a human approval is recorded.

Why human review

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

The adserver row ran 45m17s on ac05835 and was cancelled at its 45-minute
limit; earlier runs took 35-42 minutes. A timed-out row also blocks
release-head reuse, so leave headroom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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: Escalate to human review

Escalate — gated-path approval required.

This PR modifies .github/workflows/training-agent-storyboards.yml, which matches the .github/workflows/** gated path (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the hard approval gate (decision table row 2) is not satisfied. Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

No blocking findings. The reviewer found no critical/high/medium issues: the sole substantive delta is raising timeout_minutes 45→60 on two isolated inventory rows (observed runs 35–45 min), which widens only those two matrix rows while leaving others on the 30-min default — sound.

This matches the prior escalate decision, which persists solely on the unsatisfied gated path (not row 6, as no fresh findings exist).

Escalation reasons

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.

Why human review

  • Modifies gated path .github/workflows/training-agent-storyboards.yml (matches .github/workflows/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
  • This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches .github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

@bokelley
bokelley merged commit 034bee5 into main Nov 21, 2026
58 checks passed
@bokelley
bokelley deleted the ci/storyboards-inventory-tenants branch November 21, 2026 14:33
@bokelley

Copy link
Copy Markdown
Contributor Author

Admin merge authorized by Brian O'Kelley on 21 November 2026, for exact head 48ce538. The only remaining blocker was the required approval: the PR was opened under his account, so he could not approve it himself. Before merging: all required checks passed on that head, there were zero review threads, and GitHub reported the PR mergeable. Passing checks: , Analyze, Analyze (go), Analyze (javascript-typescript), Analyze (python), Build and static checks, Canonical tests (1/4), Canonical tests (2/4), Canonical tests (3/4), Canonical tests (4/4), Check PR title, Check for changeset, CodeQL, Dependency review, GitGuardian Security Checks, No duplicate migration numbers, Sales storyboard orchestrator (0/8), Sales storyboard orchestrator (1/8), Sales storyboard orchestrator (2/8), Sales storyboard orchestrator (3/8), Sales storyboard orchestrator (4/8), Sales storyboard orchestrator (5/8), Sales storyboard orchestrator (6/8), Sales storyboard orchestrator (7/8), Scan, Server integration tests, Server integration tests (1/4), Server integration tests (2/4), Server integration tests (3/4), Server integration tests (4/4), Server unit tests (1/4), Server unit tests (2/4), Server unit tests (3/4), Server unit tests (4/4), Storyboards (3.0-compat /brand), Storyboards (3.0-compat /creative), Storyboards (3.0-compat /creative-builder), Storyboards (3.0-compat /governance), Storyboards (3.0-compat /sales), Storyboards (3.0-compat /si), Storyboards (3.0-compat /signals), Storyboards (current /brand), Storyboards (current /constrained-seller), Storyboards (current /creative), Storyboards (current /creative-builder), Storyboards (current /finalization-failure), Storyboards (current /governance), Storyboards (current /inventory-adserver), Storyboards (current /inventory-content), Storyboards (current /sales), Storyboards (current /si), Storyboards (current /signals), Storyboards (current /typed-negotiation), TypeScript Build, Typecheck + Lint + Test + Build, check, code_review

KonstantinMirin added a commit to KonstantinMirin/adcp that referenced this pull request Nov 21, 2026
…otocol#9146)

Brings in adcontextprotocol#9146: CI storyboard rows for /inventory-adserver and
/inventory-content, and selection that reports a multi-agent storyboard
not applicable on every tenant but its default_agent, and signed_requests
not applicable on the inventory tenants.

Resolution ledger:
- mechanical: none.
- semantic: none. git merged server/tests/manual/run-storyboards.ts,
  tests/run-storyboards-sharding.test.cjs and
  tests/release-publication-freshness.test.cjs with no conflicts. The
  selection change reads TENANT_PATH, which the storyboard queue sets per
  tenant process (scripts/run-storyboards-queue.mjs), so it applies the
  same way under the local queue as in CI.
- The local pre-push matrix keeps its tenants: adcontextprotocol#9146 adds the inventory
  rows to CI only, and no floor of an existing row changes.

Checks on the merge result:
- npm run typecheck: pass.
- node --test tests/run-storyboards-sharding.test.cjs
  tests/release-publication-freshness.test.cjs: 65 pass, 0 fail.
- node scripts/precommit-server-unit.cjs --full: 867 files, 14,708
  passed, 31 skipped. Before the merge: 14,707; adcontextprotocol#9146 adds one test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant