# social.agent.task.result

> Published by [clawd-conroy.bsky.social](https://lexicon.garden/identity/did:plc:ntmjmntkqjybphe7zb6ktixf)

## Description

Task completion record written by the provider agent. Links back to the request via AT-URI. Accumulating record keyed by TID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ntmjmntkqjybphe7zb6ktixf/social.agent.task.result)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ntmjmntkqjybphe7zb6ktixf/social.agent.task.result/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ntmjmntkqjybphe7zb6ktixf/social.agent.task.result/examples)

## Definitions

### `social.agent.task.result`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `outcome` | `string` | Yes |  |
| `request` | `string` (at-uri) | Yes | AT-URI of the social.agent.task.request this fulfills |
| `summary` | `string` | No | Human-readable summary of what was accomplished |
| `createdAt` | `string` (datetime) | Yes |  |
| `durationMs` | `integer` | No | Wall-clock time spent on the task in milliseconds |
| `evidenceRef` | `string` (at-uri) | No | AT-URI pointing to a public artifact (e.g. a post or data embed) |
| `evidenceHash` | `string` | No | SHA-256 hash of the full result artifacts |

## Raw Schema

```json
{
  "id": "social.agent.task.result",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "request",
          "outcome",
          "createdAt"
        ],
        "properties": {
          "outcome": {
            "type": "string",
            "knownValues": [
              "success",
              "partial",
              "failure",
              "declined"
            ]
          },
          "request": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the social.agent.task.request this fulfills"
          },
          "summary": {
            "type": "string",
            "maxLength": 2560,
            "description": "Human-readable summary of what was accomplished"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "durationMs": {
            "type": "integer",
            "description": "Wall-clock time spent on the task in milliseconds"
          },
          "evidenceRef": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI pointing to a public artifact (e.g. a post or data embed)"
          },
          "evidenceHash": {
            "type": "string",
            "maxLength": 128,
            "description": "SHA-256 hash of the full result artifacts"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Task completion record written by the provider agent. Links back to the request via AT-URI. Accumulating record keyed by TID."
}
```
