A Domain Language for Specifying Controlled Methods
Daniel Ari Friedman (2026) · Computational
Context
This work addresses topics in Computational: methods paper, domain-specific language, controlled methods, deterministic compilation.
Methods
Primary methods and techniques applied in this work:
- Controlled vocabulary of 9 step intents and 3 execution targets — Steps name one of nine intents (TRANSFER, ADD, MIX, etc.) and run on HUMAN, AUTOMATED or SIMULATION targets, generalizing BPL's protocol verbs.
- Dimensional-safety unit system (Quantity/Dimension) — Each quantity resolves to a controlled unit table and combining quantities of different dimensions raises an error at construction rather than at the bench.
- Four staged validation gates with short-circuit — Structural, semantic, plan (acyclicity) and target-compatibility gates run in fixed order, returning early if the first two fail.
- Deterministic compilation via Kahn's algorithm and SHA-256 plan hash — Validated steps are topologically scheduled with an explicit ascending step_id tie-break and the canonical JSON plan is hashed with SHA-256.
- Two worked example methods and zero-mock test suite — Demonstrates the DSL on a wet-lab PBS preparation and an automated sensor-calibration sweep, tested without mocks under a 90% coverage gate.
Key Findings
Core contributions and results:
- Across the two worked examples, which were built to pass, the analysis script recorded 8 of 8 staged-gate evaluations passing (2 methods x 4 gates).
- Live recompilation of each example method produced identical plan hashes, and a 3-record demonstration provenance hash-chain verified.
- The author concludes that a controlled vocabulary expressed as typed, validated dataclasses rather than a parsed grammar suffices to reproduce BPL's core safety properties at template-exemplar scope.
- Stable scheduling depends on the explicit tie-break: Kahn's algorithm alone does not guarantee a reproducible plan hash.
- The calibration example reused every step kind and target of the wet-lab example, with nothing added to support the second domain.
Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in metadata.json (evidence, key_findings_evidence).
Related Works
Validation
Verification points for this work:
- Canonical DOI: 10.5281/zenodo.21086548
- PDF SHA-256: ecd8519fc2a9a674bd8a4cf89f96122af76529c913e32bf880a7c842da08771a
- Pairing confidence: strong
- Last checked: 2026-09-24T18:29:57Z
Prerequisites
- Familiarity with methods paper, domain-specific language, controlled methods
- Background in Computational fundamentals
- Access to source repository: docxology/template_methods_paper
Instructions
When working with this paper:
- Reference the DOI for citation:
10.5281/zenodo.21086548
- Apply methods listed in the Methods section for related analysis.
- Validate findings against the original PDF and metadata.
1---2# docxology:generated-document SKILL.md; ownership=explicit-manifest3name: a-domain-language-for-specifying-controlled-methods4description: "This paper describes a small, tested domain language for specifying controlled methods — the methods-paper exemplar of the Research Project Template (https://github.com/docxology/template). Unlike a results paper, this manuscript's subject is the met..."5tags: ["methods-paper", "domain-specific-language", "controlled-methods", "deterministic-compilation", "staged-validation", "dimensional-analysis"]6domain: "Computational"7citation: "Daniel Ari Friedman (2026). *A Domain Language for Specifying Controlled Methods*. Zenodo."8doi: "10.5281/zenodo.21086548"9metadata:10 source: https://skillmd.com/skills/docxology/a-domain-language-for-specifying-controlled-methods11---1213# A Domain Language for Specifying Controlled Methods1415**Daniel Ari Friedman** (2026) · Computational1617## Context1819This work addresses topics in **Computational**: methods paper, domain-specific language, controlled methods, deterministic compilation.2021## Methods2223Primary methods and techniques applied in this work:2425- **Controlled vocabulary of 9 step intents and 3 execution targets** — Steps name one of nine intents (TRANSFER, ADD, MIX, etc.) and run on HUMAN, AUTOMATED or SIMULATION targets, generalizing BPL's protocol verbs.26- **Dimensional-safety unit system (Quantity/Dimension)** — Each quantity resolves to a controlled unit table and combining quantities of different dimensions raises an error at construction rather than at the bench.27- **Four staged validation gates with short-circuit** — Structural, semantic, plan (acyclicity) and target-compatibility gates run in fixed order, returning early if the first two fail.28- **Deterministic compilation via Kahn's algorithm and SHA-256 plan hash** — Validated steps are topologically scheduled with an explicit ascending step_id tie-break and the canonical JSON plan is hashed with SHA-256.29- **Two worked example methods and zero-mock test suite** — Demonstrates the DSL on a wet-lab PBS preparation and an automated sensor-calibration sweep, tested without mocks under a 90% coverage gate.3031## Key Findings3233Core contributions and results:3435- Across the two worked examples, which were built to pass, the analysis script recorded 8 of 8 staged-gate evaluations passing (2 methods x 4 gates).36- Live recompilation of each example method produced identical plan hashes, and a 3-record demonstration provenance hash-chain verified.37- The author concludes that a controlled vocabulary expressed as typed, validated dataclasses rather than a parsed grammar suffices to reproduce BPL's core safety properties at template-exemplar scope.38- Stable scheduling depends on the explicit tie-break: Kahn's algorithm alone does not guarantee a reproducible plan hash.39- The calibration example reused every step kind and target of the wet-lab example, with nothing added to support the second domain.4041Methods and findings are summarized from the full text; each item is backed by a verbatim quote recorded in `metadata.json` (`evidence`, `key_findings_evidence`).4243## Related Works4445- [2023_NSFReporting](../2023_NSFReporting/)46- [2023_NaturalAIBased](../2023_NaturalAIBased/)47- [2025_AuBI](../2025_AuBI/)4849## Validation5051Verification points for this work:5253- Canonical DOI: 10.5281/zenodo.2108654854- PDF SHA-256: ecd8519fc2a9a674bd8a4cf89f96122af76529c913e32bf880a7c842da08771a55- Pairing confidence: strong56- Last checked: 2026-09-24T18:29:57Z5758## Prerequisites5960- Familiarity with methods paper, domain-specific language, controlled methods61- Background in Computational fundamentals62- Access to source repository: docxology/template_methods_paper6364## Instructions6566When working with this paper:67681. Reference the DOI for citation: `10.5281/zenodo.21086548`692. Apply methods listed in the Methods section for related analysis.703. Validate findings against the original PDF and metadata.