Skip to content

Technical Schemas

import { Tabs, TabItem } from ‘@astrojs/starlight/components’;

This reference covers the structured JSON artifacts produced and consumed by the context pipeline.

The Architect produces a task DAG with expanded per-task fields.

PropertyTypeRequirementDescription
tasksarrayRequiredA list of task definitions that form the implementation plan.
contractobjectRequiredStructural definitions (e.g., GraphQL schemas, DB migrations) enforced across all tasks.
validationarrayRequiredGlobal validation rules for the implementation.
cross_cutting_concernsstring[]RequiredConstraints that apply to multiple or all tasks in the plan.
{
"tasks": [ { "id": "task_001", ... } ],
"contract": { "graphql": "type Mutation { ... }" },
"validation": [ "Titles must be > 3 characters" ],
"cross_cutting_concerns": [ "Use existing auth middleware" ]
}
PropertyTypeRequirementDescription
idstringRequiredUnique task identifier (e.g., task_001).
titlestringRequiredConcise name of the task.
descriptionstringRequiredTechnical implementation details.
acceptance_criteriaobject[]RequiredVerifiable conditions for task completion.
depends_onstring[]RequiredList of task IDs that must be completed first.
files_touchedstring[]RequiredPaths to files this task modifies or creates.
{
"id": "task_001",
"title": "Add Search Mutation",
"description": "Implement searchBooks in src/backend/api/resolvers.py",
"acceptance_criteria": [
{ "criterion": "Mutation returns list of books", "verify_by": "test" }
],
"depends_on": [],
"files_touched": ["src/backend/api/resolvers.py"]
}

The Codebase Semantic Graph (CSG) is stored at .speed/context/semantic-graph.json.

PropertyTypeDescription
nodesobject[]Symbol definitions with schema metadata.
edgesobject[]Relationships between symbols (calls, imports, etc.).
clustersobject[]Domain groupings derived from cohesion analysis.
{
"id": "src/backend/models/user.py::User",
"name": "User",
"kind": "class",
"file": "src/backend/models/user.py",
"impact": { "blast_radius": 23, "stability": "bridge" }
}

The Project Map acts as the canonical file registry at .speed/context/project-map.json.

PropertyTypeDescription
generated_atstringISO timestamp of the index build.
git_headstringThe git commit hash at the time of the build.
filesobject[]A list of file entries containing paths, languages, and line counts.
{
"path": "src/backend/models/user.py",
"language": "python",
"lines": 340,
"category": "source"
}

Stored at .speed/features/{feature}/context/spec-alignment.json.

PropertyTypeDescription
claimsobject[]assertions extracted from the spec.
statusenumconfirmed, missing, or divergent.
evidencestringTechnical proof for the status.
{
"source": { "spec_file": "specs/tech/auth.md", "line": 42 },
"claim_type": "entity_defined",
"status": "confirmed",
"evidence": "CSG: User class found at src/backend/models/user.py::User"
}