Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 3.05 KB

TEST-NEEDS.adoc

File metadata and controls

70 lines (54 loc) · 3.05 KB

TEST-NEEDS: squeakwell

Current State (2026-11-04; FFI row updated 2026-11-09)

Category Count Details

Source modules

6 Rust

main, lib, engine, ingest, manifest, abi (comment-only), verisim

Unit tests

10

tests/unit_test.rs — ingest format detection, workdir layout, stub engine entry points

Property tests

5

tests/property_test.rs (fixed-input fixtures, no proptest crate) — ingest determinism, octad directory completeness, stub recovery terminates, level monotonic, query functions stable

E2E tests

8

tests/e2e_test.rs — CLI subcommands against the stub engine

Benchmarks

3

benches/squeakwell_bench.rs (criterion) — measure stub dispatch only

Fuzz tests

0

tests/fuzz/ holds a placeholder, no harness

Idris2 / Zig tests

0

No .idr files exist; the Zig FFI template was deleted on 2026-11-05 (src/interface/ffi/README.adoc)

All 23 tests pass (cargo test), but every one exercises a stub: the engine runs a 5-phase loop that prints phase names and persists placeholder drift values. Green here means "the scaffold is wired", not "recovery works".

What’s Missing

Engine (CRITICAL — blocks everything else)

  • ❏ Fixpoint loop over partial octads (guarded fill, resolve, measure); max_iterations is parsed but never used

  • ❏ Lexicographic measure (|missing|, nconflicts) and a test that it strictly decreases or the state is a fixpoint (the Progress invariant in src/abi/mod.rs)

  • ❏ Proptest laws for resolve: commutative, associative, idempotent, permutation-invariant (the join-semilattice conditions that make verisimdb Octad.v merge theorems apply)

  • ❏ Golden damaged-dataset fixtures (CSV + JSON fragments with deleted and contradicted fields) with expected review-queue contents

VeriSimDB integration

  • ❏ Client targets real verisim-api routes (POST /octads, PUT /octads/{id}, /normalizer/trigger/{id}, /drift/entity/{id}); today it PUTs to /v1/<collection>/<id>, which does not exist

  • ❏ Integration test against a running verisim-api (podman), gated behind a feature or env var

VCL-UT integration

  • ❏ Grade recovered entities through vclt-gate (or link vcltotal-parse) and assert the L0–L6 cap is reported, never faked

Aspect Tests

  • ❏ Security: ingest of hostile dumps (path traversal in fragment names, oversized rows, malformed UTF-8)

  • ❏ Integrity: export emits only entities whose enumerated fibre is a singleton; every non-singleton fibre is in the review queue and an export attempt on it is a hard error

  • ❏ Performance: convergence iterations vs. number of fragments (bench), ingest throughput

  • ❏ Observability: phase events carry real drift and measure values

Self-Tests

  • ❏ squeakwell doctor self-diagnostic (verisim reachability, gate binary present, workdir sanity)

Priority: P0 (CRITICAL)

See docs/ROUTE-PLAN.adoc for the empirical experiments that gate the engineering work.