Commit 0c07f66
fix(search,ci,install): Arc-token context identity for semantic search TOCTOU safety, per-mode two-tier unavailability tracking, CI frankensearch clone, crates.io publish readiness gate
Semantic search context identity (src/search/query.rs):
- Replace string-based embedder ID comparison with Arc<()> context
token created on each set_semantic_context call -- all
lock-release-reacquire loops now use Arc::ptr_eq to detect context
swaps, eliminating TOCTOU races where the context changes mid-query
to one with an identically-named embedder
- Replace single in_memory_two_tier_init_attempted boolean with
per-mode (fast_only / quality) unavailability tracking via
InMemoryTwoTierUnavailable, preventing a failed quality probe from
blocking subsequent fast-only loads
- Three new tests: stale same-ID embedding rejection, failed quality
not poisoning fast-only, progressive context errors not permanently
memoized
Cargo.toml metadata normalization:
- Add explicit version = "*" to all git-pinned dependencies
(asupersync, toon, frankensqlite, frankentui crates, frankensearch,
franken-agent-detection, fsqlite-types) -- required for crates.io
publish compatibility
CI release workflow (.github/workflows/release.yml):
- Add missing frankensearch git clone to all three CI job steps
(build, sign, test) so builds that depend on it as a git dependency
succeed
- Add cargo package --locked --no-verify readiness check before
crates.io publish, with structured warning when manifest is not
registry-ready instead of a hard failure
Installer (install.sh):
- Drop darwin-amd64 (Intel macOS) from prebuilt targets since those
binaries are no longer published, with specific fallback message
instead of the generic "no prebuilt artifact" warning
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 68213d6 commit 0c07f66
4 files changed
Lines changed: 450 additions & 118 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| 374 | + | |
372 | 375 | | |
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
376 | 397 | | |
377 | | - | |
| 398 | + | |
378 | 399 | | |
379 | 400 | | |
380 | 401 | | |
381 | 402 | | |
382 | 403 | | |
383 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
384 | 409 | | |
385 | 410 | | |
386 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
213 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 | | |
215 | 220 | | |
216 | 221 | | |
| |||
0 commit comments