1
0
Fork 0
Code Issues Pull requests Projects Releases 2 Packages Wiki Activity Actions Pages
Successor repository for the DocForge project-scoped documentation graph.
Find a file
2026-07-22 03:32:05 -04:00
docs feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
schemas feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
src/docforge feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
tests feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
.gitignore feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
ACTIVE_SLICE.md feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
AGENTS.md feat: establish read-only DocForge MCP foundation 2026-07-22 01:29:32 -04:00
pyproject.toml feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
README.md feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
SLICE_HISTORY.md feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00
uv.lock feat: add deterministic preview rendering 2026-07-22 03:32:05 -04:00

DocForge

DocForge is a project-scoped documentation service for people and AI agents. It loads canonical Markdown and TOML from one repository, validates stable nodes and relationships, builds a disposable search index, and returns bounded context with source provenance.

DocForge does not own project facts. It does not select project work, apply proposals, run project commands, or perform Git and deployment operations. It may write only configured derived output and isolated previews through the explicit render boundary.

Current gate

DFG-1 through DFG-4 are complete. DFG-5 is the active gate: a shadow-only Worldforge adapter that must reproduce current semantics and output without changing the live workflow. Canonical application remains external and closed to the normal MCP server.

Development

uv sync
uv run python -m unittest discover -s tests -v
uv run docforge --project-root tests/fixtures/alpha validate
uv run docforge --project-root tests/fixtures/alpha render-status manual
uv run docforge --project-root tests/fixtures/alpha render manual
uv run docforge-mcp --project-root tests/fixtures/alpha --proposal-writer alpha-editor

The command prints deterministic JSON. Derived indexes live under each project's configured cache directory and are never canonical input.

Proposal writers are declared by ID in .docforge/project.toml. Each writer receives explicit node families and operation types. The MCP process binds to one writer at startup; tools cannot select or impersonate another writer. Create, update, move, and delete tools write only isolated JSON changesets below the configured changeset root.

Projects may also declare render views with confined template, preview, and output paths. The first built-in renderer converts CommonMark to escaped HTML through strict template tokens. MCP may render validated changesets only into isolated preview paths. Declared project output is generated through the explicit local CLI command and is never an MCP operation.