Skip to content

Commit 3c3803a

Browse files
rcursoragent
andcommitted
docs: align user-facing docs and tutorials with v0.41.0 reality
Phase F of the cleanup sweep — documentation drift fixes after a sweep of docs/, site/, README.md, CHANGELOG.md, and the embedded asset rules. User-facing fixes: - README.md: dropped the `morph init --reference` / `--reference --solo` example that hasn't been valid since v0.40.0. Section is now "Sit alongside Git" with the correct unconditional `morph init` / `morph init --solo` invocations and a pointer at MORPH-AND-GIT.md. Test count "~1100" bumped to "~1170" to match the actual workspace pass count (1171 / 1187). - docs/README.md: replaced "drop Git later if you want to" lede with the truth that morph requires a git repo (and offers `git init` when there isn't one). Updated the SECURITY.md row in the Guides table to describe `morph forget` as shipped, not as a "until v0.41.0" gap. - docs/MORPH-AND-GIT.md: dropped the "(landing in v0.40.2)" parenthetical now that SECURITY.md has shipped (and was extended with the morph-forget flow in v0.41.0). - docs/SECURITY.md: corrected the `.morph/config.json` comment from the obsolete "(mode, submode, init_at_git_sha)" to the actual fields the file carries (repo_version, repo_submode, init_at_git_sha, policy, …). Site fixes: - site/tutorials/getting-started.html and adding-to-git-project.html no longer link to the not-yet-written `branches-and-merge.html` page (404 if anyone clicked it). All four references now point at the authoritative MERGE.md / EVAL-DRIVEN.md docs and note that a standalone Tutorial 3 page is on the roadmap. The pager "Next · coming soon" tile is now a non-link span instead of an href that 404s. - adding-to-git-project.html no longer claims morph supports "two independent VCSes in one tree" (that shape was removed in v0.40.0); replaced with the actual narrative of how the two layers cooperate plus a recovery hint for legacy repos. Embedded assets: - morph-cli/assets/opencode/AGENTS.md no longer says morph "tracks every prompt, response, and file-tree commit independently of Git" — that's just wrong post-v0.40.0. Reworded to describe the reference-mode coupling correctly. Changelog plumbing: - CHANGELOG.md compare links updated to compare [Unreleased] against v0.41.0 (was v0.40.2) and added the [0.41.0]: compare link line. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 525be59 commit 3c3803a

8 files changed

Lines changed: 37 additions & 24 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,8 @@ Three coordinated changes to repo setup, adoption, and migration.
789789
- 15 new YAML acceptance spec cases in the default eval suite:
790790
`init_at_latest:*` ×4, `init_in_git_dir:*` ×6, `upgrade:*` ×5.
791791

792-
[Unreleased]: https://github.com/r/morph/compare/v0.40.2...HEAD
792+
[Unreleased]: https://github.com/r/morph/compare/v0.41.0...HEAD
793+
[0.41.0]: https://github.com/r/morph/compare/v0.40.2...v0.41.0
793794
[0.40.2]: https://github.com/r/morph/compare/v0.40.1...v0.40.2
794795
[0.40.1]: https://github.com/r/morph/compare/v0.40.0...v0.40.1
795796
[0.40.0]: https://github.com/r/morph/compare/v0.39.2...v0.40.0

