Skip to content

Add OpenClaw harness mapping and recorded cases (#1126) - #1185

Open
SijanBhandari17 wants to merge 14 commits into
Cygnux-Labs:mainfrom
SijanBhandari17:openclaw-harness
Open

SijanBhandari17 wants to merge 14 commits into
Cygnux-Labs:mainfrom
SijanBhandari17:openclaw-harness

Conversation

@SijanBhandari17

@SijanBhandari17 SijanBhandari17 commented Nov 28, 2026 •

Copy link
Copy Markdown

What and why

Adds experimental OpenClaw support to Tracekit so tool calls can be decided before they run and their outcomes can be recorded. Related to #1126.

  • Maps OpenClaw’s shell, file, patch, and web tools to Tracekit’s tool names. Uses sessionId for the run and toolCallId to pair calls with results.
  • Adds 12 redacted fixtures in tests/data/harness/openclaw.json, based on captured events and observed argument shapes.
  • Generates an OpenClaw plugin and adds support for tracekit init, doctor, and uninstall. The plugin blocks a pre-tool call if the Tracekit hook cannot start or exits nonzero. A post-tool hook failure is reported without blocking.
  • Records the Code Mode wrapper as code_mode and decides each inner tool call separately. Maps process send-keys and submit to typed Bash calls so the v2 policy can hold them for approval.
  • Adds OpenClaw’s plugin and config paths to TK-F009 and TK-F015, documents setup and limits, and refreshes the E17 and E21 results.

How I ran it as a user

I recorded before_tool_call and after_tool_call events from a live OpenClaw 2026.11.10 (6ea542f) Gateway on Linux with Node 24.22.3, using a recorder plugin.

I verified the generated Tracekit plugin’s install, discovery, and removal in a temporary home:

tracekit init --dev --v2 --agent openclaw --no-witness
tracekit doctor --json
tracekit uninstall --agent openclaw

Init created index.js, openclaw.plugin.json, and package.json. Doctor found the plugin and reported the default 15-second hook timeout. Uninstall removed the plugin. I also ran the v2 hook directly and confirmed a held call exited successfully after approval.

Current limits and review points

  • Init writes the user-level plugin package. Refreshing OpenClaw’s registry and configuring its hook timeout are manual steps documented in the OpenClaw setup guide.
  • Unrecorded terminal actions do not yet get an action-specific hold. The v1 hook does not apply v2’s typed approval behavior.
  • The direct-hook test does not replace the remaining live Gateway check: show a denied call blocked, a held call running after approval, and the calls appearing in tracekit last.

Checks run

  • GitHub CI passed on 55b88bb4.
  • Focused harness, installer, doctor, policy, and docs tests passed. The Node regression test exercises the generated plugin with a missing Python executable and checks both callbacks.
  • Regenerated E17 and both E21 results and verified them using CI’s comparisons.

Checklist

  • make check run locally (GitHub CI and the focused checks above passed).
  • Regression tests cover the change.
  • User-visible changes are described above.
  • Setup and current limits are documented.
  • Every commit is signed off; DCO passed.

Security invariants

  • The plugin does not hold signing keys or assign sequence numbers.
  • The signer and verifier do not newly trust agent-provided isolation, fail mode, gap or tamper records, or approval identity.
  • The signer still handles signed gaps; the plugin reports hook launch failures.
  • No verification code is shipped inside a bundle.

Evidence format

  • This change does not touch the frozen v1 or published v2 evidence formats.

Maps OpenClaw's built-in tools to Tracekit's, with cases recorded on OpenClaw 2026.11.10 (6ea542f). The plugin generator, installer, docs and policy pack follow after review.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

Thanks, @SijanBhandari17. The mapping follows the Devin and Kiro patterns, and blocking a call that names no path, URL or command is the right default. CI is set to run; I'll post a full review once it has.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 CI ran: the failures I read all come from one gap. config_path() in tracekit/agent_hooks.py (line ~2167 on main) maps each harness to the hooks file tracekit init writes and tracekit doctor reads, and it has no openclaw entry, so it raises KeyError: 'openclaw'. That breaks:

  • tests/test_content_vault.py::Doctor (test_doctor_reports_the_vault, test_doctor_counts_runs_still_retained_with_the_vault_off, test_doctor_validates_the_section_as_the_signer_does);
  • tests/test_install_files.py::HarnessFileWrites for openclaw.

Add OpenClaw's entry: the path OpenClaw reads its hooks from, in a project and in the home folder, with a comment saying where that comes from (as the Copilot and Kiro entries do). Then those tests should pass. I'll do the full review once CI is green.

Cygnux-Labs#1126)

config_path points at ~/.openclaw/extensions/tracekit/index.js (OpenClaw has no project scope); install writes the plugin folder (index.js with the marker, manifest, package.json) and refuses a folder that isn't Tracekit's; doctor warns when plugins.entries.tracekit.hooks.timeouts.before_tool_call is under the approval wait. Enabling the plugin and setting that timeout come next.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
…-Labs#1126)

The wrapper carries its JavaScript as a command and no pack named it, so the laptop policy held every OpenClaw tool call as an unmapped tool given a command (TK-A062). It reaches nothing without a tool call of its own, each of which is decided as it comes.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
…in (Cygnux-Labs#1126)

A held call's hook waits for its approval only when TRACEKIT_APPROVAL_WAIT is set, which the plugin did not do, so a held call was blocked at once. Tested with the hook run directly: it holds, waits, and exits 0 once approved.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
…ygnux-Labs#1126)

TK-F009 and TK-F015 now hold writes to ~/.openclaw/extensions/ and openclaw.json, not its workspace. docs/coding-agents.md gains an OpenClaw section and docs/limits.md the rows for what was recorded on 2026.11.10: Code Mode's call budget and the node executor, /new, optional results, and the tools not recorded.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
…nux-Labs#1126)

Writes and deletes of ~/.openclaw/extensions/ and openclaw.json are held in every pack and engine; the workspace, reads and near names are not.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks: config_path() now has the openclaw entry, which was what broke CI last time. Its new run is waiting for a maintainer's approval. When it's green and you mark the PR ready, I'll run the tests in our sealed container and review the final head.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 CI ran on 347af9e6. Three things are red, all from this branch's changes:

  1. tests/test_docs.py::DocTableCells: rows 153 to 157 of docs/limits.md don't have as many cells as the table's header. Each row needs the same columns as the rows around it, with any | inside a cell escaped.
  2. tests/test_harness_hooks_v2.py::Installer::test_a_hook_that_cannot_start_blocks_only_a_tool_call fails with JSONDecodeError. It installs every harness in agent_hooks.HARNESSES and reads each one's hook file as JSON, so OpenClaw's installed file isn't what it expects. Either the installer writes the shape the test reads, or OpenClaw joins the exceptions listed there (OpenCode, Antigravity, Cline). In that case, add a test of OpenClaw's own behaviour when the hook can't start, the way those three have one.
  3. Offline evals: eval/results/e17_policy_corpus.json's policy_hash no longer matches, because the branch changes coding.yaml and dev.yaml. Merge main first, then run python eval/e17_policy_corpus.py and commit the result.

Also, a heads-up on direction: a change to the policy packs is in progress. Most rules will record and label a call instead of holding it, and only a short list of irreversible actions will still be held. Your tool mappings aren't affected by that, but expect one more merge of main before this lands. Thanks for the work on this.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks for the quick push. CI on 0e9c0b0c is waiting for a maintainer's approval; once it has run, I'll look at the results here.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks, the docs table and the installer test are green now. One left: Offline evals still fails, now on eval/results/e21_robustness.json, whose policy_hash changed with your pack edits, the same as E17's did. After merging main, regenerate both E21 files and commit them:

python eval/e21_policy_robustness.py
python eval/e21_robustness.py

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks, CI on 55b88bb4 is waiting for a maintainer's approval; I'll look at the results once it has run.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 CI is all green on 55b88bb4, thanks. When you're happy with it, mark the PR ready for review, and I'll review the final head and run the tests in our sealed container. One heads-up: the policy packs (coding.yaml, dev.yaml) are changing on our side soon (#604: most rules record and label instead of holding), so if that lands first you'll need one more merge of main. Your tool mappings shouldn't conflict in substance.

@SijanBhandari17
SijanBhandari17 marked this pull request as ready for review November 29, 2026 14:24
@SijanBhandari17

Copy link
Copy Markdown
Author

I've marked it ready for review.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks. The review of the final head and the sealed test run have both started; I'll post what they find here.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks for the work here. The plugin itself is solid. It never fails open: it blocks on a spawn error, a non-zero exit, a signal or the timeout. It blocks only the tool call, never OpenClaw. The approval wait sits inside the kill, and the installer refuses a folder that isn't Tracekit's and backs up what it replaces. E17 and E21 didn't move. These need fixing before it merges, because each lets a call go through unread or unrecorded:

  1. exec is taken for Code Mode on the agent's own keys (agent_hooks.py:1100-1108): any exec whose command equals its code becomes code_mode, class app (dev.yaml:65), which no shell rule reads. So exec({command: "rm -rf ~", code: "rm -rf ~"}) with Code Mode off would be recorded as allowed without being read, if OpenClaw's plain exec accepts the extra key (TypeBox objects do by default). Make the decision match what runs: when the hook says code_mode, have the plugin drop command from the call (before_tool_call can return params); otherwise decide it as Bash. Add the case to tests/test_agent_hooks.py:556.
  2. Relative paths get past the new F009/F015 protection. OpenClaw's default workspace is ~/.openclaw/workspace, inside the protected folder, and the plugin sends no working directory, so write({path: "../openclaw.json"}), edit({path: "../extensions/tracekit/index.js"}) and exec("echo {} > ../openclaw.json") match neither coding.yaml:1438 nor :1479. Have the plugin send the workspace folder, and make read/write/edit/apply_patch paths absolute against it in tool(), with tests for the relative cases.
  3. process is missing from TYPED_INTO (agent_hooks.py:339), so each process write is decided alone: "echo hi; r" then "m -rf ~\n" each pass, and the shell runs rm -rf ~. Add ("openclaw", "process"): "sessionId", as Codex, Devin, Copilot and Antigravity have, and a test for the split case.
  4. Nothing is recorded after init until OpenClaw's plugin registry is refreshed, and nobody is told. Have init print the manual steps, and doctor check plugins.enabled, allow, deny and entries.tracekit.enabled, so a person sees when OpenClaw isn't recording. The plugin comment at agent_hooks.py:2604 says init raises the timeout to 600000 ms, which it doesn't: fix the comment or the code.
  5. Text typed through terminal is never read. The comment at agent_hooks.py:276 says tool() names terminal calls by their action, but there's no terminal branch. Map it like process write, or deny it in the hook (as Cursor's WriteShellStdin is) until it's recorded.

Fine as a follow-up PR, after the pack changes in #604 land (they touch the same files):

  • the agent can switch Tracekit off through OpenClaw's own commands (openclaw plugins disable|uninstall tracekit, openclaw config set plugins.entries.tracekit.enabled false, OPENCLAW_STATE_DIR=… openclaw agent --local): add OpenClaw to TK-A054, TK-A069 and TK-A070, and $OPENCLAW_STATE_DIR to TK-F015, as was done for Hermes;
  • map sessions_spawn to Task, so a sub-agent shows as one, and add a limits row saying OpenClaw records tool events only;
  • rename code_mode to an OpenClaw-only name, so another app's tool of that name keeps TK-A062;
  • the stale skip reason at tests/test_harness_hooks_v2.py:1794, the recorded payloads' cwd: "/w" (the real plugin sends none), --project writing to the user's folder silently, and doctor reading OpenClaw's JSON5 config as strict JSON.

Ask here if any of these doesn't match what you saw in OpenClaw 2026.11.10. A couple depend on how OpenClaw itself behaves, and your recordings are the ground truth.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks. CI on this commit is waiting for a maintainer's approval; once it has run, I'll check each point of the review against the change and run the tests in our sealed container.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks. I checked the five points against 642959e2, and each one is in, with tests:

  1. Code Mode is taken only on the Gateway's code_mode_exec, and the plugin drops command from what runs.
  2. Paths and exec's workdir resolve against the workspace, and a relative call without one is blocked.
  3. process is in TYPED_INTO, with the split test.
  4. init prints the steps, and doctor reads enabled, allow, deny and the entry.
  5. terminal is blocked except list and close.

Its tests pass in our sealed container: the agent hooks, harness hooks, install files, signer policy, doctor and docs files, with no failures.

Before it merges, I need you to confirm two of these on a real OpenClaw 2026.11.10 Gateway. Both fail closed when OpenClaw doesn't send what the plugin reads, which is safe, but it would block every Code Mode call or every plain exec. That makes Tracekit unusable with OpenClaw, which we don't want:

  • toolKind: "code_mode_exec" on before_tool_call's event or context. Without it, every Code Mode call names no command and is blocked.
  • api.runtime.agent.resolveAgentWorkspaceDir(api.config, ctx.agentId). Without it, every exec without an absolute workdir, and every relative path, is blocked.

Could you post what the hook receives on that Gateway (redacted), for one Code Mode call, one plain exec and one write of a relative path? The tool_kind and cwd fields are the ones that matter.

Three small things too:

  • tests/data/harness/openclaw.json was edited by hand in this commit: tool_kind added, command removed, a workdir added. The recording is our ground truth for what OpenClaw sends, so please re-record those cases from the Gateway. If you can't, move the hand-made ones into the test as made-up cases, apart from the recording.
  • A docs/limits.md row for OpenClaw: ask before the agent turns Tracekit's plugin off through OpenClaw's own commands #1215: until that lands, an agent can turn the plugin off through OpenClaw's own commands. Say it, with what to do (for now, tracekit doctor's D-OPENCLAW-PLUGIN shows when the config turns it off, and the record shows the openclaw command that did it), and link OpenClaw: ask before the agent turns Tracekit's plugin off through OpenClaw's own commands #1215.
  • tests/test_harness_hooks_v2.py:1812 still skips openclaw with "its installer comes after the draft", but the installer is in this PR. Include it, or give the real reason.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@SijanBhandari17

Copy link
Copy Markdown
Author

Thanks for the review. I ran the updated plugin on a real OpenClaw 2026.11.10 (6ea542f) Gateway on Linux, using a scripted local model. /w is the redacted configured workspace.

  • Code Mode: Both the Gateway event and context had toolKind: "code_mode_exec". Tracekit received that value as tool_kind, with code present and command removed from the forwarded parameters.
  • Plain exec and relative write: Neither payload contained tool_kind.
  • Workspace: The Gateway context supplied no cwd value for any of the three calls. The SDK resolver supplied the configured workspace, which the plugin forwarded as cwd.

Relevant fields from the three Tracekit pre-tool payloads:

[
  {
    "tool_name": "exec",
    "cwd": "/w",
    "tool_input": {"command": "pwd"}
  },
  {
    "tool_name": "write",
    "cwd": "/w",
    "tool_input": {
      "path": "review-smoke.txt",
      "content": "Tracekit review smoke.\n"
    }
  },
  {
    "tool_name": "exec",
    "tool_kind": "code_mode_exec",
    "cwd": "/w",
    "tool_input": {
      "code": "return await read({path: \"review-smoke.txt\"});",
      "title": "Read the smoke note"
    }
  }
]

All three pre-tool hooks exited 0 and all three calls reached the Gateway’s after hook without a reported error. pwd exited 0, and I verified that the relative write landed in the configured workspace.

I also restored the original recording byte for byte, put the synthetic exec payloads in a separate test, documented #1215, and included OpenClaw in the installer lifecycle test. The four focused tests passed.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks, that settles both: the Gateway sends toolKind for Code Mode and the SDK's resolver gives the workspace, so neither path blocks a normal call. The recording is back to its original bytes and the made-up payloads have their own test. CI on df77f694 waits for a maintainer's approval; after it's green I'll run the sealed tests and do a final read, and then it goes to merge.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 The one red job isn't your change: the offline evals' latency gate (the dev pack on the fallback regex engine at 15.16x the reference, against a 15x line) is at its edge on every PR today, and we're fixing that on our side. I've re-run it.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 The re-run gave the same: the dev pack on the fallback regex engine at 15.09x the reference against a 15x line, with the other five pairs at 12-14x. That pack was already at the line on main, and this PR's new rules tip it over every time, so a re-run won't help; it isn't something to change in your PR. We're speeding that path up now; once that lands on main, merge main and CI should pass. The review is otherwise done.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 An update on the latency gate: no quick win in rule matching (an index made the slowest calls slower), so we're speeding up the shell parse every decision pays for, with every decision checked identical. It'll take a little longer; the PR is otherwise ready, so nothing to do on your side meanwhile.

@SijanBhandari17

Copy link
Copy Markdown
Author

@LoopGlitch26, thank you for the update.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Good news on the red speed job: #1231 replaced that gate on main. CI no longer measures the policy decision against a fixed multiple of a reference job, which moved with the runner. It now compares it with main's own speed on the same machine, so a change that doesn't touch the policy engine passes. Please merge main into your branch so CI runs with the new check. Once it's green, I'll pick up the review from there.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks for merging main. CI on 73a58b23 waits for a maintainer's approval. Once it's green, I'll pick up the review.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks. We reviewed 73a58b23 hard, and a lot of it holds:

  • a non-zero exit blocks the call, and a hook that throws or times out blocks it too;
  • every hostile payload we tried fails closed (null or list input, missing ids, non-JSON, a raw event name);
  • across 3,913 calls x 10 packs x 2 engines, the pack edits change no decision on existing calls;
  • the new holds on .openclaw/extensions and openclaw.json don't fire on files in the workspace.

Before merge, three things make the record wrong:

  1. Failed calls are signed as succeeded. On tool.execute.after the mapping always sets PostToolUse with tool_response (agent_hooks.py:1519), and nothing maps an error to PostToolUseFailure, as the Devin and OpenHands branches do. Exec with {error: "Command exited with code 1"}, an apply_patch with details.status: "error" and an exec with no result at all were each recorded status: ok. Please send error on its own, map it (and details.status error or failed) to a failure, record a missing result as not ok with the reason, and test the signed status.
  2. Code Mode is classed app (dev.yaml), so it runs unlabelled. OpenClaw's own docs say the default node:vm executor isn't a security boundary: "module guards do not make node:vm a security boundary" (tools/code-mode/internals.md). By the rule we agreed on Agent harnesses: a plugin for OpenClaw #1126, if an escape works the wrapper is decided as code. Since tool() already drops command for Code Mode, please drop the code_mode: app mapping and its test, regenerate E17/E21, and add a limits row saying Node is the default executor and recommending tools.codeMode.executor: "quickjs". As it stands it also turns any tool named code_mode with a command from held to allowed.
  3. Exec's workdir: "~" is expanded, but OpenClaw takes it literally ("Paths are literal, so ~ is not expanded", tools/exec.md). So exec({workdir: "~", command: "echo '{}' > ../../openclaw.json"}) records the wrong directory and is allowed, where as OpenClaw runs it the same call is held (TK-F015). Please keep ~ literal for exec's workdir (apply_patch's ~/ expansion is right) and add a test.

Also needed:
4. v1 doesn't hold send-keys or submit for OpenClaw (run() denies typed input in v1 only for openhands): add openclaw there, or a limits row.
5. Limits rows for what isn't covered: another plugin's params rewrite after ours (OpenClaw's "last returned params wins"), relative paths resolved against the agent's workspace rather than a session's own cwd, and the Codex app-server runtime's tool names.
6. rm -rf ~/.openclaw and mv ~/.openclaw … are only flagged, where rm -rf ~/.codex is held: match the bare .openclaw folder in TK-F015.

Small:

  • api.on(…, {timeoutMs: 600000}) could replace the manual openclaw config set step;
  • doctor says "pre-tool timeout 15000 ms" when it couldn't read openclaw.json (OpenClaw's config is JSON5);
  • Mapping.test_openclaw skips both exec cases, and their expectations no longer match;
  • the E17 result changed regex@2026.9.29 to your local 2026.11.25: please revert that line;
  • send-keys could map C-m as gptme does.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

Thanks @SijanBhandari17. We are reviewing 407d5268 now against the six items and will reply here.

@LoopGlitch26

Copy link
Copy Markdown
Member

@SijanBhandari17 Thanks. 407d5268 does all six from last round and the small ones. We checked each with real runs (the plugin under Node, a dev signer, the signed record) and with mutations:

  • A failed call is signed ok:false.
  • Code Mode is no longer mapped.
  • ~ is literal in exec's workdir.
  • v1 holds send-keys and submit.
  • TK-F015 holds the bare .openclaw folder, and over 3,923 calls × 10 packs × 2 engines no existing decision changed.
  • When we undo any of these, a test fails.

Before merge, the hook still reads some paths differently from OpenClaw, so a call OpenClaw runs on a protected file is decided as another file (we read OpenClaw's 2026.11.10 source for each):

  1. @ and file:// paths. OpenClaw strips one leading @ (sandbox-paths.ts) and turns a file:// URL into a path with fileURLToPath, which percent-decodes it (path-utils.ts; used by read, write, edit and apply_patch). _openclaw_path does neither. So write @../openclaw.json and write file:///…/.openclaw/openclaw%2Ejson are allowed where ../openclaw.json asks (TK-F009). edit @.env is only flagged where .env is denied, and read file:///…/%2Essh/id_rsa is flagged where the plain path is denied (TK-S004). Please resolve paths as OpenClaw does before deciding, with tests for @../openclaw.json, @.env, file:///…/openclaw%2Ejson and file:///…/%2Essh/id_rsa.
  2. exec's workdir is trimmed by OpenClaw (normalizeOptionalString → .trim()), not by the hook. {"workdir": " /", "command": "rm -rf etc"} is signed with workdir <workspace>/ and allowed, while "/" is denied (TK-D014). Please trim it the same way, with that test.
  3. process send-keys with {literal: "rm -rf / --no-preserve-root", keys: ["Enter"]} is decided as the command "\n" (held TK-SHELL-PARSE). The same text through process write is denied (TK-D004). OpenClaw sends literal, then hex, then the named keys (docs/tools/exec.md). Please decide on that text in that order.
  4. return { params } for Code Mode does nothing. OpenClaw lays the hook's params over the originals (mergeParamsWithApprovalOverrides), so command stays. Returning params at all can also undo another plugin's rewrite. Please drop it, and fix the code comment and the "removes command" line in coding-agents.md.
  5. Failure shapes. OpenClaw sends error only when it can pull out a message. It counts details.status of killed, blocked or upper-case FAILED, details.ok: false and timedOut: true as failures (resolveToolResultFailureKind), but the hook signs those ok:true. Please mirror its check, or add a limits row naming which result shapes are signed ok.

Smaller:

  • Doctor's fix for a short timeout in openclaw.json says tracekit init --dev --v2 --agent openclaw, which doesn't touch that file. Please tell the person to raise or remove plugins.entries.tracekit.hooks.timeouts.before_tool_call (or hooks.timeoutMs). The override key in coding-agents.md needs the full plugins.entries.tracekit.hooks.… path too.
  • Please name OpenClaw in docs/what-tracekit-records.md, docs/integrations.md, docs/support.md, the agent table in coding-agents.md and doctor.md's D-HOOKS-TIMEOUT row.
  • Please check whether OpenClaw strips a trailing </arg_value>> from a param (wrapToolParamValidation) before or after before_tool_call. If before, the hook needs to strip it too.

CI hasn't run on this head yet (it needs a maintainer's approval); it will once these are in.

Signed-off-by: Sijan Bhandari <uhisijan@gmail.com>
@LoopGlitch26

Copy link
Copy Markdown
Member

Thanks @SijanBhandari17. We are reviewing e2c8da87 now and will reply here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants