SPEC-000: Framework Spec
Author
Vice Šimunov
Date
January 2026
Changelog
• 2026-01-15: Simplified spec, honest context
Business Context
LostHex stalled in 2025. We had specs—detailed discovery documents in Google Docs—but they lived in a silo. TPMs wrote them, clients approved them, then engineers built without referencing them. The specs helped sell projects but didn't help build them.
TPMs are our bottleneck. They're rare, expensive, and can't scale with the team. When specs require a TPM to write and maintain, they become artifacts that rot after kickoff.
Now we're ramping up with 3 new client engagements in Q1 2026. We need specs that:
Engineers actually use — Live in the repo, readable by AI tools, updated as we build
Don't require TPMs — Any senior dev can write and maintain them
Scale with part-time teams — People come and go; docs transfer knowledge
Ship fast — Templates + AI = hours, not days
Scope
Problems we're solving:
Discovery specs don't translate to build (Google Docs rot after kickoff)
No build-phase documentation (engineers wing it or dig through Slack)
Technical decisions scattered in calls, Slack, heads
Clients can't access GitHub (need a reading layer)
Not solving:
Discovery documentation (teardowns, SME interviews, scope docs) — separate process, likely a
losthex-playbookrepoMigration of old Google Docs specs
Complex approval workflows
What is a Spec?
A Spec describes what we're building and why.
One document type. It covers:
What the system does (boundaries, inputs, outputs)
Why we're building it (business context)
What we decided (links to ITDs)
What data it manages (links to Data Structures)
When someone asks "what are we building?"—point them to the Spec.
Three Document Types
Spec
Project narrative
docs/specs/
ITD
Technical decision record
docs/itds/ or framework/itds/
Data Structure
Entity documentation
docs/core-data-structures/
Specs reference ITDs and Data Structures. ITDs and Data Structures can exist independently.
How It Works
Author drafts spec using template + AI
Submit PR for review
Address feedback, iterate
Merge to main → GitBook auto-syncs
Client reads on GitBook, feedback loops back via new PRs
Decisions
The framework's design choices live in ITDs:
Foundation
Specs provide narrative; ITDs are standalone
GitHub as source of truth
ITDs reusable across projects
Data structures as first-class docs
Authoring
AI encouraged, humans accountable
Group data structures by aggregate root
Process
Quality bar and review mechanics
Tooling
GitBook for client visibility
Markdownlint + Vale for quality
Custom lint rules per doc type
No mandated AI tools
Zod + zod-to-openapi for API docs
Data Structures
The framework documents itself using Data Structures:
Success Metrics
Spec coverage
Every client project has a spec
Time to spec
Under 4 hours for standard projects
Client engagement
Clients access GitBook docs
We'll revisit these after Q1 2026.
Last updated