Repository navigation
Rewrite the managed host runtime in Go - #108
Draft
adit-chandra wants to merge 2 commits into
Draft
adit-chandra wants to merge 2 commits into
adit-chandra wants to merge 2 commits into
Conversation
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.
Motivation
Move the installed managed host runtime to Go so enrollment, persistent state, collection, and hook supervision have explicit contracts in one compiled implementation. Generated Claude, Codex, and Cursor managed hooks no longer need to locate Python or Node. The toolchain compiler and adapter for user-authored portable Python hooks remain Python.
Changes
host-runtime/.tests/reference_runtimesolely as a frozen migration reference.Validation
All ten CI jobs passed at
bb8121c52b5a9bd791a26d3807dca8ec05a98057:go vetpassed on Linux, macOS, and Windows; race checks passed on Linux and macOS.PATHand plugin paths containing spaces.Local macOS arm64 validation also passed the Go race tests, generated-plugin smoke, full Python suite, and independently installed wheel/source distribution smoke. Linux/Windows arm64 execution and real desktop dogfooding remain outstanding.
Rollout
Claude managed hooks use explicit Bash shell form, requiring Git Bash on Windows. Codex uses its PowerShell command override; Cursor uses a batch launcher. Windows CI executes these actual generated command forms.
After merge, the new native release workflow must publish the matching source-addressed bundle before telemetry-enabled compiler builds can resolve it without a local override. This PR does not deploy a worker or publish a toolchain release. Production worker acceptance remains separate from the local and CI checks.