Skip to content

test(correctness): add semantic conformance gate - #292

Draft
MartinKalema wants to merge 3 commits into
docs/258-invariant-architecturefrom
test/288-semantic-conformance-gate
Draft

MartinKalema wants to merge 3 commits into
docs/258-invariant-architecturefrom
test/288-semantic-conformance-gate

Conversation

@MartinKalema

@MartinKalema MartinKalema commented Jul 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a machine-readable matrix for twelve required Convex semantic dimensions, mapped to INV-01 through INV-16, executable proofs, owning issues, current evidence, and explicit release gaps.
  • Add a tiered runner for bounded PR, nightly, and strict release modes with seeds, per-proof logs, timeouts, process-tree cleanup, and replay metadata.
  • Add PR, scheduled cluster, and reusable release workflows plus local-image verification and six-node diagnostic capture.
  • Enforce invariant and dangerous-interleaving declarations in pull request descriptions.
  • Make the Elle history model consume and print the retained conformance seed.

The strict release result remains intentionally blocked at 0 proven, 6 partial, and 6 blocked dimensions. Passing protocol tests is not represented as proof of complete Convex semantics.

Issue

Implements #288.

This PR is stacked on #291 because the matrix references its normative invariant architecture. It also requires #290 before final validation and merge because #290 contains the already-generated read-after-write OpenAPI fixture and the catalog test-helper warning fix.

Distributed Correctness Review

Contract

Affected invariants and authority:

INV-01, INV-02, INV-03, INV-04, INV-05, INV-06, INV-07, INV-08, INV-09, INV-10, INV-11, INV-12, INV-13, INV-14, INV-15, and INV-16. The distributed correctness model remains normative; the checked-in semantic matrix is the machine-readable release authority, while each protocol retains the authority named in #291.

Visibility And Time

This PR does not change database visibility or acknowledgement behavior. It prevents release automation from treating eventual convergence as proof of atomic visibility, serializability, portable read-your-writes, or reactive completeness.

Visibility/acknowledgement point:

Unchanged. The gate records and tests the existing protocol boundaries; release eligibility requires every semantic dimension to be marked proven and every selected proof to pass.

Replay And Failure

Dangerous interleaving tested:

The bounded suite forces write-scaling and Raft fault interleavings. The nightly suite adds seeded Elle history checking and the real six-node Docker harness, including NATS outage, participant/coordinator restart, no-quorum writes, follower catch-up, post-ack cleanup restart, and repeated leadership churn. Failures retain the runner seed, command, exit/signal/timeout, complete output, Elle graph, image identity, topology, node state, and timestamped logs.

Transactions And Reactivity

The matrix explicitly keeps multi-partition snapshot derivation and distributed reactive completeness partial or blocked. No convergence assertion upgrades either dimension to proven.

Catalog, Workers, And Security

Catalog-version activation, fenced workers, backup/restore, dynamic membership, and online placement remain release blockers with owning issues. Cluster diagnostics avoid full container environment dumps.

Validation

  • 13/13 conformance runner contract tests passed.
  • 78/78 database write-scaling tests passed.
  • 16/16 Rust Raft failover tests passed.
  • Seeded Elle history proof passed and emitted its DOT graph.
  • A clean local backend image was built with pull policy never; all six containers were healthy on image sha256:23ac2aa51b948ac0386528a357eaccd941f91ad72adc8b47c88ef4e70d4bf8e7.
  • Docker write-scaling passed 146/146 and Docker Raft failover passed 24/24.
  • Strict release dry-run correctly rejected all twelve unproven dimensions.
  • Shell syntax, YAML parsing, Prettier, rustfmt for the changed Rust file, ASCII policy, and diff checks passed.
  • The parent-base local-backend suite is 99/100. test_api_specs_match generated blob 20cb352a..., byte-identical to the fixture already committed in fix(replication): keep selective delivery out of replica apply #290. This branch does not duplicate it.

Remaining Risk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant