Skip to content

Name the Intel Mac release package darwin-amd64 - #397

Draft
SashaMIT wants to merge 15 commits into
cursor/intel-mac-gateway-smoke-1297from
cursor/intel-package-name-1297
Draft

SashaMIT wants to merge 15 commits into
cursor/intel-mac-gateway-smoke-1297from
cursor/intel-package-name-1297

Conversation

@SashaMIT

@SashaMIT SashaMIT commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stack: #394 ← #395 (cursor/intel-mac-gateway-smoke-1297) ← #397 (this) ← #398 ← #399. #399 replaces this branch's signer allowlist with its own RELEASE_PLATFORMS.

  • scripts/package-release-binaries.sh --print-platform prints darwin-amd64 only when sysctl shows Intel hardware (check_native_intel_mac, lines 14-37). A Rosetta shell on Apple silicon (sysctl.proc_translated 1 or hw.optional.arm64 1) stops with "This shell runs under Rosetta on an Apple silicon Mac. Open a native arm64 shell." A missing sysctl, a failing sysctl, or an unknown answer also stops. Full packaging still refuses darwin-amd64 before it creates a tarball (lines 63-65).
  • Before it writes a tarball, the packager checks each staged binary with check_native_header in scripts/release-platform-input.py (the same rule the release input verifier uses), keyed through scripts/release-platforms.json (lines 109-123). A universal Mach-O, a binary for another processor, or a non-executable file stops packaging.
  • The signer refuses x86_64-darwin with require() (a ValueError, not assert). The allowlist is at scripts/release-signer.py:104 and :112-114. It runs before provenance at :1054 and again at :1095.
  • docs/MAC.md#intel-mac is the one Intel Mac record. README, docs/INSTALL.md, docs/GETTING_STARTED.md and docs/LAUNCHER_CONTRACT.md link to it. It names the file that holds each rule. It no longer copies the signer constant name.
  • The Intel CI job checks scripts/package-release-binaries.sh --print-platform prints darwin-amd64 on the runner (.github/workflows/ci.yml, "require an Intel Mac with room to compile").

What this branch carries

Head: aa7bd1ce. Only merges of the base, never rebases. None of them changes this PR's diff against #395 (12 files, +463/-10).

Candidate: aa7bd1ce. Draft. Do not merge. The exit-code policy lives only on pull request #407.

Tests

All on 3cffb7aa, Linux x86_64 (03d22f0f changes only docs/MAC.md; on it package-release-binaries-test.py, ci-release-policy-test.py and gateway-healthz-smoke-test.py -k contract pass again; on 8dd9e851 package-release-binaries-test.py and ci-release-policy-test.py pass again; on 56a8084f package-release-binaries-test.py passes again; on aa7bd1ce package-release-binaries-test.py 9 OK, release-signer-test.py 87 OK under env -i ... python3 -I -S, ci-release-policy-test.py 103 OK and gateway-healthz-smoke-test.py 26 OK (3 skipped) pass again):

python3 scripts/package-release-binaries-test.py -v
test_binary_for_another_processor_or_universal_is_refused ... ok
test_matching_binaries_are_packaged ... ok
test_intel_name_fails_closed_without_a_clear_sysctl_answer ... ok
test_intel_package_key_prints_and_packaging_refuses_the_tarball ... ok
test_native_hosts_use_the_release_platform_names ... ok
test_native_intel_answers_name_darwin_amd64 ... ok
test_other_darwin_hosts_stop ... ok
test_print_platform_writes_nothing ... ok
test_rosetta_shell_on_apple_silicon_is_not_named_darwin_amd64 ... ok
Ran 9 tests
OK

Against the packaging script at 44b5b20d, the same file gives FAILED (failures=15): every Rosetta, missing or unclear sysctl, and wrong-processor case was accepted.

python3 -I -S scripts/release-signer-test.py -v -k optimized
test_optimized_cli_detects_a_refusal_written_as_assert ... ok
test_optimized_cli_refuses_x86_64_darwin_and_signs_nothing ... ok

The child runs main() under python -I -S -O on an x86_64-darwin input that passes every other gate (Intel component keys are admitted in the fixture). The person confirms with the right DID, so a missing refusal would reach the key backend. Outcomes:

real signer -O      : error 'ValueError: release platforms refused', backend 0, outputs None
assert signer, no -O: error 'AssertionError: release platforms refused', backend 0, outputs None
assert signer, -O   : error 'ValueError: package artifact prefix refused', backend 0, outputs None

