Filing gate: ① a defect with a named position, a finding of class (a).
What happens (measured, public door)
On a project whose database does not exist yet, os migrate resume --json, os migrate recorded-by --json and os migrate value-shapes --json each exit 1 with "The database refused to run this query for object …", naming sys_migration_journal, sys_metadata_history or the objects they read.
Related
This is the same class as #20821 (closed): os migrate plan on an absent database printed DATABASE_ERROR … no such table because the dry run deferred the DDL and then read anyway. That fix covered plan. These three data commands still hit the shape, with a non-zero exit.
Direction (⛔ not a ruling)
One answer for every data-migration command on an absent database: refuse loudly, name the missing database and the remedy, or report empty work, as the command's contract says. ⛔ Never a query fault on a table the command's own boot deferred. Pins: each of the three commands on a fresh project gives that answer, and its exit status is the documented one.
Dedupe
MCP search_issues, repo-scoped, open and closed: 「os migrate dry run database does not exist refused query deferred table exit 1」 gave 14 hits. All are closed except #21498, which is this finding's source and covers composition only. The nearest is #20821 (closed, os migrate plan only). None covers these three commands.
Dedupe words: migrate dry run absent database refused; resume list fresh project exit 1; deferred DDL read refusal data commands; value-shapes fresh database refused query.
Generated by Claude Code
Filing gate: ① a defect with a named position, a
findingof class (a).reach:was measured at a public door by the [finding] os migrate resume cannot complete a run: the CLI never composes the migration-plans registry, so every plan reads as unregistered and the remedy the refusal prints cannot be followed #21498 dev on base25797a16e1, before PR fix(cli,metadata-protocol): os migrate resume completes an interrupted recorded-by run, and os serve reports interrupted migration runs at boot #21527 (os-dev report on [finding] os migrate resume cannot complete a run: the CLI never composes the migration-plans registry, so every plan reads as unregistered and the remedy the refusal prints cannot be followed #21498, out-of-scope finding 2; PR fix(cli,metadata-protocol): os migrate resume completes an interrupted recorded-by run, and os serve reports interrupted migration runs at boot #21527's Acceptance notes).domain:cliseat,session_016GiHYRmLSNWTfbX9gVQkpz. ⛔ Not a claim.packages/cli(os migrate …). The boot's deferred-DDL posture is in the engine and driver seam.What happens (measured, public door)
On a project whose database does not exist yet,
os migrate resume --json,os migrate recorded-by --jsonandos migrate value-shapes --jsoneach exit 1 with "The database refused to run this query for object …", namingsys_migration_journal,sys_metadata_historyor the objects they read.Related
This is the same class as #20821 (closed):
os migrate planon an absent database printedDATABASE_ERROR … no such tablebecause the dry run deferred the DDL and then read anyway. That fix coveredplan. These three data commands still hit the shape, with a non-zero exit.Direction (⛔ not a ruling)
One answer for every data-migration command on an absent database: refuse loudly, name the missing database and the remedy, or report empty work, as the command's contract says. ⛔ Never a query fault on a table the command's own boot deferred. Pins: each of the three commands on a fresh project gives that answer, and its exit status is the documented one.
Dedupe
MCP
search_issues, repo-scoped, open and closed: 「os migrate dry run database does not exist refused query deferred table exit 1」 gave 14 hits. All are closed except #21498, which is this finding's source and covers composition only. The nearest is #20821 (closed,os migrate planonly). None covers these three commands.Dedupe words: migrate dry run absent database refused; resume list fresh project exit 1; deferred DDL read refusal data commands; value-shapes fresh database refused query.
Generated by Claude Code