HAR 2.0.0 changes what HAR leaves behind: open standards instead of HAR-specific records. Every verification becomes a Factory Commits proof in git, and every agent session and verification becomes standard OpenTelemetry that any OTLP backend can read.
In 1.x, what a verify proved lived in HAR’s own run records and in Mission Control. You could read it only with HAR, and it said nothing a reviewer could check from the repository. In 2.0 the proof sits next to the commit, any tool that follows the spec can check it, and its trace sits in whatever backend you already use. The same keys link the two: work unit, attempt, factory run, git tree, commit and trace.
If you run HAR 1.x, start at the upgrade guide. Most commands, MCP tools and config keys keep their names; the guide’s breaking changes table lists every one that does not, and what to do. What breaks is telemetry attribute names, how records reach Mission Control and HAR HQ, a few flags and variables, and a few defaults, all listed below.
Factory Commits: git history that proves what your agents did
Factory Commits is an open convention for recording, in git, how each change was produced and verified: which work unit it belongs to, which checks ran on the exact tree, and whether they passed. It is a draft (v0.1), and it reuses standards that already exist: git trailers, git notes, in-toto statements, DSSE envelopes and OpenTelemetry semantic conventions. HAR is one producer. Any tool that follows the spec can write or verify the same proofs, and the repository ships a second verifier that needs only git and jq.
A full har env verify becomes an in-toto factory-run statement about the verified tree, not the commit. Squash, rebase and amend often keep the tree, so the proof survives them. The statement lists the stages the policy required, each stage’s status and duration, and a verdict a verifier recomputes: pass only if every required stage passed. It never contains prompts, stage logs, diffs or absolute paths.
The spec grades each commit:
| Level | The commit has… |
|---|---|
| L0 Linked | a Work-Unit or Factory-Run trailer |
| L1 Recorded | a note with a valid statement for its exact tree, verdict pass |
| L2 Signed | L1, signed by a trusted signer |
| L3 Gated | L2, plus a statement from a trusted merge gate |
HAR writes unsigned statements, so HAR commits reach L1. They are also always self-reported: HAR runs verification on the developer’s machine, next to the agent, so a proof says “this checkout reports these stages passed on this exact tree”, not that an independent runner checked it. The spec says that plainly, and so does every statement HAR writes.
What you get in 2.0:
- A proof per full verify, when you opt in. With
HAR_FACTORY_PROOF=notes(ornotes+trailers) in.har/harness.env, everyhar env verify --fullwrites the statement and sends it to Mission Control and HAR HQ.har env launchandhar hooks installthen install@osfactory/factory-proofunder~/.har. Without that line, proofs are off, whatever is installed on the machine. - Notes when you ask for them. With proofs on, each proven commit gets a git note in
refs/notes/factory. Notes stay local until you runhar proof sync, which merges them with the notes already on the remote and pushes, with thegit-factoryHAR manages.har proof disableturns proofs off and removes the git config and hook HAR added, keeping the notes. Trailers are never on by default, because they rewrite commit messages. - Read and check proofs.
har proof showandhar proof verify(MCP:har_proof_show,har_proof_verify) read the note on a commit or a range. - Proofs that survive a rebase. Rebasing a stack of pull requests onto a moved base used to drop every proof, even when each change was identical.
har proof carrywrites a carried proof when the rebased patch is identical to the verified one, andhar proof verify --accept-carriedreports it asL1 (carried from <sha>). - Proof and trace are linked. The
Factory-Runtrailer and the statement carry the verification trace id,Factory-Run: <run-id>; trace=<trace-id>, so a proof leads straight to its trace in your backend.
The details are in Record Factory Commits proofs.
Standard OpenTelemetry, sent where you choose
HAR 2.0 emits no har.* attribute. Agent sessions and verification traces carry factory.*, vcs.*, cicd.* and gen_ai.* attributes from the Factory Commits telemetry profile. Each har env verify is a cicd.pipeline.run span with one task span per stage.
- One destination list.
har telemetry destination addsends a copy to Langfuse or any OTLP backend: an OpenTelemetry Collector, Datadog, and so on. Mission Control and HAR HQ are entries in the same list. Nothing leaves the machine until you add a destination. - Producers send directly. The CLI and the agent hook send to each destination themselves, each with its own retry queue. Mission Control stores what it receives and forwards nothing; it is no longer a relay between you and HAR HQ.
- One agent source. otel-hook is the only source of Claude Code and Codex usage and trajectory. HAR no longer turns on Claude Code’s native telemetry, which carried account identity.
- Private by default. A third-party backend gets no absolute paths, no account identity and no prompt, reply or tool text unless you opt in per destination.
- HAR HQ per repository. HAR HQ receives only the repositories you choose, each at the scope you choose:
usage,outlineorfull.
What changes for a 1.x user
The upgrade guide is the full list. The ones to know before you upgrade:
- Dashboards on
har.*attributes match nothing. There is no dual emission. The guide maps every removed attribute to its 2.0 name, for examplehar.work_unit_idtofactory.work_unit.id. - Upgrade the CLI and Mission Control together. Mission Control 2.0 reads only the 2.0 names. On its first start it migrates its database in place and keeps the 1.x database as a backup.
- You are logged out of HAR HQ once. Run
har hq connectto choose repositories and a scope again.har control syncno longer sends anything to HAR HQ. - Factory proofs are opt-in. Nothing is attested or noted until
.har/harness.envsetsHAR_FACTORY_PROOF=notesornotes+trailers; agit-factoryon the machine does not turn them on. - Every stage has a time limit. A stage that runs past its
timeoutMs, elseHARNESS_STAGE_TIMEOUT_MS, else 30 minutes, is stopped and fails with reasontimeout. 1.x waited forever. - A stage killed by a signal fails. 1.x counted a stage killed by the OOM killer or a
kill -9as passing. It now fails with 128 + the signal number. - Every verify is its own factory run. A failed verify followed by a passing one of the same tree keeps both runs and both sets of logs. The commit gate still checks the latest one.
- No more offline usage harvest. Agent usage comes from otel-hook, live. A session that ran without the hook has no usage.
A few fixes from the acceptance run will help 1.x users too: the commit gate now works in repositories that use husky, a slot’s runs land in the main checkout whatever the working directory, and har env status shows only the current session’s last verify.
Upgrade
npm install -g @osfactory/har@latesthar control up # Mission Control 2.0; migrates its databasehar telemetry install-hooks # re-register the agent hooks with otel-hookhar env maintain # in each repository with a .har/ harnesshar env doctorhar env verify 1 --fullThen start new agent sessions: one that was already running keeps the hook settings it started with. har env maintain asks once about the commit gate, proofs, telemetry and crash reports; to write proofs as git notes non-interactively, run har env maintain --proofs notes (it sets HAR_FACTORY_PROOF=notes in .har/harness.env), and har proof sync to push them. To go back to 1.x, the guide has a rollback that restores the Mission Control backup.
The full list of changes, prerelease by prerelease, is in the changelog. Factory Commits is a draft, and its spec, schemas and conformance tests are open: feedback goes to os-factory/factory-commits.
