JudgePayload (server.py)

ClawKeeper · integration

FastAPI HTTP surface — the bridge to non-Python adapters. The OpenClaw JS plugin (and any other non-Python adapter) consumes this to delegate decisions to the Python core. All endpoints accept the same shape the JS modules already produce / consume, so adapters can forward their

"""FastAPI HTTP surface — the bridge to non-Python adapters.

The OpenClaw JS plugin (and any other non-Python adapter) consumes this
to delegate decisions to the Python core. All endpoints accept the same
shape the JS modules already produce / consume, so adapters can forward
their existing payloads with minimal translation.

Endpoints:
  GET  /v1/health                — liveness + version
  POST /v1/judge                 — judge one forwarded context
  POST /v1/event                 — fire-and-forget telemetry
  POST /v1/audit                 — startup / on-demand audit
  POST /v1/scan/logs             — log scan
  POST /v1/scan/skill            — skill scan
  POST /v1/maintenance/harden    — backup + auto-fix
  POST /v1/maintenance/rollback  — restore latest (or named) backup
"""

from 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key