Skip to content

feat(creative): make feature evaluations retry-safe - #7612

Merged
bokelley merged 5 commits into
mainfrom
bucharest-v15
Sep 20, 2026
Merged

bokelley merged 5 commits into
mainfrom
bucharest-v15

Conversation

@bokelley

@bokelley bokelley commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • require idempotency keys for every get_creative_features evaluation and classify the task as consequential work
  • require stable provider evaluation IDs on submitted acknowledgements and terminal successes (option Y)
  • add deterministic sync/async replay, conflict, concurrency, and terminal reconciliation conformance coverage
  • document the 24-hour replay floor and fail-closed client behavior

Validation

  • npm run test:schemas
  • npm run test:composed
  • npm run test:json-schema
  • npm run test:get-creative-features-contract
  • npm run build:compliance -- --check
  • storyboard schema/path lints
  • npm run typecheck

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

@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 — 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_key to required on 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_id to required on 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

@aao-secretariat
aao-secretariat Bot dismissed their stale review September 20, 2026 12:32

Superseded by a later Ladon review that rechecked and resolved its blocking findings.

@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 — 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_key flipped absent → required on a published GA request schema; an optional↔required flip on a published field is a breaking wire change requiring major, not the minor changeset carried here.
  • static/schemas/source/creative/get-creative-features-terminal-success.json — evaluation_id flipped absent → required on the published success response; same breaking-class issue.
  • .changeset/retry-safe-creative-feature-evaluations.md — changeset type is minor while the diff ships breaking wire changes; breaking changes take major per 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

@aao-secretariat
aao-secretariat Bot dismissed their stale review September 20, 2026 13:58

Superseded by a later Ladon review that rechecked and resolved its blocking findings.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Sep 20, 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-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) and review_decision is not APPROVED. 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) matches static/schemas/source/**; static/schemas/source/compliance/get-creative-features-completion.json (added) matches static/schemas/source/**; static/schemas/source/compliance/task-completion-data.json (modified) matches static/schemas/source/**; static/schemas/source/core/async-response-data.json (modified) matches static/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matches static/schemas/source/**; static/schemas/source/creative/get-creative-features-async-response-submitted.json (added) matches static/schemas/source/**; static/schemas/source/creative/get-creative-features-request.json (modified) matches static/schemas/source/**; static/schemas/source/creative/get-creative-features-response.json (modified) matches static/schemas/source/**; static/schemas/source/creative/get-creative-features-terminal-success.json (added) matches static/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matches static/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.

@bokelley
bokelley requested a review from bmilekic September 20, 2026 14:12
@bokelley
bokelley enabled auto-merge (squash) September 20, 2026 14:13
@bokelley
bokelley disabled auto-merge September 20, 2026 15:44
@bokelley
bokelley merged commit 2639ace into main Sep 20, 2026
65 checks passed
@bokelley
bokelley deleted the bucharest-v15 branch September 20, 2026 15:44
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.

3.2: make get_creative_features safely retryable and reconcilable

1 participant