Repository navigation
Commit d958c99
committed
The ADR-0120 D5e advisory's `SchemaStack.allObjects()` erased its
service-lookup result to `any`, which `no-restricted-syntax` rejects
(#4168/#4176/#4251): the lookup already returns the slot's contract, and
the annotation switched that checking off while looking identical to code
that has it.
The `objectql` slot HAS a contract — `IObjectQLEngine`, whose
`registry.getAllObjects()` is exactly what this reads — so this takes the
prescription's first branch (pass the contract type) rather than the
UNCONTRACTED_SLOTS registration. Concretely it buys what the rule is for: a
rename of `registry` or `getAllObjects` now breaks this at compile time
instead of silently returning zero objects and turning the advisory mute.
`allObjects()` returns `unknown[]` accordingly; its only consumer,
`collectGlobalUniques`, already accepts `unknown`.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErbEDVAg1No9gdg1pgDAGB
1 parent 0a3a4ed commit d958c99
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | | - | |
| 227 | + | |
227 | 228 | | |
228 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
| |||
0 commit comments