Skip to content

fix(release): SC-009 gate uses dumpbin on Windows (strings was blind)#35

Merged
montfort merged 1 commit into
mainfrom
fix/sc009-windows-symbols
Jul 19, 2026
Merged

fix(release): SC-009 gate uses dumpbin on Windows (strings was blind)#35
montfort merged 1 commit into
mainfrom
fix/sc009-windows-symbols

Conversation

@montfort

Copy link
Copy Markdown
Contributor

Problem

The pre-publish release dry-run failed only on native (win-x64). The SC-009 gate (verify test-hooks are NOT exported in release binaries) inspects symbols with strings for .dll files. strings cannot reliably read a Windows PE export table — it missed even the abi_version positive control, so the gate correctly declared itself blind ("blind, not clean") and failed with exit 1.

The other three RIDs (which use nm) pass. The code and the binaries are correct — only the Windows symbol-inspection method was wrong. This is a latent gate (not changed recently), surfaced by running the dry-run before the real publish.

Fix

  • .dll symbol listing now uses dumpbin -exports (the canonical tool for a PE export table) instead of strings.
  • dumpbin is put on PATH via ilammy/msvc-dev-cmd@v1 (Windows runner only).
  • Tool-presence check updated to require dumpbin on Windows.
  • Positive-control + both-hooks (weft_test_panic / weft_loro_test_panic) logic unchanged.

Verification

A fresh release.yml dry-run will be run against this branch's change on main after merge to confirm all four RIDs (incl. win-x64) go green.

🤖 Generated with Claude Code

The release dry-run failed only on native (win-x64): the SC-009 gate
("test hooks NOT exported") lists symbols with `strings` for .dll files,
but `strings` cannot reliably read a PE export table — it missed even the
`abi_version` positive control, so the gate correctly refused a verdict
("blind, not clean") and failed. The other three RIDs (nm) pass; the code
and the binaries are fine — only the Windows inspection method was wrong.

Switch the .dll path to `dumpbin -exports` (the canonical tool for a PE
export table), made available via ilammy/msvc-dev-cmd on the Windows runner.
The positive-control + both-hooks logic is unchanged.

Latent gate (not introduced recently); surfaced by the pre-publish dry-run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@montfort
montfort merged commit 94c48c8 into main Jul 19, 2026
25 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant