Repository navigation
[4/6] Add protection to the Claude harness plugin - #1878
Draft
shellz-n-stuff wants to merge 1 commit into
Draft
shellz-n-stuff wants to merge 1 commit into
shellz-n-stuff wants to merge 1 commit into
Conversation
Co-authored-by: Codex <codex@openai.com> Signed-off-by: Alex Rosenzweig <arosenzweig@squareup.com>
This was referenced Oct 29, 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.
Protected Claude sessions need a pinned runtime and a native boundary that pauses unsafe work while the policy decision is pending. This connects Claude context and tool checks to the shared service, adds native process hook enforcement, and retires sessions before protection changes. Protected state is isolated from ordinary session reuse.
Claude registers its configured models for temporary, tool-free review inference. Runtime, security, and live native protection tests stay with this adapter, together with the exact Claude fixture installer and macOS CI steps. The existing Claude hook/watchdog implementation is preserved; its redesign is deferred.
Code flow
Claude holds native input, tool actions and raw output. Its 350-second native watchdog stops stalled callbacks before the 600-second CLI timeout.
Illustrative flow; checks shown enabled. Source: claude.ts, claude_hooks.rs.
Review and merge bottom to top:
Validation
TypeScript and the Claude suite pass (241 passed, 3 skipped), using the exact pinned native Claude fixture. Native host-process and watchdog tests pass (19 tests). The macOS CI lane adds the pinned Claude installer and live fixture at this layer.
Draft. Human app acceptance remains pending. The stack preserves the original implementation without functional changes from splitting it.