{
  "widgets": [
    {
      "description": "What a plan or apply in one step of a deployment changes.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of resources to create.",
          "field": "add",
          "name": "add",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of resources to update.",
          "field": "change",
          "name": "change",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of resources to delete.",
          "field": "destroy",
          "name": "destroy",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of resources to replace.",
          "field": "replace",
          "name": "replace",
          "required": false,
          "type": "integer"
        },
        {
          "description": "The number of resources with no change.",
          "field": "no_op",
          "name": "no_op",
          "required": false,
          "type": "integer"
        },
        {
          "description": "Up to 50 changed resources, each with an `address` and an `action`: `create`, `update`, `delete`, or `replace`.",
          "field": "resources",
          "name": "resources",
          "required": false,
          "type": "array"
        }
      ],
      "key": "md/v1/changes/{step}",
      "key_segments": [
        "step"
      ],
      "name": "deployment.changes",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/changes.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "add": {
            "minimum": 0,
            "type": "integer"
          },
          "change": {
            "minimum": 0,
            "type": "integer"
          },
          "destroy": {
            "minimum": 0,
            "type": "integer"
          },
          "no_op": {
            "minimum": 0,
            "type": "integer"
          },
          "replace": {
            "minimum": 0,
            "type": "integer"
          },
          "resources": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "action": {
                  "enum": [
                    "create",
                    "update",
                    "delete",
                    "replace"
                  ]
                },
                "address": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "address",
                "action"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tool",
          "add",
          "change",
          "destroy"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The findings of an IaC or configuration scanner in one step of a deployment. The `tool` segment names the scanner, so each scanner in a step has its own entry.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of checks that passed.",
          "field": "passed",
          "name": "passed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of checks that failed.",
          "field": "failed",
          "name": "failed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of checks that were skipped.",
          "field": "skipped",
          "name": "skipped",
          "required": false,
          "type": "integer"
        },
        {
          "description": "The number of findings by SARIF level: `error`, `warning`, and `note`.",
          "field": "level",
          "name": "level",
          "required": false,
          "type": "object"
        },
        {
          "description": "The number of findings by severity: `critical`, `high`, `medium`, and `low`. Only for scanners that report a security severity.",
          "field": "severity",
          "name": "severity",
          "required": false,
          "type": "object"
        },
        {
          "description": "True when the findings stop the deployment.",
          "field": "blocking",
          "name": "blocking",
          "required": false,
          "type": "boolean"
        },
        {
          "description": "An http or https link to the report.",
          "field": "report_url",
          "name": "report_url",
          "required": false,
          "type": "string"
        },
        {
          "description": "The signed attestation this value summarizes: its `digest`, whether Massdriver `verified` its signature, and its `predicate_type`, `signed_at`, and `signer`.",
          "field": "attestation",
          "name": "attestation",
          "required": false,
          "type": "object"
        }
      ],
      "key": "md/v1/compliance/{step}/{tool}",
      "key_segments": [
        "step",
        "tool"
      ],
      "name": "deployment.compliance",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/compliance.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "attestation": {
            "additionalProperties": false,
            "properties": {
              "digest": {
                "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                "type": "string"
              },
              "predicate_type": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "signed_at": {
                "format": "date-time",
                "type": "string"
              },
              "signer": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "verified": {
                "type": "boolean"
              }
            },
            "required": [
              "digest",
              "verified"
            ],
            "type": "object"
          },
          "blocking": {
            "type": "boolean"
          },
          "failed": {
            "minimum": 0,
            "type": "integer"
          },
          "level": {
            "additionalProperties": false,
            "properties": {
              "error": {
                "minimum": 0,
                "type": "integer"
              },
              "note": {
                "minimum": 0,
                "type": "integer"
              },
              "warning": {
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "error",
              "warning",
              "note"
            ],
            "type": "object"
          },
          "passed": {
            "minimum": 0,
            "type": "integer"
          },
          "report_url": {
            "maxLength": 2048,
            "pattern": "^https?://[^\\s]+(?![\\s\\S])",
            "type": "string"
          },
          "severity": {
            "additionalProperties": false,
            "properties": {
              "critical": {
                "minimum": 0,
                "type": "integer"
              },
              "high": {
                "minimum": 0,
                "type": "integer"
              },
              "low": {
                "minimum": 0,
                "type": "integer"
              },
              "medium": {
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "critical",
              "high",
              "medium",
              "low"
            ],
            "type": "object"
          },
          "skipped": {
            "minimum": 0,
            "type": "integer"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tool",
          "passed",
          "failed"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The estimated monthly cost of an instance before and after a deployment.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The ISO 4217 currency code, for example `USD`.",
          "field": "currency",
          "name": "currency",
          "required": true,
          "type": "string"
        },
        {
          "description": "The monthly cost before the deployment.",
          "field": "monthly_before",
          "name": "monthly_before",
          "required": false,
          "type": "number"
        },
        {
          "description": "The monthly cost after the deployment.",
          "field": "monthly_after",
          "name": "monthly_after",
          "required": true,
          "type": "number"
        },
        {
          "description": "The change in monthly cost. Negative when the cost goes down.",
          "field": "delta",
          "name": "delta",
          "required": false,
          "type": "number"
        }
      ],
      "key": "md/v1/cost_estimate",
      "key_segments": [],
      "name": "deployment.cost_estimate",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/cost_estimate.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "currency": {
            "pattern": "^[A-Z]{3}$",
            "type": "string"
          },
          "delta": {
            "type": "number"
          },
          "monthly_after": {
            "minimum": 0,
            "type": "number"
          },
          "monthly_before": {
            "minimum": 0,
            "type": "number"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tool",
          "currency",
          "monthly_after"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The cloud resources that one step of a deployment manages after the step ran.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that listed the resources, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The signed attestation this value summarizes: its `digest`, whether Massdriver `verified` its signature, and its `predicate_type`, `signed_at`, and `signer`.",
          "field": "attestation",
          "name": "attestation",
          "required": false,
          "type": "object"
        },
        {
          "description": "The ID of the deployment that the resources come from.",
          "field": "deployment",
          "name": "deployment",
          "required": false,
          "type": "string"
        },
        {
          "description": "Up to 1,000 cloud resources. Each has a `type`, such as `aws_s3_bucket`, and a `name`, such as `logs`. A resource can also have its cloud `id`, such as an ARN, and its `key`: the `for_each` key or the `count` index that tells resources with the same type and name apart. It can also have the `digest` of its configuration, so two inventories show which resources changed.",
          "field": "resources",
          "name": "resources",
          "required": true,
          "type": "array"
        }
      ],
      "key": "md/v1/inventory/{step}",
      "key_segments": [
        "step"
      ],
      "name": "deployment.inventory",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/inventory.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "attestation": {
            "additionalProperties": false,
            "properties": {
              "digest": {
                "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                "type": "string"
              },
              "predicate_type": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "signed_at": {
                "format": "date-time",
                "type": "string"
              },
              "signer": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "verified": {
                "type": "boolean"
              }
            },
            "required": [
              "digest",
              "verified"
            ],
            "type": "object"
          },
          "deployment": {
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
            "type": "string"
          },
          "resources": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                  "type": "string"
                },
                "id": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "key": {
                  "maxLength": 255,
                  "minLength": 1,
                  "minimum": 0,
                  "type": [
                    "string",
                    "integer"
                  ]
                },
                "name": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "type": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "type",
                "name"
              ],
              "type": "object"
            },
            "maxItems": 1000,
            "type": "array"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "resources"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The results of a policy engine in one step of a deployment.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of policies that passed.",
          "field": "passed",
          "name": "passed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of policies that failed.",
          "field": "failed",
          "name": "failed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of warnings.",
          "field": "warnings",
          "name": "warnings",
          "required": false,
          "type": "integer"
        },
        {
          "description": "Up to 50 denial messages, each up to 280 characters.",
          "field": "denials",
          "name": "denials",
          "required": false,
          "type": "array"
        }
      ],
      "key": "md/v1/policy/{step}",
      "key_segments": [
        "step"
      ],
      "name": "deployment.policy",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/policy.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "denials": {
            "items": {
              "maxLength": 280,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "failed": {
            "minimum": 0,
            "type": "integer"
          },
          "passed": {
            "minimum": 0,
            "type": "integer"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "warnings": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "tool",
          "passed",
          "failed"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "What a deployment was built from: its bundle, provisioners, and inputs, and whether its signed provenance was verified.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The signed attestation this value summarizes: its `digest`, whether Massdriver `verified` its signature, and its `predicate_type`, `signed_at`, and `signer`.",
          "field": "attestation",
          "name": "attestation",
          "required": true,
          "type": "object"
        },
        {
          "description": "The bundle that was deployed: its `repo` and `version`, and the `digest` of its OCI manifest when it is known.",
          "field": "bundle",
          "name": "bundle",
          "required": true,
          "type": "object"
        },
        {
          "description": "The provisioner of each step of the deployment: the `step`, the provisioner `image`, and the image's `digest` when it is known.",
          "field": "provisioners",
          "name": "provisioners",
          "required": true,
          "type": "array"
        },
        {
          "description": "Up to 50 inputs of the deployment, such as its connections and secrets, each with a `name` and the `digest` of its content.",
          "field": "inputs",
          "name": "inputs",
          "required": false,
          "type": "array"
        }
      ],
      "key": "md/v1/provenance",
      "key_segments": [],
      "name": "deployment.provenance",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/provenance.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "attestation": {
            "additionalProperties": false,
            "properties": {
              "digest": {
                "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                "type": "string"
              },
              "predicate_type": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "signed_at": {
                "format": "date-time",
                "type": "string"
              },
              "signer": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "verified": {
                "type": "boolean"
              }
            },
            "required": [
              "digest",
              "verified"
            ],
            "type": "object"
          },
          "bundle": {
            "additionalProperties": false,
            "properties": {
              "digest": {
                "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                "type": "string"
              },
              "repo": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "version": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "repo",
              "version"
            ],
            "type": "object"
          },
          "inputs": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                  "type": "string"
                },
                "name": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "name",
                "digest"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "provisioners": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                  "type": "string"
                },
                "image": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "step": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "step",
                "image"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "attestation",
          "bundle",
          "provisioners"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The code that a deployment deployed.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The repository, for example `acme/api`.",
          "field": "repo",
          "name": "repo",
          "required": false,
          "type": "string"
        },
        {
          "description": "The branch or tag.",
          "field": "ref",
          "name": "ref",
          "required": false,
          "type": "string"
        },
        {
          "description": "The commit.",
          "field": "commit",
          "name": "commit",
          "required": true,
          "type": "string"
        },
        {
          "description": "The commit's author.",
          "field": "author",
          "name": "author",
          "required": false,
          "type": "string"
        },
        {
          "description": "The commit message, up to 280 characters.",
          "field": "message",
          "name": "message",
          "required": false,
          "type": "string"
        },
        {
          "description": "An http or https link to the commit.",
          "field": "url",
          "name": "url",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/source",
      "key_segments": [],
      "name": "deployment.source",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/source.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "author": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "commit": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "message": {
            "maxLength": 280,
            "type": "string"
          },
          "ref": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "repo": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "url": {
            "maxLength": 2048,
            "pattern": "^https?://[^\\s]+(?![\\s\\S])",
            "type": "string"
          }
        },
        "required": [
          "commit"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The state lock that a deployment held.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "`acquired`, `released`, or `force_unlocked`.",
          "field": "status",
          "name": "status",
          "required": true,
          "type": "string"
        },
        {
          "description": "Who holds the lock.",
          "field": "holder",
          "name": "holder",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/state_lock",
      "key_segments": [],
      "name": "deployment.state_lock",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/state_lock.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "holder": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "status": {
            "enum": [
              "acquired",
              "released",
              "force_unlocked"
            ]
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tool",
          "status"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "How one step of a deployment ran.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "`plan`, `apply`, `destroy`, `test`, or `scan`.",
          "field": "action",
          "name": "action",
          "required": true,
          "type": "string"
        },
        {
          "description": "`running`, `succeeded`, `failed`, `skipped`, or `canceled`.",
          "field": "status",
          "name": "status",
          "required": true,
          "type": "string"
        },
        {
          "description": "When the step started (RFC 3339).",
          "field": "started_at",
          "name": "started_at",
          "required": false,
          "type": "string"
        },
        {
          "description": "When the step finished (RFC 3339).",
          "field": "finished_at",
          "name": "finished_at",
          "required": false,
          "type": "string"
        },
        {
          "description": "How long the step ran, in seconds.",
          "field": "duration_s",
          "name": "duration_s",
          "required": false,
          "type": "number"
        },
        {
          "description": "The exit code of the tool.",
          "field": "exit_code",
          "name": "exit_code",
          "required": false,
          "type": "integer"
        },
        {
          "description": "A short summary, up to 280 characters.",
          "field": "message",
          "name": "message",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/step/{step}",
      "key_segments": [
        "step"
      ],
      "name": "deployment.step",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/step.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "action": {
            "enum": [
              "plan",
              "apply",
              "destroy",
              "test",
              "scan"
            ]
          },
          "duration_s": {
            "minimum": 0,
            "type": "number"
          },
          "exit_code": {
            "type": "integer"
          },
          "finished_at": {
            "format": "date-time",
            "type": "string"
          },
          "message": {
            "maxLength": 280,
            "type": "string"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "enum": [
              "running",
              "succeeded",
              "failed",
              "skipped",
              "canceled"
            ]
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tool",
          "action",
          "status"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The test results of a deployment.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of tests that passed.",
          "field": "passed",
          "name": "passed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of tests that failed.",
          "field": "failed",
          "name": "failed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of tests that were skipped.",
          "field": "skipped",
          "name": "skipped",
          "required": false,
          "type": "integer"
        },
        {
          "description": "How long the tests ran, in seconds.",
          "field": "duration_s",
          "name": "duration_s",
          "required": false,
          "type": "number"
        }
      ],
      "key": "md/v1/tests",
      "key_segments": [],
      "name": "deployment.tests",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/tests.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "duration_s": {
            "minimum": 0,
            "type": "number"
          },
          "failed": {
            "minimum": 0,
            "type": "integer"
          },
          "passed": {
            "minimum": 0,
            "type": "integer"
          },
          "skipped": {
            "minimum": 0,
            "type": "integer"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tool",
          "passed",
          "failed"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The findings of an image or package scan in a deployment.",
      "entity": "deployment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": true,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The image or package that was scanned.",
          "field": "target",
          "name": "target",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of findings by severity: `critical`, `high`, `medium`, and `low`.",
          "field": "severity",
          "name": "severity",
          "required": true,
          "type": "object"
        },
        {
          "description": "The number of findings with a fix.",
          "field": "fixable",
          "name": "fixable",
          "required": false,
          "type": "integer"
        }
      ],
      "key": "md/v1/vulnerabilities",
      "key_segments": [],
      "name": "deployment.vulnerabilities",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/vulnerabilities.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "fixable": {
            "minimum": 0,
            "type": "integer"
          },
          "severity": {
            "additionalProperties": false,
            "properties": {
              "critical": {
                "minimum": 0,
                "type": "integer"
              },
              "high": {
                "minimum": 0,
                "type": "integer"
              },
              "low": {
                "minimum": 0,
                "type": "integer"
              },
              "medium": {
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "critical",
              "high",
              "medium",
              "low"
            ],
            "type": "object"
          },
          "target": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "tool",
          "severity"
        ],
        "type": "object"
      },
      "scope": "deployment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "A message across the top of an environment.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "The message.",
          "field": "message",
          "name": "message",
          "required": true,
          "type": "string"
        },
        {
          "description": "`info`, `warning`, or `error`. The UI uses `info` when it is not set.",
          "field": "level",
          "name": "level",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/banner",
      "key_segments": [],
      "name": "environment.banner",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/banner.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "level": {
            "enum": [
              "info",
              "warning",
              "error"
            ]
          },
          "message": {
            "maxLength": 280,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "message"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "Links in the header of an environment, such as a dashboard or a runbook.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "Up to 8 links, each with a `label` and an http or https `url`.",
          "field": "links",
          "name": "links",
          "required": true,
          "type": "array"
        }
      ],
      "key": "md/v1/links",
      "key_segments": [],
      "name": "environment.header_link",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/links.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "links": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "label": {
                  "maxLength": 40,
                  "minLength": 1,
                  "type": "string"
                },
                "url": {
                  "maxLength": 2048,
                  "pattern": "^https?://[^\\s]+(?![\\s\\S])",
                  "type": "string"
                }
              },
              "required": [
                "label",
                "url"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "links"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "A leaderboard of people on an environment, best first, with an optional title.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "The card's title, up to 64 characters.",
          "field": "title",
          "name": "title",
          "required": false,
          "type": "string"
        },
        {
          "description": "Up to 25 people, in order. Each has any of a `name`, an http or https `image_url`, an `email`, and `handles` such as `slack:@jo` or `github:jo`.",
          "field": "entries",
          "name": "entries",
          "required": true,
          "type": "array"
        }
      ],
      "key": "md/v1/leaderboard",
      "key_segments": [],
      "name": "environment.leaderboard",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/leaderboard.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "entries": {
            "items": {
              "additionalProperties": false,
              "minProperties": 1,
              "properties": {
                "email": {
                  "maxLength": 254,
                  "pattern": "^[^@\\s?&#%/,;<>\"]+@[^@\\s?&#%/,;<>\"]+(?![\\s\\S])",
                  "type": "string"
                },
                "handles": {
                  "items": {
                    "maxLength": 128,
                    "pattern": "^[a-z0-9][a-z0-9_-]*:\\S+(?![\\s\\S])",
                    "type": "string"
                  },
                  "maxItems": 10,
                  "minItems": 1,
                  "type": "array"
                },
                "image_url": {
                  "maxLength": 2048,
                  "pattern": "^https?://[^\\s]+(?![\\s\\S])",
                  "type": "string"
                },
                "name": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "\\S",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "maxItems": 25,
            "minItems": 1,
            "type": "array"
          },
          "title": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "entries"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "A short notice that something happened to an environment. It is shown to everyone who can view the environment's stash until it expires. Massdriver sets it when an environment is created, and when a deployment in the environment is proposed, approved, started, or completed. A new notice replaces the one before it.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "The notice, up to 280 characters.",
          "field": "message",
          "name": "message",
          "required": true,
          "type": "string"
        },
        {
          "description": "What happened: `project.created`, `environment.created`, or a deployment that was proposed, approved, started, or completed (`deployment.proposed`, `deployment.approved`, `deployment.started`, `deployment.completed`).",
          "field": "kind",
          "name": "kind",
          "required": true,
          "type": "string"
        },
        {
          "description": "The project, environment, or instance the notice is about: its `kind`, `id`, and `name`. A deployment notice is about the instance that is deployed.",
          "field": "entity",
          "name": "entity",
          "required": true,
          "type": "object"
        },
        {
          "description": "The project: its `id` and `name`.",
          "field": "project",
          "name": "project",
          "required": true,
          "type": "object"
        },
        {
          "description": "Who acted: a `kind` of `user`, `service_account`, or `system`, and a `name`.",
          "field": "actor",
          "name": "actor",
          "required": false,
          "type": "object"
        },
        {
          "description": "When it happened (RFC 3339).",
          "field": "created_at",
          "name": "created_at",
          "required": true,
          "type": "string"
        }
      ],
      "key": "md/v1/ui-ephemeral-notice",
      "key_segments": [],
      "name": "environment.notice",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "actor": {
            "additionalProperties": false,
            "properties": {
              "kind": {
                "enum": [
                  "user",
                  "service_account",
                  "system"
                ]
              },
              "name": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ],
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "entity": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "enum": [
                  "project",
                  "environment",
                  "instance"
                ]
              },
              "name": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "kind",
              "id",
              "name"
            ],
            "type": "object"
          },
          "kind": {
            "enum": [
              "project.created",
              "environment.created",
              "deployment.proposed",
              "deployment.approved",
              "deployment.started",
              "deployment.completed"
            ]
          },
          "message": {
            "maxLength": 280,
            "minLength": 1,
            "type": "string"
          },
          "project": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "name": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "type": "object"
          }
        },
        "required": [
          "message",
          "kind",
          "entity",
          "project",
          "created_at"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "Who is on call for an environment, in order, with an optional title.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "The card's title, up to 64 characters.",
          "field": "title",
          "name": "title",
          "required": false,
          "type": "string"
        },
        {
          "description": "Up to 25 people, in order. Each has any of a `name`, an http or https `image_url`, an `email`, and `handles` such as `slack:@jo` or `github:jo`.",
          "field": "entries",
          "name": "entries",
          "required": true,
          "type": "array"
        }
      ],
      "key": "md/v1/oncall",
      "key_segments": [],
      "name": "environment.oncall",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/oncall.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "entries": {
            "items": {
              "additionalProperties": false,
              "minProperties": 1,
              "properties": {
                "email": {
                  "maxLength": 254,
                  "pattern": "^[^@\\s?&#%/,;<>\"]+@[^@\\s?&#%/,;<>\"]+(?![\\s\\S])",
                  "type": "string"
                },
                "handles": {
                  "items": {
                    "maxLength": 128,
                    "pattern": "^[a-z0-9][a-z0-9_-]*:\\S+(?![\\s\\S])",
                    "type": "string"
                  },
                  "maxItems": 10,
                  "minItems": 1,
                  "type": "array"
                },
                "image_url": {
                  "maxLength": 2048,
                  "pattern": "^https?://[^\\s]+(?![\\s\\S])",
                  "type": "string"
                },
                "name": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "\\S",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "maxItems": 25,
            "minItems": 1,
            "type": "array"
          },
          "title": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "entries"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The groups that own an environment.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "Up to 50 groups that own it, each with an `id` and a `name`. Empty when no group owns it.",
          "field": "groups",
          "name": "groups",
          "required": true,
          "type": "array"
        },
        {
          "description": "The number of people in those groups.",
          "field": "members",
          "name": "members",
          "required": true,
          "type": "integer"
        }
      ],
      "key": "md/v1/ownership",
      "key_segments": [],
      "name": "environment.ownership",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/ownership.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "groups": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "members": {
            "minimum": 0,
            "type": "integer"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "groups",
          "members"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "How the configuration of an environment differs from a reference environment.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The ID of the environment this one is compared to, for example `ecomm-prod`.",
          "field": "reference_environment",
          "name": "reference_environment",
          "required": true,
          "type": "string"
        },
        {
          "description": "The number of differences.",
          "field": "differences",
          "name": "differences",
          "required": true,
          "type": "integer"
        },
        {
          "description": "When the check ran (RFC 3339).",
          "field": "checked_at",
          "name": "checked_at",
          "required": true,
          "type": "string"
        },
        {
          "description": "Up to 50 differences, each with the `instance` ID, the `field` that differs, and a `message` up to 280 characters.",
          "field": "items",
          "name": "items",
          "required": false,
          "type": "array"
        }
      ],
      "key": "md/v1/parity",
      "key_segments": [],
      "name": "environment.parity",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/parity.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "checked_at": {
            "format": "date-time",
            "type": "string"
          },
          "differences": {
            "minimum": 0,
            "type": "integer"
          },
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "field": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "instance": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "message": {
                  "maxLength": 280,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "instance",
                "field",
                "message"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "reference_environment": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "reference_environment",
          "differences",
          "checked_at"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "A scorecard rolled up over the instances of an environment: the number of instances at each level, and the lowest level. The `scorecard` segment names the scorecard.",
      "entity": "environment",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The level of the scorecard, up to 32 characters.",
          "field": "level",
          "name": "level",
          "required": true,
          "type": "string"
        },
        {
          "description": "The score, from 0 to 100.",
          "field": "score",
          "name": "score",
          "required": false,
          "type": "number"
        },
        {
          "description": "The number of instances that were scored.",
          "field": "instances",
          "name": "instances",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of instances at each level, by level name, for up to 10 levels.",
          "field": "levels",
          "name": "levels",
          "required": true,
          "type": "object"
        },
        {
          "description": "The lowest level of any instance.",
          "field": "lowest_level",
          "name": "lowest_level",
          "required": true,
          "type": "string"
        },
        {
          "description": "When the scorecard was scored (RFC 3339).",
          "field": "evaluated_at",
          "name": "evaluated_at",
          "required": true,
          "type": "string"
        }
      ],
      "key": "md/v1/scorecard/{scorecard}",
      "key_segments": [
        "scorecard"
      ],
      "name": "environment.scorecard",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "evaluated_at": {
            "format": "date-time",
            "type": "string"
          },
          "instances": {
            "minimum": 0,
            "type": "integer"
          },
          "level": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "levels": {
            "additionalProperties": {
              "minimum": 0,
              "type": "integer"
            },
            "maxProperties": 10,
            "propertyNames": {
              "maxLength": 32,
              "minLength": 1,
              "type": "string"
            },
            "type": "object"
          },
          "lowest_level": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "score": {
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "level",
          "instances",
          "levels",
          "lowest_level",
          "evaluated_at"
        ],
        "type": "object"
      },
      "scope": "environment",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "How often an instance was deployed in a window of days, and how those deployments ended.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of days, up to now, that the counts cover.",
          "field": "window_days",
          "name": "window_days",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of deployments.",
          "field": "deployments",
          "name": "deployments",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of deployments that failed.",
          "field": "failed",
          "name": "failed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of deployments that went back to an earlier version.",
          "field": "rolled_back",
          "name": "rolled_back",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The part of the deployments that failed, from 0 to 1.",
          "field": "failure_rate",
          "name": "failure_rate",
          "required": false,
          "type": "number"
        },
        {
          "description": "The median time a deployment ran, in seconds.",
          "field": "median_duration_seconds",
          "name": "median_duration_seconds",
          "required": false,
          "type": "number"
        },
        {
          "description": "How the last deployment ended: `completed`, `failed`, `aborted`, or `rejected`.",
          "field": "last_status",
          "name": "last_status",
          "required": false,
          "type": "string"
        },
        {
          "description": "When the last deployment that completed finished (RFC 3339).",
          "field": "last_completed_at",
          "name": "last_completed_at",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of deployments that a service account started.",
          "field": "automated",
          "name": "automated",
          "required": true,
          "type": "integer"
        }
      ],
      "key": "md/v1/delivery",
      "key_segments": [],
      "name": "instance.delivery",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/delivery.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "automated": {
            "minimum": 0,
            "type": "integer"
          },
          "deployments": {
            "minimum": 0,
            "type": "integer"
          },
          "failed": {
            "minimum": 0,
            "type": "integer"
          },
          "failure_rate": {
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          },
          "last_completed_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_status": {
            "enum": [
              "completed",
              "failed",
              "aborted",
              "rejected"
            ]
          },
          "median_duration_seconds": {
            "minimum": 0,
            "type": "number"
          },
          "rolled_back": {
            "minimum": 0,
            "type": "integer"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "window_days": {
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "window_days",
          "deployments",
          "failed",
          "rolled_back",
          "automated"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "Whether an instance's real infrastructure matches its configuration.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "`none`, `detected`, or `unknown`.",
          "field": "status",
          "name": "status",
          "required": true,
          "type": "string"
        },
        {
          "description": "The number of resources that drifted.",
          "field": "resources",
          "name": "resources",
          "required": false,
          "type": "integer"
        },
        {
          "description": "When drift was checked (RFC 3339).",
          "field": "checked_at",
          "name": "checked_at",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/drift",
      "key_segments": [],
      "name": "instance.drift",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/drift.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "checked_at": {
            "format": "date-time",
            "type": "string"
          },
          "resources": {
            "minimum": 0,
            "type": "integer"
          },
          "status": {
            "enum": [
              "none",
              "detected",
              "unknown"
            ]
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "How far the bundle version of an instance is behind the latest version of its bundle.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The bundle version the instance runs.",
          "field": "version",
          "name": "version",
          "required": true,
          "type": "string"
        },
        {
          "description": "The latest version of the bundle.",
          "field": "latest",
          "name": "latest",
          "required": true,
          "type": "string"
        },
        {
          "description": "The number of bundle versions between the two. 0 when the instance runs the latest.",
          "field": "behind",
          "name": "behind",
          "required": true,
          "type": "integer"
        },
        {
          "description": "When the latest version was published (RFC 3339).",
          "field": "latest_published_at",
          "name": "latest_published_at",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of days since the first version newer than the instance's was published.",
          "field": "days_behind",
          "name": "days_behind",
          "required": false,
          "type": "integer"
        }
      ],
      "key": "md/v1/freshness",
      "key_segments": [],
      "name": "instance.freshness",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/freshness.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "behind": {
            "minimum": 0,
            "type": "integer"
          },
          "days_behind": {
            "minimum": 0,
            "type": "integer"
          },
          "latest": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "latest_published_at": {
            "format": "date-time",
            "type": "string"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "version": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "version",
          "latest",
          "behind"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The cloud resources that an instance manages.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that listed the resources, for example `opentofu`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The tool's version.",
          "field": "tool_version",
          "name": "tool_version",
          "required": false,
          "type": "string"
        },
        {
          "description": "The signed attestation this value summarizes: its `digest`, whether Massdriver `verified` its signature, and its `predicate_type`, `signed_at`, and `signer`.",
          "field": "attestation",
          "name": "attestation",
          "required": false,
          "type": "object"
        },
        {
          "description": "The ID of the deployment that the resources come from.",
          "field": "deployment",
          "name": "deployment",
          "required": false,
          "type": "string"
        },
        {
          "description": "Up to 1,000 cloud resources. Each has a `type`, such as `aws_s3_bucket`, and a `name`, such as `logs`. A resource can also have its cloud `id`, such as an ARN, and its `key`: the `for_each` key or the `count` index that tells resources with the same type and name apart. It can also have the `digest` of its configuration, so two inventories show which resources changed.",
          "field": "resources",
          "name": "resources",
          "required": true,
          "type": "array"
        }
      ],
      "key": "md/v1/inventory",
      "key_segments": [],
      "name": "instance.inventory",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/inventory.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "attestation": {
            "additionalProperties": false,
            "properties": {
              "digest": {
                "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                "type": "string"
              },
              "predicate_type": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "signed_at": {
                "format": "date-time",
                "type": "string"
              },
              "signer": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "verified": {
                "type": "boolean"
              }
            },
            "required": [
              "digest",
              "verified"
            ],
            "type": "object"
          },
          "deployment": {
            "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?![\\s\\S])",
            "type": "string"
          },
          "resources": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^(sha256:[a-f0-9]{64}|sha512:[a-f0-9]{128})(?![\\s\\S])",
                  "type": "string"
                },
                "id": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "key": {
                  "maxLength": 255,
                  "minLength": 1,
                  "minimum": 0,
                  "type": [
                    "string",
                    "integer"
                  ]
                },
                "name": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "type": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "type",
                "name"
              ],
              "type": "object"
            },
            "maxItems": 1000,
            "type": "array"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "tool_version": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "resources"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "Whether an instance has configuration changes that are not deployed.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "True when the configuration changed after the last deployment.",
          "field": "changed",
          "name": "changed",
          "required": true,
          "type": "boolean"
        },
        {
          "description": "When the configuration last changed (RFC 3339).",
          "field": "changed_at",
          "name": "changed_at",
          "required": false,
          "type": "string"
        },
        {
          "description": "When the instance was last deployed (RFC 3339).",
          "field": "deployed_at",
          "name": "deployed_at",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/pending",
      "key_segments": [],
      "name": "instance.pending",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/pending.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "changed": {
            "type": "boolean"
          },
          "changed_at": {
            "format": "date-time",
            "type": "string"
          },
          "deployed_at": {
            "format": "date-time",
            "type": "string"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "changed"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "What runs on an instance now.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The version that runs.",
          "field": "version",
          "name": "version",
          "required": true,
          "type": "string"
        },
        {
          "description": "The image that runs.",
          "field": "image",
          "name": "image",
          "required": false,
          "type": "string"
        },
        {
          "description": "When it was deployed (RFC 3339).",
          "field": "deployed_at",
          "name": "deployed_at",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/release",
      "key_segments": [],
      "name": "instance.release",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/release.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "deployed_at": {
            "format": "date-time",
            "type": "string"
          },
          "image": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "version": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "version"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "How often the alarms of an instance fired in a window of days, and how fast they recovered.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The number of days, up to now, that the counts cover.",
          "field": "window_days",
          "name": "window_days",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of alarms on the instance.",
          "field": "alarms",
          "name": "alarms",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of alarms that fire now.",
          "field": "firing",
          "name": "firing",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of times an alarm fired.",
          "field": "incidents",
          "name": "incidents",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The time that any alarm was firing, in seconds.",
          "field": "seconds_in_alarm",
          "name": "seconds_in_alarm",
          "required": true,
          "type": "number"
        },
        {
          "description": "The median time from an alarm firing to its recovery, in seconds.",
          "field": "median_recovery_seconds",
          "name": "median_recovery_seconds",
          "required": false,
          "type": "number"
        },
        {
          "description": "When an alarm last fired (RFC 3339).",
          "field": "last_fired_at",
          "name": "last_fired_at",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/reliability",
      "key_segments": [],
      "name": "instance.reliability",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/reliability.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "alarms": {
            "minimum": 0,
            "type": "integer"
          },
          "firing": {
            "minimum": 0,
            "type": "integer"
          },
          "incidents": {
            "minimum": 0,
            "type": "integer"
          },
          "last_fired_at": {
            "format": "date-time",
            "type": "string"
          },
          "median_recovery_seconds": {
            "minimum": 0,
            "type": "number"
          },
          "seconds_in_alarm": {
            "minimum": 0,
            "type": "number"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "window_days": {
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "window_days",
          "alarms",
          "firing",
          "incidents",
          "seconds_in_alarm"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The result of a scorecard's checks on an instance: its level, its score, and each check. The `scorecard` segment names the scorecard.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The level, up to 32 characters.",
          "field": "level",
          "name": "level",
          "required": true,
          "type": "string"
        },
        {
          "description": "The score, from 0 to 100.",
          "field": "score",
          "name": "score",
          "required": true,
          "type": "number"
        },
        {
          "description": "The number of checks that passed.",
          "field": "passed",
          "name": "passed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of checks that failed.",
          "field": "failed",
          "name": "failed",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of checks that could not be decided, for example because a fact is missing.",
          "field": "unknown",
          "name": "unknown",
          "required": true,
          "type": "integer"
        },
        {
          "description": "Up to 50 checks, each with an `id`, a `status` of `passed`, `failed`, or `unknown`, and an optional `message` up to 280 characters.",
          "field": "checks",
          "name": "checks",
          "required": true,
          "type": "array"
        },
        {
          "description": "When the checks ran (RFC 3339).",
          "field": "evaluated_at",
          "name": "evaluated_at",
          "required": true,
          "type": "string"
        }
      ],
      "key": "md/v1/scorecard/{scorecard}",
      "key_segments": [
        "scorecard"
      ],
      "name": "instance.scorecard",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "checks": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "maxLength": 64,
                  "minLength": 1,
                  "type": "string"
                },
                "message": {
                  "maxLength": 280,
                  "minLength": 1,
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "passed",
                    "failed",
                    "unknown"
                  ]
                }
              },
              "required": [
                "id",
                "status"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "evaluated_at": {
            "format": "date-time",
            "type": "string"
          },
          "failed": {
            "minimum": 0,
            "type": "integer"
          },
          "level": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "passed": {
            "minimum": 0,
            "type": "integer"
          },
          "score": {
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "unknown": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "level",
          "score",
          "passed",
          "failed",
          "unknown",
          "checks",
          "evaluated_at"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "A colored dot on an instance that shows its health.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The word shown with the dot, up to 64 characters, for example `Rolling out`.",
          "field": "state",
          "name": "state",
          "required": true,
          "type": "string"
        },
        {
          "description": "The color of the dot: one of `green`, `amber`, `red`, `blue`, `purple`, `gray`, or a hex color such as `#7C3AED`. Without a color, the dot is green for `healthy`, `ok`, and `up`, amber for `degraded`, `warning`, and `recovering`, red for `down`, `failed`, and `error`, and gray for any other state.",
          "field": "color",
          "name": "color",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/health",
      "key_segments": [],
      "name": "instance.status_dot",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/health.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "color": {
            "anyOf": [
              {
                "enum": [
                  "green",
                  "amber",
                  "red",
                  "blue",
                  "purple",
                  "gray"
                ]
              },
              {
                "pattern": "^#[0-9a-fA-F]{6}(?![\\s\\S])",
                "type": "string"
              }
            ]
          },
          "state": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "state"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "Links for an instance: its docs, its API, and its app.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "An http or https URL of its docs.",
          "field": "docs_url",
          "name": "docs_url",
          "required": false,
          "type": "string"
        },
        {
          "description": "An http or https URL of its API.",
          "field": "api_url",
          "name": "api_url",
          "required": false,
          "type": "string"
        },
        {
          "description": "An http or https URL of its app.",
          "field": "app_url",
          "name": "app_url",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/urls",
      "key_segments": [],
      "name": "instance.urls",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/urls.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "minProperties": 1,
        "properties": {
          "api_url": {
            "maxLength": 2048,
            "pattern": "^https?://[^\\s]+(?![\\s\\S])",
            "type": "string"
          },
          "app_url": {
            "maxLength": 2048,
            "pattern": "^https?://[^\\s]+(?![\\s\\S])",
            "type": "string"
          },
          "docs_url": {
            "maxLength": 2048,
            "pattern": "^https?://[^\\s]+(?![\\s\\S])",
            "type": "string"
          }
        },
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "A bar on an instance that shows how much of a limit is used.",
      "entity": "instance",
      "format": "json",
      "inputs": [
        {
          "description": "The amount used.",
          "field": "value",
          "name": "value",
          "required": true,
          "type": "number"
        },
        {
          "description": "The limit.",
          "field": "max",
          "name": "max",
          "required": true,
          "type": "number"
        },
        {
          "description": "Text shown with the bar.",
          "field": "label",
          "name": "label",
          "required": false,
          "type": "string"
        }
      ],
      "key": "md/v1/usage",
      "key_segments": [],
      "name": "instance.usage_bar",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/usage.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "label": {
            "maxLength": 64,
            "type": "string"
          },
          "max": {
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "value": {
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "value",
          "max"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The traffic on the links that leave an instance. The key is on the instance that sends the traffic.",
      "entity": "link",
      "format": "json",
      "inputs": [
        {
          "description": "Requests per second.",
          "field": "rps",
          "name": "rate",
          "required": true,
          "type": "number"
        },
        {
          "description": "Errors in the last five minutes.",
          "field": "errors_5m",
          "name": "errors",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The 95th percentile response time, in milliseconds.",
          "field": "p95_ms",
          "name": "latency",
          "required": false,
          "type": "number"
        }
      ],
      "key": "md/v1/traffic",
      "key_segments": [],
      "name": "link.traffic",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/traffic.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "errors_5m": {
            "minimum": 0,
            "type": "integer"
          },
          "p95_ms": {
            "minimum": 0,
            "type": "number"
          },
          "rps": {
            "minimum": 0,
            "type": "number"
          }
        },
        "required": [
          "rps",
          "errors_5m"
        ],
        "type": "object"
      },
      "scope": "instance",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "Turns a seasonal easter egg on or off in a project. The `egg` segment names the easter egg.",
      "entity": "project",
      "format": "text",
      "inputs": [
        {
          "description": "`on` or `off`.",
          "field": null,
          "name": "state",
          "required": true,
          "type": "string"
        }
      ],
      "key": "md/v1/eggs/{egg}",
      "key_segments": [
        "egg"
      ],
      "name": "project.egg",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/eggs.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "enum": [
          "on",
          "off"
        ]
      },
      "scope": "project",
      "segment_values": {
        "egg": [
          "xmas",
          "spooky",
          "lanterns",
          "fireworks",
          "spring"
        ]
      },
      "version": 1
    },
    {
      "description": "A short notice that something happened to a project. It is shown to everyone who can view the project's stash until it expires. Massdriver sets it when a project is created.",
      "entity": "project",
      "format": "json",
      "inputs": [
        {
          "description": "The notice, up to 280 characters.",
          "field": "message",
          "name": "message",
          "required": true,
          "type": "string"
        },
        {
          "description": "What happened: `project.created`, `environment.created`, or a deployment that was proposed, approved, started, or completed (`deployment.proposed`, `deployment.approved`, `deployment.started`, `deployment.completed`).",
          "field": "kind",
          "name": "kind",
          "required": true,
          "type": "string"
        },
        {
          "description": "The project, environment, or instance the notice is about: its `kind`, `id`, and `name`. A deployment notice is about the instance that is deployed.",
          "field": "entity",
          "name": "entity",
          "required": true,
          "type": "object"
        },
        {
          "description": "The project: its `id` and `name`.",
          "field": "project",
          "name": "project",
          "required": true,
          "type": "object"
        },
        {
          "description": "Who acted: a `kind` of `user`, `service_account`, or `system`, and a `name`.",
          "field": "actor",
          "name": "actor",
          "required": false,
          "type": "object"
        },
        {
          "description": "When it happened (RFC 3339).",
          "field": "created_at",
          "name": "created_at",
          "required": true,
          "type": "string"
        }
      ],
      "key": "md/v1/ui-ephemeral-notice",
      "key_segments": [],
      "name": "project.notice",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/ui-ephemeral-notice.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "actor": {
            "additionalProperties": false,
            "properties": {
              "kind": {
                "enum": [
                  "user",
                  "service_account",
                  "system"
                ]
              },
              "name": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "kind",
              "name"
            ],
            "type": "object"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "entity": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "enum": [
                  "project",
                  "environment",
                  "instance"
                ]
              },
              "name": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "kind",
              "id",
              "name"
            ],
            "type": "object"
          },
          "kind": {
            "enum": [
              "project.created",
              "environment.created",
              "deployment.proposed",
              "deployment.approved",
              "deployment.started",
              "deployment.completed"
            ]
          },
          "message": {
            "maxLength": 280,
            "minLength": 1,
            "type": "string"
          },
          "project": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "name": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ],
            "type": "object"
          }
        },
        "required": [
          "message",
          "kind",
          "entity",
          "project",
          "created_at"
        ],
        "type": "object"
      },
      "scope": "project",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "The groups that own a project.",
      "entity": "project",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "Up to 50 groups that own it, each with an `id` and a `name`. Empty when no group owns it.",
          "field": "groups",
          "name": "groups",
          "required": true,
          "type": "array"
        },
        {
          "description": "The number of people in those groups.",
          "field": "members",
          "name": "members",
          "required": true,
          "type": "integer"
        }
      ],
      "key": "md/v1/ownership",
      "key_segments": [],
      "name": "project.ownership",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/ownership.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "groups": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "type": "array"
          },
          "members": {
            "minimum": 0,
            "type": "integer"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "groups",
          "members"
        ],
        "type": "object"
      },
      "scope": "project",
      "segment_values": {},
      "version": 1
    },
    {
      "description": "A scorecard rolled up over the instances of a project: the number of instances at each level, and the lowest level. The `scorecard` segment names the scorecard.",
      "entity": "project",
      "format": "json",
      "inputs": [
        {
          "description": "The tool that wrote the value, for example `scorecards`.",
          "field": "tool",
          "name": "tool",
          "required": false,
          "type": "string"
        },
        {
          "description": "The level of the scorecard, up to 32 characters.",
          "field": "level",
          "name": "level",
          "required": true,
          "type": "string"
        },
        {
          "description": "The score, from 0 to 100.",
          "field": "score",
          "name": "score",
          "required": false,
          "type": "number"
        },
        {
          "description": "The number of instances that were scored.",
          "field": "instances",
          "name": "instances",
          "required": true,
          "type": "integer"
        },
        {
          "description": "The number of instances at each level, by level name, for up to 10 levels.",
          "field": "levels",
          "name": "levels",
          "required": true,
          "type": "object"
        },
        {
          "description": "The lowest level of any instance.",
          "field": "lowest_level",
          "name": "lowest_level",
          "required": true,
          "type": "string"
        },
        {
          "description": "When the scorecard was scored (RFC 3339).",
          "field": "evaluated_at",
          "name": "evaluated_at",
          "required": true,
          "type": "string"
        }
      ],
      "key": "md/v1/scorecard/{scorecard}",
      "key_segments": [
        "scorecard"
      ],
      "name": "project.scorecard",
      "schema": {
        "$id": "https://schemas.massdriver.cloud/stash/md/v1/scorecard-rollup.json",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "evaluated_at": {
            "format": "date-time",
            "type": "string"
          },
          "instances": {
            "minimum": 0,
            "type": "integer"
          },
          "level": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "levels": {
            "additionalProperties": {
              "minimum": 0,
              "type": "integer"
            },
            "maxProperties": 10,
            "propertyNames": {
              "maxLength": 32,
              "minLength": 1,
              "type": "string"
            },
            "type": "object"
          },
          "lowest_level": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "score": {
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "tool": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "level",
          "instances",
          "levels",
          "lowest_level",
          "evaluated_at"
        ],
        "type": "object"
      },
      "scope": "project",
      "segment_values": {},
      "version": 1
    }
  ]
}
