Commit aa45919
test(engine-doubles): add the findOne slice to check:engine-double-contract and adopt assertEngineFindOnePredicate across the re-measured 211-file remainder (#12560)
* test(engine-doubles): adopt assertEngineFindOnePredicate across 212 files / 245 findOne doubles
The adoption half of #12068. Discovery was NOT re-derived by hand: the
population is `check:engine-double-contract`'s own reported (file, line)
answers with a findOne slice installed, so the batch cannot be narrower or
wider than what the gate scores.
`@objectstack/service-datasource` gains `@objectstack/metadata-core` as a
devDependency — the one package in the remainder that depended on neither home
of the predicate. Acyclic, measured rather than cited: `turbo run build
--filter=@objectstack/service-datasource --dry` exits 0 with zero
circular-dependency reports and metadata-core present in the graph.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6HFzyH98W1YaQXhJUJt6o
* wip(engine-doubles): recovered uncommitted gate half from a stalled dispatch
NOT REVIEWED. The dispatch that wrote this stalled before committing or
pushing; this commit exists only so the work survives the container, and the
resuming dev is expected to inspect it, not to trust it.
Contents as found on disk: the findOne slice added to check-engine-double-contract's
SLICES table (assertEngineFindOnePredicate / resolveEngineFindOnePredicate,
origin #4419), plus the regenerated baseline and pinned ledgers. No gate run,
no test run, and no ablation was performed against it here.
* fix(engine-doubles): close the two defects the recovered findOne sweep left, and alias metadata-core in service-datasource
Supersedes the "NOT REVIEWED" disclaimer on 88784b7: the gate half and the
211-file adoption below it have now been run, ablated and re-measured. Three
things this commit changes, all of them found by running what that commit never
ran.
1. TS2345 in service-messaging. `delivery-headers-at-rest.integration.test.ts`
passed the fake's `q: unknown` straight into the predicate, whose parameter is
`EngineFindOneQueryInput | null | undefined`. vitest never type-checks, so the
suite was green and `tsc --noEmit` was red — the one direction a test-only
sweep can go wrong invisibly. Cast at the call, matching the sibling
`assertEngineUpdateDispatch(d as any, q as any)` pin three lines below it.
2. service-datasource's engine double reached `@objectstack/metadata-core`
through `dist/`. `check:test-source-alias` names the repair and refuses the
alternative: alias the specifier in the package's own vitest config, never
widen the shrink-only registry. A pin resolved through a build artifact is
pinned to whatever was last built rather than to the predicate beside it,
which is the single failure a contract pin exists to prevent.
3. Import order in that same test file is now load-bearing, and says so.
Aliasing metadata-core to source pulls its import graph into the package's
resolution domain, which switches on the clocked-window rule for the whole
package — and that rule then misreported a file that has paid its
`@objectstack/spec/kernel` load at module top since #10120. Cause is a
detector defect filed as #12555: the gate's import regex swallows a bare
side-effect import whenever an `import … from …` follows it later in the
file. Not worked around in the gate — the fix there needs its own
`--self-test` cases — so the statement is placed where the detector reads it
correctly, with a comment naming the constraint and the card that removes it.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent b566f83 commit aa45919
217 files changed
Lines changed: 1722 additions & 267 deletions
File tree
- packages
- core/src/utils
- mcp/src
- __tests__
- metadata-protocol/src
- migrations
- metadata/src/migrations
- plugins
- plugin-auth/src
- plugin-security/src
- plugin-sharing/src
- plugin-webhooks/src
- rest/src
- runtime/src
- domains
- services
- service-automation/src
- builtin
- service-datasource
- src/__tests__
- service-messaging/src
- service-storage/src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments