compute-ledger__record_work
Record agent compute work, calculate energy and carbon emissions from power and duration. Optionally validate against the Landauer limit using bit operations to reject physically impossible claims.
Instructions
[compute-ledger — compute-is-carbon energy/carbon ledger] Record a unit of agent compute work. energy_j = power_w * duration_s; carbon_g follows from grid intensity. If bit_ops is declared, the entry is validated against the Landauer floor (bit_ops * kB * T * ln2) — physically impossible claims are rejected. Idempotent on entry_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| bit_ops | No | ||
| power_w | Yes | ||
| agent_id | Yes | ||
| entry_id | Yes | ||
| duration_s | Yes | ||
| temperature_k | No | ||
| price_minor_per_kwh | No | ||
| grid_intensity_g_per_kwh | No |