v0.2.0
[0.2.0] — 2026-07-01
Re-platforms Repospec from the single-file Python reference tool onto a TypeScript
monorepo with a real engine, CLI, and protocol packages. The .repospec/ directory
is still the human-authored source of truth; generation is now checksum-tracked and
ownership-aware.
Added
- Monorepo (pnpm workspaces). Four published packages:
@repospec/protocol— zod schemas, frontmatter/parse, repository model,
protocol versioning.@repospec/engine— theinit,generate,sync, anddoctoroperations,
tool adapters (agents,claude), and an injectable filesystem.@repospec/cli— therepospeccommand-line front end.@repospec/templates— the scaffoldsinitseeds.
- Idempotent, ownership-aware sync. Generated outputs carry a managed header
with asha256checksum.syncwill not overwrite a hand-edited output without
--force;sync --checkreports drift and exits non-zero (ADR-0004). doctor. Validates.repospec/and reports problems with path-first
messages; detects drift and version mismatch.- Normative specification under
spec/(protocol, repository, lifecycle,
workflow, configuration, versioning, RFC process) plus seven ADRs. - Two worked examples, both engine-generated and drift-guarded in CI:
demo-serviceand a richeracme-billing(six roles, billing rules). - CI (
.github/workflows/ci.yml): format, lint, build, typecheck, test, and an
AGENTS.md drift-guard that runsrepospec sync --checkon every example.
Changed
- Renamed the npm scope and CLI to
@repospec/*/repospecand the convention
directory to.repospec/, completing the move offforge(Foundry collision). - AGENTS.md is now generated by the TypeScript engine rather than the Python
build tool, via theagentsadapter.
Removed
- The Python reference tool (
tools/repospec_build.py) and its standalone
workflow, superseded by@repospec/engine. It remains available at thev0.1.0
tag for the zero-dependency path.
Known limitations (open problems)
- Enforcement.
AGENTS.mdremains advisory to agents. CI now guards staleness
(drift-guard) and validity (doctor); commit/merge-time gate hooks are future
work. - Code ⇄
.repospec/drift.sync/doctordetect drift between source and
generated outputs, but divergence between the code and the.repospec/
description it documents is still not automatically detected.