Repository navigation
[SUPERSEDED / UNMERGED] Durable metadata writer carried by MVP #176 - #177
mark-e-deyoung wants to merge 3 commits into
Conversation
2026-11-21 ~05:12 CET — first combined CI failure isolated and corrected, durable local-state batch launchedCombined integration draft #176 first exact head Independent persistence durability defect batch: new DRAFT #177, based on qualified MVP #158, exact HEAD Remaining: native in-flight guest/host effects, multi-process CAS/fencing, orphan inactive markers, real recorder finalization, source-qualified private WinInspect C++ #468 and real HWND #166 remain held. No merge, release, private GHA minutes, user hardware, paid compute, source disclosure, or fixture bypass. |
2026-11-21 05:16 CET — concurrent actor/source-custody reconciliation, no blind duplicate mergeTwo independently authored combined candidates detected. #175 exact One meaningful divergence: #175's Another concurrent scope collision: #177 Suggested repo hygiene: converge on ONE combined source branch (prefer directly MVP-based #176 if it incorporates #175's wider TLC trigger and reaches exact-head CI); preserve the standalone qualified #173/#174 as DLE source lineage. Keep independent durability tests until one design chosen, then close superseded other-actor drafts unmerged only with documented reason/receipts. All sources public-safe; WinInspect-native #468/#166 remains release-held; no merge/release/private Actions spend. |
2026-11-21 05:20 CET — durable atomic-state design comparison and consolidationConcurrent source variants compared against qualified MVP: #177's Action: retained DRAFT #177 as sole durability candidate, now exact head DRAFT #178 remains a historical opt-in alternative with its tests, now superseded by #177; close without merge to avoid two competing atomic writer contracts. Need exact-head full public GHA of #177 |
2026-11-21 — DLE lineage reconciliation / source supersession, no mergeThis isolated source workcell is fully represented in the canonical MVP cross-layer integration #176 at exact Original head |
Evidence-based cross-layer durability fix
api/utils/files.py::_atomic_write_textpreviously wrote andfsynced temporary bytes andos.replaced the destination but did notfsyncthe parent directory. The file data can be durable without the post-rename directory entry being power-loss durable. This is a separate local persistence seam from the formal control/handover PRs #173/#174 and their combined qualification PR #176.This narrowly adds parent-directory
fsyncafter atomic rename. Directory sync failure propagates to the caller; the write may already be visible, so caller recovery must not assume rollback. No claim of multi-file distributed transaction atomicity.Two synthetic tests in the existing mandatory
tests/test_invariants.pyassert actual file-then-directory fsync ordering, no temporary-file leak, and error propagation on simulated directory sync failure.Qualification
Run source-exact lint/unit, external frozen conformance and smoke against owning MVP #158 and independently assess filesystem compatibility. Stay DRAFT, no merge or release until exact-head public GHA terminal. No private/source leak, paid cloud or user hardware. After acceptance, reconcile this change with combined #176 under one authoritative MVP candidate.