All contracts

Planning and generation / JSON Schema

Product Factory Plan V1

Defines the versioned product factory plan v1 boundary used by Workspai and its consumers.

Schema version
rapidkit.product-factory-plan.v1
Contract path
contracts/product-factory-plan.v1.json
Publication
json-schema
Defined fields
32
Artifact bindings
0

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.

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

Produced artifacts

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

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

Field reference

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

Field pathTypeRequiredMeaningConstraints
defaultsobjectYesDefines the defaults value at this contract boundary.additionalProperties: false
defaults.kitstringYesDefines the kit value at this contract boundary.minLength: 1
defaults.projectSlugstringYesDefines the projectslug value at this contract boundary.const: "api"
defaults.workspaceProfilestringYesDefines the workspaceprofile value at this contract boundary.const: "enterprise"
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
productsarrayYesDefines the products value at this contract boundary.
products[].categorystringYesDefines the category value at this contract boundary.minLength: 1
products[].moduleGapsarrayYesDefines the modulegaps value at this contract boundary.
products[].modulesarrayYesDefines the modules value at this contract boundary.
products[].ranknumberYesDefines the rank value at this contract boundary.
products[].readinessobjectYesDefines the readiness value at this contract boundary.additionalProperties: false
products[].readiness.blockingGapsarrayYesDefines the blockinggaps value at this contract boundary.
products[].readiness.statusenumYesDefines the status value at this contract boundary.enum: ready-for-private-manifest, blocked-by-module-gaps
products[].recommendedKitstringYesDefines the recommendedkit value at this contract boundary.minLength: 1
products[].slugstringYesDefines the slug value at this contract boundary.minLength: 1
products[].summarystringYesDefines the summary value at this contract boundary.
products[].tierstringYesDefines the tier value at this contract boundary.minLength: 1
products[].titlestringYesDefines the title value at this contract boundary.minLength: 1
products[].workspaceProfilestringYesDefines the workspaceprofile value at this contract boundary.const: "enterprise"
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "rapidkit.product-factory-plan.v1"
sourceobjectYesDefines the source value at this contract boundary.additionalProperties: false
source.backlogPathstringYesDefines the backlogpath value at this contract boundary.minLength: 1
source.backlogSchemaVersionstring | nullYesDefines the backlogschemaversion value at this contract boundary.
source.publicationRulestring | nullYesDefines the publicationrule value at this contract boundary.
source.purposestring | nullYesDefines the purpose value at this contract boundary.
statsobjectYesDefines the stats value at this contract boundary.additionalProperties: false
stats.blockedProductsintegerYesDefines the blockedproducts value at this contract boundary.minimum: 0
stats.knownModuleGapsintegerYesDefines the knownmodulegaps value at this contract boundary.minimum: 0
stats.plannedProductsintegerYesDefines the plannedproducts value at this contract boundary.minimum: 0
stats.readyProductsintegerYesDefines the readyproducts value at this contract boundary.minimum: 0
stats.totalProductsintegerYesDefines the totalproducts value at this contract boundary.minimum: 0
stats.uniqueModulesintegerYesDefines the uniquemodules value at this contract boundary.minimum: 0

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",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "source",
    "defaults",
    "stats",
    "products"
  ],
  "properties": {
    "schemaVersion": {
      "const": "rapidkit.product-factory-plan.v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "source": {
      "type": "object",
      "required": [
        "backlogPath",
        "backlogSchemaVersion",
        "purpose",
        "publicationRule"
      ],
      "properties": {
        "backlogPath": {
          "type": "string",
          "minLength": 1
        },
        "backlogSchemaVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "purpose": {
          "type": [
            "string",
            "null"
          ]
        },
        "publicationRule": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "defaults": {
      "type": "object",
      "required": [
        "kit",
        "workspaceProfile",
        "projectSlug"
      ],
      "properties": {
        "kit": {
          "type": "string",
          "minLength": 1
        },
        "workspaceProfile": {
          "const": "enterprise"
        },
        "projectSlug": {
          "const": "api"
        }
      },
      "additionalProperties": false
    },
    "stats": {
      "type": "object",
      "required": [
        "totalProducts",
        "plannedProducts",
        "readyProducts",
        "blockedProducts",
        "uniqueModules",
        "knownModuleGaps"
      ],
      "properties": {
        "totalProducts": {
          "type": "integer",
          "minimum": 0
        },
        "plannedProducts": {
          "type": "integer",
          "minimum": 0
        },
        "readyProducts": {
          "type": "integer",
          "minimum": 0
        },
        "blockedProducts": {
          "type": "integer",
          "minimum": 0
        },
        "uniqueModules": {
          "type": "integer",
          "minimum": 0
        },
        "knownModuleGaps": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "rank",
          "slug",
          "title",
          "category",
          "tier",
          "summary",
          "modules",
          "moduleGaps",
          "recommendedKit",
          "workspaceProfile",
          "readiness"
        ],
        "properties": {
          "rank": {
            "type": "number"
          },
          "slug": {
            "type": "string",
            "minLength": 1
          },
          "title": {
            "type": "string",
            "minLength": 1
          },
          "category": {
            "type": "string",
            "minLength": 1
          },
          "tier": {
            "type": "string",
            "minLength": 1
          },
          "summary": {
            "type": "string"
          },
          "modules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "moduleGaps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "recommendedKit": {
            "type": "string",
            "minLength": 1
          },
          "workspaceProfile": {
            "const": "enterprise"
          },
          "readiness": {
            "type": "object",
            "required": [
              "status",
              "blockingGaps"
            ],
            "properties": {
              "status": {
                "enum": [
                  "ready-for-private-manifest",
                  "blocked-by-module-gaps"
                ]
              },
              "blockingGaps": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": true
}