On this page

0160: harness vc is not git-compatible

Status: Accepted — implementation authorized 2026-11-05

Context

The owner wants version control built into the toolchain for many agents working on one codebase, written from scratch: agent-first, token-efficient, simple, with minimal dependencies. Git's object model is file and line based, its history is a DAG that needs lowest-common-ancestor search, and its interface is large. Matching its format or protocol would bring in that model and surface without serving item-level history, merge or incremental gates. Plan: plans/vc/PLAN-vc.md.

Decision

harness vc uses its own object format (hvc 1), refs, history and commands. It does not read or write .git, git objects, packfiles or the wire protocol, and it does not use git command names as a compatibility goal. Interop is limited to plain files. A one-way import from a working directory is allowed, but not from .git. Git keeps tracking this repository until a later ADR (M-VC.14) decides otherwise.

Consequences

The format can store items, gate records and provenance natively, and the command surface stays small. Existing git tools, hosts and CI do not work with vc stores, so hosting and CI must be built later (they need a TCP API). This repo keeps two systems during any shadow trial.

Alternatives