# Datakeel documentation [简体中文](README.zh.md) · [Repository home](../README.md) · [API reference](API_REFERENCE.md) ## Pick a lane Datakeel is a **Verifiable Data & Controlled Action Plane**. The sidebar starts in **Focused view** (11 core modules); **All modules** reveals advanced tools. Focused view always retains the active advanced module, including when you follow an object or deep link. Use `⌘K / Ctrl+K` to find any module or object and `⌘J / Ctrl+J` for Page-Aware Copilot. | Lane | First task | Guides | | --- | --- | --- | | **Data Delivery & QA** | Inspect evidence, check quality and deliver a verifiable version | [5-minute delivery](DATASET_DELIVERY.md) · [Training sets](TRAINING.md) | | **Metrics & Knowledge** | Explain a metric or verify a graph assertion against its source | [Ask data](ASK.md) · [Knowledge graph](KG.md) | | **Agents, Workflows & Ops** | Plan work, review approvals, inspect traces and compare evaluations | [Agent](AGENT.md) · [Workflows](WORKFLOWS.md) · [Evaluation](EVALUATION.md) | ## v0.28 source showcase The source checkout includes the following capabilities; package versions stay at 0.27.1 until integration. - **MCP 2.0 Gateway:** `streamable-http`, scoped `--profile` catalogs, domain resources, governance prompts and read-only plan/workflow status. Action tools prepare plans; human approval and execution remain outside MCP. [MCP guide](MCP.md) - **Zero-friction local & CI:** Ollama-compatible loopback models need no API key. Run `uv run datakeel audit ./my-dataset --fail-on-leakage --fail-under 80` in a temporary local workspace; failed gates return nonzero. [Local models](AGENT.md#local-openai-compatible-models) - **Agent Ops & Eval Diff:** inspect operational KPIs, cached tokens and cost in Traces; run `eval-intents`, export sanitized `agent export-golden` drafts, review fixtures and replay to compare regressions and fixes. [Evaluation flywheel](EVALUATION.md) - **Controlled adaptation:** HITL rejection replanning, Page-Aware Copilot, provider prompt caching, `$DATAKEEL_HOME/{agents,workflows}/*.yaml` overlays and read-only `parallel_tools`. [Agent extensions](AGENT.md) · [Workflow declarations](WORKFLOWS.md) ## Start here - **Try the workspace.** Run the offline demo, then inspect sample evidence and follow a change through review and approval. [Quick start](../README.md#quick-start) · [Guided tour](DEMO.en.md) - **Detect train/test duplicate images and verify delivery offline (5 minutes).** Download the 3-image sample, inspect cross-split leakage, create a corrected 2-file version, and verify with `datakeel reconcile`. [5-minute walkthrough](DATASET_DELIVERY.md) - **Work with business data.** Import engineering metadata, query a registered metric, and trace the result to source fields. [Metadata imports](METADATA_IMPORTS.en.md) · [Ask data](ASK.md) - **Run a shared instance.** Set up an authenticating proxy and choose a storage backend. [Deployment](DEPLOYMENT.md) · [Database maintenance](DATABASE_MAINTENANCE.md) ## Evidence, media and knowledge graphs | Guide | Description | Languages | | --- | --- | --- | | [Image and point-cloud quality](MEDIA_QUALITY.md) | Five-check image usability scoring, PLY/PCD cleaning, voxel downsampling, outlier filtering and top-down PNG previews | EN / ZH | | [Audio and video preprocessing](MEDIA.md) | Local `ffmpeg`/`ffprobe` preprocessing, generated recording fixtures and source-time lineage | EN / ZH | | [Text and image knowledge graphs](KG.md) | Entity mentions, cross-chunk relation merging, image OCR/vision routing, catalog associations and outbound consent | EN / ZH | | [KG faithful spans & hybrid RRF](KG_GROUNDING.md) | Server-rendered NFC source-span verification and bounded lexical + accepted-edge RRF search | EN / ZH | | [Evidence review slices](EVIDENCE_SLICES.md) | Browser-local named filter recipes with strict schema-validated JSON import/export | EN / ZH | | [Controlled visual evidence agent](VISION_AGENT.md) | Read-only `inspect_image_samples` tool, EXIF-stripped thumbnails and multimodal vision metering | EN / ZH | | [Document interchange & chunking](DOCUMENT_INTERCHANGE.md) | Layout-preserving `layout-v1` JSON provenance parsing and table/heading-aware hybrid chunking | EN / ZH | | [Vector evidence](VECTOR_FAKE.md) | Offline fixtures, governed cloud embedding, semantic duplicate, cluster and coverage-gap operators, and read-only queries | EN | | [Offline vector evaluation](VECTOR_OFFLINE_EVALUATION.md) | Development-only FAISS exact comparison and cold/hot/incremental synthetic benchmark | EN / ZH | | [Custom operators](CUSTOM_OPERATORS.md) | Single-file Python operator submission, static review, SHA-256 approval and container sandbox execution | EN / ZH | | [Near-duplicate acceleration](RUST_ACCEL.md) | Optional `datakeel-accel` Rust extension (`DATAKEEL_ACCEL=auto\|off\|required`) for 64-bit dHash and training-text fingerprints | EN / ZH | ## Annotation, training sets and delivery | Guide | Description | Languages | | --- | --- | --- | | [Detect train/test duplicate images & verify delivery offline](DATASET_DELIVERY.md) | 5-minute walkthrough with a downloadable 3-image sample, side-by-side leakage review, corrected version, signed release, and offline `datakeel reconcile` output | [EN](DATASET_DELIVERY.md) · [ZH](DATASET_DELIVERY.zh.md) | | [Production workflows](PRODUCTION.md) | Label sets, immutable revisions, group/team assignment, review/rework and finalization to dataset versions | [EN](PRODUCTION.md) · [ZH](PRODUCTION.zh.md) | | [Annotation workbench](ANNOTATION_WORKBENCH.md) | Keyboard editing, EXIF-upright display, template attribute forms, offline drafts and team cockpit | [EN](ANNOTATION_WORKBENCH.md) · [ZH](ANNOTATION_WORKBENCH.zh.md) | | [Annotation quality](ANNOTATION_QA.md) | Offline agreement metrics across classification labels, 2D boxes and text spans with sampling acceptance | EN / ZH | | [Prediction-informed label ranking](LABEL_QUALITY_RANKING.md) | Self-confidence, normalized margin and DeCoLe-style group-conditioned out-of-fold suspicion ranking | EN / ZH | | [Training splits and exports](TRAINING.md) | Seeded/stratified splits, exact/SimHash/dHash/group leakage checks and reproducible COCO/YOLO/HF/JSONL exports | [EN](TRAINING.md) · [ZH](TRAINING.zh.md) | | [Bounded multimodal review batches](REVIEW_BATCHES.md) | Capped curation batches with skipped-bridge auditing and retained-caption safety, separate from split safety | EN / ZH | | [LLM training-data governance](LLM_DATA.md) | Dry-run checks for SFT/instruction/preference JSONL (structure, language, duplicates, PII/secrets, eval contamination) | [EN](LLM_DATA.md) · [ZH](LLM_DATA.zh.md) | | [Subdocument overlap audit](SUBDOCUMENT_AUDIT.md) | Bounded-memory SQLite subdocument duplication audit (`training-subdocument-audit`) with source/span witnesses | EN / ZH | | [Dataset datasheets](DATASHEETS.md) | Seven-chapter datasheets enforcing sentence-level fact citations with Markdown and HTML downloads | EN / ZH | | [Dataset comparison and delivery](RELEASES.md) | Version diffs, immutable releases, reproducible tar/directory delivery packages and `datakeel reconcile` | [EN](RELEASES.md) · [ZH](RELEASES.zh.md) | | [Local Parquet audit](PARQUET_AUDIT.md) | Projected batched Parquet input for `datakeel audit --format parquet` with hard record/byte limits and lazy PyArrow | EN / ZH | | [LeRobot episode & clock audit](EPISODE_AUDIT.md) | LeRobot v2.1/v3.0 episode-interval leakage, shared-MP4 adjacency safety and multi-camera clock verification (`episode-witness-v1`) | EN / ZH | | [Stratified corpus-shift audit](CORPUS_SHIFT.md) | Offline `datakeel corpus-shift` global/per-source JSD, effective category count and vanished minority-class drift witnesses | EN / ZH | | [Offline signed release attestation](RELEASE_EVIDENCE.md) | Ed25519 DSSE / in-toto v1 release attestation, streaming `reconcile --attestation` and EU AI Act Article 53 transparency drafts | EN / ZH | | [Version diff & evidence timeline](VERSION_EVIDENCE_REVIEW.md) | Windowed dual-track `episode-witness-v1` timeline review, return-to-row focus and safe approval navigation | EN / ZH | ## Catalog, Ask data and governance | Guide | Description | Languages | | --- | --- | --- | | [Ask charts and follow-up questions](ASK.md) | Deterministic chart selection, follow-up resolution, bilingual time parsing and refusal guardrails | [EN](ASK.md) · [ZH](ASK.zh.md) | | [Import engineering metadata](METADATA_IMPORTS.en.md) | Local dbt artifacts, live/offline Airflow REST v1 metadata, authenticated OpenLineage events and metric drafts | [EN](METADATA_IMPORTS.en.md) · [ZH](METADATA_IMPORTS.md) | | [dbt semantic compatibility](DBT_COMPATIBILITY.md) | 15 stable reason codes and bounded actionable diagnostics for non-executable dbt metric drafts | EN / ZH | | [SQL metric semantic verification](METRIC_VERIFICATION.md) | Offline `metric-verify` counterexample minimizer, independent reference evaluator and revision cross-checks | EN / ZH | | [Data standards and conformance](STANDARDS.md) | Portable field standards, bilingual code lists, rule mapping suggestions and conformance coverage | EN / ZH | | [Quality rules](QUALITY_RULES.md) | Immutable SQLite/PostgreSQL table contracts, worker cron checks, issue assignment and signed alerts | EN / ZH | | [Publishing and using data assets](DATA_ASSETS.en.md) | Public/internal/request-required/restricted classifications, grant applications, approvals and query/export/download scopes | [EN](DATA_ASSETS.en.md) · [ZH](DATA_ASSETS.md) | | [Table and time-series profiling](TIMESERIES.md) | Local CSV/TSV profiling, deterministic anomaly detection and controlled catalog profiles | EN / ZH | ## Controlled actions, Agent, workflows and access | Guide | Description | Languages | | --- | --- | --- | | [MCP 2.0 Gateway](MCP.md) | Streamable HTTP, profiles, domain resources, governance prompts and read-only status | EN / ZH | | [MCP evidence references](MCP_EVIDENCE_REFS.md) | Compact `find_evidence_refs` cards, `resource_link` blocks and version-pinned authorized resource reads | EN / ZH | | [MCP protected external-token auth](MCP_PROTECTED_EVIDENCE.md) | Per-user RS256 JWT validation, RFC 9728 metadata and strict evidence-only Streamable HTTP authorization | EN / ZH | | [Evaluation flywheel](EVALUATION.md) | eval-intents, session-to-Golden drafts, model slices and saved-run comparisons | EN / ZH | | [OTLP execution trace tree](TRACE_EXPORT_TREE.md) | Sanitized run → specialist → tool/model OTLP trace hierarchy with 1:1 model billing preservation | EN / ZH | | [Routing calibration & conformal cascade](ROUTING_CALIBRATION.md) | Offline PAVA uncertainty calibration and finite-sample singleton-only conformal cascade routing | EN / ZH | | [Flow security & task confinement](FLOW_SECURITY.md) | Finite task capabilities, fail-closed monotonic policy intersection and workflow provenance binding | EN / ZH | | [Context retention & metamorphic tests](CONTEXT_RETENTION.md) | Typed constraint-preserving context projection and deterministic multi-round compaction tests | EN / ZH | | [Memory conflict veto & retention](MEMORY_RETENTION.md) | Deterministic conflict-veto consolidation and piecewise 3/14/60-day retention decay | EN / ZH | | [Controlled action outcomes](ACTIONS.md) | Frozen plan digests, expiry, reversibility, one-time approvals and resuming checkpointed Agent pauses | EN / ZH | | [Deterministic workflows](WORKFLOWS.md) | YAML workflow contracts, CLI/HTTP/SSE execution, intent routing validation and approval pause recovery | EN / ZH | | [Delegation and memory](AGENT.md) | Nested read-only subagents, untrusted tool envelopes, canary guards, cross-conversation memory and persistent budgets | EN / ZH | | [One sentence to plan (beta)](ONE_SENTENCE.md) | Natural-language multi-step action chain planning, missing-parameter follow-ups and confirmation before writes | [EN](ONE_SENTENCE.md) · [ZH](ONE_SENTENCE.zh.md) | | [Identity and HTTP access](IDENTITY_ACCESS.md) | Registered operators, role bindings, action scope resolution and zero-user local compatibility | [EN](IDENTITY_ACCESS.md) · [ZH](IDENTITY_ACCESS.zh.md) | | [Action declarations](ACTION_DECLARATIONS.md) | Closed declarative action contracts, `action_store` lifecycle stages, `k1.v1` IR and independent authorization data | ZH | ## API, architecture and operations | Guide | Description | Languages | | --- | --- | --- | | [API and pipeline reference](API_REFERENCE.md) | HTTP endpoints, DAG sharding, ObjectSet 1.1, quality weights, metric contracts, and trace export | [EN](API_REFERENCE.md) · [ZH](API_REFERENCE.zh.md) | | [Architecture decisions](ARCHITECTURE.md) | Modular monolith, `api`/`worker` processes, SQLite/PostgreSQL fact store, S3/local storage and dependency direction | ZH | | [Persistence schema composition](PERSISTENCE_SCHEMA.md) | Schema baseline ownership, SQLite versioned upgrades and PostgreSQL migration alignment | EN | | [Small-team deployment](DEPLOYMENT.md) | Loopback defaults behind Caddy or nginx + oauth2-proxy, Docker Compose and six-point verification checklist | [EN](DEPLOYMENT.md) · [ZH](DEPLOYMENT.zh.md) | | [SQLite database maintenance](DATABASE_MAINTENANCE.md) | Explicit `db status`/`db upgrade` workflow, maintenance lock and hash-verified local recovery packages | EN | | [Capacity and scale workloads](CAPACITY.md) | Reproducible S/M/L workloads, dual-stack benchmark results and B8 team-claim measurements | EN / ZH | ## Engineering, verification and community | Guide | Description | Languages | | --- | --- | --- | | [Code standards](CODE_STANDARDS.md) | Formatting, Ruff ALL, strict Pyright, `import-linter`, file/function size limits, coverage thresholds and license policy | ZH | | [Offline evaluation and quality gates](VERIFICATION.md) | Golden cases, mutation checks, `eval-evidence` and `eval-ask`, screenshot coverage and `make check` | [EN](VERIFICATION.md) · [ZH](VERIFICATION.zh.md) | | [Test execution speed](TEST_SPEED.md) | Worker scheduling, PostgreSQL template cloning and parallel CI shard merging | EN / ZH | | [Frontend bundle performance](FRONTEND_PERF.md) | React route lazy loading, Vite chunk splitting and bundle size verification | EN / ZH | | [Full-site Playwright E2E](E2E_TESTING.md) | Reproducible offline 10-journey desktop/mobile browser regression suite (`scripts/run_e2e.py`) | EN / ZH | | [Offline research CLI & MCP trace tree](RESEARCH_CLI_MCP.md) | Standalone `audit-labels`, `audit-review-batches`, `chunk-document`, `calibrate-routing` CLIs and MCP `get_trace_tree` | EN / ZH | | [Public repository export](PUBLIC_EXPORT.md) | Clean history/snapshot export workflow, public-content scan rules and fresh-clone validation | EN / ZH | | [UI direction & proofreading design](design/UI-DIRECTION-B.md) | Proofreading & provenance archive design tokens and color palettes | ZH | | [Backlog](BACKLOG.md) | Completed milestones and open engineering improvements | ZH | | [Contracts guide](../contracts/README.md) | Semantic file-format contracts, operator manifest generation and drift checks | EN | | [Contributing](../CONTRIBUTING.md) · [Support](../SUPPORT.md) · [Security](../SECURITY.md) · [Changelog](../CHANGELOG.md) | Contributor setup, community support, private vulnerability reporting and release history | EN / ZH |