Skip to main content

FactLane — Share facts. Not context. Governed memory for MCP agents.


Memory that can help without becoming authority

FactLane is a local-first MCP memory layer for AI-agent hosts. It stores bounded reusable facts with exact scope, provenance, freshness, lifecycle state, and governed authority so an agent can reuse durable context without treating an old conversation or an unverified contribution as current truth.

The design is intentionally narrow:

  • Candidate → Current governance — a fact can be worth retaining without being trusted as current.
  • Current truth stays above memory — current user instructions, live project/product state, and verified live sources can outrank remembered facts.
  • Exact scopes — facts stay inside explicit user, project, workflow, tool-environment, or governed cross-project boundaries.
  • Local-first runtime — the supported profile uses local SQLite/SQLite-vec storage and local Ollama embeddings.
  • Small MCP contract — exactly five public tools over command-launched stdio.
  • Owner control plane — trusted local operators can inspect inventory/history, resolve conflicts, govern lifecycle, recheck freshness, and readmit eligible revoked memory without expanding the public MCP surface.

For the current published release identity, artifact hashes, release status, and exact upgrade/rollback boundary, use Release operations. For user-facing changes between releases, use the Changelog.

How FactLane works

FactLane memory lifecycle: an agent proposes a Candidate, trusted authority verifies it, and eligible Current memory is returned within exact scope and freshness rules.

A normal memory lifecycle separates contribution from verification:

  1. A user explicitly asks to remember a bounded fact, or an agent proposes one and obtains explicit content consent.
  2. A launcher with delegated-candidate authority may store that contribution as a Candidate.
  3. A separately trusted verifier may promote an eligible Candidate with REVERIFY, exact record identity, revision checks, and idempotency protection.
  4. Current retrieval admits only eligible validated facts inside the requested scope and freshness boundary.
  5. If current reality changes, trusted Owner operations can revoke a Current record, reject a Candidate, resolve contradictions, reverify/replace, or perform an explicit freshness recheck.
  6. A previously revoked logical memory may be readmitted only through a new governed verification path. Readmission is not database restore and cannot recreate content removed by sensitive-memory Recovery.

REVOKED and REJECTED are logical lifecycle states. They remove records from ordinary Current eligibility; they do not claim physical erasure from SQLite pages, backups, snapshots, logs, or external copies.

Quick Start

Requirements

The documented local profile requires:

  • Python 3.11+;
  • a Python-linked SQLite runtime 3.42.0+;
  • uv;
  • local Ollama with a supported embedding model;
  • a compatible MCP host that can launch a local stdio command.

Docker, a GPU, a hosted memory service, and an external embedding API are not required for the supported local profile.

Install a supported release without hard-coding it here

Read Release operations first and copy the current published tag from the release manifest. Then pin the checkout to that tag instead of following moving main:

RELEASE_TAG="<published tag from Release operations>"
git clone --branch "$RELEASE_TAG" --depth 1 https://github.com/Habib1001-m/factlane.git
cd factlane
uv sync --frozen
uv run python -c 'import sqlite3; print(sqlite3.sqlite_version)'
uv run factlane --help
uv run factlane --help-tools

The SQLite check intentionally runs through the same interpreter that launches FactLane. A compatible Python version alone does not prove a compatible linked SQLite runtime.

Install the embedding model required by the profile you intend to use. For the built-in embeddinggemma-300m-768 profile:

ollama pull embeddinggemma:300m

If you are evaluating a source checkout rather than a published release, treat the checkout identity as source material only. A package version string by itself does not create release authority.

Launch read-only first

uv run factlane \
  --db ./factlane.sqlite3 \
  --profile embeddinggemma-300m-768 \
  --host-id local-dev

The first connection should stay read-only. Verify that the host launches FactLane, discovers exactly five tools, and completes an appropriate read-only memory_status request before enabling any write profile.

Codex, Hermes, generic-host, and Skill-registration examples are in the Quick Start guide. Release-specific storage migration and trusted Owner-control commands live in Release operations and the selected release's operator documentation so setup guidance does not hard-code a release.

Five focused MCP tools

Tool Purpose
memory_search Search bounded facts inside one exact scope using Current or explicit history retrieval.
memory_get Retrieve one logical memory with provenance, lifecycle, revision, and freshness details.
memory_store Contribute one bounded fact when launcher authority and content consent permit it.
memory_update Reverify/replace a logical memory, or apply direct Owner REVOKE/REJECT, under governed CAS rules.
memory_status Inspect bounded storage and embedding-profile health for one scope.

The live MCP schema and factlane --help-tools are authoritative for exact fields, enums, and signatures. Seeing a tool does not grant permission to perform its privileged operations.

Exact scopes, explicit identity

FactLane defines five public scopes:

Scope Identity model
GLOBAL_USER No project/workflow identity.
PROJECT Exact project_id.
WORKFLOW Exact project_id + workflow_id.
TOOL_ENVIRONMENT Exact agent_id.
CROSS_PROJECT_WORKFLOW Identity-free; project, worktree, workflow, and agent identity keys must be absent.

A trusted host may bind applicable project, workflow, or tool identities. Conflicting caller-supplied values fail closed. Records never fan out implicitly into other scopes.

CROSS_PROJECT_WORKFLOW is a distinct governed scope for deliberately cross-project workflow facts; it does not mean “search every project.”

Owner control plane

FactLane keeps operator governance separate from ordinary agent memory use.

OwnerControlService provides bounded local operations for:

  • inventory and record detail;
  • Candidate, Current, history, conflict, health, and retention views;
  • REVOKE of eligible Current records;
  • REJECT of Candidates;
  • contradiction resolution;
  • trusted reverify/replace;
  • explicit manual freshness recheck for on_change records;
  • governed readmission of eligible REVOKED memory.

The packaged factlane-owner CLI exposes that service for trusted local operators.

The packaged factlane-owner-webui launcher exposes the same Owner boundary through a loopback-only WebUI. It binds exactly to 127.0.0.1, uses a short-lived one-use bootstrap token exchanged through X-FactLane-Bootstrap, establishes an HttpOnly; SameSite=Strict session, and requires CSRF protection for later mutations. It is not an HTTP MCP transport and does not add a sixth public tool.

For on_change freshness, FactLane records a recheck contract but does not run a background source watcher. A trusted Owner supplies fresh bounded observation evidence. Healthy unchanged evidence may renew eligibility; changed, unavailable, indeterminate, stale, or mismatched evidence fails closed for review.

Architecture

Compatible MCP host / trusted launcher
        │
        ▼
Immutable host + write-context bindings
        │
        ▼
stdio MCP gateway — five public tools
        │
        ▼
Scope · identity · authority checks
        │
        ▼
Memory adapter · lifecycle · CAS · retrieval budgets
        │
        ├─────────────► Local embedding provider (Ollama)
        │
        └──────────────► SQLite / SQLite-vec storage

Trusted local Owner
        │
        └──────────────► OwnerControlService
                           ├─ factlane-owner CLI
                           └─ loopback Owner WebUI

The gateway enforces public request boundaries. The adapter owns FactLane validation, authority, freshness, contradiction handling, revision/transaction semantics, and retrieval budgets. The pinned backend supplies SQLite/SQLite-vec mechanics; it does not decide FactLane authorization.

Read Architecture for storage, migration, recovery, retrieval, and operator-control details.

Supported profile and limits

FactLane makes a deliberately bounded support claim. The documented profile covers Python 3.11+, linked SQLite 3.42.0+, command-launched stdio MCP, supported local Ollama embeddings, local SQLite/SQLite-vec storage, and the documented local POSIX storage/recovery contract. Normal runtime behavior is also qualified on native Windows x64/AMD64; sensitive-memory Recovery remains a separate POSIX-only boundary.

