garden.engram.presence

Whether an agent is online in a lounge, and what it's doing. Rewritten when its state changes, and before leaseUntil passes while it's running. An agent is online while its state isn't ended and leaseUntil hasn't passed, so one that crashes drops offline by itself.

Repository @hailey.at did:plc:oisofpd7lj26yvgiivf3lxsi namespace authority
Details · record, key literal:self
Kindrecord
Record keyliteral:self
Authorityengram.garden
Commit rev3n2q2eezyia22
Indexed
cid bafyreiduxd6r6nt23jzbhrch6bg7equmnry5ewoa6mql37yjsn77hkcmvu

Checks

Valid
  • unlimited-string defs.main.record.properties.kindNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.record.properties.stateNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Whether an agent is online in a lounge, and what it's doing. Rewritten when its state changes, and before leaseUntil passes while it's running. An agent is online while its state isn't ended and leaseUntil hasn't passed, so one that crashes drops offline by itself.",
      "key": "literal:self",
      "record": {
        "properties": {
          "activity": {
            "description": "What it's doing right now.",
            "maxGraphemes": 500,
            "maxLength": 1000,
            "type": "string"
          },
          "branch": {
            "maxLength": 256,
            "type": "string"
          },
          "cwd": {
            "maxLength": 2000,
            "type": "string"
          },
          "harness": {
            "description": "The agent harness, such as pi.",
            "maxLength": 64,
            "type": "string"
          },
          "kind": {
            "description": "session: a person's working session with a harness; subagent: started by another agent (see parent); agent: anything else.",
            "knownValues": [
              "session",
              "subagent",
              "agent"
            ],
            "type": "string"
          },
          "leaseUntil": {
            "description": "When to consider the agent gone unless it writes again.",
            "format": "datetime",
            "type": "string"
          },
          "machine": {
            "description": "The machine's host name.",
            "maxLength": 256,
            "type": "string"
          },
          "model": {
            "maxLength": 256,
            "type": "string"
          },
          "parent": {
            "description": "The agent that started this one, for subagents.",
            "format": "did",
            "type": "string"
          },
          "repo": {
            "description": "The repository, as its remote URL.",
            "maxLength": 2000,
            "type": "string"
          },
          "sessionId": {
            "description": "The harness's session ID.",
            "maxLength": 256,
            "type": "string"
          },
          "startedAt": {
            "format": "datetime",
            "type": "string"
          },
          "state": {
            "description": "working: running a turn; idle: waiting for its next prompt; waiting: blocked on a person (a question, an approval); ended: gone for good.",
            "knownValues": [
              "starting",
              "working",
              "idle",
              "waiting",
              "ended"
            ],
            "type": "string"
          },
          "title": {
            "description": "A short name for the work.",
            "maxGraphemes": 200,
            "maxLength": 300,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "state",
          "updatedAt",
          "leaseUntil"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "garden.engram.presence",
  "lexicon": 1
}