Example Progression
The repository examples show an increasing degree of analytical comparison.
They are not organized by data model. Data models are inputs inside each example.
The examples are written as a tutorial path for both humans and AI agents:
-
Humans can read each folder README and run the commands step by step.
-
AI agents can follow the same folders as deterministic task recipes, using the declared YAML inputs and JSON outputs.
-
The numbered folders intentionally move from simpler operations to richer comparison workflows.
-
Source ingestion Load and assess composition profiles from live URL sources.
-
Structural comparison Compare two assessment results for profiles with the same declared scope.
-
Reduced use-case comparison Run the first hand-checkable aligned use-case comparison.
-
Extended use-case comparison Run a broader aligned use-case comparison to exercise more coverage signals.
Why Four Folders?
The folders reflect the analysis workflow, not source ecosystems.
Read them in numerical order.
Shared Preparation Pattern
The comparison examples are self-contained and follow the same preparation pattern:
- Define the comparison scope.
- Define the left composition profile.
- Define the right composition profile.
- Define the use-case YAML.
- Define the analyst-authored alignment YAML.
- Run coverage for the left profile.
- Run coverage for the right profile.
- Run assessment for the left profile.
- Run assessment for the right profile.
- Run comparison.
- Run prioritization.
- Run deterministic summarization.
Folder Layout
Each canonical example folder uses this structure:
profiles/
use_cases/
alignments/
models/
notes/
results/
The results/ folder contains deterministic summary outputs generated from the raw result documents.
The raw result documents can be regenerated from the step-by-step commands in each example README.
For agents, the important rule is that every step consumes explicit files and produces deterministic JSON or Markdown outputs. No hidden interpretation step is required to reproduce the example.
Source Ingestion
Folder:
examples/01-source-ingestion/
Purpose:
- exercise live URL loading
- assess composition profiles without local model files
- keep source selection separate from comparison logic
Structural Comparison
Folder:
examples/02-structural-comparison/
Purpose:
- assess two profiles
- compare their structural metrics
- optionally add an analyst-authored alignment file
Reduced Use-Case Comparison
Folder:
examples/03-reduced-use-case-comparison/
Purpose:
- compare the minimum product-identification slice
- validate that both input profiles represent the selected identification concepts
- provide the main worked example for documentation and inspection
Start here:
Extended Use-Case Comparison
Folder:
examples/04-extended-use-case-comparison/
Scope:
battery_passport_metadata_and_classification
Purpose:
- validate the same workflow on a broader slice
- add version/revision semantics
- add type/category/classification semantics
- check that the matching and summarization behavior is not overfit to the reduced example
Start here: