{
  "title": "MDKV: A Multitrack Markdown Container for Structured, Portable Documents",
  "version": "1.0",
  "doi": "10.5281/zenodo.16790554",
  "doi_url": "https://doi.org/10.5281/zenodo.16790554",
  "zenodo_record": "https://zenodo.org/records/16790554",
  "record_id": "16790555",
  "publication_date": "2025-08-10",
  "resource_type": {
    "title": "Other",
    "type": "other"
  },
  "creators": [
    {
      "name": "Friedman, Daniel",
      "affiliation": "Active Inference Institute",
      "orcid": "0000-0001-6232-9096"
    }
  ],
  "description": "Digital knowledge work increasingly demands documents that are simultaneously multilingual, multi‑audience, and multi‑channel. Traditional single‑file Markdown struggles when the same canonical content must coexist with translations, commentary, references, code exemplars, and revision notes &ndash; each with distinct lifecycles and audiences. This paper introduces MDKV, a simple but rigorous multitrack Markdown container that packages a document&rsquo;s canonical content and auxiliary tracks into a single, portable `.mdkv` file. An `.mdkv` is a ZIP archive with a YAML `manifest.yaml` and a `tracks/` directory of UTF‑8 Markdown files. MDKV provides a principled data model, validation, search, and export services, a CLI, and a small GUI for selective preview and live editing. We formalize the MDKV model, present its software architecture, explain round‑trip export semantics, and evaluate design trade‑offs against adjacent technologies. The MDKV initial specification is open source under the Apache‑2.0 license and maintained at the project repository https://github.com/docxology/mdkv . We also situate MDKV with respect to Matroska (MKV) as background on containerization: although the two are orthogonal in domain (text vs. multimedia), they share conceptual lineage in extensible container design. We conclude with use cases, implications for governance and reproducibility, and future work such as richer validation rules and alternative exporters. This paper is itself a Markdown file that renders into a valid MDKV. The built artifact is available at paper/paper.mdkv ; combined exports are under&nbsp; paper/_bundle .",
  "keywords": [
    "MDKV",
    "Markdown",
    "multitrack documents",
    "ZIP container",
    "YAML manifest",
    "round-trip export"
  ],
  "files": [
    {
      "name": "mdkv_paper.md",
      "size_bytes": 41421,
      "checksum": "md5:e72eec6af63c128441a74e2a3a880675",
      "download_url": "https://zenodo.org/api/records/16790555/files/mdkv_paper.md/content"
    },
    {
      "name": "build_paper_bundle.py",
      "size_bytes": 9837,
      "checksum": "md5:2677775ca52ce505e610a090fe7a86e2",
      "download_url": "https://zenodo.org/api/records/16790555/files/build_paper_bundle.py/content"
    },
    {
      "name": "build_paper_bundle.sh",
      "size_bytes": 582,
      "checksum": "md5:373b5d4f8ddd4c9d14f08b100841b278",
      "download_url": "https://zenodo.org/api/records/16790555/files/build_paper_bundle.sh/content"
    },
    {
      "name": "mdkv_v1_DAF_08-10-2025.pdf",
      "size_bytes": 147448,
      "checksum": "md5:d93931742ebdfff1d21fb34a4f832bb9",
      "download_url": "https://zenodo.org/api/records/16790555/files/mdkv_v1_DAF_08-10-2025.pdf/content"
    },
    {
      "name": "paper.mdkv",
      "size_bytes": 15634,
      "checksum": "md5:0be2d7e318f3fe3f5aee99f2d1e5c6b3",
      "download_url": "https://zenodo.org/api/records/16790555/files/paper.mdkv/content"
    }
  ],
  "related_resources": [],
  "github_repo": "",
  "source": "zenodo-only",
  "checked_at": "2026-06-30T23:25:50Z",
  "domain": "Computational",
  "type": "Paper",
  "methods": [
    {
      "name": "ZIP container with YAML manifest and tracks/ directory of Markdown files",
      "description": "MDKV defines an .mdkv file as a ZIP archive holding a manifest.yaml index plus one UTF-8 Markdown file per track.",
      "evidence": "An .mdkv  is a ZIP archive with a YAML manifest.yaml  and a tracks/  directory of UTF‑8 Markdown files."
    },
    {
      "name": "Seven-type track taxonomy (primary, translation, commentary, code, etc.)",
      "description": "Document layers are separated into typed tracks that are composed into views only at export time.",
      "evidence": "MDKV separates concerns into tracks— primary  (canonical), translation , commentary , code , reference , media_ref , and revision —and composes views at export time."
    },
    {
      "name": "Python reference implementation split into core, storage, services, and CLI",
      "description": "The software follows a thin-orchestrator design with separate modules for data model and validation, persistence, search/export, and command-line entry points.",
      "evidence": "mdkv.core : data model and validation mdkv.storage : persistence (read/write .mdkv ) mdkv.services : search and export utilities mdkv.cli : CLI entry points and subcommands"
    },
    {
      "name": "Round-trip export via HTML-comment track headers",
      "description": "Combined Markdown exports prefix each track with a comment encoding its id, type, and language so attribution can be reconstructed.",
      "evidence": "When exporting multiple tracks into a single Markdown stream, MDKV prefixes each track with a lightweight HTML comment that encodes track metadata."
    },
    {
      "name": "Normative MUST/SHOULD conformance requirements and minimal validator",
      "description": "The paper specifies conformance rules and a base validator checking title, authors, a primary track, track paths, types, and unique ids.",
      "evidence": "The MDKV container is defined by the following MUST/SHOULD requirements:"
    }
  ],
  "key_findings": [
    "The paper lists four contributions: a precise model and container format, a modular architecture exposed via CLI and GUI, detailed use cases, and guidance on cryptographic provenance and conformance.",
    "Export is designed to be deterministic: order follows the manifest, and identical inputs produce identical outputs.",
    "The author lists format limitations, including no built-in encryption or signing and code tracks that are listings rather than runnable notebooks.",
    "The paper notes that the reference validator currently checks for a track with id 'primary' rather than the type-level requirement.",
    "The paper is itself authored as a Markdown file that renders into a valid MDKV."
  ],
  "related_papers": [
    "2023_NSFReporting",
    "2023_NaturalAIBased",
    "2025_AuBI"
  ],
  "key_findings_evidence": [
    "Contributions. (i) A precise model and container format with minimal but sufficient validation; (ii) a modular architecture separating model, storage, and services, surfaced via CLI and GUI;",
    "Export determinism: order is manifest‑driven; identical inputs produce identical outputs.",
    "No encryption or signing baked in: use external tools for security (see Security and provenance guidance). Not an execution environment: code  tracks are listings, not runnable notebooks",
    "Implementation note: the reference validator currently checks for the presence of a track with id primary ; this could be aligned to the type‑level requirement in future releases.",
    "This paper is itself a Markdown file that renders into a valid MDKV."
  ],
  "summary_provenance": {
    "source": "full_text.md",
    "date": "2026-10-01",
    "work_kind": "software/methods",
    "method": "Evidence-grounded extraction from full_text.md: every method and finding carries a verbatim quote from the paper text, mechanically verified to occur in full_text.md (whitespace/ligature-normalized) before merge.",
    "notes": "Software specification paper; no empirical evaluation beyond design trade-off discussion.",
    "reviewed": "2026-10-01 independent review of every item against its quote and context; no corrections needed"
  },
  "abstract": "Digital knowledge work increasingly demands documents that are simultaneously multilingual, multi‑audience, and multi‑channel. Traditional single‑file Markdown struggles when the same canonical content must coexist with translations, commentary, references, code exemplars, and revision notes – each with distinct lifecycles and audiences. This paper introduces MDKV, a simple but rigorous multitrack Markdown container that packages a document’s canonical content and auxiliary tracks into a single, portable `.mdkv` file. An `.mdkv` is a ZIP archive with a YAML `manifest.yaml` and a `tracks/` directory of UTF‑8 Markdown files. MDKV provides a principled data model, validation, search, and export services, a CLI, and a small GUI for selective preview and live editing. We formalize the MDKV model, present its software architecture, explain round‑trip export semantics, and evaluate design trade‑offs against adjacent technologies. The MDKV initial specification is open source under the Apache‑2.0 license and maintained at the project repository https://github.com/docxology/mdkv . We also situate MDKV with respect to Matroska (MKV) as background on containerization: although the two are orthogonal in domain (text vs. multimedia), they share conceptual lineage in extensible container design. We conclude with use cases, implications for governance and reproducibility, and future work such as richer validation rules and alternative exporters. This paper is itself a Markdown file that renders into a valid MDKV. The built artifact is available at paper/paper.mdkv ; combined exports are under paper/_bundle .",
  "abstract_provenance": {
    "source": "papers/paper_metadata.json",
    "date": "2026-10-01",
    "basis": "Zenodo description checked against the document"
  },
  "keywords_provenance": {
    "source": "full_text.md",
    "date": "2026-10-01",
    "basis": "Terms selected from the document subject and methods; replaces inaccurate hand-seeded keywords"
  }
}
