feat: implement external verification approvals#2
Open
Guardiola31337 wants to merge 9 commits into
Open
Conversation
Guardiola31337
force-pushed
the
agentkit/external-resolution-host-api
branch
from
May 29, 2026 16:40
ea2f8d5 to
f986c36
Compare
Guardiola31337
force-pushed
the
agentkit/external-resolution-host-api
branch
4 times, most recently
from
June 14, 2026 14:52
2889da2 to
678c954
Compare
9 tasks
Guardiola31337
force-pushed
the
agentkit/external-resolution-host-api
branch
from
July 26, 2026 04:12
cd2ea14 to
dfcb0e8
Compare
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.
Summary
@worldcoin/idkit-core4.2.2 and complete only the exact host-issued attempt.Invocation-time policy
AgentKit decides from the concrete
before_tool_callinvocation whether to skip the gate, offer onlyallow-once, or offerallow-onceplus exact-session trust. Once OpenClaw creates an attempt, the choice is immutable and AgentKit cannot widen it during completion.Verification
git diff --checkpnpm buildpnpm test:hitlpnpm test:openclaw-hitl -- humanpnpm test:openclaw-hitl -- delegationpnpm pack:checkfeat/external-verification-runtime; #113517 is intentionally the smaller contract-only first PR.$autoreview --mode localpass was TruffleHog-clean with no accepted/actionable findings (0.94 confidence).Physical production World App proof
The flow was tested in a disposable OpenClaw home and isolated Gateway/TUI with a connected physical Pixel 3 (Android 12) running production World App 1.0.121.
allow-once,succeeded,plugin-completion, andcompletion_applied=1.No World proof, RP signing key, broker credential, connector token, or user identifier is stored in the repository or included in this PR.
Behavior addressed: AgentKit can attest an external ceremony only through the exact OpenClaw host-issued attempt while preserving host ownership of authorization and lifecycle state.
Real environment tested: Source AgentKit and OpenClaw in an isolated Gateway/TUI, physical Pixel 3, Android 12, and production World App 1.0.121.
Exact steps or command run after this patch: Start the isolated Gateway/TUI, prompt OpenClaw to run a protected
printfmarker, select Verify once or Verify and trust, scan the generated QR in World App, approve the requested proofs, then inspect terminal output and the proof-free SQLite approval/attempt records.Evidence after fix: The physical app completed the ceremony, the blocked command resumed only afterward, same-session trust reused exactly once without creating another approval, and a new session was gated independently.
Observed result after fix: Allow-once, denial, expired-request retry, physical session trust, same-session reuse, and cross-session isolation all behaved as the RFC requires.
What was not tested: No package publish, release, or version bump was performed. Gateway-TLS delegation remains intentionally unsupported and fails closed; human World QR approval works through the configured hosted production broker.
Tracking issue: openclaw/openclaw#82336