Fix worker-exit guard race and pin authorized seven-part continuation

This commit is contained in:
Frank14f committed 2026-11-15 21:13:49 +08:00
1 parent a73e639702
commit 8dc4857c47
17 files changed
+1611

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,48 @@
{
"version": "s3b-v04-reference-cost-gates-v1",
"ruling": "1794745781.398039",
"clarifications": [
"1794745880.964439",
"1794747272.597049"
],
"ten_root": "artifacts/s3b-a-v04-continuation-2026-11-15",
"stage_guard_root": "artifacts/s3b-a-v04-stage-guard-v2-2026-11-15",
"additional_synthetic_CPU_s": 0.0,
"code_sha256": {
"tools/s3b_v04_gates.py": "fbe3a17c3b0016c998c6432848f83443c8580bb8f3ff65efe60f6ddc52580f51",
"tools/run_s3b_v04_gates.py": "806ecdf50d400325439477e736f8fd1dd844c45cfeddf70fe2a2ec8ab75aa7b8",
"tools/test_s3b_v04_gates.py": "93e12478ad444e4b7c566a1dc5ccfbb562b90da22c89c6002a11140fb1f24a25",
"tools/s3b_runtime.py": "f41057db3cbe38850ab65178c6b44be6b8fc3e97bf559769fbc17592a297971d",
"tools/naive_ordering_math.py": "8a71dfb139f58c523077e8e94d7cbe7ad34eb7680b6b2535bfcf7a94001ad86c",
"tools/s2_recovery_supervisor.py": "f563ca3c2665f5baf0c04f296616e4640423a59b815fbb00479af0f29e57a919",
"tools/s2_recovery_monitoring.py": "442c2a9c75e8c00b30a8f2e91cb52d87c466b19a80aea9128b10c021e61b922e"
},
"source_sha256": {
"artifacts/s3b-a-v04-ten-2026-11-15/contract.json": "c9d7c08f22c1cf77f2ac1d72b1a4602f06f614c246cae8eb3b7ad235b04ac4a3",
"artifacts/s3b-a-v04-ten-2026-11-15/code-freeze.json": "bb6bedab545ee83fb8883178ba61dc9291437244c09f52fe903fcaa08950b634",
"artifacts/s3b-a-v04-stage-guard-tests-2026-11-15/attempt-01/synthetic.receipt.json": "32c790eb3af0862594938842334cededbd6da6870745597d515c51d79469f8b4",
"artifacts/s3b-a-v04-gate-tests-2026-11-15/attempt-01/synthetic.receipt.json": "9c7ed5c1855522fde9010ba95e79dc61ea11eea51c3edd00c3c1e1223ae3b1b7",
"artifacts/s3b-a-v04-gate-tests-2026-11-15/attempt-02/synthetic.receipt.json": "2de6a160666b38348c905cdbbef17ab5fcc03ef5425c521997c4c825736470d4",
"artifacts/s3b-a-v04-continuation-2026-11-15/contract.json": "a39dc2947e6cc8dea3721a48a0a5bce777daec82f19ad6d2c83693e9e45a3a0f"
},
"stage_order": [
"wait existing ten and external guard terminal",
"three exact references",
"count-only all617 cost census",
"frozen max-rate gate"
],
"per_gate": {
"CPU_s": 1800,
"wall_s": 1800,
"RSS_bytes": 4294967296,
"workers": 1,
"CPU": 16
},
"no_labels": true,
"no_solver_switch": true,
"no_full617_launch": true,
"fixed_overhead_rule": "max over ten of guard CPU minus event CPU and positive-query CPU, times617; zero-query CPU stays fixed overhead",
"projection": "1.25*(max eventsCPU/nodes*full617nodes + max midpointCPU/positivequeries*full617queries) + fixed overhead + all settled worker CPU including gates +7200 <=72000; ten included conservatively but never rerun",
"engineering_ruling": "1794748036.544479",
"ledger_note": "All old/new synthetic costs, including failed attempt, are already in continuation ten ledger; do not add again"
}
Whitespace-only changes.
@@ -0,0 +1,10 @@
{
"cpu_seconds_charged": 0.22703799999999996,
"attempts": [
{
"name": "synthetic",
"status": "STOPPED_OR_FAILED",
"cpu_seconds": 0.22703799999999996
}
]
}
@@ -0,0 +1,32 @@
test_actual_worker_exit_before_parent_reap (__main__.RecoveryTests) ... ok
test_existing_spend_counts_against_stage_full_job_reservation (__main__.RecoveryTests) ... /home/frank14f/optane/MeltMind/tools/test_s3b_v04_continuation.py:59: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpta77_p9s/batch.lock' mode='a' encoding='UTF-8'>
code=run(root)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_identity_with_completed_result_before_wait4_receipt (__main__.RecoveryTests) ... ok
test_live_expected_worker_and_known_gone (__main__.RecoveryTests) ... ok
test_only_seven_unattempted_are_dispatched (__main__.RecoveryTests) ... V04_TERMINAL method=splu index=3 status=PASS
V04_TERMINAL method=splu index=4 status=PASS
V04_TERMINAL method=splu index=5 status=PASS
V04_TERMINAL method=splu index=6 status=PASS
V04_TERMINAL method=splu index=7 status=PASS
V04_TERMINAL method=splu index=8 status=PASS
V04_TERMINAL method=splu index=9 status=PASS
/home/frank14f/optane/MeltMind/tools/test_s3b_v04_continuation.py:59: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmp5rhml_xc/batch.lock' mode='a' encoding='UTF-8'>
code=run(root)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_wait4_replaces_live_cpu_once (__main__.RecoveryTests) ... FAIL
======================================================================
FAIL: test_wait4_replaces_live_cpu_once (__main__.RecoveryTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/frank14f/optane/MeltMind/tools/test_s3b_v04_continuation.py", line 43, in test_wait4_replaces_live_cpu_once
self.assertEqual(stage_charge({'part-02':565.748434},{'part-02':565.54},3.893839),569.642273)
AssertionError: 569.6422729999999 != 569.642273
----------------------------------------------------------------------
Ran 6 tests in 0.077s
FAILED (failures=1)
@@ -0,0 +1,22 @@
{
"status": "STOPPED_OR_FAILED",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/test_s3b_v04_continuation.py"
],
"returncode": 1,
"stop_reason": null,
"cpu_seconds": 0.22703799999999996,
"wall_seconds": 0.24932852300116792,
"peak_tree_rss_bytes": 33337344,
"peak_process_count": 2,
"output_disk_bytes_before_receipt": 8192,
"max_poll_gap_seconds": 0.020950617967173457,
"poll_target_seconds": 0.02,
"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
}
@@ -0,0 +1,15 @@
{
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/test_s3b_v04_continuation.py"
],
"limits": {
"total_cpu_seconds": 60,
"job_cpu_seconds": 60,
"job_wall_seconds": 90,
"tree_rss_bytes": 1073741824,
"disk_bytes": 20971520,
"max_processes": 2
},
"started_unix": 1794748267.8378913
}
Whitespace-only changes.
@@ -0,0 +1,10 @@
{
"cpu_seconds_charged": 0.218599,
"attempts": [
{
"name": "synthetic",
"status": "PASS",
"cpu_seconds": 0.218599
}
]
}
@@ -0,0 +1,18 @@
test_actual_worker_exit_before_parent_reap (__main__.RecoveryTests) ... ok
test_existing_spend_counts_against_stage_full_job_reservation (__main__.RecoveryTests) ... ok
test_identity_with_completed_result_before_wait4_receipt (__main__.RecoveryTests) ... ok
test_live_expected_worker_and_known_gone (__main__.RecoveryTests) ... ok
test_only_seven_unattempted_are_dispatched (__main__.RecoveryTests) ... V04_TERMINAL method=splu index=3 status=PASS
V04_TERMINAL method=splu index=4 status=PASS
V04_TERMINAL method=splu index=5 status=PASS
V04_TERMINAL method=splu index=6 status=PASS
V04_TERMINAL method=splu index=7 status=PASS
V04_TERMINAL method=splu index=8 status=PASS
V04_TERMINAL method=splu index=9 status=PASS
ok
test_wait4_replaces_live_cpu_once (__main__.RecoveryTests) ... ok
----------------------------------------------------------------------
Ran 6 tests in 0.072s
OK
@@ -0,0 +1,22 @@
{
"status": "PASS",
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/test_s3b_v04_continuation.py"
],
"returncode": 0,
"stop_reason": null,
"cpu_seconds": 0.218599,
"wall_seconds": 0.2285621860064566,
"peak_tree_rss_bytes": 33513472,
"peak_process_count": 2,
"output_disk_bytes_before_receipt": 8192,
"max_poll_gap_seconds": 0.020923480042256415,
"poll_target_seconds": 0.02,
"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
}
@@ -0,0 +1,15 @@
{
"command": [
"/home/frank14f/anaconda3/envs/pycuda_3_10/bin/python",
"tools/test_s3b_v04_continuation.py"
],
"limits": {
"total_cpu_seconds": 60,
"job_cpu_seconds": 60,
"job_wall_seconds": 90,
"tree_rss_bytes": 1073741824,
"disk_bytes": 20971520,
"max_processes": 2
},
"started_unix": 1794748317.2518542
}