Canonical public documentation for the Coven runtime, CLI, daemon, harness integrations, supported local API, and their operational and security contracts. The site is built with Next.js and Fumadocs.
The repository intentionally does not duplicate the complete manuals for Cave, Psyche, Psyche Build, Threads, or other neighboring OpenCoven products. Their owning repositories remain authoritative; the ecosystem guide explains the boundary.
Requirements:
- Node.js 22.6 or newer
- pnpm 10.33.2
- Git
pnpm install --frozen-lockfile
pnpm devOpen http://localhost:3000.
Run the same release-quality contract used by repository CI:
pnpm verifyverify performs:
- JavaScript automation syntax validation;
- deterministic OpenAPI generation and drift detection;
- TypeScript checking;
- the declarative site-manifest, source-lock, product-scope, section, MDX, and Mermaid checks;
- internal route and heading-fragment validation;
- API simulator tests;
- a production Next.js build;
- Chromium smoke coverage for primary pages, mobile overflow, exports, canonical metadata, deployment headers, and redirects.
Use narrower commands while iterating:
pnpm check:content
pnpm check:links
pnpm check:anchors
pnpm check:generated
pnpm build:site
pnpm test:smokeapp/— Next.js App Router site and export routescontent/docs/— public MDX documentation and section navigationcomponents/— Fumadocs and interactive documentation componentsdocs/site-manifest.json— canonical section order, ownership, stability, search classification, redirects, and retired surfacesdocs/source-lock.json— path-scoped upstream verification boundariesdocs/adr/— documentation architecture decisionsdocs/freshness.md— production and upstream freshness contractdocs/release-runbook.md— deployment and rollback procedureopenapi/— source daemon OpenAPI contractscripts/— content, generation, link, freshness, and browser certification checks.github/workflows/docs.yml— repository-owned release verification.github/workflows/docs-live.yml— hourly production health and deployment freshness.github/workflows/docs-source-drift.yml— daily upstream contract-drift detection
openapi/coven.daemon.v1.yaml is the committed source for the stable public API
subset. pnpm openapi:build injects code samples and regenerates endpoint MDX.
Generated endpoint changes must be committed; pnpm check:generated fails when
the source and committed pages drift.
Narrative explanations remain authored. Machine generation owns operation inventory, signatures, schemas, and examples—not product interpretation.
Every top-level section is classified as stable, preview, or
experimental in docs/site-manifest.json. The page header renders that
classification and links to the repository that owns the underlying facts.
Changes to runtime behavior must be verified against the owning source
repository before merging. Path-scoped source watches open a review issue when
those contracts move after the timestamp in docs/source-lock.json. See
the freshness contract and CONTRIBUTING.md.
Hooks are tracked in .githooks/. pnpm install
activates them through core.hooksPath:
pre-commitscans staged changes with Gitleaks when installed.pre-pushselects content, link, anchor, generated-contract, Mermaid, and type checks from the files being pushed.
Emergency bypasses (--no-verify) should be reserved for recovery and must not
replace CI.
Vercel runs pnpm build. GitHub Actions runs the stronger pnpm verify
contract. The hourly live workflow then proves production serves the intended
commit and primary routes. A release is complete only when repository CI is
green, production points at the intended commit, and no unresolved source-drift
incident exists. See the release runbook.