1 Pools, Rules, and Tools: A Template-Integrated Resource Architecture

A Meta-Project Demonstrating Fonds, Rules, and Tools Integration in Research Software


Field Value
Author Daniel Ari Friedman¹
Affiliation ¹ Active Inference Institute
Correspondence daniel@activeinference.institute
ORCID 0000-0001-6232-9096
Version 1.0.0
Date 2026-07-10
License CC-BY-4.0
Repository Public template repository
DOI 10.5281/zenodo.21298888
Keywords research software engineering, monorepo architecture, reproducibility, fonds, governance rules, tool discovery, graceful degradation

1.1 Author Contributions

Daniel Ari Friedman: Conceptualisation, architecture design, module implementation (fonds_reader, rules_applier, tools_invoker, integration, strong_rule_evaluator, figures, manuscript_variables), manuscript writing (all sections), test suite design, exemplar resource authoring (fonds, rules, tools), validation.

1.2 Acknowledgements

The author thanks the Active Inference Institute for hosting the public template repository and providing the infrastructure within which this exemplar was developed. The design of the three-layer resource architecture draws inspiration from the Unix philosophy (Raymond 2003) and the enterprise application patterns documented by (Fowler 2002).

1.3 Data Availability

All source code, configuration files, and exemplar resources described in this paper are available in the public template repository and the standalone project repository. The integration pipeline is fully reproducible from source using uv run python projects/templates/template_pools_rules_tools/scripts/02_run_integration.py from the repository root. Generated manuscript variables are stored in output/data/manuscript_variables.json and injected at render time. Every figure in this manuscript, including the cover illustration, is likewise reproducible from source via uv run python projects/templates/template_pools_rules_tools/scripts/05_generate_figures.py, which writes to docs/manuscript/figures/ and publishes copies to output/figures/.

1.4 Competing Interests

The author declares no competing interests.

1.5 Reproducibility Checklist

This exemplar targets full computational reproducibility for every quantitative claim and figure it makes:

Artefact Regenerated by Verified by
Integration counts (fonds/rules/tools) scripts/02_run_integration.py tests/test_integration.py end-to-end assertion
Manuscript variable tokens scripts/03_generate_manuscript.py Rendered PDF contains no unresolved {{...}} tokens
Eight content figures and the cover scripts/05_generate_figures.py tests/test_figures.py (per-function file-existence checks)
≥90% src/ coverage uv run pytest … --cov-fail-under=90 CI + local pre-push gate
Combined PDF full project pipeline, PDF rendering stage (4-pass xelatex + bibtex) pdftotext scan for unresolved-reference markers and page-scale raster read

The complete Template checkout supplies the resources needed to reproduce the integration counts and figures. Resource counts and the dashboard inputs (fig. 5, fig. 7) come from run_integration_demo(). The test suite reports coverage separately, and coverage thresholds come from the declared rule schemas. None of these numbers are hand-typed; a test_reflects_changed_integration_result negative control in tests/test_manuscript_variables.py proves the token-generation function actually tracks its source rather than emitting a fixed constant.