Repository navigation
Commit d4a9a55
`RecordFormPage` built its own predicate identity — `{ name, email, role,
positions }` — instead of calling `buildExpressionUser`. Against the normaliser
that shape is missing `id` and `isPlatformAdmin`, both named by real gates
(`ctx.user.isPlatformAdmin == true` on `sys_environment`'s "Change Plan (admin)";
`record.id == ctx.user.id` throughout `sys_user`). An absent key is not `false`:
the predicate FAULTS, and a faulting visibility predicate fails OPEN, so the gate
silently did not bite. The signed-out branch diverged on its own account too — it
carried no `isPlatformAdmin` key at all.
The normaliser moves from `console/AppContent.tsx` to `providers/expressionUser.ts`,
a leaf module beside the `ExpressionProvider` it feeds. That move is what makes the
fix available at all: this view is `lazy()`-loaded BY `AppContent`, so importing the
normaliser from its old home would put a static edge from the split chunk back into
the module it was split out of — the edge `check-eager-closure-budget` weighs.
`console/AppContent.js` and the package entry both re-export the name, so nothing
published moved.
Fail-open on a genuine evaluation error is deliberately unchanged (objectui#6443 /
#6487 / #6445); what changed is that these predicates no longer fault.
Adds the shape pin objectui#6110's contract implied but never got: a render-level
assertion that a mount site publishes exactly `buildExpressionUser(session)` under
all four identity spellings, plus a source ratchet that refuses a NEW mount site
which derives the descriptor by hand.
Claude-Session: https://claude.ai/code/session_011SfZeFWrhGLHmfq61xbz4q
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 10725fb commit d4a9a55
7 files changed
Lines changed: 681 additions & 57 deletions
File tree
- .changeset
- packages/app-shell/src
- console
- providers
- views
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 134 | + | |
| 135 | + | |
138 | 136 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 137 | + | |
166 | 138 | | |
167 | 139 | | |
168 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | | - | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
0 commit comments