With the refusal changed to an assert in the real file, test_optimized_cli_refuses_x86_64_darwin_and_signs_nothing fails: 'ValueError: package artifact prefix refused' != 'ValueError: release platforms refused'. The later artifact-prefix gate still stops that input, so nothing was signed. The test names the refusal it expects.

Also on 3cffb7aa: release-signer-test.py 87 OK under python3 -I -S with no TLS override variables set (the signer refuses SSL_CERT_FILE and similar, so a shell with a TLS proxy set gives 11 failures and 2 errors for that reason alone), ci-release-policy-test.py 103 OK, gateway-healthz-smoke-test.py 26 OK (3 IPv6 cases skipped: this host has no IPv6 loopback), the same 26 OK with bash 3.2.57 and a uname shim that prints Darwin, check-product-data.mjs ok, git diff --check clean.

Disputed finding

The signer gate was never an assert. It is require(), which raises ValueError. The test above proves that under -O, and proves that the test would catch an assert.

Branch names stay on the cursor/<name>-1297 line this agent uses.

CI

Principles check

  • P11. An unknown Mac processor type, a Rosetta shell, or a missing sysctl stops with a message. A mislabelled binary stops packaging.
  • P12. One header rule (check_native_header) serves the packager and the release verifier. One Intel record in docs/MAC.md.
  • P15. This pull request does not sign x86_64-darwin and does not write its tarball.

Gaps: no real Mac has run the sysctl path yet. In run 39018375981 (b4316341) the gateway-smoke-macos-intel job never started: the run was cancelled when 37101760 was pushed. The next run of that job is the first native run of --print-platform with the new check.

Intel stays C. No grade here is a merge approval.

Team issues to open

Signed Intel artifact and journey. Title: Signed x86_64-darwin artifact, darwin-amd64 payloads, and Home journey.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K

@cursor
cursor Bot force-pushed the cursor/intel-mac-gateway-smoke-1297 branch from de366cc to d35e72e Compare October 16, 2026 05:37
@cursor
cursor Bot force-pushed the cursor/intel-package-name-1297 branch from 4344c8d to 1f043f3 Compare October 16, 2026 05:37
@cursor
cursor Bot force-pushed the cursor/intel-mac-gateway-smoke-1297 branch from 8c2f9d8 to 471310d Compare October 16, 2026 11:53
@cursor
cursor Bot force-pushed the cursor/intel-package-name-1297 branch from decf029 to c68f402 Compare October 16, 2026 11:54
@cursor cursor Bot changed the title ci: name the Intel Mac release package darwin-amd64 Name the Intel Mac release package darwin-amd64 Oct 16, 2026
cursoragent and others added 2 commits October 16, 2026 12:20
The packager now maps Darwin x86_64 to the darwin-amd64 name already used
in release-platforms.json. The Intel smoke job prints that name and still
withholds the tarball from GitHub Releases.

Co-authored-by: Sash <SashaMIT@users.noreply.github.com>
darwin-amd64 is the package name. release-platforms.json maps it to
x86_64-darwin. The signer allowlist still refuses that release id, so
the name is not a signed download.

Co-authored-by: Sash <SashaMIT@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/intel-mac-gateway-smoke-1297 branch from 471310d to 18a2a66 Compare October 16, 2026 12:20
@cursor
cursor Bot force-pushed the cursor/intel-package-name-1297 branch from c68f402 to 3e52e38 Compare October 16, 2026 12:20
cursoragent and others added 6 commits October 17, 2026 05:39
Full packaging stops on darwin-amd64 before it writes a tarball, including
a Rosetta shell. --print-platform still prints the name and writes nothing.
The signer allowlist is one frozenset, and an optimized interpreter run
refuses x86_64-darwin without writing a signature.

Co-authored-by: Sash <SashaMIT@users.noreply.github.com>
The base now requires HTTP 200 from the process that owns the host lock.
docs/MAC.md keeps that text and this branch's package key paragraph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
The old check ran prepare() in an optimized child and only looked for "ok".
The new child runs main() with python -I -S -O on an x86_64-darwin input
that passes every other gate. It must stop with "release platforms
refused", build no key backend and write no output. A second case turns
that refusal into an assert statement and proves the first check fails
under -O.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
A Rosetta shell on Apple silicon reports uname -m x86_64. The packager now
names a host darwin-amd64 only when sysctl shows Intel hardware. It stops
when sysctl is missing, fails, or gives an unknown answer.

