Skip to content

Implementation status

P11 G0 passed (2026-11-20) (P11 gate, ADR 0019 r0.7 accepted, SPEC v1.11.0). The design covers cascade-bounded lazy maintenance (a commit defers propagation past a work budget; settled reads equal eager; unsettled STRICT reads fail closed), op_log format 7 with mixed-format logs, explicit payload GC with a K1–K5 keep set and offline compaction, and a measured layout ablation. Postgres is out of P11. Nothing is implemented yet; the installed release stays at format 6 / protocol 8.

Gate P10 passed (2026-11-18, owner acceptance; SPEC v1.10.1). Deviations declared by the owner: G4's team_doc fuzz ran 17.4 h, G5's git commit budget is measured over a trivial hook, and G6 is the bare-remote trial only.

P10 G0 passed (2026-11-16) (P10 gate, ADR 0018 r0.6 accepted, SPEC v1.10.0). The design covers Git-root team exchange, deterministic replicas, per-branch local mirrors, authorised proposal queues and publishing, immediate announce fences, strict history, and one-way compaction checkpoints. The final review's Compact capacity exception is clarified: ordinary proposals reserve one future Compact id; Compact consumes that reserve and checks its actual encoded size. Implementation (2026-11-17): milestones 1–4 are done and verified on the remote Linux host (workspace green; PROP13, PROP17 and PROP19 at 10,000 seeds): portable team document and ops, signed-chain validation and frozen accept with an independent oracle (PROP17); the replica's decision log, git import, checkpoints and compaction (golden corpus); replica-origin mirrors in the kernel with MirrorAttach, catch-up by the split rule and merge protection (PROP19); the proposal queue with both authorisation layers and the publish steps. Milestone 5 is implemented and verified: op_log format 6 with a log-only 5 → 6 migration (T119), ReplicationLag and the strict history gap (T116), routing of team writes into the queue (T109), teams in ctxd with protocol 8 (import, catch-up, lag, the announce fence, publish steps, proposed markers), the git hook dispatcher (reference-transaction, pre-push publish with dry-run detection, partial clones) and ctx team create|join|status|sync|publish|leave|rebuild|why. Milestone 6 (2026-11-17): ctx team access|shred|hooks|compact|prune|rejoin|fetch-missing; G1, G2, G3, G5, G6 (bare-remote trial only, owner decision) and G7 passed on 023ed9d/bfad171 on the remote Linux host; G5's git commit budget is measured over a trivial hook (owner decision); two independent implementation reviews found 13 findings, then 9 defects in the fixes and one weak test, all fixed or declared (P10 gate). G4 passed with a declared deviation (owner decision 2026-11-18): 24 h fuzz of six targets and 17.4 h of team_doc, 0 crashes; team_doc stopped at the 4 GB RSS limit, traced to ASan's allocator (a build without ASan stays at 60 MB). The owner's review (2026-11-18) found four defects: sole-op packing, a missing TeamKeyMismatch check on rejoin, a u16 overflow in large catch-ups and the missing orphan-branch fallback. All four are fixed in bfe1668 and 7a6e2da, and G1, G3, G5 and G6 were rerun on them. The owner accepted the gate on 2026-11-18. Installed stores stay at format 5 / protocol 7 until a release. The former scale/GC phase is now P11, and recursion research is P12.

P9 G0 passed (2026-11-06) (P9 gate, ADR 0017 r0.5, SPEC v1.9.0). The independent review found 8 blockers, 9 majors and 9 minors in r0.1. Closure rounds, two focused checks and three owner reviews followed. The owner confirmed F1–F13 as recommended and F14 in a narrowed form. P9 covers: - one principal per OS user, mapped from the peer uid; - per-lane authorisation with a single redaction point; - authorised writes and merges, and proof of possession; - file-system isolation (owner, modes and no ACLs); - per-lane egress; - crypto-shred through a key log; - op_log format 5 and protocol 7.

