目录文档-技术白皮书25-EFT.WP.STG.Dynamics v1.0

附录C 清单模板与样例(stg manifest)


一句话目标:提供 STG 动力学系统从数据→图→算子→内核→推进/同化→不确定度→运行时→发布的可拷贝清单模板与示例,保证结果可复现、可审计与可对比。


I. 范围与对象


II. 名词与字段


III. 公设 P70C-*


IV. 最小方程 S70C-*


V. 计量流程 M70-3(生成→校核→签名→发布)


VI. 契约与断言 C70C-*(清单级)


VII. 实现绑定 I70-*(清单相关)


VIII. 交叉引用


IX. 质量与风控


模板(可直接拷贝)

manifest_version: "stg.v1.0"

TraceID: "<uuid>"

ts_publish: "<ISO8601>"

tau_mono: "<monotonic_time_ref>"

producer: { org: "<org>", service: "<svc>", version: "<semver>" }

RefCond:

timezone: "UTC"

units_policy: "SI"

sensors: ["<sensor_id>", "..."]

notes: "<free text>"

units:

x: "<unit(x)>"

y: "<unit(y)>"

u: "<unit(u)>"

Δt: "s"

u_c: "<unit(state)>"

g: "<unit(state)>"

graph:

hash: "<graph.hash>"

|V|: <int>

|E|: <int>

directed: false

weights: "nonnegative"

meta: { build_policy: "<id>", sources: ["<src>", "..."] }

operators:

L:

hash: "<L.hash>"

spectrum: { λ_min: <float>, λ_max: <float> }

A: { hash: "<A.hash>" }

H: { hash: "<H.hash>", rank: <int>, sensors_online: <float> } # fraction 0..1

kernel:

mode: "diff|wave|mix"

hyper: { τ: <float>, ω: <float>, α: <float>, order: <int> }

approx: { scheme: "chebyshev|pade|exact", order: <int>, ε_approx: <float> }

hash: "<K.hash>"

dynamics:

solver: "RK45|BDF|StrangSplit"

Δt: <float>

stiff_flag: <bool>

events: ["<event_name>", "..."]

guards: { norm_growth_γ: <float>, bound_b: <float> }

filter:

type: "KF|UKF|PF"

Q: { hash: "<Q.hash>" }

R: { hash: "<R.hash>" }

x0: { hash: "<x0.hash>" }

P0: { hash: "<P0.hash>" }

stats:

NIS_p95: <float>

ESS_over_Np: <float> # PF only

residual_p95: <float>

uncertainty:

method: { LPU: true, MC: true }

u_num: <float>

u_model: <float>

u_c: <float>

k: <float>

g: <float>

nu_eff: <float>

α: <float>

delta_form_unc_p95: <float>

contracts:

rules: { hash: "<rules.hash>", version: "<semver>" }

report: { hash: "<report.hash>", pass: <bool>, violations: <int> }

delta_form_stream_p95: <float>

coverage: <float>

runtime:

window: { type: "sliding|tumbling", Δt_win: "<dur>", Δt_slide: "<dur>" }

watermark: { wm: "<ISO8601>", policy: "<id>" }

latency_ms:

p50: <int>

p95: <int>

p99: <int>

cache: { hit_rate: <float>, policy: "ttl|lru", ttl: "<dur>" }

artifacts:

datasets: [{ name: "<id>", hash: "<sha256>", uri: "stg://..." }]

models: [{ name: "<id>", hash: "<sha256>", uri: "stg://..." }]

code: [{ repo: "<url>", commit: "<sha1>" }]

panels: [{ name: "<id>", url: "<url-or-id>" }]

provenance:

build_host: "<hostname>"

container: { image: "<name:tag>", digest: "<sha256>" }

os: "<id>", arch: "<id>"

signature:

key_id: "<kid>"

alg: "ed25519|ecdsa-p256"

value: "<base64>"


样例(城市交通—扩散核 + UKF,运行时发布)

manifest_version: "stg.v1.0"

TraceID: "7a5ac1d0-9e6a-4a1e-8fe3-41a9f7c0e2c4"

ts_publish: "2025-09-02T10:15:03Z"

