Repository navigation
feat(creative): make feature evaluations retry-safe - #7612
Conversation
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 4 blocking finding(s).
The contract design is internally coherent (disjoint three-arm response oneOf via not.anyOf, arm-discriminated controller params, consistent docs↔schema and x-entity registry, fail-closed webhook clause). However, the reviewer surfaced a breaking wire change carried by a non-major changeset.
Blocking findings
- static/schemas/source/creative/get-creative-features-request.json — Promotes
idempotency_keytorequiredon a GA task published in stable 3.1.x (field absent in dist/schemas/3.1.23 and 3.2.0-rc.4). Optional→required flip on a published field is a breaking wire change. (high) - static/schemas/source/creative/get-creative-features-response.json — Promotes
evaluation_idtorequiredon the success response of a GA task; breaks buyer/seller agents in production. (high) - .changeset/retry-safe-creative-feature-evaluations.md — Breaking wire change carried by a minor changeset; breaking changes require
major. (high) - get_creative_features 3.1.x patch eligibility — new required fields / new normative requirement on a stable schema are not patch-eligible. (high)
Per decision table row 1, any critical/high finding yields request-changes. Note that gated_paths is true and review_decision is REVIEW_REQUIRED, and this is a breaking-class protocol change — even once the high findings are resolved, ratification is a human act and the PR must not auto-approve without APPROVED review.
Blocking findings
- static/schemas/source/creative/get-creative-features-request.json — idempotency_key promoted to required on a GA task published in stable 3.1.x (breaking optional→required flip)
- static/schemas/source/creative/get-creative-features-response.json — evaluation_id promoted to required on a GA success response (breaking wire change)
- .changeset/retry-safe-creative-feature-evaluations.md — breaking wire change carried by a minor changeset; must be major
- get_creative_features — new required fields / new normative requirement on stable 3.1.x are not patch-eligible
Superseded by a later Ladon review that rechecked and resolved its blocking findings.
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 3 blocking finding(s)
The reviewer confirms three still-applicable high blockers on this main→3.2 minor PR. get_creative_features is a stable GA task (published GA through 3.1.23, no x-status: experimental), yet this PR promotes previously-absent fields to required on published wire shapes:
Blocking findings
static/schemas/source/creative/get-creative-features-request.json—idempotency_keyflipped absent →requiredon a published GA request schema; an optional↔required flip on a published field is a breaking wire change requiringmajor, not theminorchangeset carried here.static/schemas/source/creative/get-creative-features-terminal-success.json—evaluation_idflipped absent →requiredon the published success response; same breaking-class issue..changeset/retry-safe-creative-feature-evaluations.md— changeset type isminorwhile the diff ships breaking wire changes; breaking changes takemajorper repo changeset-scope rules.
These are breaking-class protocol changes: the changeset must be major, and per the "Breaking-class changes are never auto-approved" hard gate, ratification is a human act.
Since the prior pass (request-changes), the delta is a clean refactor — success arm extracted to a $ref, a bounded compliance completion schema added, fixtures/tests updated — which preserved the required-field decisions and introduced no new blocking or Medium findings. The three original blockers remain unresolved. Decision table row 1 (any critical/high finding) fires → request-changes.
Blocking findings
- static/schemas/source/creative/get-creative-features-request.json — idempotency_key flipped absent→required on published GA request schema; breaking wire change carried by a minor changeset (needs major)
- static/schemas/source/creative/get-creative-features-terminal-success.json — evaluation_id flipped absent→required on published GA success response; breaking wire change carried by a minor changeset (needs major)
- .changeset/retry-safe-creative-feature-evaluations.md — changeset typed minor while shipping breaking optional→required flips; breaking changes require major
Superseded by a later Ladon review that rechecked and resolved its blocking findings.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-paths hard approval gate unsatisfied.
This PR modifies/adds multiple files under static/schemas/source/**, which the repo declares under a hard, path-based approval gate (gated_paths: true). The required review status is unknown/none (not APPROVED), so per decision-table row 2 the outcome must be escalate — human/CODEOWNERS review is required before merge.
No blocking findings on the code itself: this is a subsequent pass and all three prior high blockers are resolved. The change is now purely additive (optional idempotency_key and evaluation_id plus an async submitted arm rather than optional→required flips), carried by a correct minor changeset, with coherent schema/docs/test/compliance updates and no new Critical/High/Medium findings.
Escalation reasons
- Gated paths touched under
static/schemas/source/**(e.g.get-creative-features-request.json,async-response-data.json,task-type.json, plus new completion/submitted schemas) andreview_decisionis notAPPROVED. Human/CODEOWNERS approval required to lift the gate.
Once a human/CODEOWNERS approval lands (review_decision: APPROVED), this clean, additive diff can fall through to approve.
Why human review
- Gated paths: PR modifies/adds files under static/schemas/source/** (hard approval gate) and review_decision is not APPROVED — human/CODEOWNERS review required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/compliance/comply-test-controller-request.json (modified) matches
static/schemas/source/**; static/schemas/source/compliance/comply-test-controller-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/compliance/get-creative-features-completion.json (added) matchesstatic/schemas/source/**; static/schemas/source/compliance/task-completion-data.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/async-response-data.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/get-creative-features-async-response-submitted.json (added) matchesstatic/schemas/source/**; static/schemas/source/creative/get-creative-features-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/get-creative-features-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/get-creative-features-terminal-success.json (added) matchesstatic/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'unknown', 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.
Summary
Validation
Expert review completed and all findings were resolved. The local full server-unit pre-commit gate reached its 25-minute sandbox timeout without reporting a failure; GitHub CI is authoritative. The local storyboard matrix was skipped on push because the sandbox seller advertises support only through 3.2-rc.3 while the repository cache is 3.2.0-rc.4.
Closes #7604
Open workspace in Conductor