Platform / 04 StackBilt Platform

StackBilt Platform

Architect v2 — Active Build. The platform is in its v2 build cycle. Docs reflect the current stable surface; new capabilities are landing continuously.

StackBilt is a governance-enforced architecture planning tool that produces sprint-ready ADRs, deployable scaffolds, and structured artifacts — not vague suggestions.

The 6-Mode Pipeline

Architecture generation runs through six sequential modes. Each mode builds on the previous, with cross-references via sequential IDs.

PhaseModeOutputIDs
DefinitionPRODUCTProduct Requirements DocumentREQ-001, SLA-001, CON-001
DefinitionUXUser journey maps and experience flowsUJ-001
DefinitionRISKRisk assessment and value modelRISK-001
ArchitectureARCHITECTTechnical blueprint: services, schemas, boundariesCOMP-001, DS-001
ExecutionTDDTest strategy per componentTS-001
ExecutionSPRINTSprint-ready ADRs with dependency graphADR-001

Structured Artifacts (v2)

Every mode emits a typed JSON artifact alongside prose. These artifacts use sequential, referenceable IDs that chain across modes:

  • PRODUCT defines REQ-001, SLA-001, CON-001
  • ARCHITECT references reqRefs: ["REQ-001"], riskRefs: ["RISK-001"]
  • TDD validates slaRefs: ["SLA-001"]
  • SPRINT produces ADRs that trace back to components and requirements

Each artifact includes a confidence field with an overall score (0-100) and a missing[] array surfacing what the AI was not told.

Cross-Mode Contradiction Checker

After each mode completes, an incremental checker runs 8 validation rules:

  • Every MUST requirement has a component covering it
  • Every SLA has a validation entry in TDD
  • Every CRITICAL/HIGH risk has a test scenario
  • ARCHITECT doesn’t use technologies RISK marked as blocked
  • Named events appear consistently across modes
  • SPRINT surfaces requirements with no ADR

Results are available via the API as a contradictionReport.

Scaffold Engine

Completed flows can generate a deployable Cloudflare Workers project (9-15 files). The scaffold engine uses category-aware routing:

Component CategoryGenerated File
compute / data / integrationroutes/*.ts (CRUD stubs)
asyncworker/*-queue.ts (queue handlers)
securityworker/middleware/*.ts (auth middleware)
frontendskipped

Template types: workers-crud-api, workers-queue-consumer, workers-durable-object, workers-websocket, workers-cron, pages-static.

Scaffolds include scaffoldHints (template classification + confidence score) and nextSteps (deployment commands).

Governance Integration

When running a governed flow, architecture decisions are validated against blessed patterns via Compass. Violations are flagged depending on governance mode.

ModeBehaviorPlan Tier
PASSIVELog only — never blocksFree
ADVISORYWarn on issues, flow continuesPro
ENFORCEDBlock on FAIL, require remediationEnterprise

Blessed patterns from Compass are injected into the ARCHITECT mode prompt automatically. Governance results (validations, persisted ADR IDs, warnings) are available via getGovernanceStatus.

Advanced Governance Configurations

For Compass route taxonomy and auth/MCP endpoints, see Compass Governance API.

Enterprise plans unlock additional governance options:

  • Domain Locking (domainLock) — Locks domain entities after PRODUCT mode to prevent drift. Supports strictness levels, entity creation controls, and vendor allow/block lists.
  • Per-Mode Quality Thresholds (qualityByMode) — Set different minimum quality scores per execution mode.
  • Quality Weighting (qualityWeighting) — Hybrid local/CSA weighting for quality evaluation.

Plan Tiers & Quotas

Every access key is associated with a plan tier that determines rate limits and feature access.

QuotaFreeProEnterprise
AI calls per day50500Unlimited
Flow runs per day10100Unlimited
Scaffolds per day110Unlimited

AI Model Routing

The platform applies a model policy per request. By default, provider/model selection is tier-aware (with per-request overrides and fallback chains available internally).

PlanDefault ProviderModel
FreeGeminigemini-2.5-flash-lite
ProGeminigemini-2.5-pro
EnterpriseAnthropicclaude-sonnet-4-6

Premium-tier model access is enforced by plan. Users can also configure a personal Groq API key for supported flows/endpoints.

Output Artifacts

Each completed flow produces:

  • PRD — structured product requirements with REQ-001 IDs
  • Experience Maps — user journeys and touchpoints
  • Risk Model — value assessment, compliance flags, blocked patterns
  • Architecture Blueprint — services, data contracts, component tree with cross-refs
  • TDD Strategy — test surface per component with SLA validation
  • Sprint ADRs — executable sprint plan with Architecture Decision Records
  • Scaffold — deployable Workers project (on demand)
  • Contradiction Report — cross-mode consistency validation

Access

Access StackBilt via: