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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
//! The per-member score floors a fused query carries: [`FloorSpec`] and the precedence it resolves
//! by.
//!
//! # The CEILING half of this module is GONE, and the wall law is why
//!
//! `CeilingSpec` stood beside [`FloorSpec`] — per-flavour intake defaults, per-member overrides, and
//! a shipped `CEILING` constant the chain terminated in. Both are deleted, condemned twice over by
//! the protection law: a query-carried ceiling vocabulary is a PROTECTIVE number crossing the wire,
//! which that law outlaws by name, and a framework-chosen fallback bound contradicts *no declared
//! ceiling = the author's informed openness*. Neither was ever referenced outside this file — a
//! published law no door ran.
//!
//! Ceiling has ONE home now: the declaration, capping through
//! [`route_depth`](super::route_depth)'s `min`. A floor is a different family and keeps everything
//! it had — it is a PREFERENCE, it crosses the wire, and a declaration must state one.
//!
//! # The ARM CLASS arrived with the fan, and it is the second axis this module carries
//!
//! A widened question is asked in several arms and an arm a translator minted scores elsewhere than
//! the caller's own words do, so one number cannot floor both. The answer is an OFFSET rather than a
//! second precedence chain: whichever tier won the base, a minted arm runs at `base + offset`. See
//! [`FloorSpec`]'s own note for why the class is binary and why the offset composes with the tiers
//! instead of competing with them.
/// The per-member score floors a fused query carries, above what each declaration already states.
///
/// # Why there is no blanket field
///
/// A floor is a number in ONE ENGINE'S OWN CURRENCY. A BM25 relevance is corpus-relative and
/// unbounded above where a cosine similarity is absolute in `[-1, 1]`, so a single number applied
/// across both flavours means two unrelated things and is a strictly incoherent knob — it is refused
/// by construction rather than documented against. The FLAVOUR is the coarsest layer over which one
/// number is still coherent, which is why the defaults here are per-flavour and stop there.
///
/// The two parameters are what that coherence looks like in Rust: `F` is the full-text members'
/// score currency and `V` is the vector members' — the same axis the wire spells as two `Float`
/// fields, typed. A catalog whose two full-text members score in different types has no full-text
/// flavour default available to it, and the emitted builder is where that is a compile-time fact.
///
/// # The named per-member OVERRIDES are not here, and the reason is the member table
///
/// The ruled shape is `{ fulltext?, vector?, overrides }`, and the override list is keyed by the
/// COMPILE-TIME MEMBER TABLE — *typos don't compile*. That table is minted per graph root by the
/// emission, so a framework type cannot hold a map keyed by it. What lives here is therefore the
/// flavour layer, and the override is an ARGUMENT to the resolvers below, supplied by the emitted
/// builder that does know the members' names. The precedence is unchanged by the split; only who
/// holds which tier is.
///
/// # ⟨WATCH⟩ THE EMITTED BUILDER ABOVE DOES NOT EXIST YET, and the 2026-08-27 census says why
///
/// This type is constructed nowhere outside its own tests, and the round that went looking for the
/// seam to construct it at found none. Three findings, each of which would have to fall before the
/// `over:` argument has a supplier:
///
/// 1. **The recipe grain records a floor as a FACT and not as a value.** `floor = "…"` is parsed off
/// a member and off an arm, and what crosses the expansion wall is
/// [`Member::is_floored`](crate::Member::is_floored) — *a floor const was named*. The PATH is
/// dropped, so there is no tier-one number for a chain to terminate in.
/// 2. **A fanned tower's tail has no floor seam.** The tail answers a
/// [`RankedStream`](super::RankedStream), which is a stream somebody has already floored, dedup'd
/// and ranked; the shipped serving lane one layer below answers raw `Hits`, and neither the
/// full-text ask nor the vector ask it is asked with carries a floor. The number is spent inside a
/// step whose own `Serve::Options` the framework cannot read.
/// 3. **The CURRENCY is not projectable where the wire face is minted.** `F` and `V` are somebody's
/// score types, and the seams a recipe reaches a member through publish no score:
/// [`Fusable`](super::Fusable) carries `Options` and `Question`,
/// [`AsyncFusedRead`](super::AsyncFusedRead) carries `Root`, `Evidence`, `Error` and `Ctx`. A
/// member's score currency lives inside the package the recipe holds BY PROJECTION and cannot read
/// a row out of — which is the same wall the per-member override list is on the far side of.
///
/// The offset axis below inherits all three: it is a number in the same currency, spent at the same
/// absent seam. Nothing here is deferred by taste, and nothing here forecloses the door.
///
/// # The precedence, and the tier that cannot be missing
///
/// **override > flavour default > the declaration's own.** The declaration's is not an [`Option`]
/// because an index without a declared floor cannot join a graph-root face at all — the
/// mandatory-floor law continued into the fused world — so the chain always terminates.
///
/// # THE ARM CLASS IS A SECOND AXIS, and it is an OFFSET rather than a fourth tier
///
/// A widened question is asked in several arms, and an arm a translator minted does not score where
/// the caller's own words do: the same corpus answers a rendering of the question at a systematically
/// different place in the engine's currency. A floor calibrated on what was actually asked therefore
/// mis-cuts every other arm, in a direction that depends on the arm and not on the member.
///
/// So the arm class does not JOIN the precedence chain — it moves the number the chain arrived at, by
/// [`translated_fulltext_offset`](Self::translated_fulltext_offset) and its vector twin. That is
/// what makes it composable with all three tiers rather than a competitor to them: whichever tier won
/// the base, a minted arm runs at `base + offset` and the caller's own arm runs at `base`. The
/// resolvers that spend it are [`resolve_fulltext_at`](Self::resolve_fulltext_at) and
/// [`resolve_vector_at`](Self::resolve_vector_at); the two older resolvers are the same functions at
/// the original arm and are unchanged.
///
/// **The class is BINARY, and that is [`ArmWeights`](crate::ArmWeights)' own answer rather than a
/// simplification.** The framework knows *the caller asked this* and *something minted this*, which is
/// all [`ExpandOrigin`](crate::ExpandOrigin) distinguishes. A per-LABEL table — *this translator's
/// arms floor higher than that synonym table's* — would be a policy in the framework about expanders
/// the framework has never seen, refused here for the reason it is refused at the weight.
///
/// # THE CLASSIFICATION: every number on this type is a PREFERENCE
///
/// A floor is named in the one-sentence law at [`route_depth`](super::route_depth) as a preference —
/// *a requester's own statement about the answer it wants* — so it rides all three tiers and the
/// outermost one wins outright. [`over`](Self::over) is that composition. The offset is a preference
/// for the same reason and by the same reading: it moves where an answer is cut, and cutting more or
/// less of one's own answer costs the deployment nothing.
///
/// # THERE IS NO `DEFAULT_*` CONSTANT HERE, and the absence is the open currency
///
/// The three-tier law's first tier is a shipped constant, and this type cannot hold one: `F` and `V`
/// are somebody else's score currencies, and a framework constant in a type it has never seen is
/// unwritable. Tier one is therefore the DECLARATION's own const — `floor = "crate::floors::SEM"`,
/// the path the recipe grammar takes — which is exactly the `declared` argument the resolvers
/// terminate in. The offset's tier one is *no offset*: absence, and not a zero, because the additive
/// identity of an open currency is as unwritable as its floor.
///
/// The derive list is [`FulltextQuery`](crate::FulltextQuery)'s, for its reason: a floor's currency
/// is an engine's own type, `f32` is the one every shipped engine uses, and `Eq` and `Hash` are
/// exactly the two an `f32` cannot supply — so deriving them would add impls no real instantiation
/// can reach.
/// No flavour default named.
///
/// Written rather than derived, because the derived body would have demanded `F: Default` and
/// `V: Default` — of two types whose only job is to be somebody else's score currency.