Commit 7301294
feat: vendor real eclipse-score rust_kvs + verify gate that runs bazel tests
Replaces the toy 80-line in-memory KVS with the actual eclipse-score
rust_kvs sources (Apache-2.0, vendored verbatim at vendor/rust_kvs/)
plus a tiny no-op shim for score_log/baselibs_rust at
vendor/score_log_shim/. The vendored crate compiles natively under
bazel rust_library and runs all 244 of its upstream unit tests via
bazel rust_test.
tools/verify.py is no longer a stub. It reads each comp-req artifact's
new `verified-by:` list (`<bazel-target>:<test-fn-name>` entries),
discovers tests via the bazel target binary's --list, then invokes
`bazel test --test_arg=--exact --test_arg=<name>` per entry. PASSED /
FAILED / MISSING reflects real bazel-test outcomes.
Adds tests/surface/surface_tests.rs — one #[test] per comp-req that
asserts the upstream's verbatim RST text against the vendored impl.
Honest finding (clean-room-verified across both Rust and C++ sources):
comp_req__kvs__key_naming (alphabet [A-Za-z0-9_-]) and
comp_req__kvs__key_length (32-byte cap) are documented but unenforced
and untested. The gate goes red on those two comp-reqs; that's the
LS-N demonstration vs. coverage-wedge reporting.
CI collapses into a single job that installs bazelisk, runs rivet
validate, bazel build, and make verify.
Final gate output: 4 PASSED, 2 FAILED, 0 MISSING.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1b12c12 commit 7301294
32 files changed
Lines changed: 6727 additions & 205 deletions
File tree
- .cargo-shim
- .github/workflows
- artifacts
- tests/surface
- tools
- vendor
- rust_kvs
- src
- score_log_shim
- score_log_derive
- src
- score_log
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | | - | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| |||
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
21 | | - | |
22 | | - | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
54 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
55 | 52 | | |
56 | 53 | | |
57 | | - | |
58 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments