{
  "title": "A template/ approach to Reproducible Generative Research",
  "version": "1.0.9",
  "doi": "10.5281/zenodo.20419007",
  "doi_url": "https://doi.org/10.5281/zenodo.20419007",
  "zenodo_record": "https://zenodo.org/records/20419007",
  "record_id": "20976048",
  "publication_date": "2026-06-27",
  "resource_type": {
    "title": "Journal article",
    "type": "publication",
    "subtype": "article"
  },
  "creators": [
    {
      "name": "Daniel Ari Friedman",
      "affiliation": "Active Inference Institute",
      "orcid": "0000-0001-6232-9096"
    }
  ],
  "description": "The reproducibility crisis in computational research is fundamentally structural: research artifacts are scattered across disconnected tools—LaTeX editors, Jupyter notebooks, ad-hoc shell scripts—with no enforced mechanism to keep code, data, and manuscript synchronized. Studies have shown that most published findings are false positives, replication rates in psychology hover around 36%, and only 24% of 1.4 million Jupyter notebooks can be successfully re-executed. Existing tools address fragments of this problem: workflow managers (Snakemake, Nextflow, CWL) orchestrate computation; literate programming systems (Quarto, Jupyter Book, R Markdown, Overleaf, OpenAI Prism) render documents; data versioning tools (DVC) track artifacts—but none enforces cross-cutting quality standards as architectural invariants. template/ applies the principle of Infrastructure as Code to the research lifecycle, making the manuscript, test suite, and provenance chain version-controlled, deterministically buildable, and independently verifiable. It is built on a Two-Layer Architecture that separates 23 infrastructure subdirectories (20 importable Python packages, ~604 modules, validated by ~7,780 tests) from self-contained project workspaces, connected by a YAML-declared pipeline (12 stages; default full 10)-based build pipeline progressing from environment sanitization through test execution (with a Zero-Mock testing policy enforcing 90% project-level and 60% infrastructure-level coverage via real filesystem operations and subprocess invocations), analysis script invocation, Pandoc/XeLaTeX rendering, SHA-256 cryptographic hashing with steganographic watermarking, structural PDF validation, and LLM-assisted review. A Documentation Duality standard equips every directory with both human-readable README.md and machine-readable AGENTS.md files, while each infrastructure module additionally carries a SKILL.md—a structured skill descriptor aligned with the Model Context Protocol—enabling AI agents to locate and invoke module capabilities without hallucinating API signatures.\n\nScalability is demonstrated across the generated public exemplar roster (templates/template_active_inference, templates/template_autoresearch_project, templates/template_autoscientists, templates/template_code_project, templates/template_gold_refinement, templates/template_literature_meta_analysis, templates/template_madlib, templates/template_newspaper, templates/template_prose_project, templates/template_sia, templates/template_template, templates/template_textbook), with representative heterogeneous cases under projects/templates/: optimization (template_code_project, 231 tests), prose (template_prose_project, 120 tests), and AutoResearch readiness (template_autoresearch_project, 296 tests). These guarantee control-positive layouts for code-centric, prose-centric, and retrieval-centric workflows at 90%+ project coverage alongside 60%+ infrastructure gates. All three share identical pipeline stages without cross-project coupling. This manuscript adds a complementary reflexive artifact: authored from projects/templates/template_template (127 tests) as a public exemplar in the same discovered/rendered tree, using the same analysis and render path and injecting counters from repository introspection. The fact that these words, metrics, and figures were generated by the pipeline they describe demonstrates self-documenting capacity: rendered through the DAG, validated without mocks, optionally watermarked. A comparative analysis against nine peer tools across fourteen dimensions positions template/ as integrating fourteen distinctive enforcement capabilities—testing thresholds, cryptographic provenance, steganographic watermarking, multi-project management, MCP-aligned skill descriptors, Zero-Mock policy, orchestration through publication—in one repository. Code is released under the Apache License 2.0 at github.com/docxology/template; the work remains open-ended.\n\n---\nAssociated artifacts\nGitHub release: v1.0.9 (https://github.com/docxology/template_template/releases/tag/v1.0.9)\nDOI: https://doi.org/10.5281/zenodo.20419007\nZenodo: https://zenodo.org/records/20419007\nPDF SHA-256: 535bd80943d0ae9fd504a926efb41c6b39c3a812a94ea4d51bc974029bca563c",
  "keywords": [
    "reproducible research",
    "infrastructure-as-code",
    "steganography",
    "cryptographic provenance",
    "LaTeX rendering",
    "modular infrastructure",
    "publication integrity",
    "zero-mock testing",
    "thin orchestrator",
    "two-layer architecture",
    "FAIR4RS",
    "research software engineering"
  ],
  "files": [
    {
      "name": "Friedman_2026_Template_535bd809.pdf",
      "size_bytes": 1389726,
      "checksum": "md5:6114d1f0077f16a066599bbf72cada66",
      "download_url": "https://zenodo.org/api/records/20976048/files/Friedman_2026_Template_535bd809.pdf/content"
    }
  ],
  "related_resources": [
    {
      "type": "repository",
      "url": "https://github.com/docxology/template_template"
    }
  ],
  "github_repo": "docxology/template_template",
  "github_release_url": "https://github.com/docxology/template_template/releases/tag/v1.0.9",
  "release_tag": "v1.0.9",
  "release_name": "A template/ approach to Reproducible Generative Research (v1.0.9)",
  "pdf_sha256": "535bd80943d0ae9fd504a926efb41c6b39c3a812a94ea4d51bc974029bca563c",
  "pairing_confidence": "strong",
  "pairing_evidence": [
    "github_release_mentions_doi",
    "github_release_mentions_zenodo_record",
    "zenodo_related_identifier_mentions_release",
    "github_repo_self_linked",
    "title_overlap"
  ],
  "checked_at": "2026-09-24T18:29:54Z",
  "accepted_pairings": [
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template",
      "github_release_url": "https://github.com/docxology/template/releases/tag/0.1",
      "release_tag": "0.1",
      "release_name": "0.1",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template",
      "github_release_url": "https://github.com/docxology/template/releases/tag/0.2",
      "release_tag": "0.2",
      "release_name": "0.2",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template",
      "github_release_url": "https://github.com/docxology/template/releases/tag/0.3",
      "release_tag": "0.3",
      "release_name": "0.3",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template",
      "github_release_url": "https://github.com/docxology/template/releases/tag/0.4",
      "release_tag": "0.4",
      "release_name": "0.4",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template",
      "github_release_url": "https://github.com/docxology/template/releases/tag/0.5",
      "release_tag": "0.5",
      "release_name": "Multiproject",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template",
      "github_release_url": "https://github.com/docxology/template/releases/tag/v3.0.0",
      "release_tag": "v3.0.0",
      "release_name": "Research Project Template v3.0.0",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template_template",
      "github_release_url": "https://github.com/docxology/template_template/releases/tag/v1.0.3",
      "release_tag": "v1.0.3",
      "release_name": "A \\texttt{template/} approach to Reproducible Generative Research (v1.0.3)",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked",
        "title_overlap"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template_template",
      "github_release_url": "https://github.com/docxology/template_template/releases/tag/v1.0.4",
      "release_tag": "v1.0.4",
      "release_name": "A \\texttt{template/} approach to Reproducible Generative Research (v1.0.4)",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked",
        "title_overlap"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    },
    {
      "doi": "10.5281/zenodo.20419007",
      "record_title": "A template/ approach to Reproducible Generative Research",
      "zenodo_record_url": "https://zenodo.org/records/20420387",
      "github_repo": "docxology/template_template",
      "github_release_url": "https://github.com/docxology/template_template/releases/tag/v1.0.5",
      "release_tag": "v1.0.5",
      "release_name": "A template/ approach to Reproducible Generative Research (v1.0.5)",
      "resource_type": {
        "title": "Journal article",
        "type": "publication",
        "subtype": "article"
      },
      "raw_confidence": "needs_review",
      "evidence": [
        "github_repo_self_linked",
        "title_overlap"
      ],
      "review_decision": "accept",
      "reviewed_at": "2026-06-04T22:32:27Z",
      "review_source": "user: Accept for all",
      "source_report": "reports/paired_publications_2026-06-04.json"
    }
  ],
  "manual_pairing_review": {
    "decision": "accept",
    "reviewed_at": "2026-06-04T22:32:27Z",
    "source": "data/paired-publication-decisions.json"
  },
  "domain": "Computational",
  "type": "Paper",
  "methods": [
    {
      "name": "Two-Layer Architecture separating shared infrastructure from project workspaces",
      "description": "Describes a repository design where N independent research projects share infrastructure packages without coupling to each other.",
      "evidence": "A formal description of the Two-Layer Architecture and Standalone Project Paradigm that enables N independent research projects to share infrastructure without coupling."
    },
    {
      "name": "YAML-declared 12-stage build DAG from tests through Pandoc/XeLaTeX rendering",
      "description": "Specifies the pipeline in pipeline.yaml; default full runs use 10 stages and --core-only runs 8.",
      "evidence": "A detailed specification of the 12-stage DAG in infrastructure/core/pipeline/pipeline.yaml:"
    },
    {
      "name": "Zero-Mock testing policy with 90% project and 60% infrastructure coverage gates",
      "description": "Tests use real filesystem operations and subprocess calls rather than mocks, with coverage thresholds enforced by the pipeline.",
      "evidence": "with a Zero-Mock testing policy enforcing 90% project-level and 60% infrastructure-level coverage via real filesystem operations and subprocess invocations"
    },
    {
      "name": "Feature comparison against nine peer tools across fourteen dimensions",
      "description": "Compares template/ with workflow managers, literate-programming systems, DVC, Overleaf and OpenAI Prism on enforcement features.",
      "evidence": "A comparative analysis positioning template/ against nine peer tools—Snakemake, Nextflow, CWL, Quarto, Jupyter Book, R Markdown, DVC, Overleaf, OpenAI Prism"
    },
    {
      "name": "Multi-project pipeline runs measuring coverage, timing, integrity and watermarking",
      "description": "Exemplar projects were run through the core pipeline on an Apple Silicon workstation, recording tests passed, durations and steganography timings.",
      "evidence": "template/ was evaluated through multi-project pipeline execution, measuring test coverage, pipeline timing, output integrity, and steganographic performance across the canonical exemplars under projects/."
    }
  ],
  "key_findings": [
    "Reports 100% pipeline completion for the sampled multi-project runs, with timings described as illustrative.",
    "The manuscript was itself produced by the pipeline it describes, with metrics injected from repository introspection.",
    "The comparative analysis positions template/ as integrating fourteen distinctive enforcement capabilities in one repository.",
    "States that the provenance layer offers SHA-256 tamper detection but not cryptographic non-repudiation, since it lacks private-key signatures.",
    "Acknowledges the pipeline is single-machine, without native distributed execution, where Snakemake, Nextflow and CWL are superior."
  ],
  "related_papers": [
    "2023_NSFReporting",
    "2023_NaturalAIBased",
    "2025_AuBI"
  ],
  "related_software": [
    "docxology/template_template"
  ],
  "key_findings_evidence": [
    "Overall success: 100 % pipeline completion for sampled runs.",
    "This paper is itself a product of the template it describes.",
    "A comparative analysis against nine peer tools across fourteen dimensions positions template/ as integrating fourteen distinctive enforcement capabilities",
    "The current system provides tamper detection (via SHA-256 hashing) but not non-repudiation in the cryptographic sense—it lacks private-key digital signatures.",
    "Distributed execution (e.g., across a compute cluster) is not natively supported, a gap where Snakemake, Nextflow, and CWL have clear superiority."
  ],
  "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/infrastructure paper evaluated on its own exemplar projects. Internal inconsistency: abstract and Results cite fourteen distinctive capabilities, while the Conclusion says 'all eleven distinctive capabilities'.",
    "reviewed": "2026-10-01 independent review of every item against its quote and context; no corrections needed"
  }
}
