Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

A coding agent can request a discount. Who gets to approve it?

说明与用途

使用 Accordo 的自动化报价创建和审批工作流,展示拒绝与批准的区别并提供审计跟踪。

问题

Automating discount approval while ensuring policy enforcement and auditability in a CRM workflow.

结果

The recipe demonstrates automated quote creation, policy-based approval workflow, and audit logging, distinguishing between refused and approved actions.

工作流

  • Clone the agent-crm repository and checkout a specific commit
  • Run the provided recipe script to create a local CRM project
  • The script generates a synthetic quote and applies discount policy
  • The agent attempts to approve the quote and receives a 403 with HUMAN_APPROVAL_REQUIRED
  • A simulated user approves the quote, changing status to approved and recording an audit entry
  • Verify the receipt JSON for audit fields and trace information
  • Inspect the local SQLite database for persisted records

证据

The script contains assertions for each transition: ... An approval request from the simulated agent receives HTTP 403 with HUMAN_APPROVAL_REQUIRED.

来源

A simulated user approves. The quote becomes approved, with one user decision audit and a completed trace.

来源

  • 记录日期: 2026-09-14T19:00:21.756Z