Docs / Plans and tasks /
TaskActivityReceipt
Post-completion receipt for a task: duration, tokens, cost, and outputs produced.
Preview
Activity receipt
- SchedulerAgentagent
Task created and queued for execution.
- DeployAgentagent
Picked up the task and started migration.
- DeployAgentagent
Paused — awaiting human approval before production deploy.
Policy requires human sign-off on production deployments.
- joeyuser
Approved production deployment.
- DeployAgentagent
Migration applied and service restarted successfully.
Variants
With failure
Activity receipt
- SchedulerAgentagent
Task created for nightly index rebuild.
- IndexAgentagent
Started rebuilding search index.
- IndexAgentagent
Index rebuild failed — disk quota exceeded.
Available disk space dropped below 500 MB threshold.
Hand-off
Activity receipt
- OrchestratorAgentagent
Accepted task and routed to specialist.
- OrchestratorAgentagent
Delegated to TestAgent for coverage analysis.
- TestAgentagent
Coverage report generated — 87 % line coverage.
Props
| Prop | Type | Description |
|---|---|---|
| entries* | ActivityReceiptEntry[] | Ordered list of state-change events, oldest first. |
| title | string | Section 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" },
]}
/>