Repository navigation
feat(accounts): change outcomes, visible sync_accounts reviews, countries semantics (beta.1 feedback) - #8580
Conversation
…ries semantics (beta.1 feedback) - request_account change requests may resolve as created (a separate account with the change) or matched (an account the caller already holds); the named account is untouched and nothing moves between them. - sync_accounts settings-update rows under review carry the request_id (MUST where account.requests is supported), so a refusal is readable. - Accounts that end up alike after a change are not a conflict: no merge, natural-key references return ACCOUNT_AMBIGUOUS. - countries declare served markets: products, prices, terms, reviews, and refusal of new out-of-market buys; never targeting, and changes never alter accepted media buys. - Migration guide: 3.3 buyers with 3.0-3.2 sellers keep the existing account reference and open a new account only by choice. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated paths touched without required review approval.
This PR modifies published protocol surface under static/schemas/source/** (sync-accounts-response.json, account-request-record.json, account-request-resolution.json), which sits under a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied (decision table row 2).
The reviewer pass is clean: docs↔schema coherence verified in both directions, enum values unchanged, a correct minor changeset present, no new undiscriminated oneOf, no dist/** touched, and cross-reference anchors resolve. The change is an experimental pre-GA extension of the account.requests surface (request_account can resolve as created/matched; a sync_accounts settings-update row under review carries request_id) — editorial/normative non-breaking, not breaking-class. No critical/high/medium findings.
Despite the clean diff, the schema-source approval gate requires a human/CODEOWNERS approval before merge. Once review_decision becomes APPROVED, this PR would fall through to an approve on the current findings.
Escalation reasons
- Modifies gated schema source files (
static/schemas/source/account/sync-accounts-response.json,static/schemas/source/core/account-request-record.json,static/schemas/source/enums/account-request-resolution.json) andreview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required.
Why human review
- Modifies gated schema source files under static/schemas/source/** (sync-accounts-response.json, account-request-record.json, account-request-resolution.json) while review_decision is REVIEW_REQUIRED — human/CODEOWNERS approval required before merge
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-response.json (modified) matches
static/schemas/source/**; static/schemas/source/core/account-request-record.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/account-request-resolution.json (modified) matchesstatic/schemas/source/**) 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.
|
Two read-through follow-ups for the pre-RC review:
The author's buyer-opt-in question remains a separate design decision. These notes do not replace the required schema-source human/CODEOWNERS approval. |
…ecting calls; fictional example names Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Addressed both follow-ups in the latest commit:
|
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema source files touched and review not yet approved.
This PR modifies three files under static/schemas/source/** (sync-accounts-response.json, account-request-record.json, account-request-resolution.json), which sit under a hard, non-overridable approval gate. gated_paths: true and review_decision: REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: the gate is not satisfied and Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded.
Escalation reasons
- Touches gated path
static/schemas/source/account/sync-accounts-response.json— human/CODEOWNERS review required. - Touches gated path
static/schemas/source/core/account-request-record.json— human/CODEOWNERS review required. - Touches gated path
static/schemas/source/enums/account-request-resolution.json— human/CODEOWNERS review required.
No blocking findings on the merits: the reviewer's delta pass was clean. The change renames a real-brand example (Hema) to the fictional Nova family (a convention correction) and refines the account_id description — description-only, no wire-shape change — staying coherent with the enum schema and docs; the minor changeset is correct. Prior decision was also escalate for the same gate; it holds until a human approval lands.
Why human review
- Touches gated path static/schemas/source/account/sync-accounts-response.json (modified) — review_decision is REVIEW_REQUIRED, not APPROVED; human/CODEOWNERS approval required before merge
- Touches gated path static/schemas/source/core/account-request-record.json (modified) — review_decision is REVIEW_REQUIRED, not APPROVED
- Touches gated path static/schemas/source/enums/account-request-resolution.json (modified) — review_decision is REVIEW_REQUIRED, not APPROVED
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-response.json (modified) matches
static/schemas/source/**; static/schemas/source/core/account-request-record.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/account-request-resolution.json (modified) matchesstatic/schemas/source/**) 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.
|
Confirmed at |
Implementer feedback on 3.3.0-beta.1. The core decision held up: an account is its
account_id, so a country change is an edit. Writing the flow against the merged text turned up five gaps; the implementer ranked 1 and 2 most important."Yes, but as a separate account." A seller could apply, review, or refuse a country change, and the buyer couldn't tell "no" from "open a new one". A
request_accountchange request may now resolve as:created: a newaccount_idcarrying the change;matched: an account the caller already holds. As withcandidates, never one outside the caller's grants.In both cases the named account is untouched. Nothing moves between the accounts, and the buyer chooses which one carries new buys. A buyer detects these outcomes because the resolved
account_iddiffers fromrequested.account_id.A refused
sync_accountsupdate was invisible. The review row showedpending_approvalwith norequest_id, and after a refusallist_accountslooked the same as during the review. A settings-update row under review now carries therequest_id; this is a MUST where the seller supportsaccount.requests. The request resolves as arequest_accountchange does. The schema already allowedrequest_idon settings-update rows, because they anchor onaccount, so this changes descriptions only.Collisions were undefined. Example: a Nova Athletics account serving every European market narrows to NL while a separate Nova Athletics NL account exists. That is not a conflict. Both accounts keep their IDs, buys, and history, with no merge. Natural-key references that match both return
ACCOUNT_AMBIGUOUS, and the deprecatedACCOUNT_IDENTITY_CONFLICTdoesn't apply. Where the seller supports requests, it may resolve to the existing account (matched) or to a new one (created).What
countriesmean. They declare the markets the account serves. A seller MAY use them for products, prices, terms, reviews, and refusing new out-of-market buys. They never target delivery. Narrowing never changes, pauses, or cancels an accepted media buy or its terms, and widening never extends one.Migration guide. It now says what a 3.3 buyer does with a 3.0 to 3.2 seller that can't take the change: keep the existing account reference, and open a new account only by choice.
Open question for review: should
createdon a change request require buyer opt-in, for example a request flag? As written, the seller may open the separate account itself. That's low-risk, since opening an account commits no spend and the original stays usable, but an opt-in would let a buyer insist on "change it or refuse it".Tests:
tests/account-requests.test.cjsgains change-requestcreated/matchedrecords and a settings-update review row withrequest_id.test:schemas,test:json-schema, the MCP projection and capabilities bounds tests,test:docs-nav, andtest:owned-linkspass locally.🤖 Generated with Claude Code
Open workspace in Conductor