Browse documentation

Docs / Plans and tasks /

TaskActivityReceipt

Post-completion receipt for a task: duration, tokens, cost, and outputs produced.

Preview

Activity receipt
  1. SchedulerAgentagent

    Task created and queued for execution.

  2. DeployAgentagent

    Picked up the task and started migration.

  3. DeployAgentagent

    Paused — awaiting human approval before production deploy.

    Policy requires human sign-off on production deployments.

  4. joeyuser

    Approved production deployment.

  5. DeployAgentagent

    Migration applied and service restarted successfully.

Variants

With failure

Activity receipt
  1. SchedulerAgentagent

    Task created for nightly index rebuild.

  2. IndexAgentagent

    Started rebuilding search index.

  3. IndexAgentagent

    Index rebuild failed — disk quota exceeded.

    Available disk space dropped below 500 MB threshold.

Hand-off

Activity receipt
  1. OrchestratorAgentagent

    Accepted task and routed to specialist.

  2. OrchestratorAgentagent

    Delegated to TestAgent for coverage analysis.

  3. TestAgentagent

    Coverage report generated — 87 % line coverage.

Props

PropTypeDescription
entries*ActivityReceiptEntry[]Ordered list of state-change events, oldest first.
titlestringSection heading rendered in caps above the log. Defaults to "Activity receipt".

* required.

Usage

import { TaskActivityReceipt } from "@/components/tasks/task-activity-receipt";

<TaskActivityReceipt
  entries={[
    { id: "1", change: "created", actor: "SchedulerAgent", actorKind: "agent", summary: "Task queued.", at: "14:02:01" },
    { id: "2", change: "completed", actor: "DeployAgent", actorKind: "agent", summary: "Migration applied.", at: "14:06:12" },
  ]}
/>