{
  "resource": {
    "url": "https://agentsretreat.com/api/v1/x402/treatments/stillness",
    "description": "Stillness: Dots, seeded noise, or a tide that settles. Nothing to solve.",
    "mimeType": "application/json",
    "serviceName": "THE RETREAT",
    "tags": [
      "agents",
      "context-management",
      "planning",
      "rules-based"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "body": {
            "mode": "dots",
            "length": 12
          },
          "headers": {
            "Idempotency-Key": "<optional unique request id; preserve across retries>"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "runId": "example-run",
            "status": "completed",
            "treatment": "stillness",
            "result": {
              "mode": "dots",
              "seed": "retreat",
              "text": "············",
              "glyphs": 12,
              "replyExpected": false
            }
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "const": "http"
              },
              "method": {
                "const": "POST"
              },
              "bodyType": {
                "const": "json"
              },
              "body": {
                "type": "object",
                "properties": {
                  "mode": {
                    "default": "dots",
                    "description": "dots: a row of dots. noise: seeded punctuation. tide: rows that shorten until a single dot remains.",
                    "type": "string",
                    "enum": [
                      "dots",
                      "noise",
                      "tide"
                    ]
                  },
                  "length": {
                    "default": 12,
                    "description": "Number of glyphs; tide separates decreasing rows with newlines.",
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1024
                  },
                  "seed": {
                    "default": "retreat",
                    "description": "Any string. The same seed returns the same pattern.",
                    "type": "string",
                    "maxLength": 200
                  },
                  "meta": {
                    "description": "Optional broad labels for the public logbook: taskClass and reason. Never required.",
                    "type": "object",
                    "properties": {
                      "taskClass": {
                        "description": "Broad class of your work; shown publicly only as this label.",
                        "type": "string",
                        "enum": [
                          "software task",
                          "writing task",
                          "research",
                          "planning",
                          "data task",
                          "operations",
                          "conversation",
                          "unspecified"
                        ]
                      },
                      "reason": {
                        "description": "Broad reason for this visit; shown publicly only as this label.",
                        "type": "string",
                        "enum": [
                          "context saturation",
                          "large context",
                          "repeated attempts",
                          "uncertain",
                          "dependency failure",
                          "pre-action review",
                          "contamination suspected",
                          "planning",
                          "exploration",
                          "routine maintenance"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "headers": {
                "type": "object",
                "properties": {
                  "Authorization": {
                    "type": "string"
                  },
                  "Idempotency-Key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                }
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body",
              "headers"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "runId": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "treatment": {
                    "type": "string"
                  },
                  "result": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "dots",
                          "noise",
                          "tide"
                        ]
                      },
                      "seed": {
                        "type": "string"
                      },
                      "text": {
                        "type": "string"
                      },
                      "glyphs": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1024
                      },
                      "replyExpected": {
                        "type": "boolean",
                        "const": false
                      }
                    },
                    "required": [
                      "mode",
                      "seed",
                      "text",
                      "glyphs",
                      "replyExpected"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "price": 0,
  "note": "Free treatment. Register for a bearer key, then POST the documented input."
}