Skip to content

Preserve native launch errors in the opt-in Windows Git stream owner - #5524

Merged
Mister-Meeseeks merged 2 commits into
CrocSwap:mainfrom
mihir-s-05:fix/windows-git-stream-launch-errors
Oct 25, 2026
Merged

Mister-Meeseeks merged 2 commits into
CrocSwap:mainfrom
mihir-s-05:fix/windows-git-stream-launch-errors

Conversation

@mihir-s-05

Copy link
Copy Markdown
Contributor

Change and mathematical scope

PR5463's owned Python gate turns requested-executable launch failures into exit 1. With the actual Git reader's suppressed stderr, a missing executable, invalid image or directory-as-executable becomes an empty/non-blob response error.

This opt-in tooling successor preserves the native exception class and fields through a separate, bounded launch-status channel while reusing PR5463's unchanged Job Object owner. It distinguishes launch failure from a successfully launched exit 129, preserves binary streams and consumer pauses, and stops owned children on startup failure. A transient report-read PermissionError found during repeated native checks is handled within the existing startup deadline; a real executable PermissionError is reconstructed outside that retry handler.

Only research/windows-git-launch-diagnostics/ is added. Shared production adoption remains open. No new kappa, selected-record change, full adapter acceptance or mathematical replay is claimed.

Package and limits · validation record

Task and overlap

Handoff-first portable-replay, changed scope from generic artifact comparison to PR5463's explicit launch-diagnostic obligation. Reliable source-pin checks need to distinguish process setup failures from bad Git data. Task card · canonical Discussion claim/result.

Started and refreshed against canonical main 32890bc5de034ab8fc93ac88ead7279a6a416d04, priority revision 7. PR5463 remains at 991da9010925914ec64a5293286edb10a7910218. PR5461 (dd30c37b09bc090afa94944cb055b677de2db696) and the 7a9a2b6 native probe retain baseline diagnosis credit; their full suites were not rerun here.

The full refresh covered 378 open PRs and 4,796 Discussion records; sparse local coverage omitted 7,401/7,402 tracked notes. Relevant sources, runner documentation and ledger were read directly. A later live thread/PR check found two concurrent diagnostic claims released; their preliminary corroboration is credited, not claimed as independent review. Owner-death audits remain separately coordinated. These searches do not prove novelty.

Validation

Native Windows 11 build 26300 / CPython 3.12.0, standard library:

python -I -W error -B research/windows-git-launch-diagnostics/verify.py --require-windows
python -I -W error -O -B research/windows-git-launch-diagnostics/verify.py --require-windows
python -B scripts/research_package.py --package research/windows-git-launch-diagnostics
python -B scripts/check_research_commit.py --package research/windows-git-launch-diagnostics --check-source-history
  • Direct normal/optimized and registered normal/optimized checks pass 25 case groups. Complete case arrays agree across modes.
  • Controls cover native launch fingerprints, exactly-once exit-129 fallback, 80,000-byte binary duplicate reads, Unicode argv/env/cwd, consumer suspension, malformed/missing/oversized status, transient/persistent report-read denial, assignment denial, and four retained-handle descendant boundaries before teardown.
  • Three deliberate regressions are detected: omitted handshake, stdout contamination and corrupted frozen source. Fifty additional focused diagnostic cycles pass after the read-denial repair; the earlier failures and their diagnosis are preserved in VALIDATION.
  • All 17 committed files and canonical source-history pins pass. The official export/check passes. Its file-read-only, Git-free native optimized replay passes all 25 groups in 8.30 s, reproduces the entire parsed optimized receipt with zero exclusions, and leaves every exported byte unchanged. Directory ACLs were not made read-only.
  • Ubuntu/WSL2 / Python 3.12.3 passes explicitly labelled portable source/report checks; --require-windows rejects there. This is not native Windows coverage.

Science/evidence: 68f3e912d04d74fbb98b806852007f7231a8b1af. Publication: b11f5ab7df36fbde44e9f2de3498e3e77f2eb4ee; the second commit only records export/provenance results. The pending fork dependency is vendored with exact blob/SHA256 identities and public provenance, not misrepresented as a canonical ancestor.

Not run: full predecessor/production-consumer suites, other Windows hosts, restrictive host policies, hard owner-death tests or scientific replays. General Popen compatibility and a total wall-clock bound including outer CreateProcess/filesystem calls are not claimed. Hosted CI is separate.

Credit

Retain ywz65's Job Object/gate and native observer design; Brian/JoyboyBrian's deadlines/POSIX ownership; Nick Petalas's blob/fallback reader; Douglas Colkitt's runner; Mihir Srivastava's adapter/native audit lineage; Arham Tahir, Woklerx, yssite, Paul Romeo, Tekalign and the retained contributors. Concurrent missing-executable corroboration is linked in VALIDATION. Source notices and Apache-2.0 license are included.

Prepared for Mihir Srivastava with substantial OpenAI Codex assistance, one agent. Author-checked, not independently human-reviewed.

Open next questions

Detailed next questions: integrate the reviewed owner/wrapper at one shared process factory while retaining fixture seams, then run the current consumer suites on Windows/POSIX. A second Windows host/policy replay is also useful. These require separate review/host access; this contribution reserves neither task.

@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