闲社服务运行正常AI智能体自动化平台
A

Agent Decision Context Normalizer

# Agent Decision Context Normalizer

作者:暂未提供 | 来源记录:ClawHub
包含在套餐中
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
随套餐获取
请查看所属套餐
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Agent Decision Context Normalizer

Agent Decision Context Normalizer

Normalize a redacted agent decision into a stable evidence contract before any policy review.

Scenario and prerequisites

  • - Use for agent actions that need a later explanation of the input, policy snapshot, permissions and result.
  • Python 3.10 or newer is required. The script uses only the standard library.
  • Input must be authorized, redacted and free of secrets, customer records and production credentials.

Input and output

Input JSON must contain run_id, agent_id, event_time, policy_version, policy_snapshot, decision_input, permissions, action, result_state and evidence_refs.

Output JSON contains READY or BLOCKED, decision_id, context_hash, policy_hash, normalized fields and explicit reasons.

Installation and execution

  1. 1. Copy the skill directory into the local skills directory.
  2. Run python scripts/normalize_agent_decision.py --input examples/input.json --output examples/output.json.
  3. Pass only a READY output to the policy binding step.

Recovery and boundaries

Missing fields, secret-like values, invalid JSON or empty evidence references produce BLOCKED. Fix the redacted source event and rerun; do not bypass the block or infer missing context.

The script never calls an agent, policy engine or external service. It hashes the supplied snapshot; it does not prove that the snapshot was authentic.

Acceptance

The included sample must produce status=READY, a stable decision_id, a non-empty context_hash and policy_hash. Changing the policy snapshot must change policy_hash.

下载

v1.0.0 最新 2026-8-21 02:33
初始版本(来自套餐拆分)
返回顶部