Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

3.7 KB
Raw Blame
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/ruvnet/ruflo/v3/docs/spec/schemas/ruflo-anchor-record-v1.schema.json",
  "title": "RufloAnchorRecordV1",
  "description": "Accepted per ADR-322D (2026-08-29) - an extension to, not part of, ADR-322C. ADR-322C defines records and their verification but is silent on how a record is anchored into a foreign chain; this fills that gap. Consumed by two merged downstream implementations built against this exact shape: ruvnet/rvm#37 and ruvnet/autogenous#13 (tracking ruvnet/rvm#35 and ruvnet/autogenous#10). Do not treat conformance to this file as conformance to ADR-322C itself -- they are separate contracts.",
  "type": "object",
  "required": ["payload"],
  "additionalProperties": false,
  "properties": {
    "payload": { "$ref": "#/$defs/payload" },
    "signature": { "$ref": "#/$defs/signature" }
  },
  "$defs": {
    "contentId": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
    "timestamp": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
    },
    "signature": {
      "type": "object",
      "required": ["algorithm", "domain", "publicKeyPem", "signatureBase64"],
      "additionalProperties": false,
      "properties": {
        "algorithm": { "const": "ed25519" },
        "domain": {
          "const": "ruflo/flywheel-anchor/v1",
          "description": "Signing domain, accepted per ADR-322D. Distinct from ruflo/flywheel-receipt/v1 so an anchor signature can never be replayed as a receipt signature, per ADR-322 section Persistence and key boundaries."
        },
        "publicKeyPem": { "type": "string", "pattern": "^-----BEGIN PUBLIC KEY-----" },
        "signatureBase64": { "type": "string", "pattern": "^[A-Za-z0-9+/]{86}==$" }
      }
    },
    "payload": {
      "type": "object",
      "required": [
        "schemaVersion",
        "anchoredContentId",
        "anchoredSchemaVersion",
        "chain",
        "assuranceLevel",
        "anchoredAt"
      ],
      "additionalProperties": false,
      "properties": {
        "schemaVersion": { "const": "ruflo.anchor-record/v1" },
        "anchoredContentId": {
          "$ref": "#/$defs/contentId",
          "description": "Content ID of the ADR-322C record being anchored - normally a receiptId, since the receipt signature is implemented and the ledger head signature is not (gap G2)."
        },
        "anchoredSchemaVersion": {
          "type": "string",
          "minLength": 1,
          "description": "schemaVersion of the anchored record, so a verifier knows which rules to apply without parsing it first."
        },
        "chain": {
          "type": "object",
          "required": ["chainId", "position"],
          "additionalProperties": false,
          "properties": {
            "chainId": {
              "type": "string",
              "minLength": 1,
              "description": "Identifier of the foreign chain, e.g. an rvm-witness chain. Opaque to this contract."
            },
            "position": {
              "type": "integer",
              "minimum": 0,
              "description": "Position of the anchoring event within the foreign chain."
            }
          }
        },
        "assuranceLevel": {
          "enum": ["service-side", "hypervisor-side"],
          "description": "Required by rvm#35 and autogenous#10: a service-side record anchored into a hypervisor-side chain does NOT thereby acquire hypervisor-side guarantees (rvm ADR-285 discipline). This field records what the anchored record actually carries, never what the chain it landed in carries."
        },
        "anchoredAt": { "$ref": "#/$defs/timestamp" }
      }
    }
  }
}