GeezerVison is showing github.com — design(cen-04): cross-model schema owner and migration compatibility matrix (#9434) by dezren39 · Pull Request #13341 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Design record for #9434 (CEN-04) — cross-model schema owner and migration compatibility matrix. Docs only, one new file; references #9434 without closing it (the issue stays open as the slice tracker, matching HYD-07 #13246 / REL-06 #13247 / CLI-02 #13255 / HYD-05 #13297).
Done check: verified against origin/main ba7ea99e9 — no dated CEN-04 record exists, census/test_schema_compatibility_matrix.py is absent, and the census component carries only the proposal-level slice text. The per-fact matrix is new work, built from current-main source (the broker SCHEMA const in turso_queue/core.rs, validate.rs, contracts.rs, gh_metadata.rs's PM_METADATA_DDL) rather than the census pin where main has moved (one such move is recorded in §3.3: the dispatch adapter now preserves ratified bands 15/25 losslessly, DST-02 #9452).
What the record fixes:
- §3: the fact-level matrix — for each of the oracle's named facts (work identity/state, urgency/profile, lease, blocked deps, journal/events, notes/checkpoints, cursors, operation intent, Project fields) plus merge intent, placement sessions, degraded-mode surfaces, and PM pointer rows: one owner, source of truth, write/read APIs, legacy mapping, disposition (reuse / extend / absent / conflict), migration & rollback.
- §4: the name-equivalence refusals collected (events ≠ journal, blocked_deps ≠ free text, merge_intent ≠ creator outbox, checkpoint ≠ note, label ≠ priority, mirror ≠ block, …).
- §5: the field-admission gate REL-06 and HYD-05 cite — a persisted field with no matrix row may not be written; the two pre-filed gated rows are HYD-05 cursor storage (§3.8) and REL-03/REL-04 operation/receipt persistence (§3.9), both
absent — gated with unblocking conditions named.
- §6: the QTI disposition (research(pm-orchestration): recover Queue Table Improvements provenance and schema crosswalk #9241 closed: not located within enumerated accessible surfaces) and its exact consequences — no blanket QTI block remains; later QTI material re-opens only rows it overlaps.
- §3.14: one live conflict recorded — Long-term: migrate the pm stack into Supabase — refactor component state into schemas for central management #3142's PM target home (Supabase
muse-dev2) no longer exists; PM rows keep current homes until Supabase muse-dev2 project removed — disposition the dead Supabase tooling and pointers #13245 dispositions it.
- §8: the slice's oracle
test_schema_fact_has_one_owner_and_legacy_mapping specified for the separately scoped implementation filing (which also owns mirroring §3 into the census component).
No schema, migration, or production scope; no schedule created/changed/retired (registry untouched); no new dependencies. git diff --check clean; docs-only, no build run per REMOTE BUILDS ONLY.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
- Documentation
- Added a design proposal defining ownership, storage homes, API and compatibility mappings, and migration or rollback rules for Fleet and PM Stack state.
- Documented prerequisites and review gates for persisted fields, cursor storage, operation and receipt persistence, and the unresolved PM target home.
- Recorded that QTI was not found in the reviewed surfaces; discoveries may reopen only affected areas.
- No implementation, schema creation, data movement, or migration is authorized by the proposal.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T13:59:39.062152Z |
ebfef6e |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
Walkthrough
-
The CEN-04 design proposal defines schema ownership, compatibility mappings, and migration rules for Fleet and PM Stack. It records implementation gates and states that it authorizes no implementation, schema creation, data movement, or migration.
Changes: Schema Ownership and Compatibility
| Layer / File(s) |
Summary |
Scope and ownership rules doc/2026-11-23T13-51-45Z_design_cen04_schema_owner_migration_compatibility/2026-11-23T13-51-45Z_design_cen04_schema_owner_migration_compatibility.md |
The proposal identifies schema authorities and defines ownership, provenance, and compatibility rules for persisted facts. |
Fact ownership and compatibility doc/2026-11-23T13-51-45Z_design_cen04_schema_owner_migration_compatibility/2026-11-23T13-51-45Z_design_cen04_schema_owner_migration_compatibility.md |
The matrix assigns owners, homes, APIs, and dispositions to broker and PM Stack facts. It distinguishes source records from projections and other similarly named data. |
Admission, migration, and acceptance doc/2026-11-23T13-51-45Z_design_cen04_schema_owner_migration_compatibility/2026-11-23T13-51-45Z_design_cen04_schema_owner_migration_compatibility.md |
The proposal gates unlisted fields and specified future storage. It defines migration and rollback rules, offline acceptance checks, and implementation prerequisites. |
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Other
Possibly related issues
- Issue 9434 requests the design record added by this PR, including the schema ownership and migration compatibility matrix.
- Issue 12825 concerns PM tenant-store schema and migrations. This PR defines related ownership and compatibility rules but does not add schema or migrations.
Suggested reviewers: claude
Merge Risk: Low · up to ebfef
-
This design record adds no runtime changes, but its rollback rule and its acceptance test spec have gaps that could let a later implementation drift from the ownership matrix or promise an unsupported rollback. Tighten those sections before relying on the record to gate schema work.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ebfef6e07a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+483
to
+486
|
|
Until #13245 (or a successor decision) names the target home,
|
|
|
PM rows keep their current homes, the map stands as the
|
|
|
inventory of record, and no PM migration step that presumes
|
|
|
`muse-dev2` may start. This is a conflict row in the oracle's
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Account for the completed Turso cutover before gating PM storage
The PM target home is already resolved: doc/2026-11-18_supabase-turso-recovery.md records the owner's direction to migrate to Turso and the completed activation, while pm-stack/shared-schema/README.md identifies the live canonical tables and pm-stack/aggregator/src/store-backend.ts accepts only file or turso. Treating the deleted Supabase project as an unresolved storage decision, and carrying that prerequisite into §9, unnecessarily gates schema-coupled work on another target-home decision. Record the existing Turso disposition here and distinguish obsolete Supabase pointers from genuinely unresolved migrations.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+393
to
+395
|
|
- **Disposition:** reuse. **Migration/rollback:** the mirror is
|
|
|
disposable by design (drop + re-ingest); the block's rollback is
|
|
|
the stamper's, per #12585/#9073.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve metadata rows that cannot be rebuilt from GitHub
If a previously ingested authored block is removed or becomes malformed in GitHub, pkgs/fleet/hosted-worker/src/query.ts explicitly serves the retained DB content, while ingestion fails closed on malformed blocks rather than recovering the previous metadata. The store also retains DB-only blocks when body writeback is refused (src/ingestion.ts, covered by test/ingestion.test.ts). Consequently, the blanket drop + re-ingest rollback can discard the only retained links, lineage, or provenance for these items. Restrict rebuildability to rows whose complete metadata remains available in GitHub, and preserve or reconcile the other rows before dropping the store; apply the same qualification to §7's projection-rebuild rule.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 23, 2026
This was referenced Nov 25, 2026
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|