Skip to content

feat(accounts): change outcomes, visible sync_accounts reviews, countries semantics (beta.1 feedback) - #8580

Merged
bokelley merged 2 commits into
mainfrom
bokelley/account-change-outcomes
Oct 29, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/account-change-outcomes

Conversation

@bokelley

@bokelley bokelley commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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.

  1. "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_account change request may now resolve as:

    • created: a new account_id carrying the change;
    • matched: an account the caller already holds. As with candidates, 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_id differs from requested.account_id.

  2. A refused sync_accounts update was invisible. The review row showed pending_approval with no request_id, and after a refusal list_accounts looked the same as during the review. A settings-update row under review now carries the request_id; this is a MUST where the seller supports account.requests. The request resolves as a request_account change does. The schema already allowed request_id on settings-update rows, because they anchor on account, so this changes descriptions only.

  3. 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 deprecated ACCOUNT_IDENTITY_CONFLICT doesn't apply. Where the seller supports requests, it may resolve to the existing account (matched) or to a new one (created).

  4. What countries mean. 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.

  5. 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 created on 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.cjs gains change-request created/matched records and a settings-update review row with request_id. test:schemas, test:json-schema, the MCP projection and capabilities bounds tests, test:docs-nav, and test:owned-links pass locally.

🤖 Generated with Claude Code


Open workspace in Conductor

…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]>
@bokelley bokelley added this to the 3.3.0 milestone Oct 29, 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 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) and review_decision is REVIEW_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) matches static/schemas/source/**; static/schemas/source/enums/account-request-resolution.json (modified) matches static/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.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Two read-through follow-ups for the pre-RC review:

  • core/account-request-record.json still describes account_id as “The account to use on every account-scoped task.” With the new created/matched change outcomes, that sounds like an automatic replacement of the originally named account, while the new task prose explicitly leaves it usable and makes the choice for new buys the buyer's. Describe this as the account resolved by this request, and preserve the explicit distinction from requested.account_id; avoid directing buyers to switch every existing account-scoped call to it.
  • The new Hema examples in docs/accounts/overview.mdx and tests/account-requests.test.cjs use a real company name. The repo playbook's examples rule requires fictional/canonical companies. Use an existing fictional entity consistently in the illustrative text, IDs and labels.

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]>

Copy link
Copy Markdown
Contributor Author

Addressed both follow-ups in the latest commit:

  • core/account-request-record.json account_id now reads as the account this request resolved to. It equals requested.account_id for updated, and differs for created / matched. The named account stays usable, the choice for new buys is the buyer's, and existing account-scoped calls aren't redirected.
  • The examples now use the fictional Nova Athletics instead of a real company, in the overview, the tests and the PR body.

@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 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) matches static/schemas/source/**; static/schemas/source/enums/account-request-resolution.json (modified) matches static/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.

Copy link
Copy Markdown
Contributor Author

Confirmed at 9aedea3b75b86ac16c3096ebcfd3450b15402f0e: both read-through notes are addressed. The account ID wording now preserves the original account and buyer choice, and the new examples use the fictional entity consistently. The buyer-opt-in design question and required schema-source human approval remain separate.

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