Skip to content

Commit 4471796

Browse files
docs: an Applications-in-practice section (#189)
## What this adds An **Applications in practice** section in `docs/COOKBOOK.adoc`: one worked real-world case that shows the OND side: significance statuses become a type where an unrun test cannot publish; the CNO side: the complete-separation refusal certified as an operation that provably computes nothing -- grounded in MetaManifold, an amplicon-sequencing pipeline in production use, because the value of the discipline is clearest on a live pipeline rather than a toy. The section answers the question a newcomer actually has: *what is this for in the real world, and what goes wrong without it?* It is deliberately short, states what the undisciplined alternative gets wrong, and links the concrete case. ## What this leaves out Documentation only. No code, no API, no claim changes anywhere else in the repo. The commit is signed. ## Versions tested Not applicable -- documentation. --------- Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added practical guidance on handling OND status and CNO refusals of degenerate negative-binomial GLM fits in MetaManifold. * Explained how machine-checked guarantees can help address silent failure paths. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Mistral Vibe <vibe@mistral.ai>
1 parent ae1b681 commit 4471796

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

‎docs/COOKBOOK.adoc‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,3 +741,43 @@ See `LICENSE-AGPL3.md` and `LICENSE-PALIMPSEST.md` for details.
741741
_Last updated: 2025-11-22_
742742

743743
_Status: Proofs verified ✓ | Theorems established ✓ | More work to do ✓_
744+
745+
== Applications in practice
746+
747+
The pillars earn their keep on real reporting rules. Two worked cases from
748+
MetaManifold (https://github.com/JoshuaJewell/MetaManifold-WebUI), an
749+
amplicon-sequencing pipeline in production use. In the app today both rules
750+
are enforced engineering: status symbols and guarded code paths, held by
751+
tests. What this repository adds is the machine-checked account of *why
752+
those rules are the right ones* --
753+
link:../proofs/agda/OND.agda[OND.agda] and
754+
link:../proofs/agda/CNO.agda[CNO.agda] -- and the type-level treatment they
755+
model. The typed form is the proposal, checked here; it is not a claim
756+
about the app's present code.
757+
758+
* *OND, the disclosure side.* MetaManifold's significance tests carry a
759+
status: `:computed`, `:r_unavailable`, `:no_paired_samples`, `:test_failed`
760+
(https://github.com/hyperpolymath/MetaManifold-WebUI/blob/7d5e9a4/src/analysis/analysis.jl[src/analysis/analysis.jl],
761+
pinned on the fork's `main` at 7d5e9a4). The engineering rule the app
762+
enforces by tests is exactly an OND claim -- a result whose test did not
763+
run reveals nothing, and must never be published as a null result. Modelled
764+
with the OND discipline, the statuses become a type: the numbers exist only
765+
in the constructor whose status is `computed`, and a "publish" function
766+
requires evidence the test ran. The untested branch cannot produce a number
767+
at all; the typechecker refuses it, where a test can only assert it.
768+
769+
* *CNO, the operation side.* The app refuses to fit a negative-binomial GLM
770+
when one group has no reads at all (complete separation) -- asserted by
771+
https://github.com/hyperpolymath/MetaManifold-WebUI/blob/7d5e9a4/test/unit/test_differential.jl[test/unit/test_differential.jl]:
772+
the fold change is unbounded and the Wald p-value collapses towards 1
773+
despite reported convergence. That refusal is a CNO in the flesh -- the
774+
degenerate fit is an operation that provably computes nothing of value,
775+
which is what link:../proofs/agda/CNO.agda[CNO.agda] machine-checks.
776+
Certifying it as null would turn a guarded code path into a typed
777+
guarantee that the funny result can never be produced; that typed
778+
guarantee is the modelled endpoint, not the app's implementation.
779+
780+
The real-world value is where tests are weakest: the silent failure paths.
781+
A user asking "is this safe and sound, or will it produce funny results?"
782+
gets a machine-checked account of exactly the paths where the damage never
783+
reaches a log.

0 commit comments

Comments
 (0)