Commit 2c8051e
committed
#6562 (PR #6811) landed while this branch was in flight and factored the tenant
column into `TENANT_SCOPE_FIELD_DEF`. Conflict resolved onto that shared table:
the definition is now spread VERBATIM, with the `indexed` key gone and the
tenant index declared in `indexes[]`.
`protocol-meta-effective-schema.test.ts` carries the three-line tripwire #6562
pinned in both directions so this fix could not be forgotten. All three flip to
the post-fix truth, annotated with #6810 and with the old expectation quoted in
place so the reversal reads as a record, not a rewrite:
divergences(...) ['organization_id.indexed'] → []
registryBacked._diagnostics valid: false → { valid: true }
organization_id.indexed === multiTenant → undefined, read
off `indexes[]`
One residual is recorded rather than left to be rediscovered: the DECLARATION
does not converge the way the field set does — the overlay-backed answer is
rebuilt from the stored body, which declares no indexes. Inert on that surface
(drivers materialize from the REGISTERED schema, never a served document) and
both answers parse green either way.
`metadata-core`'s `injected-system-columns.ts` header described the stamped key
as live; corrected to describe it as closed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JE8Bbwb8qhau3yNtP3ftLJ
7 files changed
Lines changed: 1333 additions & 116 deletions
File tree
- .changeset
- packages
- metadata-core/src
- metadata-protocol/src
- objectql/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
0 commit comments