commit 5d8fb2d ↗ · cockroachdb/cockroach · · committed May 27, 2026 · +410−39 · base 5089daed468d
Agent prompt
what a new run launched now would send
ALTER DOMAIN ... SET SCHEMA currently fails with FeatureNotSupported. Implement it so a domain can be moved to another schema.
Match the semantics already used for ALTER TYPE ... SET SCHEMA on user-defined types that have an associated implicit array type:
- Moving the domain must also move its implicit array type into the target schema.
- If the domain is already in the target schema, the statement is a no-op.
- Reject temporary/virtual target schemas, unknown schemas, and name conflicts in the target schema (for both the domain and its array type).
- A domain still referenced by a table column (by descriptor ID) must remain usable after the move.
- Emit the usual set_schema DDL event, with the descriptor type reflecting that a domain was moved.
Add/update declarative schema changer and SQL logic coverage so SET SCHEMA for domains is exercised end-to-end (success paths, errors, and array-type relocation), not left as an unsupported stub.
Work only inside this repository checkout. Make the code change the task
describes, keeping the diff focused — no drive-by refactors.
When you are done, leave your changes committed or in the working tree;
they are collected automatically.
Stay on this snapshot checkout (`task/ycb_cockroach_c5d8fb2dede04`). Never checkout, pull, or rebase onto `main`. That branch is a README-only orphan.
Stay on this HEAD. Do not fetch another default branch. Push only on the Cursor-created `crazy-cursor/…` side branch from this HEAD.
Some past runs of this task were launched with a different prompt (the prompt template changed since, or those runs predate this benchmark's stored prompt). Each run persists the exact prompt it sent at launch — that per-launch record is the audit trail; this page shows only the current one.
Reference diff
The task commit's diff against its first parent — the judge's comparison target.