Chapter 10 — Implementation Bindings & API Specification


I. One-Sentence Goal

Bind the physical formalism of this volume—Catalog / Seeds / Trajectory, Phi_T / grad_Phi_T, L_nu / LC, n_eff, segmentation and Delta_T_sigma, and the two arrival-time forms T_arr / Delta_T_arr—into a reusable API consistent with the template v0.1 interface family, standardizing I70-* prototypes, data objects, dimension/unit checks, error codes, logging, and reproducibility, so that cross-team implementations are consistent, auditable, and replayable.


II. Scope & Non-Goals

Covered: interface layering and function prototypes (aligned with the template family; concrete I70-* bindings), minimal data structures, dimension/unit and parameter validation, error codes and exception semantics, concurrency & reproducibility, logging & audit, exemplar workflows, and publication norms.
Not covered: re-deriving the equations/numerics of Chs. 3–9; hardware/observatory specifics; substituting the verification and uncertainty processes of Chs. 11–12.


III. Minimal Terms & Symbols

  1. Objects & state: Catalog, Seeds, Trajectory; state = { M, R, J, a_bh, SFR, Z, … }.
  2. Fields & environment: T_fil(x,t), Phi_T(x,t)=G(T_fil), grad_Phi_T(x,t); SeaProfile / Sigma_env.
  3. Propagation & forms: n_eff(x,t,f) (dimensionless, n_eff ≥ 1), c_ref, gamma(ell), d ell, endpoints { ell_i }.
    • Constant pull-out: T_arr = ( 1 / c_ref ) * ( ∫ n_eff d ell )
    • General form: T_arr = ( ∫ ( n_eff / c_ref ) d ell )
  4. Energy closure & naming isolation: R_env + T_trans + A_sigma = 1; T_fil ≠ T_trans, n ≠ n_eff.

IV. Interface Layering & Function Prototypes

(aligned to template v0.1; recommended I70-* bindings)


A. Catalog / Causation / Evolution (template: I.Build.*)


B. Radiation & Propagation (template: I.Build.*, I.Arrival.*)


C. Interfaces & Energy (template: I.Interface.*, I.RT.Estimate)


D. Metrology / Consistency / Uncertainty (template: I.Consistency.*, I.Uncertainty.*)


E. Reporting & Logging (template: I.Report.*)

Unified constraints (all entries): dimension checks check_dimension, enforce T_arr ≥ L_path / c_ref and R_env + T_trans + A_sigma = 1, naming isolation (T_fil vs T_trans, n vs n_eff), and explicit inclusion of segment endpoints { ell_i }—no cross-interface interpolation.


V. Data Structures (Minimal Definitions)


VI. Parameter Validation & Units / Dimensions


VII. Error Codes & Exceptions (mapped to the template family)

Handling: return error objects that preserve intermediate logs and RNG seed; output falsification samples and back-trace guidance (form choice, segmentation, SeaProfile, step size).


VIII. Concurrency, Determinism & Reproducibility


IX. Logging & Audit (minimal fields)


X. Example Workflows (aligned with the template family)


A. Catalog → Causation → Evolution → Spectrum → Propagation (end-to-end)


B. Interfaces & Energy Closure


C. Uncertainty & Consistency


XI. Cross-References


XII. Deliverables