socialweb.computer

Request and provide VMs on an atproto compute market.

lexicons and xrpc

lexicon

computer.socialweb.ephemeralInfra

record key any

A short-lived deployment in an account's repo, which the socialweb-computer requester runs like a computer.socialweb.infra. It ends at createdAt plus ttlSeconds, or, with endWhen complete, once every requested contract is released or failed; then its contracts are released, and the record is kept with status.endedAt.

definitions: #status

record

fieldtypedescription
descriptionstring
maxLength 1024
contractsarray of computer.socialweb.infra#contract
maxLength 64
ttlSeconds *integer
minimum 60
endWhenstring
knownValues ["complete","deadline"]
status#status
createdAt *string datetime

#status object

fieldtypedescription
phase *string
knownValues ["pending","staged","deploying","deployed","releasing","released","degraded","ending","deleting","ended"]
contractsarray of computer.socialweb.infra#contractStatus
expiresAtstring datetime
endedAtstring datetime
endReasonstring
knownValues ["complete","deadline","deleted"]

used in

protocol: the atproto protocol of socialweb-computer

raw schema: lexicons/computer/socialweb/ephemeralInfra.json
{
  "lexicon": 1,
  "id": "computer.socialweb.ephemeralInfra",
  "description": "A short-lived deployment in an account's repo, which the socialweb-computer requester runs like a computer.socialweb.infra. It ends at createdAt plus ttlSeconds, or, with endWhen complete, once every requested contract is released or failed; then its contracts are released, and the record is kept with status.endedAt.",
  "defs": {
    "main": {
      "type": "record",
      "key": "any",
      "record": {
        "type": "object",
        "required": [
          "createdAt",
          "ttlSeconds"
        ],
        "properties": {
          "description": {
            "type": "string",
            "maxLength": 1024
          },
          "contracts": {
            "type": "array",
            "maxLength": 64,
            "items": {
              "type": "ref",
              "ref": "computer.socialweb.infra#contract"
            }
          },
          "ttlSeconds": {
            "type": "integer",
            "minimum": 60
          },
          "endWhen": {
            "type": "string",
            "knownValues": [
              "complete",
              "deadline"
            ]
          },
          "status": {
            "type": "ref",
            "ref": "#status"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      }
    },
    "status": {
      "type": "object",
      "required": [
        "phase"
      ],
      "properties": {
        "phase": {
          "type": "string",
          "knownValues": [
            "pending",
            "staged",
            "deploying",
            "deployed",
            "releasing",
            "released",
            "degraded",
            "ending",
            "deleting",
            "ended"
          ]
        },
        "contracts": {
          "type": "array",
          "items": {
            "type": "ref",
            "ref": "computer.socialweb.infra#contractStatus"
          }
        },
        "expiresAt": {
          "type": "string",
          "format": "datetime"
        },
        "endedAt": {
          "type": "string",
          "format": "datetime"
        },
        "endReason": {
          "type": "string",
          "knownValues": [
            "complete",
            "deadline",
            "deleted"
          ]
        }
      }
    }
  }
}