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 path | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
| category | enum | Yes | Defines the category value at this contract boundary. | enum: structure, verification, state |
| expiresAt | string | No | Defines the expiresat value at this contract boundary. | format: date-time |
| generatedAt | string | Yes | Defines the generatedat value at this contract boundary. | format: date-time |
| inputsHash | string | No | Defines the inputshash value at this contract boundary. | — |
| kind | enum | Yes | Defines the kind value at this contract boundary. | enum: durable, derived, evidence-backed, live, verify-before-use |
| reason | string | Yes | Defines the reason value at this contract boundary. | — |
| schemaVersion | string | Yes | Defines the schemaversion value at this contract boundary. | const: "rapidkit-fact-freshness-v1" |
| sourceArtifact | string | No | Defines the sourceartifact value at this contract boundary. | — |
| sourcePath | string | No | Defines the sourcepath value at this contract boundary. | — |
| status | enum | Yes | Defines the status value at this contract boundary. | enum: fresh, stale, unknown |
| ttlSeconds | integer | null | Yes | Defines the ttlseconds value at this contract boundary. | minimum: 0 |
| verifyBeforeUse | boolean | Yes | Defines 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
}