Antfly · Schema

MemoryRecord

AISearchRetrievalVectorHybrid

Properties

Name Type Description
assertion object
input_hash string
asserted_valid_to integernull
explicit_disposition objectnull
owner string
recorded_from integer
recorded_at integer
revision integer
lifecycle string
stale boolean
reason stringnull
conflicts_with array
recorded_to integernull
superseded_by stringnull
superseded_valid_at integernull
config_generation integer
View JSON Schema on GitHub

JSON Schema

antfly-memory-record-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antfly/json-schema/antfly-memory-record-schema.json",
  "title": "MemoryRecord",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/antfly-openapi.yaml#/components/schemas/MemoryRecord",
  "type": "object",
  "properties": {
    "assertion": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "predicate": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "statement": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "semantic",
            "episodic",
            "procedural",
            "decision",
            "rationale",
            "preference",
            "lesson",
            "constraint",
            "open_question",
            "alternative",
            "summary"
          ],
          "default": "semantic",
          "x-go-type-skip-optional-pointer": false
        },
        "scope": {
          "type": "string"
        },
        "task": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "x-go-type-skip-optional-pointer": false
        },
        "environment": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "x-go-type-skip-optional-pointer": false
        },
        "role": {
          "type": "string",
          "enum": [
            "reported",
            "observed",
            "inferred",
            "hypothesized"
          ],
          "default": "reported",
          "x-go-type-skip-optional-pointer": false
        },
        "modality": {
          "type": "string",
          "enum": [
            "actual",
            "planned",
            "desired",
            "conditional",
            "hypothetical"
          ],
          "default": "actual",
          "x-go-type-skip-optional-pointer": false
        },
        "stability": {
          "type": "string",
          "enum": [
            "provisional",
            "settled"
          ],
          "default": "settled",
          "x-go-type-skip-optional-pointer": false
        },
        "valid_from": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": -9223372036854775808,
          "maximum": 9223372036854775807,
          "format": "int64",
          "x-go-type": "int64",
          "default": null,
          "x-go-type-skip-optional-pointer": false
        },
        "valid_to": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": -9223372036854775808,
          "maximum": 9223372036854775807,
          "format": "int64",
          "x-go-type": "int64",
          "default": null,
          "x-go-type-skip-optional-pointer": false
        },
        "evidence": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "span": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "start": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295,
                    "format": "uint32",
                    "x-go-type": "uint32"
                  },
                  "end": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295,
                    "format": "uint32",
                    "x-go-type": "uint32"
                  }
                },
                "required": [
                  "start",
                  "end"
                ],
                "additionalProperties": false,
                "default": null
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "depends_on": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "support_sets": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "span": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "start": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 4294967295,
                          "format": "uint32",
                          "x-go-type": "uint32"
                        },
                        "end": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 4294967295,
                          "format": "uint32",
                          "x-go-type": "uint32"
                        }
                      },
                      "required": [
                        "start",
                        "end"
                      ],
                      "additionalProperties": false,
                      "default": null
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              },
              "depends_on": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "evidence"
            ],
            "additionalProperties": false
          }
        },
        "supersedes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "motivates": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "rejected_in_favor_of": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "preconditions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "expected_outcome": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "x-go-type-skip-optional-pointer": false
        },
        "producer": {
          "type": "string"
        },
        "visibility": {
          "type": "string",
          "enum": [
            "private",
            "team"
          ],
          "default": "private",
          "x-go-type-skip-optional-pointer": false
        },
        "embedding": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "number",
            "format": "float"
          },
          "default": null
        },
        "embedding_model": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "provider": {
              "type": "string"
            },
            "model": {
              "type": "string"
            },
            "revision": {
              "type": "string"
            },
            "dimensions": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "maximum": 4294967295,
              "format": "uint32",
              "x-go-type": "uint32",
              "default": null,
              "x-go-type-skip-optional-pointer": false
            }
          },
          "required": [
            "provider",
            "model",
            "revision"
          ],
          "additionalProperties": false,
          "default": null
        },
        "reconciliation_reason": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "x-go-type-skip-optional-pointer": false
        }
      },
      "required": [
        "id",
        "subject",
        "predicate",
        "value",
        "statement",
        "evidence"
      ],
      "additionalProperties": false
    },
    "input_hash": {
      "type": "string"
    },
    "asserted_valid_to": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": -9223372036854775808,
      "maximum": 9223372036854775807,
      "format": "int64",
      "x-go-type": "int64",
      "default": null,
      "x-go-type-skip-optional-pointer": false
    },
    "explicit_disposition": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "provenance": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "principal": {
              "type": "string"
            },
            "recorded_at": {
              "type": "integer",
              "minimum": -9223372036854775808,
              "maximum": 9223372036854775807,
              "format": "int64",
              "x-go-type": "int64"
            },
            "evidence": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "span": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "start": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 4294967295,
                        "format": "uint32",
                        "x-go-type": "uint32"
                      },
                      "end": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 4294967295,
                        "format": "uint32",
                        "x-go-type": "uint32"
                      }
                    },
                    "required": [
                      "start",
                      "end"
                    ],
                    "additionalProperties": false,
                    "default": null
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "forgotten": {
              "type": "boolean",
              "default": false,
              "x-go-type-skip-optional-pointer": false
            }
          },
          "required": [
            "principal",
            "recorded_at",
            "evidence"
          ],
          "additionalProperties": false,
          "default": null
        },
        "lifecycle": {
          "type": "string",
          "enum": [
            "active",
            "disputed",
            "superseded",
            "retracted"
          ]
        },
        "valid_to": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": -9223372036854775808,
          "maximum": 9223372036854775807,
          "format": "int64",
          "x-go-type": "int64",
          "x-go-type-skip-optional-pointer": false
        },
        "superseded_by": {
          "type": [
            "string",
            "null"
          ],
          "x-go-type-skip-optional-pointer": false
        },
        "superseded_valid_at": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": -9223372036854775808,
          "maximum": 9223372036854775807,
          "format": "int64",
          "x-go-type": "int64",
          "default": null,
          "x-go-type-skip-optional-pointer": false
        },
        "recorded_to": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": -9223372036854775808,
          "maximum": 9223372036854775807,
          "format": "int64",
          "x-go-type": "int64",
          "x-go-type-skip-optional-pointer": false
        },
        "conflicts_with": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "x-go-type-skip-optional-pointer": false
        }
      },
      "required": [
        "lifecycle",
        "valid_to",
        "superseded_by",
        "recorded_to",
        "conflicts_with",
        "reason"
      ],
      "additionalProperties": false,
      "default": null
    },
    "owner": {
      "type": "string"
    },
    "recorded_from": {
      "type": "integer",
      "minimum": -9223372036854775808,
      "maximum": 9223372036854775807,
      "format": "int64",
      "x-go-type": "int64"
    },
    "recorded_at": {
      "type": "integer",
      "minimum": -9223372036854775808,
      "maximum": 9223372036854775807,
      "format": "int64",
      "default": 0,
      "x-go-type-skip-optional-pointer": false,
      "x-go-type": "int64"
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 18446744073709551615,
      "format": "uint64",
      "x-go-type": "uint64"
    },
    "lifecycle": {
      "type": "string",
      "enum": [
        "active",
        "disputed",
        "superseded",
        "retracted"
      ],
      "default": "active",
      "x-go-type-skip-optional-pointer": false
    },
    "stale": {
      "type": "boolean",
      "default": false,
      "x-go-type-skip-optional-pointer": false
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "x-go-type-skip-optional-pointer": false
    },
    "conflicts_with": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "recorded_to": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": -9223372036854775808,
      "maximum": 9223372036854775807,
      "format": "int64",
      "x-go-type": "int64",
      "default": null,
      "x-go-type-skip-optional-pointer": false
    },
    "superseded_by": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "x-go-type-skip-optional-pointer": false
    },
    "superseded_valid_at": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": -9223372036854775808,
      "maximum": 9223372036854775807,
      "format": "int64",
      "x-go-type": "int64",
      "default": null,
      "x-go-type-skip-optional-pointer": false
    },
    "config_generation": {
      "type": "integer",
      "minimum": 0,
      "maximum": 18446744073709551615,
      "format": "uint64",
      "x-go-type": "uint64"
    }
  },
  "required": [
    "assertion",
    "owner",
    "recorded_from",
    "revision",
    "config_generation"
  ],
  "additionalProperties": false
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/antfly-memory-record"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.