Skip to content

Commit ccf3bcf

Browse files
committed
fix(ci): normalize Windows diagnostic identity
1 parent c44ac51 commit ccf3bcf

5 files changed

Lines changed: 96 additions & 39 deletions

File tree

‎.github/workflows/build2-bridge-cffi.reusable.yaml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ jobs:
594594
"pdb_procedure_symbol_count=$procedureSymbolCount"
595595
) | Add-Content `
596596
(Join-Path $outdir "diagnostic-inspection.txt") -Encoding ascii
597-
@(
597+
$verificationLines = @(
598598
"target=$env:TARGET"
599599
"source_sha=${{ inputs.source_sha || github.sha }}"
600600
"workflow_run_id=${{ github.run_id }}"
@@ -607,14 +607,22 @@ jobs:
607607
"unstripped=true"
608608
"pdb=present"
609609
"pdb_bytes=$($pdb.Length)"
610-
) | Set-Content `
611-
(Join-Path $outdir "diagnostic-verification.txt") -Encoding ascii
610+
)
611+
# This identity file is consumed with exact whole-line matching on
612+
# Linux. Write canonical BOM-free LF text instead of PowerShell's
613+
# platform-default CRLF so the immutable bytes are portable.
614+
$verificationPath = Join-Path $outdir "diagnostic-verification.txt"
615+
$verificationText = ($verificationLines -join "`n") + "`n"
616+
[System.IO.File]::WriteAllText(
617+
$verificationPath,
618+
$verificationText,
619+
[System.Text.UTF8Encoding]::new($false))
612620
613621
$manifestFiles = @(
614622
(Get-Item $primary)
615623
$pdb
616624
(Get-Item (Join-Path $outdir "diagnostic-inspection.txt"))
617-
(Get-Item (Join-Path $outdir "diagnostic-verification.txt"))
625+
(Get-Item $verificationPath)
618626
)
619627
$manifest = foreach ($file in $manifestFiles) {
620628
$hash = (Get-FileHash $file.FullName -Algorithm SHA256).Hash.ToLowerInvariant()

‎TASK/csharp-entry-gates-handoff.md‎

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# C# implementation-entry external-run handoff
22

3-
Status: the exact-source tag bootstrap ran the first atomic external attempt
4-
at commit `9d29c01928df7ce726c49286a3067129fc039115`. Its source/release-plan
5-
preflight and six non-Apple producer jobs passed, including every experimental
6-
target, but both Apple diagnostic verifiers failed before upload and the
7-
atomic verifier was skipped. The failure is recorded below and promotes no
8-
gate. B8 passes locally, but its committed-source exact-package/trim
9-
reproduction is still pending. B11 also passes its complete local Linux
10-
trim/single-file matrix, while B4 remains blocked on the verified atomic
11-
package and real eight-RID consumers. `TASK/implementation.md` must not be
12-
created yet.
3+
Status: the second exact-source atomic attempt at commit
4+
`c44ac516a6f71fac143c4ff239beae424b042222` proved the repaired Apple
5+
packed-dSYM path and passed all eight shipping/diagnostic producers. The
6+
downstream verifier staged all eight shipping assets and accepted all six
7+
Unix diagnostic bundles, then rejected the first Windows identity file
8+
because PowerShell emitted CRLF while the Linux verifier requires exact LF
9+
lines. The package and consumer fan-out did not run. This portability defect
10+
is repaired locally and promotes no gate until another exact-source attempt
11+
passes. B8 and B11 retain their local status; B4 remains blocked on the
12+
verified atomic package and real eight-RID consumers.
13+
`TASK/implementation.md` must not be created yet.
1314

1415
## Exact workflow
1516

@@ -174,8 +175,38 @@ builds, retain the generated `.dSYM`, and keep the existing UUID/DWARF and
174175
local-symbol assertions. That repair is implemented locally: `actionlint`,
175176
independent YAML parsing, shell syntax checks, Cargo profile-override parsing,
176177
and three-target argument expansion prove that only Apple receives the packed
177-
override. The Apple runner result and another complete exact-source attempt
178-
remain pending.
178+
override. The second attempt below proves that repair on both Apple runners.
179+
180+
## Second atomic attempt
181+
182+
[GitHub Actions run 29784081881](https://github.com/BoundaryML/baml/actions/runs/29784081881)
183+
was triggered by exact tag
184+
`csharp-entry-gates-c44ac516a6f71fac143c4ff239beae424b042222` at source
185+
SHA `c44ac516a6f71fac143c4ff239beae424b042222`, event `push`, attempt 1,
186+
release version `0.15.0`. The immutable-plan and central-matrix jobs passed.
187+
All eight producer jobs passed shipping build/upload, diagnostic build,
188+
platform-specific debug/symbol verification, and diagnostic upload. Both
189+
Apple architectures therefore prove the packed dSYM repair, including exact
190+
architecture, dylib/dSYM UUID equality, a DWARF compile unit, local symbols,
191+
and canonical manifest/upload paths. Both Windows PDB verifiers also passed.
192+
193+
The verifier's native-consumer matrix computation passed. Package assembly
194+
downloaded the current-attempt artifacts, validated every shipping
195+
checksum/identity, staged exactly one asset for each of the eight RIDs, and
196+
accepted both Apple plus all four Linux diagnostic manifests. It then failed
197+
while consuming
198+
`x86_64-pc-windows-msvc/diagnostic-verification.txt`. The producer wrote
199+
PowerShell's CRLF line endings; the Linux assembly job's exact `grep -Fxq`
200+
identity checks correctly rejected the trailing carriage return. Downloaded
201+
evidence reproduces the failure and independently proves that the Windows x64
202+
DLL/PDB manifest, PE/PDB identity, procedure symbols, sizes, and distinct
203+
shipping/diagnostic digests all pass. No normalized package, native consumer,
204+
protocol-host, semantic/deployment, or completeness artifact was produced.
205+
206+
The focused local repair writes this cross-platform identity file as explicit
207+
BOM-free LF text on Windows before hashing it into the immutable manifest. It
208+
does not weaken any identity or debug assertion. A new reviewed commit and
209+
matching exact-source tag must prove the repair.
179210

180211
## Provenance preflight
181212

@@ -188,8 +219,8 @@ That scope became commit
188219
`9d29c01928df7ce726c49286a3067129fc039115` was the first atomic attempt's
189220
source.
190221

191-
The Apple packed-debug repair and post-run ledger updates require a new
192-
reviewed source commit and a new matching
222+
The Windows canonical-line-ending repair and post-run ledger updates require
223+
a new reviewed source commit and a new matching
193224
`csharp-entry-gates-<full source SHA>` tag. Its precommit scope must contain
194225
only the native-builder workflow plus these four continuously maintained
195226
ledger files. The local `.codex/`, `.TASK.readonly-seed/`, `AGENTS.md`, and all
@@ -408,4 +439,4 @@ Current source SHA-256 values:
408439
| shared Rust setup action | `2063428518629315d1d6bb67e4c864764466cfc6a9654469dec014d908c2713a` |
409440
| manual caller workflow | `cd3e45ef30ecd8789116e16a3c34212b35a905244020b417a57e70a35fc28f96` |
410441
| reusable verifier workflow | `9b4118773f3c2c397ab1b50270c97cd12a920631ee3f1df7ef803230a780619e` |
411-
| native builder workflow | `966e45b3dbe0a140eb2fe5905d2924d8befe95a7f4fd83111b263cd1ace7128c` |
442+
| native builder workflow | `bca7fcbcc696aa2a65e405cf3942a563d878d4b83b88dfd9d81eb3dbb54b2101` |

‎TASK/package-feasibility-evidence.md‎

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# C# atomic-package feasibility evidence
22

3-
Status: B4 partially executed through the first exact-source atomic attempt on
4-
2026-07-18. All eight shipping targets built, and all six non-Apple paired
5-
unstripped diagnostics passed, but both Apple diagnostics failed retained
6-
DWARF verification before upload. The atomic verifier and native consumer
7-
matrix were therefore skipped. Deterministic unsigned-package normalization
8-
and the current Linux x64 local baseline are proved; no eight-RID package
9-
baseline is approved.
3+
Status: B4 partially executed through the second exact-source atomic attempt
4+
on 2026-07-20. All eight shipping and paired diagnostic producers passed,
5+
including packed dSYM and PDB verification. The package job staged all eight
6+
shipping assets and accepted all six Unix diagnostic bundles, then rejected a
7+
Windows CRLF identity file before package construction. The focused canonical
8+
LF repair is local; no native consumer execution or eight-RID package baseline
9+
is approved.
1010

1111
## Target and size authority
1212

@@ -323,12 +323,28 @@ because the build left Cargo's macOS debug layout at the documented
323323
the dylib or one UUID-matched `.dSYM`. The diagnostic uploads and downstream
324324
atomic verifier were correctly skipped. No B4 or C6 promotion is claimed.
325325

326+
The second exact-source atomic attempt, [run
327+
29784081881](https://github.com/BoundaryML/baml/actions/runs/29784081881),
328+
used tag and source SHA
329+
`c44ac516a6f71fac143c4ff239beae424b042222`. All eight shipping and
330+
diagnostic producers passed, including the repaired packed dSYM checks on
331+
both Apple architectures and the existing PE/PDB checks on both Windows
332+
architectures. Package assembly validated the current-attempt shipping
333+
identities/checksums, staged one native per RID, and accepted both Apple plus
334+
all four Linux diagnostic manifests. It stopped on the first exact identity
335+
line in the Windows x64 diagnostic verification file because PowerShell had
336+
written CRLF and the Linux consumer uses exact whole-line matching. The
337+
downloaded Windows x64 artifact confirms that its DLL/PDB manifest, PE/PDB
338+
debug evidence, sizes, and distinct shipping/diagnostic digests are valid;
339+
only the cross-host text encoding violated the immutable contract. No package
340+
or consumer output was produced, so no B4 or C6 promotion is claimed.
341+
326342
## Remaining closure
327343

328-
B4 remains blocked, not passed. Neither the builder-only run nor the failed
329-
first atomic attempt satisfies the atomic package contract. The locally
330-
validated Apple-only packed-debug repair must be committed and executed from
331-
a new exact-source bootstrap tag; a passing attempt must:
344+
B4 remains blocked, not passed. The builder-only run and two failed atomic
345+
attempts do not satisfy the complete package contract. The locally validated
346+
Windows canonical-LF repair must be committed and executed from a new
347+
exact-source bootstrap tag; a passing attempt must:
332348

333349
1. supply all eight real immutable artifacts from the frozen release plan;
334350
2. inspect format, architecture, minimum OS/libc, dependencies, RPATH, exports,

‎TASK/state-of-csharp-completeness.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ together. The completed design says a single “interop,” “streaming,” or
212212
| Internal Protobuf generation is deterministic and private | passed locally | two isolated byte-identical local generations, no-op/import graph, internal/path inspection in `TASK/protocol-generation-evidence.md`; the untriggered workflow uploads three host manifests and requires cross-host identity | packaging P1; build-host matrix remains |
213213
| `Grpc.Tools` and schemas do not flow to consumers | passed locally | isolated exact-package cache/asset/public-surface inspection | packaging P1 |
214214
| Frozen `Grpc.Tools` / `Google.Protobuf` compatibility | passed locally | exact 2.82.0/libprotoc 35.0 with tested 3.35.1 and range `[3.35.1,4.0.0)` plus envelope vectors | packaging P1; build-host/trim matrix remains |
215-
| One atomic eight-RID `baml-bridge` package | blocked | `TASK/package-feasibility-evidence.md`: exact 200,000,000-byte ceiling, deterministic `0644` normalizer, current local Linux x64 package execution, eight successful shipping builders, and six passing non-Apple paired diagnostics in atomic attempt 29626183183. Both Apple diagnostic verifiers failed under Cargo's unpacked-debug default, so package/verifier/consumer lanes were skipped; `TASK/csharp-entry-gates-handoff.md` records the exact repair boundary. | release; Q10 feasibility |
215+
| One atomic eight-RID `baml-bridge` package | blocked | `TASK/package-feasibility-evidence.md`: exact 200,000,000-byte ceiling, deterministic `0644` normalizer, current local Linux x64 package execution, and eight successful shipping/diagnostic producers in atomic attempt 29784081881. Package assembly staged all eight RIDs and accepted six Unix diagnostic bundles, then rejected PowerShell CRLF in the first Windows identity file before package construction; `TASK/csharp-entry-gates-handoff.md` records the canonical-LF repair boundary. | release; Q10 feasibility |
216216
| Only selected RID native asset reaches RID-specific publish | passed locally | sole canonical `linux-x64` package asset reaches concrete Ubuntu x64 publish byte-identically | release; other RIDs remain |
217217
| Unsupported RID diagnostics | passed locally | exact evidence package rejects explicit `linux-s390x` with bounded `BAML0010`; warning-free eight-way runtime policy throws `PlatformNotSupportedException` with detected facts/list and never substitutes architecture/libc | release; final product target/loader and native matrix remain |
218218
| Union one-field-per-arm binary layout | passed locally | current .NET 10 probe retains arity 2/8/16/32 sizes, copy cost, construction/match allocations, duplicate cases, invalid default, source hashes, and exact output | P6; `TASK/union-layout-evidence.md` |

0 commit comments

Comments
 (0)