Skip to content

feat(accounts): opt-in separate account on a change; ACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT - #8582

Merged
bokelley merged 2 commits into
mainfrom
bokelley/separate-account-opt-in
Oct 29, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/separate-account-opt-in

Conversation

@bokelley

@bokelley bokelley commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #8580. A seller-initiated created on an account change is now opt-in.

  • request_account gains an optional allow_separate_account (boolean, default false) for change requests. A seller may resolve a change as created, opening a separate account with the change and leaving the named account unchanged, only when the request set it to true.
  • New error code 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 in enums/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_accounts settings updates have no opt-in, so their review request never resolves as created; 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.cjs covers 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, and test:owned-links pass locally.

🤖 Generated with Claude Code


Open workspace in Conductor

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

@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 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) matches static/schemas/source/**; static/schemas/source/enums/account-request-resolution.json (modified) matches static/schemas/source/**; static/schemas/source/enums/error-code.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
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

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

@bokelley
bokelley merged commit fc823c7 into main Oct 29, 2026
64 checks passed
@bokelley
bokelley deleted the bokelley/separate-account-opt-in branch October 29, 2026 12:36
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