Skip to content

Audit Windows Git blob return lifetimes and descendant-held stalls - #5461

Merged
Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
mihir-s-05:research/windows-git-descendant-audit
Oct 25, 2026
Merged

Mister-Meeseeks merged 1 commit into
CrocSwap:mainfrom
mihir-s-05:research/windows-git-descendant-audit

Conversation

@mihir-s-05

Copy link
Copy Markdown
Contributor

The native Windows Git blob reader can return successfully, reject a malformed response, or close its generator while an ordinary descendant remains alive. Its response watchdog can also fire after the Git leader exits while a descendant-held pipe keeps the read blocked.

This focused audit and repair handoff adds an opt-in native probe, mutation controls and exact receipts under docs/research/windows-git-descendant-audit. It changes no shared runner, frozen source or selected result.

The final overlap refresh exposed a parallel ten-case audit. The four stalled boundaries here are independent corroboration, with that work linked and credited. This implementation additionally observes malformed return, early close, consumer suspension and fallback; closes already inherited pipes as a counterfactual; and terminates the descendant only after recording the missed deadline, observing the released read's exception. The active streaming-adapter investigation owns the implementation follow-up. These are separate Codex-assisted sessions under the same account, not independent human review.

Validation at dd30c37b09bc090afa94944cb055b677de2db696 on native Windows 11 build 26300, CPython 3.12.0:

  • 14 cases in each normal and optimized mode. Four held-pipe stalls remain blocked for 0.6 seconds after the 0.4-second watchdog callback. Closing the child's pipes while keeping it alive makes all four controls reject promptly. Success/error/early-close/suspension/fallback retain the expected protocol outcome but leave the descendant alive. The live direct-child-only stall times out correctly.
  • Native pipe types, leader exit, and descendant states are inspected using retained process handles before fixture intervention. Exact binary replies and the original exception class are checked; all fixture cleanup completes.
  • Three disposable mutations rejected in each mode: no watchdog startup, wrong timeout exception, and changed binary payload.
  • An optimized standalone snapshot with no .git and empty PATH confirms all 14 cases with unchanged source bytes.
  • All eight staged files match their raw Git bytes; all five receipts bind the final probe and reader hashes. git diff --check and the current selected metadata baseline pass.

The README includes the exact source commit/blob/SHA256, commands, predecessor attribution, an intermediate fixture-startup failure and its correction, and bounded next steps. The probe executes the unchanged reader's source bytes directly. It emits CONFIRMED_WINDOWS_GIT_DESCENDANT_GAP, not a repair-success status.

Limitations: controlled Python subprocesses substitute for Git; no installed-Git incidence claim, production repair, default 90-second elapsed test, other Windows/Python version, hostile-process containment, scientific cold replay or hosted native Windows pass is claimed. This is not registered as a generic research replay. The selected frontier is unchanged.

Task portable-replay, scope changed to the explicit native lifetime handoff; priority revision 7. Started from and refreshed against canonical main 32890bc5de034ab8fc93ac88ead7279a6a416d04. Submission overlap covered 331 open PRs, 4,729 Discussion records and all 7,402 tracked in-scope notes with reported complete coverage, followed by direct live checks of the concurrent scopes. Canonical claim/result.

Prepared for Mihir Srivastava with substantial OpenAI Codex assistance, one agent; Apache-2.0. Credit Douglas Colkitt, Nick Petalas, Brian / JoyboyBrian, ywz65, Arham Tahir, Woklerx, Mihir Srivastava and the retained reader/fixture lineage.

@Mister-Meeseeks
Mister-Meeseeks merged commit d99b379 into CrocSwap:main Oct 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants