Repository navigation
feat(training): adopt SDK 14 media-buy lifecycle - #6688
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS review.
This PR modifies .github/workflows/training-agent-storyboards.yml, which falls under the hard, path-based approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires before any finding-based outcome: the gate is not satisfied and the PR cannot be approved or plain-commented.
Escalation reasons
.github/workflows/training-agent-storyboards.yml(modified) matches the gated.github/workflows/**glob; human/CODEOWNERS approval is required andreview_decisionisREVIEW_REQUIRED.
Medium findings (informational — not blocking on their own)
- server/src/training-agent/task-handlers.ts —
control_media_buyhas no session mutex; concurrent same-revision controls can silently lose an update. A real concurrency window on a durable mutation path; worth a human reviewer's attention alongside the gated-file review.
No critical/high findings were reported. The SDK 14 / AdCP 3.2-beta.2 adoption, the handleUpdateMediaBuy atomicity rewrite, terms_digest binding parity, and multi-tenant scoping of the task store were all reviewed as sound. This escalation is driven by the workflow-file approval gate, not by a code defect.
Medium findings
- server/src/training-agent/task-handlers.ts — control_media_buy has no session mutex; concurrent same-revision controls can silently lose an update
Why human review
- .github/workflows/training-agent-storyboards.yml (modified) is under the hard .github/workflows/** approval gate and review_decision is REVIEW_REQUIRED — 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.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on .github/workflows/** not yet satisfied.
This PR modifies .github/workflows/training-agent-storyboards.yml, which matches the deterministic gated path .github/workflows/** (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the outcome must be escalate until a human/CODEOWNERS approval is recorded — regardless of how clean the diff is.
The delta itself is a focused, well-executed concurrency fix: a per-session media-buy mutation mutex now wraps handleUpdateMediaBuy, handleControlMediaBuy, and the existing-proposal acceptance path (locked wrapper + *Unlocked core to avoid re-entrancy), with bounded 2s acquisition, a 120s in-flight TTL fail-safe, and evict-under-lock/flush-before-release ordering. This directly resolves the prior Medium finding (control_media_buy had no session mutex), which is now covered by three new race tests. No new Critical/High/Medium findings in this run.
Prior decision was also escalate for the same gated-path reason; it persists here because the gate condition remains unsatisfied. Once review_decision becomes APPROVED, this PR falls through to a normal clean-diff approval.
Escalation reason: .github/workflows/training-agent-storyboards.yml (modified) is under the hard .github/workflows/** approval gate and review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge.
Why human review
- .github/workflows/training-agent-storyboards.yml (modified) is under the hard .github/workflows/** approval gate and review_decision is REVIEW_REQUIRED — 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.
|
@ohalushchak-exadel This is ready for the required human review of the workflow-file change: CI is 45/45 green, both expert reviews have no blockers, and the latest Ladon run confirms the prior concurrency finding is resolved with no new findings. Squash auto-merge is enabled once approved. Thank you! |
…ta.2 (#6690) The public router no longer supports the 3.2-beta.0 ordinal — it downshifts to 3.1, causing the runnable constrained-seller example's capability assertion to fail. Pin all three media-buy guide files to 3.2-beta.2, which the public seller confirmed healthy via #6688. Refs #6557 Claude-Session: https://claude.ai/code/session_01KreMofDsUsj2aNwK3tuH7x Co-authored-by: Claude <[email protected]>
Closes #6646
Summary
@adcp/sdk14 and the AdCP 3.2 beta envelopeValidation
Release note
Includes a patch Changeset for the public training-agent lifecycle update.