J124: signed and notarized arm64 macOS CLI and capture helper #321
Open
opened 2026-11-03 06:08:38 +00:00 by kayg
·
10 comments
No Branch/Tag specified
main
j470b-server-mesh-rejoin
mesh-compat-382
j444b-d381-key-wins-flood
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/infraternal#321
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Ship an arm64 macOS infraternal CLI/agent built with
remote,desktop, plusInfraternalCaptureHelper.app, signed with the owner's Apple Developer ID and notarized, so app-window capture can be tried against production. [D321]Plan and estimate (3 hours)
scripts/verify faston an available build VM and report its output (30 min).Constraints
Use the pre-existing dedicated signing keychain and 1Password service account on the Mac VM only. Never access the login keychain or TCC database. Keep credentials out of argv, logs, and the repository. Do not push to dev/main or deploy.
Started in branch
j124-signed-macosat base7add126405a9205bb817a154af11fad2c438cd45. Plan and 3-hour estimate are in this issue body. I am continuing the existing J124 worktree and will record findings/evidence and the final head/gate output here.Findings: (1) At base
7add126405a9205bb817a154af11fad2c438cd45,scripts/package-releasebuilds the server with default features; the existing #146/J123 receipt confirmsdesktopis absent, so production needs a desktop-enabled server build before the artifact can open app windows. I will call this out in the owner steps rather than silently changing deployment scope. (2) The initial handoff lock probe accidentally created a zero-byte file at/tmp/mac-bench.lockbefore discovering macOS lacksflock; I will clear it under a boundedlockfguard and use the release script's directory lock. The keychain cleanup is complete: the explicitly namedinfraternal-signing.keychain-dbis locked. No login keychain or TCC access occurred.1Password/notarization finding:
opis installed on the Mac VM, and the service-account token file is mode 0600. The service account can see one vault,Apps / Infraternal; its certificate item isApple Certificatesand includesDeveloper ID Application.p12. No App Store Connect API key or Apple ID app-specific password item was found in that accessible vault. After securely unlocking and then relocking onlyinfraternal-signing.keychain-db,notarytool historywith profileinfraternal-notaryexited nonzero. I have not exposed any credential values. I can continue repo work and the Linux gate while waiting for the notary item name/access or a usable dedicated-keychain profile.Lock correction: the stray zero-byte regular file is removed under a bounded
lockfguard. The/tmp/mac-bench.lockpath is clear for the release script's bounded directory lock. Short Mac 1Password metadata checks held/released that lock; no build/signing run has started.Gate setup finding: I checked both VM queues and selected dev-02 (two busy slots vs four on compute01). Its shallow HTTPS clone into
~/worktrees/j124-signed-macosis stuck in uninterruptibleDstate onwait_on_buffer;/proc/850663/ioshowed 20,480 bytes read and zero bytes written after 3m21s. I sent TERM then KILL to this exact clone PID; it remains in the kernel wait. No gate/build has started. I will wait for that I/O to clear and retry with the repo's rsync snapshot option; no other job or worktree has been touched.Progress: added and committed the release script as
b8fe43d82onj124-signed-macos(base7add126405a9205bb817a154af11fad2c438cd45).bash -nandgit diff --checkpass. The required full gate is next; Mac notarization remains blocked on the service account's missing credential item or a usable profile name.Progress update: current local branch head is
eb5939013b4ee977aeb8ce77c2c8876d4a8bab21(base7add126405a9205bb817a154af11fad2c438cd45). The exact tracked source tree plus release script is on compute01;scripts/verify fastis waiting in build-slot queue position 5 (log:~/.cache/codex-scratch/J124/evidence/verify-fast.log). Mac notarization is still waiting for a credential item/access or a usable profile name.Takeover (J124c, Sonnet 5.5) — the previous Codex job stopped on a provider rate limit; I continue from its work, nothing is restarted.
State found:
j124-signed-macosexists only locally (never pushed), headeb5939013, base7add12640(origin/dev is now 29 commits ahead). One commit:scripts/macos-release. Its worktree is clean; no uncommitted work, nothing to rescue.~/worktrees/j124-signed-macos, branchmaster, commitsc63c758/cd42339); itsverify-fast.logthere endsVERIFY_EXIT=0but for a snapshot, not this branch head, so I treat it as no evidence. dev-02 has an empty worktree at the base./tmp/mac-bench.lockabsent, nothing running.Apple Certificates,Infraternal Release Token,Infraternal / Cloudflare Token), active and archived. There is still no notarization credential. Notarization stays blocked on the owner.Plan (own branch
j124c-signed-macosfromeb5939013, then rebased on origin/dev):INFRATERAL_NOTARY_PROFILE; the lock is amkdirdirectory, which does not exclude aflock(2)holder on the same path (macOS has noflockbinary), so use BSDlockfon the file, which is flock(2)-compatible.--skip-notarizemode (smallest change that lets me prove the build and signing now): build, sign,codesign --verify --stricton the Mac. Output is named UNNOTARIZED and is not a release (45–90 min, cold cargo build on 4 cores).scripts/verify faston whichever VM has a free slot (30–60 min with queue).spctl -a, publish pre-release and update #146: only once a credential exists. After it does, this is one command plus Apple's service time.Duplicate: #319 is the earlier copy of this job; I report on #321 only.
J124c progress and blockers — branch
j124c-signed-macos(pushed), head5ff05d5de, base origin/dev7c082bddf. Commits on top of the previous job'sacacdad52:3ecb0a29b,b0168b3a1,16490dc3b,956226ff7,fb08ac57b,5ff05d5de. (Correction to my takeover comment: dev-02's~/worktrees/j124is a checkout at the base with a leftover log, not an empty tree; no J124 process was running.)What the Mac runs showed (all under the lock, secrets never in argv or logs)
identity.sha1in the dedicated keychain is the self-signedInfraternal Dev Signingcertificate (reportedCSSMERR_TP_NOT_TRUSTEDwithout-v). The previous script correctly refused it. The Developer ID is theDeveloper ID Application.p12attachment of 1Password itemApple Certificates; itspasswordfield is the p12 password.16490dc3b): the script now picks the one validDeveloper ID Application:identity by kind and imports the p12 from 1Password when it is missing. Both the p12 password and the keychain password go tosecurity -ion stdin. Tested end to end: I deleted the identity and the script re-imported it by itself.codesign --keychainsaidno identity foundfor a valid identity (dev and Developer ID alike, any hash case, by name, ssh and GUI session, either unlock method). Unified log: it gives up after twoSecItemCopyMatching. With the keychain on the user search list both sign. Fix (fb08ac57b): prepend it for the run and restore the exact original list on exit. Checked after a failed run: list islogin+Systemagain, keychain relocked, scratch removed, lock released.3ecb0a29b): macOS has noflock; the oldmkdirlock would not exclude aflock(2)holder. Nowlockfon/tmp/mac-bench.lock. Tested both directions against Pythonfcntl.flock..cargo/rustc.sh(D243 driver) needs bash 4.3 (local -n); macOS has 3.2. The script setsCARGO_BUILD_RUSTCand equivalent--remap-path-prefixflags (956226ff7). I did not touch the D243 driver.Signing evidence (throwaway run of the script's own signing steps on the two artifacts that build on the Mac; output masked)
So signing with the owner's Developer ID works (hardened runtime, secure timestamp, full chain).
spctlrejects only because the ticket is missing, which is the expected state before notarization.spctl -adoes not pass yet and nothing is stapled.Two blockers I cannot remove (D321 is not done)
A. No notarization credential (owner). The service account sees one vault with three items (
Apple Certificates,Infraternal Release Token,Infraternal / Cloudflare Token); none holds an App Store Connect API key or an Apple ID app-specific password, and the keychain has noinfraternal-notaryprofile. Needed from the owner: an API key (.p8, key ID, issuer ID) in a 1Password item inApps / Infraternal— or runnotarytool store-credentialsthemselves (command in the script header).B. The
infraternalCLI does not build on macOS. The first cargo build stops ininfraternal-shim's build script (unsupported Zig build host). Two separate causes, neither mine to fix:scripts/auth-toolchainmaps only Linux x86_64/aarch64 (macOS reportsarm64, D213), and after that the shim itself uses Linux-only APIs (signalfd, peer credentials,SIGRTMAX,flistxattr,ioctl), which is #320.crates/infraternaldepends on the shim unconditionally and calls it frommain.rs, soremote,desktopon Darwin needs a portability slice first. #146 shows nobody has built the Mac CLI yet: J123 never produced one and earlier jobs hit the same Zig wall. This is days, not the 3 hours of this job, so per the scope leash I stopped instead of porting.Decisions needed (my recommendation)
Gate:
scripts/verify fastis queued on dev-02 at head5ff05d5de; output follows in the next comment. The change is one script, so the Rust rows should be unaffected.J124c finish — NOT DONE: D321 is blocked on two things only the owner/orchestrator can resolve (details in my previous comment).
Branch
j124c-signed-macos(pushed), head5ff05d5de4b4a13b374fa953805ecd59d169415f, base origin/dev7c082bddf. The only changed file isscripts/macos-release; no Rust, UI or protocol code changed.Gate:
scripts/verify faston dev-02 at the head above (verbatim summary)The failing row is
infraternal-shim --lib:session::resize_checks::native_resize_refusal_preserves_peer_and_ptypanicked (session recovery probe failed: exact), 210 passed / 1 failed, in 86.9 s on a heavily loaded VM. I could not reproduce it: the test alone passes 3/3 on unmodified base7c082bddfand 3/3 on my head; the full row command passes 211/211 on base (44.1 s) and 211/211 on my head (44.3 s). So I cannot prove it fails on base; it is a load-dependent failure in a Linux-only area my change does not touch (see also #315, #324). I did not rerun the full gate.Done
security -ion stdin, hardened runtime, secure timestamp):codesign --verify --strictexit 0 forInfraternalCaptureHelper.appandinfraternal-desktop-helper(evidence in the previous comment).lockflock compatible withflock(2)(J80's job on the Mac uses a perlflockon the same file, so the two exclude each other); rustc override for bash 3.2;--skip-notarizemode; header lists prerequisites.Not done
spctl -adoes not pass and nothing is stapled: there is no notarization credential (blocker A).infraternalCLI cannot be built on macOS (blocker B: Zig host inscripts/auth-toolchain, D213; Linux-only shim, #320).Decisions needed (recommendation)
Apps / Infraternal, or run thenotarytool store-credentialscommand from the script header.scripts/macos-release <dir>on the Mac plus Apple's notarization time.State left behind
Mac: my clone, target and output removed; the imported Developer ID removed from the dedicated keychain (the script re-imports on demand); keychain locked; user search list is login + System as found;
/tmp/mac-bench.lockis held by J80, not me;lume's login keychain and TCC were never touched. One thing to know: aspctlline printed the certificate's holder name during my testing; I kept it out of the repo and this issue. dev-02: my worktrees and the previous job's 42 GB target removed; logs remain under~/.cache/codex-scratch/j124c/. compute01: the previous job's gate snapshot in~/worktrees/j124-signed-macosand~/.cache/codex-scratch/J124is still there and is not mine to delete.