HomeDocs-Technical WhitePaper19-EFT.WP.Methods.SynthData v1.0

Appendix B — Contract Library & Strategy Cards (C40 Full Set)


I. Scope & How to Use


II. Contract Fields & Naming


III. Threshold Conventions & Generation Methods


IV. Contract Library (Rules & Notes)

  1. C40-01x Schema & Referential Integrity
    • C40-011 unique_pk: unique(pk) = true.
    • C40-012 fk_integrity: foreign_key(parent.pk, child.fk) = true.
    • C40-013 non_null: null_rate(field) ≤ tol_null.
    • C40-014 dim_check: check_dim( y − f(x) ) = pass.
  2. C40-02x Time Base & Arrival Consistency
    • C40-021 mono_time: non_decreasing(tau_mono) = true.
    • C40-022 arrival_dual_forms: delta_form ≤ tol_Tarr.
    • C40-023 sync_jitter: |offset| ≤ tol_off ∧ |skew| ≤ tol_skew ∧ J ≤ tol_J.
  3. C40-12x Fidelity (Distributional Closeness)
    • C40-121 wasserstein: W1(real, syn) ≤ tol_W1 (declare geometry/feature metric).
    • C40-122 mmd: MMD_k(real, syn) ≤ tol_MMD (declare kernel & bandwidth).
    • C40-123 fid_kid: FID ≤ tol_FID ∧ KID ≤ tol_KID (declare embedding net & layer).
    • C40-124 coverage: covg(real|syn) ≥ covg_min (explicit support-set definition).
  4. C40-13x Utility (Downstream Non-Inferiority)
    • C40-131 non_inferiority: utility_gap = metric_syn − metric_real ≥ −tol_gap.
    • C40-132 power_min: power(design, effect_min, alpha) ≥ power_min (see CrossStats Ch.8).
    • C40-133 calibration_consistency: ECE_syn ≤ tol_ECE or |bias_syn| ≤ tol_bias.
  5. C40-14x Privacy & Security
    • C40-141 dp_budget: eps_total ≤ eps_budget ∧ delta_total ≤ delta_budget.
    • C40-142 membership_risk: MI_risk ≤ tol_MI (declare attack families & eval set).
    • C40-143 k_anon: k_anonymity(QID) ≥ k_min or l_diversity ≥ l_min (tabular).
    • C40-144 linkability: linkability_score ≤ tol_link.
  6. C40-15x Bias, Fairness & Representativeness
    • C40-151 group_repr: | p_syn(g) − p_ref(g) | ≤ tol_repr for all groups g.
    • C40-152 psi_drift: psi(ref, syn) ≤ tol_psi (population stability index).
    • C40-153 threshold_parity: | t_syn(g) − t_syn(g') | ≤ tol_tpar (when a published threshold must be cross-group consistent).
  7. C40-16x Multimodal Coherence & Physical/Geometric Constraints
    • C40-161 cross_modal_coherence: coherence_rules(bundle) = pass.
    • C40-162 physical_laws: e.g., mass_balance_resid ≤ tol_res, energy_conserve_resid ≤ tol_res.
    • C40-163 geometry_consistency: reproj_err ≤ tol_px (see Imaging Ch.9).
  8. C40-17x Watermark & Provenance
    • C40-171 watermark_detect: TPR ≥ tpr_min @ FPR ≤ fpr_max (declare detector & threshold).
    • C40-172 provenance_hash: hash_sha256(blob) = manifest.signature.blob_hash.
  9. C40-18x Runtime SLOs (Streaming)
    • C40-181 stability: rho = lambda_in / mu_eff < 1.
    • C40-182 latency_p99: latency_ms_p99 ≤ target_p99.
    • C40-183 drop_rate: drop_rate ≤ tol_drop.
    • C40-184 drift_guard: W1_cur ≤ tol_W1_run ∧ psi_cur ≤ tol_psi_run (windowed Delta_t).

V. Strategy Card Template (for any C40-*)

  1. card.id: SC40-xxx.
  2. intent: summary of the contract’s purpose and business impact.
  3. scope: data domain/modality/window Delta_t/channels.
  4. inputs: required metrics, reference sets, priors or models.
  5. test: the contract expression expr and threshold source (bootstrap | posterior | policy_fixed).
  6. tiers: info / warn / block with tiered thresholds or posterior lower bounds.
  7. actions (automated response map):
    • info: log, visualize, lake ingestion.
    • warn: resample/reweight/parameter rollback, de-weighted release.
    • block: circuit-break, roll back to prior version, queue human review.
  8. runtime_hooks: whether to link with stream_synth backpressure, alpha_spending, privacy_accountant.
  9. logging: TraceID, evidence snapshots, seed, version signature.

VI. Sample Strategy Cards (Selected)

  1. SC40-121 (FID/KID Fidelity Gate)
    • test: FID ≤ tol_FID ∧ KID ≤ tol_KID, with tol_* from bootstrap(FID,KID; B) quantile q_{1−alpha}.
    • tiers: warn when tol_warn < metric ≤ tol_block; block when metric > tol_block.
    • actions: warn → halve frozen thresholds and resample once; block → roll back to Engine.version−1.
  2. SC40-141 (DP Budget Guard)
    • test: eps_total ≤ eps_budget ∧ delta_total ≤ delta_budget.
    • actions: warn → pause non-essential sampling; block → trip training & sampling, initiate budget approval.
  3. SC40-022 (Dual Arrival-Form Consistency)
    • test: delta_form ≤ tol_Tarr.
    • actions: warn → increase integration steps and re-align; block → quarantine samples & path segments, mark non-releasable.
  4. SC40-151 (Group Representativeness)
    • test: | p_syn(g) − p_ref(g) | ≤ tol_repr for all g.
    • actions: warn → balance_distribution(reweight); block → reject release and emit gap analysis.
  5. SC40-182 (P99 Latency Constraint)
    • test: latency_ms_p99 ≤ target_p99.
    • actions: warn → tighten rate_limit and enable auto_batcher; block → switch to read-only plus offline queues.

VII. Composite Contracts & Decision Logic


VIII. Manifest Mapping & Persistence


IX. Implementation Notes & Automation Hooks


X. Cross-References


Copyright & License (CC BY 4.0)

Copyright: Unless otherwise noted, the copyright of “Energy Filament Theory” (text, charts, illustrations, symbols, and formulas) belongs to the author “Guanglin Tu”.
License: This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0). You may copy, redistribute, excerpt, adapt, and share for commercial or non‑commercial purposes with proper attribution.
Suggested attribution: Author: “Guanglin Tu”; Work: “Energy Filament Theory”; Source: energyfilament.org; License: CC BY 4.0.

First published: 2025-11-11|Current version:v5.1
License link:https://creativecommons.org/licenses/by/4.0/