7da5c7b74c
问题一(安全级):绑定真实参数源后,Type203 走 SN=1..4 的预置与固化会回 COT=7 肯定确认,但 parameter_apply 一次都没被调用 —— 区域 1..4 的分段项在 mapped() 里凑不出 changes[],commit_stage() 的 n==0 让 apply 被跳过,而 values[] 与 parameter_commits 照旧更新,回读也返回出厂镜像冒充当前值。 主站看到"改成功",保护定值一个字没动。 修法:remote_action() 在绑定真实源后对 SN!=0 一律否定确认;remote_lookup() 对 SN!=0 的读返回错误而不是镜像;READ_AREA 绑定后只报区域 0;提交计数移到 真调过 apply 之后。未绑定模拟面保留 0..4 与原有语义,模拟器不受影响。 新增 preset_to_prot_set_test:真实 TCP 夹具 + 手写线上字节,链接 iec104_core/iec104_source/iec104_dtu_table/prot_set,钉住五条契约。四个 变异体(删入口守卫、计数移回无条件、删读侧守卫、READ_AREA 恒报 4)分别 红在对应断言上,证明用例不是为变绿而放松。 问题二:prot_set 的 g_prot_set_meta[].comm_addr 是与语义桥表冲突的错误 第二真源,17 项里 13 项地址指向完全不同的点表语义(如 0x8842 过流一段 定值被标成检同期压差闭锁定值),另有 10 项地址在点表里根本不存在。产品 代码零引用,但 adc_cal.h 已把它当"变比的家"引用,等于给错表盖章。 修法:删除 comm_addr 字段与全部地址注释,元数据表改 4 字段;协议地址的 唯一真源是 iec104_dtu_table.c 的 17 项语义桥表。同步改 check_setview_limits 的 meta 解析、两处单测与四篇活文档。armcc 实测 .constdata 640 B 不变。 验证:Keil 0 错误 0 警告(Code=365,928 / RO=45,764 / RW=2,752 / ZI=168,392,RW_IRAM1=113,720 B / 86.76%);transport 11/11、真实 TCP 验收 13/13、prot_set 173/173、prot_elm 60/60、prot_dim 44/44、 prot_set_store 16/16、adc_cal 150/150、iec104_serv 60/60、iec104_dtu 7/7;check_setview_limits 40/40/40 OK;模拟器构建 OK;pre-commit RC=0。
13 KiB
13 KiB
IEC104 probe triage and migration index
This is the tracked index for the temporary IEC104 probes that previously lived
under ignored ci-artifacts/. Only reusable protocol-correctness acceptance
probes (A) were normalized into test/host/iec104_dtu/. One-off design
measurements (B) stay out of the test tree. Scripts already covered by tracked
assets (C) were not migrated. The source paths below are historical:
ci-artifacts/ is gitignored and may not exist in a fresh clone.
A - reusable protocol acceptance (migrated)
| Source | Class | Disposition | One-line verdict |
|---|---|---|---|
ci-artifacts/iec104-bench/board_probe.py |
A | Migrated to test/host/iec104_dtu/verify_board_acceptance.py |
Real-board read-only acceptance: STARTDT, GI, 10 mapped measurements, 59 SP + 16 DP, command refusal, clock confirmation. Exit 0 = all checks pass, 1 = a check fails, 2 = connection/protocol error. |
ci-artifacts/iec104-lan/verify_lan.py |
A | Migrated to test/host/iec104_dtu/verify_simulator_lan_bind.py |
Simulator wildcard bind and local-IPv4 STARTDT check. Exit 0 = wildcard listener and handshakes pass, 1 = assertion fails, 2 = missing exe/tooling error. Same-host only. |
ci-artifacts/iec104-tests/duration-evidence/duration_refusal_probe.py |
A | Migrated to test/host/iec104_dtu/verify_simulator_duration_evidence.py |
Simulator finite-duration evidence for refused commands, clock sync, no completion frames and clean STOP. Exit 0 = all checks pass, 1 = behaviour fails, 2 = startup/read error. |
B - one-off design-time measurement (not migrated)
| Source | Class | Disposition | One-line verdict |
|---|---|---|---|
ci-artifacts/iec104-cutover/probe_nostore_effect.py |
B | Keep as one-off evidence; not in test/host/ |
Compares iec104_source.o ZI with/without IEC104_SOURCE_NO_VALUE_STORE; answers a macro-cost question, not future protocol correctness. |
ci-artifacts/iec104-cutover/ac5_probe_32.py |
B | Keep as one-off evidence; not in test/host/ |
AC5 warning-surface probe driven by the historical registration manifest; design-time compiler evidence. |
ci-artifacts/iec104-cutover/gen_source_ranks.py |
B | 随参数区收窄失效;历史一次性证据,不在 test/host/ |
曾从冻结 profile 生成 dense rank header;其产物 iec104_source_ranks.h 已删除,17 项消费者排名现由 App/iec60870/104/iec104_dtu_table.c 运行时计算。 |
ci-artifacts/iec104-cutover/recompute_reach_budget.py |
B | Keep as one-off evidence; not in test/host/ |
Recomputes RAM budget from one-off link logs; design accounting only. |
ci-artifacts/iec104-cutover/register_mdk.py |
B | Keep as one-off evidence; not in test/host/ |
One-time MDK registration script driven by a manifest; host tests must never register product files. |
ci-artifacts/iec104-cutover/verify-slot-equivalence.py |
B | Keep as one-off evidence; not in test/host/ |
Proves old/new storage mappings equivalent for a specific redesign; not a reusable 104 acceptance probe. |
ci-artifacts/iec104-cutover/serv-attrib/serv_surface_probe.py |
B | Keep as one-off evidence; not in test/host/ |
Reports stack frames of one frozen task build; design measurement. |
ci-artifacts/iec104-build/verify_vendor.py |
B | Keep as one-off evidence; not in test/host/ |
Pins 17 controlled vendor diffs and hashes a frozen release; design drift evidence. |
ci-artifacts/iec104-build/capacity_boundaries.py |
B | Keep as one-off evidence; not in test/host/ |
Compiles vendor TcpServer.c at guessed capacity limits; capacity design, not protocol acceptance. |
ci-artifacts/iec104-build/link_resource_probe.py |
B | Keep as one-off evidence; not in test/host/ |
Isolated armlink resource probe with hard-coded Keil paths and historical object inventory. |
ci-artifacts/iec104-build/summarize_matrix.py |
B | Keep as one-off evidence; not in test/host/ |
Reformats vendor-ac5-results.json into a matrix; depends on a one-off artifact tree. |
ci-artifacts/iec104-build/vendor_style_scan.py |
B | Keep as one-off evidence; not in test/host/ |
Wrapper around the coding-standard hook for a frozen vendor file list. |
ci-artifacts/iec104-build/final_static_scan.py |
B | Keep as one-off evidence; not in test/host/ |
Freezes explicit vendor/simulator source lists and hashes for a past review. |
ci-artifacts/iec104-build/tiny_resource_probe.py |
B | Keep as one-off evidence; not in test/host/ |
Compiles/links a hypothetical tiny-capacity variant; not a product configuration test. |
ci-artifacts/iec104-review/verify_vendor.py |
B | Keep as one-off evidence; not in test/host/ |
Asserts 84 upstream hashes, 43 static assertions and controlled diffs of a historical review tree. |
ci-artifacts/iec104-review/any_bind_review.py |
B | Keep as one-off evidence; reusable part migrated | Reviews one frozen simulator SHA256 and writes review-only JSON; wildcard bind check migrated to A. |
ci-artifacts/iec104-review/boundaries.py |
B | Keep as one-off evidence; not in test/host/ |
Re-checks capacity compile boundaries at a hard-coded Keil path; duplicate of iec104-build/capacity_boundaries.py. |
ci-artifacts/iec104-review/mcu_closure_review.py |
B | Keep as one-off evidence; not in test/host/ |
Rebuilds a historic MCU closure map and checks a 3336-byte symbol; not a protocol test. |
ci-artifacts/iec104-review/run_masks.py |
B | Keep as one-off evidence; not in test/host/ |
Compiles a one-off masks.c with MSVC; depends on a review-tree fixture. |
ci-artifacts/iec104-review/ramprobe/cap_sweep.py |
B | Keep as one-off evidence; not in test/host/ |
Sweeps TCP capacities through ARMCC and fromelf for RAM sizing. |
ci-artifacts/iec104-review/ramprobe/dump.py |
B | Keep as one-off evidence; not in test/host/ |
Dumps section data of one historical object through fromelf. |
ci-artifacts/iec104-review/ramprobe/objs.py |
B | Keep as one-off evidence; not in test/host/ |
Parses a historical Keil map's object summary by RW+ZI. |
ci-artifacts/iec104-review/ramprobe/objsyms.py |
B | Keep as one-off evidence; not in test/host/ |
Lists data symbols of one named object from a historical Keil map. |
ci-artifacts/iec104-review/ramprobe/region.py |
B | Keep as one-off evidence; not in test/host/ |
Aggregates execution-region rows from a historical Keil map. |
ci-artifacts/iec104-review/ramprobe/region2.py |
B | Keep as one-off evidence; not in test/host/ |
Refined Keil map region/section aggregation for the same one-off review. |
ci-artifacts/iec104-review/ramprobe/secsum.py |
B | Keep as one-off evidence; not in test/host/ |
Converts fromelf section sizes into a RO/RAM table for historical objects. |
ci-artifacts/iec104-review/ramprobe/sweep2.py |
B | Keep as one-off evidence; not in test/host/ |
Compiles a single vendor TU under alternate capacity defines and reports RO/RAM. |
ci-artifacts/iec104-review/ramprobe/sweep3.py |
B | Keep as one-off evidence; not in test/host/ |
Measures .bss of one vendor TU under a fixed set of capacity overrides. |
ci-artifacts/iec104-review/ramprobe/syms.py |
B | Keep as one-off evidence; not in test/host/ |
Greps named symbols from a historical Keil map. |
ci-artifacts/hash_iec104_sim_release.py |
B | Keep as one-off evidence; not in test/host/ |
Rewrites a release source hash list from a historical vcxproj; snapshot tool, not a test. |
ci-artifacts/iec104-mcu-skeleton/capacity-candidates.py |
B | Keep as one-off evidence; not in test/host/ |
Enumerates hypothetical capacity pools for the skeleton design. |
ci-artifacts/iec104-mcu-skeleton/compile_real_serv_exact.py |
B | Keep as one-off evidence; not in test/host/ |
Recreates the historical product compile surface for one serv TU. |
ci-artifacts/iec104-mcu-skeleton/link_skeleton.py |
B | Keep as one-off evidence; not in test/host/ |
Measures skeleton closure RO/RW+ZI with isolated armlink objects. |
ci-artifacts/iec104-mcu-skeleton/link_whole_image.py |
B | Keep as one-off evidence; not in test/host/ |
Measures whole-image reachability with a draft Net backend. |
ci-artifacts/iec104-mcu-skeleton/link_whole_with_business.py |
B | Keep as one-off evidence; not in test/host/ |
Adds business TUs to the isolated link for a three-tier RAM comparison. |
ci-artifacts/iec104-mcu-skeleton/measure_skeleton.py |
B | Keep as one-off evidence; not in test/host/ |
Compiles/links the skeleton TU set and records ARMCC/fromelf sizes. |
ci-artifacts/iec104-mcu-skeleton/pool_parts_report.py |
B | Keep as one-off evidence; not in test/host/ |
Parses pool-size constants from historical fromelf output. |
ci-artifacts/iec104-mcu-skeleton/summarize_matrix.py |
B | Keep as one-off evidence; not in test/host/ |
Summarizes skeleton link maps against a fixed RAM floor. |
ci-artifacts/iec104-mcu-skeleton/summarize_skeleton.py |
B | Keep as one-off evidence; not in test/host/ |
Aggregates per-TU ROM/RAM from a historical measurement JSON. |
ci-artifacts/iec104-mcu-skeleton/summarize_whole_image.py |
B | Keep as one-off evidence; not in test/host/ |
Summarizes whole-image link maps against a fixed RAM floor. |
ci-artifacts/iec104-mcu-skeleton/tu_closure.py |
B | Keep as one-off evidence; not in test/host/ |
Explains skeleton/business TU split from one historical .xref map. |
ci-artifacts/iec104-mcu-skeleton/core-trim/candidate_a_delta.py |
B | Keep as one-off evidence; not in test/host/ |
Measures code-trim delta against a git-HEAD baseline copy. |
ci-artifacts/iec104-mcu-skeleton/core-trim/link_core_trim.py |
B | Keep as one-off evidence; not in test/host/ |
Links two core-trim variants and subtracts library RAM from map totals. |
ci-artifacts/iec104-mcu-skeleton/core-trim/link_reach_fixed.py |
B | Keep as one-off evidence; not in test/host/ |
Re-links with a corrected core/source reach root across four tiers. |
ci-artifacts/iec104-mcu-skeleton/core-trim/measure_business_tu.py |
B | Keep as one-off evidence; not in test/host/ |
Compiles business TUs in two tiers and extracts RAM with fromelf. |
ci-artifacts/iec104-mcu-skeleton/core-trim/ram_by_object.py |
B | Keep as one-off evidence; not in test/host/ |
Lists per-object RAM from historical core-trim objects. |
ci-artifacts/iec104-mcu-skeleton/core-trim/summarize_core_trim.py |
B | Keep as one-off evidence; not in test/host/ |
Parses size symbols produced by the one-off core-trim probe. |
ci-artifacts/iec104-mcu-skeleton/core-trim/simcheck/gen_probes.py |
B | Keep as one-off evidence; not in test/host/ |
Generates probe C files for the one-off skeleton simulation check. |
ci-artifacts/iec104-mcu-plan/files/capture_evidence.py |
B | Keep as one-off evidence; not in test/host/ |
Captures selected source ranges into a historical evidence text file. |
ci-artifacts/iec104-mcu-plan/persistence/audit_parameters.py |
B | Keep as one-off evidence; not in test/host/ |
Audits a frozen writable-parameter predicate and writes CSV to stdout. |
ci-artifacts/iec104-mcu-plan/resources/link_closure.py |
B | Keep as one-off evidence; not in test/host/ |
Links a conservative file-domain closure from historical objects. |
ci-artifacts/iec104-mcu-plan/resources/measure_closure.py |
B | Keep as one-off evidence; not in test/host/ |
Copies upstream sources and compiles them in isolation for sizing. |
ci-artifacts/iec104-mcu-plan/resources/seal_evidence.py |
B | Keep as one-off evidence; not in test/host/ |
Hashes all evidence files in one design directory into a manifest. |
ci-artifacts/iec104-mcu-feasibility/files/run.py |
B | Keep as one-off evidence; not in test/host/ |
Isolated MSVC host run of file-domain feasibility fixtures. |
ci-artifacts/iec104-mcu-feasibility/independent-tests/run_checks.py |
B | Keep as one-off evidence; not in test/host/ |
Runs artifact-only persistence feasibility probes and mutants. |
ci-artifacts/iec104-mcu-feasibility/independent-tests/run_layout.py |
B | Keep as one-off evidence; not in test/host/ |
Checks a frozen candidate layout oracle with MSVC fixtures. |
ci-artifacts/iec104-mcu-feasibility/persistence/run_model.py |
B | Keep as one-off evidence; not in test/host/ |
Runs an isolated persistence-state-machine model with injected faults. |
ci-artifacts/iec104-mcu-feasibility/resources/measure_layout.py |
B | Keep as one-off evidence; not in test/host/ |
Compiles/links a frozen layout candidate for RAM comparison. |
C - already covered by tracked assets (not migrated)
| Source | Class | Disposition | One-line verdict |
|---|---|---|---|
ci-artifacts/iec104-review/cli_final.py |
C | Not migrated | Covered by test/host/iec104_dtu/run_tcp_test.py and the simulator CLI contract in test/host/iec104_dtu/MATRIX.md; this file additionally pinned one historical SHA256. |
ci-artifacts/iec104-build/baseline-f84855a5/**/*.py |
C | Not migrated | Frozen baseline copy of already tracked repository scripts; no new probe logic. |
Files added under test/host/iec104_dtu/
verify_board_acceptance.py,verify_simulator_lan_bind.py,verify_simulator_duration_evidence.py: normalized A-class probes.PROBE_INDEX.md: this classification index.PROBE_RUNBOOK.md: how and when to run the three normalized probes.