Skip to content

Gate P1 — Incremental counting kernel

Status: Gate PASSED (2026-10-20). Every layer passed on commit 05061e2, which also passed independent review: - Linux/macOS CI: run 39436790664 - Nightly exhaustive and mutation audit: run 39436822063 P0 Gate passed, including Linux/macOS CI. See P1-report.md.

Scope: SPEC §3.3–3.4, §5 P1, §8.2; Counting / FullRecompute Maintainer facade, Pearce–Kelly plus NaiveTopo differential reference, stats / NoStats, paranoid, memoized L1/L2 queries, WHY / WHY_NOT, Reachable/Exact IMPACT, in-memory DIFF, testkit shapes and ShapeStats. No persistence, server or P3 certificate work.

Layer Required evidence Status
G0 SD1–SD19 preserved; ADRs; DA1–DA6; no prohibited mechanisms Pass; ADR 0005 accepted (owner-chosen per-scope calibration)
G1 fmt, Clippy, tests, dependency policy, cargo-deny, Linux/macOS CI Pass: CI run 39436790664 on 05061e2 (Linux + macOS)
G2 All P0 goldens in every exact mode; T05, T06c, T06d-cur, T07d, T08, T08b, T22, T23, T27, T30, T31 Pass (52 P0 + 24 P1 tests across modes)
G3 PROP1–PROP9; 10,000 fixed seeds; all coverage thresholds; nightly depth-6 exhaustive gate; depth-8 report; counting/txn/arena/memory mutation closure Pass: local, and nightly run 39436822063 (depth 6 + mutation) on 05061e2; mutation 394 tested / 361 caught / 33 unviable / 0 surviving, no waivers
G4 No additional P1-specific gate N/A
G5 100K revisions / ~300K incidences, multi_support(0.3) + hub, E_visited<=100: commit p99<=1ms; CURRENT L0<=50us; WHY depth3<=200us; memory per ADR 0005: hot<=72, inputs<=50, query_cache<=49 B/inc, history<=58 B/change, live heap<=sum Pass on both shapes (live heap 181.15 / 188.87 B/inc; every scope PASS by upper bound)
G6 MongoDB→PostgreSQL integration scenario Pass
G7 P0 regression carried forward Pass locally in both modes
G8 README, semantics/prior art, status, changelog/report synchronized Pass
Independent review Separate non-implementing reviewer per SPEC §4.2 Kernel review closed; compaction review: 0 blockers, 4 major + 7 minor addressed (see report)

Coverage thresholds: >=5% mixed head/base on the same revision in one transaction;

=5% alternative-support saves; >=3% cycle rejections; >=3% CAS conflicts; =3% transactions adding a rule and its premise; >=2% PK slow paths. No threshold or initial budget may be relaxed merely to make this gate pass.