Documentation
¶
Overview ¶
Package outcomemodel is a Go-first specification for representing, measuring, and reporting on the outcomes a product, program, or organization works toward. One outcome model serves four views: causality (why what is done should lead to the change wanted), strategy (what is committed to), measurement and learning (how progress is known), and improvement (how a measured process gets better). The theory of change, the logic model, OKRs, the Balanced Scorecard, a MEL plan, DMAIC, and the other formats are projections of one outcome model.
Go structs are the source of truth; JSON Schemas are generated from them and embedded. Tooling built on the model validates documents, analyzes their causal graphs, edits them through validated patches, rolls up indicator observations into pathway status, and renders reports and slide decks.
Key packages:
- pkg/ref: typed references to outcome models and their elements
- pkg/model: the outcome model
- schema: JSON Schemas generated from pkg/model, embedded for runtime use
See docs/specs/initiatives/INIT-THEORYOFCHANGESPEC-001 for the PRD, TRD, plan, and roadmap, and docs/research for the methodology background.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
generate-schema
command
Command generate-schema writes the JSON Schemas generated from the Go types in pkg/model.
|
Command generate-schema writes the JSON Schemas generated from the Go types in pkg/model. |
|
outcome-model
command
Command outcome-model captures, checks, edits, and reports on outcome models of Change.
|
Command outcome-model captures, checks, edits, and reports on outcome models of Change. |
|
internal
|
|
|
cli
Package cli builds the outcome-model command line.
|
Package cli builds the outcome-model command line. |
|
mdx
Package mdx adjusts generated Markdown so one report can sit inside a larger document: it finds ATX headings and fenced code blocks, drops a report's own title, moves headings to a given level, and splits out fenced diagrams.
|
Package mdx adjusts generated Markdown so one report can sit inside a larger document: it finds ATX headings and fenced code blocks, drops a report's own title, moves headings to a given level, and splits out fenced diagrams. |
|
testfixture
Package testfixture builds outcome models for tests and benchmarks that need a size the hand-written fixtures do not reach.
|
Package testfixture builds outcome models for tests and benchmarks that need a size the hand-written fixtures do not reach. |
|
zipfix
Package zipfix makes a zip archive, such as a .docx or .pptx file, the same bytes every time it is built from the same content.
|
Package zipfix makes a zip archive, such as a .docx or .pptx file, the same bytes every time it is built from the same content. |
|
pkg
|
|
|
approve
Package approve builds the patch that records an outcome model as approved, and refuses when the outcome model is not ready.
|
Package approve builds the patch that records an outcome model as approved, and refuses when the outcome model is not ready. |
|
burden
Package burden totals what it costs to collect the indicators an outcome model selects: staff minutes per week and questions per respondent per year, overall and per pathway and collection mode, against the measurement budget.
|
Package burden totals what it costs to collect the indicators an outcome model selects: staff minutes per week and questions per respondent per year, overall and per pathway and collection mode, against the measurement budget. |
|
diff
Package diff compares two versions of an outcome model by element.
|
Package diff compares two versions of an outcome model by element. |
|
document
Package document assembles one human-readable document from an outcome model: a chosen list of sections, in a chosen order, each a projection of the same model, such as the theory of change, the logic models, a VSEM, and a MEL plan.
|
Package document assembles one human-readable document from an outcome model: a chosen list of sections, in a chosen order, each a projection of the same model, such as the theory of change, the logic models, a VSEM, and a MEL plan. |
|
edit
Package edit is the only way an outcome model document is modified.
|
Package edit is the only way an outcome model document is modified. |
|
graph
Package graph builds the causal graph of an outcome model document and answers structural questions about it: transitive preconditions and consequences, paths to impact, cycles, levels, orphans, dead ends, and the ceiling of accountability.
|
Package graph builds the causal graph of an outcome model document and answers structural questions about it: transitive preconditions and consequences, paths to impact, cycles, levels, orphans, dead ends, and the ceiling of accountability. |
|
judge
Package judge prepares an outcome model for review by an LLM-as-a-Judge and checks, stores, and combines what the judges return.
|
Package judge prepares an outcome model for review by an LLM-as-a-Judge and checks, stores, and combines what the judges return. |
|
lint
Package lint checks the quality of an outcome model with deterministic rules, each with a stable ID and a severity.
|
Package lint checks the quality of an outcome model with deterministic rules, each with a stable ID and a severity. |
|
logicmodel
Package logicmodel derives the layered graph of a logic model from a report view: columns for the stages from inputs to impact, a box for each item in a stage, and an arrow wherever the outcome model says one thing leads to another.
|
Package logicmodel derives the layered graph of a logic model from a report view: columns for the stages from inputs to impact, a box for each item in a stage, and an arrow wherever the outcome model says one thing leads to another. |
|
mcp
Package mcp serves the outcome model tools to AI agents over the Model Context Protocol.
|
Package mcp serves the outcome model tools to AI agents over the Model Context Protocol. |
|
measure
Package measure turns observations into status: how far each indicator has moved, whether that is on track, and what that means for outcomes and pathways.
|
Package measure turns observations into status: how far each indicator has moved, whether that is on track, and what that means for outcomes and pathways. |
|
model
Package toc defines the outcome model document model.
|
Package toc defines the outcome model document model. |
|
modelio
Package tocio loads and writes outcome model documents.
|
Package tocio loads and writes outcome model documents. |
|
prismx
Package prismx exports an outcome model and its status to PRISM documents: OKRs and outcome journeys.
|
Package prismx exports an outcome model and its status to PRISM documents: OKRs and outcome journeys. |
|
problemtree
Package problemtree draws the problem tree of an outcome model: the causes (roots) below the core problem and the effects (branches) above it, with arrows that flow upward from the deepest causes to the core problem and on to the furthest effects.
|
Package problemtree draws the problem tree of an outcome model: the causes (roots) below the core problem and the effects (branches) above it, with arrows that flow upward from the deepest causes to the core problem and on to the furthest effects. |
|
ref
Package ref provides typed references to outcome model documents and the elements inside them.
|
Package ref provides typed references to outcome model documents and the elements inside them. |
|
report
Package report builds the view model that every report and slide deck renders from.
|
Package report builds the view model that every report and slide deck renders from. |
|
review
Package review turns what reviewers said about an outcome model into proposals.
|
Package review turns what reviewers said about an outcome model into proposals. |
|
schemagen
Package schemagen generates the JSON Schemas for the outcome model document kinds from the Go types in pkg/model.
|
Package schemagen generates the JSON Schemas for the outcome model document kinds from the Go types in pkg/model. |
|
service
Package service holds one function per user operation.
|
Package service holds one function per user operation. |
|
share
Package share prepares outcome model artifacts for sharing outside the tools: the export stamp every artifact carries, and the Markdown profile that Pandoc converts to DOCX and PPTX.
|
Package share prepares outcome model artifacts for sharing outside the tools: the export stamp every artifact carries, and the Markdown profile that Pandoc converts to DOCX and PPTX. |
|
slides
Package slides renders outcome model slide decks as Marp Markdown.
|
Package slides renders outcome model slide decks as Marp Markdown. |
|
tabular
Package tabular moves observations in from spreadsheets.
|
Package tabular moves observations in from spreadsheets. |
|
validate
Package validate checks outcome model documents and observation sets for structural problems: schema conformance, identifier uniqueness and format, resolution of every reference, and enumeration validity.
|
Package validate checks outcome model documents and observation sets for structural problems: schema conformance, identifier uniqueness and format, resolution of every reference, and enumeration validity. |
|
Package schema embeds the JSON Schemas generated from pkg/model and validates documents against them.
|
Package schema embeds the JSON Schemas generated from pkg/model and validates documents against them. |
|
Package spec embeds the outcome model specification template and the rubrics an LLM-as-a-Judge uses to review an outcome model.
|
Package spec embeds the outcome model specification template and the rubrics an LLM-as-a-Judge uses to review an outcome model. |