Appendix C Data/Model/Pipeline Cards (OT)


I. Abstract & Scope
This appendix defines unified schemas for four cards used in OT (Oriented Tension) workflows—DatasetCard, ModelCard, MetrologyCard, and PipelineCard: required fields, Unit/Dim carriage rules, see: anchors, hashing & versioning, validation, and release flows. If ToA fields are present, both forms MUST be recorded in parallel with explicit {gamma(ell), d ell} and delta_form.

II. Dependencies & References

III. Normative Anchors (added here, I75-/M75-)

IV. Body Structure


I. DatasetCard Schema & Example

{

"meta": {"dataset_id":"OT_LC_V1","version":"1.0.0","instrument":"POLCAM","band":"400–800 nm","time_span":"2023-2025"},

"spec": {

"columns": [

{"name":"E","unit":"eV","dim":"E","description":"photon energy","see":"Ch.6"},

{"name":"Q11","unit":"1","dim":"1","description":"order tensor component","see":"S80-2"},

{"name":"Phi_E","unit":"W·m^-2","dim":"M T^-3","description":"energy flux","see":"S80-7"}

],

"sampling":"healpix-nside=64",

"calibration":"pol_v2_gainmap"

},

"quality":{"systematics":"3% abs","covariance":"provided","masks":["eta_dom"]},

"hash":{"data_hash":"sha256:...","card_hash":"sha256:..."},

"see":["S80-1","S80-7"]

}


II. ModelCard Schema & Example

{

"meta":{"model_id":"OT_S80_v1","version":"1.1.0","family":"S80"},

"params":[

{"name":"A","transform":"log","prior":"LogU[1e0,1e6]","bounds":[1e-2,1e9],"unit":"J·m^-3","dim":"M L^-1 T^-2","see":"S80-4"},

{"name":"tau_relax","transform":"log","prior":"LN(-2,1)","bounds":[1e-6,1e4],"unit":"s","dim":"T","see":"S80-4"},

{"name":"D_Q","transform":"log","prior":"LogU[1e-14,1e-8]","bounds":[1e-16,1e-6],"unit":"m^2·s^-1","dim":"L^2 T^-1","see":"S80-4"}

],

"channels":{"chi_E":{"prior":"N(0,σ)"}, "alpha_E":{"prior":"U[-0.2,0.2]"}},

"constraints":{"symmetry":"material-group","SPD":["D_eff"],"traceless":["Q"]},

"hash":{"code_hash":"sha256:...","card_hash":"sha256:..."},

"see":["S80-3","S80-4","S80-5","S80-6"]

}


III. MetrologyCard Schema & Example

{

"meta":{"metrology_id":"OT_METRICS_V1","version":"1.0.0","instrument":"POL+MECH"},

"obs":{"R_inst":{"type":"psf+mtf","version":"2.1"},"noise":{"PSD":"provided"},"covariance":"provided"},

"products":[{"name":"S_pol","unit":"1","dim":"1","see":"M80-1"},{"name":"strain","unit":"1","dim":"1","see":"M80-2"}],

"see":["M80-1","M80-2","M80-4"]

}


IV. PipelineCard Schema & Example

{

"meta":{"pipeline_id":"OT_PIPE_V2","version":"2.0.0"},

"graph":{

"nodes":[

{"id":"n1","type":"ingest","inputs":["cards/dataset_ot.json"],"outputs":["staged/"],"env":"docker://ot:1.3","seed":1729},

{"id":"n2","type":"fit","inputs":["staged/","cards/model_ot.json"],"outputs":["products/posterior.zarr"],"env":"docker://ot:1.3"},

{"id":"n3","type":"validate","inputs":["products/posterior.zarr"],"outputs":["metrics.json"],"env":"docker://ot:1.3"}

],

"edges":[["n1","n2"],["n2","n3"]]

},

"acceptance":{"SpecMAE":"<=0.03","EDX-closure":"<=1σ"},

"exports":{"products/":true,"metrics.json":true,"masks/":true,"repro/":true},

"audit":{"code_hash":"sha256:...","data_hash":"sha256:...","rng_state":"..."},

"see":["M80-31","M80-35","M80-41"]

}


V. Validation & Consistency (M75-OT-1)


VI. Release & Audit (I75-OT-0 / M75-OT-1)


VII. Metrics & Gates (aligned with Ch.10/11)


VIII. Template Lists

* if ToA is used.

— This appendix forms the baseline for cardization and engineering release in OT, ensuring verifiable, reproducible, and auditable data–model–pipeline flow end-to-end.