All contracts

Workspace Intelligence / JSON Schema

RapidKit Fact Freshness Contract

Defines the versioned fact freshness v1 boundary used by Workspai and its consumers.

Schema version
rapidkit-fact-freshness-v1
Contract path
contracts/workspace-intelligence/fact-freshness.v1.json
Publication
json-schema
Defined fields
12
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
  • Workspace Intelligence consumers
  • IDEs and agents

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
categoryenumYesDefines the category value at this contract boundary.enum: structure, verification, state
expiresAtstringNoDefines the expiresat value at this contract boundary.format: date-time
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
inputsHashstringNoDefines the inputshash value at this contract boundary.
kindenumYesDefines the kind value at this contract boundary.enum: durable, derived, evidence-backed, live, verify-before-use
reasonstringYesDefines the reason value at this contract boundary.
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "rapidkit-fact-freshness-v1"
sourceArtifactstringNoDefines the sourceartifact value at this contract boundary.
sourcePathstringNoDefines the sourcepath value at this contract boundary.
statusenumYesDefines the status value at this contract boundary.enum: fresh, stale, unknown
ttlSecondsinteger | nullYesDefines the ttlseconds value at this contract boundary.minimum: 0
verifyBeforeUsebooleanYesDefines the verifybeforeuse value at this contract boundary.

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/fact-freshness.v1.json",
  "title": "RapidKit Fact Freshness Contract",
  "type": "object",
  "required": [
    "schemaVersion",
    "kind",
    "category",
    "generatedAt",
    "ttlSeconds",
    "status",
    "verifyBeforeUse",
    "reason"
  ],
  "properties": {
    "schemaVersion": {
      "const": "rapidkit-fact-freshness-v1"
    },
    "kind": {
      "enum": [
        "durable",
        "derived",
        "evidence-backed",
        "live",
        "verify-before-use"
      ]
    },
    "category": {
      "enum": [
        "structure",
        "verification",
        "state"
      ]
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "ttlSeconds": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "enum": [
        "fresh",
        "stale",
        "unknown"
      ]
    },
    "verifyBeforeUse": {
      "type": "boolean"
    },
    "sourceArtifact": {
      "type": "string"
    },
    "sourcePath": {
      "type": "string"
    },
    "inputsHash": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    }
  },
  "additionalProperties": false
}