You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lands Deliverable 2's Rust reference core (the LatticeCore impl the migration
plan calls for behind the seam; the AffineScript->Wasm swap follows once the
bridge exists, ADR-006), plus the Rust/SPARK compliance the repo was missing.
Engine (src/lattice/mod.rs): Kosaraju SCC-condensation -> DAG/partial order,
LOD zoom (sound + complete), meet (LCA; meet-semilattice — full join NOT
claimed). 6 property tests assert the laws (PROOF-NEEDS P2a/P4/P1b — tested,
not proved).
Ingest (src/ingest.rs): std-only fail-soft filesystem walk -> lattice (git2
history ingest deferred). Store (src/store.rs): LatticeStore trait +
InMemoryStore default; VeriSimDB octad backend over HTTP behind --features
verisim (no federation).
Build: removed the unresolvable affinescript-runtime PATH dep (the cargo
blocker) — re-added as a git/published dep when the bridge lands; added the
verisim feature. cargo test green: 30 tests pass.
Rust/SPARK (estate "Rust means Rust/SPARK"): added
docs/decisions/rust-spark-stance.adoc (honest: no FFI seam yet -> Idris2/Zig
ABI N/A; verifiable core migrating to AffineScript) and the missing
.github/workflows/spark-theatre-gate.yml (lenient).
Docs: PROOF-NEEDS.md gains a categorised "Proof status"; STATE + TEST-NEEDS
updated to the real state.
https://claude.ai/code/session_01JNCDaWMB8NV6nAPrvmTg4w
affine-core-reality = "ASPIRATIONAL — AffineScript has no working compiler yet; these files cannot build, and as written they call Rust crates (git2/postgres) which AffineScript does not bind"
40
-
git-parsing = "NOT WIRED (git2 feature off by default; .affine calls git2 but cannot run)"
ingest = "REAL but filesystem-only (src/ingest.rs, std-only, fail-soft). git2 HISTORY ingest NOT yet wired."
38
+
store = "REAL: LatticeStore trait + InMemoryStore default; VeriSimDB octad backend over HTTP behind --features verisim (src/store.rs). Not yet wired into CLI/REST."
39
+
host-reality = "CLI/REST still thin; the compat affine::{build_lattice,query_lattice} shim is now IO-free (no more println-only stubs)."
41
40
embeddings = "NOT WIRED (tch/PyTorch feature off by default)"
42
-
persistence = "NOT WIRED (postgres feature off by default)"
43
-
proofs = "ZERO (no .idr/.v/.lean/.agda). The 'lattice' noun is currently unearned — see PROOF-NEEDS.md"
44
-
test-reality = "27 tests pass but they assert 'does not panic' over println stubs; honest as smoke tests, overstated as a 7-category pyramid"
41
+
affine-core = "DEFERRED (ADR-006 bridge-first): the Rust engine is the reference core; the .affine core lands after the Rust↔AffineScript bridge."
42
+
proofs = "ZERO mechanized (no .idr/.v/.ads). P2a/P4/P1b are TESTED not proved — see PROOF-NEEDS.md 'Proof status'. 'lattice' = meet-semilattice + digraph (full join not claimed)."
43
+
rust-spark = "Stance documented (docs/decisions/rust-spark-stance.adoc) + spark-theatre-gate.yml added (lenient). Idris2/Zig ABI seam N/A until an FFI surface exists."
44
+
tests = "30 pass (10 new lattice/ingest/store + 20 compat integration/property/api). cargo test exit 0."
45
45
46
46
[crg]
47
47
grade = "C"
48
48
achieved = "2026-04-04"
49
-
caveat = "Grade C reflects test-CATEGORY presence, not behavioural coverage of real lattice logic (none exists yet). See READINESS.md + TEST-NEEDS.md."
49
+
caveat = "Superseded 2026-06-04: the lattice engine is real and its properties are tested (P2a/P4/P1b). Mechanized proofs still owed (PROOF-NEEDS.md). See READINESS.md + TEST-NEEDS.md."
50
50
next = "Grade B requires 6 quality targets (lint/fmt/doc-coverage/etc.)"
51
51
52
52
[blockers-and-issues]
53
53
blockers = [
54
-
"affinescript-runtime path dep unresolvable without sibling repo (severity: low; feature-gated off)",
55
-
"the .affine core cannot compile (AffineScript compiler not ready) AND is written against Rust crates it cannot bind (severity: high; design rethink needed)",
56
-
"'lattice' is currently a typed DAG with no proven meet/join (severity: medium; see PROOF-NEEDS.md)",
54
+
"RESOLVED 2026-06-04: removed the unresolvable affinescript-runtime path dep from Cargo.toml (cargo build now green); re-add as git/published dep when the bridge lands (ADR-006)",
55
+
"Deliverable 1 (Rust↔AffineScript bridge, in affinescript repo) blocks the .affine core migration (severity: high; docs/MIGRATION-PLAN.adoc)",
56
+
"'lattice' is a meet-semilattice + digraph; meet/zoom tested not proved (severity: medium; PROOF-NEEDS.md)",
57
57
]
58
58
template-debt = [
59
59
"RESOLVED 2026-06-03: 0-AI-MANIFEST.a2ml had [YOUR-REPO-NAME]/{{AUTHOR}} placeholders",
"DELIVERABLE 1 (in affinescript repo, runtime/): build the Rust loader + marshalling for compiled AffineScript — the affine-js equivalent for Rust. Acceptance: a Rust test loads a compiled .affine fn, calls it, round-trips a string via a host extern fn. See docs/MIGRATION-PLAN.adoc.",
73
-
"DELIVERABLE 2 (here, once 1 lands): thin Rust host (git2 + verisim HTTP DB + actix) + pure .affine lattice core over Wasm, behind a `trait LatticeCore` seam.",
73
+
"LANDED 2026-06-04: Rust reference lattice core (SCC-condensation + partial order + LOD zoom + meet) + filesystem ingest + verisim store seam + 10 tests; cargo green; Rust/SPARK stance + spark-theatre-gate added. NEXT here: wire CLI/REST to ingest→lattice→store, add criterion benches, git2 history ingest.",
74
74
"Earn the 'lattice' word: SCC-condensation + partial order in the core, then discharge PROOF-NEEDS.md P1-P2 (Idris2).",
75
75
"Tests/benches: replace smoke-over-stubs with property tests (partial-order laws, zoom soundness/completeness) + criterion benches; strict-but-passable CI with an AffineScript compile gate.",
0 commit comments