@functional-systems/srcx 0.1.0-dev.3 → 0.1.0-dev.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +132 -1
- package/DESIGN.md +193 -58
- package/README.md +542 -38
- package/RELEASING.md +30 -9
- package/VALIDATION.md +834 -25
- package/dist/build.d.ts +81 -1
- package/dist/build.js +187 -37
- package/dist/build.js.map +1 -1
- package/dist/chunk.d.ts +9 -3
- package/dist/chunk.js +341 -14
- package/dist/chunk.js.map +1 -1
- package/dist/cli.js +103 -19
- package/dist/cli.js.map +1 -1
- package/dist/file-policy.d.ts +20 -0
- package/dist/file-policy.js +96 -0
- package/dist/file-policy.js.map +1 -0
- package/dist/implementation.d.ts +11 -0
- package/dist/implementation.js +191 -0
- package/dist/implementation.js.map +1 -0
- package/dist/publish.d.ts +18 -0
- package/dist/publish.js +158 -34
- package/dist/publish.js.map +1 -1
- package/dist/releases.js +21 -3
- package/dist/releases.js.map +1 -1
- package/dist/remote.js +38 -9
- package/dist/remote.js.map +1 -1
- package/dist/repository.d.ts +4 -1
- package/dist/repository.js +15 -11
- package/dist/repository.js.map +1 -1
- package/dist/rerank.d.ts +16 -0
- package/dist/rerank.js +87 -0
- package/dist/rerank.js.map +1 -0
- package/dist/search.d.ts +14 -4
- package/dist/search.js +119 -23
- package/dist/search.js.map +1 -1
- package/dist/skills.d.ts +24 -0
- package/dist/skills.js +155 -0
- package/dist/skills.js.map +1 -0
- package/package.json +16 -5
- package/runtime/grammars/README.md +50 -0
- package/runtime/grammars/tree-sitter-bash.LICENSE +21 -0
- package/runtime/grammars/tree-sitter-bash.wasm +0 -0
- package/runtime/grammars/tree-sitter-sql.LICENSE +21 -0
- package/runtime/grammars/tree-sitter-sql.wasm +0 -0
- package/runtime/grammars/tree-sitter-wasm.LICENSE +21 -0
- package/runtime/qwen.py +132 -0
- package/runtime/requirements.txt +34 -0
- package/skills/srcx-search/SKILL.md +85 -0
- package/src/build.ts +258 -47
- package/src/chunk.ts +360 -12
- package/src/cli.ts +212 -24
- package/src/file-policy.ts +157 -0
- package/src/implementation.ts +253 -0
- package/src/publish.ts +226 -34
- package/src/releases.ts +36 -3
- package/src/remote.ts +59 -13
- package/src/repository.ts +20 -11
- package/src/rerank.ts +131 -0
- package/src/search.ts +154 -28
- package/src/skills.ts +205 -0
package/VALIDATION.md
CHANGED
|
@@ -1,15 +1,812 @@
|
|
|
1
1
|
# Validation record
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Cross-repository versioned source delivery
|
|
4
|
+
|
|
5
|
+
The [bounded workflow diagnostic](eval/VERSION-WORKFLOW-RESULTS.md) covers
|
|
6
|
+
LambdaDB CLI v0.1.0 and TypeScript SDK v0.4.3/v0.5.1. A fresh client with no local
|
|
7
|
+
source attachment verifies all eight requested source spans and 25 lexical
|
|
8
|
+
previews/handles. All three immutable Tag/Snapshot identities remain unchanged
|
|
9
|
+
before/after reads; all 23 frozen runtime/harness inputs match. All 31 reserved
|
|
10
|
+
CLI calls complete. Three dry-run corpora contain 3,425 file/chunk records and
|
|
11
|
+
1,994,646 source bytes across snapshots, with zero embeddings.
|
|
12
|
+
|
|
13
|
+
Mean known-range read time is 16.3 ms for local Git and 2,107.0 ms for srcx.
|
|
14
|
+
Remote reads make 34–36 HTTP requests each, including 23 repository-descriptor
|
|
15
|
+
fetches. Equal source/identity envelopes intentionally yield equal stdout tokens;
|
|
16
|
+
this is not evidence of model-token savings or autonomous task accuracy. Setup
|
|
17
|
+
costs and source-test inspection are separate from task reads. The next measured
|
|
18
|
+
optimization target is exact-Collection selection without project-wide discovery;
|
|
19
|
+
the product runtime and retrieval defaults are unchanged in this evaluation.
|
|
20
|
+
|
|
21
|
+
## Fresh adaptive agent navigation
|
|
22
|
+
|
|
23
|
+
[Eight fresh sessions](eval/FRESH-AGENT-NAVIGATION-RESULTS.md) compare local tools
|
|
24
|
+
against local tools plus srcx on four new Requests behavior questions. Both arms
|
|
25
|
+
support all frozen facts under assistant source review. Mean total input is 3.2%
|
|
26
|
+
lower with srcx, while mean wall time is 6.3% longer; one observation per condition
|
|
27
|
+
does not establish a general efficiency advantage. Three lexical searches and one
|
|
28
|
+
semantic search were followed by local reads; no srcx implementation read occurred.
|
|
29
|
+
|
|
30
|
+
All 18 previews/handles match pinned source and version metadata, eight checkouts
|
|
31
|
+
remain clean, and 31 frozen inputs match their pre-run hashes. Setup/audit resolution
|
|
32
|
+
confirms the same immutable Snapshot. Argument and exhausted-budget guard checks
|
|
33
|
+
passed before execution. Two recoverable local command errors remain in the data;
|
|
34
|
+
all sessions and service calls completed. No reindexing, document embeddings,
|
|
35
|
+
ranking changes or agent reruns were performed. Raw task workspaces were archived
|
|
36
|
+
with all 1,310 file hashes verified; historical evaluations remain unchanged.
|
|
37
|
+
|
|
38
|
+
## Optional overload implementation reads
|
|
39
|
+
|
|
40
|
+
[Offline navigation results](eval/IMPLEMENTATION-READ-RESULTS.md) cover six fresh
|
|
41
|
+
Python/TypeScript/TSX fixtures and a separate replay of exposed Requests results.
|
|
42
|
+
All twelve synthetic declaration starts reach their expected bodies. Ten of 115
|
|
43
|
+
archived reads resolve to streaming implementations, improving required-span
|
|
44
|
+
coverage on four query/mode rows while total read-output tokens increase 9.7%.
|
|
45
|
+
No complete-task, agent-efficiency or semantic ranking advantage is established.
|
|
46
|
+
|
|
47
|
+
All 158 tests and seven installed-package tests pass on Node 24.15.0, along with
|
|
48
|
+
six installed-module navigation assertions, typecheck, version, formatting and
|
|
49
|
+
bundled skill validation. Source/Tag integrity, conservative refusal, source-token
|
|
50
|
+
limits, accurate citations and unchanged ordinary reads are covered. No service
|
|
51
|
+
writes, embeddings, new searches or agent sessions were performed.
|
|
52
|
+
|
|
53
|
+
The namespace-merge review follow-up passes all 162 tests. TypeScript namespace
|
|
54
|
+
augmentation no longer counts as a second function implementation; exported and
|
|
55
|
+
non-exported merges link to the exact body, while duplicate bodies and interrupted
|
|
56
|
+
overload groups still reject linking. The exported-merge regression fails on the
|
|
57
|
+
original PR head. The offline evaluation above retains its original runtime and
|
|
58
|
+
results; it was not rerun for this TypeScript-only fix.
|
|
59
|
+
|
|
60
|
+
## File selection and embedding policy
|
|
61
|
+
|
|
62
|
+
Offline validation on Node 24.15.0 passed 128 tests and seven installed-package
|
|
63
|
+
checks, plus typecheck, version and formatting checks. Synthetic tracked files
|
|
64
|
+
verify credential/crypto/image exclusions, case-insensitive minified assets,
|
|
65
|
+
virtual environments, dependency/cache paths and logs. Lockfiles, generated code,
|
|
66
|
+
snapshots and data retain source and lexical chunks without managed inputs.
|
|
67
|
+
Ordinary source, tests, manifests, templates and configurable Sphinx documentation
|
|
68
|
+
remain eligible. Ordered path overrides, configuration identity, baseline rejection,
|
|
69
|
+
unchanged-file reuse, managed publication and CLI override rejection are covered.
|
|
70
|
+
The CLI evaluator's actual offline prepare test includes an in-tree answer fixture
|
|
71
|
+
and verifies it is absent from the prepared corpus.
|
|
72
|
+
|
|
73
|
+
Fresh offline inventories reused the audited source commits:
|
|
74
|
+
|
|
75
|
+
| Repository | Result |
|
|
76
|
+
| ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
77
|
+
| Requests `611c6162cbc4ac2020a2f91c7cfa4f3abf9bbb60` | Excludes 12 certificate/key payload files. Estimated managed input decreases from the image-only build's 179,548 to 159,849 tokens; legal/author files stay lexical-only and docs/conf.py stays eligible. |
|
|
78
|
+
| srcx `e83134b44a11d78a79c5941c0e1f907383f238b3` | Explicit `eval/**` exclusion removes 45 evaluation files: total chunk tokens decrease from 316,889 to 202,835. This is a corpus boundary, not a claim that earlier answers used leaked labels. |
|
|
79
|
+
| lambdadb-cli `513af6e4d262edd380013c86d51a20aad16274d7` | Retains all 38 files and 200 chunks; package-lock.json (22,076 chunk tokens), LICENSE and JSONL examples have no managed input. The retained baseline was lexical-only, so this is not a measured embedding-cost reduction. |
|
|
80
|
+
|
|
81
|
+
All excluded paths have zero file/chunk records and all lexical-only files have
|
|
82
|
+
zero embedding inputs in these rebuilt artifacts. No service writes, provider calls
|
|
83
|
+
or agent sessions were performed. Existing remote Collections and historical
|
|
84
|
+
results are unchanged. The pinned policy selects a new configuration; no legacy
|
|
85
|
+
preset compatibility or migration layer was added. Generated detection is limited
|
|
86
|
+
to explicit markers/suffixes, `.gitattributes` is not interpreted, and credential
|
|
87
|
+
rules are not a general secret scanner. Additional evaluation-label locations must
|
|
88
|
+
be added to the explicit evaluation policy before running a different suite.
|
|
89
|
+
|
|
90
|
+
## Image exclusion
|
|
91
|
+
|
|
92
|
+
Image assets are excluded by case-insensitive extension before source records,
|
|
93
|
+
chunking or embedding, including SVG and text pixel maps. Source and installed
|
|
94
|
+
CLI checks cover image exclusion for lexical and managed presets; TSX containing
|
|
95
|
+
inline SVG still produces managed chunks. The regression fails against the
|
|
96
|
+
archived pre-fix runtime. All 125 tests, six installed-package checks, typecheck,
|
|
97
|
+
version and formatting checks passed on Node 24.15.0.
|
|
98
|
+
|
|
99
|
+
A credential-free rebuild of the same Requests commit used in the semantic pilot
|
|
100
|
+
excluded the logo SVG: managed input fell from 806,268 to 179,548 estimated tokens
|
|
101
|
+
(77.7%), and managed chunks from 1,864 to 1,081. No remote import, agent rerun or
|
|
102
|
+
retrieval improvement was measured. Previous results and their runtime are retained.
|
|
103
|
+
|
|
104
|
+
## Semantic agent investigation
|
|
105
|
+
|
|
106
|
+
[The semantic follow-up](eval/SEMANTIC-AGENT-RESULTS.md) covers twelve fresh sessions
|
|
107
|
+
on four frozen Requests questions, with the same local checkout in all conditions.
|
|
108
|
+
All answers covered the required facts under assistant source review. Mean times
|
|
109
|
+
were 69.9 seconds for local tools, 68.6 for lexical-first and 68.0 for semantic-first;
|
|
110
|
+
these single-run differences do not establish an efficiency gain. Semantic used
|
|
111
|
+
more total model input than both other conditions. All srcx sessions used one
|
|
112
|
+
search followed by local reads.
|
|
113
|
+
|
|
114
|
+
All 35 task previews and five separate diagnostic previews matched pinned source
|
|
115
|
+
and immutable version metadata; twelve checkouts and 26 runtime/harness fingerprints
|
|
116
|
+
passed verification. Payload validation does not establish nearest-neighbor recall:
|
|
117
|
+
one unfiltered semantic query returned SVG chunks, while a Python-filtered query
|
|
118
|
+
returned relevant methods with higher scores. The report preserves this unresolved
|
|
119
|
+
retrieval discrepancy separately from the original agent comparison. No product
|
|
120
|
+
search policy, embedding model or ranking default changed.
|
|
121
|
+
|
|
122
|
+
## Agent workflow diagnostic
|
|
123
|
+
|
|
124
|
+
[The agent workflow record](eval/AGENT-WORKFLOW-PILOT.md) covers eight fresh Codex
|
|
125
|
+
sessions on three frozen questions against pinned public srcx/lambdadb-cli source.
|
|
126
|
+
Optional srcx access was unused in all three paired development environments.
|
|
127
|
+
A separate explicit-invocation confirmation used three searches and seven reads
|
|
128
|
+
without cloning. Both it and the Git/local baseline answered correctly under
|
|
129
|
+
assistant source review; srcx took 94.2 seconds versus 65.8, with more total model
|
|
130
|
+
input but less uncached input. No token-cost, latency or accuracy win is claimed.
|
|
131
|
+
Six successful reads and ten search previews matched pinned source/version data.
|
|
132
|
+
The report separates preparation cost, guided invocation, evolving environment
|
|
133
|
+
conditions and the audited wrapper reservation defect from product correctness.
|
|
134
|
+
|
|
135
|
+
## Bash grammar runtime compatibility
|
|
136
|
+
|
|
137
|
+
Preparing the agent workflow pilot exposed a real import failure in the public
|
|
138
|
+
`lambdadb-cli` repository at `513af6e4d262edd380013c86d51a20aad16274d7`:
|
|
139
|
+
`scripts/test-homebrew.sh` aborted local materialization with
|
|
140
|
+
`TypeError: resolved is not a function`. A minimal `[[ "$value" == 1 ]]`
|
|
141
|
+
comparison reproduces it with the previous Bash grammar/runtime combination.
|
|
142
|
+
The replacement grammar is bundled with its license and pinned checksum in
|
|
143
|
+
`CHUNKER.shellGrammar`; other language runtimes remain unchanged.
|
|
144
|
+
|
|
145
|
+
The regression fixture fails before the replacement and passes afterward,
|
|
146
|
+
preserving complete source-byte coverage and syntax spans. The same fixture is
|
|
147
|
+
included in installed-package import checks. On Node 24.15.0, all 124 tests,
|
|
148
|
+
six installed-package tests, formatting/version checks and typecheck passed.
|
|
149
|
+
The two public pilot corpora also passed local materialization after the fix:
|
|
150
|
+
139 files/928 chunks for srcx and 38 files/200 chunks for lambdadb-cli, with no
|
|
151
|
+
embeddings. These checks establish indexing/packaging correctness, not an agent
|
|
152
|
+
accuracy or efficiency improvement.
|
|
153
|
+
|
|
154
|
+
## Agent skill installation
|
|
155
|
+
|
|
156
|
+
The npm artifact includes `skills/srcx-search/SKILL.md`. The `skills` command
|
|
157
|
+
installs, reports, updates and removes the bundled copy for Codex or Claude Code
|
|
158
|
+
in user/project scope. No credentials or network access are needed for those
|
|
159
|
+
operations. A content-hash/package-version footer distinguishes unchanged managed
|
|
160
|
+
copies from custom files; modified/unowned content, extra files and symlinked
|
|
161
|
+
managed paths are preserved. Scope selection does not edit unrelated agent
|
|
162
|
+
settings or infer a project root.
|
|
163
|
+
|
|
164
|
+
On Node 24.15.0, formatting/version checks, typecheck, all 124 tests and six packed
|
|
165
|
+
CLI tests passed. Lifecycle tests cover both agents and scopes using isolated
|
|
166
|
+
roots, replacement of a previous managed bundle, custom-file preservation,
|
|
167
|
+
symlinks, active locks, invalid options and no-write status/absent removal. Absent
|
|
168
|
+
removal also covers existing read-only parent directories for both agents/scopes
|
|
169
|
+
and preserves a pre-existing lock without acquiring it. The permission regression
|
|
170
|
+
tests fail before the fix and pass afterward on the local non-root POSIX runtime;
|
|
171
|
+
those permission tests are skipped on Windows or when running as root. Packed
|
|
172
|
+
CLI tests exercise both project destinations without config, then the existing
|
|
173
|
+
loopback workflow covers skill installation, repository discovery, commit
|
|
174
|
+
resolution, search and exact source reads. This is deterministic integration
|
|
175
|
+
validation; a model does not choose the commands in those tests.
|
|
176
|
+
|
|
177
|
+
The skill-creator validator accepted the skill. Separately, a fresh npm consumer
|
|
178
|
+
installed the tarball and Codex CLI 0.157.1 `skills/list` discovered the installed
|
|
179
|
+
project skill as enabled. Removing it removed it from the actual runtime catalog;
|
|
180
|
+
reinstalling restored it with `forceReload`. This exercised the real discovery
|
|
181
|
+
path without model requests. Claude Code's documented destination and installed
|
|
182
|
+
file lifecycle are covered, but Claude runtime discovery and either agent's
|
|
183
|
+
autonomous skill selection have not been exercised. Default local paths are the
|
|
184
|
+
supported installer targets; custom config directories and cloud/account skill
|
|
185
|
+
sync are outside this installation flow.
|
|
186
|
+
|
|
187
|
+
There were no live LambdaDB changes, embedding requests, global CLI installation,
|
|
188
|
+
or changes to the developer's personal skill directories. Tests and discovery
|
|
189
|
+
used isolated directories. This validates packaging/discovery, not token savings,
|
|
190
|
+
latency improvements or ranking quality.
|
|
191
|
+
|
|
192
|
+
Date: 2026-09-26 (Asia/Seoul).
|
|
193
|
+
|
|
194
|
+
## Query-language guidance
|
|
195
|
+
|
|
196
|
+
README and search help explain source-language query selection without rejecting
|
|
197
|
+
non-English input or adding automatic translation. Agent guidance preserves exact
|
|
198
|
+
identifiers and error text, checks the question's premise, reads source evidence
|
|
199
|
+
and answers in the user's language. `--language` help explicitly identifies the
|
|
200
|
+
programming-language filter.
|
|
201
|
+
|
|
202
|
+
Local Node 24.15.0 checks passed: formatting, version consistency, typecheck,
|
|
203
|
+
113 tests and five installed-package checks. Rendered `search --help` was checked
|
|
204
|
+
for query-language guidance and the programming-language filter description.
|
|
205
|
+
|
|
206
|
+
A private 2026-09-26 diagnostic used ten new Korean/English question pairs against
|
|
207
|
+
one existing immutable corpus, with English+Korean analysis, lexical top-ten
|
|
208
|
+
retrieval and five zero-context reads. Both query forms were frozen before answer
|
|
209
|
+
implementation inspection; source labels were frozen before retrieval. English
|
|
210
|
+
translation improved labelled-file discovery from 0/10 to 7/10, but complete
|
|
211
|
+
labelled evidence only from 0/10 to 1/10. All labelled spans were present in the
|
|
212
|
+
corpus; all 100 explicit reads matched pinned source bytes and version metadata.
|
|
213
|
+
There were 20 searches, no reindexing, no query embeddings and no reranking.
|
|
214
|
+
|
|
215
|
+
The same assistant authored queries and labels with prior repository familiarity;
|
|
216
|
+
this is not a blind benchmark. Exact implementation-span coverage can undercount
|
|
217
|
+
other useful evidence. One false-premise question remained in the set. No queries
|
|
218
|
+
or labels were tuned after retrieval. The new set did not run semantic/hybrid or
|
|
219
|
+
measure generated-answer accuracy, automatic translation quality or follow-up
|
|
220
|
+
reads. These results support query-writing guidance, not a language restriction,
|
|
221
|
+
a universal ranking claim or a product-default change. Private source-bearing
|
|
222
|
+
artifacts are retained locally and are not included in this repository.
|
|
223
|
+
|
|
224
|
+
## Configurable text analyzers
|
|
225
|
+
|
|
226
|
+
The pre-release preset defaults to standard and requires a canonical analyzer
|
|
227
|
+
list. All 15 nonempty combinations of LambdaDB's four supported analyzers are
|
|
228
|
+
validated across lexical, managed-small and managed-large presets (45 distinct
|
|
229
|
+
configuration/Collection identities). Registration/discovery tests cover canonical
|
|
230
|
+
reattachment and schema drift; build tests reject reuse of a different analyzer
|
|
231
|
+
baseline while preserving the source/chunk text.
|
|
232
|
+
|
|
233
|
+
On Node 24.15.0, typecheck, formatting/version checks, all 113 tests and the packed
|
|
234
|
+
npm consumer passed. Its five CLI checks include a managed-large English/Korean
|
|
235
|
+
preset, offline preview parity, and invalid/connected analyzer-override rejection.
|
|
236
|
+
Publication tests verify readiness without depending on analyzed text matches.
|
|
237
|
+
|
|
238
|
+
The chunking, CLI-mode and public-benchmark evaluators explicitly pin standard
|
|
239
|
+
analysis, including CLI preview/registration arguments and remote schema checks.
|
|
240
|
+
Regression checks simulate an English product default and verify that prepared
|
|
241
|
+
artifacts and benchmark Collection schemas still use standard. These checks run
|
|
242
|
+
offline and do not rerun the retained ranking experiments.
|
|
243
|
+
|
|
244
|
+
A bounded live run on 2026-09-26 used synthetic source, two Collections and three
|
|
245
|
+
imports, with no embeddings or reranker. At commit `10936fe` (before restoring the
|
|
246
|
+
standard default), the actual CLI verified the English preset, publication of a
|
|
247
|
+
stop-word-only file, `run` matching `Running`, exact
|
|
248
|
+
pinned source reads, sorted/deduplicated reattachment, the live four-analyzer
|
|
249
|
+
schema, and Korean/Japanese search/read results. This is integration validation,
|
|
250
|
+
not a ranking benchmark or evidence that English is universally optimal. The
|
|
251
|
+
restored standard default is covered by the local and packed CLI checks above;
|
|
252
|
+
this default-only change did not repeat live writes.
|
|
253
|
+
|
|
254
|
+
Date: 2026-09-26 (Asia/Seoul).
|
|
255
|
+
|
|
256
|
+
## Additional language chunking
|
|
257
|
+
|
|
258
|
+
Python (`.py`, `.pyi`), Go and Rust (`.rs`) use the pinned Tree-sitter grammars. Fixtures
|
|
259
|
+
verify decorated/async Python functions, class methods and nested class scopes,
|
|
260
|
+
docstrings, Go generic/pointer/value receivers, grouped types, Rust generic
|
|
261
|
+
`impl`/`trait` and module scopes, attributes/doc comments, authored macros, and complete UTF-8
|
|
262
|
+
source coverage with BOM, CRLF and Unicode. Long functions keep their symbol/scope
|
|
263
|
+
through bounded splitting; invalid parses retain text fallback. Artifact checks
|
|
264
|
+
verify language and symbol metadata in lexical/small/large build payloads.
|
|
265
|
+
|
|
266
|
+
C/C++ fixtures verify pointer declarators, templates, namespace/class scopes,
|
|
267
|
+
qualified names and both preprocessor branches. Shell fixtures retain quoted
|
|
268
|
+
semicolons, heredocs and compound commands. SQL fixtures retain CREATE/INSERT,
|
|
269
|
+
CTEs and dollar-quoted function bodies as statements, with created object/schema
|
|
270
|
+
metadata. Each added language is checked for token bounds, parse-error fallback,
|
|
271
|
+
exact source coverage and lexical/small/large payloads.
|
|
272
|
+
|
|
273
|
+
Local validation passed 107 Node tests, typecheck, formatting and version checks.
|
|
274
|
+
Four installed-package CLI checks cover the existing lexical/small/large workflow
|
|
275
|
+
and Python/Go/Rust/C/C++/Shell/SQL grammar loading with exact source payloads from
|
|
276
|
+
the npm artifact. The artifact check also verifies the SQL binary checksum and
|
|
277
|
+
packaged license notices.
|
|
278
|
+
The connected CLI checks use the synthetic SDK/HTTP test store. There were no live
|
|
279
|
+
LambdaDB writes, paid embedding calls or new ranking measurements. Earlier
|
|
280
|
+
retrieval results remain evidence for their original corpus and configuration.
|
|
281
|
+
|
|
282
|
+
## Qwen failure diagnostics
|
|
283
|
+
|
|
284
|
+
Known worker failures now produce distinct setup, cache, device and input-limit
|
|
285
|
+
messages; host launch and deadline failures have separate remediation. Unknown
|
|
286
|
+
failures remain generic, and raw worker output is not forwarded. Search defaults,
|
|
287
|
+
scores, source verification and the no-fallback policy are unchanged.
|
|
288
|
+
|
|
289
|
+
Local validation passed 97 Node tests, nine Python checks (six worker and three
|
|
290
|
+
local-reranker protocol checks), three installed-package CLI checks, typecheck,
|
|
291
|
+
formatting and version consistency. Reserved worker exits and unexpected exits
|
|
292
|
+
were exercised with real synthetic subprocesses. Deadline, permission and
|
|
293
|
+
unexpected-signal mapping used a mocked process callback; the test asserted the
|
|
294
|
+
unchanged 120-second/SIGKILL policy rather than waiting for a real timeout.
|
|
295
|
+
|
|
296
|
+
Six additional offline checks used the existing Python 3.12 environment and
|
|
297
|
+
cached pinned model: missing executable, missing Python imports, empty cache,
|
|
298
|
+
invalid device, unavailable CUDA, and successful MPS inference. All produced the
|
|
299
|
+
expected outcome; the successful two-candidate query returned finite scores and
|
|
300
|
+
ranked the sorting function above an unrelated reader. No LambdaDB calls, document
|
|
301
|
+
embeddings or model downloads were needed. This is an error-handling and inference
|
|
302
|
+
smoke check, not a retrieval-quality comparison.
|
|
303
|
+
|
|
304
|
+
The retained report is `.srcx/diagnostics/report.json` in the
|
|
305
|
+
`srcx-reranker-diagnostics` worktree, SHA-256
|
|
306
|
+
`7725a96f6c5bf5b4a6a4f01369e2dbea6a8ce16d70692f6e1039774f42564e67`.
|
|
307
|
+
The local runner and Node/package logs are retained alongside it.
|
|
308
|
+
|
|
309
|
+
## Developer workflow pilot
|
|
310
|
+
|
|
311
|
+
The [workflow pilot](https://github.com/lambdadb/srcx/blob/develop/eval/DEVELOPER-WORKFLOW-PILOT.md)
|
|
312
|
+
used installed dev.17 against srcx `7521974a331471b264a695e6f9795bba3e4a7dfd`
|
|
313
|
+
for three assistant-selected maintenance investigations. Five searches and 16
|
|
314
|
+
source-verified reads produced change maps for Qwen diagnostics, Go chunking and
|
|
315
|
+
automatic Git sync. No feature implementation or comparative quality claim is
|
|
316
|
+
part of this record.
|
|
317
|
+
|
|
318
|
+
One import added 127 files / 699 chunks to the existing managed-small Collection,
|
|
319
|
+
with 283,104 estimated document embedding input tokens. Two query embedding
|
|
320
|
+
requests and one cached Qwen invocation stayed within predeclared bounds. All
|
|
321
|
+
live commands completed without replay. Two separate local failure probes
|
|
322
|
+
confirmed indistinguishable public errors for missing Python and an invalid
|
|
323
|
+
device; raw exceptions remained masked.
|
|
324
|
+
|
|
325
|
+
Evidence is retained in the workflow-pilot worktree under `.srcx/workflow-pilot/`:
|
|
326
|
+
|
|
327
|
+
- `plan.json`: SHA-256 `86d929c19ff69faaed6a264198e0b9c15bf32d3b721a31c503a08c4d2e12da39`.
|
|
328
|
+
- `run.json`: SHA-256 `f0ca1a5e6ac12d48e4929959b85b08e846fb239011125cb153aaa6d0babb1359`.
|
|
329
|
+
- `error-probes.json`: SHA-256 `a5fb5c44dc089466cee8a6bba1c4d374c46bba01f9eef24ac739cfeac72b8612`.
|
|
330
|
+
|
|
331
|
+
## Installed dev package first use
|
|
332
|
+
|
|
333
|
+
On 2026-09-26, the public `@functional-systems/srcx@0.1.0-dev.17` tarball from
|
|
334
|
+
source `98be125d45128a9395544b0925df591c0da08b39` passed a fresh npm consumer
|
|
335
|
+
installation and **23 CLI commands** covering local setup and live LambdaDB. The corresponding
|
|
336
|
+
[develop CI and publication](https://github.com/lambdadb/srcx/actions/runs/36178586841)
|
|
337
|
+
completed successfully. The registry `dev` tag selected dev.17 at inspection;
|
|
338
|
+
`latest` still selected the bootstrap dev.1, not a stable release.
|
|
339
|
+
|
|
340
|
+
The downloaded tarball's SHA-512 matched npm metadata, and its installed package
|
|
341
|
+
version/`gitHead` matched the intended source. Both npm attestation subjects
|
|
342
|
+
matched those tarball bytes; the provenance statement identified the expected
|
|
343
|
+
repository, commit, workflow and run. The attestation signature was not
|
|
344
|
+
independently verified in this local check.
|
|
345
|
+
|
|
346
|
+
The consumer used `npm install --ignore-scripts` in a new prefix, an isolated
|
|
347
|
+
`SRCX_CONFIG`/`SRCX_STATE_DIR`, and the installed `.bin/srcx` rather than the
|
|
348
|
+
checkout build. The existing Python 3.12 environment and cached Qwen model were
|
|
349
|
+
reused explicitly; all 34 pinned Python package versions and their active
|
|
350
|
+
installed dependency constraints matched. This was not a clean Python/model
|
|
351
|
+
installation, CPU/CUDA validation, or a new ranking benchmark.
|
|
352
|
+
|
|
353
|
+
| Check | Observed result |
|
|
354
|
+
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
355
|
+
| Version/help, configure, doctor | Expected dev.17 version/options; fresh connection settings; authentication/read check passed |
|
|
356
|
+
| Preview, register, discover | New synthetic Git repository; lexical preview had two files, two chunks, 44 tokens; one isolated Collection created |
|
|
357
|
+
| Commit A import/search/read | Validated publication, matching lexical result and exact original file |
|
|
358
|
+
| Optional local Qwen | Real cached model, finite reranker score, matching source read; 4.56 s external CLI wall time |
|
|
359
|
+
| Git tag mapping | `v1` Alias resolved to commit A |
|
|
360
|
+
| Commit B import/search/read | Changed source visible; deleted-file query returned no hits; A result handle still read exact A source |
|
|
361
|
+
| Managed semantic/hybrid | One search/read per mode against an existing immutable Collection of public srcx source; selected source matched Git |
|
|
362
|
+
|
|
363
|
+
The two synthetic commits were A `0d3bdc318ad1079339a46bc67cd7037f0ebfc3cc`
|
|
364
|
+
and B `9d652332bf1d29545970ccda2d823b8d4d1f627f`. Import commands took 90.45 s
|
|
365
|
+
and 41.44 s, including index visibility and Tag validation. These are single
|
|
366
|
+
integration measurements; they are not import-throughput or latency guarantees.
|
|
367
|
+
|
|
368
|
+
Usage was **one new lexical Collection, two imports, six searches and two managed
|
|
369
|
+
query embeddings**, with no new document embeddings or model downloads. All
|
|
370
|
+
commands completed; no failed-command replay was needed. Synthetic remote
|
|
371
|
+
resources and local artifacts remain available for inspection.
|
|
372
|
+
|
|
373
|
+
Retained evidence lives under `.srcx/first-use/` in the first-use worktree:
|
|
374
|
+
|
|
375
|
+
- `run/report.json`: reservations, command timings, versions and checks;
|
|
376
|
+
SHA-256 `10652c0cbf485e39be576f37b196873e66b284b6f07d3f2c5a86ebf72a7ff7ea`.
|
|
377
|
+
- `package/functional-systems-srcx-0.1.0-dev.17.tgz`: exact tested registry artifact;
|
|
378
|
+
SHA-256 `ec75eedd8c9031d5de3cace38f90f84ccf46f9b9723b13cbfc2e73ae9c7edde7`.
|
|
379
|
+
- `registry.json`, `dist-tags.json`, `attestations.json`, `python-runtime.json`,
|
|
380
|
+
bounded `acceptance.mjs`, command outputs, fixture source and result handles.
|
|
381
|
+
|
|
382
|
+
The documentation follow-up changes no runtime code, search defaults, published
|
|
383
|
+
package versions or deployment configuration. Later docs-only dev builds are
|
|
384
|
+
separate artifacts; the above live evidence remains attached to dev.17.
|
|
385
|
+
|
|
386
|
+
## Local reranker integration
|
|
387
|
+
|
|
388
|
+
The opt-in `search --rerank qwen` path was exercised with the cached
|
|
389
|
+
Qwen3-Reranker-0.6B revision `e61197ed45024b0ed8a2d74b80b4d909f1255473`,
|
|
390
|
+
Python 3.12, float32/MPS on the same Apple M5 Pro / 64 GB machine. A local model
|
|
391
|
+
check ranked a sorting function above an unrelated reader and assigned identical
|
|
392
|
+
scores to exact duplicate source. Offline snapshot loading initially rejected the
|
|
393
|
+
selectively downloaded cache; matching the download allowlist fixed this before
|
|
394
|
+
any live search. No model download was required.
|
|
395
|
+
|
|
396
|
+
Three existing repository questions were selected before running, with a fixed
|
|
397
|
+
20-candidate pool and a first-five result/read limit. The six CLI searches used
|
|
398
|
+
existing immutable Tags for srcx `8c0d1656d4d66a6461a32e9072b2e5f7fda9cec1`
|
|
399
|
+
and lambdadb-cli `513af6e4d262edd380013c86d51a20aad16274d7`. Baselines retrieved
|
|
400
|
+
20 results so candidate membership could be checked. All 28 selected-result
|
|
401
|
+
reads matched committed Git source, and every reranked result retained its
|
|
402
|
+
baseline candidate, retrieval score and Snapshot identity.
|
|
403
|
+
|
|
404
|
+
| Question / mode | Candidates | Baseline CLI | Qwen CLI | Qwen worker | First-five complete evidence, before → after |
|
|
405
|
+
| ------------------------------------------ | ---------: | -----------: | -------: | ----------: | -------------------------------------------- |
|
|
406
|
+
| `srcx-alias-name` / lexical | 4 | 2.04 s | 4.44 s | 2.46 s | yes → yes |
|
|
407
|
+
| `srcx-read-integrity` / semantic | 20 | 6.73 s | 9.75 s | 5.35 s | no → no |
|
|
408
|
+
| `lambdadb-cli-command-deadline` / semantic | 20 | 3.86 s | 8.58 s | 4.89 s | yes → yes |
|
|
409
|
+
|
|
410
|
+
CLI timings are external process wall times, excluding subsequent `read` checks;
|
|
411
|
+
worker timings include Python startup, fresh model loading and inference.
|
|
412
|
+
Network/cache/order effects are uncontrolled and these are single measurements,
|
|
413
|
+
not latency percentiles or proof of interactive suitability. The baseline prints
|
|
414
|
+
up to 20 hits while the reranked command prints up to five; both verify the same
|
|
415
|
+
candidate pool. Existing assistant-authored evidence labels were reused, with
|
|
416
|
+
no tuning or new independent relevance judgments. This is an integration smoke
|
|
417
|
+
check, not another ranking benchmark. It supports keeping reranking optional;
|
|
418
|
+
no defaults changed and Jev evaluation remains deferred.
|
|
419
|
+
|
|
420
|
+
There were six searches (four managed query embeddings), no new Collections,
|
|
421
|
+
document writes, document embeddings, retries or failed live commands. The
|
|
422
|
+
retained local report is `.srcx/reranker-smoke/live/report.json` in the integration
|
|
423
|
+
worktree (SHA-256 `0b1a406153a751def4106ce4e6dbeca4fd9f2439e02cefd04e5be111a4679568`).
|
|
424
|
+
Raw command outputs, the bounded runner and isolated result handles are retained
|
|
425
|
+
alongside it; credentials were not recorded.
|
|
426
|
+
|
|
427
|
+
Local validation passed 95 Node tests, 13 Python checks, typecheck, formatting,
|
|
428
|
+
version consistency and three installed-package CLI checks. Installed-package
|
|
429
|
+
checks include the bundled worker path and opt-in search/read protocol with a
|
|
430
|
+
synthetic worker; real model inference and LambdaDB searches were local checks,
|
|
431
|
+
not CI inference. See [setup and behavior](README.md#optional-local-qwen-reranker).
|
|
432
|
+
|
|
433
|
+
## Fixed-candidate CosQA reranking
|
|
434
|
+
|
|
435
|
+
The [completed Qwen comparison](eval/COSQA-RERANK-RESULTS.md), run on September 26
|
|
436
|
+
(Asia/Seoul), improved exact-content hit@10 from 57.4% to 64.8% with roughly one
|
|
437
|
+
second of local model computation per query. All 500 original candidate pools
|
|
438
|
+
and duplicate-ID ordering were preserved. The report separates official-ID
|
|
439
|
+
metrics, content-equivalence diagnostics, regressions and local latency.
|
|
440
|
+
|
|
441
|
+
## Independent CosQA BM25 cross-check
|
|
442
|
+
|
|
443
|
+
The [independent cross-check](eval/COSQA-BM25-RESULTS.md) reproduces lexical
|
|
444
|
+
quality after aligning score ties and documents duplicate-ID sensitivity in the
|
|
445
|
+
official task. Its supplemental content-equivalence metrics are distinct from
|
|
446
|
+
the unchanged official-label baseline.
|
|
447
|
+
|
|
448
|
+
## Public code retrieval baseline
|
|
449
|
+
|
|
450
|
+
At frozen executable `03ac468`, the pinned CoIR CosQA and MTEB CodeSearchNet
|
|
451
|
+
Python/Go baseline validated all 22,604 documents and managed vectors in immutable
|
|
452
|
+
Tags and collected 7,473 successful searches. Nine Python inputs exceeded the
|
|
453
|
+
existing query limit; all 27 mode/query outcomes remained zero-scored in the
|
|
454
|
+
2,500-query denominator for each mode. There were no API failures or retries.
|
|
455
|
+
|
|
456
|
+
Semantic nDCG@10 exceeded lexical and the current RRF hybrid on all three tasks.
|
|
457
|
+
This is an external-task retrieval baseline, not a full CoIR average, Git/CLI
|
|
458
|
+
integration validation or an agent coding-success benchmark. Product defaults
|
|
459
|
+
are unchanged. See [full metrics, usage and limitations](eval/PUBLIC-BENCHMARK-RESULTS.md)
|
|
460
|
+
and the [fixed protocol](eval/PUBLIC-BENCHMARK.md).
|
|
4
461
|
|
|
5
462
|
## Evidence boundary
|
|
6
463
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
464
|
+
The initial implementation passed local fixtures/fault injection/SDK transport checks,
|
|
465
|
+
a live synthetic A/B acceptance run, and an exact-package self-index of the public
|
|
466
|
+
srcx repository against the user-supplied LambdaDB connection. No private source
|
|
467
|
+
or paid embeddings were used. These checks are not a throughput, general
|
|
468
|
+
concurrency, or retrieval-quality benchmark. npm publication evidence is recorded
|
|
469
|
+
separately below. The persistent Git branch changes have a separate synthetic
|
|
470
|
+
live run recorded next; the earlier live runs do not validate this new path.
|
|
471
|
+
|
|
472
|
+
## Local reranking diagnostic
|
|
473
|
+
|
|
474
|
+
At frozen executable `ba9fa0f8ad5c57cb54ec0483d05faead78acf2c1`, the local
|
|
475
|
+
Qwen3-Reranker-0.6B treatment scored all 455 retained pairs without failures or
|
|
476
|
+
retries. Offline complete source evidence among five selections changed from
|
|
477
|
+
lexical **7/16 to 8/16**, semantic **5/16 to 9/16**, hybrid **8/16 to 10/16**.
|
|
478
|
+
There were no complete-answer losses; partial evidence declined in two pools.
|
|
479
|
+
No new CLI reads were made and the original labels remain unreviewed.
|
|
480
|
+
|
|
481
|
+
The run used 391,713 Qwen input tokens and 84.59 seconds on local MPS, with zero
|
|
482
|
+
paid API usage. Completed replay preserved score bytes/timestamps without model
|
|
483
|
+
loading. Local validation passed 86 Node tests, three Python protocol checks and
|
|
484
|
+
three installed-package checks; frozen Node 22/24 CI passed. See [results and
|
|
485
|
+
limitations](eval/RERANK-RESULTS.md), [frozen protocol](eval/RERANK-RUN.md) and
|
|
486
|
+
[preflight](eval/rerank-qwen-preflight.json) for provenance and bounds.
|
|
487
|
+
|
|
488
|
+
## Click/Cobra development diagnostic
|
|
489
|
+
|
|
490
|
+
At frozen harness `4f7c865055749c82641015a2302983b034877e23`, 48 actual CLI searches
|
|
491
|
+
completed sequentially on pinned public Click/Python and Cobra/Go sources with
|
|
492
|
+
managed small and existing text fallback. All **455 handles and 231 reads** passed
|
|
493
|
+
source/version checks. Complete first-five evidence was lexical **7/16**, semantic
|
|
494
|
+
**5/16**, hybrid **8/16**; natural-language tasks scored **2/6, 2/6, 4/6**. Top-ten
|
|
495
|
+
candidate availability was **8/16, 11/16, 10/16**. These are fixed assistant-authored
|
|
496
|
+
implementation labels without independent review or agent answer grading.
|
|
497
|
+
|
|
498
|
+
Both imports published validated immutable versions; no command failures or
|
|
499
|
+
resumes occurred. Usage reservations were 388,771 document input tokens, 32 query
|
|
500
|
+
embeddings, 350 query input tokens and 48 searches. Completed replays preserved
|
|
501
|
+
report bytes/timestamps without service calls. Local Node 24.15.0 passed **78 tests**,
|
|
502
|
+
typecheck, formatting and version checks; frozen-harness Node 22/24 CI and installed
|
|
503
|
+
package checks passed. [Results and limitations](eval/TRANSFER-RESULTS.md) include
|
|
504
|
+
report hashes, inspected cases and coverage/output costs; [protocol](eval/TRANSFER-RUN.md)
|
|
505
|
+
records fixed budgets. Earlier draft-preparation evidence below remains historical.
|
|
506
|
+
|
|
507
|
+
## Evaluation diagnostics and transfer draft
|
|
508
|
+
|
|
509
|
+
Evaluation subprocess failures now append safe command diagnostics with process
|
|
510
|
+
or JSON-decode stage, exit/signal metadata and allowlisted stderr. Fixture checks
|
|
511
|
+
cover no automatic retry, preservation across multiple failures, secret/source
|
|
512
|
+
omission, private file permissions, malformed output, output overflow and log-write
|
|
513
|
+
failure. This cannot recover stderr from old live failures. Node 24.15.0 passed
|
|
514
|
+
**75 tests**, typecheck, formatting and version checks for this follow-up.
|
|
515
|
+
The read-side regression invokes the actual `readHandle` for seven failure paths
|
|
516
|
+
and verifies both safe-message retention and omission of contaminated stderr.
|
|
517
|
+
|
|
518
|
+
A separate offline preparation imported pinned Click 8.1.8 and Cobra v1.9.1 Git
|
|
519
|
+
sources into local managed-small build artifacts, without service calls or
|
|
520
|
+
embedding generation. All 16 draft questions' byte hashes, source line ranges and
|
|
521
|
+
inclusion were verified. The 207 files contain 544 eligible chunks with 388,771
|
|
522
|
+
estimated embedding input tokens. Python/Go use the current text fallback; no new
|
|
523
|
+
parser or search behavior was added. These labels are assistant-authored and not
|
|
524
|
+
independently reviewed. See [draft protocol and reproduction](eval/TRANSFER-EVAL.md)
|
|
525
|
+
and [diagnostic retention rules](eval/COMMAND-DIAGNOSTICS.md). No retrieval quality,
|
|
526
|
+
provider cost or live operational reliability is measured by this preparation.
|
|
527
|
+
|
|
528
|
+
## Retrieval mode comparison
|
|
529
|
+
|
|
530
|
+
At application/harness commit `de5a23bbc2f0712d134066354b4313420d21fccd`, the
|
|
531
|
+
actual CLI completed 48 searches across the same two managed corpora and fixed
|
|
532
|
+
16-question suite. All **456 results/handles** and **236 reads** matched pinned
|
|
533
|
+
source and version facts. Revised-label complete evidence was lexical **16/16**,
|
|
534
|
+
semantic **8/16**, and hybrid **13/16**; unchanged original labels scored 14/16,
|
|
535
|
+
8/16, and 11/16. These are diagnostic coverage measurements, not human answer grades.
|
|
536
|
+
|
|
537
|
+
All three hybrid regressions contained the required evidence in search's top ten,
|
|
538
|
+
but outside the first five reads. Keep lexical as the default pending fresh-task
|
|
539
|
+
ranking evaluation. The run also exposed a query response omitting one managed
|
|
540
|
+
vector; same-Tag fetch hydration now preserves non-vector payload equality and
|
|
541
|
+
hit order/scores. The failed attempt remains separate from the complete fresh run.
|
|
542
|
+
|
|
543
|
+
Node 22/24 passed **67 tests**, typechecking and installed-package CLI checks after
|
|
544
|
+
the fix. The completed live report was revalidated without new service calls, and
|
|
545
|
+
its bytes/timestamp were unchanged. See [full results](eval/RETRIEVAL-MODE-RESULTS.md)
|
|
546
|
+
for per-mode metrics, inspected misses, input/usage accounting, source revisions,
|
|
547
|
+
report hashes and evidence limits; [protocol](eval/RETRIEVAL-MODES.md) documents
|
|
548
|
+
reproduction and effects.
|
|
549
|
+
|
|
550
|
+
## Query-style supplement
|
|
551
|
+
|
|
552
|
+
At harness commit `65c8e7060366f4df846c9b2bc08270e7337f0df1`, 72 searches tested
|
|
553
|
+
eight new tasks with identifier, natural-language and mixed formulations using
|
|
554
|
+
the same managed small model and the same two immutable publications. All
|
|
555
|
+
**696 result handles and 356 reads** matched source/version facts. Complete
|
|
556
|
+
first-five evidence by lexical/semantic/hybrid was **7/8, 7/8, 7/8** for identifiers,
|
|
557
|
+
**0/8, 3/8, 1/8** for natural descriptions and **5/8, 7/8, 6/8** for mixed queries.
|
|
558
|
+
These are eight paired tasks, not 24 independent judgments. Semantic helped on
|
|
559
|
+
this diagnostic; the original keyword-heavy result must not be generalized.
|
|
560
|
+
|
|
561
|
+
The frozen protocol adds verified candidate coverage at ranks 1/3/5/10, the first
|
|
562
|
+
complete prefix, stdout tokens and offline token-budget prefixes. No model,
|
|
563
|
+
ranking, read-selection or product default changed. The original suite/results
|
|
564
|
+
and incomplete run remain intact. A completed rerun preserved report bytes and
|
|
565
|
+
timestamp without service calls. Node 22.14.0 and 24.15.0 passed **69 tests**;
|
|
566
|
+
typecheck, formatting and frozen-harness CI passed. See [results and cases](eval/QUERY-STYLE-RESULTS.md),
|
|
567
|
+
[protocol](eval/QUERY-STYLES.md), and [embedding model research](eval/EMBEDDING-MODELS.md).
|
|
568
|
+
|
|
569
|
+
## Managed small versus large comparison
|
|
570
|
+
|
|
571
|
+
At frozen harness `6fa65b541dc50debdfa4f9a6297301b2cb3c2b53`, small (1536 dimensions)
|
|
572
|
+
and large (3072 dimensions) completed 240 searches over identical pinned source/chunk inputs.
|
|
573
|
+
All **2,304 result handles and 1,184 reads** passed source/version validation.
|
|
574
|
+
Style-suite complete top-five evidence was semantic **17/24 → 16/24** and hybrid
|
|
575
|
+
**14/24 → 16/24**; natural semantic improved **3/8 → 4/8**. The separate regression
|
|
576
|
+
set scored semantic **8/16 → 8/16** and hybrid **13/16 → 12/16**. All 40 lexical
|
|
577
|
+
candidate lists matched across models. Small coverage repeated the earlier runs.
|
|
578
|
+
|
|
579
|
+
An initial large attempt stopped twice with an unknown CLI search error; its
|
|
580
|
+
19 partial rows and two successful diagnostic queries remain excluded. A fresh
|
|
581
|
+
isolated run reused the same publications and completed without changing the
|
|
582
|
+
frozen protocol. All four completed reports revalidated without service calls
|
|
583
|
+
and retained their bytes/timestamps. Keep small as the initial managed choice
|
|
584
|
+
and large opt-in; these familiar diagnostic tasks do not establish a model winner.
|
|
585
|
+
|
|
586
|
+
Node 22.14.0 and 24.15.0 passed **72 tests**, typecheck and installed-package CLI
|
|
587
|
+
checks covering lexical/small/large. Formatting/version checks and frozen-code
|
|
588
|
+
CI passed. [Full results](eval/MODEL-COMPARISON-RESULTS.md) record per-query changes,
|
|
589
|
+
report hashes, original-label scores, all five roots' reserved usage, and limits;
|
|
590
|
+
[protocol](eval/MODEL-COMPARISON.md) records the predeclared comparison.
|
|
591
|
+
|
|
592
|
+
Review follow-up: resume and completed replay now reject saved rows whose category
|
|
593
|
+
is missing or differs from the frozen question, even when the stored summary was
|
|
594
|
+
recomputed to match the corruption. The subprocess regression first reproduced
|
|
595
|
+
the acceptance bug, then passed with the guard; valid replay and rejected reports
|
|
596
|
+
both preserve their bytes. Node 24.15.0 passed **73 tests** after this change.
|
|
597
|
+
The four completed model reports have no category mismatches and remain unchanged.
|
|
598
|
+
Their frozen harness remains the revision recorded above; the new harness requires
|
|
599
|
+
fresh run roots rather than rewriting historical runtime fingerprints.
|
|
600
|
+
|
|
601
|
+
## Managed OpenAI embedding acceptance
|
|
602
|
+
|
|
603
|
+
The opt-in managed preset passed a separate synthetic live run at application and
|
|
604
|
+
harness commit `177731386f76a13723a83aa8470d4e0715e29424` using Node 24.15.0 and
|
|
605
|
+
the user-supplied development connection. It completed at
|
|
606
|
+
`2026-09-24T20:46:46.305Z` in 111.706 seconds. Only synthetic source was uploaded.
|
|
607
|
+
|
|
608
|
+
- Both commits published validated immutable Tags, with six generated 1536-number
|
|
609
|
+
vectors in each corpus. Mixed file/manifest records correctly omitted vectors.
|
|
610
|
+
- Six filtered searches (lexical, semantic and hybrid for each version) returned
|
|
611
|
+
14 result handles; every full-file read matched the pinned Git blob byte for byte.
|
|
612
|
+
- The second import skipped unchanged records, removed deleted content, and kept
|
|
613
|
+
the original version's handle readable. Fresh repository discovery preserved the
|
|
614
|
+
managed preset and schema.
|
|
615
|
+
- Ordinary upserts submitted ten eligible chunk inputs across both imports. The
|
|
616
|
+
preflight upper bound was 167 estimated document input tokens; four searches
|
|
617
|
+
requested query embeddings. These counts are not provider-reported billed usage.
|
|
618
|
+
|
|
619
|
+
The first run at `fb5b6d8` correctly remained unpublished: this deployment omitted
|
|
620
|
+
vectors from list responses despite `includeVectors=true`, while fetch/query on
|
|
621
|
+
that same Tag returned them. The transport now fetches those listed IDs from the
|
|
622
|
+
same immutable Tag and requires exact non-vector payload equality before vector
|
|
623
|
+
validation. Regression checks reject missing fetch records and changed payloads.
|
|
624
|
+
The failed run and retry journal remain under `.srcx/live-managed/`; they were not
|
|
625
|
+
relabelled as successful evidence. The successful run has a separate Collection
|
|
626
|
+
and evidence directory, `.srcx/live-managed-verified/`, in the validation worktree.
|
|
627
|
+
Both synthetic Collections are retained for inspection.
|
|
628
|
+
|
|
629
|
+
The successful report SHA-256 is
|
|
630
|
+
`6c96ac8af9b79c85e98c84f1f01851906f0b1b3e4d96b51d9417cb59380ac532`;
|
|
631
|
+
its runtime fingerprint is
|
|
632
|
+
`7d8a8006820ee523a88e80d6614327000ce305cffafe377d18fda5b50ba9c947`.
|
|
633
|
+
A same-runtime rerun made no service calls and preserved the original report bytes.
|
|
634
|
+
The harness rejects changed runtime/destination/Node inputs and incomplete runs
|
|
635
|
+
before new requests; recovery after uncertain writes remains explicit.
|
|
636
|
+
|
|
637
|
+
Node 22.14.0 and 24.15.0 each passed **61 tests**, typechecking, and installed-tarball
|
|
638
|
+
CLI checks for both presets. Formatting, version validation and diff checks passed.
|
|
639
|
+
Local tests cover generated-vector failures, exact payload validation, unchanged
|
|
640
|
+
record reuse, uncertain-write recovery, preset/schema drift, query serialization,
|
|
641
|
+
and credential-free managed previews. Live checks used the built application APIs;
|
|
642
|
+
installed-package CLI checks used the loopback fault-injection store.
|
|
643
|
+
These checks establish integration/source correctness, not semantic relevance gains
|
|
644
|
+
or performance on real repositories. The earlier lexical evaluations remain separate.
|
|
645
|
+
|
|
646
|
+
## Default CLI search/read evaluation
|
|
647
|
+
|
|
648
|
+
The follow-up uses actual built CLI subprocesses with the unchanged default
|
|
649
|
+
syntax/path-scope-symbol preset across pinned public `srcx` and `lambdadb-cli`
|
|
650
|
+
commits. At harness commit `57b63e1cdbf7ec722b95bb0f40ac0ef5039af3e8`, both
|
|
651
|
+
publications validated and all **136 search results/handles** and **76 read
|
|
652
|
+
responses** matched their pinned source, version and citation. No embeddings
|
|
653
|
+
were used. The run completed at `2026-09-24T20:01:58.865Z`.
|
|
654
|
+
|
|
655
|
+
The frozen 16-question suite recovered complete labeled evidence for **14/16**.
|
|
656
|
+
The two remaining cases reflect a one-byte blank-line boundary and an omitted
|
|
657
|
+
alternative document/code answer, not demonstrated source-integrity failures.
|
|
658
|
+
Mean full CLI stdout was **7,383 tokens** per query. This fixed-five-read protocol
|
|
659
|
+
is distinct from the earlier full-chunk/token-budget comparison; neither measures
|
|
660
|
+
general task success. Labels remain assistant-authored without independent human
|
|
661
|
+
review. See [eval/CLI-RESULTS.md](https://github.com/lambdadb/srcx/blob/develop/eval/CLI-RESULTS.md)
|
|
662
|
+
for per-repository scores, inspected misses and evidence boundaries, and
|
|
663
|
+
[eval/CLI-WORKFLOW.md](https://github.com/lambdadb/srcx/blob/develop/eval/CLI-WORKFLOW.md)
|
|
664
|
+
for reproduction and normal Collection effects.
|
|
665
|
+
|
|
666
|
+
Local Node 24.15.0 passed **54 tests**, typechecking, formatting/version checks and
|
|
667
|
+
the installed-package CLI contract. Node 22/24 CI passed at the harness commit.
|
|
668
|
+
Live execution used built CLI subprocesses; package validation used a loopback
|
|
669
|
+
fixture. A completed rerun preserved the original report bytes and timestamp.
|
|
670
|
+
Raw evidence and recovery journals remain under `.srcx/cli-eval/` in the validation
|
|
671
|
+
worktree; the older pilot's original report remains unchanged.
|
|
672
|
+
|
|
673
|
+
## Retrieval evaluation harness
|
|
674
|
+
|
|
675
|
+
The internal pilot adds five checks for unique source-range scoring, token-budget
|
|
676
|
+
prefix selection, source/hit integrity, equal path-only enrichment, and rejecting
|
|
677
|
+
stale runtime checkpoints before any connection. With these checks, Node.js
|
|
678
|
+
24.15.0 passed **50 tests**, typechecking, version validation, and clean installed
|
|
679
|
+
package checks. The default CLI preset and config hash remain unchanged.
|
|
680
|
+
|
|
681
|
+
The suite fixes 16 queries, expected source byte ranges, and two full Git commits
|
|
682
|
+
before retrieval. Both chunkers materialize the same included files, use separate
|
|
683
|
+
config identities, and run through the existing immutable publication validation.
|
|
684
|
+
Live retrieval observations and limitations are in [eval/RESULTS.md](https://github.com/lambdadb/srcx/blob/develop/eval/RESULTS.md),
|
|
685
|
+
with reproduction instructions in [eval/README.md](https://github.com/lambdadb/srcx/blob/develop/eval/README.md). These diagnostic
|
|
686
|
+
labels were authored from source before querying and are not independently
|
|
687
|
+
human-reviewed judgments or a general retrieval-quality benchmark.
|
|
688
|
+
|
|
689
|
+
Post-review, `splitEvidence` now requires complete coverage of all required ranges
|
|
690
|
+
before classifying a result as split across chunks. The multi-range regression
|
|
691
|
+
brings the local suite to **51 passing tests**. Offline rescoring of all 32 retained
|
|
692
|
+
query/method pairs preserved every metric and category summary. The original live
|
|
693
|
+
report, runtime fingerprint, and completion timestamp were not changed.
|
|
694
|
+
|
|
695
|
+
## Persistent Git branch tracking
|
|
696
|
+
|
|
697
|
+
Local regression coverage exercises one writer across consecutive commits,
|
|
698
|
+
branch-local deletion/diff baselines, separate branches sharing canonical Tags,
|
|
699
|
+
rewinds to already published commits, and imports from fresh local state. Fault
|
|
700
|
+
injection verifies last-published branch resolution during partial writes, pending
|
|
701
|
+
ownership protection when the local journal is missing, stale/corrupt candidate
|
|
702
|
+
rejection, and retries after uncertain control writes. Branch/tag ambiguity and
|
|
703
|
+
explicit full refs are covered.
|
|
704
|
+
|
|
705
|
+
The CLI fixture also imports and updates a tracked branch through the real SDK
|
|
706
|
+
transport and selects it for search, resolve, and read. The same fixture runs
|
|
707
|
+
against the installed tarball. These checks use a loopback fault-injection model,
|
|
708
|
+
not a live LambdaDB deployment.
|
|
709
|
+
|
|
710
|
+
A separate **live LambdaDB run passed all 12 checkpoints** on September 25 using
|
|
711
|
+
Node **24.15.0**, application source commit
|
|
712
|
+
`f42a9141cef3bfc0b604e1b14a00c79607c7dd98`, and the original checkout's `.env.local`
|
|
713
|
+
loaded explicitly through Node. The run took **414.195 seconds** and uploaded only
|
|
714
|
+
synthetic Git source with no paid embeddings. It verified:
|
|
715
|
+
|
|
716
|
+
- First-import timeout remains unpublished, followed by same-journal recovery.
|
|
717
|
+
- A -> B uses one fixed Collection Branch; pending B still resolves/searches A,
|
|
718
|
+
and a fresh local state cannot overwrite that pending branch.
|
|
719
|
+
- Added/modified/deleted code searches correctly after B; old A evidence still
|
|
720
|
+
reads the exact original source bytes.
|
|
721
|
+
- A second Git branch shares canonical A/B Tags while maintaining its own writer
|
|
722
|
+
baseline, including B -> A -> B movement and an unchanged repeated import.
|
|
723
|
+
- A SHA-only new commit uses a manual `work-*` writer.
|
|
724
|
+
|
|
725
|
+
A separate invocation of the actual CLI against that live Collection passed
|
|
726
|
+
branch `resolve`, branch-selected `search`, and a full-file `read` compared byte
|
|
727
|
+
for byte with the pinned Git blob. It used the built CLI, not a registry-installed
|
|
728
|
+
package. Local installed-package evidence remains separate above.
|
|
729
|
+
|
|
730
|
+
The reproducible harness is `scripts/live-branches.mjs` (`npm run
|
|
731
|
+
test:live:branches`). Its ignored evidence is `.srcx/live-branches/report.json`
|
|
732
|
+
and `.srcx/live-branches/cli-report.json` in the validation worktree. The report
|
|
733
|
+
records the exact source commit, harness SHA-256, per-check results, and resource
|
|
734
|
+
URL. One synthetic Collection is retained with two tracked writers, one manual
|
|
735
|
+
writer, the two control/checkpoint Branches, three canonical commit Tags, and seven
|
|
736
|
+
candidate Tags. No application fix was needed during this live run.
|
|
737
|
+
|
|
738
|
+
On Node **22.14.0** and **24.15.0**, typechecking, all **43 tests**, and installed
|
|
739
|
+
package checks passed. Formatting, release-version validation, and `git diff
|
|
740
|
+
--check` also passed locally. These results are not GitHub CI evidence.
|
|
741
|
+
|
|
742
|
+
## Final branch review validation
|
|
743
|
+
|
|
744
|
+
The final pre-PR review reproduced a read-order race: a concurrent publication
|
|
745
|
+
could advance branch control beyond the version list already captured by the
|
|
746
|
+
reader. Resolution now pins the control record first. The review also found that
|
|
747
|
+
live reruns could skip saved checkpoints while replacing the reported source
|
|
748
|
+
revision; checkpoints now require matching runtime, harness, fixture, lockfile,
|
|
749
|
+
and Node fingerprints and preserve their original revision/completion time.
|
|
750
|
+
Regression tests cover both cases, including rejecting stale evidence before any
|
|
751
|
+
connection or report mutation.
|
|
752
|
+
|
|
753
|
+
After these fixes, Node **22.14.0** and **24.15.0** each passed typechecking,
|
|
754
|
+
all **45 tests**, and installed-package checks. Formatting, release-version
|
|
755
|
+
validation, and diff checks passed locally.
|
|
756
|
+
|
|
757
|
+
A fresh synthetic live run at application/harness commit
|
|
758
|
+
`2988c7e1826a44cfed48381681d0125b28ae9086` passed all **12 checkpoints** in
|
|
759
|
+
**432.836 seconds**. The built CLI also passed live branch resolution,
|
|
760
|
+
search, and exact source reads. Final reports are retained separately under
|
|
761
|
+
`.srcx/live-branches-review/report.json` and
|
|
762
|
+
`.srcx/live-branches-review/cli-report.json`; the previous run remains intact.
|
|
763
|
+
This final run retained one synthetic Collection with two tracked writers, one
|
|
764
|
+
manual writer, two control/checkpoint Branches, three canonical commit Tags,
|
|
765
|
+
and seven candidate Tags. CI evidence, once available on the PR, is separate
|
|
766
|
+
from these local and live results.
|
|
767
|
+
|
|
768
|
+
## Initial npm package and live self-index
|
|
769
|
+
|
|
770
|
+
The exact `0.1.0-dev.1` tarball from merged commit
|
|
771
|
+
`f94f947bf593b2f8498c07e130933b0ab444f868` passed clean installation, CLI execution,
|
|
772
|
+
WASM parsing, and the loopback import/search/read contract. Its installed CLI then
|
|
773
|
+
imported that same Git commit into LambdaDB: **37 files, 260 chunks**, with
|
|
774
|
+
inventory, content, and query validation passing. A `validateBuild` query returned
|
|
775
|
+
three results from `src/build.ts`; the full-file read matched the pinned Git blob
|
|
776
|
+
byte for byte. This was a lexical-only import (`embedding=none`).
|
|
777
|
+
|
|
778
|
+
The first npm publication used this tested tarball with the `dev` dist-tag. The
|
|
779
|
+
registry tarball's SHA-512 matched the candidate, and a clean installation of the
|
|
780
|
+
downloaded registry tarball passed the same CLI contract. Registry signatures are
|
|
781
|
+
present. The local bootstrap has no GitHub Actions provenance. npm also created
|
|
782
|
+
`latest=0.1.0-dev.1`; that tag does not represent a stable release.
|
|
783
|
+
|
|
784
|
+
Local evidence is retained under `.srcx/releases/0.1.0-dev.1-f94f947/` (ignored),
|
|
785
|
+
including `candidate.json`, `live-publication.json`, `live-verification.json`,
|
|
786
|
+
`registry-version.json`, and the exact candidate and downloaded tarballs.
|
|
787
|
+
The source commit's [Node 22/24 CI](https://github.com/lambdadb/srcx/actions/runs/36035063463)
|
|
788
|
+
also passed. Current distribution and automation status is in
|
|
789
|
+
[RELEASING.md](RELEASING.md).
|
|
790
|
+
|
|
791
|
+
## First automatic development publication
|
|
792
|
+
|
|
793
|
+
[CI attempt 3](https://github.com/lambdadb/srcx/actions/runs/36035063463/attempts/3)
|
|
794
|
+
published `0.1.0-dev.3` using npm Trusted Publishing from the same reviewed commit.
|
|
795
|
+
The version suffix is the first-parent commit count. The registry's `gitHead`
|
|
796
|
+
and SLSA provenance both identify `f94f947bf593b2f8498c07e130933b0ab444f868`;
|
|
797
|
+
provenance also identifies `lambdadb/srcx`, `.github/workflows/publish.yaml`, and
|
|
798
|
+
the GitHub-hosted workflow run. The downloaded tarball's SHA-512 matches registry
|
|
799
|
+
metadata. A clean install by package name/version passed CLI execution and the
|
|
800
|
+
loopback import/search/read contract. `npm audit signatures` verified all eight
|
|
801
|
+
installed registry signatures and three attestations, including srcx provenance.
|
|
802
|
+
`dev=0.1.0-dev.3`; `latest=0.1.0-dev.1` remains the bootstrap prerelease.
|
|
803
|
+
|
|
804
|
+
The initial automatic attempt stopped during the pre-write metadata lookup while
|
|
805
|
+
npm's full package listing still returned 404. After the listing became visible,
|
|
806
|
+
only the failed publishing job was rerun. No publication write was retried to
|
|
807
|
+
work around propagation. Local evidence is retained in `registry-dev3.json`,
|
|
808
|
+
`attestations-dev3.json`, and `provenance-dev3.json` under the release directory
|
|
809
|
+
above. No stable release, GitHub Release, or Homebrew formula was created.
|
|
13
810
|
|
|
14
811
|
## Local checks
|
|
15
812
|
|
|
@@ -76,11 +873,9 @@ The test suite covers:
|
|
|
76
873
|
reruns. Simulated registry delays/failures verify bounded post-write reads and
|
|
77
874
|
no automatic publication retry; no test writes to npm.
|
|
78
875
|
|
|
79
|
-
Release infrastructure is
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
enabling `NPM_DEV_PUBLISH_ENABLED` remain separate release steps. See
|
|
83
|
-
[RELEASING.md](RELEASING.md); no npm or Homebrew release was performed in this setup.
|
|
876
|
+
Release infrastructure is in `.github/workflows/publish.yaml` for Node 22/24.
|
|
877
|
+
The local checks above are distinct from the CI, npm, and live-service evidence
|
|
878
|
+
recorded separately. No stable/rc or Homebrew release has been performed.
|
|
84
879
|
|
|
85
880
|
The demo writes [.srcx/demo-report.json](.srcx/demo-report.json). That generated
|
|
86
881
|
report identifies the retained synthetic repository, A/B build artifacts, counts,
|
|
@@ -89,24 +884,38 @@ Those temporary paths are run-specific and are not committed fixtures.
|
|
|
89
884
|
|
|
90
885
|
## Implementation choices and remaining scope
|
|
91
886
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
887
|
+
Implemented CLI behavior:
|
|
888
|
+
|
|
889
|
+
- Lexical search remains the default. Separate managed Collections support
|
|
890
|
+
OpenAI `text-embedding-3-small` (1536 dimensions) and `text-embedding-3-large`
|
|
891
|
+
(3072 dimensions), with explicit semantic and RRF hybrid search. The CLI rejects
|
|
892
|
+
arbitrary fixture/custom vector presets, not the supported managed presets.
|
|
893
|
+
- Optional local Qwen reranking uses a pinned model revision, bounded candidates,
|
|
894
|
+
verified source and stable ties. It requires separate Python/model setup;
|
|
895
|
+
startup and full-command latency are reported above. Jev comparison is deferred.
|
|
896
|
+
- Git branch imports reuse a fixed `git-*` Branch with its last validated immutable
|
|
897
|
+
baseline; SHA/tag imports retain frozen `work-*` writers. Explicit `--resume`
|
|
898
|
+
reconciles the same pending import through its journal. Observed Git tags map
|
|
899
|
+
to Aliases, including multiple names for one published commit.
|
|
900
|
+
- Local diagnostics, public retrieval baselines and the fixed-candidate CoSQA
|
|
901
|
+
reranking comparison are complete within their documented bounds. They do not
|
|
902
|
+
establish universal relevance gains, production throughput or agent-task success.
|
|
96
903
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
904
|
+
Remaining operational scope: automatic Git observation, recovery of abandoned
|
|
905
|
+
workspaces without their required journal, branch rename/deletion handling,
|
|
906
|
+
authoritative Alias pruning, retention/garbage collection, and configuration
|
|
907
|
+
migration. Failed/candidate resources and local build artifacts are retained.
|
|
908
|
+
A single importing host is required: local locks and remote pending ownership
|
|
909
|
+
are not a distributed compare-and-set or lease protocol. UI, MCP and hosted SaaS
|
|
910
|
+
remain outside the first CLI scope. No stable/rc or Homebrew release is claimed.
|
|
103
911
|
|
|
104
912
|
Parsing uses the pinned packaged grammars. Unsupported/new syntax can fall back
|
|
105
913
|
and is recorded; no claim of complete language-version coverage is made. There is
|
|
106
914
|
no optimal-chunking claim. The fixed-window baseline is implemented internally;
|
|
107
|
-
the
|
|
108
|
-
|
|
109
|
-
|
|
915
|
+
the first 16-query live lexical comparison is recorded in [eval/RESULTS.md](https://github.com/lambdadb/srcx/blob/develop/eval/RESULTS.md).
|
|
916
|
+
It is a single-repository diagnostic, not a general optimal-chunking result. The
|
|
917
|
+
in-memory test model does not approximate Lucene ranking, distributed indexing,
|
|
918
|
+
retention, or compaction timing.
|
|
110
919
|
|
|
111
920
|
Canonical publication records exist on main; listings require both the remote
|
|
112
921
|
summary and the matching immutable Tag manifest. A candidate or a lone `ver-*`
|