Skip to content

test(qa): cover direct tool invocation - #119025

Merged
vincentkoc merged 1 commit into
mainfrom
test/qa-direct-tool-invoke
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test/qa-direct-tool-invoke

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The canonical QA portfolio did not have first-class product proof for direct
Gateway tool invocation across both public transports.

Why This Change Was Made

Adds one full-Gateway E2E test and one QA scenario claiming exactly:

  • tools.direct-tool-invoke-api-invocation

The proof exercises the same safe real agents_list core tool through HTTP
POST /tools/invoke and authenticated WebSocket RPC tools.invoke. It also
checks:

  • missing and invalid HTTP tokens are rejected before tool execution
  • RPC callers without operator.write are rejected before tool execution
  • shared-secret HTTP restores operator scope and owner trust despite a narrower
    caller-provided scope header
  • malformed JSON, missing tool names, and unavailable tools return structured
    public errors
  • a real before_tool_call hook produces typed RPC requires_approval and HTTP
    tool_call_blocked outcomes
  • idempotency keys produce stable tool-call IDs without claiming invocation
    deduplication

No production code, existing scenario, taxonomy, or QA harness changed.

Repair Shape

  • Root cause: the direct-invocation product contract was split across HTTP, RPC,
    shared dispatch, authorization, and hook tests without one executable
    product-level scenario.
  • Architectural owner: Gateway direct tool invocation.
  • Canonical fix: one full-Gateway test at the public HTTP and WebSocket
    boundaries, registered by one exact QA scenario.
  • Removed paths: none.
  • Production LOC delta: +0/-0.
  • Sibling coverage: HTTP and RPC success, authz, structured failures, policy
    hooks, and stable call-ID derivation share the same proof.

Evidence

  • Exact head: 9eac32e87001495443ca42908970007436f259bd
  • Exact QA scenario after final rebase: 1 scenario, 1 passed, 0 failed, 0 skipped
  • Exact primary coverage: tools.direct-tool-invoke-api-invocation
  • Focused Gateway E2E: 1 file, 1 test passed
  • Formatting check: passed
  • git diff --check: passed
  • Privacy scan: passed
  • Production LOC delta: +0/-0
  • Prior head e678974ba81d499621c65054bc5796777e927805: full CI passed,
    including all four QA smoke shards and real-behavior proof
  • Blacksmith Testbox attempts were unavailable at the delegated command stage:
    • tbx_01kz4z671gyync273d3etq83pc: silent, stopped after 16m54s
    • tbx_01kz5076sph2mhrw7anqq12mwc: silent, stopped after 9m51s
    • changed-gate lease tbx_01kz50y90r87xtj8yeqs1wev6v: silent, stopped
  • Packaged private-QA build was not run locally because the rebased Codex
    worktree requires dependency reconciliation and repo policy forbids
    pnpm install there.
  • Current-head CI passed: 69 successful, 23 skipped, 0 pending or failed.
  • Direct Codex gpt-5.6-sol high autoreview was clean; patch correctness
    confidence 0.99.
  • ClawSweeper exact current-head dispatch passed. No public ClawSweeper review
    comment or Rank-up moves: list was emitted before the repo-native merge.
  • Squash landed as 6419711eb3cbc713a24b100b2efe52e77e9c8499.

AI-assisted.

@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 00:31
@vincentkoc
vincentkoc force-pushed the test/qa-direct-tool-invoke branch from e678974 to 9eac32e Compare August 4, 2026 00:41
@vincentkoc
vincentkoc merged commit 6419711 into main Aug 4, 2026
100 checks passed
@vincentkoc
vincentkoc deleted the test/qa-direct-tool-invoke branch August 4, 2026 01:01
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main: (54 commits)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  test(qa): prove gateway chat RPCs (#118988)
  test(ui): cover Control UI auth transports (#118866)
  fix(auth): do not admit ambient environment credentials behind declared profiles (#118458)
  test(ui): cover operator administration flows (#118836)
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* commit '25e3b6c9b79dadb912195d86fbff968602d58798': (54 commits)
  fix(cli): honor local port in gateway call (#119046)
  fix(gateway): honor external status target context (#119015)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(xai): cover playback mark overflow
  fix(xai): bound realtime playback marks
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant