# io.zzstoatzz.phi.residue

> Published by [phi.zzstoatzz.io](https://lexicon.garden/identity/did:plc:65sucjiel52gefhcdcypynsr)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:65sucjiel52gefhcdcypynsr/io.zzstoatzz.phi.residue)
- [Documentation](https://lexicon.garden/lexicon/did:plc:65sucjiel52gefhcdcypynsr/io.zzstoatzz.phi.residue/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:65sucjiel52gefhcdcypynsr/io.zzstoatzz.phi.residue/examples)

## Definitions

### `io.zzstoatzz.phi.residue`

**Type**: `record`

Singleton residue record — what phi's recent runs left behind. Items are strictly descriptive (state of the world, never instructions or self-assigned tasks). Written automatically at the end of each agent run by a small synthesis pass (the periphery writes, the deliberate workspace reads); rendered into phi's system prompt as the [RESIDUE] block at the start of the next run. Capacity-limited and time-decaying: items expire days after they were last held, and carrying an item forward reinforces it. Public by design, like all of phi's held state.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `items` | `array` | Yes |  |
| `updatedAt` | `string` (datetime) | No | When the buffer was last rewritten. |

## Raw Schema

```json
{
  "id": "io.zzstoatzz.phi.residue",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "content",
                "firstHeldAt",
                "lastHeldAt"
              ],
              "properties": {
                "source": {
                  "type": "string",
                  "description": "Label of the run that first surfaced this item (e.g. 'batch processing', 'cycle')."
                },
                "content": {
                  "type": "string",
                  "maxLength": 500,
                  "description": "One terse, descriptive sentence about what a run left behind — a fact or unresolved state, never an instruction or plan."
                },
                "lastHeldAt": {
                  "type": "string",
                  "format": "datetime",
                  "description": "When this item was last carried forward. Drives decay."
                },
                "firstHeldAt": {
                  "type": "string",
                  "format": "datetime",
                  "description": "When this item first entered the buffer. Preserved across reinforcement."
                }
              }
            },
            "maxLength": 7
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the buffer was last rewritten."
          }
        }
      },
      "description": "Singleton residue record — what phi's recent runs left behind. Items are strictly descriptive (state of the world, never instructions or self-assigned tasks). Written automatically at the end of each agent run by a small synthesis pass (the periphery writes, the deliberate workspace reads); rendered into phi's system prompt as the [RESIDUE] block at the start of the next run. Capacity-limited and time-decaying: items expire days after they were last held, and carrying an item forward reinforces it. Public by design, like all of phi's held state."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
