All contracts

Evidence and release gates / JSON Schema

RapidKit Analyze Last Run Evidence

Defines the versioned analyze last run v1 boundary used by Workspai and its consumers.

Schema version
rapidkit-analyze-v1
Contract path
contracts/analyze-last-run.v1.json
Publication
embedded-type
Defined fields
33
Artifact bindings
1

Why this contract exists

Architecture role

Defines a versioned interoperability boundary used by Workspai and contract-aware consumers.

Consumption boundary

  • Workspai CLI
  • Contract-aware integrations

Related commands

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

Produced artifacts

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

Artifact pathSchemaProducer
.workspai/reports/analyze-last-run.jsonrapidkit-analyze-v1
workspai analyze --json

Field reference

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

Field pathTypeRequiredMeaningConstraints
dependencyGraphobjectNoDefines the dependencygraph value at this contract boundary.additionalProperties: true
dependencyGraph.edgesarrayNoDefines the edges value at this contract boundary.
dependencyGraph.statusenumNoDefines the status value at this contract boundary.enum: generated, empty
dependencyGraph.topImpactedProjectsarrayNoDefines the topimpactedprojects value at this contract boundary.
enterpriseControlsobjectYesDefines the enterprisecontrols value at this contract boundary.additionalProperties: true
enterpriseControls.ciGateCommandstringYesDefines the cigatecommand value at this contract boundary.
enterpriseControls.evidencePathstringYesDefines the evidencepath value at this contract boundary.
enterpriseControls.jsonReadybooleanYesDefines the jsonready value at this contract boundary.
enterpriseControls.releaseGateCommandstringYesDefines the releasegatecommand value at this contract boundary.
findingsarrayYesDefines the findings value at this contract boundary.
findings[].detailstringYesDefines the detail value at this contract boundary.
findings[].idstringYesDefines the id value at this contract boundary.
findings[].remediationstringYesDefines the remediation value at this contract boundary.
findings[].severityenumYesDefines the severity value at this contract boundary.enum: info, warn, fail
findings[].targetstringYesDefines the target value at this contract boundary.
findings[].titlestringYesDefines the title value at this contract boundary.
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
nextActionsarrayNoDefines the nextactions value at this contract boundary.
profilestring | nullNoDefines the profile value at this contract boundary.
projectsarrayYesDefines the projects value at this contract boundary.
runtimesobjectNoDefines the runtimes value at this contract boundary.
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "rapidkit-analyze-v1"
summaryobjectYesDefines the summary value at this contract boundary.additionalProperties: true
summary.findingsobjectYesDefines the findings value at this contract boundary.additionalProperties: true
summary.findings.failintegerYesDefines the fail value at this contract boundary.minimum: 0
summary.findings.infointegerYesDefines the info value at this contract boundary.minimum: 0
summary.findings.warnintegerYesDefines the warn value at this contract boundary.minimum: 0
summary.projectCountintegerYesDefines the projectcount value at this contract boundary.minimum: 0
summary.runtimeCountintegerYesDefines the runtimecount value at this contract boundary.minimum: 0
summary.scorenumberYesDefines the score value at this contract boundary.
summary.verdictenumYesDefines the verdict value at this contract boundary.enum: ready, needs-attention, blocked
workspaceDetectedbooleanYesDefines the workspacedetected value at this contract boundary.
workspacePathstringYesDefines the workspacepath value at this contract boundary.minLength: 1

Canonical machine-readable definition

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

Show raw JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://getrapidkit.com/schemas/analyze-last-run.v1.json",
  "title": "RapidKit Analyze Last Run Evidence",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "workspacePath",
    "workspaceDetected",
    "summary",
    "projects",
    "findings",
    "enterpriseControls"
  ],
  "properties": {
    "schemaVersion": {
      "const": "rapidkit-analyze-v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "workspacePath": {
      "type": "string",
      "minLength": 1
    },
    "workspaceDetected": {
      "type": "boolean"
    },
    "profile": {
      "type": [
        "string",
        "null"
      ]
    },
    "summary": {
      "type": "object",
      "required": [
        "score",
        "verdict",
        "projectCount",
        "runtimeCount",
        "findings"
      ],
      "properties": {
        "score": {
          "type": "number"
        },
        "verdict": {
          "enum": [
            "ready",
            "needs-attention",
            "blocked"
          ]
        },
        "projectCount": {
          "type": "integer",
          "minimum": 0
        },
        "runtimeCount": {
          "type": "integer",
          "minimum": 0
        },
        "findings": {
          "type": "object",
          "required": [
            "fail",
            "warn",
            "info"
          ],
          "properties": {
            "fail": {
              "type": "integer",
              "minimum": 0
            },
            "warn": {
              "type": "integer",
              "minimum": 0
            },
            "info": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "runtimes": {
      "type": "object",
      "additionalProperties": {
        "type": "integer",
        "minimum": 0
      }
    },
    "projects": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "dependencyGraph": {
      "type": "object",
      "properties": {
        "status": {
          "enum": [
            "generated",
            "empty"
          ]
        },
        "edges": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "topImpactedProjects": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "severity",
          "title",
          "detail",
          "target",
          "remediation"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "severity": {
            "enum": [
              "info",
              "warn",
              "fail"
            ]
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "remediation": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "nextActions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "enterpriseControls": {
      "type": "object",
      "required": [
        "jsonReady",
        "ciGateCommand",
        "releaseGateCommand",
        "evidencePath"
      ],
      "properties": {
        "jsonReady": {
          "type": "boolean"
        },
        "ciGateCommand": {
          "type": "string"
        },
        "releaseGateCommand": {
          "type": "string"
        },
        "evidencePath": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}