All contracts

Workspace Intelligence / JSON Schema

Workspai Agent Framework Ownership Receipt v1

Defines the versioned agent framework ownership receipt v1 boundary used by Workspai and its consumers.

Schema version
workspai.agent-framework-ownership-receipt.v1
Contract path
contracts/workspace-intelligence/agent-framework-ownership-receipt.v1.json
Publication
json-schema
Defined fields
18
Artifact bindings
0

Why this contract exists

Architecture role

Projects workspace intelligence into stable grounding surfaces for agents and integrations.

Consumption boundary

  • • Workspai CLI
  • • AI agents
  • • IDEs and MCP clients

Related commands

Commands are linked only when the runtime contract identifies a direct production relationship. Supporting contracts may be consumed without having a single producer command.

This is a supporting, capability, cache, compatibility, or consumer contract. It has no single direct producer command in the canonical Workspace Intelligence execution registry.

Produced artifacts

These durable files are emitted by registered commands and validated against this contract.

No canonical file artifact is registered for this contract. It may describe capabilities, embedded data, runtime exchange, or supporting state instead of a standalone report.

Field reference

Every declared schema property or published capability path is listed here. Required means the contract declares or publishes that field at the shown boundary.

Field pathTypeRequiredMeaningConstraints
adapterobjectYesDefines the adapter value at this contract boundary.additionalProperties: false
adapter.idstringYesDefines the id value at this contract boundary.pattern: ^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$
adapter.manifestSha256stringYesDefines the manifestsha256 value at this contract boundary.pattern: ^[a-f0-9]{64}$
adapter.versionstringYesDefines the version value at this contract boundary.minLength: 1
changeIdstringYesDefines the changeid value at this contract boundary.pattern: ^change-[a-z0-9][a-z0-9-]{7,95}$
filesarrayYesDefines the files value at this contract boundary.minItems: 1
files[].pathstringYesDefines the path value at this contract boundary.minLength: 1
files[].sha256stringYesDefines the sha256 value at this contract boundary.pattern: ^[a-f0-9]{64}$
frameworkobjectYesDefines the framework value at this contract boundary.additionalProperties: false
framework.idstringYesDefines the id value at this contract boundary.pattern: ^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$
framework.versionstringYesDefines the version value at this contract boundary.minLength: 1
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspai.agent-framework-ownership-receipt.v1"
targetobjectYesDefines the target value at this contract boundary.additionalProperties: false
target.artifactPrefixstringYesDefines the artifactprefix value at this contract boundary.minLength: 1
target.instanceNamestringYesDefines the instancename value at this contract boundary.pattern: ^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$
target.projectstringYesDefines the project value at this contract boundary.minLength: 1
target.workspacestringYesDefines the workspace value at this contract boundary.minLength: 1

Canonical machine-readable definition

The raw synchronized contract remains authoritative. The educational sections above are projections of this definition.

Show raw JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://workspai.dev/contracts/workspace-intelligence/agent-framework-ownership-receipt.v1.json",
  "title": "Workspai Agent Framework Ownership Receipt v1",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "generatedAt",
    "changeId",
    "adapter",
    "framework",
    "target",
    "files"
  ],
  "properties": {
    "schemaVersion": {
      "const": "workspai.agent-framework-ownership-receipt.v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "changeId": {
      "type": "string",
      "pattern": "^change-[a-z0-9][a-z0-9-]{7,95}$"
    },
    "adapter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "version",
        "manifestSha256"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$"
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "manifestSha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      }
    },
    "framework": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "version"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$"
        },
        "version": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "target": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "workspace",
        "project",
        "artifactPrefix",
        "instanceName"
      ],
      "properties": {
        "workspace": {
          "type": "string",
          "minLength": 1
        },
        "project": {
          "type": "string",
          "minLength": 1
        },
        "artifactPrefix": {
          "type": "string",
          "minLength": 1,
          "not": {
            "anyOf": [
              {
                "pattern": "^/"
              },
              {
                "pattern": "^[A-Za-z]:[\\/]"
              },
              {
                "pattern": "(^|[\\/])\\.\\.([\\/]|$)"
              }
            ]
          }
        },
        "instanceName": {
          "type": "string",
          "pattern": "^[a-z0-9](?:[a-z0-9-]{0,46}[a-z0-9])?$"
        }
      }
    },
    "files": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "path",
          "sha256"
        ],
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "not": {
              "anyOf": [
                {
                  "pattern": "^/"
                },
                {
                  "pattern": "^[A-Za-z]:[\\/]"
                },
                {
                  "pattern": "(^|[\\/])\\.\\.([\\/]|$)"
                }
              ]
            }
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        }
      }
    }
  }
}