Skip to content

Make Windows ownership capture authority durable before interruption #2052

Closed as not planned

Description

@integry

Objective

Make the installed Windows desktop workflow publish durable, nonprovisional installer and resource authority before an interruption can observe the DURING_OWNERSHIP_CAPTURE checkpoint, while preserving fail-closed cleanup ownership.

Authoritative evidence

PR #2042 is being integrated only into runtime sub-epic 1952-epic-electron-runtime-app; propagation to the top desktop epic remains blocked.

On exact head 01b133f5131af2f569b7f0b252566cfdddee9dc8, Windows x64 package job 99995386833 passes the fixed four-class cleanup-controller startup protocol, principal native-pwsh NO_MARKER cleanup, Windows PowerShell 5.1 compatibility, and earlier MSI gates. It then fails the bounded DURING_OWNERSHIP_CAPTURE assertion with exactly PROCESS_EXIT:125, MSI_TRANSACTION:UNPROVEN, POST_TERMINATION_CLEANUP:FAILED, and AUTHORITY_STATE:PROVISIONAL. A prior ARM64 run exposed the same phase intermittently. This is a timing/durability race, not the parser failure fixed by 01b133f.

Required correction

  • Trace the exact writer, supervisor, manifest, receipt, and checkpoint ordering for installer/resource authority capture. Add only fixed allowlisted phase evidence if the current ordering cannot be proven statically; never emit paths, identifiers, SIDs, product codes, hashes, exception text, commands, or environment data.
  • Define one atomic publication boundary for complete nonprovisional authority. The observable DURING_OWNERSHIP_CAPTURE interruption checkpoint must occur either before any authority is treated as usable or after the complete authority record is durably committed and re-read; it must never expose a partially authoritative state that cleanup can mistake for complete.
  • Use same-directory atomic replacement and explicit durability appropriate to Windows. Validate exact schema, key set, Boolean types, identifiers, installer entry identity/SHA/ProductCode, resource identities, file authority, and generation before publication. A partial, stale, malformed, provisional, or mismatched record must remain retained and fail closed.
  • If interruption occurs before publication, rollback/cleanup may remove only resources whose creation and identity are independently proven by the current run. Never infer ownership from pathname, installer intent, a provisional marker, or absence before the run.
  • If interruption occurs after publication, the cleanup controller must re-read durable nonprovisional authority and remove exactly the owned installer/resources. It must preserve all pre-existing users, profiles, install trees, shortcuts, registry entries, receipts, and unrelated files.
  • Preserve F10-F24, Job Object ordering, watchdog exit 124, four-class startup, fixed bounded diagnostics, native Core plus PS5.1 atomic receipt behavior, MSI transaction proof, manifest retention, zero stderr, lockfile, and ancestry. Do not weaken interruption timing or skip the capture checkpoint.
  • Keep product behavior, installer scope, release trust, package formats, and production timeouts unchanged. Do not target or merge into main or the top desktop epic.

Tests and gates

Add deterministic schedule-controlled regressions for interruption immediately before, during, and after authority publication; delayed/partial writes; replacement collision; stale generation; process death between flush and rename; and cleanup retry. Require both Windows x64 and ARM64 installed-app jobs to report durable nonprovisional authority and exact cleanup completion, plus the complete six-platform package matrix, Full Suite, and Validate Changes.

Coordinate with the sibling cleanup-controller protocol issue: this issue owns authority writer/publication/checkpoint ordering and authority-driven cleanup semantics; the sibling owns invocation attribution and exact two-line controller transport.

Blocking #1952 and final #1950 integration. Do not merge the generated PR automatically; require exact-head CI, Ultrafix, and independent audit.

Activity

  1. propr-dev commented on Sep 1, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2052/gpt-5.6-sol-make-windows-ownership-ca-20260901-2205-od8
    • Base Branch: 1952-epic-electron-runtime-app
    • Worktree: issue-2052-20260901-2205-gpt-5.6-sol-od8

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-donebugllm-codex-gpt56-sol

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions