Repository navigation
[SUPERSEDED / UNMERGED] Persistent-owner CAS source integrated into qualified-base #187 - #186
Conversation
Add strict root-local v1 pointer schema, explicit operation replay, existing atomic fsync/replace/parent sync, and exclusive same-root CAS. Enroll two-process contention and corrupted/symlink/fsync failure tests. Do not switch live /tmp or claim end-to-end runtime recovery.
If previous atomic rename completed but the parent fsync failed, the owner record may be visible without durable acknowledgement. A retry must explicitly sync that directory before returning the same op ID. Retain generation CAS and fail-closed error propagation.
2026-11-22 R036 — isolated storage workcell, exact source custody and merge boundariesCommitted source: owner-model parent #185 Durability first-failure caught in source review, corrected before review: The first draft replay fast path could ACK the same operation after prior directory fsync failed: a rename could be visible but not durable. New head forces fresh parent-dir Qualification: exact-head free public TLC #44982593645, BuildKit #44982593576, RPC redaction, evidence/provenance and disposable contracts were SUCCESS at checkpoint; full CI #44982593553 and unit isolation #44982593587 IN_PROGRESS, not PASS. No private minutes or paid cloud. Required merge reconciliation: #184 and this #186 are INDEPENDENT branches. Both change |
Exact source CI #44982593553 first failed only at I001 requiring one blank line before api.utils.files import. No source storage semantics, CAS policy, durability or tests waived; trigger fresh exact-head CI.
2026-11-22 — first exact-head broad CI failure isolated and correctedStorage prototype #186 exact Corrected exact source: commit |
2026-11-22 — exact dependency-based failure and corrected combined survivorStorage-only draft exact Safe corrective action: created draft combined PR #187 directly atop actual #184 early writer source This PR remains open for immutable source lineage until #187 terminal acceptance and then should close SUPERSEDED/UNMERGED. Do NOT merge #186 source blindly on main or #181 or assume two green ancestors prove union. Keep code unwired to live /tmp pointer, and native HIL #184 remains failed/pending correction. |
2026-11-22 — close unusable incomplete-base workcell UNMERGED, source custody retainedExact original draft #186 |
Purpose
Execute a source-safe, independent partial correction for the active-session pointer persistence gap captured in #185. This PR implements the small durable storage primitive and tests it separately. No live entrypoint/API/lifecycle path is wired to the new record, and it is NOT equivalent to a session-handover crash-recovery implementation.
Exact source / DLE
Based on #185
56d06dcbd1055fd0fe8c18abe6a85d722cb8aeb3, current head505a4b8dea440dc0a09825f1cbd461a40308a20f, two source commits / five intentional paths. One newapi/core/persistent_owner.pydefines a strict version-1 root-local.winebot-committed-owner.jsonrecord with bounded size, exact schema, positive monotonic generation, operation identity, a real root-local session directory, and symlink rejection.commit_persistent_owner(root, session_dir, expected_generation, operation_id)obtains the same session-root writer admission as #183/#184 (or fails on contention), compares exact generation and increments on successful commit; exact operation/generation replay is idempotent. Strict source identity and corrupt/newer record errors are not treated as missing data.Writes reuse the existing
api.utils.files._atomic_write_textfile fsync, replace, and parent-directory fsync. Crucial corrective second commit505a4b8dea440dc0a09825f1cbd461a40308a20f: an idempotent retry after a prior rename/parent fsync failure must issue a new successful parent-directory fsync before acknowledging the previous record. No fabricated rollback or weak ACK. Independent synthetic tests exercise initial/replayed owner, stale epoch and reused op negative cases, out-of-root and symlink rejection, corruption and directory fsync error/replay, and two genuine competing disposable Python processes (exactly one permitted generation-0 CAS). Tests enrolled in executable mandatoryscripts/ci/test.sh; source workflow TLC path triggers extended; design DLE docs updated.Qualification and nonclaims
Require exact-head public $0 GitHub Actions full CI (lint/unit, frozen external conformance and smoke), focused formal TLC red/blue, source safety guards. Real Wine11 owner-recovery HIL and two complete entrypoints remain future sequential integration after early FD lock #184 terminal accept and actual shared-root/mount qualification. Standalone CAS only linearizes cooperative same-root local writers; it does not provide a distributed consensus service, replay/rollback of paired handover markers, native guest effects, automation recording finalization or WinInspect v0.5 native HWND. Preserve DRAFT and NOT_READY_FOR_HARDWARE_TEST; no main merge, private actions minutes, paid cloud, local sovereign hardware or private source projection.