tau_mono: "807453.551"

producer: { org: "EFT-Labs", service: "stg-traffic", version: "1.6.2" }

RefCond:

timezone: "Europe/Amsterdam"

units_policy: "SI"

sensors: ["cam-A12", "loop-R7", "gps-bus-021"]

notes: "Morning peak; rain"

units:

x: "veh/s"

y: "veh/s"

u: "veh/s"

Δt: "s"

u_c: "veh/s"

g: "veh/s"

graph:

hash: "graph:5d7d1c3e"

|V|: 1120

|E|: 1437

directed: true

weights: "nonnegative"

meta: { build_policy: "traffic-v4", sources: ["osm-2025Q3","city-iot-1.2"] }

operators:

L:

hash: "L:9c2a77ab"

spectrum: { λ_min: 0.0, λ_max: 3.84 }

A: { hash: "A:11f5a0cd" }

H: { hash: "H:07bb2913", rank: 468, sensors_online: 0.93 }

kernel:

mode: "diff"

hyper: { τ: 120.0, ω: 0.0, α: 0.85, order: 0 }

approx: { scheme: "chebyshev", order: 15, ε_approx: 3.1e-3 }

hash: "K:6f0dbe21"

dynamics:

solver: "RK45"

Δt: 5.0

stiff_flag: false

events: ["gate-closure-R7@2025-09-02T07:58Z"]

guards: { norm_growth_γ: 1.02, bound_b: 3.0 }

filter:

type: "UKF"

Q: { hash: "Q:4a77f2b1" }

R: { hash: "R:0b61e0e9" }

x0: { hash: "x0:2d8f9c77" }

P0: { hash: "P0:3c1185d0" }

stats:

NIS_p95: 0.91

ESS_over_Np: 0.0

residual_p95: 7.4

uncertainty:

method: { LPU: true, MC: true }

u_num: 0.9

u_model: 3.2

u_c: 4.0

k: 2.0

g: 8.0

nu_eff: 46.0

α: 0.05

delta_form_unc_p95: 0.7

contracts:

rules: { hash: "rules:stg-traffic-2025.08", version: "2.3.0" }

report: { hash: "rep:0f77a9aa", pass: true, violations: 0 }

delta_form_stream_p95: 0.6

coverage: 0.96

runtime:

window: { type: "sliding", Δt_win: "30m", Δt_slide: "5m" }

watermark: { wm: "2025-09-02T10:14:50Z", policy: "wm-lag-20s" }

latency_ms:

p50: 420

p95: 980

p99: 1710

cache: { hit_rate: 0.87, policy: "ttl", ttl: "10m" }

artifacts:

datasets:

- { name: "iot-traffic-2025-09-02T09Z", hash: "ds:8f0c7d21", uri: "stg://city/ds/8f0c7d21" }

models:

- { name: "diff-kernel-ukf-1.6.2", hash: "mdl:5bcf112e", uri: "stg://models/5bcf112e" }

code:

- { repo: "https://git.example/eft/stg-traffic", commit: "d1e9c4a" }

panels:

- { name: "traffic-ops", url: "panel://ops/traffic" }

provenance:

build_host: "runner-17"

container: { image: "ghcr.io/eft/stg-traffic:1.6.2", digest: "sha256:ab92..." }

os: "linux", arch: "x86_64"

signature:

key_id: "k-ed25519-ops-01"

alg: "ed25519"

value: "Z5hQ7v3...=="


小结


版权与许可(CC BY 4.0)

版权声明:除另有说明外,《能量丝理论》(含文本、图表、插图、符号与公式)的著作权由作者(“屠广林”先生)享有。
许可方式:本作品采用 Creative Commons 署名 4.0 国际许可协议(CC BY 4.0)进行许可;在注明作者与来源的前提下,允许为商业或非商业目的进行复制、转载、节选、改编与再分发。
署名格式(建议):作者:“屠广林”;作品:《能量丝理论》;来源:energyfilament.org;许可证:CC BY 4.0。

首次发布: 2025-11-11|当前版本:v5.1
协议链接:https://creativecommons.org/licenses/by/4.0/