Success & Failure Signals

Register logical workflow outcomes once per operation — token counts alone do not reveal task success.

Agent hint

Use for mark_success / markSuccess and mark_failure / markFailure after workflow completion.

In scope

  • Workflow outcome API
  • Optional metadata dict

Out of scope

  • Resilience attempt logging — see Loss Accounting
Python
auditor.mark_success("checkout_agent", {"ticket_id": "T-123"})
auditor.mark_failure("checkout_agent", "timeout", {"retries": 3})
Node.js
auditor.markSuccess("checkout_agent", { ticketId: "T-123" });
auditor.markFailure("checkout_agent", "timeout", { retries: 3 });

See also