‎README.md‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,19 @@ morph upgrade # migrate the store to the latest version
8989
morph gc # remove unreachable objects
9090
```
9191

92-
### Reference mode (sit alongside Git)
92+
### Sit alongside Git
9393

94-
If you already use Git, run Morph in *reference mode*: Git owns file
95-
storage, Morph stores only behavioral metadata and mirrors every git
96-
commit into a Morph commit via installed git hooks. See
97-
[docs/reference-mode.md](docs/reference-mode.md) for the details.
94+
Morph always runs coupled to Git in this workspace: Git owns file
95+
storage, Morph stores only behavioral metadata, and `morph init`
96+
installs git hooks that mirror every git commit into a Morph
97+
commit. See [docs/MORPH-AND-GIT.md](docs/MORPH-AND-GIT.md) and
98+
[docs/reference-mode.md](docs/reference-mode.md) for the details
99+
of how the two layers cooperate.
98100

99101
```bash
100-
morph init --reference # alongside an existing git repo (Stowaway: passive)
101-
morph init --reference --solo # Solo submode: install pre-merge-commit gate
102-
morph install-hooks # (re-)install the reference-mode git hooks
102+
morph init # alongside an existing git repo (Stowaway: passive hooks)
103+
morph init --solo # Solo submode: install pre-merge-commit gate
104+
morph install-hooks # (re-)install the git hooks
103105
morph reference-sync [--backfill] # rebuild Morph commits from git history
104106
```
105107

@@ -162,7 +164,7 @@ Stable JSON API and browser UI for inspecting commits (with certification/gate s
162164
## Develop Morph (this repo)
163165

164166
```bash
165-
cargo test --workspace # ~1100 unit + YAML acceptance tests
167+
cargo test --workspace # ~1170 unit + YAML acceptance tests
166168
cargo test -p morph-e2e --test cucumber # end-to-end Cucumber scenarios
167169
```
168170

‎docs/MORPH-AND-GIT.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ This separation exists so the team can have different access
131131
policies on each — e.g. the git remote may be open to contractors
132132
while the morph remote is restricted to full-time staff. The
133133
sharing model and the privacy implications are written up in detail
134-
in [`SECURITY.md`](SECURITY.md) (landing in v0.40.2).
134+
in [`SECURITY.md`](SECURITY.md), including the `morph forget`
135+
flow that lands tombstones on every configured morph remote.
135136

136137
## Reference
137138

‎docs/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Morph is a version control system for AI-assisted development. It extends Git's
66
2. **Behavioral contracts** — a commit can pin a pipeline, an evaluation suite, observed metric scores, and the environment those scores were captured in.
77
3. **Merge by dominance** — merges succeed only when the candidate is at least as good as both parents on every declared metric, not just because the text diff is clean.
88

9-
Morph stores the same thing Git stores (a file tree snapshot) *and* the behavioral record on top of it. You can run it alongside Git today and drop Git later if you want to.
9+
Morph stores the same thing Git stores (a file tree snapshot) *and* the behavioral record on top of it. You run it alongside Git: `morph init` requires a git repo (it offers to `git init` for you when there isn't one), morph mirrors every git commit into a behavioral commit, and `.morph/` stays out of git entirely.
1010

1111
Project links: [github.com/r/morph](https://github.com/r/morph) and [r.github.io/morph](https://r.github.io/morph).
1212

@@ -76,7 +76,7 @@ THEORY.md defines the algebra. v0-spec.md projects that algebra into a buildable
7676
| **[CLAUDE-CODE-SETUP.md](CLAUDE-CODE-SETUP.md)** | Users | Full Claude Code reference: MCP server, hooks, committing. |
7777
| **[OPENCODE-SETUP.md](OPENCODE-SETUP.md)** | Users | Full OpenCode reference: MCP server, AGENTS.md, recording plugin, committing. |
7878
| **[SESSION-TRACKING.md](SESSION-TRACKING.md)** | Users | Why morph records every agent session as an immutable Run + Trace, why neither Claude/Cursor/OpenCode on-disk transcripts nor OTEL nor Langfuse/Phoenix/Helicone can deliver what the morph trace contract delivers, and seven concrete things you can only do because the prompt is in the commit graph. |
79-
| **[SECURITY.md](SECURITY.md)** | Users / Teams | What morph records, where it lives on disk, what crosses the wire on `git push` vs `morph push`, the recommended team setup, and the things morph does not yet do (no encryption at rest, no client-side redaction filter on push, no automatic secret scanning, and — until v0.41.0 — no `morph forget`). **Read before you push to a morph remote.** |
79+
| **[SECURITY.md](SECURITY.md)** | Users / Teams | What morph records, where it lives on disk, what crosses the wire on `git push` vs `morph push`, the recommended team setup, the `morph forget` flow for retiring sensitive runs/traces/prompts (with tombstones that propagate across morph remotes), and the things morph still doesn't do (no encryption at rest, no client-side redaction filter on push, no automatic secret scanning, no MCP `morph_forget` tool yet). **Read before you push to a morph remote.** |
8080
| **[MORPH-AND-GIT.md](MORPH-AND-GIT.md)** | Users | Running Morph and Git side-by-side in the same repository. |
8181
| **[reference-mode.md](reference-mode.md)** | Users | Reference mode: tight git ↔ morph coupling, the Solo / Stowaway submodes (`morph install-hooks --solo`/`--stowaway` to flip), hooks, drift, stale certifications, stateful merge with `morph merge --continue`/`--abort`. The default (and only) mode since v0.40.0. |
8282
| **[MULTI-MACHINE.md](MULTI-MACHINE.md)** | Users | Sharing a Morph repo across machines: bare server, SSH transport, `morph push` / `morph pull` / `morph sync`. |

‎docs/SECURITY.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ your-project/
6767
traces/ # one JSON per trace (the event log)
6868
prompts/ # prompts referenced from traces
6969
refs/ # branches, tags
70-
config.json # repo-local config (mode, submode, init_at_git_sha)
70+
config.json # repo-local config (repo_version, repo_submode, init_at_git_sha, policy, …)
7171
src/
7272
...
7373
```

‎morph-cli/assets/opencode/AGENTS.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Morph — Behavioral Version Control
22

