惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
月光博客
月光博客
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
Last Week in AI
Last Week in AI
罗磊的独立博客
NISL@THU
NISL@THU
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Proofpoint News Feed
H
Help Net Security
L
LINUX DO - 最新话题
MongoDB | Blog
MongoDB | Blog
雷峰网
雷峰网
The Hacker News
The Hacker News
Apple Machine Learning Research
Apple Machine Learning Research
I
Intezer
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Know Your Adversary
Know Your Adversary
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Secure Thoughts
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
C
CERT Recently Published Vulnerability Notes
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
F
Full Disclosure
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
Recorded Future
Recorded Future
T
Threat Research - Cisco Blogs
博客园 - 三生石上(FineUI控件)
S
Securelist
T
The Exploit Database - CXSecurity.com
Forbes - Security
Forbes - Security
H
Hacker News: Front Page
Security Archives - TechRepublic
Security Archives - TechRepublic
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
V
Visual Studio Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Tor Project blog
博客园 - 司徒正美
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
Policy: add tool metadata conformance (#80056) · openclaw/openclaw@a30ac3f
giodl73-repo · 2026-05-21 · via Recent Commits to openclaw:main
11

---

2-

summary: "CLI reference for `openclaw policy` channel conformance checks"

2+

summary: "CLI reference for `openclaw policy` conformance checks"

33

read_when:

44

- You want to check OpenClaw settings against an authored policy.jsonc

55

- You want policy findings in doctor lint

@@ -10,14 +10,23 @@ title: "Policy"

1010

# `openclaw policy`

11111212

`openclaw policy` is provided by the bundled Policy plugin. Policy is an

13-

enterprise conformance layer over existing OpenClaw settings: `policy.jsonc`

14-

defines authored requirements, OpenClaw observes the active workspace as

15-

evidence, and policy health checks report drift through `doctor --lint`.

16-17-

This first policy slice manages configured channels. For example, IT can record

18-

that Telegram is not approved, then `doctor --lint` reports any enabled Telegram

19-

channel and `doctor --fix` can turn it off when workspace repairs are explicitly

20-

enabled.

13+

enterprise conformance layer over existing OpenClaw settings. It does not add a

14+

second configuration system. `policy.jsonc` defines authored requirements,

15+

OpenClaw observes the active workspace as evidence, and policy health checks

16+

report drift through `doctor --lint`. The final conformance signal is a clean

17+

`doctor --lint` run; policy contributes findings to that shared lint surface

18+

instead of creating a separate health gate.

19+20+

Policy currently manages configured channels and governed tool declarations.

21+

For example, IT or a workspace operator can record that Telegram is not an

22+

approved channel provider, require governed tools to carry risk and sensitivity

23+

metadata, then use `doctor --lint` as the shared conformance gate.

24+25+

Use policy when a workspace needs a durable statement such as "these channels

26+

must not be enabled" or "governed tools must declare approval metadata" and a

27+

repeatable way to prove that OpenClaw still conforms to that statement. Use

28+

regular config and workspace docs alone when you only need local behavior and

29+

do not need policy findings or attestation output.

21302231

## Quick start

2332

@@ -32,7 +41,7 @@ arbitrary plugins. The plugin remains enabled if `policy.jsonc` is missing, so

3241

doctor can report the missing artifact.

33423443

Policy is authored, not generated from the user's current settings. A minimal

35-

channel policy looks like this:

44+

policy for channels and tool metadata looks like this:

36453746

```jsonc

3847

{

@@ -45,12 +54,16 @@ channel policy looks like this:

4554

},

4655

],

4756

},

57+

"tools": {

58+

"requireMetadata": ["risk", "sensitivity", "owner"],

59+

},

4860

}

4961

```

50625163

The rules are the authority. A category block is only a namespace; checks run

5264

when a concrete rule is present. OpenClaw reads current `channels.*` settings

53-

and reports settings that do not conform.

65+

and `TOOLS.md` declarations as evidence, then reports observed state that does

66+

not conform.

54675568

Run policy-only checks during authoring:

5669

@@ -122,12 +135,64 @@ Policy config lives under `plugins.entries.policy.config`.

122135

Set `plugins.entries.policy.config.enabled` to `false` to disable policy checks

123136

for a workspace while leaving the plugin installed.

124137138+

Tool metadata requirements are authored in `policy.jsonc` with

139+

`tools.requireMetadata`, for example `["risk", "sensitivity", "owner"]`.

140+125141

## Accept policy state

126142127-

The attestation hash identifies the stable claim: policy hash, evidence hash,

128-

findings hash, and whether the result was clean. It intentionally does not

129-

include `checkedAt`, so the same policy state produces the same attestation

130-

across repeated checks.

143+

Example JSON output:

144+145+

```json

146+

{

147+

"ok": true,

148+

"attestation": {

149+

"checkedAt": "2026-05-10T20:00:00.000Z",

150+

"policy": {

151+

"path": "policy.jsonc",

152+

"hash": "sha256:..."

153+

},

154+

"workspace": {

155+

"scope": "policy",

156+

"hash": "sha256:..."

157+

},

158+

"findingsHash": "sha256:...",

159+

"attestationHash": "sha256:..."

160+

},

161+

"evidence": {

162+

"channels": [

163+

{

164+

"id": "telegram",

165+

"provider": "telegram",

166+

"source": "oc://openclaw.config/channels/telegram",

167+

"enabled": false

168+

}

169+

],

170+

"tools": [

171+

{

172+

"id": "deploy",

173+

"source": "oc://TOOLS.md/tools/deploy",

174+

"line": 12,

175+

"risk": "critical",

176+

"sensitivity": "restricted",

177+

"capabilities": ["IRREVERSIBLE_EXTERNAL"]

178+

}

179+

]

180+

},

181+

"checksRun": 6,

182+

"checksSkipped": 0,

183+

"findings": []

184+

}

185+

```

186+187+

The policy hash identifies the authored rule artifact. The evidence block

188+

records the observed OpenClaw state used by the policy checks. The

189+

`workspace.hash` value identifies that evidence payload for the checked scope.

190+

The findings hash identifies the exact finding set returned by the check.

191+

`checkedAt` records when the evaluation ran. The attestation hash identifies

192+

the stable claim: policy hash, evidence hash, findings hash, and whether the

193+

result was clean. It intentionally does not include `checkedAt`, so the same

194+

policy state produces the same attestation across repeated checks. Together,

195+

these form the audit tuple for this policy check.

131196132197

If a later gateway or supervisor uses policy to block, approve, or annotate a

133198

runtime action, it should record the attestation hash from the last clean policy

@@ -146,20 +211,71 @@ If policy rules change intentionally, update both accepted hashes from a clean

146211

check. If workspace settings change intentionally but policy stays the same,

147212

only `expectedAttestationHash` usually changes.

148213214+

`openclaw policy watch` runs the same check repeatedly and reports when the

215+

current evidence no longer matches `expectedAttestationHash`:

216+217+

```bash

218+

openclaw policy watch --json

219+

```

220+221+

Use `--once` in CI or scripts that only need one drift evaluation. Without

222+

`--once`, the command polls every two seconds by default; use `--interval-ms` to

223+

choose a different interval.

224+149225

## Findings

150226151227

Policy currently verifies:

152228153-

| Check id | Finding |

154-

| ---------------------------------- | ------------------------------------------------------------------- |

155-

| `policy/policy-jsonc-missing` | Policy is enabled but `policy.jsonc` is missing. |

156-

| `policy/policy-jsonc-invalid` | Policy cannot be parsed or has malformed rules. |

157-

| `policy/policy-hash-mismatch` | Policy does not match configured `expectedHash`. |

158-

| `policy/attestation-hash-mismatch` | Current policy evidence no longer matches the accepted attestation. |

159-

| `policy/channels-denied-provider` | An enabled channel matches a channel deny rule. |

229+

| Check id | Finding |

230+

| ---------------------------------------- | ------------------------------------------------------------------- |

231+

| `policy/policy-jsonc-missing` | Policy is enabled but `policy.jsonc` is missing. |

232+

| `policy/policy-jsonc-invalid` | Policy cannot be parsed or has malformed rules. |

233+

| `policy/policy-hash-mismatch` | Policy does not match configured `expectedHash`. |

234+

| `policy/attestation-hash-mismatch` | Current policy evidence no longer matches the accepted attestation. |

235+

| `policy/channels-denied-provider` | An enabled channel matches a channel deny rule. |

236+

| `policy/tools-missing-owner` | A governed tool declaration is missing owner metadata. |

237+

| `policy/tools-missing-risk-level` | A governed tool declaration is missing risk metadata. |

238+

| `policy/tools-missing-sensitivity-token` | A governed tool declaration is missing sensitivity metadata. |

239+

| `policy/tools-unknown-risk-level` | A governed tool declaration uses an unknown risk value. |

240+

| `policy/tools-unknown-sensitivity-token` | A governed tool declaration uses an unknown sensitivity value. |

241+242+

Policy findings can include both `target` and `requirement`. `target` is the

243+

observed workspace thing that does not conform. `requirement` is the authored

244+

policy rule that made it a finding. Both values are addresses today, usually

245+

`oc://` paths, but the field names describe their policy role rather than the

246+

address format.

247+248+

Example JSON finding:

249+250+

```json

251+

{

252+

"checkId": "policy/channels-denied-provider",

253+

"severity": "error",

254+

"message": "Channel 'telegram' uses denied provider 'telegram'.",

255+

"source": "policy",

256+

"path": "openclaw config",

257+

"ocPath": "oc://openclaw.config/channels/telegram",

258+

"target": "oc://openclaw.config/channels/telegram",

259+

"requirement": "oc://policy.jsonc/channels/denyRules/#0",

260+

"fixHint": "Telegram is not approved for this workspace."

261+

}

262+

```

160263161-

Policy findings can include `target` and `requirement`: the observed workspace

162-

thing that does not conform, and the authored rule that made it a finding.

264+

Example tool finding:

265+266+

```json

267+

{

268+

"checkId": "policy/tools-missing-risk-level",

269+

"severity": "error",

270+

"message": "TOOLS.md tool 'deploy' has no explicit risk classification.",

271+

"source": "policy",

272+

"path": "TOOLS.md",

273+

"line": 12,

274+

"ocPath": "oc://TOOLS.md/tools/deploy",

275+

"target": "oc://TOOLS.md/tools/deploy",

276+

"requirement": "oc://policy.jsonc/tools/requireMetadata"

277+

}

278+

```

163279164280

## Repair

165281

@@ -190,5 +306,12 @@ configured channel:

190306191307

## Exit codes

192308193-

`policy check` exits `0` when there are no findings at the threshold, `1` when

194-

findings are present, and `2` for argument or runtime failures.

309+

| Command | `0` | `1` | `2` |

310+

| -------------- | ----------------------------------------- | ------------------------------------------------ | ---------------------------- |

311+

| `policy check` | No findings at the threshold. | One or more findings met the threshold. | Argument or runtime failure. |

312+

| `policy watch` | No findings and accepted hash is current. | Findings exist or accepted attestation is stale. | Argument or runtime failure. |

313+314+

## Related

315+316+

- [Doctor lint mode](/cli/doctor#lint-mode)

317+

- [Path CLI](/cli/path)