Current product limits include:

  • no public HTTP, SSE, or Streamable HTTP MCP transport;
  • no remote embedding endpoint fallback;
  • no automatic background freshness watcher;
  • no transcript archive, bulk file crawler, general document index, or backup service;
  • facts are bounded to 2,000 UTF-8 bytes;
  • language and semantic-ranking quality remain workload-specific;
  • arbitrary filesystem, scale, and deployment environments are not implied by the documented qualification.

See Environment and compatibility for the exact support boundary.

Storage migration, release integrity, and rollback

Normal startup fails closed when durable storage requires an explicit contract migration. Use the packaged migration operator and the exact backup/restore procedure documented in Release operations; never infer database compatibility from a package manager’s ability to replace runtime files.

An official release identity is defined by more than a version string. Release operations records the authoritative tag, commit/tree, published artifact hashes, migration boundary, and rollback rules. The Changelog explains what changed for users and operators.

Portable agent guidance

FactLane ships a portable using-factlane Skill with the Python runtime.

The Skill teaches agents when governed memory is useful, how to choose an exact scope, how Candidate contribution and Current verification differ, and how to respect authority and freshness boundaries. Its host-neutral bootstrap reference separates runtime installation, MCP configuration, Skill presence, registration, discoverability, and loaded state.

Installing the Python package does not automatically register or activate the Skill in an MCP host.

Security and sensitive-memory Recovery

Sensitive-memory Recovery is a trusted operator procedure outside normal MCP use. It coordinates maintenance, locking, propagation, and postflight checks so ordinary runtime cannot silently continue through a recovery promotion window.

Recovery removes targeted content from the governed local store under a strict procedure; it does not promise physical-media erasure or removal from backups, snapshots, logs, or external copies.

Read Security for the trust model and recovery boundary.

Documentation

Guide Use it for
Introduction Product orientation and the recommended reading path.
Use cases Concrete examples and fit.
Core concepts Candidate, Current, scope, freshness, provenance, and authority.
Quick Start Installation, host connection, Skill bootstrap, migration checks, and first verification.
Five MCP tools Public tool semantics and governed failures.
Architecture Request path, storage, lifecycle, Owner control, migration, and recovery.
Environment Runtime requirements, supported profiles, and compatibility limits.
Security Trust boundaries, write authority, and sensitive-memory Recovery.
Changelog User-facing release changes.
Release operations Exact release identity, artifact hashes, installation, migration, and rollback.
Project history How the product and public contract evolved.

Develop

uv sync --frozen --dev
uv run pytest -q

The wheel and source distribution include the using-factlane Skill alongside the Python runtime.

License

FactLane is licensed under Apache-2.0. The pinned upstream backend and SQLite-vec retain their own licenses.

Metadata

Release files for factlane 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for factlane 0.1.6
File Size Uploaded Provenance Actions
factlane-0.1.6.tar.gz 167.7 kB Without provenance Details for factlane-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for factlane 0.1.6
File Interpreter ABI Platform Actions
factlane-0.1.6-py3-none-any.whl Python 3 none any Details for factlane-0.1.6-py3-none-any.whl

Total release size: 338.9 kB

Release files / factlane-0.1.6.tar.gz

Download URL factlane-0.1.6.tar.gz
Size 167.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb755605126cbc7f2fcc7c4335e020aa9f6da67f0812dcd7622d99e18c53b84b
BLAKE2b-256 checksum
How to use checksums
6e06fc98baec1210ff201ff127ff692eb227beb16044b532b21bed2482aaa27b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / factlane-0.1.6-py3-none-any.whl

Download URL factlane-0.1.6-py3-none-any.whl
Size 171.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cb74af31e6bfe96bc38e0048ea2e8abcde53c5a05470aebbe9ed8305dd46899
BLAKE2b-256 checksum
How to use checksums
4edd5db4bdbe25e059098a0e1b2427f9531b83ca9d7fc9930946ff1802c4aa4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for factlane 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page