Kanshō

Docs / Plans and tasks /

TaskActivityReceipt

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

Preview

Activity receipt
  1. SchedulerAgentagent14:02:01

    Task created and queued for execution.

  2. DeployAgentagent14:02:04

    Picked up the task and started migration.

  3. DeployAgentagent14:03:18

    Paused — awaiting human approval before production deploy.

    Policy requires human sign-off on production deployments.

  4. joeyuser14:04:55

    Approved production deployment.

  5. DeployAgentagent14:06:12

    Migration applied and service restarted successfully.

Variants

With failure

Activity receipt
  1. SchedulerAgentagent02:00:00

    Task created for nightly index rebuild.

  2. IndexAgentagent02:00:03

    Started rebuilding search index.

  3. IndexAgentagent02:14:47

    Index rebuild failed — disk quota exceeded.

    Available disk space dropped below 500 MB threshold.

Hand-off

Activity receipt
  1. OrchestratorAgentagent09:15:00

    Accepted task and routed to specialist.

  2. OrchestratorAgentagent09:15:02

    Delegated to TestAgent for coverage analysis.

  3. TestAgentagent09:16:44

    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" },
  ]}
/>