Repository navigation
feat(native): select call-control backend without retiring the helper - #53
Conversation
Keep the injected helper and out-of-process capture in the native archive. Require actual initialization after security checks before choosing injection, and select capture when the target's current policy rejects it. Document the host admission boundary and the limits of SIP-only compatibility checks. Fix explicit SIP debugging restriction precedence and cover loader outcomes, private credential handling, bounded subprocesses, and staging cleanup. Co-authored-by: Dallin Romney <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 30, 2026, 9:59 PM ET / October 1, 2026, 01:59 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds a native command that checks macOS security state, tries to initialize the FaceTime or Phone helper when eligible, and otherwise selects out-of-process capture; it also updates injector diagnostics, checks, and documentation. Merge readiness⛔ Blocked before merge - 7 items remain Keep this PR open. The new selector misses an existing FaceTime helper target, the coordinated OpenClaw host PR still proposes a capture-only contract, and the privileged attach path lacks final-effect identity proof. Priority: P2 Review scores
Verification
How this fits togetherThe native FaceTime package supplies a call-control helper and a Core Audio capture executable. The OpenClaw plugin owns caller admission and call lifecycle, and would consume the new backend choice during setup. flowchart LR
A[Setup request] --> B[Native backend selector]
B --> C[Mac security checks]
C --> D{Helper eligible?}
D -->|Yes| E[Verified helper load]
D -->|No| F[Out-of-process capture]
E --> G[OpenClaw plugin admission]
F --> G
Decision needed
Why: The two open branches describe incompatible end-to-end call-control contracts; selecting and sequencing that contract requires the owners of both repositories. Before merge
Findings
Agent review detailsSecurityNeeds attention: The privileged load path checks a process identity before staging and attaching, but final-effect identity for the LLDB target remains unproven. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the conversation-service target, bind target identity to the final helper load, and coordinate a host setup path that consumes the selection and authenticates the helper before call control. Do we have a high-confidence way to reproduce the issue? Yes for the review finding: source shows the existing conversation-service fallback and the selector's app-only lookup when that service is the available target. No live macOS run of that case is recorded. Is this the best way to solve the issue? No, not yet. Keeping both native artifacts is coherent, but the selector needs the existing target fallback, final-effect identity assurance, and a compatible host contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6bdd4f73a26f. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
On stock macOS, protected-process attachment is unavailable; on other systems, successful attachment can still end in AMFI/library-validation rejection. Removing the injected helper for every system loses working private call control. This replacement for #50 retains both native artifacts and adds
facetime-audio-capture --select-backend [--app FaceTime|Phone].The selector checks SIP and existing Developer Tools authorization, verifies the running target's Apple identity, and selects injection only after a bounded load confirms helper initialization. Every unavailable state selects out-of-process capture. It does not modify security policy. The private IPC key is passed only through the existing one-use sidecar; the Gateway must still authenticate the helper and admit callers. The seven-file archive and native protocol remain unchanged.
Apple documents debugger restrictions and library validation separately. Full SIP disablement alone is not evidence that the release dylib will load. Backend documentation links Apple's sources, explains the runtime decision and operator-assisted capture contract, and records the live-proof limit. The canonical OpenClaw plugin owns lifecycle/admission and must consume this new native operation; this PR does not alter an installed plugin's policy. The coordinated host work referenced by #50 is openclaw/openclaw#158392.
Also fixes a reproduced parser error: an explicit
Debugging Restrictions: enabledwas ignored when a disabled SIP summary appeared elsewhere. Synthetic regression cases now verify explicit restrictions, malformed/contradictory output, full disablement, custom configuration, command failure, loader rejection, and successful initialization.Validation:
nice -n 19 swift build --package-path native -c debug -j 2: passed.nice -n 19 bash scripts/test-native.sh: passed, including selector policy, credential/timeout fixtures, PCM pipe-loss and process-generation checks.scripts/*.sh.out-of-process/sip-enabled; invalid app returned exit 2. No injection or system security changes were performed.4ae4d55ce4e3c8b287caacb5166bc4e596c1cd69: CI passed workflow lint, all three supported Node.js harnesses, native checks, capture build, and archive build/verification. CodeQL passed all four languages; the aggregate CodeQL check also passed.No disabled-SIP/relaxed-AMFI live call is claimed. Both selector branches have synthetic regression coverage; actual permissive-system loading remains OS-dependent. Thanks @RomneyDa for identifying the platform-library-validation failure and developing the capture-only proposal. This preserves that fallback without retiring the helper.
Requires the repository's code-owner approval; no ruleset bypass or release is part of this PR.