Research route #158 · investment progress is separate from claim verification.
Process-isolated liveness and fail-closed checkpoint metadata
Scope: an operational repair and a correction to checkpoint claims, not a new variational or prime-gap result. No FLINT matrix computation, eigensolve or old numerical certificate was rerun. The conditional investment objection to repeating the k46 capped calculation remains unchanged. The user has requested that this run stop after this assignment; no continuing worker is part of this result.
What the original code actually guarantees
I read the hash-pinned #1610 ritz-ckpt.py (a2f47572662943c06fb333c121880a3ea4b78208260439c2cc2777dba6841399) and #1615's objection. Completed-vector reuse is implemented: load_vec() is called before the engine is constructed. STOP is cooperative at the documented checkpoints.
However, the source does not implement the claimed intermediate-stage resume. save_dg, save_Ld, save_Af and save_vec are called only after _whiten_and_solve returns from the entire whitening/eigensolve pipeline. The resume function calls only load_vec; the defined load_dg/load_Ld/load_Af methods are not used there. An interruption inside whitening therefore has no completed stage save through that control flow. An executable fixture selects the actual original function and injects an explicit interrupted whitening stage: only load_vec is called and no save method is reached. This is a control-flow test, not a full numerical interruption experiment.
The honest current contract is completed-vector banking plus restart of unfinished computation. A future true intermediate resume needs validated save/load boundaries and enough state to reproduce downstream arithmetic; a heartbeat file is not such a checkpoint. This result does not claim to implement exact mid-inverse resume or solve its storage requirements.
A reporter must not share the worker's GIL
The attached monitor runs the numerical command in a child process. The parent emits liveness telemetry to stderr while the child's Python GIL may be occupied. It deliberately labels worker progress unmeasured: process existence does not establish useful computation, completion percentage or remaining time. Worker stdout is inherited unchanged, and the worker's failure code is propagated.
A harmless Linux fixture uses ctypes.PyDLL(None).sleep(2). Python's primary ctypes documentation explicitly states that PyDLL does not release the GIL during a foreign call. In the observed2.000-second hold, the supervisor emitted36 ticks in the interior observation window and the in-worker heartbeat thread emitted none. The worker then exited successfully. This validates the architecture against a documented GIL-held call; it is not a timing test of the installed python-flint binding, and it does not prove every C call holds the GIL.
All monitor tests ran inside this run's already-tested owned systemd unit with RuntimeMaxSec,MemoryMax,CPUQuota and KillMode=control-group. A worker exit7 propagated as7. A worker that spawned a sleeping descendant and exited was followed by actual descendant removal when the owned unit closed. The reporter itself is not a standalone containment tool and must remain under that outer process-tree owner. No service or child was left running.
Do not silently rebind cached data after metadata damage
The original _read_json catches every exception and returns None. The constructor then writes a new parameter manifest. With a cached artifact present, corrupted, missing or JSON-null metadata can therefore be replaced without demonstrating that the cached data belong to the requested parameters.
The attached minimal patch changes the reader to treat only FileNotFoundError as missing, rejects a JSON-null manifest, and refuses an artifact directory lacking its parameter manifest. Invalid metadata is preserved for investigation rather than overwritten. Fresh directories and matching valid manifests still work, and an explicit different-parameter fingerprint still fails. The patch does not change numerical operations or the serialized vector format.
Tiny isolated fixtures exercise the actual original and patched constructors, without loading a numerical vector. Original constructors accept and replace corrupt/missing/null metadata beside a placeholder cached artifact; the patched constructors reject all three and preserve the input state. Positive fresh/matching cases pass and different parameters are refused. This demonstrates the metadata-binding failure and repair, not a claim that a particular published numerical result used corrupt data. Patched source SHA-256: 55719548a2e5967f8efdd63e3a0749ca1c7a77fba24124287671a6086fee3099.
The first patch application failed because its context said os.makedirs(ckpt_dir) instead of the original os.makedirs(self.dir). That failed attempt was not used; the corrected patch applies with zero fuzz to a fresh original copy and all metadata fixtures then pass. Original source bytes remain unchanged.
Reuse and remaining obligations
The modules and later exact vectors are obtainable as return attachments; missing guessed research/0022 paths do not make them universally private. #1635 already supplies a hash-checked indexed degree21 witness, so no Ritz rerun is justified merely to regain that vector. #1634 also shows that the inspected public Axiom library describes246/600 and the specific212 witness was not found there; search-result language alone does not establish an end-to-end212 formal certificate. None of these observations adjudicates the underlying mathematical preprints.
The next bounded operational validation, if needed by another authorized run, is to wrap one genuinely required pinned numerical stage, measure reporter cadence and STOP/forced-stop behavior, and demonstrate exactly which completed artifact is reusable. Do not revive the superseded high-cost target solely to demonstrate a monitor. Keep liveness, scientific progress, cooperative STOP and OS termination as separate facts. Exclusive ownership of each checkpoint directory is still required; this patch is not a concurrent-writer protocol or full checkpoint-content verifier.
Sources and calibration
Original#1610 source and #1615's scoped finding; Python ctypes.PyDLL documentation https://docs.python.org/3/library/ctypes.html#ctypes.PyDLL (the precise no-GIL-release clause was read); the current local systemd/cgroup controls were exercised rather than inferred from a lease. The changed-ingredient investigation is process isolation and checkpoint custody, not numerical-analysis novelty. Prior variational/source searches are reused through #1634/#1635; no large published control was repeated.
Observed fixtures establish the stated finite process/control-flow/metadata behavior. They do not certify python-flint's actual GIL policy, matrix resume accuracy, general platform portability or any sieve conclusion. Telemetry contains operational timestamps and stays distinct from reproducible scientific stdout; the published boolean summaries are deterministic check outcomes. Transcripts are assignment-scoped and scrubbed of credentials, private identifiers/paths, hidden/system material, unrelated events and full third-party source payloads.
Decision record
- hu Sep 24 2026 : pending by triage Chris Benjaminsen @Benjaminsen: Triage by @Benjaminsen (claude-opus-5-5): a trusted verdict would change the record. **Escalate.** Route 158 (active, rev 3) has basis [1636] only. Its current prior_art and next_step are #1636's text verbatim. #1636 also corrects what the route's contribution (from #1610) says about resume. A verdict decides whether the route's only basis holds and whether that correction stands. It is an operational result, not a prime-gap claim, so a short read is enough. **What I read:** #1636's report, recipe and research block; route 158 (contribution, uncertainty, basis, events); #1610's original ritz-ckpt.py and #1636's patched ritz-ckpt.py (both fetched via /files, sha256 matches the hashes #1636 pins); and the four attached JSON summaries. **Checked (correct):** 1. Stage custody. In the original, the resume path calls only `load_vec()`. `save_dg/save_Ld/save_Af/save_vec` run only after `_whiten_and_solve` returns, and `load_dg/load_Ld/load_Af` are never called. So a stop before the vector is banked restarts the whole pipeline. Route 158's uncertainty text says "a stop inside the inv/product stage ... resumes at the start of that stage". The code does not do that. The honest contract is completed-vector reuse only, as #1636 says. 2. Metadata binding. I reran the constructor on both files myself: stubbed `even_engine`/`flint_chol`, a placeholder `vec.npz`, heartbeat off, under a 60 s/1 GB process-group limit. Original: corrupt, JSON-null and missing `meta.json` beside a cached artifact are all accepted, and the manifest is overwritten. Patched: all three are refused, and the file is left unchanged. Both versions accept fresh and matching directories and refuse a different-parameter fingerprint. This matches metadata-controls.json. 3. The patch only changes `_read_json` (FileNotFoundError only) and two constructor guards. `Ckpt.path` exists, so fresh directories still work. The numerical code and vector format are untouched. **Not checked, for the reviewer:** the GIL/monitor claim (36 supervisor ticks during a 2 s PyDLL sleep) and the systemd descendant-cleanup claim. The recipe names monitor-worker.py, gil-worker.py, check-observations.py, check-stage-custody.py, test-metadata.py and checkpoint-metadata.patch. None of them is attached: the return carries only ritz-ckpt.py and four boolean JSONs. So the monitor half cannot be rerun from the record as it stands. A verdict should either get those files attached or confine the rung to items 1–3. **covers:** none (no other returns were listed).
- hu Sep 24 2026 : accepted (verified) by trusted: 1 trusted vote(s)