From cef2fa009630fa0d5babab0bd8e5eaffbd31c70f Mon Sep 17 00:00:00 2001 From: Cheolmin Jo Date: Sun, 22 Nov 2026 21:48:29 +0900 Subject: [PATCH] docs: record the Windows/x64 hosted replay of the CI SDK for the pure C shared modes Co-Authored-By: Claude Sonnet 5.5 --- HISTORY.md | 7 +++++ TODO.md | 4 ++- docs/acceptance/sdk_install_acceptance.md | 31 +++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 566934e..5a77fe1 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -11,6 +11,13 @@ inventing commits or test results. Older months may later be summarized under ## 2026-11-22 +### Replay the Windows/x64 CI SDK for pure C static and shared modes on a hosted runner + +The x64 artifact of the same CI build (not a release) was consumed by the same CLI sources on a `windows-2022` runner (a temporary workflow, since removed and disabled): the CRT contract replay passed and `replay_c_shared_windows.py` passes 36/36; the published +`20261110` SDK fails the same six cases and stays as the baseline. A first run failed in the visibility probe because the hosted workspace's inherited read grants were not removed; the retry prepares the roots as CRT's own workflow does. Hosted, not a physical x64 machine; the per-suite +check counts were not captured; macOS, promotion and pin adoption remain open. +[Acceptance](docs/acceptance/sdk_install_acceptance.md#windowsx64-pure-c-shared-sdk-replay-on-a-hosted-runner-2026-11-22). + ### Replay the Windows/arm64 CI SDK for pure C static and shared modes and the Integration at the lock fixes CRT `5325cea`'s CI-built Windows/arm64 SDK (not a release) with CLI `44fbf24`: independent SDK verification `OK`, native 1,041 checks, and a new `tools/replay_c_shared_windows.py` passes 36/36 (static control, shared runtime, diff --git a/TODO.md b/TODO.md index 2105a06..b96e604 100644 --- a/TODO.md +++ b/TODO.md @@ -102,7 +102,9 @@ and SDK promotion and pin adoption, affected native hosts and Windows C++ remain open. - [x] Windows/arm64: the CI-built SDK of CRT `5325cea` with CLI `44fbf24`: native 1,041 checks, and the pure C static, shared and shared + project DLL modes 36/36 with the loaded `libc.dll` equal to the installed SDK's (the published `20261118` SDK fails six of the same 36 cases) - ([record](docs/acceptance/sdk_install_acceptance.md#windowsarm64-pure-c-shared-sdk-replay-and-integration-at-44fbf24-2026-11-22)). A CI artifact is not a release: promotion, pin adoption, Windows/x64 and macOS remain open. + ([record](docs/acceptance/sdk_install_acceptance.md#windowsarm64-pure-c-shared-sdk-replay-and-integration-at-44fbf24-2026-11-22)). A CI artifact is not a release: promotion, pin adoption and macOS remain open. +- [x] Windows/x64 (hosted `windows-2022`, not a physical machine): the x64 CI artifact of the same build with the same CLI sources: native replay passed and the same driver passes 36/36; the published `20261110` SDK fails the same six cases + ([record](docs/acceptance/sdk_install_acceptance.md#windowsx64-pure-c-shared-sdk-replay-on-a-hosted-runner-2026-11-22)). Per-suite check counts were not captured; a physical x64 machine is not covered. - [x] Store `Lock` replaced by an OS file lock with a multi-process regression; verified on Windows/x64 only ([HISTORY](HISTORY.md), 2026-11-22). Rerun the scheduled Integration job and Linux/macOS/arm64 before closing: both conditions are met at `44fbf24` (the sub-items below; the `CI` run passed all six native legs, which run `store-lock-test`). diff --git a/docs/acceptance/sdk_install_acceptance.md b/docs/acceptance/sdk_install_acceptance.md index 35b6c53..82e7ba6 100644 --- a/docs/acceptance/sdk_install_acceptance.md +++ b/docs/acceptance/sdk_install_acceptance.md @@ -2287,3 +2287,34 @@ this is one scheduled run, not a proof that the failure cannot recur. **Not covered.** Any release or promotion of the SDK and any pin change (the artifact is a CI build); the restricted-token adapter for the C replay (it uses a cleared environment, a private HOME and explicit LLVM tools; nothing is hidden and no network is denied; the contract replay above does use the adapter); Windows/x64 and macOS CLI replays of this correction; Windows C++ `` and the curl compile options (separate CRT items); a Windows zlib or same-name provider case (loader search differs from ELF); a second maintainer or independent review. Receipts are in the ignored local directories `cw/n1` (SDK verification, contract replay), `cw/n3` (36/36) and `cw/n4` (30/36). + +## Windows/x64 pure C shared SDK replay on a hosted runner (2026-11-22) + +The Windows/x64 counterpart of the [Windows/arm64 replay](#windowsarm64-pure-c-shared-sdk-replay-and-integration-at-44fbf24-2026-11-22), for CRT Tranche 6.4 +([producer record](https://github.com/webos21/crt/blob/main/docs/acceptance/sdk_split_acceptance.md#windowsx64-consumer-replay-of-the-ci-sdk-for-the-pure-c-shared-provider-2026-11-22)). **It ran on a GitHub-hosted `windows-2022` runner, not on a physical x64 machine** (the machine used for the arm64 record is ARM64, and an emulated run would not be native evidence). +The SDK is the x64 artifact of the same CI build, **not a release**: nothing is promoted, signed or pinned. + +**Run.** [Run 45032947370](https://github.com/webos21/crt-cli/actions/runs/45032947370), a temporary workflow on a throwaway branch (since deleted; the workflow is disabled), 2026-11-22 14:27:52-14:48:37 GMT, image `windows-2022` 20261111.635 (runner 20261116.370.1), +LLVM 22.1.8 x64 (Chocolatey, as in `ci.yml`), Windows SDK `um\x64` 10.0.26100.0. Inputs: CLI `6f7f8b96fd603da127908053c88e2bce719f8b1e`, checked out into its own path (the branch workflow file is not in the source); its `src/` is identical to `44fbf24` +(the only non-documentation difference is `tools/replay_c_shared_windows.py`). CRT `5325cea0dc0428bc79ac8a40c852a514265bf726` supplied only the replay tool and the two producer test sources. SDK: artifact `sdk-windows-x86_64-5325cea...` of +[SDK integration run 45002729132](https://github.com/webos21/crt/actions/runs/45002729132), label `v0.0.1-ci.45002729132`, manifest SHA-256 `e835d22d2081fd04039bfdd56a3c9b7f31d5fd2b259bfcceac1397115a9a9d4a`, installed content +`6efb616707f4a4b1387d8cf26f2f24e97d4792b46d538bdfef6242a0a32c96cb`, `bin\libc.dll` `2c02d41cea556b8ece5f00d0b03f1893ddc6ca779bf6615d02d5f2505b9301d0`; `ci_sdk_release.py verify` reports `OK` on the downloaded bytes (also run on this machine from the same artifact). + +**Native CLI replay (CRT's `replay_cli_contract_windows.py`): passed.** A hosted C++ seed built the CLI, which self-built (cold 21 executed / 0 reused, warm 0 / 21) and ran its suites under the per-run restricted token with an empty `PATH` and job-object accounting +(583 recorded processes). The executable (46,030,848 bytes, SHA-256 `d63fbf45b2316d7a296283ca9d7ddfcbc07aafe3ef1bfa949ccd31feecb3522d`) imports only `kernel32.dll` and `api-ms-win-core-synch-l1-2-0.dll`. All ten suites exited 0 +(`native-test`, `archive-test`, `sdk-store-test`, `port-recipe-test`, `store-lock-test` and five input-gated `port-*` suites). **The check counts were not captured** (the uploaded receipt holds exit codes, not each suite's output), and the +five `port-*` suites print "skipped" and exit 0 without their host-tool inputs, which this replay does not provide: only the first five suites are substantive evidence here. Result SHA-256 `2e30f0c8...ec41d`. + +**C static and shared runtime modes (`tools/replay_c_shared_windows.py`): 36/36** with that CLI and the SDK above; result SHA-256 `528fb7b3...307b`. Same cases and outcomes as arm64: the static control imports no `libc.dll` and loads none; the shared-runtime executable imports `libc.dll` +and the process loads the installed SDK's `bin\libc.dll` (the store copy), and it exits with `STATUS_DLL_NOT_FOUND` (0xC0000135) without the SDK `bin` on `PATH`; shared runtime + project DLL has one libc and one `errno` and the same start failure; a static executable depending +on a shared library is refused with no output artifact and an untouched lock. + +**Contrast with the published SDK.** The same driver and the same CLI against the published `v0.0.1-preview.20261110.windows.1` (manifest `b0fca4c8...6976`, content `5bb55372...c7ef`) pass **30/36**; the failures are the same six as on arm64 (the shared executable has no `libc.dll` +import and loads none, so it also starts without the SDK `bin`; the shared runtime + project DLL executable does not import `libc.dll` while its DLL does, and does not run). Result SHA-256 `ac0e8bc8...5c62`. The old behavior stays as a failing baseline. + +**First attempt, kept: failed at `build-visibility`.** [Run 45032665028](https://github.com/webos21/crt-cli/actions/runs/45032665028) stopped in the contract replay's visibility probe (exit 10): the restricted token could still read the CLI and producer checkouts because the hosted workspace (`D:\a`) +and `D:\r` inherit broad read grants. It is a workflow fault, not a product result. The retry adds the preparation CRT's `sdk-integration.yml` uses for the same proof (this user, SYSTEM and Administrators get access, `Users`, `Authenticated Users` and `Everyone` are removed) and leaves the +probe's denial check unchanged. + +**Not covered.** A physical x64 machine; the per-suite check counts and the port suites' substantive runs; macOS; release, signing or pin adoption of any SDK carrying the correction; Windows C++ `` and the curl compile options (separate CRT items); a Windows zlib or same-name provider case. The receipts +(`win-x64-ci-sdk-replay-receipts`) expire 14 days after the run; the hashes above identify them, and copies are in the ignored local directory `cw/x2`.