Freeze naive-ordering complete scores and bounded LOG parser

This commit is contained in:
Frank14f committed 2026-11-15 17:54:33 +08:00
1 parent 81dede0bd1
commit 9b7121a407
30 files changed
+1735298

No files matched your search

@@ -0,0 +1,6 @@
{
"member": "00000003_1ffb81a71e5b402e966b9341_step_002.log",
"tolerance_commit": "81dede0bd1775c02712a1e83467a0e4832e93424",
"CPU_s": 0.025681837000000006,
"raw_bytes": 166281
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,13 @@
{
"status": "PASS",
"synthetic_tests": 9,
"tolerances_sha256": "ae272c4845d55c522776b002eaf2e3f5057da8d85e5e8177ba25563c5a8f4cb9",
"source_sha256": {
"tools/moldflow_time_map.py": "0be84e06e8c00dfc9d0d53335436168639c5602166e122b489e0b997856656f9",
"tools/run_moldflow_time_map.py": "c394a545f689b9e302f0d99df9e667fc85da06b071b8352fc6d44f609b7adaef",
"tools/test_moldflow_time_map.py": "88854ff89abd40163e7f55eddefd391d66e5f6f72ed98eef2e57e2d22f72efff",
"tools/s2_recovery_supervisor.py": "f563ca3c2665f5baf0c04f296616e4640423a59b815fbb00479af0f29e57a919",
"tools/s2_recovery_monitoring.py": "442c2a9c75e8c00b30a8f2e91cb52d87c466b19a80aea9128b10c021e61b922e"
},
"numeric_input_read_before_tests": "one preserved format sample after tolerance freeze; no 624 pass yet"
}
@@ -0,0 +1,241 @@
{
"status": "DOMAIN_CONTINUATION_TERMINAL",
"passed": true,
"stop_reason": null,
"jobs": [
{
"index": 26,
"case": "00000087_b4f9335a60a14cecaa599159_step_002",
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_naive_domain_part.py",
"artifacts/naive-domain-continuation-2026-11-15",
"26"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 1.202489,
"wall_seconds": 1.4217712369863875,
"peak_tree_rss_bytes": 131170304,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 3317760,
"max_poll_gap_seconds": 0.23905241501051933,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"result_path": "artifacts/naive-domain-continuation-2026-11-15/parts/part-026/output/result.json",
"result_sha256": "f61e3203181d061ef94ceab0f8155ba3d79dc447901be89b064b0ec15a80290c",
"new_decodes": 0,
"original_failure_retained": true
},
{
"index": 194,
"case": "00000530_bc0d6937206b43bc96521413_step_002",
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_naive_domain_part.py",
"artifacts/naive-domain-continuation-2026-11-15",
"194"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 0.725204,
"wall_seconds": 0.9277967829839326,
"peak_tree_rss_bytes": 122068992,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 2895872,
"max_poll_gap_seconds": 0.23197340703336522,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"result_path": "artifacts/naive-domain-continuation-2026-11-15/parts/part-194/output/result.json",
"result_sha256": "16febf93cb4ea2d960be20da9e01013baa02cbda1976872c939d34530e761575",
"new_decodes": 0,
"original_failure_retained": true
},
{
"index": 367,
"case": "00000970_edacb215ec6949d8af6c8c68_step_000",
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_naive_domain_part.py",
"artifacts/naive-domain-continuation-2026-11-15",
"367"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 0.40424,
"wall_seconds": 0.46434117399621755,
"peak_tree_rss_bytes": 89432064,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 1191936,
"max_poll_gap_seconds": 0.2245102709857747,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"result_path": "artifacts/naive-domain-continuation-2026-11-15/parts/part-367/output/result.json",
"result_sha256": "1816cd67b503ea148b18540db827bca4b0438bf50208b537dec7392ead897ef8",
"new_decodes": 0,
"original_failure_retained": true
},
{
"index": 406,
"case": "00001048_2b2638f82b3946b1867f2d11_step_004",
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_naive_domain_part.py",
"artifacts/naive-domain-continuation-2026-11-15",
"406"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 0.340979,
"wall_seconds": 0.4634762770147063,
"peak_tree_rss_bytes": 82616320,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 757760,
"max_poll_gap_seconds": 0.22470321302535012,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"result_path": "artifacts/naive-domain-continuation-2026-11-15/parts/part-406/output/result.json",
"result_sha256": "ca05e8e1a6c62199932eb8133ad85d29beef41e4d9ada712c806f78b59871cdf",
"new_decodes": 0,
"original_failure_retained": true
},
{
"index": 470,
"case": "00001252_96503b6a26c64074ad598927_step_014",
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_naive_domain_part.py",
"artifacts/naive-domain-continuation-2026-11-15",
"470"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 0.398246,
"wall_seconds": 0.46213113894918934,
"peak_tree_rss_bytes": 89686016,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 1167360,
"max_poll_gap_seconds": 0.22482426097849384,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"result_path": "artifacts/naive-domain-continuation-2026-11-15/parts/part-470/output/result.json",
"result_sha256": "bea2d72675f61830f219c2c5c00800f2acdf92973fd5f6c484ec1cdbda6d0d36",
"new_decodes": 0,
"original_failure_retained": true
},
{
"index": 480,
"case": "00001274_b53ece83d8964b44bbf1f8ed_step_010",
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_naive_domain_part.py",
"artifacts/naive-domain-continuation-2026-11-15",
"480"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 0.390499,
"wall_seconds": 0.6358389990055002,
"peak_tree_rss_bytes": 88211456,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 1105920,
"max_poll_gap_seconds": 0.3955019179848023,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"result_path": "artifacts/naive-domain-continuation-2026-11-15/parts/part-480/output/result.json",
"result_sha256": "6e7dd5e53dfe6132e6d696fa245b4b17183cd34103959896f5684d95ff02af3a",
"new_decodes": 0,
"original_failure_retained": true
},
{
"index": 483,
"case": "00001294_b53ece83d8964b44bbf1f8ed_step_030",
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_naive_domain_part.py",
"artifacts/naive-domain-continuation-2026-11-15",
"483"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 0.542359,
"wall_seconds": 0.6906304960139096,
"peak_tree_rss_bytes": 108122112,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 2158592,
"max_poll_gap_seconds": 0.2269060030230321,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"result_path": "artifacts/naive-domain-continuation-2026-11-15/parts/part-483/output/result.json",
"result_sha256": "919bd75207f42070f3f092eedab4a0ac1293c1d6e875b3919cca9994d8b90309",
"new_decodes": 0,
"original_failure_retained": true
}
],
"prior_original_worker_CPU_s": 641.9421609999998,
"supplemental_audit_CPU_s": 2.3923992060000003,
"continuation_worker_CPU_s": 4.004016,
"worker_CPU_s": 648.3385762059999,
"guard_and_coordinator_CPU_s": 1.664452,
"wall_seconds": 6.003547220956534,
"original_status": "610_PASS_7_ORIGINAL_GUARD_FAILURES",
"new_decodes": 0,
"successful_original_parts_rerun": 0,
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae"
}
Whitespace-only changes.
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
{
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae",
"clocks_sha256": "bf468045841e05ac675052dd8b623139892ec306935a03b9fd7d3a4f2a5aad86",
"batch_sha256": "e4c623fc09540e4d441383da25eeb48ec0846a3de294790fd583ec023f716196",
"canonical_sha256": "0532db4c253b5a35a53d5b5d51311e3ca286a03327ff752c2b3a75ac6c4cf698",
"before_new_test_mapping": true
}
@@ -0,0 +1,7 @@
{
"git_commit": "717d3fae7fe22c05a0f4aca31d79e76b77d99fca",
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae",
"scope_ruling": "1794735162.417219",
"domain_ruling": "1794734938.283669",
"remote_push_confirmed": true
}
@@ -0,0 +1,22 @@
{
"pid": 462810,
"unix": 1794735700.8439815,
"indices": [
26,
194,
367,
406,
470,
480,
483
],
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae",
"prior_worker_and_audit_CPU_s": 644.3345602059999,
"source_code": {
"git_commit": "717d3fae7fe22c05a0f4aca31d79e76b77d99fca",
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae",
"scope_ruling": "1794735162.417219",
"domain_ruling": "1794734938.283669",
"remote_push_confirmed": true
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,32 @@
{
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"/home/frank14f/optane/MeltMind/tools/run_naive_domain_analysis.py",
"artifacts/naive-domain-continuation-2026-11-15",
"map",
"--worker"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 134.493078,
"wall_seconds": 172.98762654297752,
"peak_tree_rss_bytes": 190009344,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 4096,
"max_poll_gap_seconds": 1.187005322019104,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"prior_worker_CPU_s": 648.3385762059999,
"cumulative_worker_CPU_s": 782.8316542059998,
"total_cap_CPU_s": 36000,
"postphase_cap_CPU_s": 7200,
"guard_CPU_s": 40.271789999999996
}
@@ -0,0 +1,5 @@
{
"completed_parts": 617,
"prediction_files": 23938,
"CPU_s": 130.959220539
}
@@ -0,0 +1,5 @@
{
"unix": 1794735840.0486653,
"pid": 462902,
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae"
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,18 @@
{
"status": "ALL_NAIVE_MAPS_FROZEN",
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae",
"code_freeze": {
"git_commit": "717d3fae7fe22c05a0f4aca31d79e76b77d99fca",
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae",
"scope_ruling": "1794735162.417219",
"domain_ruling": "1794734938.283669",
"remote_push_confirmed": true
},
"prediction_index_sha256": "104a59bd948dc6859e83f40c5e593c06b6fb96927773cd29d829de031bef34d3",
"clock_freeze_sha256": "f6ba5be98d2ecaf84d0f015afbbaeaded9bf76300ad24b76f2d7e9f9cd515cec",
"prediction_files": 23938,
"CPU_s": 132.215641194,
"full_decode_count": 617,
"original_predictions_unchanged": true,
"new_model_fits": 0
}
@@ -0,0 +1,5 @@
{
"completed": 7,
"current_index": 483,
"cumulative_worker_and_audit_CPU_s": 648.3385762059999
}
@@ -0,0 +1,118 @@
{
"unix": 1794736445.0376084,
"source_pins_verified": true,
"coordinator_pid": 458991,
"coordinator_cmd": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"-u",
"tools/run_s3a_queue.py",
"artifacts/s3a-execution-2026-11-15"
],
"children": [
{
"pid": 463467,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"/home/frank14f/optane/MeltMind/tools/run_s3a_queue.py",
"artifacts/s3a-execution-2026-11-15",
"--guard",
"212",
"--slot",
"0"
]
},
{
"pid": 463593,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"/home/frank14f/optane/MeltMind/tools/run_s3a_queue.py",
"artifacts/s3a-execution-2026-11-15",
"--guard",
"214",
"--slot",
"2"
]
},
{
"pid": 463599,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"/home/frank14f/optane/MeltMind/tools/run_s3a_queue.py",
"artifacts/s3a-execution-2026-11-15",
"--guard",
"215",
"--slot",
"1"
]
},
{
"pid": 463603,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"/home/frank14f/optane/MeltMind/tools/run_s3a_queue.py",
"artifacts/s3a-execution-2026-11-15",
"--guard",
"216",
"--slot",
"3"
]
},
{
"pid": 463604,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_s3a_fit.py",
"artifacts/s3a-execution-2026-11-15",
"216"
]
},
{
"pid": 463600,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_s3a_fit.py",
"artifacts/s3a-execution-2026-11-15",
"215"
]
},
{
"pid": 463594,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_s3a_fit.py",
"artifacts/s3a-execution-2026-11-15",
"214"
]
},
{
"pid": 463468,
"cmdline": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/run_s3a_fit.py",
"artifacts/s3a-execution-2026-11-15",
"212"
]
}
],
"progress": {
"completed": 213,
"active": {
"0": 212,
"2": 214,
"1": 215,
"3": 216
},
"dispatch_cursor": 217,
"worker_cpu_seconds": 11532.326327000004,
"live_guard_and_worker_cpu_seconds": 136.83,
"active_tree_rss_bytes": 2036146176,
"disk_bytes": 336928768,
"first_fit_checked": true,
"selections_frozen": false,
"stop_reason": null,
"fresh_accounting": true,
"monitor_errors": 0,
"elapsed_seconds": 3182.5941796919797
},
"terminal_freeze_present": false
}
@@ -0,0 +1,32 @@
{
"worker": {
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"/home/frank14f/optane/MeltMind/tools/run_naive_domain_analysis.py",
"artifacts/naive-domain-continuation-2026-11-15",
"score",
"--worker"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 53.865781,
"wall_seconds": 74.97990488202777,
"peak_tree_rss_bytes": 292929536,
"peak_process_count": 1,
"output_disk_bytes_before_receipt": 4096,
"max_poll_gap_seconds": 1.2370271119871177,
"poll_target_seconds": 0.2,
"reaped_orphan_cpu_seconds": 0.0,
"supervision": "sampled process-tree monitoring; wait4 final CPU/HWM; overshoot retained as failure",
"gpu_visible": false,
"retry": false,
"monitor_errors": 0,
"last_monitor_error": null
},
"prior_worker_CPU_s": 782.8316542059998,
"cumulative_worker_CPU_s": 836.6974352059998,
"total_cap_CPU_s": 36000,
"postphase_cap_CPU_s": 7200,
"guard_CPU_s": 23.545712
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,29 @@
{
"status": "NAIVE_ORDERING_COMPLETE",
"headline": "Exploration after S2 results were known; not a fresh confirmatory test",
"no_model_training": true,
"historical_full_custody_decodes": 617,
"new_full_custody_decodes": 0,
"original_guard_failures_retained": 7,
"reorder_invariant_rows": 14683,
"eikonal_vs_Dijkstra_tested": false,
"Dw_distance_reused": true,
"only_new_distance_exponent": 2,
"CPU_s": 49.60494052,
"prediction_rows": 23938,
"limitations": [
"Full discrete tet lumped-volume measure, not exact continuous cavity integration",
"T_end is the last labelled arrival on the full retained tet domain; raw outside-domain NaNs retained, no nanmax",
"PPS conditional CDF and estimated alpha do not certify unobserved domain",
"Oracle success does not establish usable learned ordering; poor masked oracle is not a standalone refutation of constant flow",
"Reordering preserves final location and ties; no gate-ranking validation",
"All comparisons exploratory; no new material/process generalization or O1 test"
],
"output_sha256": {
"part-scores.json": "e7db6b1692972cf54c86113a70f893cbc5f39003ba835ae02b05a3993fa085ed",
"tables.json": "b370ed09acbb057c8ce7d7464d003d2bd159169b7540da0521cbf7b76ebb2932",
"started.json": "a8dcf884a1e6fbdf711833abf1e3a4c0985b5e9e74a3b81a5f87dbf4360403c2",
"contrasts.json": "8f369c0ea653ffe96e706f98ecfe12bea79069be5caeacd0ad63828dc16d659e",
"component-scores.json": "c582000a25c3763416d2ed630914c7dd6acc5a5e011405a4ce1cb0ad8186c725"
}
}
@@ -0,0 +1,5 @@
{
"unix": 1794736194.8464808,
"pid": 463267,
"contract_sha256": "1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae"
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+34
View File
@@ -0,0 +1,34 @@
# Naive ordering诊断:完整域接续与评分结果
这是获知S2结果后的探索性诊断,不是新的确认性实验。研究目标仍是面向新件的实用填充代理;真实标签排序只能作为诊断参照,不是可部署预测器。
原617件执行保留610 PASS与7次原始失败。7件的NaN全部位于保留四面体域外;域内标签均有效。按Claude1794735162批准,只接续这7件缓存后续步骤,不再次解码、不重跑610件。原NaN缓存逐字节保留,canonical617由610旧成功加7新成功组成,不改写原批次终态。
固定代码717d3fae;合同1d98f4c3e0cf2343e07802e1fddf5d13d817da2d54adf032c06b9081d7e3fcae。15组learning-only时钟先冻结,23938映射清单随后冻结,再评分。评分guard PASS/exit0,14683重排记录的tau和最后到达位置均与原预测完全一致。
100%池、全体209组件/617件的组件等权平均相对L2:
| 路线 | 平均误差 | 相对原R2改善 1−candidate/R2 | 描述性95%区间 |
|---|---:|---:|---:|
| R2 | 0.072992654 | 参照 | — |
| ORACLE_FULL_TRAIN | 0.014781899 | 79.748785% | [77.440306%, 81.811997%] |
| ORACLE_FULL_END | 0.017611021 | 75.872886% | [68.329469%, 80.289486%] |
| ORACLE_MASK_TRAIN | 0.022723272 | 68.869098% | [65.856591%, 71.661985%] |
| B0_DW1_CLOCK | 0.091369773 | -25.176669% | [-29.964941%, -20.557502%] |
| B0_DW2_CLOCK | 0.202379639 | -177.260283% | [-195.486891%, -158.849106%] |
| REORDER_R2 | 0.073059692 | -0.091842% | [-1.444571%, 1.239067%] |
| REORDER_N | 0.096871760 | -32.714396% | [-40.041902%, -25.200543%] |
| REORDER_E | 0.096892840 | -32.743276% | [-40.127360%, -25.282009%] |
| REORDER_B0 | 0.087825456 | -20.320951% | [-24.649691%, -15.897834%] |
区间沿用冻结的组件bootstrap,只条件于固定折/模型/种子;本次多路线均为事后探索。完整tables、contrasts含25/50/100池、not-known-exposed子集及全部指标;50%神经路线保留原缺失资格,不把成功同伴伪造成失败。
真实全域排序配合训练侧时钟的误差为0.01478,显著低于R2,但这说明给定真实排序时的映射能力,不证明学习排序已解决。真实全域终点版本误差0.01761;端点为保留四面体域最后有标签到达,不能替换成机器结束或V/P时刻。条件PPS真实排序版本误差0.02272;掩膜域与全域不同,估计alpha只给插件估计,不是全域认证。
R2重排约0.07306,与原R2约0.07299接近。N/E重排均约0.0969;已有Dw距离配学习时钟约0.09137、Dw平方新距离约0.20238,均未赶上R2。已有B0就是Dw加权Dijkstra,未重复求解;本轮没有测试eikonal对Dijkstra,也没有测试类型分区/真实连通O1。重排不改变排序或最后位置,因此误差改善不能被称为排序改善。
原始全节点解码总数仍为617,接续与映射评分新增解码0、新模型拟合0。累计worker CPU 836.697435206秒/36000秒;其中接续4.004016、额外域审计2.392399206、映射134.493078、评分53.865781秒均计入,原617批次641.942161秒计一次。guard/协调开销另有原始记录,未冒充worker用量。
关键原文件:batch-complete.json、canonical-preparation.json、clock-freeze.json、prediction-index.json、predictions-complete.json、map-guard-result.json、score-guard-result.json、scores/result.json。原7失败及NaN缓存见artifacts/naive-ordering-2026-11-15,全部保留。
下一步由Claude整合、Mold核数学与条件域解释。既有S3-A原队列继续;独立624 LOG检查沿固定容差81dede0实施,不更改本轮来源或结果。没有新增训练/分区实验。
+113
View File
@@ -0,0 +1,113 @@
"""Read-only LOG diagnostics under tolerances fixed before numeric rows were read."""
import math
import re
FIELDS = ('time_s', 'fill_percent', 'injection_pressure_Pa', 'clamp_force_N',
'flow_m3_s', 'frozen_percent')
def parse(raw):
# LF is the archive's physical line delimiter; retain raw CR bytes in raw files.
lines = raw.decode('utf-8', errors='strict').split('\n')
rows, headers, units, unsupported, mentions, transitions = [], [], [], [], [], []
active = False
for number, original in enumerate(lines, 1):
text = original.rstrip('\r').strip()
if re.search(r'V/P|velocity/pressure|switch.over', text, re.I):
mentions.append(dict(line=number, text=text))
if '|' in text and 'Time' in text:
active = 'Fill Vol' in text and 'Flow Rate' in text
if active:
headers.append(dict(line=number, text=text))
continue
if text.startswith('End of filling') or text.startswith('Pack Analysis'):
active = False
if not active or not text.startswith('|'):
continue
columns = [v.strip() for v in text.strip('|').split('|')]
if '(s)' in text:
units.append(dict(line=number, text=text))
continue
if set(text) <= set('|-+ '):
continue
try:
if len(columns) != 7:
raise ValueError('expected seven table columns')
values = [float(v) for v in columns[:6]]
if not all(math.isfinite(v) for v in values):
raise ValueError('nonfinite printed value')
except ValueError as exc:
unsupported.append(dict(line=number, text=text, reason=str(exc)))
continue
row = dict(zip(FIELDS, values), line=number, status=columns[6],
printed_columns=columns, raw_line=original.rstrip('\r'))
rows.append(row)
if len(rows) == 1 or rows[-2]['status'] != row['status']:
transitions.append(dict(line=number, time_s=row['time_s'],
fill_percent=row['fill_percent'], status=row['status']))
expected_units = ('(s)', '(%)', '(Pa)', '(N)', '(m^3/s)', 'Vol (%)')
units_supported = bool(units) and all(all(x in u['text'] for x in expected_units) for u in units)
return dict(table_present=bool(headers), headers=headers, units=units,
units_supported=units_supported, rows=rows, unsupported_rows=unsupported,
status_transitions=transitions, switch_mentions=mentions,
physical_line_count=len(lines))
def flow_window(rows, tolerance):
if len(rows) < 2 or rows[-1]['time_s'] <= rows[0]['time_s']:
return dict(defined=False, reason='insufficient_time_span', rows=len(rows))
span = rows[-1]['time_s'] - rows[0]['time_s']
integral = sum((b['time_s']-a['time_s'])*(a['flow_m3_s']+b['flow_m3_s'])/2
for a, b in zip(rows, rows[1:]))
mean = integral/span
common = dict(rows=len(rows), first_time_s=rows[0]['time_s'], last_time_s=rows[-1]['time_s'],
first_fill_percent=rows[0]['fill_percent'], last_fill_percent=rows[-1]['fill_percent'],
printed_flow_time_weighted_mean=mean,
all_printed_flow_zero=all(r['flow_m3_s'] == 0 for r in rows))
if mean == 0:
return dict(common, defined=False, reason='zero_printed_mean_cannot_assess_relative_flatness')
departure = max(abs(r['flow_m3_s']-mean) for r in rows)/abs(mean)
return dict(common, defined=True, max_relative_departure=departure,
within_fixed_tolerance=departure <= tolerance)
def diagnose(parsed, contract):
rows = parsed['rows']
if not parsed['table_present']:
return dict(status='NO_MATCHING_TABLE_HEADER', quantitative_defined=False)
if parsed['unsupported_rows'] or not parsed['units_supported'] or len(rows) < 2:
return dict(status='TABLE_PRESENT_BUT_UNSUPPORTED_OR_INSUFFICIENT', quantitative_defined=False)
epsilon = contract['monotonicity_numeric_tolerance']
end = next((i for i, r in enumerate(rows) if r['fill_percent'] >= 100-epsilon), None)
fill = rows[:end+1] if end is not None else rows
violations = [dict(left_line=a['line'], right_line=b['line']) for a,b in zip(fill,fill[1:])
if b['time_s'] < a['time_s']-epsilon or b['fill_percent'] < a['fill_percent']-epsilon]
if violations or any(r['fill_percent'] < -epsilon or r['fill_percent'] > 100+epsilon or r['time_s'] < 0 for r in fill):
return dict(status='NONMONOTONE_OR_OUT_OF_RANGE', quantitative_defined=False, violations=violations)
first, last = fill[0], fill[-1]
span = last['time_s']-first['time_s']
if span <= 0:
return dict(status='INSUFFICIENT_TIME_SPAN', quantitative_defined=False)
residuals = [r['fill_percent']-(first['fill_percent']+(last['fill_percent']-first['fill_percent'])*
(r['time_s']-first['time_s'])/span) for r in fill]
maximum = max(map(abs,residuals))
switch = [dict(line=r['line'], time_s=r['time_s'], fill_percent=r['fill_percent'], status=r['status'])
for r in fill if re.search(r'V\s*/\s*P|switch.over',r['status'],re.I)]
pre = [r for r in fill if switch and r['line'] < switch[0]['line']]
supplement = None
if end is not None and last['time_s'] > 0:
supp = max(abs(r['fill_percent']-100*r['time_s']/last['time_s']) for r in fill)
supplement = dict(assumed_origin=[0,0], max_deviation_percentage_points=supp,
within_fixed_tolerance=supp <= contract['linearity_tolerance_percentage_points'])
return dict(status='PARSED', quantitative_defined=True, filling_rows=len(fill),
first_row=first, last_row=last, reached_printed_100_percent=end is not None,
equal_printed_time_intervals=sum(a['time_s']==b['time_s'] for a,b in zip(fill,fill[1:])),
observed_switch_rows=switch, no_switch_time_inferred_from_settings=True,
linearity=dict(max_deviation_percentage_points=maximum,
within_fixed_tolerance=maximum <= contract['linearity_tolerance_percentage_points'],
endpoint_residuals_pp=residuals, assumed_origin_supplement=supplement),
flow=dict(whole_fill=flow_window(fill,contract['flow_flatness_relative_tolerance']),
fixed_5_to_95_percent=flow_window([r for r in fill if 5<=r['fill_percent']<=95],contract['flow_flatness_relative_tolerance']),
before_explicit_VP=flow_window(pre,contract['flow_flatness_relative_tolerance']) if switch else
dict(defined=False,reason='no_explicit_switch_row')))
+104
View File
@@ -0,0 +1,104 @@
"""One bounded 624-LOG read-only diagnostic. Never reads VTU/model labels."""
import argparse
from collections import Counter
import hashlib
import json
import os
from pathlib import Path
import resource
import sys
import time
from zipfile import ZipFile
from moldflow_time_map import parse, diagnose
from s2_recovery_supervisor import save, supervise
def sha(path):
return hashlib.sha256(Path(path).read_bytes()).hexdigest()
def quantiles(values):
if not values:return None
v=sorted(values)
def q(p):
i=(len(v)-1)*p;j=int(i)
return v[j]+(v[min(j+1,len(v)-1)]-v[j])*(i-j)
return dict(n=len(v),min=v[0],p10=q(.1),median=q(.5),p90=q(.9),max=v[-1])
def checked(root):
c=json.loads((root/'tolerances.json').read_text())
f=json.loads((root/'code-freeze.json').read_text())
if sha(root/'tolerances.json')!=f['tolerances_sha256']:raise ValueError('Tolerance mutation')
for p,h in f['source_sha256'].items():
if sha(p)!=h:raise ValueError('Source mutation '+p)
a=c['archive_stat'];st=Path(c['archive']).stat()
if (st.st_size,st.st_mtime_ns,st.st_ino)!=(a['bytes'],a['mtime_ns'],a['inode']):raise ValueError('Archive changed')
return c,f
def worker(root):
c,f=checked(root)
if (root/'started.json').exists():raise FileExistsError('No repeat LOG pass')
os.sched_setaffinity(0,[24]);start=time.process_time()
save(root/'started.json',dict(pid=os.getpid(),unix=time.time(),code_freeze=f))
dest=root/'logs';dest.mkdir(exist_ok=False);records=[]
with ZipFile(c['archive']) as z:
members=sorted(n for n in z.namelist() if n.endswith('.log'))
if len(members)!=624:raise ValueError('LOG count changed')
if len({Path(n).name for n in members})!=624:raise ValueError('Basename collision')
for member in members:
info=z.getinfo(member)
if info.file_size>c['limits']['per_log_bytes']:raise ValueError('Per-LOG size cap')
raw=z.read(member);path=dest/Path(member).name;path.write_bytes(raw)
try:
p=parse(raw);d=diagnose(p,c)
except Exception as exc:
p=dict(parse_error=repr(exc));d=dict(status='PARSE_ERROR_RAW_RETAINED',quantitative_defined=False)
report=dict(member=member,raw_path=str(path),raw_sha256=sha(path),parsed=p,diagnostic=d)
out=path.with_suffix('.json');save(out,report)
records.append(dict(member=member,report=str(out),report_sha256=sha(out),diagnostic=d))
save(root/'progress.json',dict(logs=len(records),CPU_s=time.process_time()-start))
valid=[r['diagnostic'] for r in records if r['diagnostic']['quantitative_defined']]
save(root/'index.json',records)
flow={}
for window in ('whole_fill','fixed_5_to_95_percent','before_explicit_VP'):
a=[r['flow'][window] for r in valid];defined=[r for r in a if r['defined']]
flow[window]=dict(defined=len(defined),within_tolerance=sum(r['within_fixed_tolerance'] for r in defined),
undefined_reasons=dict(Counter(r.get('reason') for r in a if not r['defined'])),
departures=quantiles([r['max_relative_departure'] for r in defined]))
summary=dict(status='LOG_DIAGNOSTIC_COMPLETE',logs=len(records),parsed=len(valid),
parse_statuses=dict(Counter(r['diagnostic']['status'] for r in records)),
tolerance_commit='81dede0bd1775c02712a1e83467a0e4832e93424',tolerances_sha256=sha(root/'tolerances.json'),
index_sha256=sha(root/'index.json'),printed_100_rows=sum(r['reached_printed_100_percent'] for r in valid),
linearity_within_tolerance=sum(r['linearity']['within_fixed_tolerance'] for r in valid),
max_linearity_deviation_pp=quantiles([r['linearity']['max_deviation_percentage_points'] for r in valid]),
explicit_switch_parts=sum(bool(r['observed_switch_rows']) for r in valid),
switch_volume_percent=quantiles([r['observed_switch_rows'][0]['fill_percent'] for r in valid if r['observed_switch_rows']]),
flow=flow,worker_analysis_CPU_s=time.process_time()-start,
limitations=['Printed LOG rows are rounded, not full simulation fields.',
'Zero printed flow cannot establish zero actual flow or flatness.',
'Linearity uses observed window and fixed 1 percentage point tolerance; not exact constant flow.',
'V/P rows and filling end are distinct from retained-tet labelled endpoint.',
'No model inputs, labels, fits, frozen predictions or other task sources changed.'])
save(root/'summary.json',summary)
return 0
def guard(root):
c,f=checked(root);limits=c['limits'];sample=json.loads((root/'format-sample-receipt.json').read_text())
# Include format inspection once in the independent one CPU-hour LOG ledger.
remaining=limits['worker_CPU_s']-sample['CPU_s']
os.sched_setaffinity(0,[26])
receipt=supervise([sys.executable,__file__,str(root),'--worker'],root,'log-worker',dict(
total_cpu_seconds=remaining,job_cpu_seconds=remaining,job_wall_seconds=limits['wall_s'],
tree_rss_bytes=limits['RSS_bytes'],disk_bytes=limits['disk_bytes'],max_processes=1),poll=.2)
save(root/'guard-result.json',dict(worker=receipt,format_sample_CPU_s=sample['CPU_s'],
cumulative_worker_CPU_s=sample['CPU_s']+receipt['cpu_seconds'],CPU_cap=limits['worker_CPU_s'],
guard_CPU_s=sum(resource.getrusage(resource.RUSAGE_SELF)[:2])))
return 0 if receipt['status']=='PASS' else 1
if __name__=='__main__':
p=argparse.ArgumentParser();p.add_argument('root',type=Path);p.add_argument('--worker',action='store_true');a=p.parse_args()
raise SystemExit(worker(a.root) if a.worker else guard(a.root))
+60
View File
@@ -0,0 +1,60 @@
import unittest
from moldflow_time_map import parse, diagnose, flow_window
C = dict(monotonicity_numeric_tolerance=1e-9, linearity_tolerance_percentage_points=1.,
flow_flatness_relative_tolerance=.05)
HEADER = '| Time | Fill Vol | Inj Press | Clamp F | Flow Rate | Frozen | Status |\n| (s) | (%) | (Pa) | (N) | (m^3/s) | Vol (%) | |\n'
def sample(rows, prefix=''):
text = prefix+HEADER+'\n'.join('| '+str(t)+' | '+str(v)+' | 12 | 3 | '+str(q)+' | 0 | '+status+' |' for t,v,q,status in rows)
return parse(text.encode())
class Cases(unittest.TestCase):
def test_linear_positive_flow(self):
d=diagnose(sample([(0,0,2,'V'),(1,50,2,'V'),(2,100,2,'Filled')]),C)
self.assertEqual(d['linearity']['max_deviation_percentage_points'],0)
self.assertTrue(d['flow']['whole_fill']['within_fixed_tolerance'])
def test_nonlinear_and_unflat(self):
d=diagnose(sample([(0,0,1,'V'),(1,70,2,'V'),(2,100,3,'Filled')]),C)
self.assertEqual(d['linearity']['max_deviation_percentage_points'],20)
self.assertFalse(d['flow']['whole_fill']['within_fixed_tolerance'])
def test_rounded_zero_is_undefined(self):
d=diagnose(sample([(0,0,0,'V'),(1,100,0,'Filled')]),C)
self.assertFalse(d['flow']['whole_fill']['defined'])
def test_switch_from_row_not_setting(self):
d=diagnose(sample([(0,0,1,'V'),(1,100,1,'Filled')], 'V/P setting = 99%\n'),C)
self.assertEqual(d['observed_switch_rows'],[])
d=diagnose(sample([(0,0,1,'V'),(1,98,1,'V/P'),(2,100,1,'Filled')]),C)
self.assertEqual(d['observed_switch_rows'][0]['fill_percent'],98)
def test_time_weighting_and_equal_times(self):
d=diagnose(sample([(0,0,1,'V'),(1,10,1,'V'),(1,20,3,'V'),(4,100,3,'Filled')]),C)
self.assertEqual(d['flow']['whole_fill']['printed_flow_time_weighted_mean'],2.5)
self.assertEqual(d['equal_printed_time_intervals'],1)
def test_nonmonotone_rejected(self):
self.assertFalse(diagnose(sample([(0,0,1,'V'),(1,50,1,'V'),(2,40,1,'V')]),C)['quantitative_defined'])
def test_malformed_is_not_absent(self):
p=parse((HEADER+'| 1 | BAD | 0 | 0 | 0 | 0 | V |').encode())
self.assertTrue(p['table_present']);self.assertEqual(len(p['unsupported_rows']),1)
self.assertEqual(diagnose(p,C)['status'],'TABLE_PRESENT_BUT_UNSUPPORTED_OR_INSUFFICIENT')
def test_stop_at_full_and_ignore_packing(self):
p=sample([(0,0,1,'V'),(1,100,1,'Filled'),(2,99,1,'P')])
self.assertEqual(diagnose(p,C)['filling_rows'],2)
p=parse((HEADER+'| 0 | 0 | 0 | 0 | 1 | 0 | V |\nPack Analysis\n| 2 | 100 | 0 | 0 | 0 | 0 | P |').encode())
self.assertEqual(len(p['rows']),1)
def test_missing_end_no_origin_supplement(self):
d=diagnose(sample([(1,20,1,'V'),(2,80,1,'V')]),C)
self.assertFalse(d['reached_printed_100_percent'])
self.assertIsNone(d['linearity']['assumed_origin_supplement'])
if __name__=='__main__':unittest.main()