diff --git a/.github/workflows/adapters.yml b/.github/workflows/adapters.yml index 00632638..2c1b0ede 100644 --- a/.github/workflows/adapters.yml +++ b/.github/workflows/adapters.yml @@ -9,8 +9,8 @@ on: - "provenance_custody/**" - "provenance_verify/**" - "tests/test_generic_adapters.py" - - "ADAPTERS.md" - - "ROADMAP.md" + - "docs/ADAPTERS.md" + - "docs/ROADMAP.md" - ".github/workflows/adapters.yml" pull_request: paths: @@ -20,8 +20,8 @@ on: - "provenance_custody/**" - "provenance_verify/**" - "tests/test_generic_adapters.py" - - "ADAPTERS.md" - - "ROADMAP.md" + - "docs/ADAPTERS.md" + - "docs/ROADMAP.md" - ".github/workflows/adapters.yml" permissions: diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index c34234c6..f9986f94 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -14,9 +14,9 @@ on: - "provenance_mcp/**" - "tests/test_cli.py" - "tests/test_package.py" - - "PACKAGE.md" - - "CLI.md" - - "ROADMAP.md" + - "docs/PACKAGE.md" + - "docs/CLI.md" + - "docs/ROADMAP.md" - "README.md" - ".github/workflows/cli.yml" pull_request: @@ -31,9 +31,9 @@ on: - "provenance_mcp/**" - "tests/test_cli.py" - "tests/test_package.py" - - "PACKAGE.md" - - "CLI.md" - - "ROADMAP.md" + - "docs/PACKAGE.md" + - "docs/CLI.md" + - "docs/ROADMAP.md" - "README.md" - ".github/workflows/cli.yml" diff --git a/.github/workflows/custody.yml b/.github/workflows/custody.yml index fabd9bda..631ea5a1 100644 --- a/.github/workflows/custody.yml +++ b/.github/workflows/custody.yml @@ -6,7 +6,7 @@ on: - "provenance_core/**" - "provenance_verify/custody.py" - "provenance_custody/**" - - "CUSTODY.md" + - "docs/CUSTODY.md" - "tests/test_custody.py" - ".github/workflows/custody.yml" push: @@ -15,7 +15,7 @@ on: - "provenance_core/**" - "provenance_verify/custody.py" - "provenance_custody/**" - - "CUSTODY.md" + - "docs/CUSTODY.md" - "tests/test_custody.py" - ".github/workflows/custody.yml" workflow_dispatch: diff --git a/.github/workflows/mcp.yml b/.github/workflows/mcp.yml index 047a8651..c5b16418 100644 --- a/.github/workflows/mcp.yml +++ b/.github/workflows/mcp.yml @@ -9,9 +9,9 @@ on: - "provenance_verify/**" - "tests/test_mcp.py" - "tests/test_package.py" - - "PACKAGE.md" - - "MCP.md" - - "ROADMAP.md" + - "docs/PACKAGE.md" + - "docs/MCP.md" + - "docs/ROADMAP.md" - ".github/workflows/mcp.yml" pull_request: paths: @@ -20,9 +20,9 @@ on: - "provenance_verify/**" - "tests/test_mcp.py" - "tests/test_package.py" - - "PACKAGE.md" - - "MCP.md" - - "ROADMAP.md" + - "docs/PACKAGE.md" + - "docs/MCP.md" + - "docs/ROADMAP.md" - ".github/workflows/mcp.yml" permissions: diff --git a/.github/workflows/ollama.yml b/.github/workflows/ollama.yml index 00a0d160..40638fad 100644 --- a/.github/workflows/ollama.yml +++ b/.github/workflows/ollama.yml @@ -7,7 +7,7 @@ on: - "tests/test_ollama_adapter.py" - "tests/test_ollama_transport.py" - "scripts/ollama_smoke.py" - - "OLLAMA.md" + - "docs/OLLAMA.md" - ".github/workflows/ollama.yml" push: branches: ["main"] @@ -16,7 +16,7 @@ on: - "tests/test_ollama_adapter.py" - "tests/test_ollama_transport.py" - "scripts/ollama_smoke.py" - - "OLLAMA.md" + - "docs/OLLAMA.md" - ".github/workflows/ollama.yml" workflow_dispatch: diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index aeff7bd8..47fd6072 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -9,9 +9,9 @@ on: - "provenance_store/**" - "provenance_custody/**" - "tests/test_package.py" - - "BUNDLE.md" - - "PACKAGE.md" - - "ROADMAP.md" + - "docs/BUNDLE.md" + - "docs/PACKAGE.md" + - "docs/ROADMAP.md" - ".github/workflows/package.yml" pull_request: paths: @@ -21,9 +21,9 @@ on: - "provenance_store/**" - "provenance_custody/**" - "tests/test_package.py" - - "BUNDLE.md" - - "PACKAGE.md" - - "ROADMAP.md" + - "docs/BUNDLE.md" + - "docs/PACKAGE.md" + - "docs/ROADMAP.md" - ".github/workflows/package.yml" permissions: diff --git a/.github/workflows/store.yml b/.github/workflows/store.yml index 19c00e3c..221068f3 100644 --- a/.github/workflows/store.yml +++ b/.github/workflows/store.yml @@ -6,10 +6,10 @@ on: - "provenance_core/**" - "provenance_verify/**" - "provenance_store/**" - - "ARCHITECTURE.md" - - "BUNDLE.md" - - "ROADMAP.md" - - "STORE.md" + - "docs/ARCHITECTURE.md" + - "docs/BUNDLE.md" + - "docs/ROADMAP.md" + - "docs/STORE.md" - "tests/test_store.py" - ".github/workflows/store.yml" push: @@ -18,8 +18,8 @@ on: - "provenance_core/**" - "provenance_verify/**" - "provenance_store/**" - - "BUNDLE.md" - - "STORE.md" + - "docs/BUNDLE.md" + - "docs/STORE.md" - "tests/test_store.py" - ".github/workflows/store.yml" workflow_dispatch: diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 8da589b9..61f8e967 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -9,8 +9,8 @@ on: - "provenance_custody/**" - "provenance_verify/**" - "tests/test_ui.py" - - "UI.md" - - "ROADMAP.md" + - "docs/UI.md" + - "docs/ROADMAP.md" - ".github/workflows/ui.yml" pull_request: paths: @@ -20,8 +20,8 @@ on: - "provenance_custody/**" - "provenance_verify/**" - "tests/test_ui.py" - - "UI.md" - - "ROADMAP.md" + - "docs/UI.md" + - "docs/ROADMAP.md" - ".github/workflows/ui.yml" permissions: diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 181cfe32..414db3bc 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -5,7 +5,7 @@ on: paths: - "provenance_core/**" - "provenance_verify/**" - - "BUNDLE.md" + - "docs/BUNDLE.md" - "tests/test_verify.py" - ".github/workflows/verify.yml" push: @@ -13,7 +13,7 @@ on: paths: - "provenance_core/**" - "provenance_verify/**" - - "BUNDLE.md" + - "docs/BUNDLE.md" - "tests/test_verify.py" - ".github/workflows/verify.yml" workflow_dispatch: diff --git a/README.md b/README.md index 6b4f9be2..d1d26ef4 100644 --- a/README.md +++ b/README.md @@ -1,756 +1,82 @@ # PROVENANCE -**Cryptographic Chain of Custody for LLMs, Systems & Software** +> **Cryptographic chain of custody for LLMs, software, agents, tools, and automated systems.** -> **Who did what, when, where, why, and how — backed by evidence.** +PROVENANCE records **who did what, when, where, why, and how — backed by evidence**. It captures actions, binds artifacts and events to cryptographic identities, preserves append-only custody, and independently verifies the resulting record. -PROVENANCE is a framework-agnostic evidence and observability system for recording the actions of AI systems, software, agents, tools, and automated workflows. +**Start here:** [Getting Started](docs/GETTING_STARTED.md) · [Usage Instructions](docs/INSTRUCTIONS.md) · [Documentation](docs/README.md) · [Roadmap](docs/ROADMAP.md) -Its purpose is simple: +[![Version](https://img.shields.io/badge/version-v0.1--dev-4c1.svg)](docs/ROADMAP.md) +[![Phase](https://img.shields.io/badge/roadmap-Phase%2011%20implemented-2ea44f.svg)](docs/ROADMAP.md) +[![Core CI](https://github.com/QSOLKCB/PROVENANCE/actions/workflows/core.yml/badge.svg)](https://github.com/QSOLKCB/PROVENANCE/actions/workflows/core.yml) +[![Verify CI](https://github.com/QSOLKCB/PROVENANCE/actions/workflows/verify.yml/badge.svg)](https://github.com/QSOLKCB/PROVENANCE/actions/workflows/verify.yml) +[![Package CI](https://github.com/QSOLKCB/PROVENANCE/actions/workflows/package.yml/badge.svg)](https://github.com/QSOLKCB/PROVENANCE/actions/workflows/package.yml) +[![Determinism](https://img.shields.io/badge/determinism-canonical%20SHA--256-0969da.svg)](docs/INVARIANTS.md) +[![Verification](https://img.shields.io/badge/verification-independent-6f42c1.svg)](docs/BUNDLE.md) +[![Custody](https://img.shields.io/badge/custody-append--only-b60205.svg)](docs/CUSTODY.md) +[![Platform](https://img.shields.io/badge/platform-POSIX--first-555.svg)](docs/ARCHITECTURE.md) +[![License](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](LICENSE) -**Record what happened well enough that somebody else can independently reconstruct and verify it later.** +## What it provides -If an AI system makes a medical recommendation, a legal analysis, executes a tool, modifies a file, calls an API, retrieves a document, selects an action, or causes another system to act, PROVENANCE is intended to preserve the chain of events that led there. +- **Deterministic evidence identities** — raw artifacts use SHA-256; structured records use canonical bytes and domain-separated identities. +- **Evidence classes** — `OBSERVED`, `DECLARED`, and `DERIVED` remain distinct. +- **Independent verification** — recompute integrity without trusting the monitored system or producer. +- **Append-only custody** — immutable, identity-bound history with explicit clock assurance. +- **Local-first storage** — content-addressed filesystem reference backend; no database service required. +- **Real observation paths** — Ollama, generic HTTP, and local process adapters. +- **Operator surfaces** — Rust CLI/TUI, stdio MCP, and read-only localhost UI. +- **Portable forensic packages** — evidence + custody + schemas + verification metadata + declared gaps. +- **Explicit uncertainty** — missing, digest-only, open-collection, and custody-gap states remain visible. -It does **not** decide whether the action was correct. - -It preserves the evidence. - ---- - -## The Core Principle - -PROVENANCE is an **observer**, not a controller. - -It must not silently alter: - -- prompts; -- model responses; -- tool inputs; -- tool outputs; -- application state; -- decisions; -- execution order; -- external actions; or -- the behaviour of the system being observed. - -The monitored system remains the system of record for its own behaviour. - -PROVENANCE records that behaviour from the outside or through minimally invasive instrumentation. - -> **Observe. Record. Bind. Verify. Never rewrite history.** - ---- - -## Run the tests - -From the repository root, run the complete dependency-free test suite with: - -```bash -cd ~/PROVENANCE -python3 -m unittest discover -s tests -v -``` - -If you cloned PROVENANCE somewhere else, change the `cd` path accordingly. - -This runs all current module tests. GitHub Actions uses narrower module-specific lanes for speed, but the full local command above is the simplest way to reproduce the complete suite. - -## MCP stdio interface - -Phase 7 adds a dependency-free MCP server over stdio: - -```bash -python3 -m provenance_mcp \ - --store /path/to/store \ - --custody /path/to/custody -``` - -The initial tool surface is: +## Quick lifecycle ```text -provenance.record -provenance.inspect -provenance.verify -provenance.finalize -provenance.export -``` - -Caller assertions sent through `provenance.record` remain **DECLARED**. The server separately records an **OBSERVED** per-call receipt so repeated identical declarations do not erase evidence that multiple MCP calls occurred. - -See `MCP.md` for the transport, resource, compatibility, and evidence-boundary contract. - ---- - -## Read-only localhost viewer - -Phase 9 adds a dependency-free inspection surface over finalized evidence: - -```bash -python3 -m provenance_ui \\ - --store /path/to/store \\ - --custody /path/to/custody -``` - -The viewer binds to `127.0.0.1:8765` by default, accepts only GET/HEAD, runs the existing independent bundle and custody verifiers, and has no evidentiary authority. LAN/public binding requires explicit `--allow-non-loopback` operator action. - -See `UI.md` for the read-only, gap-visibility, timeline, graph, and verification-dimension contract. - ---- - -## Generic adapter interface - -Phase 10 adds one provider-neutral evidence translation contract plus two executable reference adapters: - -```text -GenericHTTPAdapter → HTTP/HTTPS request-response boundaries -ProcessAdapter → local argv/stdin/stdout/stderr boundaries -``` - -Both emit the existing core evidence schema and can be persisted through the same store/custody/verifier path. Transport/provider metadata remains a DECLARED artifact under an explicit adapter extension namespace rather than changing `provenance-core`. - -HTTP authorization/header values and inherited process environments are intentionally not retained as ordinary evidence payloads. - -See `ADAPTERS.md` for the contract, failure semantics, credential boundary, and CI demonstration. - ---- - -## Portable forensic packages - -Phase 11 creates a finalized archival envelope around the unchanged Phase 2 evidence bundle: - -```text -package.json -evidence/ -custody/ -schemas.json -verification.json -gaps.json +OBSERVE / DECLARE + ↓ +ARTIFACTS + EVENTS + ↓ +APPEND-ONLY CUSTODY + ↓ +FINALIZED SNAPSHOT + ↓ +INDEPENDENT VERIFY + ↓ +INSPECT / EXPORT / PACKAGE ``` -Use: +Quick CLI example: ```bash -provenance package --store /path/to/store --custody /path/to/custody --destination /path/to/package -``` - -The resulting package can be moved to another machine and independently checked with `verify_forensic_package()`. The older `provenance export` command remains the historical snapshot-copy operation. - -See `PACKAGE.md` for the archival contract and verifier. - ---- - -## Why PROVENANCE Exists - -Modern AI systems rarely perform a single isolated operation. - -A seemingly simple answer may involve: - -```text -User Input - ↓ -Application Logic - ↓ -System / Developer Instructions - ↓ -Model Invocation - ↓ -Retrieval - ↓ -External Documents - ↓ -Tool Calls - ↓ -APIs - ↓ -Intermediate State - ↓ -Model Output - ↓ -Policy / Validation Logic - ↓ -External Action - ↓ -Human Review -``` - -When something goes wrong, a final output alone is often insufficient. - -The important questions become: - -| Question | Evidence required | -|---|---| -| **Who?** | Which human, service, model, agent, process, or identity acted? | -| **What?** | What operation, decision, request, response, mutation, or action occurred? | -| **When?** | When was it observed, produced, transferred, or executed? | -| **Where?** | Which host, runtime, service, repository, jurisdiction, device, or execution context was involved? | -| **Why?** | What observable inputs, rules, context, evidence, or declared rationale preceded the action? | -| **How?** | Which model, software, configuration, tools, parameters, dependencies, and execution path produced it? | - -PROVENANCE exists to preserve those answers. - ---- - -## Evidence, Not Interpretation - -PROVENANCE should distinguish between different kinds of information. - -### Observed evidence - -Information directly captured from the monitored system. - -Examples: - -- a request; -- a response; -- a file hash; -- a tool invocation; -- a retrieved document; -- a model identifier; -- an API result; -- a process exit code; -- a timestamp; -- a state transition. - -### Declared evidence - -Information asserted by another component. - -Examples: - -- a model reporting its own identifier; -- an application supplying a session ID; -- an operator declaring a case number; -- an external service supplying metadata. - -Declared evidence is recorded **as a declaration**, not silently promoted into independently verified fact. - -### Derived evidence - -Information calculated from existing evidence. - -Examples: - -- SHA-256 digests; -- canonical record hashes; -- Merkle roots; -- elapsed time; -- dependency graphs; -- verification results; -- replay comparisons. - -Derived evidence must identify what it was derived from. - -These categories should never be silently collapsed into one another. - ---- - -## What “Why” Means - -PROVENANCE does **not** claim access to hidden model reasoning. - -It does not invent explanations for an AI after the fact. - -For AI systems, the evidence behind **why** an action occurred may include observable material such as: - -- system and application instructions; -- user input; -- retrieved context; -- source documents; -- model and provider identity; -- model configuration; -- tool availability; -- tool calls and results; -- policy or validation decisions; -- application state; -- prior events; -- explicit machine-readable decision codes; -- explicit rationale supplied by the monitored system; -- human approvals or overrides. - -If the system did not expose a reason, PROVENANCE records that fact. - -**Absence of evidence must not be replaced with an invented explanation.** - ---- - -# Chain of Custody - -PROVENANCE treats recorded events as evidence. - -That means custody matters. - -A useful record must establish more than: - -> “Here is a JSON file saying something happened.” - -It should make it possible to determine: - -1. what was captured; -2. where it originated; -3. when it was captured; -4. how it entered the evidence system; -5. whether it changed; -6. what other events preceded it; -7. what events followed it; -8. who or what handled it; -9. which transformations were performed; -10. whether those transformations can be independently reproduced or verified. - -Cryptographic hashes bind evidence to its recorded representation. - -Linked events bind individual observations into a history. - -Digital signatures may bind records to identities. - -Manifests bind collections of evidence into verifiable units. - -The result is intended to behave more like a **forensic evidence trail** than an ordinary application log. - ---- - -## Evidence Must Remain Evidence - -PROVENANCE follows a simple rule: - -> **Never modify the original evidence in order to make it easier to explain.** - -Presentation and evidence are separate layers. - -For example: - -```text -Raw Observation - │ - ├── Cryptographic Identity - │ - ├── Custody Record - │ - └── Canonical Evidence Record - │ - ├── Index - ├── Timeline - ├── Search - ├── Visualization - ├── Report - └── Derived Analysis -``` - -Reports may summarize evidence. - -Interfaces may visualize evidence. - -Indexes may reorganize references to evidence. - -Analysis may derive conclusions from evidence. - -But none of those operations should silently replace the underlying record. - -If evidence must be redacted, transformed, normalized, exported, or summarized, the resulting artifact should be treated as a **new derivative artifact** linked back to its source. - ---- - -# Cryptographic Integrity - -PROVENANCE is intended to support cryptographically verifiable records. - -Potential primitives include: - -- SHA-256 content identities; -- canonical serialization; -- event hashes; -- previous-event links; -- manifests; -- Merkle structures; -- digital signatures; -- signed checkpoints; -- immutable evidence bundles. - -An event chain can conceptually resemble: - -```text -EVENT 0001 -hash: A91F... -previous: null - - ↓ - -EVENT 0002 -hash: 38C2... -previous: A91F... - - ↓ - -EVENT 0003 -hash: F742... -previous: 38C2... - - ↓ - -CHECKPOINT -root: 991A... -events: 0001..0003 -``` - -Changing historical evidence should therefore produce a verifiable inconsistency rather than silently changing history. - ---- - -# Event Model - -The exact schema is still under development. - -A future PROVENANCE event may conceptually contain information similar to: - -```json -{ - "schema": "provenance.event.v0", - "event_id": "018f...", - "timestamp": "2026-09-28T14:00:00Z", - - "actor": { - "type": "ai-model", - "id": "provider:model:version" - }, - - "operation": { - "type": "tool_call", - "name": "example.operation" - }, - - "inputs": [ - { - "sha256": "..." - } - ], - - "outputs": [ - { - "sha256": "..." - } - ], - - "context": { - "session": "...", - "runtime": "...", - "adapter": "..." - }, - - "previous_event_hash": "sha256:...", - "event_hash": "sha256:..." -} -``` - -This example is **illustrative, not normative**. - -The eventual schema should be minimal, deterministic, versioned, extensible, and independently implementable. - ---- - -# Non-Interference - -An evidence system becomes dangerous if observing a system changes the system being observed. - -PROVENANCE therefore aims for **non-interference by design**. - -Instrumentation should: - -- avoid modifying application inputs or outputs; -- avoid influencing model selection or model sampling; -- avoid changing application decisions; -- avoid introducing hidden control logic; -- avoid becoming a required decision authority; -- keep monitoring work outside latency-sensitive execution where practical; -- make collection failures visible rather than silently altering application behaviour. - -The monitored application should not need to ask PROVENANCE: - -> “Am I allowed to do this?” - -PROVENANCE should instead be capable of answering: - -> “This is what the application did.” - ---- - -# Framework Agnostic - -PROVENANCE is not intended to belong to one AI vendor, model provider, orchestration library, programming language, or deployment model. - -The same evidence model should be usable with: - -- hosted LLM APIs; -- local LLMs; -- agent frameworks; -- RAG systems; -- autonomous tools; -- traditional software; -- microservices; -- command-line programs; -- desktop applications; -- servers; -- embedded systems; -- human-in-the-loop workflows; -- mixed human/AI systems. - -Integration may eventually occur through: +cargo build --manifest-path provenance-cli/Cargo.toml --locked +mkdir -p .demo -```text -Native SDK - │ -Adapter - │ -Middleware Hook - │ -Sidecar - │ -Proxy - │ -Event Bridge - │ -External Observer -``` - -Different integrations may observe different layers of a system. - -PROVENANCE should make those observation boundaries explicit rather than pretending every integration has perfect visibility. - ---- - -# A Typical AI Evidence Trail +./provenance-cli/target/debug/provenance record \ + --store .demo/store --custody .demo/custody \ + --text "Hello from PROVENANCE" \ + --actor "operator:demo" --operation "demo.capture" -Consider an AI-assisted medical system. +./provenance-cli/target/debug/provenance finalize \ + --store .demo/store --custody .demo/custody --scope closed -A decision might involve: +./provenance-cli/target/debug/provenance verify \ + --store .demo/store --custody .demo/custody -```text -Patient / Operator Request - ↓ -Application Version - ↓ -Prompt Template - ↓ -Model + Configuration - ↓ -Retrieved Medical References - ↓ -Tool Invocation - ↓ -Tool Result - ↓ -Model Response - ↓ -Application Rule - ↓ -Human Review - ↓ -Final Action +./provenance-cli/target/debug/provenance package \ + --store .demo/store --custody .demo/custody \ + --destination .demo/forensic-package ``` -If the final action later becomes disputed, PROVENANCE should make it possible to determine which parts of that sequence can actually be demonstrated from retained evidence. - -It should not conclude: - -> “The AI committed malpractice.” - -It should be capable of demonstrating facts such as: - -> This input was submitted. - -> This model and configuration were invoked. - -> These documents were supplied as context. - -> This tool returned this result. - -> This response was produced. - -> This validation rule returned this result. - -> This human approved, rejected, modified, or did not review the action. - -> These records cryptographically correspond to the evidence retained at the time. - -The interpretation belongs to investigators, auditors, operators, experts, courts, regulators, researchers, and other authorised humans. - -PROVENANCE supplies the evidence. - ---- - -# Not Just AI +See [Getting Started](docs/GETTING_STARTED.md) for the walkthrough and [Usage Instructions](docs/INSTRUCTIONS.md) for the full interface guide. -Although AI accountability is an important use case, the architecture should not depend on AI. - -The same approach can record: - -- software build provenance; -- scientific computational workflows; -- autonomous infrastructure; -- financial systems; -- robotic actions; -- security events; -- deployment pipelines; -- document transformations; -- API workflows; -- data-processing systems; -- administrative decisions; -- distributed systems. - -AI is simply one particularly important producer of events. - ---- - -# PROVENANCE Is Not - -PROVENANCE is **not** intended to become: - -- an AI alignment system; -- a content moderation system; -- a policy engine; -- a permission system; -- a behavioural guardrail; -- a model evaluator; -- a truth oracle; -- a liability engine; -- an automatic judge; -- a replacement for human investigation; -- a system for manufacturing explanations. - -It records evidence. - -That boundary is intentional. - ---- - -# Failure Must Also Leave Evidence - -A monitoring system cannot promise that every observation will always succeed. - -Processes crash. - -Networks disappear. - -Disks fill. - -Collectors fail. - -Machines lose power. - -Applications terminate unexpectedly. - -A trustworthy provenance system must therefore distinguish: - -```text -"No event occurred" -``` - -from: - -```text -"No event was observed" -``` - -and from: - -```text -"An event may have occurred during an identified evidence gap" -``` - -Missing evidence is itself important evidence about the limits of the record. - -PROVENANCE should never silently manufacture continuity where continuity cannot be demonstrated. - ---- - -# Privacy and Sensitive Evidence - -Provenance records may contain extremely sensitive material. - -Examples include: - -- medical information; -- legal documents; -- personal identifiers; -- proprietary prompts; -- source code; -- credentials; -- confidential business information; -- model inputs and outputs. - -Cryptographic integrity does **not** imply that all evidence should be publicly visible. - -The architecture should separate: - -```text -Integrity -Custody -Identity -Confidentiality -Authorization -Presentation -``` - -An investigator may be able to prove that an artifact is unchanged without necessarily being permitted to read that artifact. - -Data minimization, encryption, access control, retention policy, and jurisdictional requirements remain responsibilities of deployments using PROVENANCE. - ---- - -# Design Principles - -PROVENANCE begins with the following principles: - -### 1. Evidence before interpretation - -Record what happened before attempting to explain what it means. - -### 2. Original evidence is immutable - -Corrections create new records. They do not rewrite old ones. - -### 3. Derived information identifies its sources - -A conclusion must not masquerade as a direct observation. - -### 4. Cryptographic identity over filenames - -Evidence should be identifiable by content, not merely by mutable paths or labels. - -### 5. Custody is part of the evidence - -Capture, transfer, storage, transformation, export, and verification should be traceable. - -### 6. Observation boundaries are explicit - -Never claim visibility that the collector did not possess. - -### 7. Missing evidence remains missing - -Do not infer missing events merely to produce a complete-looking timeline. - -### 8. No manufactured rationale - -Observable causes may be recorded. Hidden reasoning must not be invented. - -### 9. Monitoring must not become control - -PROVENANCE observes systems. It does not secretly govern them. - -### 10. Verification should not require trust in PROVENANCE - -Where practical, evidence bundles and cryptographic claims should be independently verifiable using documented formats and ordinary cryptographic tools. - ---- - -# Modular Architecture - -PROVENANCE is being built as a **modular monorepo** with one evidence contract and replaceable surfaces. +## Architecture ```text provenance-ui ↓ provenance-mcp / provenance-cli ↓ -provenance-adapters / provenance-store +provenance-adapters / provenance-store / provenance-export ↓ provenance-core @@ -759,194 +85,55 @@ evidence provenance-verify ``` -The core must remain independent of UI, transport, provider, storage backend, and application policy. - -The logical modules are: - -| Module | Responsibility | -|---|---| -| `provenance-core` | Canonical evidence semantics, identities, events, relationships, manifests | -| `provenance-verify` | Independent recomputation and verification | -| `provenance-store` | Replaceable evidence persistence | -| `provenance-adapters` | Framework-specific observation | -| `provenance-mcp` | MCP tools and resources | -| `provenance-cli` | Lightweight operator interface | -| `provenance-ui` | Read-only human inspection | - -The initial Python reference module is imported as `provenance_core`; the hyphenated names above describe architectural modules rather than Python import syntax. - -See [ARCHITECTURE.md](ARCHITECTURE.md) for the module contracts and dependency rules. - -See [BUNDLE.md](BUNDLE.md) for the Phase 2 evidence-bundle layout consumed by the independent verifier. - -See [STORE.md](STORE.md) for the Phase 3 local content-addressed storage contract. - -See [CUSTODY.md](CUSTODY.md) for the Phase 4 append-only custody and clock-observation contract. - -See [OLLAMA.md](OLLAMA.md) for the Phase 5 local Ollama observation contract and Phase 6 real-model CI boundary. - -See [MCP.md](MCP.md) for the Phase 7 stdio MCP interface contract. - -See [CLI.md](CLI.md) for the Phase 8 Rust terminal CLI/TUI contract. - -See [UI.md](UI.md) for the Phase 9 read-only localhost HTTP viewer contract. - -See [ADAPTERS.md](ADAPTERS.md) for the Phase 10 provider-neutral generic adapter contract. - -See [PACKAGE.md](PACKAGE.md) for the Phase 11 portable forensic package contract. - ---- - -# Implementation Roadmap - -Development is phase-gated. - -The current sequence begins: - -```text -Phase 0 Constitutional foundation - ↓ -Phase 1 Canonical evidence core - ↓ -Phase 2 Independent verifier - ↓ -Phase 3 Local evidence store - ↓ -Phase 4 Minimal custody - ↓ -Phase 5 Ollama reference adapter - ↓ -Phase 6 Ollama GitHub Actions smoke test - ↓ -Phase 7 MCP - ↓ -Phase 8 Rust terminal CLI/TUI - ↓ -Phase 9 read-only localhost HTTP viewer - ↓ -Phase 10 generic HTTP + local process adapters - ↓ -Phase 11 portable forensic packages -``` - -The full roadmap, exit gates, CI progression, and later trust/privacy/distributed phases are defined in [ROADMAP.md](ROADMAP.md). - -The implementation rule is deliberately simple: - -> **Build the smallest trustworthy layer. Prove it. Then add the next layer.** +The core remains provider- and interface-neutral. Verification consumes finalized evidence independently. ---- +## Status -# The Standard PROVENANCE Should Meet +Implemented through **Phase 11**: canonical core, verifier, local store, custody, Ollama + real-model CI, MCP, Rust CLI/TUI, read-only UI, generic adapters, and portable forensic packages. -A useful test for this project is simple. +Next: **Phase 12 — signatures and external anchoring**. See [the roadmap](docs/ROADMAP.md). -Imagine a serious incident occurred five years ago. +## Documentation -The original developers are gone. - -The vendor may no longer exist. - -The machine that executed the system is unavailable. - -Someone hands an independent investigator the retained PROVENANCE evidence. - -That investigator should be able to ask: - -> What happened? - -> In what order? - -> Which system performed each action? - -> What information did it actually have? - -> Which external systems did it use? - -> Which artifacts can still be verified? - -> What changed? - -> Who handled the evidence? - -> Where does the record contain gaps? - -> Which statements are direct observations? - -> Which statements came from another party? - -> Which conclusions were derived later? - -And the evidence should answer those questions **without requiring blind trust in the software that produced the report**. - -That is the target. - ---- - -# Status - -**Bootstrap / Phase 8 implementation.** - -The constitutional and architectural foundation is in place. The first executable module is now `provenance_core`, covering the initial Phase 1 surface: - -- canonical UTF-8 JSON records; -- duplicate-key, BOM, non-finite and unsupported-number rejection; -- ordinary SHA-256 raw-content identities; -- domain-separated artifact-record, event, and manifest identities; -- `OBSERVED`, `DECLARED`, and `DERIVED` evidence classes; -- collection-status and retention-state vocabulary; -- source-bound DERIVED events; -- explicit retained, digest-only, and missing artifact states in manifests; -- core/envelope self-hash exclusion; -- normalized manifest membership; and -- focused dependency-free regression tests. - -The independent verifier is now implemented in `provenance_verify`, with canonical bundle verification, artifact/event identity recomputation, exact physical membership checks, retained-content hash and byte-count verification, explicit missing-evidence handling, reference resolution, symlink rejection, and adversarial tamper tests. - -The local evidence store is now implemented in `provenance_store`, with content-addressed immutable objects, atomic no-overwrite publication, exact-byte deduplication, verifier-gated snapshots, atomic `HEAD` publication, reopen-from-verified-state, stale-writer rejection, and explicit recovery from previously missing evidence. - -The minimal custody chain is now implemented through `provenance_core`, `provenance_verify`, and `provenance_custody`: domain-separated custody identities, append-only per-subject chains, explicit unknown actor/source values, clock-source assurance, independent chain verification, and a local immutable custody ledger. - -The first real-system adapter is now implemented in `provenance_adapters` for local Ollama. It retains exact request/response bytes, distinguishes observed exchange data from Ollama-declared model identity, records custody, and finalizes through the existing independent verifier. - -A dedicated Ollama Actions lane launches independent small-model instances on clean runners and verifies both successful evidence capture and retained-byte tamper detection. - -The stdio MCP interface and the Rust terminal CLI/TUI are now implemented. The CLI exposes record, inspect, verify, finalize, export, and a keyboard-first slash-command palette while delegating evidence semantics and independent verification to the existing modules. MCP and CLI share one hardened operational working-state journal so acknowledged pending evidence cannot silently diverge between interfaces. - -The local pure-HTML/CSS/JS viewer and the Phase 10 generic HTTP/process adapter interface are now implemented. Provider-specific adapters remain optional later work and must stay behind the same provider-neutral boundary. - -Interfaces and compatibility guarantees should still be considered unstable until explicitly versioned and released. - ---- - -# Philosophy - -PROVENANCE does not exist to tell a system what it should have done. - -It exists so that, after the fact, we do not have to guess what it actually did. +| Area | Document | +|---|---| +| Quick start | [docs/GETTING_STARTED.md](docs/GETTING_STARTED.md) | +| Detailed usage | [docs/INSTRUCTIONS.md](docs/INSTRUCTIONS.md) | +| Documentation index | [docs/README.md](docs/README.md) | +| Architecture | [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | +| Invariants | [docs/INVARIANTS.md](docs/INVARIANTS.md) | +| Roadmap | [docs/ROADMAP.md](docs/ROADMAP.md) | +| Bundle | [docs/BUNDLE.md](docs/BUNDLE.md) | +| Store | [docs/STORE.md](docs/STORE.md) | +| Custody | [docs/CUSTODY.md](docs/CUSTODY.md) | +| Portable package | [docs/PACKAGE.md](docs/PACKAGE.md) | +| CLI/TUI | [docs/CLI.md](docs/CLI.md) | +| MCP | [docs/MCP.md](docs/MCP.md) | +| Read-only UI | [docs/UI.md](docs/UI.md) | +| Generic adapters | [docs/ADAPTERS.md](docs/ADAPTERS.md) | +| Ollama | [docs/OLLAMA.md](docs/OLLAMA.md) | +| Lineage | [docs/LINEAGE.md](docs/LINEAGE.md) | +| Donors | [docs/DONORS.md](docs/DONORS.md) | + +Machine and contributor guidance stays at the root: [README4AIs.md](README4AIs.md) · [AGENTS.md](AGENTS.md). + +## Boundaries + +PROVENANCE does **not** invent hidden reasoning, infer provider-internal execution, silently repair gaps, or turn declarations into observations. Integrity verification does not by itself establish legal truth, intent, negligence, or scientific validity. + +## Design law ```text -No rewritten history. -No invented reasoning. -No hidden interpretation. -No silent evidence gaps. -No interference. - -Just the record. +RECOMPUTE. +DO NOT TRUST STORED CLAIMS WHEN THEY CAN BE RECOMPUTED. +DO NOT REWRITE HISTORY. +DO NOT HIDE EVIDENCE GAPS. ``` -Or, less formally: - -> **Here's the evidence. We know exactly what you did. Tell it to the judge.** - ---- +> **Observe. Record. Bind. Verify. Never rewrite history.** ## License -PROVENANCE is licensed under the [Mozilla Public License 2.0](LICENSE). - ---- +Mozilla Public License 2.0 — [LICENSE](LICENSE). **QSOL-IMC / QSOLKCB** - -*Evidence first. Interpretation belongs downstream.* diff --git a/ADAPTERS.md b/docs/ADAPTERS.md similarity index 100% rename from ADAPTERS.md rename to docs/ADAPTERS.md diff --git a/ARCHITECTURE.md b/docs/ARCHITECTURE.md similarity index 96% rename from ARCHITECTURE.md rename to docs/ARCHITECTURE.md index bff01bff..330a932f 100644 --- a/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -31,19 +31,15 @@ They must not become inseparable. Normative engineering law remains in: -```text -AGENTS.md -INVARIANTS.md -``` +- [`../AGENTS.md`](../AGENTS.md) — repository and coding-agent rules. +- [`INVARIANTS.md`](INVARIANTS.md) — formal evidence and verification invariants. Project context and engineering ancestry remain in: -```text -README.md -README4AIs.md -DONORS.md -LINEAGE.md -``` +- [`../README.md`](../README.md) — the project landing page. +- [`../README4AIs.md`](../README4AIs.md) — machine-oriented project guidance. +- [`DONORS.md`](DONORS.md) — donor and provenance acknowledgements. +- [`LINEAGE.md`](LINEAGE.md) — architectural lineage and influences. --- @@ -137,32 +133,37 @@ PROVENANCE should initially remain one repository. Module separation does **not** require separate GitHub repositories. -Preferred bootstrap structure: +Current documentation-oriented repository structure: ```text PROVENANCE/ -│ -├── provenance-core/ -├── provenance-verify/ -├── provenance-store/ -├── provenance-mcp/ -├── provenance-cli/ -├── provenance-ui/ -├── provenance-adapters/ -│ -├── schemas/ -├── tests/ -│ ├── README.md ├── README4AIs.md ├── AGENTS.md -├── INVARIANTS.md -├── ARCHITECTURE.md -├── DONORS.md -└── LINEAGE.md +├── LICENSE +├── docs/ +│ ├── README.md +│ ├── GETTING_STARTED.md +│ ├── INSTRUCTIONS.md +│ ├── ARCHITECTURE.md +│ ├── INVARIANTS.md +│ ├── ROADMAP.md +│ └── subsystem contracts... +├── provenance_core/ +├── provenance_verify/ +├── provenance_store/ +├── provenance_custody/ +├── provenance_export/ +├── provenance_mcp/ +├── provenance_cli/ +├── provenance_ui/ +├── provenance_adapters/ +├── provenance-cli/ +├── scripts/ +└── tests/ ``` -This shape is conceptual until implementation requires each module. +The repository root intentionally keeps only project-entry and agent-guidance Markdown. Detailed specifications live under `docs/`. Do not create empty modules merely to make the tree look mature. diff --git a/BUNDLE.md b/docs/BUNDLE.md similarity index 100% rename from BUNDLE.md rename to docs/BUNDLE.md diff --git a/CLI.md b/docs/CLI.md similarity index 100% rename from CLI.md rename to docs/CLI.md diff --git a/CUSTODY.md b/docs/CUSTODY.md similarity index 100% rename from CUSTODY.md rename to docs/CUSTODY.md diff --git a/DONORS.md b/docs/DONORS.md similarity index 100% rename from DONORS.md rename to docs/DONORS.md diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md new file mode 100644 index 00000000..48906562 --- /dev/null +++ b/docs/GETTING_STARTED.md @@ -0,0 +1,91 @@ +# Getting Started + +Get from a fresh checkout to a verified PROVENANCE forensic package in a few minutes. + +## Requirements + +- Linux or another POSIX-style environment with descriptor-relative filesystem support. +- Python 3.12+ for the reference implementation and interfaces. +- Rust/Cargo for the terminal CLI. +- Git. + +PROVENANCE works locally. Ollama is optional unless you want the real-model adapter path. + +## 1. Clone and build + +```bash +git clone https://github.com/QSOLKCB/PROVENANCE.git +cd PROVENANCE +cargo build --manifest-path provenance-cli/Cargo.toml --locked +mkdir -p .demo +``` + +The development CLI is: + +```text +./provenance-cli/target/debug/provenance +``` + +## 2. Record evidence + +```bash +./provenance-cli/target/debug/provenance record \ + --store .demo/store \ + --custody .demo/custody \ + --text "Hello from PROVENANCE" \ + --actor "operator:demo" \ + --operation "demo.capture" +``` + +Operator-supplied content remains **DECLARED**. The CLI separately records the invocation occurrence as **OBSERVED** evidence. + +## 3. Finalize + +```bash +./provenance-cli/target/debug/provenance finalize \ + --store .demo/store \ + --custody .demo/custody \ + --scope closed +``` + +Use `--scope open` only when known evidence gaps or ongoing collection must remain explicit. + +## 4. Verify + +```bash +./provenance-cli/target/debug/provenance verify \ + --store .demo/store \ + --custody .demo/custody +``` + +Verification independently recomputes bundle integrity and custody-chain integrity. + +## 5. Create a portable forensic package + +```bash +./provenance-cli/target/debug/provenance package \ + --store .demo/store \ + --custody .demo/custody \ + --destination .demo/forensic-package +``` + +The Phase 11 package includes the finalized evidence bundle, custody snapshot, schema metadata, verification metadata, and declared gaps. It can be moved to another machine and independently verified. + +## 6. Optional: read-only viewer + +```bash +python3 -m provenance_ui \ + --store .demo/store \ + --custody .demo/custody +``` + +Open `http://127.0.0.1:8765/`. + +## Next + +- [Full usage instructions](INSTRUCTIONS.md) +- [Documentation index](README.md) +- [Architecture](ARCHITECTURE.md) +- [Evidence bundle](BUNDLE.md) +- [Portable package](PACKAGE.md) +- [Roadmap](ROADMAP.md) diff --git a/docs/INSTRUCTIONS.md b/docs/INSTRUCTIONS.md new file mode 100644 index 00000000..48b36384 --- /dev/null +++ b/docs/INSTRUCTIONS.md @@ -0,0 +1,202 @@ +# Usage Instructions + +This guide covers the normal PROVENANCE workflow and the major interfaces. Deep evidence semantics live in the linked specifications. + +## Core workflow + +```text +observe / declare + ↓ +record artifacts + events + ↓ +append custody + ↓ +finalize immutable snapshot + ↓ +independently verify + ↓ +inspect / export / package +``` + +## Evidence classes + +| Class | Meaning | +|---|---| +| `OBSERVED` | Directly captured at the declared observation boundary | +| `DECLARED` | Supplied or asserted by a caller/provider/operator | +| `DERIVED` | Computed from identified source evidence | + +Do not promote declarations into observations simply because an adapter parsed them. See [INVARIANTS.md](INVARIANTS.md). + +## Rust CLI + +Build: + +```bash +cargo build --manifest-path provenance-cli/Cargo.toml --locked +``` + +Development binary: + +```text +./provenance-cli/target/debug/provenance +``` + +### Record text + +```bash +./provenance-cli/target/debug/provenance record \ + --store /path/to/store \ + --custody /path/to/custody \ + --text "evidence" \ + --actor "operator:alice" \ + --operation "example.capture" +``` + +### Record a file + +```bash +./provenance-cli/target/debug/provenance record \ + --store /path/to/store \ + --custody /path/to/custody \ + --file ./artifact.bin \ + --actor "operator:alice" \ + --operation "example.file-capture" \ + --media-type application/octet-stream +``` + +Add `--digest-only` when identity and metadata should be retained without retaining source bytes. + +### Inspect + +```bash +./provenance-cli/target/debug/provenance inspect \ + --store /path/to/store \ + --custody /path/to/custody +``` + +Use `--identity sha256:` for a known evidence identity. + +### Finalize + +```bash +./provenance-cli/target/debug/provenance finalize \ + --store /path/to/store \ + --custody /path/to/custody \ + --scope closed +``` + +Use `--scope open` when collection gaps must remain explicit. + +### Verify + +```bash +./provenance-cli/target/debug/provenance verify \ + --store /path/to/store \ + --custody /path/to/custody +``` + +### Export versus package + +`export` is the historical verified Phase 2 snapshot-copy operation: + +```bash +./provenance-cli/target/debug/provenance export \ + --store /path/to/store \ + --custody /path/to/custody \ + --destination /path/to/snapshot-copy +``` + +`package` creates the Phase 11 portable forensic envelope: + +```bash +./provenance-cli/target/debug/provenance package \ + --store /path/to/store \ + --custody /path/to/custody \ + --destination /path/to/forensic-package +``` + +See [PACKAGE.md](PACKAGE.md). + +## Read-only UI + +```bash +python3 -m provenance_ui \ + --store /path/to/store \ + --custody /path/to/custody +``` + +Default bind: `127.0.0.1:8765`. Non-loopback binding requires explicit operator action. See [UI.md](UI.md). + +## MCP + +```bash +python3 -m provenance_mcp \ + --store /path/to/store \ + --custody /path/to/custody +``` + +Tools: + +```text +provenance.record +provenance.inspect +provenance.verify +provenance.finalize +provenance.export +provenance.package +``` + +See [MCP.md](MCP.md). + +## Adapters + +Reference observation paths include local Ollama, generic HTTP/HTTPS, and local process execution. Provider-specific metadata stays behind a provider-neutral adapter boundary. + +See [ADAPTERS.md](ADAPTERS.md) and [OLLAMA.md](OLLAMA.md). + +## Python verification APIs + +```python +from pathlib import Path +from provenance_verify import verify_bundle + +report = verify_bundle(Path("/path/to/bundle")) +print(report.integrity_verified) +print(report.errors) +``` + +```python +from provenance_verify import verify_forensic_package + +report = verify_forensic_package("/path/to/forensic-package") +print(report.integrity_verified) +print(report.package_identity) +print(report.errors) +``` + +## Focused test lanes + +```bash +python3 -m unittest tests.test_core -v +python3 -m unittest tests.test_verify -v +python3 -m unittest tests.test_store -v +python3 -m unittest tests.test_custody -v +python3 -m unittest tests.test_mcp -v +python3 -m unittest tests.test_ui -v +python3 -m unittest tests.test_generic_adapters -v +python3 -m unittest tests.test_package -v +cargo test --manifest-path provenance-cli/Cargo.toml --locked +``` + +## Operational rules + +- Do not put secrets into evidence-bearing URLs, argv, prompts, or artifacts unless retention is intentional. +- Treat `DIGEST_ONLY`, `MISSING`, open scope, and incomplete custody as evidence states—not defects to hide. +- Do not edit finalized evidence to make verification pass. +- Preserve exact identities when transferring evidence. +- Prefer the independent verifier over producer/UI claims. + +## Deep reference + +[Architecture](ARCHITECTURE.md) · [Invariants](INVARIANTS.md) · [Store](STORE.md) · [Custody](CUSTODY.md) · [Bundle](BUNDLE.md) · [Package](PACKAGE.md) · [CLI](CLI.md) · [MCP](MCP.md) · [UI](UI.md) · [Adapters](ADAPTERS.md) · [Roadmap](ROADMAP.md) diff --git a/INVARIANTS.md b/docs/INVARIANTS.md similarity index 100% rename from INVARIANTS.md rename to docs/INVARIANTS.md diff --git a/LINEAGE.md b/docs/LINEAGE.md similarity index 100% rename from LINEAGE.md rename to docs/LINEAGE.md diff --git a/MCP.md b/docs/MCP.md similarity index 100% rename from MCP.md rename to docs/MCP.md diff --git a/OLLAMA.md b/docs/OLLAMA.md similarity index 100% rename from OLLAMA.md rename to docs/OLLAMA.md diff --git a/PACKAGE.md b/docs/PACKAGE.md similarity index 100% rename from PACKAGE.md rename to docs/PACKAGE.md diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..ba103800 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,43 @@ +# PROVENANCE Documentation + +The repository root is intentionally small. Detailed contracts, subsystem notes, and roadmap material live here. + +## Start here + +| Document | Purpose | +|---|---| +| [GETTING_STARTED.md](GETTING_STARTED.md) | Fast path from clone to a verified forensic package | +| [INSTRUCTIONS.md](INSTRUCTIONS.md) | Deeper operational guide | +| [ROADMAP.md](ROADMAP.md) | Phase plan, status, and future work | + +## Evidence contracts + +| Document | Purpose | +|---|---| +| [INVARIANTS.md](INVARIANTS.md) | Mandatory evidence and verification invariants | +| [ARCHITECTURE.md](ARCHITECTURE.md) | Architecture and module boundaries | +| [BUNDLE.md](BUNDLE.md) | Phase 2 evidence bundle | +| [STORE.md](STORE.md) | Local content-addressed store | +| [CUSTODY.md](CUSTODY.md) | Append-only custody | +| [PACKAGE.md](PACKAGE.md) | Phase 11 portable forensic package | + +## Interfaces and integrations + +| Document | Purpose | +|---|---| +| [CLI.md](CLI.md) | Rust terminal CLI/TUI | +| [MCP.md](MCP.md) | stdio MCP interface | +| [UI.md](UI.md) | Read-only localhost viewer | +| [ADAPTERS.md](ADAPTERS.md) | Generic adapter contract | +| [OLLAMA.md](OLLAMA.md) | Ollama reference adapter | + +## Project context + +| Document | Purpose | +|---|---| +| [LINEAGE.md](LINEAGE.md) | Architectural lineage | +| [DONORS.md](DONORS.md) | Donor and provenance acknowledgements | + +## Root guidance + +[README.md](../README.md) · [README4AIs.md](../README4AIs.md) · [AGENTS.md](../AGENTS.md) · [LICENSE](../LICENSE) diff --git a/ROADMAP.md b/docs/ROADMAP.md similarity index 99% rename from ROADMAP.md rename to docs/ROADMAP.md index 1bed0b38..79d22d67 100644 --- a/ROADMAP.md +++ b/docs/ROADMAP.md @@ -100,11 +100,11 @@ SUBSTANTIALLY COMPLETE - `README.md` - `README4AIs.md` - `AGENTS.md` -- `INVARIANTS.md` -- `ARCHITECTURE.md` -- `DONORS.md` -- `LINEAGE.md` -- `ROADMAP.md` +- `docs/INVARIANTS.md` +- `docs/ARCHITECTURE.md` +- `docs/DONORS.md` +- `docs/LINEAGE.md` +- `docs/ROADMAP.md` ## Exit Gate diff --git a/STORE.md b/docs/STORE.md similarity index 100% rename from STORE.md rename to docs/STORE.md diff --git a/UI.md b/docs/UI.md similarity index 100% rename from UI.md rename to docs/UI.md