Repository navigation
fix(nuitka): let the hook binary re-launch itself so org skills sync - #466
Merged
Merged
Conversation
Nuitka standalone leaves sys.executable at <dist>/python, so every detached re-launch the hooks start (sync-skills, mcp-diagnostic, refresh-claude-ai-connectors) failed and org skills never synced. The smoke test now fails a build whose SessionStart cannot re-launch sync-skills.
Contributor
Author
|
/review |
vigneshsubbiah16
left a comment
Collaborator
There was a problem hiding this comment.
✅ Security consensus: no issues found. (reviewers: Claude, Semgrep, Gitleaks)
🤖 consensus review · reviewers: Claude, Semgrep, Gitleaks · head 4fd5ae9a · 2026-11-30T15:10Z
anonpran
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
unbound-hook. Sentry AI-GATEWAY-19H:skills sync dispatch failed: [Errno 13] Permission denied: '/opt/unbound/current/unbound-hook/python', about 36k events, mostly org 3493.sys.executable. Nuitka--standaloneleavessys.executableat<dist>/python, which cannot be run. The Nuitka entry shim setssys.frozenandsys._MEIPASSbut notsys.executable.sync-skills(claude-code, codex, copilot, cursor, antigravity),mcp-diagnosticandrefresh-claude-ai-connectors.Changes
sys.executableat<dist>/unbound-hook, as PyInstaller doespackaging/nuitka/unbound_hook_entry.pySessionStarton the built bundle and fails unless thesync-skillschild reaches the gatewaypackaging/scripts/smoke-test.shbinary/tests/test_frozen_contract.pyThe smoke test already runs for both builders in
release-macos-runtime, so a bundle that cannot re-launch itself now fails the release.Checked
On a local Nuitka 2.8.10 build (the release script's options, x86_64 Linux, pinned toolchain):
smoke-test.shon the built bundle/v1/hooks/skills/syncrequestSessionStartskills sync dispatch failed: [Errno 2] No such file or directory: '<dist>/unbound-hook/python', same for the connector refreshclaude -psession, hooks set to the built binary, local gateway and backend with one skill policy~/.claude/skills/unbound-<slug>/written with the policy body and.unbound-managed; gateway logs the reconcile planThe e2e session used a mock model, so no tokens were spent. The error is ENOENT on Linux and EACCES on macOS; the cause is the same path.
Notes for review
publishunchecked, buildernuitka) is the first macOS run of the new smoke step.__compiled__exists.binary/testsfail locally when run as root, onstagingtoo. They are unrelated.Generated by Claude Code
Unbound Review · Score 5/5 (no findings) ·
4fd5ae9sys.executable, which Nuitka leaves at<dist>/python, a path that cannot run. The PR points it at<dist>/unbound-hookinstead, which is what PyInstaller does and what the discovery entry already does (packaging/unbound_discovery_entry.py:43). The build names the hook binaryunbound-hook(`packaging/scripts/build-nuitka.sh:166findings: 0 P0 · 0 P1 · 0 P2 (top 5 P0/P1 inline) · engines: codex ✅ · claude ✅