33
This project uses [Morph](https://github.com/r/morph) for behavioral version
4-
control. Morph tracks every prompt, response, and file-tree commit
5-
independently of Git, and gates merges on **behavioral evidence** — the
4+
control. Morph runs alongside Git: it mirrors every git commit into a
5+
behavioral commit, records every prompt, response, and tool call as an
6+
immutable Run + Trace, and gates merges on **behavioral evidence** — the
67
metrics produced by the repo's eval suite. Project website:
78
[r.github.io/morph](https://r.github.io/morph).
89

‎site/tutorials/adding-to-git-project.html‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,16 +1371,17 @@ <h2><span class="step-num">13</span>Where to next</h2>
13711371
</p>
13721372
<ul>
13731373
<li>
1374-
<strong><a href="./branches-and-merge.html">Tutorial 3 &mdash; Branches, merges, and merge conflicts</a>:</strong>
1375-
behavioral merge gating in action, including what happens when two branches genuinely conflict. Reference mode's <code>morph merge</code> is the canonical merge driver there.
1374+
<strong><a href="https://github.com/r/morph/blob/main/docs/MERGE.md">docs/MERGE.md</a>
1375+
and <a href="https://github.com/r/morph/blob/main/docs/EVAL-DRIVEN.md">docs/EVAL-DRIVEN.md</a>:</strong>
1376+
behavioral merge gating in action, including what happens when two branches genuinely conflict. <code>morph merge</code> is the canonical merge driver. (A standalone "Tutorial 3" page is on the roadmap; for now those two docs are the authoritative writeup.)
13761377
</li>
13771378
<li>
13781379
<strong><a href="https://github.com/r/morph/blob/main/docs/reference-mode.md">docs/reference-mode.md</a>:</strong>
13791380
the comprehensive reference. Covers Solo submode, the <code>pre-merge-commit</code> gate, conflict resolution with <code>morph merge --continue</code> / <code>--abort</code>, stale certifications, recovery, and CI integration.
13801381
</li>
13811382
<li>
13821383
<strong><a href="https://github.com/r/morph/blob/main/docs/MORPH-AND-GIT.md">docs/MORPH-AND-GIT.md</a>:</strong>
1383-
the long-form story of running Morph and Git side-by-side &mdash; including the alternative shape (two independent VCSes in one tree) if that fits your situation better than reference mode.
1384+
the long-form story of running Morph and Git side-by-side &mdash; how the two layers cooperate, what crosses the wire on <code>git push</code> vs <code>morph push</code>, and how legacy repos that previously tracked <code>.morph/</code> in git can recover.
13841385
</li>
13851386
</ul>
13861387

@@ -1389,10 +1390,10 @@ <h2><span class="step-num">13</span>Where to next</h2>
13891390
<span class="dir">← Previous</span>
13901391
<span class="ttl">Start a new project with Morph</span>
13911392
</a>
1392-
<a href="./branches-and-merge.html" class="next disabled" aria-disabled="true">
1393+
<span class="next disabled" aria-disabled="true">
13931394
<span class="dir">Next · coming soon</span>
13941395
<span class="ttl">Branches, merges, and conflicts</span>
1395-
</a>
1396+
</span>
13961397
</div>
13971398
</section>
13981399
</main>

‎site/tutorials/getting-started.html‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,12 @@ <h2><span class="step-num">07</span>Capture metrics with <code>morph eval run</c
787787
Morph concept where you write down what the project promises in plain
788788
English. It's optional for a single-branch project (your test runner
789789
already produces the numeric metrics the policy needs), but it earns its
790-
keep in <a href="./branches-and-merge.html">Tutorial 3</a> when we get to
791-
merges and case provenance. Ignore the gap for now.
790+
keep when you start merging branches and want the merge gate to compare
791+
richer claims than raw numbers — see
792+
<a href="https://github.com/r/morph/blob/main/docs/MERGE.md">MERGE.md</a>
793+
and
794+
<a href="https://github.com/r/morph/blob/main/docs/EVAL-DRIVEN.md">EVAL-DRIVEN.md</a>
795+
for the merge-gate and case-provenance flow. Ignore the gap for now.
792796
</div>
793797
<div class="callout warn">
794798
<strong>Use the full pytest output, not <code>-q</code>.</strong>
@@ -1070,12 +1074,15 @@ <h2><span class="step-num">13</span>Where to next</h2>
10701074
run Morph alongside Git as a behavioral safety net.
10711075
</li>
10721076
<li>
1073-
<strong><a href="./branches-and-merge.html">Tutorial 3 — Branches, merges, and merge conflicts</a>:</strong>
1077+
<strong><a href="https://github.com/r/morph/blob/main/docs/MERGE.md">MERGE.md</a>
1078+
and <a href="https://github.com/r/morph/blob/main/docs/EVAL-DRIVEN.md">EVAL-DRIVEN.md</a>:</strong>
10741079
behavioral merge gating, dominance, case provenance, and what happens
10751080
when two branches genuinely conflict. This is where YAML
10761081
<strong>acceptance suites</strong> (the <code>empty_default_suite</code> gap
10771082
you saw throughout this tutorial) start earning their keep — they
10781083
give the merge gate something more than raw numbers to compare against.
1084+
(A standalone "Tutorial 3" page is on the roadmap; for now the
1085+
authoritative writeup lives in those two docs.)
10791086
</li>
10801087
<li>
10811088
<strong><a href="https://github.com/r/morph/blob/main/docs/EVAL-DRIVEN.md">Eval-driven development</a>:</strong>

0 commit comments

Comments
 (0)