Milestone 1 is done: principals and the transport (socket layout, private file modes and umask, the uid mapping with the start-up file-system checks, revocation, the non-owner allowlist, per-principal sessions and addressed handoffs, the client's server check; T58, T98, T99; protocol 7).

Milestone 2 is done: the access document (SetAccess, op_log format 5 with a header-only ctx migrate, principal ids, ctx access apply|show|check, Authorized with an independent oracle reference). The uid mapping follows the committed document, but only when multi-user mode is enabled, which only tests do until read redaction and write authorisation land (milestones 3–4).

Milestone 3 is done: reads. Every response to a non-owner passes through one redaction point (contextdb-daemon::redact). Hidden reads are UNAVAILABLE and recall skips hidden matches. WHY, WHY_NOT and IMPACT are redacted with counts, diff-shaped responses drop and count, and certificates go without their vector. A revocation makes earlier certificates Denied, and ctx ui needs a launch token in multi-user mode (T17, T17b, T100, T101; PROP15 read half at 10,000 seeds). Multi-user mode still waits for write authorisation (milestone 4).

Milestone 4 is done: writes. The kernel checks every op against the access document right after its refs resolve: Read on what it names, Write or Curate on the lane. An independent oracle reference matches it exactly on direct ops and on merges. The daemon checks proof of possession for every content hash. Branches belong to their creator, and merges into main or owner branches apply only what the merger could do directly (MergeUnauthorized). Tests: T60, T102, T107, T108, and PROP15's write half at 10,000 seeds. Egress (milestone 5) and crypto-shred (milestone 6) remain before multi-user mode is offered.

Milestone 5 is done: egress. With an access document, the bodies of lanes whose egress is off reach only validators marked local = true; skipped work runs once egress turns on or a local validator is added. The embedder never receives them, and vector ranking and embedding candidates skip those heads. The mirror exports only egress lanes, and in multi-user mode only lanes every principal reads, into a .git others cannot read unless --readable-ok (T105, with recording mocks and a real repository).

Milestone 6 is done: crypto-shred. - Encryption. Payloads are stored encrypted, under one key per content hash in an append-only key log. - ctx shred commits ShredContent. After that the key log is rewritten without the key, and every body-bearing projection is purged, with each step durable before purged is reported. - The git mirror reports PayloadGone and offers --rebuild. - ctx migrate to format 5 re-encrypts older packs and rebuilds the projections, and succeeds only after a disk check. Openers refuse an incomplete migration. - Tests: T59, T103, T104, and PROP16 at 10,000 seeds.

Milestone 7 (verification) is done. Gate P9 passed (2026-11-10) (SPEC v1.9.2): - G1–G3: check.sh at HEAD with SQLite 3.54.1 (RUSTSEC-2026-0459); PROP15, PROP16 and recall per principal at 10,000 seeds. - G4: security review fixed or declared; 24 h fuzz of four targets with 0 crashes. - G5: on the remote Linux host, with two recall fixes for principals who read few lanes; narrow at 10⁵ accepted at up to +12.7 % by the owner. - G7, G8: the earlier suites; README multi-user section; implementation review fixed. - G6: skipped by owner decision; no real two-user macOS run.

Multi-user mode needs ctxd --multi-user, which is off by default.

P8 passed (2026-11-06; G0 2026-11-04) (P8 gate, ADR 0016 r0.3, SPEC v1.8.3). It took three review rounds; r0.1 had 0 blockers, 7 majors and 12 minors. P8 covers: - hybrid recall with status filtered before any cut; - index health and ctx reindex; - read levels; - token-budget packing; - Summary pending counts; - embeddings through an external command, off by default; - a one-way git mirror with hand-edit detection.

Gate P8 passed (2026-11-06). Milestones 1–7 are done, and G1–G8 all pass: - G3: PROP14 (retrieval against the oracle) at 10,000 seeds, 120,000 queries. - G4: kills during reindex, embedding and mirror export; disk full; git lock contention; a real log truncation. - G5: every budget passes at 10⁴ and 10⁵ records once bm25 ranks in windows of 2,048 rows. Before the windows, a term most records hold made recall linear in the store. - G6: 120 labelled queries on the three dogfood stores with a local Ollama embedder: hybrid recall@10 0.82, key + FTS 0.81. bytes/4 undercounts real tokens by about 40%. Cosine does not separate contradictions. - G7: remote regression passes. - The independent implementation review found no blocker. Its two majors (paging snapshots, rebuild-dependent windows) are fixed.

P7 passed (2026-11-03; G0 2026-11-02) (P7 gate, ADR 0015 r0.3, SPEC v1.7.1). P7 covers semantic validation, conflicts, handoff and change feeds. The independent review found 4 blockers and 7 majors in r0.1; two closure rounds closed them. Owner decisions: the real LLM evaluation uses the local claude -p; op_log format 4 stores only a metadata hash; agents and admin may open gating Conflicts. An LLM validator never writes a ValidationRecord. Implementation: milestones 1–8 done: - op_log format 4; - the agent-validation refusal and admin metadata, with protocol 5; - the validator adapters, including a sandboxed claude -p; - validator jobs: jobs.sqlite, discovery, workers, leases and recovery, validators.toml and ctx validators; - ctx_conflicts and ctx_resolve (SD20 pairs); - lexical contradiction candidates over a per-branch recall index (candidates.sqlite), judged by validators configured with pairs = true; - handoff between sessions in the session log (format 3); - ctx_changes from the durable diff_log, with long-poll.

Gate P7 passed (2026-11-03). Milestone 9 is done, and G1–G8 all pass: - G3: 10,000 seeds. - G4: 30-minute stress with 0 violations; crash at each job step; disk full. - G5: the commit budget was restated by owner decision D4; all four items pass. - G6: a real claude -p run. - G7: remote regression passes.

The independent implementation review found no blocker. Its one major finding (claim starvation) and four minor ones are fixed; the other minor findings are follow-ups (gate §3).

Gate P6 passed (2026-11-02) (P6 gate, ADR 0013 r0.6). G0–G5, G7 and G8 pass and G6 is none for P6. G3: PROP13 against an independent branch oracle (10,000 seeds), PROP7/8/10/11 per branch, and mutation with every survivor closed by a test or argued equivalent. G4's branch stress found two merge defects (a cubic merge-base search and sync points retaining whole databases), fixed in ADR r0.6 without semantic change. G5: fork O(1), WHAT_IF ≤ 1.6× a commit, branch commit at parity with main; the first write after a fork or merge copies the branch (≈ 0.05–0.25 s at 10⁶ revisions). The independent implementation review found 8 majors (among them a require_certified merge passing with Conflicts off the head, an idempotency hash ignoring the branch, and group-commit projections differing from a rebuild), all fixed with regression tests (ADR r0.7, SPEC v1.6.9); G1, G3, G4 and G7 were rerun on the fixed tree. All P6 layers pass; the phase gate closed with P4, P5a and P5b on 2026-11-02 (SPEC A11, v1.6.12).

Gate P5b passed (2026-11-02) (P5b gate, ADR 0012 r0.9, SPEC v1.6.10). G0–G5 passed on 2026-10-23. G6 failed with walk 2, then passed with walk 3 (same-file context) on a fresh sample under the owner's move convention. The independent implementation review (2026-10-26) found 1 blocker and 6 majors, now fixed as normaliser walk 4: - text no child node covers was not hashed (Python string text between escapes, Rust raw strings); - context errors were not the symbol's; - Python block statements were not separate items; - Go for clauses and grouped var; - a Missing anchor across migrate blocked scans for good; - deep use recursion.

Rechecks on walk 4: - T45 is identical, and 886 of 6,820 symbols re-hash (anchors need ctx anchors migrate); - both PROP12 suites pass at 10,000 seeds; - mutation catches every non-equivalent mutant; - G6 was rescored on the same labels: FI 17.5 % ≤ ½ × 79.7 %, missed +0.0 pp (70.0 % under the pre-registered reading).

G1 (macOS and Linux), G7 and G8 pass. The phase gate closed after P4 and P5a.

Gate P5a passed (2026-11-02) (P5a gate, ADR 0011 r0.6). G0–G5, G7, G8 and prior independent reviews pass. G6 uses 210 agent-labelled pairs with explicit provenance and hashed evidence; the 84 historical human reviews remain optional diagnostics and no manual top-ups are required (SPEC v1.6.4 §4.4). G6 passed under this agent-evidence criterion (p5a_g6_evidence_complete=true; report). It closed when P4 passed.

Gate P4 passed (2026-11-02; P4 gate, ADR 0010 rev 3.3). The G6 dogfood closed by owner decision at 11.8 days (SPEC v1.6.12) because real use had stopped on 10-24 (audit). Dependency coverage 69.6 % passes. False-deny is 30.6 % with shell enforced and 0.11 % with shell_mode = "warn", so enforce is recommendable for file edits only; warn stays the default. The audit's follow-ups (adoption, repeated Invalid warnings, gating read-only commands, drift deltas) are open.

Gate P3 passed (2026-10-21) after independent review, a closure check and a closure confirmation (P3 gate, ADR 0008 rev 3.3, ADR 0009).

Gate P2 passed (2026-10-20, commit 21da1f7) after independent review and two closure checks, with CI run 39497969575 and nightly run 39498455621. See P2 gate, P2 report, durable-log ADR 0006 and incremental structural commits ADR 0007.

P1 functionality is implemented, and every local P1 gate layer passes. After storage compaction, memory is 181.15 / 188.87 B/incidence of live heap. It is within the per-scope budgets of ADR 0005, which the owner chose to calibrate per scope. Gate P1 passed (CI run 39436790664, nightly run 39436822063). See P1 report, gate matrix and memory ADR.

P0 Gate passed, including independent review and remote Linux/macOS CI run 39364257458 for implementation commit 73789ef96efc3d385cefe78ae7c3b6aa1ec4980d. That run does not validate the current P1 changes.

Available now

  • Dependency-free model: IDs, all 14 Ops, bounded wire decoding, EventLog v0, input/derived snapshots and status dimensions.
  • Independent oracle: transactional InputModel, Jacobi least fixed point, Kahn DAG evaluator, WHY / WHY_NOT, summarize and P0 required-entry certificate predicate.
  • Db<M, S> with Counting / FullRecompute and CommitStats / zero-sized NoStats. Counting maintains L0 support, sat/unsat, enabled rules and canonical witnesses; Pearce–Kelly maintains the revision/Sem-virtual DAG with NaiveTopo reference.
  • Atomic mutable commits with undo, final-net-delta seeding, local status propagation, retained snapshot patching, allocations, exact flips/diffs and deterministic digests. Structural changes validate against a staging overlay and publish incrementally (appendable CSR adjacency, key table, PK undo journal; ADR 0007).
  • O(1) CURRENT L0; counter-maintained L1/L2 columns (ADR 0008 §7, rebuilt independently in FullRecompute); WHY with bounded canonical proof, WHY_NOT; Reachable and undo-restored Exact IMPACT; endpoint-folded in-memory DIFF.
  • Debug/paranoid DA1–DA6 checks, release-paranoid oracle cross-checks, separate timing feature, conservative memory categories, deterministic shape generators and stats.
  • Both exact modes: 52 P0 and 24 P1 golden/regression tests. 10,000 fixed ChaCha8 seeds / 120,000 transactions, PROP7 metamorphic checks, depth-6/8 finite-state exploration and counting/transaction mutation audit. See report for exact results.
  • Rust 1.95.0, Apache-2.0, architecture/license gates, standard Linux/macOS CI and a nightly workflow: exhaustive depth 6/8, four-shard mutation audit, P2 G4/PROP10 at gate counts.

  • contextdb-store:

  • own segmented op_log behind Durability (StdDisk, and SimDisk for crash injection);
  • blake3 blobs;
  • idempotent client_txn_id with txn_status;
  • snapshots and replay with a sampled oracle self-check;
  • SQLite projections with a watermark;
  • Historical / Snapshot / DIFF over persisted data;
  • format-0 → 1 migration;
  • doctor truncation.
  • ctx replay | doctor | snapshot | migrate | export.
  • P3 store additions: op_log format 2 with group framing and one sync per group (commit_group), the session log, LogReader, watermark_history, FTS5 recall, and self-verifying blob packs with ordered syncs (ADR 0008 §17).
  • Certificates: issue_certificate / validate_certificate with an independent oracle (PROP11).
  • ctxd (contextdb-daemon): commit actor with group commit, two-replica snapshot publication (loom-modelled), three channel sockets with peer-uid checks, sessions, handles, ctx_check, Busy / 30 s Timeout.
  • ctx-mcp (contextdb-mcp): nine agent tools over JSON-RPC 2.0 on stdio.
  • ctx status | why | why-not | impact | diff | validate | shutdown through the admin socket.
  • P4 hooks and action gating, outbox delivery and parallel-agent session views; P5a file observers with watermark CAS, code freshness and rebind suggestions.
  • P5b symbol extraction/normalisation for Rust, TypeScript/TSX/JavaScript, Python and Go; ctx anchors symbols | add | scan | watch | status | migrate. Grammars run only in the observer; ctxd checks host-file positions without parsing.

Boundaries

  • No signed log head (P9).
  • No erasure: blobs are never deleted before P9.
  • No inputs_at cache.
  • In-memory history is not bounded after open.
  • One subject, positive DAG, transaction time only. Branches (P6) are explicit; no branch deletion or automatic git-merge detection. No ACL, negation, recursive production rules, erasure or replication.
  • The P3 trust boundary is cooperative: a same-user agent with a shell can reach the observer and admin sockets (hard separation with principals and ACL in P9).
  • Open Conflict artifacts gate their target (SD17, P6); merges open them, and semantic conflict producers arrive in P7. Visibility is Authorized before P9; structural Unknown/freshness are summary-function fixtures.
  • Research DD/DBSP workspaces stay excluded.

Dependency policy

scripts/check_dependencies.py checks all normal/build/dev/optional/target edges. Model has no dependencies; oracle reaches only model. Core's explicit allowlist admits BLAKE3 and build/platform helpers, not database/network/LLM crates. ChaCha8 and benchmark generation stay outside core. cargo deny checks licenses, advisories, bans and sources; no GPL/AGPL-only dependency is admitted.