Before it writes a tarball, each staged binary must pass the native
header rule in scripts/release-platform-input.py for the package key. A
universal binary, or one built for another processor, stops packaging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
docs/MAC.md#intel-mac now names the file that holds each Intel rule:
signing, package name, packaging, and install. README, INSTALL,
GETTING_STARTED and the launcher contract link there instead of
restating Intel support. The signer constant name is no longer copied
into the doc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
…ame-1297

No conflicts: docs/MAC.md keeps the one Intel Mac section and takes the base's localhost:8090 readiness text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
…ame-1297

zip 9 for RUSTSEC-2026-0367/0368/0369 so cargo-audit passes. The base
already merges fix/zip-9-rustsec; merging the base keeps this PR's diff
against it unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
…ame-1297

Brings in the ported held-lock journal test fix (develop 5051505) so test-capsules stops flaking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
…ame-1297

Brings in the macOS fix for the gateway smoke test stub, the step that runs
those tests on the Intel Mac runner, and the longer cleanup-test deadline.
No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
…ame-1297

Brings in the MAC.md correction: the gateway listens on every localhost
address. No conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
…ame-1297

Brings in #394's proof of gateway lock ownership from the held flock (3672007), through #395.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
SashaMIT pushed a commit that referenced this pull request Oct 17, 2026
Brings in #394's flock ownership proof (3672007) and #395's macOS smoke test fixes (3cffaad), through #397.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
SashaMIT pushed a commit that referenced this pull request Oct 17, 2026
Brings in #394's flock ownership proof (3672007) and #395's macOS smoke test fixes, through #397 and #398.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
@SashaMIT

Copy link
Copy Markdown
Contributor Author

Round 3 review: PASS (B). Body matches the head. Waiting on the #398 decision.

…ame-1297

Brings in #394's one-step flock ownership proof, the subordinate lane on the same proof, and a held lock with an unreadable record counting as held (4bb19dc), through #395.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
SashaMIT pushed a commit that referenced this pull request Oct 17, 2026
Brings in #394's one-step flock ownership proof, the subordinate lane on the same proof, and a held lock with an unreadable record counting as held (4bb19dc), through #395 and #397.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K

Copy link
Copy Markdown
Contributor Author

CI on 56a8084: only source-home-linux (ubuntu-24.04) failed (run 39049059654, job 117474965169). The error was AssertionError: installed Runtime exited before health in "installed Marketplace Get and Assistant reply". That is the same failure class #67 hit before any of this stack existed (run 38932131083), and it is tracked in #433. No fix exists yet. I can't re-run from here (403), so it needs one re-run.

The same run, which carries #394's 4bb19dcf, passed source-home-macos, source-home-linux (ubuntu-24.04-arm), update-hop-linux, test-elastos, test-capsules and gateway-smoke-macos-intel. That last one ran on a real Intel Mac and passed the 26 stub tests (1 skipped). It also printed fact: gateway pid 18024 listens on: [::1]:8090 127.0.0.1:8090, with HTTP 200 from the same pid at localhost, 127.0.0.1 and [::1].


Generated by Claude Code

@SashaMIT

Copy link
Copy Markdown
Contributor Author

Round 4 at 56a8084: B. Genuine merge; 9/9. Red job is #433 (exited before health): re-run.

…ame-1297

Brings in, through #395, #394's statement that the host lock proves
possession, not that the holder is the gateway (13cdcad), and #395's
hermetic default-command smoke test (630efc6) and "holds" wording
(ac97a4a).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
SashaMIT pushed a commit that referenced this pull request Oct 18, 2026
Brings in, through #397 and #395, #394's statement that the host lock
proves possession, not that the holder is the gateway (13cdcad), and
#395's hermetic default-command smoke test (630efc6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
SashaMIT pushed a commit that referenced this pull request Oct 18, 2026
Brings in #398's portable swapped-Runtime test (da63c23: the Linux case
mocks a GNU-like mktemp instead of using the host's), and, through #397
and #395, #394's statement that the host lock proves possession, not
that the holder is the gateway (13cdcad).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
SashaMIT pushed a commit that referenced this pull request Oct 18, 2026
…-root

Brings in #398's portable swapped-Runtime test (da63c23: the Linux case
mocks a GNU-like mktemp instead of using the host's), and, through #397
and #395, #394's statement that the host lock proves possession, not
that the holder is the gateway (13cdcad).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W6Qn9RX7LDqrwiAfNC2F2K
@SashaMIT

Copy link
Copy Markdown
Contributor Author

Round 5 at aa7bd1c: PASS (A). Genuine merge, own diff unchanged; packaging suite 9/9 on macOS.

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.

3 participants