PF research library · 4 min read
PF Simulation r34 — storage recovery revision
r34 documentation · storage-recovery.md · Formatted reading copy
On this page
Bundled full release: the corrected application described here is included unchanged in the full release with HF deployment. Use the complete Windows guide for the matching guarded handoff.
This revision carries the storage incident correction inside the complete standalone and SaaS distribution. It is based on the exact full archive:
PF_Simulation_Standalone_and_SaaS_r34_Consolidated_20261127.zip.xz
SHA-256: 896428271ea795687dc6adf2cc370035ea15e3cf7370dbd467a5e3ebf29faddd
The software version remains r34. The original 53 patch archives, scientific assets, standalone tools, and historical validation records remain included. The new archive has its own checksum; the predecessor checksum identifies the input, not this corrected output.
Correction scope
The captured incident began with an HTTP 500 during publication of an immutable WAL object. The writer stopped, shutdown began, and three pending HTTP ownership checks were cancelled when the graceful-shutdown deadline expired. A subsequent startup exhausted four fast HTTP 502 responses in approximately 1.8 seconds.
The revision addresses these specific recovery and shutdown weaknesses:
- The private WAL writer can reconcile eligible transient HTTP errors by reading back the exact encrypted object. It retries a create-only PUT only after an explicit missing-object response. Its object key, encrypted bytes, reservation and retention identity are preserved. Uncertain confirmation reads remain reads; they cannot authorize another upload. Acknowledgement still requires confirmed object bytes and confirmed publication of the durable head.
- HTTP ownership checks receive request-scoped cancellation and admission deadlines. Expired queued checks cannot later authorize a request or issue a new ownership write. Shutdown closes HTTP admission and accounts for checks already in flight. Internal startup and teardown retain their separately required ownership checks.
- Initial durable-head reads use a longer bounded recovery schedule. With fast failures, attempts occur at approximately 0, 1, 3, 7, 15, 30, 45, 60 and 75 seconds. A 90-second budget limits admission of further attempts and includes elapsed I/O time. Cancellation is checked during backoff. This budget does not forcibly interrupt an already-issued storage call or constitute a hard socket completion deadline.
Ownership conflicts, invalid ciphertext, permanent authentication failures and exhausted recovery still stop safely. The correction does not reset budgets, restore an older database, revive a fenced writer or replay an AI request with an uncertain outcome. It does not eliminate a sustained storage outage.
The WAL reconciliation window admits further requests for at most 20 seconds after the first uncertain upload outcome; time spent in the initial upload does not remove its opportunity for confirmation. At most four recovery rounds share that window. An admitted call can finish later under the existing SDK timeouts.
HTTP admission has a 20-second budget for queueing, lock waiting and beginning ownership work. A submitted storage operation must finish or be reconciled before its worker is released. A shared 95-second shutdown drain grace reports unfinished workers as an unclean stop. It is not a hard process-exit guarantee: socket timeouts are not absolute wall-clock limits, and Python waits for owned executor threads at interpreter exit. The correction observes ASGI task cancellation, shutdown and deadlines; it does not add a request-body relay to detect a passive TCP disconnect before the application receives it.
The observed timing associates the incident with the preceding deployment; it does not establish why the underlying storage errors first occurred. The correction targets the reproduced failure handling, without claiming that the upstream cause has been proven.
Verify the full package
Compare the downloaded archive with its accompanying .sha256 file. Decompress
the XZ layer, extract the contained ZIP into a new directory, and run from
privileged-frame-simulation:
python release_tools/package_r34_storage_incident_20261127.py verify --package
The root MANIFEST.json and PACKAGE_CHECKSUMS.json describe this revised full
distribution. Current execution receipts and qualification records are under
validation/storage_incident_20261127/. Earlier records keep their historical
source identity and scope; earlier passing counts are not counted as new runs.
The validation report accompanying this archive records the exact current tests, source inventories, exclusions, and qualification limits. Local fault-injection and integrity checks do not establish successful live HF deployment, production capacity, native Windows runtime qualification or new scientific replication.
Standalone use and retained work
Use the existing platform-specific setup and launcher instructions. Preserve project data, private workflow versions, encryption keys, credentials and usage records. The corrected distribution includes narrowly verified source-transition handling for its recorded predecessor; unrelated or tampered source identities remain rejected. Existing explicit review and validation requirements still apply to retained work.
Build the corrected HF contexts
Follow the current local export guide under
deploy/saas/huggingface_native/. The exporter validates the corrected source
inventory and emits controller, runner and runtime contexts with their own
checksums and exact private-code archive identity. The old ebf1ba11...fd33c
code identity belongs to the predecessor and is not the corrected runtime.
Building or verifying these contexts does not upload files, change secrets, restart a Space or replace stored state. Use a new deployment session tied to the generated bundle and exact code revision. Historical patch handoff tools are bound to their original packages and sessions; do not combine their local evidence with this revised source.