Skip to content

fix(shadow): qualify snapshot schemas - #392

Merged
chubes4 merged 2 commits into
mainfrom
repair/shadow-schema-prefix-20260909
Sep 9, 2026
Merged

chubes4 merged 2 commits into
mainfrom
repair/shadow-schema-prefix-20260909

Conversation

@chubes4

@chubes4 chubes4 commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fix schema qualification during authoritative snapshot capture across WordPress blog switches. Compile global tables using the authoritative base prefix, and permit explicitly validated exact table identities for plugin tables without relaxing unrelated DDL qualification checks.

Preserve input bounds and explicit absent-schema failures. This repairs snapshot input capture, not generic SQL execution.

Verified Evidence

Parent independently ran exact candidate 7eae61a264156376b6de7684cb273dbb86eb40a8 on Linux against the same real DME multisite lifecycle fixture used in #386: WordPress7.1, PHP8.3, PHPUnit9.6.35; 4 tests and17 assertions passed.

  • Before:382 compatible,38 unsupported,0 mismatched,721 ignored.
  • After:398 compatible,22 unsupported,0 mismatched,721 ignored;0 verifier failures and0 dropped observations.
  • All16 schema-prefix capture exceptions now compare successfully. The remaining unsupported observations are21 native-query gaps and1 unavailable blog-2 options schema.
  • Formal report SHA-256:fade581239034d9e74e88fc10b745657f12730b35eda2de106b1edd969d4c91f.
  • Parent independently passed the snapshot, core schema catalog and shadow verifier checks on the exact candidate.

Reproduction

Use the fixture setup and environment variables documented in #386, then run php tests/run-mysql-shadow-corpus.php from this candidate. The runner emits the source revision, PHPUnit result, report and formal artifact reference. DME is pinned to 88d55a907b12638e88baee5b492501dbed5c2665 and Data Machine to 31befb659aaa5268e79a0c28a16321c3ee5e1108; use a wp-phpunit vendor directory via MDI_SHADOW_HARNESS_DIR.

Repository-local checks:

php tests/smoke-native-shadow-sql-snapshot.php
php tests/smoke-native-core-schema-catalog.php
php tests/smoke-native-shadow-verifier.php

Supports #377, which remains open for full consumer readiness. No release or deployment is included.

AI Assistance

OpenAI GPT-5.6 Terra (openai/gpt-5.6-terra) via OpenCode traced the schema-prefix exceptions and implemented the repair. GPT-6 Astra (openai/gpt-6-astra) via OpenCode reviewed the diff, independently ran the exact candidate's real Linux corpus and focused checks, and finalized the evidence under Chris Huber's direction.

@chubes4
chubes4 marked this pull request as ready for review September 9, 2026 11:49
@chubes4
chubes4 merged commit 91ef5e7 into main Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant