Repository navigation
feat(accounts): opt-in separate account on a change; ACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT - #8582
Conversation
…EQUIRES_NEW_ACCOUNT request_account change requests gain allow_separate_account (default false). A seller resolves a change as created only when the buyer opted in; otherwise a seller that would only take the change on a new account rejects with the new correctable ACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT, so the buyer can tell it from a plain refusal. sync_accounts settings-update reviews never resolve as created. 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 schema paths require human/CODEOWNERS approval.
This is a clean, tightly-scoped additive PR: it makes the created resolution opt-in via a new optional allow_separate_account (default false) field and adds a correctable error code ACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT. The reviewer verified schema↔docs coherence, enum/enumDescriptions/enumMetadata consistency, a registered drift disposition, an appropriate minor changeset for the experimental 3.3 beta surface, no oneOf change, no immutable dist artifact touched, and added test coverage. No Critical/High/Medium findings.
However, the PR modifies files under static/schemas/source/**, which are declared under a hard, deterministic approval gate (gated_paths: true), and review_decision is REVIEW_REQUIRED — not APPROVED. Per decision rule row 2, the gate is not satisfied and the outcome must be escalate until a human/CODEOWNERS approval lands. No blocking findings exist otherwise.
Escalation reasons
- Gated schema sources modified without required approval:
static/schemas/source/account/request-account-request.json,static/schemas/source/account/sync-accounts-response.json,static/schemas/source/enums/account-request-resolution.json,static/schemas/source/enums/error-code.json— human/CODEOWNERS review required (review_decision: REVIEW_REQUIRED).
Why human review
- Gated paths touched without approval: static/schemas/source/account/request-account-request.json, static/schemas/source/account/sync-accounts-response.json, static/schemas/source/enums/account-request-resolution.json, static/schemas/source/enums/error-code.json — review_decision is REVIEW_REQUIRED, so human/CODEOWNERS approval is required before merge (decision rule row 2).
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/request-account-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/account-request-resolution.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.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.
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 schema paths touched without an APPROVED review.
This PR modifies files under static/schemas/source/** (request-account-request.json, sync-accounts-response.json, enums/account-request-resolution.json, enums/error-code.json), which fall under a hard, non-overridable approval gate. gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision rule row 2 forces escalation — human/CODEOWNERS approval is required before merge regardless of how clean the diff is.
The reviewer reported no Critical/High/Medium findings this run: the delta is two documentation link insertions (request_account.mdx L214, L3/error-handling.mdx L255) that resolve to existing anchors, and a changeset is present. Schema↔docs coherence and changeset scope both look fine. This is a clean diff — but the gate is mechanical and lifts only when a real approval is recorded.
Escalation reasons
- Gated schema files touched (
static/schemas/source/**: request-account-request.json, sync-accounts-response.json, enums/account-request-resolution.json, enums/error-code.json) whilereview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required (row 2).
Why human review
- Gated paths touched without approval: static/schemas/source/account/request-account-request.json, static/schemas/source/account/sync-accounts-response.json, static/schemas/source/enums/account-request-resolution.json, static/schemas/source/enums/error-code.json — review_decision is REVIEW_REQUIRED, not APPROVED, so human/CODEOWNERS approval is required before merge (decision rule row 2).
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/request-account-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/account-request-resolution.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.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.
Follow-up to #8580. A seller-initiated
createdon an account change is now opt-in.request_accountgains an optionalallow_separate_account(boolean, defaultfalse) for change requests. A seller may resolve a change ascreated, opening a separate account with the change and leaving the named account unchanged, only when the request set it totrue.ACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT(correctable). The seller would accept the change only as a separate account, and the caller didn't allow one. The named account is unchanged. Because this differs from a plain refusal, the buyer can open a new account itself, resend with the flag, or keep the account. Registered inenums/error-code.json(description and metadata), the error-code drift dispositions (held for 3.3), the L3 error-handling account table, and the regenerated compliance error-code snippet.sync_accountssettings updates have no opt-in, so their review request never resolves ascreated; a seller that would only take the change on a new account rejects it with the new code.matched, pointing to an account the caller already holds, needs no opt-in because it creates nothing.Tests:
tests/account-requests.test.cjscovers the field, the code, its metadata, a valid opted-in change request, and a rejected record carrying the code.test:schemas,test:json-schema,test:error-codes,test:error-code-drift,test:error-handling, the MCP projection, capabilities bounds and transport mapping tests,test:docs-nav, andtest:owned-linkspass locally.🤖 Generated with Claude Code
Open workspace in Conductor