Elffuss BraidHub

utopia-ia/elffuss-braid public

Merge the site: braid.elffuss.com, and README corrections from its review
Changeset4fb2400e6864861e57fac912a9c77c2dc03fdcfcf17464e2c120af61b6b649eb
AuthorKikoCis <KikoCis@users.noreply.github.com> · 2026-10-16 11:42 +02:00
CommitterKikoCis <KikoCis@users.noreply.github.com> · 2026-10-16 11:42 +02:00
Parents72b62ca6cb49, 1d41f5c9ff9d

Browse the files at this changeset

11 files changed

modified README.md +48 −39
@@ -7,9 +7,9 @@
77 **Version control for repositories where many agents land changes at the same time.**
88
99 A from-scratch version control system in Rust. Creating a change costs what the
10-change touches, not what the repository weighs. Landing on `main` is one short
11-step per branch, with no repository-wide lock. Git stays at the edges, so GitHub
12-keeps working.
10+change touches, not what the repository weighs. Agents commit in parallel, and
11+landing on `main` is one short step they take in turn. Git stays at the edges,
12+so GitHub keeps working.
1313
1414 [![License](https://img.shields.io/badge/license-Apache--2.0-c8a06a?style=flat-square)](LICENSE)
1515 [![CI](https://img.shields.io/github/actions/workflow/status/KikoCis/elffuss-braid/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/KikoCis/elffuss-braid/actions/workflows/ci.yml)
@@ -46,7 +46,7 @@
4646 | | git | braid |
4747 |---|---|---|
4848 | Unit of change | a commit: a full tree snapshot | a changeset: the files that changed against the first parent, plus the root tree id |
49-| Landing on `main` | the client pushes and is rejected if behind | `land` rebases in one short serial step per branch, at a cost that follows the change |
49+| Landing on `main` | the client pushes and is rejected if behind | `land` rebases in one short step that landings take in turn, at a cost that follows the change |
5050 | Many writers | one index per working tree | one workspace per agent over a shared append-only store; creating a change takes no repository lock |
5151 | Fetching | negotiated packs, unique per client | immutable objects by id, so any cache (local daemon, nginx, CDN) can serve them |
5252 | Large directories | rewritten whole on every change | split into content-defined nodes; an edit rewrites only its path |
@@ -66,7 +66,7 @@
6666 A3["agent N · workspace"] --> ST
6767 ST[("shared store<br/>immutable objects + op log")]
6868 end
69- ST -- "land: one short step per branch" --> MAIN(["main"])
69+ ST -- "land: one short step, taken in turn" --> MAIN(["main"])
7070 ST <-- "objects by id" --> SRV["braid server (optional)"]
7171 ST <-- "import / export" --> GIT["git bridge"]
7272 GIT <--> GH["GitHub · Gitea"]
@@ -77,10 +77,10 @@
7777 2. **A changeset records what changed against its first parent,** plus the
7878 root tree it produces. History, blame and rebase read the short list; the
7979 root id commits to the whole repository.
80-3. **Landing is one short serial step per branch.** If the change was built on
81- the current head it fast-forwards. If not, braid rebases it path by path and
82- merges only the files both sides touched. Conflicts come back as data that
83- an agent can act on.
80+3. **Agents commit in parallel; landing is one short step they take in turn.**
81+ If the change was built on the current head it fast-forwards. If not,
82+ braid rebases it path by path and merges only the files both sides
83+ touched. Conflicts come back as data that an agent can act on.
8484 4. **Many processes share one store without a daemon.** Segments are leased
8585 with locks the kernel releases if a process dies, objects are published
8686 before anything refers to them, and an append-only op log records every
@@ -92,20 +92,21 @@
9292 ## Quick start
9393
9494 Braid stores history, moves it in and out of git bit for bit, and gives each
95-agent a workspace that lands on `main` without waiting for the others.
95+agent a workspace of its own that lands on `main` in one short step.
9696
9797 ```bash
9898 git clone https://github.com/KikoCis/elffuss-braid
9999 cd elffuss-braid
100100 cargo build --release
101101 export PATH="$PWD/target/release:$PATH"
102+SRC="$PWD" # any git repository will do; this one is at hand
102103
103104 braid init /tmp/demo
104105 cd /tmp/demo
105-braid git import /path/to/any/git/repository # every branch and tag
106+braid git import "$SRC" # every branch and tag
106107 braid log main -n 5
107-braid log main -- src/lib.rs # only the changes to a path
108-braid blame main src/lib.rs # who last changed each line
108+braid log main -- README.md # only the changes to a path
109+braid blame main README.md # who last changed each line
109110 braid show main --json
110111 braid fsck
111112 braid stats # objects by kind, and how they are stored: whole, deltas, chunks
@@ -206,17 +207,18 @@
206207 again and compared with the original, so the round trip is bit for bit.
207208 - `braid git sync` keeps a branch of GitHub, Gitea or any git remote in step
208209 with a braid branch: it fetches and imports the remote branch, then
209- fast-forwards braid, or pushes braid's branch as a fast-forward with a
210- lease, merging first when both moved. Conflicts move nothing and exit with
211- status 2. Braid never force-pushes.
210+ fast-forwards braid, or pushes braid's branch, merging first when both
211+ moved. The push carries a lease on what the sync just fetched, so the
212+ remote only ever fast-forwards and its history is never rewritten.
213+ Conflicts move nothing and exit with status 2.
212214
213215 ```bash
214216 braid git sync https://github.com/you/project.git --branch main
215217 braid git sync https://github.com/you/project.git --dry-run --json
216218 ```
217219 - Braid contains no code from git itself, which is GPLv2. It reads and writes
218- git data with gitoxide (MIT or Apache-2.0) and runs the `git` binary only as
219- a subprocess to push.
220+ git data with gitoxide (MIT or Apache-2.0); `git sync` also runs the `git`
221+ binary as a subprocess, to set up its mirror, fetch and push.
220222
221223 ## Design
222224
@@ -234,7 +236,7 @@
234236 | 2 | Local store and op log: many processes, crash-safe, `fsck`, `undo` | ✅ done |
235237 | 3 | History and the git bridge: import, export, `log`, `show` | ✅ done |
236238 | 4 | Many agents on one machine: workspaces, `land`, conflicts, `git sync` | ✅ done |
237-| 5 | Performance: deltas, chunking, derived indexes, `blame`, benchmarks against git | next |
239+| 5 | Performance: deltas, chunking, derived indexes, `blame`, benchmarks against git | in progress |
238240 | 6 | Server: lazy sparse clones, tokens, caching tiers | planned |
239241 | 7 | Daemon, virtual file system, WebAssembly core | planned |
240242
@@ -290,32 +292,38 @@
290292 | 16 agents, the same | 0.2 | `python3 bench/run.py --only agents` |
291293 | Newest 1,000 changesets of tmux: `braid log -n 1000` vs `git log --first-parent -n 1000 --format=%H` after `git gc --aggressive` | 1.7 | `python3 bench/run.py --only history` |
292294
293-`braid log -- <path>` and `braid blame` are not measured: braid does not
294-have them yet, and the script measures them as soon as it does.
295-
296-Braid is slower than git at most of this, and this is why:
297-
298-- **Importing and storing history.** Braid keeps every version of a file
295+`braid log -- <path>` and `braid blame` came after this run, so it does not
296+measure them; the script does now.
297+
298+At commit `5330054`, braid was slower than git at most of this, for the
299+reasons below. Much of it has been worked on since: braid now stores deltas
300+and cuts large files into chunks, walks the working copy in parallel through
301+directory handles, edits a large directory in place, and looks objects up
302+through the store's indexes instead of mapping the whole store first. The
303+ratios above show none of that; it takes a new run of the script to say how
304+much it changed.
305+
306+- **Importing and storing history.** Braid kept every version of a file
299307 whole, compressed on its own, where git stores most versions as a delta
300- against another; storing deltas is the next milestone. The import converts
301- and checks every object on one thread, and much of that time goes to
302- checking every entry name against the aliases of `.git`, with Unicode
303- normalisation and case folding, each time a tree is read or built.
304-- **Status and commit on a large tree.** `braid status` walks the working
308+ against another. The import converted and checked every object on one
309+ thread, and much of that time went to checking every entry name against
310+ the aliases of `.git`, with Unicode normalisation and case folding, each
311+ time a tree was read or built.
312+- **Status and commit on a large tree.** `braid status` walked the working
305313 copy one directory at a time on one core, opening each directory from the
306314 root one name at a time, so that it never follows a symlink, and looking
307- for `.gitignore` and `.braidignore` in each; it also reads the whole base
308- tree and rewrites the whole stat cache every time. It uses less CPU time
315+ for `.gitignore` and `.braidignore` in each; it also read the whole base
316+ tree and rewrote the whole stat cache every time. It used less CPU time
309317 than `git status`, which spreads its checks over several cores and, with
310318 the untracked cache, skips the directories that did not change.
311- `braid commit` has no staging area, so it runs a whole status first.
312-- **A new file in a wide directory.** Braid writes only the few nodes of a
313- large directory that change, but it reads and rebuilds the whole directory
319+ `braid commit` has no staging area, so it ran a whole status first.
320+- **A new file in a wide directory.** Braid wrote only the few nodes of a
321+ large directory that change, but it read and rebuilt the whole directory
314322 in memory to find them, checking every name again. From 2,500 to 20,000
315323 files, the cost of one commit grew 5.2 times for `braid commit`, 3.6 times
316324 for `braid change create` and 3.5 times for git.
317-- **Opening the store.** Every command first builds a map of where each
318- object of the store is, which on a history the size of tmux's is a large
325+- **Opening the store.** Every command first built a map of where each
326+ object of the store is, which on a history the size of tmux's was a large
319327 part of `braid log -n 1000`; git looks each object up in its pack index
320328 when it needs it.
321329
@@ -368,7 +376,8 @@
368376 repositorios en los que muchos agentes aterrizan cambios a la vez.
369377
370378 - Crear un cambio cuesta lo que toca el cambio, no lo que pesa el repositorio.
371-- Aterrizar en `main` es un paso corto por rama, sin cerrojo global.
379+- Los agentes hacen commit en paralelo, y aterrizar en `main` es un paso
380+ corto que dan por turnos.
372381 - Git se queda en los bordes, así que GitHub y Gitea siguen funcionando.
373382
374383 Parte de las ideas que Anthropic contó en público sobre Scion, su sistema interno.
@@ -376,6 +385,6 @@
376385 la empresa.
377386
378387 Hoy está en pre-alfa: guarda historia, la mete y saca de git bit a bit, y cada
379-agente tiene su espacio de trabajo y aterriza en `main` sin esperar a los demás.
388+agente tiene su propio espacio de trabajo y aterriza en `main` en un paso corto.
380389 Las [fases](#status-and-roadmap) dicen qué llega después y qué pruebas tiene que
381390 pasar cada una.
added site/README.md +156 −0
@@ -0,0 +1,156 @@
1+# braid.elffuss.com
2+
3+The site of Elffuss Braid: one static page, in English and Spanish, with no
4+build step and no requests to anything but its own files.
5+
6+| File | What it is |
7+|---|---|
8+| `index.html` | The page. The logo, the diagram and the git loop are inline SVG. |
9+| `site.css` | Dark by default, as on elffuss.com; light under `prefers-color-scheme: light`. Terminals stay dark in both. |
10+| `site.js` | The language toggle, the copy buttons, the faded edge of a code block that scrolls, which blocks take keyboard focus, and the markers of the ratio table. Without it the page is complete, in English, every block takes focus, and the toggle and the copy buttons stay hidden. |
11+| `og.png`, `og/og.svg` | The Open Graph image, 1200 × 630, and its source. |
12+| `favicon.svg`, `favicon-32.png`, `apple-touch-icon.png`, `favicon.ico` | The icons: the strands around one crossing of the logo. `favicon.ico` is for the clients that ask for it whatever the page declares. |
13+
14+The HTML, the CSS, the JavaScript and the SVGs open with
15+`SPDX-License-Identifier: Apache-2.0` and `Copyright (c) 2026 UtopiaIA` in a
16+comment, as every source file of the repository does.
17+
18+To look at it locally:
19+
20+```bash
21+python3 -m http.server --directory site 8000
22+```
23+
24+## Two languages in one page
25+
26+Every translated block is in the page twice, once with `data-l="en"
27+lang="en"` and once with `data-l="es" lang="es"`. `site.css` hides the one
28+that does not match `html[lang]`. `site.js` sets `html[lang]` before the body
29+is drawn, from the first of: `?lang=en` or `?lang=es`, the choice stored when
30+someone pressed EN or ES, a browser language that starts with `es`, English.
31+Elements with `data-aria-en` and `data-aria-es` get the matching
32+`aria-label`; the page title and the "Copied" message follow too.
33+
34+Transcripts, commands and JSON are not translated, and carry `lang="en"`.
35+In the ratio table, what each row compares is written in both languages;
36+its commands and its ratio are not translated.
37+
38+Every code block keeps its lines and scrolls in its own box, and so does
39+the story's `braid blame`, whose columns must line up (`term-cols`). At 480
40+pixels and below, blame leaves its ids out (`span.bl-id`) and its bar note
41+says so (`span.bn-ids`); below 360 its type is a little smaller, so every
42+line fits a phone whole. The story's `braid op log` (`term-oplog`) never
43+scrolls: an entry that does not fit wraps under itself, four columns in, so
44+what each landing did stays in view. Each of its lines is a `span.ol`, an
45+inline block with its newline inside, so the text reads and copies as braid
46+prints it. The other story transcripts wrap as plain text.
47+
48+In the HTML, the `<pre>` of every block that may scroll, and the wrapper of
49+each table, is a labelled region that takes keyboard focus. `site.js` keeps
50+that only where the box does scroll at the current width, and takes the
51+`tabindex`, the role and the label away elsewhere, so a keyboard does not
52+stop on text that does not move. A copy button, where there is one, names
53+what it copies. Both labels are given in the two languages with
54+`data-aria-en` and `data-aria-es`.
55+
56+A flag with its argument, or any name with a hyphen (`Apache-2.0`,
57+`SHA-256`, `cargo-fuzz`, `(fast-forward)` in a transcript), sits in
58+`<span class="nw">` (or the whole `<code class="nw">`), so a narrow screen
59+never breaks a line inside it. A separator goes inside the span of the word
60+after it, so it never ends a line.
61+
62+New text goes in both languages. The Spanish is written, not translated word
63+for word: land is *aterrizar*, workspace *espacio de trabajo*, store
64+*almacén*, op log *registro de operaciones*; changeset, fast-forward and lease
65+stay in English.
66+
67+## Slots that will be filled later
68+
69+- `<!-- autosync:start -->` … `<!-- autosync:end -->` holds a placeholder for
70+ automatic git sync. Each marker appears once. Until the feature ships, its
71+ heading and its text say it is coming, never that it works. Whoever fills
72+ it keeps the id `autosync` and both languages, and says nothing about it
73+ anywhere else on the page, in the meta tags or in the OG image. The one
74+ link to it from outside is "Automatic sync with git" at the end of `#git`,
75+ which stays true before and after; keep the id.
76+- `<!-- ratios:start -->` … `<!-- ratios:end -->` holds everything that comes
77+ from one run of `bench/run.py`: the commit measured, the table, the retry
78+ counts and what they showed, in the past tense. To refresh it, put the rows
79+ of the new table in the `<tbody>`, one `<tr>` per row. The first cell says
80+ what was compared, once in `<span data-l="en" lang="en">` and once in
81+ `<span data-l="es" lang="es">`; commands stay in `<code>`, and the Spanish
82+ writes thousands with a no-break space (`10&nbsp;287`) and four digits
83+ together (`1000`). The second cell holds the ratio alone, as the script
84+ prints it: `site.js` draws a marker per row from it, on a log scale with a
85+ line at 1. Then rewrite the sentences in both languages, including the
86+ list of work that came after the commit measured. Keep the `table-wrap`
87+ around the table, with its attributes. Nothing outside the block depends
88+ on the run: the line about speed under "What is honest about this" only
89+ sends the reader to the table.
90+
91+## What the page may say
92+
93+- Only what is true of the code today.
94+- Ratios against git appear only between the ratios markers. No absolute
95+ times, sizes or throughput, no description of any machine, no user names
96+ and no disk paths.
97+- The story is braid's own test, `crates/cli/tests/three_agents.rs`, run as
98+ the "Run it yourself" script does. If the transcripts are made again, leave
99+ out the op log's times and blame's dates, never paste what `workspace add`
100+ prints (it names the directory), and change the hero card and the story
101+ together.
102+- The quick start and the agent's commands under "Many agents on one
103+ repository" run as one session, top to bottom. `braid undo` comes after the
104+ agent lands, so it takes that landing back; before it, it would take the
105+ import back and leave the agent an empty repository.
106+- Every link into the repository points at `main` on GitHub.
107+
108+## Before it is served
109+
110+The page describes what `main` holds on GitHub, so it goes out only once
111+all of this is true:
112+
113+1. `main` on GitHub holds this tree, `site/` included, pushed after
114+ `scripts/privacy-check.sh` passes. The quick start clones and builds it,
115+ and CI has run on it: the story says CI runs the scene on every push to
116+ `main`.
117+2. Every link into the repository answers from `main`. Check them against
118+ what `main` holds, not against github.com, which answers 200 for any path
119+ of an empty repository: a file answers 200 at
120+ `https://raw.githubusercontent.com/KikoCis/elffuss-braid/main/<path>`,
121+ and a directory (`crates/sim`, `fuzz/fuzz_targets`, `bench`) is listed by
122+ `gh api 'repos/KikoCis/elffuss-braid/contents/<path>?ref=main'`.
123+3. The text matches `main`. The ratios block, for one, lists the work on
124+ speed that came after the commit measured, and that list grows.
125+4. `https://braid.elffuss.com/` answers 200 with a certificate for that
126+ name, `http://braid.elffuss.com/` redirects to it, and
127+ `https://braid.elffuss.com/og.png` answers 200 as `image/png`. Only then
128+ does the link go anywhere: the repository's homepage
129+ (`gh repo edit KikoCis/elffuss-braid --homepage https://braid.elffuss.com`),
130+ and posts, whose link previews are fetched once and kept.
131+
132+## Images
133+
134+`og.png` is `og/og.svg` rendered at 1200 × 630 in a headless browser. The
135+icons are `favicon.svg` rendered at 32 and 180 pixels; the 180-pixel one is
136+drawn on a square without rounded corners, since iOS rounds it.
137+`favicon.ico` holds `favicon-32.png`, byte for byte, as its one image: an
138+ICO file may hold a PNG. Before a PNG is committed, strip every chunk but
139+the image data and look through it with `strings` for anything that names a
140+person or a machine. Check a PNG by its chunks (only `IHDR`, `IDAT` and
141+`IEND`), not with a text search: compressed image data can match any short
142+pattern. A text search of the page skips binary files and also catches
143+units written after `&nbsp;`:
144+
145+```bash
146+grep -rnIE --exclude=README.md "/(Users|home)/|[0-9]+(&nbsp;|\s)?(ms|MB|GB|MiB|GiB)\b" site/
147+```
148+
149+The only hits it should find are the secrets guard's `1&nbsp;MiB`, in
150+English and in Spanish: a threshold of braid's, not a measurement.
151+
152+Every strand on the page is the logo's own curve, from
153+`docs/assets/braid.svg`: three strands of `y = 48 + 27 cos(2π (x − c) / 92)`,
154+a third of a period apart, and at each crossing the strand on top is cut out
155+of the one beneath. The SVGs are plain markup and can be edited by hand; an
156+inlined copy of the logo needs its own mask ids.
added site/apple-touch-icon.png +0 −0

Binary content is not shown. View the file.

added site/favicon-32.png +0 −0

Binary content is not shown. View the file.

added site/favicon.ico +0 −0

Binary content is not shown. View the file.

added site/favicon.svg +3 −0
@@ -0,0 +1,3 @@
1+<!-- SPDX-License-Identifier: Apache-2.0
2+ Copyright (c) 2026 UtopiaIA -->
3+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><clipPath id="fv-clip"><rect width="64" height="64" rx="14"/></clipPath></defs><rect width="64" height="64" rx="14" fill="#090a11"/><g clip-path="url(#fv-clip)"><g transform="translate(-35.46 -6.4) scale(0.8)"><defs><mask id="fv-cut0" maskUnits="userSpaceOnUse" x="24.33" y="-12" width="120" height="120"><rect x="24.33" y="-12" width="120" height="120" fill="#fff"/><path d="M38.67 21.01C41.17 21.11 43.67 22.42 46.17 24.77C48.67 27.12 51.17 30.51 53.67 34.5C56.17 38.49 58.67 43.08 61.17 47.69C63.67 52.3 66.17 56.92 68.67 60.96M84.67 74.99C87.17 74.89 89.67 73.58 92.17 71.23C94.67 68.88 97.17 65.49 99.67 61.5C102.17 57.51 104.67 52.92 107.17 48.31C109.67 43.7 112.17 39.08 114.67 35.04M130.67 21.01C132.64 21.09 134.61 21.92 136.58 23.42C138.55 24.93 140.53 27.11 142.5 29.79C144.47 32.48 146.44 35.67 148.41 39.1C150.39 42.53 152.36 46.21 154.33 49.84" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="fv-cut1" maskUnits="userSpaceOnUse" x="24.33" y="-12" width="120" height="120"><rect x="24.33" y="-12" width="120" height="120" fill="#fff"/><path d="M14.33 23.75C16.3 25.35 18.27 27.61 20.25 30.37C22.22 33.12 24.19 36.36 26.16 39.83C28.14 43.3 30.11 46.99 32.08 50.61C34.05 54.23 36.03 57.77 38 60.96M54 74.99C56.5 74.89 59 73.58 61.5 71.23C64 68.88 66.5 65.49 69 61.5C71.5 57.51 74 52.92 76.5 48.31C79 43.7 81.5 39.08 84 35.04M100 21.01C102.5 21.11 105 22.42 107.5 24.77C110 27.12 112.5 30.51 115 34.5C117.5 38.49 120 43.08 122.5 47.69C125 52.3 127.5 56.92 130 60.96" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="fv-cut2" maskUnits="userSpaceOnUse" x="24.33" y="-12" width="120" height="120"><rect x="24.33" y="-12" width="120" height="120" fill="#fff"/><path d="M23.33 74.99C25.83 74.89 28.33 73.58 30.83 71.23C33.33 68.88 35.83 65.49 38.33 61.5C40.83 57.51 43.33 52.92 45.83 48.31C48.33 43.7 50.83 39.08 53.33 35.04M69.33 21.01C71.83 21.11 74.33 22.42 76.83 24.77C79.33 27.12 81.83 30.51 84.33 34.5C86.83 38.49 89.33 43.08 91.83 47.69C94.33 52.3 96.83 56.92 99.33 60.96M115.33 74.99C117.83 74.89 120.33 73.58 122.83 71.23C125.33 68.88 127.83 65.49 130.33 61.5C132.83 57.51 135.33 52.92 137.83 48.31C140.33 43.7 142.83 39.08 145.33 35.04" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask></defs><path d="M14.33 70.4C17.92 74.1 21.51 75.67 25.1 74.72C28.69 73.78 32.28 70.32 35.87 65.23C39.46 60.13 43.05 53.44 46.64 46.82C50.23 40.21 53.82 33.74 57.41 29.03C61 24.32 64.59 21.41 68.18 21.04C71.77 20.67 75.36 22.83 78.95 26.99C82.54 31.15 86.12 37.26 89.71 43.8C93.3 50.34 96.89 57.24 100.48 62.78C104.07 68.32 107.66 72.45 111.25 74.12C114.84 75.8 118.43 75.01 122.02 71.95C125.61 68.9 129.2 63.61 132.79 57.4C136.38 51.2 139.97 44.14 143.56 37.99C147.15 31.84 150.74 26.67 154.33 23.75" fill="none" stroke="#c8a06a" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#fv-cut0)"/><path d="M14.33 49.85C17.92 43.24 21.51 36.5 25.1 31.3C28.69 26.1 32.28 22.49 35.87 21.38C39.46 20.27 43.05 21.67 46.64 25.23C50.23 28.78 53.82 34.46 57.41 40.85C61 47.23 64.59 54.25 68.18 60.16C71.77 66.07 75.36 70.81 78.95 73.19C82.54 75.57 86.12 75.58 89.71 73.2C93.3 70.82 96.89 66.08 100.48 60.17C104.07 54.27 107.66 47.24 111.25 40.86C114.84 34.47 118.43 28.79 122.02 25.23C125.61 21.68 129.2 20.27 132.79 21.38C136.38 22.49 139.97 26.09 143.56 31.29C147.15 36.49 150.74 43.23 154.33 49.84" fill="none" stroke="#54dcc6" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#fv-cut1)"/><path d="M14.33 23.75C17.92 26.66 21.51 31.83 25.1 37.98C28.69 44.13 32.28 51.19 35.87 57.39C39.46 63.6 43.05 68.89 46.64 71.95C50.23 75.01 53.82 75.8 57.41 74.12C61 72.45 64.59 68.33 68.18 62.79C71.77 57.26 75.36 50.35 78.95 43.82C82.54 37.28 86.12 31.16 89.71 27C93.3 22.84 96.89 20.67 100.48 21.04C104.07 21.41 107.66 24.31 111.25 29.02C114.84 33.73 118.43 40.2 122.02 46.81C125.61 53.43 129.2 60.12 132.79 65.22C136.38 70.32 139.97 73.77 143.56 74.72C147.15 75.67 150.74 74.1 154.33 70.41" fill="none" stroke="#8272ff" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#fv-cut2)"/></g></g></svg>
added site/index.html +741 −0
@@ -0,0 +1,741 @@
1+<!doctype html>
2+<!-- SPDX-License-Identifier: Apache-2.0
3+ Copyright (c) 2026 UtopiaIA -->
4+<html lang="en">
5+<head>
6+<meta charset="utf-8">
7+<meta name="viewport" content="width=device-width, initial-scale=1">
8+<title>Elffuss Braid · version control for many agents at once</title>
9+<meta name="description" content="Version control for repositories where many AI agents land changes at the same time. Written from scratch in Rust, with git at the edges. Pre-alpha, Apache-2.0.">
10+<link rel="canonical" href="https://braid.elffuss.com/">
11+<meta name="color-scheme" content="dark light">
12+<meta name="theme-color" content="#090a11" media="(prefers-color-scheme: dark)">
13+<meta name="theme-color" content="#f6f4ee" media="(prefers-color-scheme: light)">
14+<meta property="og:type" content="website">
15+<meta property="og:site_name" content="Elffuss">
16+<meta property="og:title" content="Elffuss Braid">
17+<meta property="og:description" content="Version control for repositories where many AI agents land changes at the same time. Written from scratch in Rust, with git at the edges. Pre-alpha, Apache-2.0.">
18+<meta property="og:url" content="https://braid.elffuss.com/">
19+<meta property="og:image" content="https://braid.elffuss.com/og.png">
20+<meta property="og:image:type" content="image/png">
21+<meta property="og:image:width" content="1200">
22+<meta property="og:image:height" content="630">
23+<meta property="og:image:alt" content="The Elffuss Braid logo, three strands braided together, above the line: Many agents. One main. No retry loop.">
24+<meta property="og:locale" content="en_US">
25+<meta property="og:locale:alternate" content="es_ES">
26+<meta name="twitter:card" content="summary_large_image">
27+<meta name="twitter:title" content="Elffuss Braid">
28+<meta name="twitter:description" content="Version control for repositories where many AI agents land changes at the same time. Written from scratch in Rust, with git at the edges. Pre-alpha, Apache-2.0.">
29+<meta name="twitter:image" content="https://braid.elffuss.com/og.png">
30+<meta name="twitter:image:alt" content="The Elffuss Braid logo, three strands braided together, above the line: Many agents. One main. No retry loop.">
31+<link rel="icon" href="favicon.svg" type="image/svg+xml">
32+<link rel="icon" href="favicon-32.png" type="image/png" sizes="32x32">
33+<link rel="apple-touch-icon" href="apple-touch-icon.png">
34+<link rel="stylesheet" href="site.css">
35+<script src="site.js"></script>
36+</head>
37+<body id="top">
38+<a class="skip" href="#main"><span data-l="en" lang="en">Skip to content</span><span data-l="es" lang="es">Saltar al contenido</span></a>
39+
40+<header class="site-head">
41+<div class="wrap head-row">
42+<a class="brand" href="#top"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 96" class="mark" aria-hidden="true" focusable="false"><defs><mask id="hm-cut0" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M38.67 21.01C41.17 21.11 43.67 22.42 46.17 24.77C48.67 27.12 51.17 30.51 53.67 34.5C56.17 38.49 58.67 43.08 61.17 47.69C63.67 52.3 66.17 56.92 68.67 60.96M84.67 74.99C87.17 74.89 89.67 73.58 92.17 71.23C94.67 68.88 97.17 65.49 99.67 61.5C102.17 57.51 104.67 52.92 107.17 48.31C109.67 43.7 112.17 39.08 114.67 35.04M130.67 21.01C133.17 21.11 135.67 22.42 138.17 24.77C140.67 27.12 143.17 30.51 145.67 34.5C148.17 38.49 150.67 43.08 153.17 47.69C155.67 52.3 158.17 56.92 160.67 60.96M176.67 74.99C179.17 74.89 181.67 73.58 184.17 71.23C186.67 68.88 189.17 65.49 191.67 61.5C194.17 57.51 196.67 52.92 199.17 48.31C201.67 43.7 204.17 39.08 206.67 35.04M222.67 21.01C225.17 21.11 227.67 22.42 230.17 24.77C232.67 27.12 235.17 30.51 237.67 34.5C240.17 38.49 242.67 43.08 245.17 47.69C247.67 52.3 250.17 56.92 252.67 60.96M268.67 74.99C271.11 74.89 273.56 73.64 276 71.38C278.44 69.13 280.89 65.88 283.33 62.03C285.78 58.18 288.22 53.73 290.67 49.23C293.11 44.73 295.56 40.18 298 36.13" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="hm-cut1" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M22 32.94C23.78 35.66 25.56 38.71 27.33 41.91C29.11 45.1 30.89 48.43 32.67 51.68C34.44 54.92 36.22 58.09 38 60.96M54 74.99C56.5 74.89 59 73.58 61.5 71.23C64 68.88 66.5 65.49 69 61.5C71.5 57.51 74 52.92 76.5 48.31C79 43.7 81.5 39.08 84 35.04M100 21.01C102.5 21.11 105 22.42 107.5 24.77C110 27.12 112.5 30.51 115 34.5C117.5 38.49 120 43.08 122.5 47.69C125 52.3 127.5 56.92 130 60.96M146 74.99C148.5 74.89 151 73.58 153.5 71.23C156 68.88 158.5 65.49 161 61.5C163.5 57.51 166 52.92 168.5 48.31C171 43.7 173.5 39.08 176 35.04M192 21.01C194.5 21.11 197 22.42 199.5 24.77C202 27.12 204.5 30.51 207 34.5C209.5 38.49 212 43.08 214.5 47.69C217 52.3 219.5 56.92 222 60.96M238 74.99C240.5 74.89 243 73.58 245.5 71.23C248 68.88 250.5 65.49 253 61.5C255.5 57.51 258 52.92 260.5 48.31C263 43.7 265.5 39.08 268 35.04" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="hm-cut2" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M23.33 74.99C25.83 74.89 28.33 73.58 30.83 71.23C33.33 68.88 35.83 65.49 38.33 61.5C40.83 57.51 43.33 52.92 45.83 48.31C48.33 43.7 50.83 39.08 53.33 35.04M69.33 21.01C71.83 21.11 74.33 22.42 76.83 24.77C79.33 27.12 81.83 30.51 84.33 34.5C86.83 38.49 89.33 43.08 91.83 47.69C94.33 52.3 96.83 56.92 99.33 60.96M115.33 74.99C117.83 74.89 120.33 73.58 122.83 71.23C125.33 68.88 127.83 65.49 130.33 61.5C132.83 57.51 135.33 52.92 137.83 48.31C140.33 43.7 142.83 39.08 145.33 35.04M161.33 21.01C163.83 21.11 166.33 22.42 168.83 24.77C171.33 27.12 173.83 30.51 176.33 34.5C178.83 38.49 181.33 43.08 183.83 47.69C186.33 52.3 188.83 56.92 191.33 60.96M207.33 74.99C209.83 74.89 212.33 73.58 214.83 71.23C217.33 68.88 219.83 65.49 222.33 61.5C224.83 57.51 227.33 52.92 229.83 48.31C232.33 43.7 234.83 39.08 237.33 35.04M253.33 21.01C255.83 21.11 258.33 22.42 260.83 24.77C263.33 27.12 265.83 30.51 268.33 34.5C270.83 38.49 273.33 43.08 275.83 47.69C278.33 52.3 280.83 56.92 283.33 60.96" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask></defs><path d="M22 74.94C25.83 75.42 29.67 73 33.5 68.35C37.33 63.7 41.17 56.89 45 49.84C48.83 42.79 52.67 35.58 56.5 30.26C60.33 24.93 64.17 21.55 68 21.06C71.83 20.58 75.67 23 79.5 27.65C83.33 32.3 87.17 39.11 91 46.16C94.83 53.21 98.67 60.42 102.5 65.74C106.33 71.07 110.17 74.45 114 74.94C117.83 75.42 121.67 73 125.5 68.35C129.33 63.7 133.17 56.89 137 49.84C140.83 42.79 144.67 35.58 148.5 30.26C152.33 24.93 156.17 21.55 160 21.06C163.83 20.58 167.67 23 171.5 27.65C175.33 32.3 179.17 39.11 183 46.16C186.83 53.21 190.67 60.42 194.5 65.74C198.33 71.07 202.17 74.45 206 74.94C209.83 75.42 213.67 73 217.5 68.35C221.33 63.7 225.17 56.89 229 49.84C232.83 42.79 236.67 35.58 240.5 30.26C244.33 24.93 248.17 21.55 252 21.06C255.83 20.58 259.67 23 263.5 27.65C267.33 32.3 271.17 39.11 275 46.16C278.83 53.21 282.67 60.42 286.5 65.74C290.33 71.07 294.17 74.45 298 74.94" fill="none" class="sa" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#hm-cut0)"/><path d="M22 36.13C25.83 29.78 29.67 24.75 33.5 22.46C37.33 20.17 41.17 20.64 45 23.75C48.83 26.86 52.67 32.56 56.5 39.25C60.33 45.94 64.17 53.52 68 59.87C71.83 66.22 75.67 71.25 79.5 73.54C83.33 75.83 87.17 75.36 91 72.25C94.83 69.14 98.67 63.44 102.5 56.75C106.33 50.06 110.17 42.48 114 36.13C117.83 29.78 121.67 24.75 125.5 22.46C129.33 20.17 133.17 20.64 137 23.75C140.83 26.86 144.67 32.56 148.5 39.25C152.33 45.94 156.17 53.52 160 59.87C163.83 66.22 167.67 71.25 171.5 73.54C175.33 75.83 179.17 75.36 183 72.25C186.83 69.14 190.67 63.44 194.5 56.75C198.33 50.06 202.17 42.48 206 36.13C209.83 29.78 213.67 24.75 217.5 22.46C221.33 20.17 225.17 20.64 229 23.75C232.83 26.86 236.67 32.56 240.5 39.25C244.33 45.94 248.17 53.52 252 59.87C255.83 66.22 259.67 71.25 263.5 73.54C267.33 75.83 271.17 75.36 275 72.25C278.83 69.14 282.67 63.44 286.5 56.75C290.33 50.06 294.17 42.48 298 36.13" fill="none" class="sb" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#hm-cut1)"/><path d="M22 32.94C25.83 38.8 29.67 46.26 33.5 53.19C37.33 60.13 41.17 66.46 45 70.41C48.83 74.35 52.67 75.86 56.5 74.5C60.33 73.14 64.17 68.93 68 63.06C71.83 57.2 75.67 49.74 79.5 42.81C83.33 35.87 87.17 29.54 91 25.59C94.83 21.65 98.67 20.14 102.5 21.5C106.33 22.86 110.17 27.07 114 32.94C117.83 38.8 121.67 46.26 125.5 53.19C129.33 60.13 133.17 66.46 137 70.41C140.83 74.35 144.67 75.86 148.5 74.5C152.33 73.14 156.17 68.93 160 63.06C163.83 57.2 167.67 49.74 171.5 42.81C175.33 35.87 179.17 29.54 183 25.59C186.83 21.65 190.67 20.14 194.5 21.5C198.33 22.86 202.17 27.07 206 32.94C209.83 38.8 213.67 46.26 217.5 53.19C221.33 60.13 225.17 66.46 229 70.41C232.83 74.35 236.67 75.86 240.5 74.5C244.33 73.14 248.17 68.93 252 63.06C255.83 57.2 259.67 49.74 263.5 42.81C267.33 35.87 271.17 29.54 275 25.59C278.83 21.65 282.67 20.14 286.5 21.5C290.33 22.86 294.17 27.07 298 32.94" fill="none" class="sc" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#hm-cut2)"/></svg><span lang="en">Elffuss Braid</span></a>
43+<nav class="nav" aria-label="Sections" data-aria-en="Sections" data-aria-es="Secciones">
44+<ul>
45+<li><a href="#story"><span data-l="en" lang="en">Story</span><span data-l="es" lang="es">Historia</span></a></li>
46+<li><a href="#how"><span data-l="en" lang="en">How it works</span><span data-l="es" lang="es">Cómo funciona</span></a></li>
47+<li><a href="#start"><span data-l="en" lang="en">Quick start</span><span data-l="es" lang="es">Primeros pasos</span></a></li>
48+<li><a href="#agents"><span data-l="en" lang="en">Agents</span><span data-l="es" lang="es">Agentes</span></a></li>
49+<li><a href="#git">Git</a></li>
50+<li><a href="#measured"><span data-l="en" lang="en">Measured</span><span data-l="es" lang="es">Medido</span></a></li>
51+<li><a href="#honest"><span data-l="en" lang="en">Honest</span><span data-l="es" lang="es">Sin letra pequeña</span></a></li>
52+<li><a href="https://github.com/KikoCis/elffuss-braid">GitHub</a></li>
53+</ul>
54+</nav>
55+<div class="lang" role="group" aria-label="Language" data-aria-en="Language" data-aria-es="Idioma" hidden>
56+<button type="button" data-set-lang="en" lang="en" aria-pressed="true" title="English">EN</button><button type="button" data-set-lang="es" lang="es" aria-pressed="false" title="Español">ES</button>
57+</div>
58+</div>
59+</header>
60+
61+<main id="main" tabindex="-1">
62+
63+<section class="hero" aria-labelledby="hero-title">
64+<div class="wrap hero-grid">
65+<div class="hero-logo"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 96" class="logo" role="img" aria-label="Three strands braided together" data-aria-en="Three strands braided together" data-aria-es="Tres hebras trenzadas"><defs><mask id="hl-cut0" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M38.67 21.01C41.17 21.11 43.67 22.42 46.17 24.77C48.67 27.12 51.17 30.51 53.67 34.5C56.17 38.49 58.67 43.08 61.17 47.69C63.67 52.3 66.17 56.92 68.67 60.96M84.67 74.99C87.17 74.89 89.67 73.58 92.17 71.23C94.67 68.88 97.17 65.49 99.67 61.5C102.17 57.51 104.67 52.92 107.17 48.31C109.67 43.7 112.17 39.08 114.67 35.04M130.67 21.01C133.17 21.11 135.67 22.42 138.17 24.77C140.67 27.12 143.17 30.51 145.67 34.5C148.17 38.49 150.67 43.08 153.17 47.69C155.67 52.3 158.17 56.92 160.67 60.96M176.67 74.99C179.17 74.89 181.67 73.58 184.17 71.23C186.67 68.88 189.17 65.49 191.67 61.5C194.17 57.51 196.67 52.92 199.17 48.31C201.67 43.7 204.17 39.08 206.67 35.04M222.67 21.01C225.17 21.11 227.67 22.42 230.17 24.77C232.67 27.12 235.17 30.51 237.67 34.5C240.17 38.49 242.67 43.08 245.17 47.69C247.67 52.3 250.17 56.92 252.67 60.96M268.67 74.99C271.11 74.89 273.56 73.64 276 71.38C278.44 69.13 280.89 65.88 283.33 62.03C285.78 58.18 288.22 53.73 290.67 49.23C293.11 44.73 295.56 40.18 298 36.13" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="hl-cut1" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M22 32.94C23.78 35.66 25.56 38.71 27.33 41.91C29.11 45.1 30.89 48.43 32.67 51.68C34.44 54.92 36.22 58.09 38 60.96M54 74.99C56.5 74.89 59 73.58 61.5 71.23C64 68.88 66.5 65.49 69 61.5C71.5 57.51 74 52.92 76.5 48.31C79 43.7 81.5 39.08 84 35.04M100 21.01C102.5 21.11 105 22.42 107.5 24.77C110 27.12 112.5 30.51 115 34.5C117.5 38.49 120 43.08 122.5 47.69C125 52.3 127.5 56.92 130 60.96M146 74.99C148.5 74.89 151 73.58 153.5 71.23C156 68.88 158.5 65.49 161 61.5C163.5 57.51 166 52.92 168.5 48.31C171 43.7 173.5 39.08 176 35.04M192 21.01C194.5 21.11 197 22.42 199.5 24.77C202 27.12 204.5 30.51 207 34.5C209.5 38.49 212 43.08 214.5 47.69C217 52.3 219.5 56.92 222 60.96M238 74.99C240.5 74.89 243 73.58 245.5 71.23C248 68.88 250.5 65.49 253 61.5C255.5 57.51 258 52.92 260.5 48.31C263 43.7 265.5 39.08 268 35.04" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="hl-cut2" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M23.33 74.99C25.83 74.89 28.33 73.58 30.83 71.23C33.33 68.88 35.83 65.49 38.33 61.5C40.83 57.51 43.33 52.92 45.83 48.31C48.33 43.7 50.83 39.08 53.33 35.04M69.33 21.01C71.83 21.11 74.33 22.42 76.83 24.77C79.33 27.12 81.83 30.51 84.33 34.5C86.83 38.49 89.33 43.08 91.83 47.69C94.33 52.3 96.83 56.92 99.33 60.96M115.33 74.99C117.83 74.89 120.33 73.58 122.83 71.23C125.33 68.88 127.83 65.49 130.33 61.5C132.83 57.51 135.33 52.92 137.83 48.31C140.33 43.7 142.83 39.08 145.33 35.04M161.33 21.01C163.83 21.11 166.33 22.42 168.83 24.77C171.33 27.12 173.83 30.51 176.33 34.5C178.83 38.49 181.33 43.08 183.83 47.69C186.33 52.3 188.83 56.92 191.33 60.96M207.33 74.99C209.83 74.89 212.33 73.58 214.83 71.23C217.33 68.88 219.83 65.49 222.33 61.5C224.83 57.51 227.33 52.92 229.83 48.31C232.33 43.7 234.83 39.08 237.33 35.04M253.33 21.01C255.83 21.11 258.33 22.42 260.83 24.77C263.33 27.12 265.83 30.51 268.33 34.5C270.83 38.49 273.33 43.08 275.83 47.69C278.33 52.3 280.83 56.92 283.33 60.96" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask></defs><path d="M22 74.94C25.83 75.42 29.67 73 33.5 68.35C37.33 63.7 41.17 56.89 45 49.84C48.83 42.79 52.67 35.58 56.5 30.26C60.33 24.93 64.17 21.55 68 21.06C71.83 20.58 75.67 23 79.5 27.65C83.33 32.3 87.17 39.11 91 46.16C94.83 53.21 98.67 60.42 102.5 65.74C106.33 71.07 110.17 74.45 114 74.94C117.83 75.42 121.67 73 125.5 68.35C129.33 63.7 133.17 56.89 137 49.84C140.83 42.79 144.67 35.58 148.5 30.26C152.33 24.93 156.17 21.55 160 21.06C163.83 20.58 167.67 23 171.5 27.65C175.33 32.3 179.17 39.11 183 46.16C186.83 53.21 190.67 60.42 194.5 65.74C198.33 71.07 202.17 74.45 206 74.94C209.83 75.42 213.67 73 217.5 68.35C221.33 63.7 225.17 56.89 229 49.84C232.83 42.79 236.67 35.58 240.5 30.26C244.33 24.93 248.17 21.55 252 21.06C255.83 20.58 259.67 23 263.5 27.65C267.33 32.3 271.17 39.11 275 46.16C278.83 53.21 282.67 60.42 286.5 65.74C290.33 71.07 294.17 74.45 298 74.94" fill="none" class="sa" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#hl-cut0)" pathLength="1"/><path d="M22 36.13C25.83 29.78 29.67 24.75 33.5 22.46C37.33 20.17 41.17 20.64 45 23.75C48.83 26.86 52.67 32.56 56.5 39.25C60.33 45.94 64.17 53.52 68 59.87C71.83 66.22 75.67 71.25 79.5 73.54C83.33 75.83 87.17 75.36 91 72.25C94.83 69.14 98.67 63.44 102.5 56.75C106.33 50.06 110.17 42.48 114 36.13C117.83 29.78 121.67 24.75 125.5 22.46C129.33 20.17 133.17 20.64 137 23.75C140.83 26.86 144.67 32.56 148.5 39.25C152.33 45.94 156.17 53.52 160 59.87C163.83 66.22 167.67 71.25 171.5 73.54C175.33 75.83 179.17 75.36 183 72.25C186.83 69.14 190.67 63.44 194.5 56.75C198.33 50.06 202.17 42.48 206 36.13C209.83 29.78 213.67 24.75 217.5 22.46C221.33 20.17 225.17 20.64 229 23.75C232.83 26.86 236.67 32.56 240.5 39.25C244.33 45.94 248.17 53.52 252 59.87C255.83 66.22 259.67 71.25 263.5 73.54C267.33 75.83 271.17 75.36 275 72.25C278.83 69.14 282.67 63.44 286.5 56.75C290.33 50.06 294.17 42.48 298 36.13" fill="none" class="sb" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#hl-cut1)" pathLength="1"/><path d="M22 32.94C25.83 38.8 29.67 46.26 33.5 53.19C37.33 60.13 41.17 66.46 45 70.41C48.83 74.35 52.67 75.86 56.5 74.5C60.33 73.14 64.17 68.93 68 63.06C71.83 57.2 75.67 49.74 79.5 42.81C83.33 35.87 87.17 29.54 91 25.59C94.83 21.65 98.67 20.14 102.5 21.5C106.33 22.86 110.17 27.07 114 32.94C117.83 38.8 121.67 46.26 125.5 53.19C129.33 60.13 133.17 66.46 137 70.41C140.83 74.35 144.67 75.86 148.5 74.5C152.33 73.14 156.17 68.93 160 63.06C163.83 57.2 167.67 49.74 171.5 42.81C175.33 35.87 179.17 29.54 183 25.59C186.83 21.65 190.67 20.14 194.5 21.5C198.33 22.86 202.17 27.07 206 32.94C209.83 38.8 213.67 46.26 217.5 53.19C221.33 60.13 225.17 66.46 229 70.41C232.83 74.35 236.67 75.86 240.5 74.5C244.33 73.14 248.17 68.93 252 63.06C255.83 57.2 259.67 49.74 263.5 42.81C267.33 35.87 271.17 29.54 275 25.59C278.83 21.65 282.67 20.14 286.5 21.5C290.33 22.86 294.17 27.07 298 32.94" fill="none" class="sc" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#hl-cut2)" pathLength="1"/></svg></div>
66+<div class="hero-copy">
67+<p class="eyebrow"><span data-l="en" lang="en">Elffuss Braid · <span class="nw">pre-alpha</span> <span class="nw">· Apache-2.0</span></span><span data-l="es" lang="es">Elffuss Braid · <span class="nw">pre-alfa</span> <span class="nw">· Apache-2.0</span></span></p>
68+<h1 id="hero-title"><span data-l="en" lang="en"><span class="nw">Many agents.</span> <span class="nw">One main.</span> <span class="nw">No retry loop.</span></span><span data-l="es" lang="es"><span class="nw">Muchos agentes.</span> <span class="nw">Un solo main.</span> <span class="nw">Sin reintentos.</span></span></h1>
69+<p class="pitch" data-l="en" lang="en">Version control for repositories where many agents land changes at the same time.</p>
70+<p class="pitch" data-l="es" lang="es">Control de versiones para repositorios en los que muchos agentes aterrizan cambios a la vez.</p>
71+<p class="sub" data-l="en" lang="en">Written from scratch in Rust. Each agent commits in its own workspace, and a change that fell behind is rebased onto whatever landed first. Git stays at the edges, so GitHub keeps working.</p>
72+<p class="sub" data-l="es" lang="es">Escrito desde cero en Rust. Cada agente hace commit en su propio espacio de trabajo, y si un cambio se ha quedado atrás, braid le hace rebase sobre lo que haya aterrizado antes. Git se queda en los bordes, así que GitHub sigue funcionando.</p>
73+<div class="cta">
74+<a class="btn btn-primary" href="#story"><span data-l="en" lang="en">Watch three agents land</span><span data-l="es" lang="es">Mira cómo aterrizan tres agentes</span></a>
75+<a class="btn" href="#start"><span data-l="en" lang="en">Quick start</span><span data-l="es" lang="es">Primeros pasos</span></a>
76+<a class="btn" href="https://github.com/KikoCis/elffuss-braid">GitHub</a>
77+</div>
78+<p class="fine"><span data-l="en" lang="en">Pre-alpha. Keep your git repository as the source of truth.</span><span data-l="es" lang="es">Pre-alfa: tu repositorio de git sigue siendo la fuente de verdad.</span></p>
79+</div>
80+<figure class="hero-card">
81+<div class="term term-hero" lang="en">
82+<pre><code><span class="pr"><span class="ag ag-c">[agent-c]</span> $ </span><span class="cmd">braid land</span>
83+Landed <span class="id">e39b1668831b</span> on main <span class="nw">(fast-forward)</span>
84+<span class="pr"><span class="ag ag-a">[agent-a]</span> $ </span><span class="cmd">braid land</span>
85+Landed on main as <span class="id">e0c85ddea85b</span>, rebased onto <span class="id">e39b1668831b</span> (1 path merged)
86+<span class="pr"><span class="ag ag-b">[agent-b]</span> $ </span><span class="cmd">braid land</span>
87+<span class="x"><span class="id">65bb04180402</span> conflicts with main at <span class="id">e0c85ddea85b</span>; main did not move:</span> <span class="exit" title="exit status 2">exit 2</span></code></pre>
88+</div>
89+<figcaption><span data-l="en" lang="en">The first line of each landing in the scene below. Two changes land. The third touched the same line as another, so main stays where it was and the conflict comes back as data.</span><span data-l="es" lang="es">La primera línea de cada aterrizaje de la escena que viene a continuación. Entran dos cambios. El tercero tocó la misma línea que otro, así que main se queda donde estaba y el conflicto vuelve como datos.</span></figcaption>
90+</figure>
91+</div>
92+</section>
93+
94+<section id="story" class="sec story" aria-labelledby="story-title">
95+<div class="wrap">
96+<div class="sec-head">
97+<p class="eyebrow"><span data-l="en" lang="en">The scene</span><span data-l="es" lang="es">La escena</span></p>
98+<h2 id="story-title"><span data-l="en" lang="en">Three agents, one main</span><span data-l="es" lang="es">Tres agentes, un solo main</span></h2>
99+</div>
100+
101+<div class="chapter">
102+<div class="ch-num" aria-hidden="true">I</div>
103+<div class="ch-main">
104+<h3><span class="sr-only">1. </span><span data-l="en" lang="en">Three agents, one file</span><span data-l="es" lang="es">Tres agentes, un fichero</span></h3>
105+<p data-l="en" lang="en">Three agents get three small tasks in the same repository. Two of them, A and B, are asked to reword the same line of <code>notes.txt</code>. The third, C, only adds a line at the end. They finish within moments of each other.</p>
106+<p data-l="es" lang="es">Tres agentes reciben tres encargos pequeños en el mismo repositorio. A dos de ellos, A y B, les toca reescribir la misma línea de <code>notes.txt</code>. El tercero, C, solo añade una línea al final. Terminan casi a la vez.</p>
107+<ul class="tasks" lang="en">
108+<li class="task t-a"><span class="task-who">agent-a · notes.txt</span><pre><code><span class="del">- alpha</span>
109+<span class="add">+ alpha, from a</span></code></pre></li>
110+<li class="task t-b"><span class="task-who">agent-b · notes.txt</span><pre><code><span class="del">- alpha</span>
111+<span class="add">+ alpha, from b</span></code></pre></li>
112+<li class="task t-c"><span class="task-who">agent-c · notes.txt</span><pre><code><span class="ctx"> gamma</span>
113+<span class="add">+ delta, from c</span></code></pre></li>
114+</ul>
115+</div>
116+</div>
117+
118+<div class="chapter ch-x">
119+<div class="ch-num" aria-hidden="true">II</div>
120+<div class="ch-main">
121+<h3><span class="sr-only">2. </span><span data-l="en" lang="en">In git, they step on each other</span><span data-l="es" lang="es">En git, se pisan</span></h3>
122+<p data-l="en" lang="en">Put them in one checkout and they trip over its single index:</p>
123+<p data-l="es" lang="es">Si trabajan en la misma copia, chocan con el índice, porque solo hay uno:</p>
124+<figure class="term t-n" lang="en">
125+<figcaption class="term-bar"><span>git</span></figcaption>
126+<pre><code><span class="x">fatal: Unable to create '…/.git/index.lock': File exists.</span>
127+Another git process seems to be running in this repository, e.g. …</code></pre>
128+</figure>
129+<p data-l="en" lang="en">So each one gets a clone of its own, and the fight moves to the push. C gets in first. A is turned away:</p>
130+<p data-l="es" lang="es">Así que cada uno se lleva su propio clon, y la pelea pasa al push. C llega primero. Al agente A le rechazan el suyo:</p>
131+<figure class="term t-a" lang="en">
132+<figcaption class="term-bar"><span>agent-a · git push</span></figcaption>
133+<pre><code><span class="x"> ! [rejected] main -&gt; main (fetch first)</span>
134+<span class="x">error: failed to push some refs to '…/remote.git'</span>
135+hint: Updates were rejected because the remote contains work that you do
136+hint: not have locally. …</code></pre>
137+</figure>
138+<div class="loop-row">
139+<div>
140+<p data-l="en" lang="en">A fetches, rebases and pushes again. B is turned away too: its rebase runs into A's edit, it fixes the conflict and pushes again, and if anyone got in meanwhile, it is turned away once more. Every agent that loses the race runs the same lap: fetch, rebase, push, again. The more agents, the more laps; we counted them in <a href="#measured">Measured against git</a>. And much of what comes back is text written for people.</p>
141+<p data-l="es" lang="es">A hace fetch, rebase y vuelve a hacer push. Con B pasa lo mismo, pero al hacer rebase choca con el cambio de A: arregla el conflicto, vuelve a empujar y, si alguien ha entrado entretanto, otra vez rechazado. Todo agente que pierde la carrera da la misma vuelta: fetch, rebase, push, y vuelta a empezar. Cuantos más agentes, más vueltas; las contamos en <a href="#measured">«Medido frente a git»</a>. Y buena parte de lo que devuelve git es texto pensado para personas.</p>
142+</div>
143+<div class="loop-fig"><svg class="gitloop" viewBox="0 0 460 200" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path class="gl-path" d="M14 43.35C60 43.35 93.93 49.35 143.93 43.35 L147.26 41.55 L150.68 39.83 L154.2 38.17 L157.81 36.59 L161.5 35.08 L165.28 33.66 L169.13 32.31 L173.06 31.04 L177.05 29.86 L181.11 28.76 L185.22 27.75 L189.39 26.82 L193.6 25.98 L197.86 25.22 L202.15 24.56 L206.47 23.98 L210.83 23.49 L215.2 23.1 L219.59 22.79 L223.99 22.57 L228.39 22.45 L232.8 22.41 L237.2 22.47 L241.59 22.61 L245.96 22.85 L250.32 23.17 L254.65 23.59 L258.94 24.09 L263.21 24.68 L267.43 25.35 L271.6 26.11 L275.72 26.96 L279.79 27.89 L283.8 28.9 L287.74 29.99 L291.61 31.16 L295.41 32.4 L299.12 33.73 L302.76 35.12 L306.31 36.59 L309.77 38.13 L313.13 39.74 L316.39 41.42 L319.55 43.16 L322.6 44.96 L325.55 46.82 L328.38 48.73 L331.09 50.71 L333.69 52.73 L336.16 54.81 L338.51 56.93 L340.73 59.1 L342.82 61.3 L344.78 63.55 L346.61 65.84 L348.3 68.16 L349.85 70.51 L351.26 72.88 L352.53 75.29 L353.66 77.71 L354.65 80.15 L355.49 82.61 L356.19 85.09 L356.74 87.57 L357.15 90.06 L357.41 92.56 L357.53 95.05 L357.5 97.55 L357.33 100.04 L357.01 102.52 L356.55 104.99 L355.94 107.45 L355.19 109.89 L354.31 112.31 L353.28 114.71 L352.11 117.09 L350.81 119.43 L349.37 121.75 L347.8 124.03 L346.1 126.28 L344.28 128.49 L342.32 130.66 L340.25 132.78 L338.05 134.86 L335.74 136.89 L333.31 138.86 L330.77 140.79 L328.12 142.66 L325.37 144.47 L322.52 146.23 L319.57 147.92 L316.53 149.55 L313.4 151.11 L310.18 152.61 L306.88 154.03 L303.5 155.39 L300.05 156.68 L296.53 157.89 L292.95 159.03 L289.3 160.09 L285.6 161.08 L281.85 161.99 L278.05 162.82 L274.21 163.57 L270.34 164.25 L266.43 164.84 L262.49 165.35 L258.53 165.78 L254.55 166.12 L250.56 166.39 L246.55 166.57 L242.55 166.67 L238.55 166.69 L234.55 166.62 L230.56 166.48 L226.59 166.25 L222.63 165.94 L218.71 165.55 L214.81 165.08 L210.95 164.53 L207.12 163.9 L203.34 163.2 L199.6 162.42 L195.92 161.56 L192.29 160.63 L188.72 159.63 L185.22 158.56 L181.79 157.41 L178.43 156.2 L175.14 154.92 L171.94 153.57 L168.82 152.17 L165.78 150.7 L162.84 149.17 L159.99 147.58 L157.24 145.94 L154.59 144.24 L152.04 142.49 L149.6 140.7 L147.27 138.85 L145.05 136.96 L142.94 135.03 L140.95 133.06 L139.07 131.05 L137.32 129.01 L135.69 126.94 L134.18 124.83 L132.8 122.7 L131.54 120.54 L130.41 118.36 L129.42 116.16 L128.55 113.95 L127.81 111.72 L127.2 109.48 L126.72 107.23 L126.38 104.98 L126.16 102.72 L126.08 100.46 L126.13 98.2 L126.31 95.95 L126.63 93.71 L127.07 91.48 L127.64 89.26 L128.34 87.05 L129.17 84.87 L130.12 82.7 L131.2 80.56 L132.39 78.45 L133.72 76.36 L135.16 74.3 L136.71 72.28 L138.38 70.29 L140.17 68.34 L142.06 66.43 L144.07 64.56 L146.17 62.74 L148.39 60.96 L150.7 59.23 L153.1 57.55 L155.6 55.93 L158.19 54.36 L160.87 52.84 L163.63 51.38 L166.47 49.98 L169.38 48.65 L172.37 47.37 L175.43 46.16 L178.55 45.01 L181.74 43.93 L184.98 42.92 L188.28 41.97 L191.62 41.09 L195.01 40.29 L198.44 39.55 L201.9 38.89 L205.4 38.3 L208.93 37.78 L212.48 37.33 L216.05 36.96 L219.63 36.66 L223.23 36.44 L226.83 36.29 L230.44 36.22 L234.04 36.21 L237.63 36.29 L241.22 36.43 L244.79 36.65 L248.34 36.94 L251.87 37.31 L255.37 37.75 L258.83 38.25 L262.26 38.83 L265.66 39.48 L269 40.19 L272.3 40.97 L275.55 41.82 L278.75 42.74 L281.88 43.71 L284.95 44.75 L287.96 45.85 L290.89 47.02 L293.75 48.23 L296.54 49.51 L299.25 50.84 L301.87 52.22 L304.41 53.66 L306.86 55.14 L309.22 56.67 L311.49 58.25 L313.66 59.87 L315.73 61.53 L317.7 63.23 L319.57 64.97 L321.34 66.74 L322.99 68.55 L324.54 70.39 L325.98 72.25 L327.31 74.14 L328.53 76.06 L329.63 77.99"/><circle class="gl-dot" cx="143.93" cy="43.35" r="4"/><text class="gl-t" x="135.93" y="27.35" text-anchor="middle">push</text><circle class="gl-dot-x" cx="354.57" cy="79.93" r="5.5"/><text class="gl-x" x="372.57" y="83.93" text-anchor="start">rejected</text><circle class="gl-dot" cx="236" cy="166.66" r="4"/><text class="gl-t" x="236" y="194.66" text-anchor="middle">fetch</text><circle class="gl-dot" cx="126.14" cy="98" r="4"/><text class="gl-t" x="110.14" y="103" text-anchor="end">rebase</text><circle class="gl-dot" cx="160.37" cy="53.11" r="4"/><text class="gl-t" x="166.37" y="75.11" text-anchor="start">push</text><path class="gl-ar" d="M331.93 81.27 L323.9 77.19 L330.82 72.33 Z"/></svg></div>
144+</div>
145+</div>
146+</div>
147+
148+<div class="chapter">
149+<div class="ch-num" aria-hidden="true">III</div>
150+<div class="ch-main">
151+<h3><span class="sr-only">3. </span><span data-l="en" lang="en">The same three agents, in braid</span><span data-l="es" lang="es">Los mismos tres, en braid</span></h3>
152+<p data-l="en" lang="en">Braid gives each agent a workspace of its own over one shared store. There is no index to fight over and no staging area: an agent commits what it changed, and lands it. All three commit before anyone lands; then they land as they finish.</p>
153+<p data-l="es" lang="es">Braid da a cada agente su propio espacio de trabajo sobre un único almacén compartido. No hay índice por el que pelearse ni área de preparación: el agente hace commit de lo que ha cambiado y lo aterriza. Los tres hacen commit antes de que aterrice nadie, y luego aterrizan según van terminando.</p>
154+<p data-l="en" lang="en">C is first. Nothing has landed since it started, so its change goes straight in:</p>
155+<p data-l="es" lang="es">C es el primero. No ha aterrizado nada desde que empezó, así que su cambio entra directo:</p>
156+<figure class="term t-c" lang="en">
157+<figcaption class="term-bar"><span>agent-c</span></figcaption>
158+<pre><code><span class="pr"><span class="ag ag-c">[agent-c]</span> $ </span><span class="cmd">braid land</span>
159+Landed <span class="id">e39b1668831b</span> on main <span class="nw">(fast-forward)</span></code></pre>
160+</figure>
161+<p data-l="en" lang="en">A is one changeset behind. It does not fetch and it does not retry: in one short step, braid rebases A's change onto C's and merges the one file both touched.</p>
162+<p data-l="es" lang="es">A va un changeset por detrás. Ni hace fetch ni reintenta: en un solo paso corto, braid le hace rebase sobre el cambio de C y fusiona el único fichero que han tocado los dos.</p>
163+<figure class="term t-a" lang="en">
164+<figcaption class="term-bar"><span>agent-a</span></figcaption>
165+<pre><code><span class="pr"><span class="ag ag-a">[agent-a]</span> $ </span><span class="cmd">braid land</span>
166+Landed on main as <span class="id">e0c85ddea85b</span>, rebased onto <span class="id">e39b1668831b</span> (1 path merged)
167+Updated 1 path in the working copy</code></pre>
168+</figure>
169+</div>
170+</div>
171+
172+<div class="chapter">
173+<div class="ch-num" aria-hidden="true">IV</div>
174+<div class="ch-main">
175+<h3><span class="sr-only">4. </span><span data-l="en" lang="en">Main did not move</span><span data-l="es" lang="es">main no se movió</span></h3>
176+<p data-l="en" lang="en">B changed the same line as A. That is a real conflict, and no tool should guess its way through one. Braid stops and leaves main where it was:</p>
177+<p data-l="es" lang="es">B cambió la misma línea que A. Eso es un conflicto de verdad, y ahí ninguna herramienta debería ir a ciegas. Braid se para y deja main donde estaba:</p>
178+<figure class="term t-b" lang="en">
179+<figcaption class="term-bar"><span>agent-b</span><span class="exit" title="exit status 2">exit 2</span></figcaption>
180+<pre><code><span class="pr"><span class="ag ag-b">[agent-b]</span> $ </span><span class="cmd">braid land</span>
181+<span class="x"><span class="id">65bb04180402</span> conflicts with main at <span class="id">e0c85ddea85b</span>; main did not move:</span>
182+<span class="x"> CONTENT notes.txt (1 region)</span>
183+Run `braid update` to bring the conflicts into the working copy.</code></pre>
184+</figure>
185+<p data-l="en" lang="en">It exits with status 2. A command line braid cannot parse exits with 2 as well, so to be sure an agent asks for <code class="nw">--json</code>: only a conflict prints <code>"outcome": "conflicts"</code>, and the conflict itself comes back as data. Each side is named from B's point of view: <code>base</code> is the common ancestor, <code>branch</code> is what main holds now, <code>workspace</code> is B's own change. Lines count from 0 with the end left out, and <code>next</code> says what to run:</p>
186+<p data-l="es" lang="es">Sale con código 2. Un comando que braid no sabe interpretar también sale con 2, así que, para ir sobre seguro, el agente pide <code class="nw">--json</code>: solo un conflicto imprime <code>"outcome": "conflicts"</code>, y el propio conflicto llega como datos. Cada lado se nombra desde el punto de vista de B: <code>base</code> es el ancestro común, <code>branch</code> lo que tiene main ahora y <code>workspace</code> su propio cambio. Las líneas se cuentan desde 0 y el final del tramo no se incluye; <code>next</code> le dice qué ejecutar:</p>
187+<figure class="term t-b" lang="en">
188+<figcaption class="term-bar"><span>agent-b</span><span class="bar-note"><span data-l="en" lang="en">abridged; braid prints it on one line</span><span data-l="es" lang="es">abreviado; braid lo imprime en una sola línea</span></span></figcaption>
189+<pre><code><span class="pr"><span class="ag ag-b">[agent-b]</span> $ </span><span class="cmd">braid land --json</span>
190+{
191+ <span class="el">…</span>
192+ "conflicts": [{
193+ <span class="el">…</span>
194+ "hunks": [{
195+ "base": {
196+ "end": 2, "start": 1,
197+ "text": "alpha\n" },
198+ "branch": {
199+ "end": 2, "start": 1,
200+ "text": <span class="ln-a">"alpha, from a\n"</span> },
201+ "workspace": {
202+ "end": 2, "start": 1,
203+ "text": <span class="ln-b">"alpha, from b\n"</span> }
204+ }],
205+ "kind": "CONTENT",
206+ "path": "notes.txt",
207+ <span class="el">…</span>
208+ }],
209+ <span class="el">…</span>
210+ "next": "braid update",
211+ "operation": null,
212+ "outcome": "conflicts",
213+ <span class="el">…</span>
214+}</code></pre>
215+</figure>
216+<p data-l="en" lang="en">B runs <code>braid update</code>. Its copy gets the markers, with C's line already merged below them:</p>
217+<p data-l="es" lang="es">B ejecuta <code>braid update</code>. Su copia recibe las marcas de conflicto, con la línea de C ya fusionada debajo:</p>
218+<figure class="term t-b" lang="en">
219+<figcaption class="term-bar"><span>agent-b</span><span class="exit" title="exit status 2">exit 2</span></figcaption>
220+<pre><code><span class="pr"><span class="ag ag-b">[agent-b]</span> $ </span><span class="cmd">braid update</span>
221+<span class="x"><span class="id">65bb04180402</span> conflicts with <span class="id">e0c85ddea85b</span>; the working copy has the merge so far:</span>
222+<span class="x"> CONTENT notes.txt (1 region)</span>
223+Fix the files, `braid resolve` the other conflicts, then `braid commit`.
224+Updated 1 path in the working copy</code></pre>
225+</figure>
226+<figure class="term term-file t-b" lang="en">
227+<figcaption class="term-bar"><span>b/notes.txt</span></figcaption>
228+<pre><code>title
229+<span class="x">&lt;&lt;&lt;&lt;&lt;&lt;&lt; main (e0c85ddea85b)</span>
230+<span class="ln-a">alpha, from a</span>
231+<span class="x">=======</span>
232+<span class="ln-b">alpha, from b</span>
233+<span class="x">&gt;&gt;&gt;&gt;&gt;&gt;&gt; 65bb04180402 (b: alpha)</span>
234+beta
235+gamma
236+<span class="ln-c">delta, from c</span></code></pre>
237+</figure>
238+<p data-l="en" lang="en">Until the markers are gone, <code>braid status</code> says why a commit would be refused:</p>
239+<p data-l="es" lang="es">Mientras queden marcas, <code>braid status</code> explica por qué no aceptaría el commit:</p>
240+<figure class="term t-b" lang="en">
241+<figcaption class="term-bar"><span>agent-b</span></figcaption>
242+<pre><code><span class="pr"><span class="ag ag-b">[agent-b]</span> $ </span><span class="cmd">braid status</span>
243+<span class="el">…</span>
244+Not ready to commit:
245+ - conflict markers remain in "notes.txt": edit them out</code></pre>
246+</figure>
247+<p data-l="en" lang="en">B writes one line that keeps both edits and commits without a new message, so the change keeps its own. Then it lands:</p>
248+<p data-l="es" lang="es">B escribe una línea que recoge las dos ediciones y hace commit sin mensaje nuevo, así que el cambio conserva el suyo. Después aterriza:</p>
249+<figure class="term t-b" lang="en">
250+<figcaption class="term-bar"><span>agent-b</span></figcaption>
251+<pre><code><span class="pr"><span class="ag ag-b">[agent-b]</span> $ </span><span class="cmd">braid commit</span>
252+Committed <span class="id">4938acdd0794</span> (1 path)
253+Rebase finished at <span class="id">4938acdd0794</span>; `braid land` when ready
254+<span class="pr"><span class="ag ag-b">[agent-b]</span> $ </span><span class="cmd">braid land</span>
255+Landed <span class="id">4938acdd0794</span> on main <span class="nw">(fast-forward)</span></code></pre>
256+</figure>
257+<p data-l="en" lang="en">Start the three landings at the same moment and the order changes from run to run. The shape does not: one goes straight in, one is rebased, one gets the conflict.</p>
258+<p data-l="es" lang="es">Si lanzas los tres aterrizajes a la vez, el orden cambia de una ejecución a otra, pero la forma no: uno entra directo, a otro se le hace rebase y otro se lleva el conflicto.</p>
259+</div>
260+</div>
261+
262+<div class="chapter">
263+<div class="ch-num" aria-hidden="true">V</div>
264+<div class="ch-main">
265+<h3><span class="sr-only">5. </span><span data-l="en" lang="en">Everyone ends with the same file, and git sees all of it</span><span data-l="es" lang="es">Todos acaban con el mismo fichero, y git lo ve todo</span></h3>
266+<p data-l="en" lang="en">A and C run <code>braid update</code> and get the same file as B. Each line names the agent that last changed it, even through a rebase:</p>
267+<p data-l="es" lang="es">A y C hacen <code>braid update</code> y les llega el mismo fichero que tiene B. Cada línea dice qué agente la cambió por última vez, también tras un rebase:</p>
268+<figure class="term term-cols term-blame t-n" lang="en">
269+<figcaption class="term-bar"><span>repo</span><span class="bar-note"><span data-l="en" lang="en"><span class="bn-ids">ids and </span>dates left out</span><span data-l="es" lang="es">sin <span class="bn-ids">ids ni </span>fechas</span></span></figcaption>
270+<pre tabindex="0" role="region" aria-label="Blame of notes.txt, one row per line" data-aria-en="Blame of notes.txt, one row per line" data-aria-es="Blame de notes.txt, una fila por línea"><code><span class="pr">$ </span><span class="cmd">braid blame main notes.txt</span>
271+<span class="bl-id"><span class="id">f161e3fa5539</span> </span>seeder <span class="el">…</span> 1 title
272+<span class="ln-b"><span class="bl-id"><span class="id">4938acdd0794</span> </span>agent-b <span class="el">…</span> 2 alpha, from a and b</span>
273+<span class="bl-id"><span class="id">f161e3fa5539</span> </span>seeder <span class="el">…</span> 3 beta
274+<span class="bl-id"><span class="id">f161e3fa5539</span> </span>seeder <span class="el">…</span> 4 gamma
275+<span class="ln-c"><span class="bl-id"><span class="id">e39b1668831b</span> </span>agent-c <span class="el">…</span> 5 delta, from c</span></code></pre>
276+</figure>
277+<p data-l="en" lang="en">The op log says who did what, and how:</p>
278+<p data-l="es" lang="es">El registro de operaciones cuenta quién hizo qué, y cómo:</p>
279+<figure class="term term-oplog t-n" lang="en">
280+<figcaption class="term-bar"><span>repo</span><span class="bar-note"><span data-l="en" lang="en">times left out</span><span data-l="es" lang="es">sin horas</span></span></figcaption>
281+<pre><code><span class="pr">$ </span><span class="cmd">braid op log -n 3</span>
282+<span class="ol">#4 <span class="ag ag-b">agent-b</span> land workspace b on main: fast-forward <span class="id">4938acdd0794</span> -&gt; <span class="id">4938acdd0794</span> <span class="nw">(0 paths merged)</span>
283+</span><span class="ol"> main: <span class="id">e0c85ddea85b</span> -&gt; <span class="id">4938acdd0794</span>
284+</span><span class="ol">#3 <span class="ag ag-a">agent-a</span> land workspace a on main: rebased <span class="id">a984ef34e1c9</span> -&gt; <span class="id">e0c85ddea85b</span> <span class="nw">(1 path merged)</span>
285+</span><span class="ol"> main: <span class="id">e39b1668831b</span> -&gt; <span class="id">e0c85ddea85b</span>
286+</span><span class="ol">#2 <span class="ag ag-c">agent-c</span> land workspace c on main: fast-forward <span class="id">e39b1668831b</span> -&gt; <span class="id">e39b1668831b</span> <span class="nw">(0 paths merged)</span>
287+</span><span class="ol"> main: <span class="id">f161e3fa5539</span> -&gt; <span class="id">e39b1668831b</span></span></code></pre>
288+</figure>
289+<p data-l="en" lang="en">And git keeps working. One command pushes main to a git remote as a fast-forward, with a lease; history there is never rewritten. Each changeset arrives as one git commit that names its agent in an <code>agent</code> header:</p>
290+<p data-l="es" lang="es">Y git sigue funcionando. Un solo comando sube main a un remoto de git como fast-forward y con lease: la historia del remoto nunca se reescribe. Cada changeset llega como un commit de git que nombra a su agente en una cabecera <code>agent</code>:</p>
291+<figure class="term t-n" lang="en">
292+<figcaption class="term-bar"><span>repo</span></figcaption>
293+<pre><code><span class="pr">$ </span><span class="cmd">braid git sync ../remote.git</span>
294+Pushed main (<span class="id">4938acdd0794</span>) to main as <span class="id">be3c44e7383b</span>.
295+<span class="pr">$ </span><span class="cmd">git -C ../remote.git cat-file commit main</span>
296+<span class="el">…</span>
297+<span class="ln-b">agent agent-b</span>
298+rebased-from <span class="id">65bb04180402</span><span class="el">…</span>
299+<span class="el">…</span></code></pre>
300+</figure>
301+<p data-l="en" lang="en">This scene is one of braid's tests, <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/cli/tests/three_agents.rs"><code>crates/cli/tests/three_agents.rs</code></a>, which checks each landing, the conflict, the file all three end with, the op log and the push. CI runs it on every push to main and every pull request. Ids change on every run, because every signature carries its time.</p>
302+<p data-l="es" lang="es">Esta escena es uno de los tests de braid, <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/cli/tests/three_agents.rs"><code>crates/cli/tests/three_agents.rs</code></a>, que comprueba cada aterrizaje, el conflicto, el fichero con el que acaban los tres, el registro de operaciones y el push. La integración continua lo ejecuta en cada push a main y en cada pull request. Los ids cambian en cada ejecución, porque cada firma lleva su hora.</p>
303+<details class="run">
304+<summary><span data-l="en" lang="en">Run it yourself</span><span data-l="es" lang="es">Repítela tú</span></summary>
305+<div class="code" lang="en">
306+<div class="code-bar"><span>bash</span><button class="copy" type="button" aria-label="Copy the scene as a script" data-aria-en="Copy the scene as a script" data-aria-es="Copiar la escena como script" hidden><span class="c-idle" data-l="en" lang="en">Copy</span><span class="c-idle" data-l="es" lang="es">Copiar</span><span class="c-done" data-l="en" lang="en">Copied</span><span class="c-done" data-l="es" lang="es">Copiado</span></button></div>
307+<pre tabindex="0" role="region" aria-label="The scene as a script" data-aria-en="The scene as a script" data-aria-es="La escena como script"><code># with braid on your PATH (see Quick start)
308+export BRAID_AUTHOR="Ada Lovelace &lt;ada@example.org&gt;"
309+cd "$(mktemp -d)"
310+braid init repo
311+printf 'title\nalpha\nbeta\ngamma\n' &gt; seed.txt
312+(cd repo &amp;&amp; BRAID_AGENT=seeder braid change create --base none \
313+ --set notes.txt=@../seed.txt -m "Seed the notes" --land main)
314+for n in a b c; do (cd repo &amp;&amp; braid workspace add $n ../$n); done
315+printf 'title\nalpha, from a\nbeta\ngamma\n' &gt; a/notes.txt
316+printf 'title\nalpha, from b\nbeta\ngamma\n' &gt; b/notes.txt
317+printf 'title\nalpha\nbeta\ngamma\ndelta, from c\n' &gt; c/notes.txt
318+(cd a &amp;&amp; BRAID_AGENT=agent-a braid commit -m "a: alpha")
319+(cd b &amp;&amp; BRAID_AGENT=agent-b braid commit -m "b: alpha")
320+(cd c &amp;&amp; BRAID_AGENT=agent-c braid commit -m "c: delta")
321+(cd c &amp;&amp; BRAID_AGENT=agent-c braid land) # fast-forward
322+(cd a &amp;&amp; BRAID_AGENT=agent-a braid land) # rebased, 1 path merged
323+(cd b &amp;&amp; BRAID_AGENT=agent-b braid land) # exit status 2: main did not move
324+(cd b &amp;&amp; BRAID_AGENT=agent-b braid update) # markers in b/notes.txt
325+printf 'title\nalpha, from a and b\nbeta\ngamma\ndelta, from c\n' &gt; b/notes.txt
326+(cd b &amp;&amp; BRAID_AGENT=agent-b braid commit) # keeps its message
327+(cd b &amp;&amp; BRAID_AGENT=agent-b braid land) # fast-forward
328+(cd a &amp;&amp; BRAID_AGENT=agent-a braid update) # a gets the same file as b
329+(cd c &amp;&amp; BRAID_AGENT=agent-c braid update) # and so does c
330+(cd repo &amp;&amp; braid op log -n 3)
331+(cd repo &amp;&amp; braid blame main notes.txt)
332+git init --quiet --bare remote.git
333+(cd repo &amp;&amp; braid git sync ../remote.git)</code></pre>
334+</div>
335+</details>
336+</div>
337+</div>
338+</div>
339+</section>
340+
341+<!-- autosync:start -->
342+<section id="autosync" class="sec autosync" aria-labelledby="autosync-title">
343+<div class="wrap">
344+<div class="as-band">
345+<p class="pill"><span data-l="en" lang="en">In progress</span><span data-l="es" lang="es">En desarrollo</span></p>
346+<h2 id="autosync-title"><span data-l="en" lang="en">Coming: the hard work in braid, the clean history in git.</span><span data-l="es" lang="es">Próximamente: el trabajo duro en braid, la historia limpia en git.</span></h2>
347+<p data-l="en" lang="en">Today, braid git sync runs when you call it, and every changeset reaches git as a commit of its own. Automatic, curated sync is being built: agents keep landing in braid, and git receives a clean history to read and review. It is not released yet. This section will say how it works once it ships.</p>
348+<p data-l="es" lang="es">Hoy, braid git sync se ejecuta cuando lo lanzas, y cada changeset llega a git como un commit propio. Estamos construyendo una sincronización automática y curada: los agentes siguen aterrizando en braid y git recibe una historia limpia, lista para leer y revisar. Aún no está publicada; cuando lo esté, esta sección contará cómo funciona.</p>
349+</div>
350+</div>
351+</section>
352+<!-- autosync:end -->
353+
354+<section id="how" class="sec" aria-labelledby="how-title">
355+<div class="wrap">
356+<div class="sec-head">
357+<h2 id="how-title"><span data-l="en" lang="en">How it works</span><span data-l="es" lang="es">Cómo funciona</span></h2>
358+</div>
359+<figure class="diagram">
360+<svg class="dgm dgm-wide" viewBox="0 0 1000 408" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><rect class="band" x="12" y="12" width="254" height="390" rx="16"/><text class="lb mono dim" font-size="13.5"><tspan data-l="en" lang="en" x="28" y="36">commit: in parallel</tspan><tspan data-l="es" lang="es" x="28" y="36">commit: en paralelo</tspan></text><rect class="card" x="28" y="49" width="222" height="62" rx="10"/><rect class="acc-a" x="40" y="60" width="4" height="40" rx="2"/><text class="lb mono hi" font-size="15"><tspan x="56" y="75">workspace a</tspan></text><text class="lb dim" font-size="13.5"><tspan data-l="en" lang="en" x="56" y="96">own working copy · no index</tspan><tspan data-l="es" lang="es" x="56" y="96">su propia copia · sin índice</tspan></text><rect class="card" x="28" y="137" width="222" height="62" rx="10"/><rect class="acc-c" x="40" y="148" width="4" height="40" rx="2"/><text class="lb mono hi" font-size="15"><tspan x="56" y="163">workspace c</tspan></text><text class="lb dim" font-size="13.5"><tspan data-l="en" lang="en" x="56" y="184">own working copy · no index</tspan><tspan data-l="es" lang="es" x="56" y="184">su propia copia · sin índice</tspan></text><rect class="card" x="28" y="225" width="222" height="62" rx="10"/><rect class="acc-b" x="40" y="236" width="4" height="40" rx="2"/><text class="lb mono hi" font-size="15"><tspan x="56" y="251">workspace b</tspan></text><text class="lb dim" font-size="13.5"><tspan data-l="en" lang="en" x="56" y="272">own working copy · no index</tspan><tspan data-l="es" lang="es" x="56" y="272">su propia copia · sin índice</tspan></text><text class="lb hi strong" font-size="14"><tspan data-l="en" lang="en" x="28" y="318">one shared store</tspan><tspan data-l="es" lang="es" x="28" y="318">un almacén compartido</tspan></text><text class="lb dim" font-size="13.5"><tspan data-l="en" lang="en" x="28" y="340">immutable objects</tspan><tspan data-l="en" lang="en" x="28" y="357.5">named by BLAKE3</tspan><tspan data-l="en" lang="en" x="28" y="375">append-only op log</tspan><tspan data-l="es" lang="es" x="28" y="340">objetos inmutables</tspan><tspan data-l="es" lang="es" x="28" y="357.5">con nombre BLAKE3</tspan><tspan data-l="es" lang="es" x="28" y="375">registro de operaciones</tspan><tspan data-l="es" lang="es" x="28" y="392.5">que solo crece</tspan></text><defs><mask id="dw-m-a" maskUnits="userSpaceOnUse" x="0" y="0" width="1000" height="408"><rect width="1000" height="408" fill="#fff"/><path d="M636.9 192.29C639.15 192.2 641.4 191.02 643.65 188.9C645.9 186.79 648.15 183.74 650.4 180.15C652.65 176.56 654.9 172.43 657.15 168.28C659.4 164.13 661.65 159.97 663.9 156.33" fill="none" stroke="#000" stroke-width="16.65"/><path d="M678.3 143.71C680.55 143.8 682.8 144.98 685.05 147.1C687.3 149.21 689.55 152.26 691.8 155.85C694.05 159.44 696.3 163.57 698.55 167.72C700.8 171.87 703.05 176.03 705.3 179.67" fill="none" stroke="#000" stroke-width="16.65"/><path d="M719.7 192.29C721.95 192.2 724.2 191.02 726.45 188.9C728.7 186.79 730.95 183.74 733.2 180.15C735.45 176.56 737.7 172.43 739.95 168.28C742.2 164.13 744.45 159.97 746.7 156.33" fill="none" stroke="#000" stroke-width="16.65"/></mask><mask id="dw-m-c" maskUnits="userSpaceOnUse" x="0" y="0" width="1000" height="408"><rect width="1000" height="408" fill="#fff"/><path d="M630 147.24C632.23 149.38 634.47 152.43 636.7 156.01C638.93 159.59 641.17 163.7 643.4 167.82C645.63 171.93 647.87 176.06 650.1 179.67" fill="none" stroke="#000" stroke-width="16.65"/><path d="M664.5 192.29C666.75 192.2 669 191.02 671.25 188.9C673.5 186.79 675.75 183.74 678 180.15C680.25 176.56 682.5 172.43 684.75 168.28C687 164.13 689.25 159.97 691.5 156.33" fill="none" stroke="#000" stroke-width="16.65"/><path d="M705.9 143.71C708.15 143.8 710.4 144.98 712.65 147.1C714.9 149.21 717.15 152.26 719.4 155.85C721.65 159.44 723.9 163.57 726.15 167.72C728.4 171.87 730.65 176.03 732.9 179.67" fill="none" stroke="#000" stroke-width="16.65"/></mask><mask id="dw-m-b" maskUnits="userSpaceOnUse" x="0" y="0" width="1000" height="408"><rect width="1000" height="408" fill="#fff"/><path d="M650.7 143.71C652.95 143.8 655.2 144.98 657.45 147.1C659.7 149.21 661.95 152.26 664.2 155.85C666.45 159.44 668.7 163.57 670.95 167.72C673.2 171.87 675.45 176.03 677.7 179.67" fill="none" stroke="#000" stroke-width="16.65"/><path d="M692.1 192.29C694.35 192.2 696.6 191.02 698.85 188.9C701.1 186.79 703.35 183.74 705.6 180.15C707.85 176.56 710.1 172.43 712.35 168.28C714.6 164.13 716.85 159.97 719.1 156.33" fill="none" stroke="#000" stroke-width="16.65"/><path d="M733.5 143.71C735.23 143.78 736.95 144.48 738.67 145.77C740.4 147.05 742.12 148.91 743.85 151.21C745.58 153.51 747.3 156.25 749.02 159.21C750.75 162.18 752.48 165.37 754.2 168.55" fill="none" stroke="#000" stroke-width="16.65"/></mask></defs><rect class="post" x="596" y="88.72" width="8" height="44" rx="4"/><rect class="post" x="596" y="203.28" width="8" height="44" rx="4"/><text class="lb hi" text-anchor="middle" font-size="13.5"><tspan data-l="en" lang="en" x="600" y="74.72">land · one short step, taken in turn</tspan><tspan data-l="es" lang="es" x="600" y="74.72">land · un paso corto, por turnos</tspan></text><path class="strand st-c" d="M250 168C368.33 168 486.67 168 605 168C620 168 632.35 160.63 640.35 150.43C643.8 146.04 647.25 143.56 650.7 143.71C654.15 143.85 657.6 146.61 661.05 151.21C664.5 155.81 667.95 162.19 671.4 168.55C674.85 174.91 678.3 181.17 681.75 185.57C685.2 189.96 688.65 192.44 692.1 192.29C695.55 192.15 699 189.39 702.45 184.79C705.9 180.19 709.35 173.81 712.8 167.45C716.25 161.09 719.7 154.83 723.15 150.43C726.6 146.04 730.05 143.56 733.5 143.71C736.95 143.85 740.4 146.61 743.85 151.21C747.3 155.81 750.75 162.19 754.2 168.55" stroke-width="8.55" mask="url(#dw-m-c)"/><path class="strand st-a" d="M250 80C323.33 80 396.67 80 470 80C555 80 535 146 570 146C580 146 590 146 600 146C610 146 620 137.66 630 147.24C633.45 150.54 636.9 156.07 640.35 162.25C643.8 168.43 647.25 175.19 650.7 180.63C654.15 186.06 657.6 190.1 661.05 191.61C664.5 193.12 667.95 192.07 671.4 188.76C674.85 185.46 678.3 179.93 681.75 173.75C685.2 167.57 688.65 160.81 692.1 155.37C695.55 149.94 699 145.9 702.45 144.39C705.9 142.88 709.35 143.93 712.8 147.24C716.25 150.54 719.7 156.07 723.15 162.25C726.6 168.43 730.05 175.19 733.5 180.63C736.95 186.06 740.4 190.1 743.85 191.61C747.3 193.12 750.75 192.07 754.2 188.76" stroke-width="8.55" mask="url(#dw-m-a)"/><path class="strand st-b" d="M250 256C323.33 256 396.67 256 470 256C560 256 540 190 570 190C580 190 590 190 600 190C610 190 620 180.46 630 189.32C633.45 192.37 636.9 193.11 640.35 191.32C643.8 189.54 647.25 185.25 650.7 179.67C654.15 174.09 657.6 167.28 661.05 161.18C664.5 155.07 667.95 149.74 671.4 146.68C674.85 143.63 678.3 142.89 681.75 144.68C685.2 146.46 688.65 150.75 692.1 156.33C695.55 161.91 699 168.72 702.45 174.82C705.9 180.93 709.35 186.26 712.8 189.32C716.25 192.37 719.7 193.11 723.15 191.32C726.6 189.54 730.05 185.25 733.5 179.67C736.95 174.09 740.4 167.28 743.85 161.18C747.3 155.07 750.75 149.74 754.2 146.68" stroke-width="8.55" mask="url(#dw-m-b)"/><text class="lb mono t-a" font-size="13"><tspan x="284" y="106">rebased · 1 path merged</tspan></text><text class="lb mono t-c" font-size="13"><tspan x="290" y="154">fast-forward</tspan></text><path class="knot" d="M334 256 C352.2 256 371.7 252.1 371.7 237.8 C371.7 223.5 350.9 223.5 350.9 237.8 C350.9 252.1 369.1 256 386 256"/><text class="lb t-x" font-size="13"><tspan data-l="en" lang="en" x="290" y="222">conflict · exit 2 · main did not move</tspan><tspan data-l="es" lang="es" x="290" y="222">conflicto · exit 2 · main no se movió</tspan></text><path class="loop" d="M334 266C316 308 264 312 260 272"/><path class="ar ar-b" d="M260 267 L264.36 273.71 L256.87 274.36 Z"/><text class="lb mono t-b" font-size="13"><tspan data-l="en" lang="en" x="274" y="332">update · fix · commit</tspan><tspan data-l="es" lang="es" x="274" y="332">update · arreglo · commit</tspan></text><text class="lb mono t-b" text-anchor="end" font-size="13"><tspan x="588" y="282">fast-forward</tspan></text><text class="lb mono hi" text-anchor="middle" font-size="15"><tspan x="692.1" y="124">main</tspan></text><path class="flow" d="M766.2 168 L789.2 168"/><path class="ar" d="M795.2 168 L788.14 171.76 L788.14 164.24 Z"/><rect class="box" x="798.2" y="137" width="197.8" height="62" rx="12"/><text class="lb mono hi" font-size="15"><tspan x="814.2" y="163">git sync</tspan></text><text class="lb dim" font-size="13.5"><tspan data-l="en" lang="en" x="814.2" y="184">any git remote</tspan><tspan data-l="es" lang="es" x="814.2" y="184">cualquier remoto de git</tspan></text><text class="lb dim" font-size="13.5"><tspan data-l="en" lang="en" x="800.2" y="222">fast-forward, with a lease</tspan><tspan data-l="es" lang="es" x="800.2" y="222">fast-forward, con lease</tspan></text><rect class="ghost" x="798.2" y="268" width="197.8" height="58" rx="12"/><text class="lb muted" font-size="13.5"><tspan data-l="en" lang="en" x="814.2" y="292">planned:</tspan><tspan data-l="es" lang="es" x="814.2" y="292">previsto:</tspan></text><text class="lb muted" font-size="13.5"><tspan data-l="en" lang="en" x="814.2" y="312">server · daemon · caches</tspan><tspan data-l="es" lang="es" x="814.2" y="312">servidor · daemon · cachés</tspan></text></svg>
361+<svg class="dgm dgm-tall" viewBox="0 0 360 836" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><rect class="band" x="1" y="10" width="358" height="214" rx="16"/><text class="lb hi strong" font-size="13"><tspan data-l="en" lang="en" x="14" y="34">one shared store</tspan><tspan data-l="es" lang="es" x="14" y="34">un almacén compartido</tspan></text><text class="lb dim" font-size="12.5"><tspan data-l="en" lang="en" x="14" y="54">immutable objects named by BLAKE3</tspan><tspan data-l="en" lang="en" x="14" y="70.25">append-only op log</tspan><tspan data-l="es" lang="es" x="14" y="54">objetos inmutables con nombre BLAKE3</tspan><tspan data-l="es" lang="es" x="14" y="70.25">registro de operaciones que solo crece</tspan></text><text class="lb mono dim" font-size="12.5"><tspan data-l="en" lang="en" x="14" y="100">commit: in parallel</tspan><tspan data-l="es" lang="es" x="14" y="100">commit: en paralelo</tspan></text><rect class="card" x="8" y="112" width="104" height="100" rx="10"/><rect class="acc-a" x="17" y="124" width="4" height="76" rx="2"/><text class="lb mono hi" font-size="13"><tspan x="29" y="136">workspace</tspan><tspan x="29" y="152.9">a</tspan></text><text class="lb dim" font-size="12"><tspan data-l="en" lang="en" x="29" y="169">own working</tspan><tspan data-l="en" lang="en" x="29" y="184.6">copy</tspan><tspan data-l="en" lang="en" x="29" y="200.2">no index</tspan><tspan data-l="es" lang="es" x="29" y="169">su propia</tspan><tspan data-l="es" lang="es" x="29" y="184.6">copia</tspan><tspan data-l="es" lang="es" x="29" y="200.2">sin índice</tspan></text><rect class="card" x="128" y="112" width="104" height="100" rx="10"/><rect class="acc-c" x="137" y="124" width="4" height="76" rx="2"/><text class="lb mono hi" font-size="13"><tspan x="149" y="136">workspace</tspan><tspan x="149" y="152.9">c</tspan></text><text class="lb dim" font-size="12"><tspan data-l="en" lang="en" x="149" y="169">own working</tspan><tspan data-l="en" lang="en" x="149" y="184.6">copy</tspan><tspan data-l="en" lang="en" x="149" y="200.2">no index</tspan><tspan data-l="es" lang="es" x="149" y="169">su propia</tspan><tspan data-l="es" lang="es" x="149" y="184.6">copia</tspan><tspan data-l="es" lang="es" x="149" y="200.2">sin índice</tspan></text><rect class="card" x="248" y="112" width="104" height="100" rx="10"/><rect class="acc-b" x="257" y="124" width="4" height="76" rx="2"/><text class="lb mono hi" font-size="13"><tspan x="269" y="136">workspace</tspan><tspan x="269" y="152.9">b</tspan></text><text class="lb dim" font-size="12"><tspan data-l="en" lang="en" x="269" y="169">own working</tspan><tspan data-l="en" lang="en" x="269" y="184.6">copy</tspan><tspan data-l="en" lang="en" x="269" y="200.2">no index</tspan><tspan data-l="es" lang="es" x="269" y="169">su propia</tspan><tspan data-l="es" lang="es" x="269" y="184.6">copia</tspan><tspan data-l="es" lang="es" x="269" y="200.2">sin índice</tspan></text><defs><mask id="dt-m-a" maskUnits="userSpaceOnUse" x="0" y="0" width="360" height="836"><rect width="360" height="836" fill="#fff"/><path d="M184.29 512.9C184.2 515.15 183.02 517.4 180.9 519.65C178.79 521.9 175.74 524.15 172.15 526.4C168.56 528.65 164.43 530.9 160.28 533.15C156.13 535.4 151.97 537.65 148.33 539.9" fill="none" stroke="#000" stroke-width="16.65"/><path d="M135.71 554.3C135.8 556.55 136.98 558.8 139.1 561.05C141.21 563.3 144.26 565.55 147.85 567.8C151.44 570.05 155.57 572.3 159.72 574.55C163.87 576.8 168.03 579.05 171.67 581.3" fill="none" stroke="#000" stroke-width="16.65"/><path d="M184.29 595.7C184.2 597.95 183.02 600.2 180.9 602.45C178.79 604.7 175.74 606.95 172.15 609.2C168.56 611.45 164.43 613.7 160.28 615.95C156.13 618.2 151.97 620.45 148.33 622.7" fill="none" stroke="#000" stroke-width="16.65"/></mask><mask id="dt-m-c" maskUnits="userSpaceOnUse" x="0" y="0" width="360" height="836"><rect width="360" height="836" fill="#fff"/><path d="M139.24 506C141.38 508.23 144.43 510.47 148.01 512.7C151.59 514.93 155.7 517.17 159.82 519.4C163.93 521.63 168.06 523.87 171.67 526.1" fill="none" stroke="#000" stroke-width="16.65"/><path d="M184.29 540.5C184.2 542.75 183.02 545 180.9 547.25C178.79 549.5 175.74 551.75 172.15 554C168.56 556.25 164.43 558.5 160.28 560.75C156.13 563 151.97 565.25 148.33 567.5" fill="none" stroke="#000" stroke-width="16.65"/><path d="M135.71 581.9C135.8 584.15 136.98 586.4 139.1 588.65C141.21 590.9 144.26 593.15 147.85 595.4C151.44 597.65 155.57 599.9 159.72 602.15C163.87 604.4 168.03 606.65 171.67 608.9" fill="none" stroke="#000" stroke-width="16.65"/></mask><mask id="dt-m-b" maskUnits="userSpaceOnUse" x="0" y="0" width="360" height="836"><rect width="360" height="836" fill="#fff"/><path d="M135.71 526.7C135.8 528.95 136.98 531.2 139.1 533.45C141.21 535.7 144.26 537.95 147.85 540.2C151.44 542.45 155.57 544.7 159.72 546.95C163.87 549.2 168.03 551.45 171.67 553.7" fill="none" stroke="#000" stroke-width="16.65"/><path d="M184.29 568.1C184.2 570.35 183.02 572.6 180.9 574.85C178.79 577.1 175.74 579.35 172.15 581.6C168.56 583.85 164.43 586.1 160.28 588.35C156.13 590.6 151.97 592.85 148.33 595.1" fill="none" stroke="#000" stroke-width="16.65"/><path d="M135.71 609.5C135.78 611.23 136.48 612.95 137.77 614.67C139.05 616.4 140.91 618.12 143.21 619.85C145.51 621.58 148.25 623.3 151.21 625.02C154.18 626.75 157.37 628.48 160.55 630.2" fill="none" stroke="#000" stroke-width="16.65"/></mask></defs><rect class="post" x="68.72" y="472" width="56" height="8" rx="4"/><rect class="post" x="195.28" y="472" width="56" height="8" rx="4"/><text class="lb hi" font-size="12.5"><tspan data-l="en" lang="en" x="197.28" y="502">land</tspan><tspan data-l="en" lang="en" x="197.28" y="518.25">one short step,</tspan><tspan data-l="en" lang="en" x="197.28" y="534.5">taken in turn</tspan><tspan data-l="es" lang="es" x="197.28" y="502">land</tspan><tspan data-l="es" lang="es" x="197.28" y="518.25">un paso corto,</tspan><tspan data-l="es" lang="es" x="197.28" y="534.5">por turnos</tspan></text><path class="strand st-c" d="M160 212C160 302 160 391 160 481C160 496 152.63 508.35 142.43 516.35C138.04 519.8 135.56 523.25 135.71 526.7C135.85 530.15 138.61 533.6 143.21 537.05C147.81 540.5 154.19 543.95 160.55 547.4C166.91 550.85 173.17 554.3 177.57 557.75C181.96 561.2 184.44 564.65 184.29 568.1C184.15 571.55 181.39 575 176.79 578.45C172.19 581.9 165.81 585.35 159.45 588.8C153.09 592.25 146.83 595.7 142.43 599.15C138.04 602.6 135.56 606.05 135.71 609.5C135.85 612.95 138.61 616.4 143.21 619.85C147.81 623.3 154.19 626.75 160.55 630.2" stroke-width="8.55" mask="url(#dt-m-c)"/><path class="strand st-a" d="M52 212C52 251.33 52 290.67 52 330C52 410 138 390 138 450C138 458.67 138 467.33 138 476C138 486 129.66 496 139.24 506C142.54 509.45 148.07 512.9 154.25 516.35C160.43 519.8 167.19 523.25 172.63 526.7C178.06 530.15 182.1 533.6 183.61 537.05C185.12 540.5 184.07 543.95 180.76 547.4C177.46 550.85 171.93 554.3 165.75 557.75C159.57 561.2 152.81 564.65 147.37 568.1C141.94 571.55 137.9 575 136.39 578.45C134.88 581.9 135.93 585.35 139.24 588.8C142.54 592.25 148.07 595.7 154.25 599.15C160.43 602.6 167.19 606.05 172.63 609.5C178.06 612.95 182.1 616.4 183.61 619.85C185.12 623.3 184.07 626.75 180.76 630.2" stroke-width="8.55" mask="url(#dt-m-a)"/><path class="strand st-b" d="M306 212C306 266.67 306 321.33 306 376C306 446 182 412 182 450C182 458.67 182 467.33 182 476C182 486 172.46 496 181.32 506C184.37 509.45 185.11 512.9 183.32 516.35C181.54 519.8 177.25 523.25 171.67 526.7C166.09 530.15 159.28 533.6 153.18 537.05C147.07 540.5 141.74 543.95 138.68 547.4C135.63 550.85 134.89 554.3 136.68 557.75C138.46 561.2 142.75 564.65 148.33 568.1C153.91 571.55 160.72 575 166.82 578.45C172.93 581.9 178.26 585.35 181.32 588.8C184.37 592.25 185.11 595.7 183.32 599.15C181.54 602.6 177.25 606.05 171.67 609.5C166.09 612.95 159.28 616.4 153.18 619.85C147.07 623.3 141.74 626.75 138.68 630.2" stroke-width="8.55" mask="url(#dt-m-b)"/><text class="lb mono t-a" font-size="12.5"><tspan x="63" y="250">rebased</tspan><tspan x="63" y="266.25">1 path</tspan><tspan x="63" y="282.5">merged</tspan></text><text class="lb mono t-c" font-size="12.5"><tspan x="172" y="250">fast-forward</tspan></text><path class="knot" d="M306 260 C306 278.2 309.9 297.7 324.2 297.7 C338.5 297.7 338.5 276.9 324.2 276.9 C309.9 276.9 306 295.1 306 312"/><text class="lb t-x" text-anchor="end" font-size="12.5"><tspan data-l="en" lang="en" x="290" y="290">conflict · exit 2</tspan><tspan data-l="en" lang="en" x="290" y="306.25">main did not move</tspan><tspan data-l="es" lang="es" x="290" y="290">conflicto · exit 2</tspan><tspan data-l="es" lang="es" x="290" y="306.25">main no se movió</tspan></text><path class="loop" d="M337 270C350 256 337 238 336 223"/><path class="ar ar-b" d="M336 215 L339.76 222.06 L332.24 222.06 Z"/><text class="lb mono t-b" text-anchor="end" font-size="12.5"><tspan data-l="en" lang="en" x="290" y="334">update</tspan><tspan data-l="en" lang="en" x="290" y="350.25">fix</tspan><tspan data-l="en" lang="en" x="290" y="366.5">commit</tspan><tspan data-l="es" lang="es" x="290" y="334">update</tspan><tspan data-l="es" lang="es" x="290" y="350.25">arreglo</tspan><tspan data-l="es" lang="es" x="290" y="366.5">commit</tspan></text><text class="lb mono t-b" text-anchor="end" font-size="12.5"><tspan x="290" y="385.5">fast-forward</tspan></text><text class="lb mono hi" font-size="14"><tspan x="200" y="573.1">main</tspan></text><path class="flow" d="M160 642.2 L160 663.2"/><path class="ar" d="M160 669.2 L156.24 662.14 L163.76 662.14 Z"/><rect class="box" x="30" y="672.2" width="260" height="58" rx="12"/><text class="lb mono hi" font-size="14"><tspan x="46" y="696.2">git sync</tspan></text><text class="lb dim" font-size="12.5"><tspan data-l="en" lang="en" x="46" y="716.2">any git remote</tspan><tspan data-l="es" lang="es" x="46" y="716.2">cualquier remoto de git</tspan></text><text class="lb dim" font-size="12.5"><tspan data-l="en" lang="en" x="32" y="750.2">fast-forward, with a lease</tspan><tspan data-l="es" lang="es" x="32" y="750.2">fast-forward, con lease</tspan></text><rect class="ghost" x="30" y="768.2" width="260" height="54" rx="12"/><text class="lb muted" font-size="12.5"><tspan data-l="en" lang="en" x="46" y="791.2">planned:</tspan><tspan data-l="en" lang="en" x="46" y="807.45">server · daemon · caches</tspan><tspan data-l="es" lang="es" x="46" y="791.2">previsto:</tspan><tspan data-l="es" lang="es" x="46" y="807.45">servidor · daemon · cachés</tspan></text></svg>
362+<ol class="sr-only" data-l="en" lang="en">
363+<li>Three workspaces, a, b and c, each with its own working copy and no index, sit on one shared store: immutable objects named by BLAKE3, and an append-only op log.</li>
364+<li>The agents commit in parallel.</li>
365+<li>Landing is one short step, taken in turn.</li>
366+<li>c passes straight through: fast-forward.</li>
367+<li>a bends over c's strand: rebased, 1 path merged.</li>
368+<li>b hits a knot: conflict, exit 2, main did not move. It goes back to update, fix and commit, then passes: fast-forward.</li>
369+<li>The strands braid into main, which git sync sends to any git remote as a fast-forward, with a lease.</li>
370+<li>Planned: a server, a daemon and caches.</li>
371+</ol>
372+<ol class="sr-only" data-l="es" lang="es">
373+<li>Tres espacios de trabajo, a, b y c, cada uno con su propia copia y sin índice, sobre un único almacén compartido: objetos inmutables con nombre BLAKE3 y un registro de operaciones que solo crece.</li>
374+<li>Los agentes hacen commit en paralelo.</li>
375+<li>Aterrizar es un paso corto, por turnos.</li>
376+<li>c pasa directo: fast-forward.</li>
377+<li>a se cruza por encima de la hebra de c: rebased, 1 path merged.</li>
378+<li>b choca con un nudo: conflicto, exit 2, main no se movió. Vuelve atrás para hacer update, arreglar y hacer commit, y luego pasa: fast-forward.</li>
379+<li>Las hebras se trenzan en main, que git sync manda a cualquier remoto de git como fast-forward, con lease.</li>
380+<li>Previsto: un servidor, un daemon y cachés.</li>
381+</ol>
382+</figure>
383+<ol class="points" data-l="en" lang="en">
384+<li><strong>Everything is an immutable object named by its BLAKE3 hash:</strong> file contents, directories and changesets. Objects are never rewritten in place; the exact bytes are in <a href="https://github.com/KikoCis/elffuss-braid/blob/main/docs/spec/format-v1.md"><code class="nw">docs/spec/format-v1.md</code></a>, with golden vectors.</li>
385+<li><strong>A changeset records the files that changed against its first parent,</strong> plus the root tree it produces. History, blame and rebase read that short list, and the root id still commits to the whole repository.</li>
386+<li><strong>Agents commit in parallel, each in its own workspace.</strong> Landing is the one step they take in turn, and it is short: a fast-forward, or a rebase path by path that merges only the files both sides touched. Conflicts come back as data, and the branch does not move.</li>
387+<li><strong>Many processes share one store without a daemon.</strong> Segments are leased with locks the kernel releases if a process dies, objects reach the disk before anything that refers to them, and an append-only op log records every ref change, so <code>braid undo</code> can step back.</li>
388+<li><strong>Planned (milestones 6 and 7): the same API at every tier,</strong> so a local store, a per-machine daemon, a cache and a server all answer the same requests. The daemon, the cache and the server do not exist yet.</li>
389+</ol>
390+<ol class="points" data-l="es" lang="es">
391+<li><strong>Todo es un objeto inmutable que se nombra por su hash BLAKE3:</strong> el contenido de los ficheros, los directorios y los changesets. Ningún objeto se reescribe en su sitio; los bytes exactos están en <a href="https://github.com/KikoCis/elffuss-braid/blob/main/docs/spec/format-v1.md"><code class="nw">docs/spec/format-v1.md</code></a>, con vectores de referencia.</li>
392+<li><strong>Un changeset registra los ficheros que cambiaron respecto a su primer padre,</strong> más el árbol raíz que resulta. La historia, blame y el rebase leen esa lista corta, y el id de la raíz sigue fijando el estado de todo el repositorio.</li>
393+<li><strong>Los agentes hacen commit en paralelo, cada uno en su propio espacio de trabajo.</strong> Aterrizar es el único paso que dan por turnos, y es corto: un fast-forward, o un rebase ruta a ruta que solo fusiona los ficheros que han tocado los dos lados. Los conflictos vuelven como datos, y la rama no se mueve.</li>
394+<li><strong>Muchos procesos comparten un almacén sin daemon.</strong> Los segmentos se reservan con cerrojos que el kernel libera si un proceso muere, los objetos llegan al disco antes que lo que apunta a ellos, y un registro de operaciones que solo crece apunta cada cambio de ref, para que <code>braid undo</code> pueda dar marcha atrás.</li>
395+<li><strong>Previsto (fases 6 y 7): la misma API en cada nivel,</strong> de modo que un almacén local, un daemon por máquina, una caché y un servidor respondan a las mismas peticiones. El daemon, la caché y el servidor aún no existen.</li>
396+</ol>
397+<p class="credit" data-l="en" lang="en">Braid starts from ideas Anthropic published about Scion, its internal source control system (<a href="https://www.anthropic.com/engineering/redesigning-source-control">Redesigning source control at Anthropic</a>): changesets stored against the first parent, server-side merges, minimal branch state, immutable objects any cache can serve. Braid is an independent implementation: it contains no Anthropic code and is not affiliated with or endorsed by Anthropic.</p>
398+<p class="credit" data-l="es" lang="es">Braid parte de ideas que Anthropic publicó sobre Scion, su sistema interno de control de versiones (<a href="https://www.anthropic.com/engineering/redesigning-source-control">Redesigning source control at Anthropic</a>): changesets guardados respecto al primer padre, fusiones en el servidor, ramas con un estado mínimo y objetos inmutables que cualquier caché puede servir. Braid es una implementación independiente: no contiene código de Anthropic y no tiene relación con Anthropic ni cuenta con su respaldo.</p>
399+</div>
400+</section>
401+
402+<section id="start" class="sec" aria-labelledby="start-title">
403+<div class="wrap narrow">
404+<div class="sec-head">
405+<h2 id="start-title"><span data-l="en" lang="en">Quick start</span><span data-l="es" lang="es">Primeros pasos</span></h2>
406+</div>
407+<p data-l="en" lang="en">Braid stores history, moves it in and out of git bit for bit, and gives each agent a workspace of its own. Build it, then import a git repository, this one for a start:</p>
408+<p data-l="es" lang="es">Braid guarda historia, la mete y la saca de git bit a bit, y da a cada agente su propio espacio de trabajo. Compílalo e importa un repositorio de git; para empezar, este mismo:</p>
409+<div class="code" lang="en">
410+<div class="code-bar"><span>bash</span><button class="copy" type="button" aria-label="Copy the quick start commands" data-aria-en="Copy the quick start commands" data-aria-es="Copiar los comandos de primeros pasos" hidden><span class="c-idle" data-l="en" lang="en">Copy</span><span class="c-idle" data-l="es" lang="es">Copiar</span><span class="c-done" data-l="en" lang="en">Copied</span><span class="c-done" data-l="es" lang="es">Copiado</span></button></div>
411+<pre tabindex="0" role="region" aria-label="Quick start commands" data-aria-en="Quick start commands" data-aria-es="Comandos de primeros pasos"><code>git clone https://github.com/KikoCis/elffuss-braid
412+cd elffuss-braid
413+cargo build --release
414+export PATH="$PWD/target/release:$PATH"
415+SRC="$PWD" # this clone; another repository works too, with
416+ # its branch for main and one of its files for README.md
417+
418+braid init /tmp/demo
419+cd /tmp/demo
420+braid git import "$SRC" # every local branch and tag
421+braid log main -n 5
422+braid log main -- README.md # only the changes to a path
423+braid blame main README.md # who last changed each line
424+braid show main --json
425+braid fsck
426+braid stats # objects by kind, and how they are stored: whole, deltas, chunks</code></pre>
427+</div>
428+<p data-l="en" lang="en">Exporting writes the same commits back, with the same ids:</p>
429+<p data-l="es" lang="es">Al exportar se escriben los mismos commits, con los mismos ids:</p>
430+<div class="code" lang="en">
431+<div class="code-bar"><span>bash</span><button class="copy" type="button" aria-label="Copy the export commands" data-aria-en="Copy the export commands" data-aria-es="Copiar los comandos para exportar" hidden><span class="c-idle" data-l="en" lang="en">Copy</span><span class="c-idle" data-l="es" lang="es">Copiar</span><span class="c-done" data-l="en" lang="en">Copied</span><span class="c-done" data-l="es" lang="es">Copiado</span></button></div>
432+<pre tabindex="0" role="region" aria-label="Export commands" data-aria-en="Export commands" data-aria-es="Comandos para exportar"><code>git init --bare /tmp/mirror.git
433+braid git export /tmp/mirror.git</code></pre>
434+</div>
435+<p data-l="en" lang="en">Ids can be checked with any BLAKE3 implementation, for example the reference <a href="https://github.com/BLAKE3-team/BLAKE3/tree/master/b3sum"><code>b3sum</code></a> tool. In the clone, it prints the id that <code>braid <span class="nw">hash-object</span> README.md</code> gives:</p>
436+<p data-l="es" lang="es">Los ids se pueden comprobar con cualquier implementación de BLAKE3, por ejemplo la herramienta de referencia <a href="https://github.com/BLAKE3-team/BLAKE3/tree/master/b3sum"><code>b3sum</code></a>. En el clon, imprime el mismo id que da <code>braid <span class="nw">hash-object</span> README.md</code>:</p>
437+<div class="code" lang="en">
438+<div class="code-bar"><span>bash</span><button class="copy" type="button" aria-label="Copy the b3sum commands" data-aria-en="Copy the b3sum commands" data-aria-es="Copiar los comandos de b3sum" hidden><span class="c-idle" data-l="en" lang="en">Copy</span><span class="c-idle" data-l="es" lang="es">Copiar</span><span class="c-done" data-l="en" lang="en">Copied</span><span class="c-done" data-l="es" lang="es">Copiado</span></button></div>
439+<pre tabindex="0" role="region" aria-label="Checking an id with b3sum" data-aria-en="Checking an id with b3sum" data-aria-es="Comprobar un id con b3sum"><code>cd "$SRC" # the clone, where README.md is
440+b3sum --derive-key "elffuss-braid 2026 blob v1" README.md</code></pre>
441+</div>
442+<p class="note" data-l="en" lang="en">Needs Rust 1.89 or newer. CI tests Linux and other Unix-like systems; Windows is not tested yet.</p>
443+<p class="note" data-l="es" lang="es">Necesita Rust 1.89 o posterior. La integración continua prueba Linux y otros sistemas tipo Unix; Windows aún no se prueba.</p>
444+</div>
445+</section>
446+
447+<section id="agents" class="sec" aria-labelledby="agents-title">
448+<div class="wrap">
449+<div class="sec-head">
450+<h2 id="agents-title"><span data-l="en" lang="en">Many agents on one repository</span><span data-l="es" lang="es">Muchos agentes en un repositorio</span></h2>
451+</div>
452+<div class="narrow-left">
453+<p data-l="en" lang="en">Each agent gets its own workspace. There is no staging area and no shared index: an agent commits what it changed and lands it, and braid rebases it onto whatever the others landed first.</p>
454+<p data-l="es" lang="es">Cada agente tiene su propio espacio de trabajo. No hay área de preparación ni índice compartido: el agente hace commit de lo que ha cambiado y lo aterriza, y braid le hace rebase sobre lo que hayan aterrizado antes los demás.</p>
455+<div class="code" lang="en">
456+<div class="code-bar"><span>bash</span><button class="copy" type="button" aria-label="Copy the commands of one agent" data-aria-en="Copy the commands of one agent" data-aria-es="Copiar los comandos de un agente" hidden><span class="c-idle" data-l="en" lang="en">Copy</span><span class="c-idle" data-l="es" lang="es">Copiar</span><span class="c-done" data-l="en" lang="en">Copied</span><span class="c-done" data-l="es" lang="es">Copiado</span></button></div>
457+<pre tabindex="0" role="region" aria-label="Commands of one agent" data-aria-en="Commands of one agent" data-aria-es="Comandos de un agente"><code>cd /tmp/demo # any braid repository
458+export BRAID_AUTHOR="Ada Lovelace &lt;ada@example.org&gt;"
459+export BRAID_AGENT=agent-1 # recorded with everything this agent does
460+braid workspace add agent-1 # ./agent-1, tracking main
461+cd agent-1
462+echo 'fn main() {}' &gt; main.rs
463+braid status
464+braid commit -m "Add main.rs"
465+braid land # fast-forward, or a rebase onto main</code></pre>
466+</div>
467+<p data-l="en" lang="en">Every change to a branch or ref (imports, landings, syncs) is in the op log, and <code>braid undo</code> steps back through them, newest first. Here it takes the landing back, and the changeset stays in the workspace, ready to land again:</p>
468+<p data-l="es" lang="es">Cada cambio de una rama o una ref (importaciones, aterrizajes, sincronizaciones) queda en el registro de operaciones, y <code>braid undo</code> los deshace uno a uno, del más reciente hacia atrás. Aquí deshace el aterrizaje, y el changeset sigue en el espacio de trabajo, listo para aterrizar otra vez:</p>
469+<div class="code" lang="en">
470+<div class="code-bar"><span>bash</span><button class="copy" type="button" aria-label="Copy the op log and undo commands" data-aria-en="Copy the op log and undo commands" data-aria-es="Copiar los comandos del registro de operaciones y de deshacer" hidden><span class="c-idle" data-l="en" lang="en">Copy</span><span class="c-idle" data-l="es" lang="es">Copiar</span><span class="c-done" data-l="en" lang="en">Copied</span><span class="c-done" data-l="es" lang="es">Copiado</span></button></div>
471+<pre tabindex="0" role="region" aria-label="Op log and undo commands" data-aria-en="Op log and undo commands" data-aria-es="Comandos del registro de operaciones y de deshacer"><code>braid op log # who did what, newest first
472+braid undo # takes the landing back</code></pre>
473+</div>
474+</div>
475+<h3 class="grid-title"><span data-l="en" lang="en">What an agent can rely on</span><span data-l="es" lang="es">Con qué puede contar un agente</span></h3>
476+<ul class="contract">
477+<li><h4><span data-l="en" lang="en">Identity</span><span data-l="es" lang="es">Identidad</span></h4>
478+<p data-l="en" lang="en"><code>BRAID_AGENT</code> is written into the op log and into every changeset the agent makes, and survives rebases; changesets imported from git name no agent. <code>BRAID_AUTHOR</code> signs the changesets the agent commits, or creates without a checkout, and the ones it remakes in a rebase. A merge made by <code>git sync</code> is signed instead with the agent label and the email in <code>.braid/config</code>, or <code>&lt;agent&gt;@example.org</code>.</p>
479+<p data-l="es" lang="es"><code>BRAID_AGENT</code> queda escrito en el registro de operaciones y en cada changeset que crea el agente, y sobrevive a los rebases; los changesets importados de git no nombran agente. <code>BRAID_AUTHOR</code> firma los changesets que el agente crea, con commit o sin checkout, y los que rehace en un rebase. Una fusión hecha por <code>git sync</code>, en cambio, se firma con la etiqueta del agente y el correo de <code>.braid/config</code>, o con <code>&lt;agente&gt;@example.org</code>.</p></li>
480+<li><h4><span data-l="en" lang="en">Output</span><span data-l="es" lang="es">Salida</span></h4>
481+<p data-l="en" lang="en"><code class="nw">--json</code> on every command; <code>change create</code> always prints JSON.</p>
482+<p data-l="es" lang="es"><code class="nw">--json</code> en todos los comandos; <code>change create</code> imprime siempre JSON.</p></li>
483+<li><h4><span data-l="en" lang="en">Exit status</span><span data-l="es" lang="es">Código de salida</span></h4>
484+<p data-l="en" lang="en"><code>0</code> done, <code>1</code> failed, <code>2</code> conflicts (the branch did not move), or a command line braid could not parse; with <code class="nw">--json</code> only a conflict prints <code>"outcome": "conflicts"</code>.</p>
485+<p data-l="es" lang="es"><code>0</code> hecho, <code>1</code> fallo, <code>2</code> conflictos (la rama no se movió) o un comando que braid no sabe interpretar; con <code class="nw">--json</code> solo el conflicto imprime <code>"outcome": "conflicts"</code>.</p></li>
486+<li><h4><span data-l="en" lang="en">Status</span><span data-l="es" lang="es">Estado</span></h4>
487+<p data-l="en" lang="en"><code>braid status <span class="nw">--json</span></code> gives <code>behind_by</code>, <code>unlanded</code>, <code>ready_to_commit</code> and <code>blocking</code>, which lists the same reasons <code>braid commit</code> refuses with.</p>
488+<p data-l="es" lang="es"><code>braid status <span class="nw">--json</span></code> da <code>behind_by</code>, <code>unlanded</code>, <code>ready_to_commit</code> y <code>blocking</code>, que lista los mismos motivos por los que <code>braid commit</code> se niega.</p></li>
489+<li><h4><span data-l="en" lang="en">Secrets guard</span><span data-l="es" lang="es">Guarda de secretos</span></h4>
490+<p data-l="en" lang="en">New <code>.env*</code>, <code>*.pem</code> and <code>id_*</code> files, and files over 1&nbsp;MiB, wait for <code>braid track</code>. <code class="nw">--force</code> leaves them out.</p>
491+<p data-l="es" lang="es">Los ficheros nuevos <code>.env*</code>, <code>*.pem</code> e <code>id_*</code>, y los de más de 1&nbsp;MiB, esperan a <code>braid track</code>. <code class="nw">--force</code> los deja fuera.</p></li>
492+<li><h4><span data-l="en" lang="en">Short ids</span><span data-l="es" lang="es">Ids cortos</span></h4>
493+<p data-l="en" lang="en">Six hex digits or more. An ambiguous one is an error that lists the candidates.</p>
494+<p data-l="es" lang="es">Seis dígitos hexadecimales o más. Uno ambiguo es un error que lista los candidatos.</p></li>
495+<li><h4><span data-l="en" lang="en">Conflict kinds</span><span data-l="es" lang="es">Tipos de conflicto</span></h4>
496+<p data-l="en" lang="en"><code>CONTENT</code>, <code>MODIFY_DELETE</code>, <code>MODE</code>, <code>DF</code>, <code>DIR_REMOVED</code>, <code>CASE</code>. <code>braid resolve</code> settles the ones that are not about content.</p>
497+<p data-l="es" lang="es"><code>CONTENT</code>, <code>MODIFY_DELETE</code>, <code>MODE</code>, <code>DF</code>, <code>DIR_REMOVED</code>, <code>CASE</code>. <code>braid resolve</code> zanja los que no son de contenido.</p></li>
498+<li><h4>Checkouts</h4>
499+<p data-l="en" lang="en">They never follow symlinks, and nothing from repository content is ever run.</p>
500+<p data-l="es" lang="es">Nunca siguen enlaces simbólicos, y nunca se ejecuta nada que venga del contenido del repositorio.</p></li>
501+<li class="wide"><h4><span data-l="en" lang="en">No checkout</span><span data-l="es" lang="es">Sin checkout</span></h4>
502+<p data-l="en" lang="en"><code>braid change create</code> makes a changeset without a working copy, and can land it. <code class="nw">--expect</code> takes the full blob id the agent read; a mismatch is refused.</p>
503+<p data-l="es" lang="es"><code>braid change create</code> crea un changeset sin copia de trabajo, y puede aterrizarlo. <code class="nw">--expect</code> recibe el id completo del blob que el agente leyó; si no coincide, se rechaza.</p>
504+<div class="code" lang="en">
505+<pre tabindex="0" role="region" aria-label="A changeset made without a checkout" data-aria-en="A changeset made without a checkout" data-aria-es="Un changeset hecho sin checkout"><code># READ_ID: the full blob id the agent read
506+braid change create --base main --set src/lib.rs=@new-lib.rs \
507+ --expect src/lib.rs="$READ_ID" -m "Fix the parser" --land main</code></pre>
508+</div></li>
509+</ul>
510+</div>
511+</section>
512+
513+<section id="git" class="sec" aria-labelledby="git-title">
514+<div class="wrap">
515+<div class="sec-head">
516+<h2 id="git-title"><span data-l="en" lang="en">Working with git</span><span data-l="es" lang="es">Trabajar con git</span></h2>
517+</div>
518+<p class="lead" data-l="en" lang="en">Repositories come in with their whole history, and git hosts keep working as mirrors.</p>
519+<p class="lead" data-l="es" lang="es">Los repositorios entran con toda su historia, y los servidores de git siguen funcionando como espejos.</p>
520+<dl class="rows">
521+<div class="row">
522+<dt><span data-l="en" lang="en">Import</span><span data-l="es" lang="es">Importar</span><code lang="en">braid git import</code></dt>
523+<dd><p data-l="en" lang="en">Goes through <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a> and brings every local branch and tag; to bring every branch of a remote, import a <code>git clone <span class="nw">--mirror</span></code>. Each commit is exported again as it is imported, and the import stops unless its id comes back the same. Running it again imports only what is new, and points braid's branches and tags at git's, even backwards, which drops from the branch any changeset landed in braid that git does not have (the op log keeps it: <code>braid undo</code>). To keep a branch in step with a git remote, use <code class="nw">git sync</code>. Shallow and <span class="nw">SHA-256</span> repositories are refused for now.</p>
524+<p data-l="es" lang="es">Pasa por <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a> y trae todas las ramas locales y etiquetas; para traer todas las ramas de un remoto, importa un <code>git clone <span class="nw">--mirror</span></code>. Cada commit se vuelve a exportar al importarlo, y la importación se detiene si su id no sale idéntico. Si se repite, solo importa lo nuevo, y apunta las ramas y etiquetas de braid a las de git, aunque sea hacia atrás, con lo que sale de la rama todo changeset aterrizado en braid que git no tenga (el registro de operaciones lo conserva: <code>braid undo</code>). Para mantener una rama al día con un remoto de git, usa <code class="nw">git sync</code>. Los clones superficiales y los repositorios <span class="nw">SHA-256</span> se rechazan por ahora.</p></dd>
525+</div>
526+<div class="row">
527+<dt><span data-l="en" lang="en">Export</span><span data-l="es" lang="es">Exportar</span><code lang="en">braid git export</code></dt>
528+<dd><p data-l="en" lang="en">Writes braid refs, and everything they reach, into a git repository with the same ids. Changesets made in braid export deterministically, with their agent as a commit header. Git refs of the same names are overwritten, so export into a new repository; to keep an existing remote in step, use <code class="nw">git sync</code>.</p>
529+<p data-l="es" lang="es">Escribe las refs de braid, y todo lo que alcanzan, en un repositorio de git con los mismos ids. Los changesets hechos en braid se exportan de forma determinista, con su agente como cabecera del commit. Las refs de git con el mismo nombre se sobrescriben: exporta a un repositorio nuevo y, para mantener al día un remoto que ya existe, usa <code class="nw">git sync</code>.</p></dd>
530+</div>
531+<div class="row">
532+<dt><span data-l="en" lang="en">Sync</span><span data-l="es" lang="es">Sincronizar</span><code lang="en">braid git sync</code></dt>
533+<dd><ul data-l="en" lang="en">
534+<li>It fetches and imports the remote branch, then fast-forwards braid or pushes braid's branch, merging first when both moved.</li>
535+<li>The remote only ever fast-forwards: the push carries a lease on what was just fetched, and history there is never rewritten.</li>
536+<li>Conflicts move nothing and exit 2; a refused push exits 1.</li>
537+<li><code class="nw">--dry-run</code> writes nothing, and <code class="nw">--json</code> names the outcome.</li>
538+</ul>
539+<ul data-l="es" lang="es">
540+<li>Hace fetch de la rama remota y la importa; después hace fast-forward en braid o push de la rama de braid, y antes fusiona si se han movido las dos.</li>
541+<li>El remoto solo avanza en fast-forward: el push lleva un lease sobre lo que se acaba de traer, y allí la historia nunca se reescribe.</li>
542+<li>Los conflictos no mueven nada y salen con 2; un push rechazado sale con 1.</li>
543+<li><code class="nw">--dry-run</code> no escribe nada, y <code class="nw">--json</code> nombra el resultado.</li>
544+</ul></dd>
545+</div>
546+</dl>
547+<div class="code narrow-left" lang="en">
548+<pre tabindex="0" role="region" aria-label="git sync examples" data-aria-en="git sync examples" data-aria-es="Ejemplos de git sync"><code>braid git sync https://github.com/you/project.git --branch main
549+braid git sync https://github.com/you/project.git --dry-run --json</code></pre>
550+</div>
551+<p class="licence" data-l="en" lang="en">Braid contains no code from git (GPLv2). It reads and writes git data with gitoxide (MIT or <span class="nw">Apache-2.0</span>); <code>git sync</code> also runs the git binary as a subprocess, to set up its mirror, fetch and push.</p>
552+<p class="licence" data-l="es" lang="es">Braid no contiene código de git (GPLv2). Lee y escribe datos de git con gitoxide (MIT o <span class="nw">Apache-2.0</span>); <code>git sync</code> además ejecuta el binario de git como subproceso, para preparar su espejo, hacer fetch y hacer push.</p>
553+<p class="next-link"><a href="#autosync"><span data-l="en" lang="en">Automatic sync with git</span><span data-l="es" lang="es">Sincronización automática con git</span></a></p>
554+</div>
555+</section>
556+
557+<section id="measured" class="sec" aria-labelledby="measured-title">
558+<div class="wrap">
559+<div class="sec-head">
560+<h2 id="measured-title"><span data-l="en" lang="en">Measured against git</span><span data-l="es" lang="es">Medido frente a git</span></h2>
561+</div>
562+<ul class="method" data-l="en" lang="en">
563+<li>Ratios are braid / git for the same work on the same machine; below 1 means braid is faster or smaller.</li>
564+<li>braid and git run in alternating order, with warm caches, and the result is the median.</li>
565+<li>Each scenario checks both tools did the same work. A failed check is reported as an error, never as a number.</li>
566+<li>Git runs with its defaults, with automatic gc and maintenance turned off.</li>
567+<li>Only ratios and git's retry counts are published, never times or sizes, together with <a href="https://github.com/KikoCis/elffuss-braid/tree/main/bench">the script</a>.</li>
568+<li>Not measured: cold caches, git's fsmonitor daemon or <code>feature.manyFiles</code>, and transfers between machines (there is no server yet).</li>
569+</ul>
570+<ul class="method" data-l="es" lang="es">
571+<li>Cada ratio es braid / git para el mismo trabajo en la misma máquina; por debajo de 1, braid es más rápido o más pequeño.</li>
572+<li>braid y git se ejecutan en orden alterno, con las cachés calientes, y el resultado es la mediana.</li>
573+<li>Cada escenario comprueba que las dos herramientas hicieron el mismo trabajo. Una comprobación fallida sale como error, nunca como número.</li>
574+<li>Git se ejecuta con su configuración por defecto, con el gc y el mantenimiento automáticos desactivados.</li>
575+<li>Solo se publican ratios y los reintentos de git, nunca tiempos ni tamaños, junto con <a href="https://github.com/KikoCis/elffuss-braid/tree/main/bench">el script</a>.</li>
576+<li>No se mide: cachés frías, el daemon fsmonitor de git o <code>feature.manyFiles</code>, ni transferencias entre máquinas (aún no hay servidor).</li>
577+</ul>
578+<p class="mk-legend" id="mk-legend" hidden><span data-l="en" lang="en">Each marker is drawn from its row's ratio, on a log scale. The line is 1: to its left braid is faster or smaller, to its right slower or larger.</span><span data-l="es" lang="es">Cada marca sale de la ratio de su fila, en escala logarítmica. La línea es el 1: a su izquierda braid es más rápido o más pequeño; a su derecha, más lento o más grande.</span></p>
579+<!-- ratios:start -->
580+<div class="ratios-run">
581+<p class="run-note" data-l="en" lang="en">One run of <code>bench/run.py</code>, measuring braid at commit <code>5330054</code> on one machine. Run the script before relying on any number.</p>
582+<p class="run-note" data-l="es" lang="es">Una sola ejecución de <code>bench/run.py</code>, que mide braid en el commit <code>5330054</code> en una máquina. Ejecuta el script antes de fiarte de ningún número.</p>
583+<div class="table-wrap" tabindex="0" role="region" aria-label="Ratios against git" data-aria-en="Ratios against git" data-aria-es="Ratios frente a git">
584+<table class="ratios">
585+<thead>
586+<tr><th scope="col"><span data-l="en" lang="en">What was compared</span><span data-l="es" lang="es">Qué se comparó</span></th><th scope="col" class="num">braid / git</th><th scope="col"><span data-l="en" lang="en">Reproduce</span><span data-l="es" lang="es">Para repetirlo</span></th></tr>
587+</thead>
588+<tbody>
589+<tr><td><span data-l="en" lang="en">Import <a href="https://github.com/tmux/tmux">tmux</a> 3.5a, 10,287 commits: <code>braid init</code> + <code>braid git import</code> vs <code>git clone <span class="nw">--no-local</span> <span class="nw">--bare</span></code></span><span data-l="es" lang="es">Importar <a href="https://github.com/tmux/tmux">tmux</a> 3.5a, 10&nbsp;287 commits: <code>braid init</code> + <code>braid git import</code> frente a <code>git clone <span class="nw">--no-local</span> <span class="nw">--bare</span></code></span></td><td class="num">17.6</td><td><code>python3 bench/run.py <span class="nw">--only import</span></code></td></tr>
590+<tr><td><span data-l="en" lang="en">Import it and check it out: <code>braid init</code> + <code>braid git import</code> + <code>braid workspace add</code> vs <code>git clone <span class="nw">--no-local</span></code></span><span data-l="es" lang="es">Importarlo y hacer checkout: <code>braid init</code> + <code>braid git import</code> + <code>braid workspace add</code> frente a <code>git clone <span class="nw">--no-local</span></code></span></td><td class="num">17.1</td><td><code>python3 bench/run.py <span class="nw">--only import</span></code></td></tr>
591+<tr><td><span data-l="en" lang="en">Size after that import: <code>du</code> of <code>.braid/store</code> vs the bare clone after <code>git gc <span class="nw">--aggressive</span></code></span><span data-l="es" lang="es">Tamaño tras esa importación: <code>du</code> de <code>.braid/store</code> frente al clon bare tras <code>git gc <span class="nw">--aggressive</span></code></span></td><td class="num">25.1</td><td><code>python3 bench/run.py <span class="nw">--only store</span></code></td></tr>
592+<tr><td><span data-l="en" lang="en">Status of a tree of 100,000 files, clean: <code>braid status</code> vs <code>git status</code>, no untracked cache, no fsmonitor</span><span data-l="es" lang="es">Status de un árbol de 100&nbsp;000 ficheros, sin cambios: <code>braid status</code> frente a <code>git status</code>, sin untracked cache ni fsmonitor</span></td><td class="num">2.6</td><td><code>python3 bench/run.py <span class="nw">--only status</span></code></td></tr>
593+<tr><td><span data-l="en" lang="en">Status of that tree, clean: <code>braid status</code> vs <code>git status</code> with <code>core.untrackedCache=true</code>, no fsmonitor</span><span data-l="es" lang="es">Status de ese árbol, sin cambios: <code>braid status</code> frente a <code>git status</code> con <code>core.untrackedCache=true</code>, sin fsmonitor</span></td><td class="num">5.8</td><td><code>python3 bench/run.py <span class="nw">--only status</span></code></td></tr>
594+<tr><td><span data-l="en" lang="en">Status of that tree, 10 files modified: <code>braid status</code> vs <code>git status</code>, no untracked cache, no fsmonitor</span><span data-l="es" lang="es">Status de ese árbol con 10 ficheros modificados: <code>braid status</code> frente a <code>git status</code>, sin untracked cache ni fsmonitor</span></td><td class="num">3.0</td><td><code>python3 bench/run.py <span class="nw">--only status</span></code></td></tr>
595+<tr><td><span data-l="en" lang="en">Status of that tree, 10 files modified: <code>braid status</code> vs <code>git status</code> with <code>core.untrackedCache=true</code>, no fsmonitor</span><span data-l="es" lang="es">Status de ese árbol con 10 ficheros modificados: <code>braid status</code> frente a <code>git status</code> con <code>core.untrackedCache=true</code>, sin fsmonitor</span></td><td class="num">5.7</td><td><code>python3 bench/run.py <span class="nw">--only status</span></code></td></tr>
596+<tr><td><span data-l="en" lang="en">Commit one changed file of that tree: <code>braid commit</code> vs <code>git add</code> + <code>git commit</code></span><span data-l="es" lang="es">Commit de un fichero modificado de ese árbol: <code>braid commit</code> frente a <code>git add</code> + <code>git commit</code></span></td><td class="num">5.0</td><td><code>python3 bench/run.py <span class="nw">--only commit</span></code></td></tr>
597+<tr><td><span data-l="en" lang="en">Commit one new file in a directory of 20,000 files, 200 times: <code>braid commit</code> vs <code>git add</code> + <code>git commit</code></span><span data-l="es" lang="es">Commit de un fichero nuevo en un directorio de 20&nbsp;000 ficheros, 200 veces: <code>braid commit</code> frente a <code>git add</code> + <code>git commit</code></span></td><td class="num">1.8</td><td><code>python3 bench/run.py <span class="nw">--only wide</span></code></td></tr>
598+<tr><td><span data-l="en" lang="en">Commit one new file in that directory without a working copy, 200 times: <code>braid change create <span class="nw">--land</span></code> vs <code>git add</code> + <code>git commit</code></span><span data-l="es" lang="es">Commit de un fichero nuevo en ese directorio sin copia de trabajo, 200 veces: <code>braid change create <span class="nw">--land</span></code> frente a <code>git add</code> + <code>git commit</code></span></td><td class="num">0.9</td><td><code>python3 bench/run.py <span class="nw">--only wide</span></code></td></tr>
599+<tr><td><span data-l="en" lang="en">4 agents land 10 commits each, at once: <code>braid commit</code> + <code>braid land</code>, a workspace each, vs <code>git commit</code> + <code>git push</code>, a clone each, with <code>git pull <span class="nw">--rebase</span></code> and a new push when rejected</span><span data-l="es" lang="es">4 agentes aterrizan 10 commits cada uno, a la vez: <code>braid commit</code> + <code>braid land</code>, cada uno en su espacio de trabajo, frente a <code>git commit</code> + <code>git push</code>, cada uno en su clon, con <code>git pull <span class="nw">--rebase</span></code> y un nuevo push cuando se lo rechazan</span></td><td class="num">0.4</td><td><code>python3 bench/run.py <span class="nw">--only agents</span></code></td></tr>
600+<tr><td><span data-l="en" lang="en">8 agents, the same</span><span data-l="es" lang="es">8 agentes, igual</span></td><td class="num">0.3</td><td><code>python3 bench/run.py <span class="nw">--only agents</span></code></td></tr>
601+<tr><td><span data-l="en" lang="en">16 agents, the same</span><span data-l="es" lang="es">16 agentes, igual</span></td><td class="num">0.2</td><td><code>python3 bench/run.py <span class="nw">--only agents</span></code></td></tr>
602+<tr><td><span data-l="en" lang="en">Newest 1,000 changesets of tmux: <code>braid log <span class="nw">-n 1000</span></code> vs <code>git log <span class="nw">--first-parent</span> <span class="nw">-n 1000</span> <span class="nw">--format=%H</span></code> after <code>git gc <span class="nw">--aggressive</span></code></span><span data-l="es" lang="es">Los 1000 changesets más recientes de tmux: <code>braid log <span class="nw">-n 1000</span></code> frente a <code>git log <span class="nw">--first-parent</span> <span class="nw">-n 1000</span> <span class="nw">--format=%H</span></code> tras <code>git gc <span class="nw">--aggressive</span></code></span></td><td class="num">1.7</td><td><code>python3 bench/run.py <span class="nw">--only history</span></code></td></tr>
603+</tbody>
604+</table>
605+</div>
606+<p data-l="en" lang="en">Git retried each push 1.1, 2.5 and 5.2 times on average with 4, 8 and 16 agents; no braid agent retried, and nearly every landing was a rebase.</p>
607+<p data-l="es" lang="es">Git reintentó cada push 1,1, 2,5 y 5,2 veces de media con 4, 8 y 16 agentes; ningún agente de braid reintentó, y casi todos los aterrizajes fueron un rebase.</p>
608+<p data-l="en" lang="en">In that run, braid was faster when many agents landed at once, and slower at importing and storing history, and at status and commit on a large tree.</p>
609+<p data-l="es" lang="es">En esa ejecución, braid fue más rápido cuando muchos agentes aterrizaban a la vez, y más lento al importar y guardar historia, y en status y commit sobre un árbol grande.</p>
610+<p class="run-note" data-l="en" lang="en">This run predates later work on storage and speed: deltas, chunked large files, editing a large directory in place, a parallel working-copy walk and lazy index lookups. <code class="nw">log -- path</code> and blame came later too, and are not in this table.</p>
611+<p class="run-note" data-l="es" lang="es">Esta ejecución es anterior a lo que se ha hecho después en almacenamiento y velocidad: deltas, ficheros grandes troceados, la edición en su sitio de los directorios grandes, un recorrido en paralelo de la copia de trabajo y búsquedas perezosas en los índices. <code class="nw">log -- path</code> y blame también llegaron después y no están en esta tabla.</p>
612+</div>
613+<!-- ratios:end -->
614+</div>
615+</section>
616+
617+<section id="checked" class="sec" aria-labelledby="checked-title">
618+<div class="wrap">
619+<div class="sec-head">
620+<h2 id="checked-title"><span data-l="en" lang="en">What is checked</span><span data-l="es" lang="es">Qué se comprueba</span></h2>
621+</div>
622+<div class="table-wrap" tabindex="0" role="region" aria-label="Guarantees and how they are checked" data-aria-en="Guarantees and how they are checked" data-aria-es="Garantías y cómo se comprueban">
623+<table class="checks">
624+<thead>
625+<tr><th scope="col"><span data-l="en" lang="en">Guarantee</span><span data-l="es" lang="es">Garantía</span></th><th scope="col"><span data-l="en" lang="en">How it is checked</span><span data-l="es" lang="es">Cómo se comprueba</span></th></tr>
626+</thead>
627+<tbody>
628+<tr><td><span data-l="en" lang="en">Landing only moves a branch forward; <code>braid undo</code>, <code>braid ref set</code> and <code>braid git import</code> can move it back.</span><span data-l="es" lang="es">Aterrizar solo hace avanzar la rama; <code>braid undo</code>, <code>braid ref set</code> y <code>braid git import</code> pueden hacerla retroceder.</span></td>
629+<td><span data-l="en" lang="en">Simulation invariant I1, checked after every step (<a href="https://github.com/KikoCis/elffuss-braid/tree/main/crates/sim"><code>crates/sim</code></a>).</span><span data-l="es" lang="es">Invariante I1 de la simulación, comprobada tras cada paso (<a href="https://github.com/KikoCis/elffuss-braid/tree/main/crates/sim"><code>crates/sim</code></a>).</span></td></tr>
630+<tr><td><span data-l="en" lang="en">A conflict leaves the branch where it was and exits 2.</span><span data-l="es" lang="es">Un conflicto deja la rama donde estaba y sale con 2.</span></td>
631+<td><span data-l="en" lang="en">I5; <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/cli/tests/three_agents.rs"><code>three_agents.rs</code></a>.</span><span data-l="es" lang="es">I5; <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/cli/tests/three_agents.rs"><code>three_agents.rs</code></a>.</span></td></tr>
632+<tr><td><span data-l="en" lang="en">No lost update.</span><span data-l="es" lang="es">Ninguna actualización se pierde.</span></td>
633+<td><span data-l="en" lang="en">I3: the head's tree equals an <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/sim/src/model.rs">independent reference model</a>, file by file.</span><span data-l="es" lang="es">I3: el árbol de la cabeza coincide, fichero a fichero, con un <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/sim/src/model.rs">modelo de referencia independiente</a>.</span></td></tr>
634+<tr><td><span data-l="en" lang="en">A changeset lands at most once, even with lost answers or duplicate requests.</span><span data-l="es" lang="es">Un changeset aterriza como mucho una vez, aunque se pierdan respuestas o lleguen peticiones duplicadas.</span></td>
635+<td><span data-l="en" lang="en"><a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/sim/src/lib.rs">I4</a>, with those faults injected; every seed reproduces its run.</span><span data-l="es" lang="es"><a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/sim/src/lib.rs">I4</a>, con esos fallos inyectados; cada semilla reproduce su ejecución.</span></td></tr>
636+<tr><td><span data-l="en" lang="en">Changes to unrelated paths land the same in either order.</span><span data-l="es" lang="es">Los cambios en rutas que no tienen que ver entre sí aterrizan igual en cualquier orden.</span></td>
637+<td><span data-l="en" lang="en">I7, plus <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/engine/tests/properties.rs">property tests</a>.</span><span data-l="es" lang="es">I7, más <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/engine/tests/properties.rs">tests de propiedades</a>.</span></td></tr>
638+<tr><td><span data-l="en" lang="en">A crash or power loss leaves a consistent store.</span><span data-l="es" lang="es">Una caída o un corte de luz dejan el almacén coherente.</span></td>
639+<td><span data-l="en" lang="en">The <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/store/src/power_loss.rs">power-loss model</a> and random process kills.</span><span data-l="es" lang="es">El <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/store/src/power_loss.rs">modelo de cortes de luz</a> y procesos matados al azar.</span></td></tr>
640+<tr><td><span data-l="en" lang="en">Ids can be recomputed from the spec alone.</span><span data-l="es" lang="es">Los ids se pueden recalcular solo con la especificación.</span></td>
641+<td><span data-l="en" lang="en"><a href="https://github.com/KikoCis/elffuss-braid/blob/main/docs/spec/check_vectors.py"><code>docs/spec/check_vectors.py</code></a> with <code>b3sum</code>, in CI.</span><span data-l="es" lang="es"><a href="https://github.com/KikoCis/elffuss-braid/blob/main/docs/spec/check_vectors.py"><code>docs/spec/check_vectors.py</code></a> con <code>b3sum</code>, en la integración continua.</span></td></tr>
642+<tr><td><span data-l="en" lang="en">Every imported git commit exports back to the same id.</span><span data-l="es" lang="es">Todo commit de git importado se exporta de vuelta con el mismo id.</span></td>
643+<td><span data-l="en" lang="en">Checked on every import; CI round-trips <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/git/tests/this_repository.rs">this repository's own history</a>.</span><span data-l="es" lang="es">Se comprueba en cada importación; la integración continua hace la ida y vuelta con <a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/git/tests/this_repository.rs">la historia de este mismo repositorio</a>.</span></td></tr>
644+<tr><td><span data-l="en" lang="en"><code class="nw">log -- path</code>, merge bases and blame agree with git.</span><span data-l="es" lang="es"><code class="nw">log -- path</code>, las bases de fusión y blame coinciden con git.</span></td>
645+<td><span data-l="en" lang="en"><a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/repo/tests/history_vs_git.rs">Differential tests</a>, apart from two documented differences in blame.</span><span data-l="es" lang="es"><a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/repo/tests/history_vs_git.rs">Tests diferenciales</a>, salvo dos diferencias documentadas en blame.</span></td></tr>
646+<tr><td><span data-l="en" lang="en">Checkouts write nothing outside the workspace.</span><span data-l="es" lang="es">Los checkouts no escriben nada fuera del espacio de trabajo.</span></td>
647+<td><a href="https://github.com/KikoCis/elffuss-braid/blob/main/crates/wc/tests/hostile.rs"><code>crates/wc/tests/hostile.rs</code></a>.</td></tr>
648+<tr><td><span data-l="en" lang="en">No unsafe Rust in braid's own crates.</span><span data-l="es" lang="es">Nada de Rust unsafe en los crates propios de braid.</span></td>
649+<td><span data-l="en" lang="en"><code>#![forbid(unsafe_code)]</code> in every library crate; <a href="https://github.com/KikoCis/elffuss-braid/blob/main/Cargo.toml">denied workspace-wide</a>.</span><span data-l="es" lang="es"><code>#![forbid(unsafe_code)]</code> en cada crate de biblioteca; <a href="https://github.com/KikoCis/elffuss-braid/blob/main/Cargo.toml">denegado en todo el workspace</a>.</span></td></tr>
650+<tr><td><span data-l="en" lang="en">Trees, changesets, names, the git map and git objects are fuzzed.</span><span data-l="es" lang="es">Los árboles, los changesets, los nombres, el mapa de git y los objetos de git pasan por fuzzing.</span></td>
651+<td><span data-l="en" lang="en"><a href="https://github.com/KikoCis/elffuss-braid/tree/main/fuzz/fuzz_targets">Five <span class="nw">cargo-fuzz</span> targets</a>, a minute each in CI.</span><span data-l="es" lang="es"><a href="https://github.com/KikoCis/elffuss-braid/tree/main/fuzz/fuzz_targets">Cinco objetivos de <span class="nw">cargo-fuzz</span></a>, un minuto cada uno en la integración continua.</span></td></tr>
652+</tbody>
653+</table>
654+</div>
655+<p class="after" data-l="en" lang="en">Local stores run in ordered mode: a power loss may lose the newest operations, but never leaves the store inconsistent.</p>
656+<p class="after" data-l="es" lang="es">Los almacenes locales funcionan en modo <code>ordered</code>: un corte de luz puede perder las operaciones más recientes, pero nunca deja el almacén incoherente.</p>
657+</div>
658+</section>
659+
660+<section id="honest" class="sec" aria-labelledby="honest-title">
661+<div class="wrap">
662+<div class="sec-head">
663+<h2 id="honest-title"><span data-l="en" lang="en">What is honest about this</span><span data-l="es" lang="es">Sin letra pequeña</span></h2>
664+</div>
665+<ul class="honest" data-l="en" lang="en">
666+<li>Pre-alpha: keep git as the source of truth, and nothing only in braid.</li>
667+<li>Speed and size against git are in <a href="#measured">Measured against git</a>, as ratios from one run of the script, with the commit measured: check them before relying on braid for speed.</li>
668+<li>One machine for now. There is no server, daemon or cache yet, and repositories move between machines only through git.</li>
669+<li>Nothing is ever removed from a store; there is no garbage collection yet.</li>
670+<li>Format v1 is frozen. Storage and protocols can still change, and an older braid refuses a newer store rather than guess.</li>
671+<li>Merges are textual: two changes can merge cleanly and still break the build.</li>
672+<li><code class="nw">log -- path</code> and blame follow first parents and do not follow renames.</li>
673+<li>Shallow and <span class="nw">SHA-256</span> git repositories are refused for now.</li>
674+<li>CI tests Linux and other Unix-like systems; Windows is not tested yet.</li>
675+<li>Milestones 0–4 are done. 5 is in progress: deltas, chunked large files, derived indexes, blame and the benchmark script are in. 6 and 7 are planned.</li>
676+</ul>
677+<ul class="honest" data-l="es" lang="es">
678+<li>Pre-alfa: deja git como fuente de verdad, y no guardes nada solo en braid.</li>
679+<li>La velocidad y el tamaño frente a git están en <a href="#measured">«Medido frente a git»</a>, como ratios de una ejecución del script y con el commit medido: compruébalos antes de contar con la velocidad de braid.</li>
680+<li>Por ahora, una sola máquina. Aún no hay servidor, daemon ni caché, y los repositorios solo pasan de una máquina a otra a través de git.</li>
681+<li>Nunca se borra nada de un almacén; aún no hay recolección de basura.</li>
682+<li>El formato v1 está congelado. El almacenamiento y los protocolos aún pueden cambiar, y un braid antiguo rechaza un almacén más nuevo en vez de adivinar.</li>
683+<li>Las fusiones son textuales: dos cambios pueden fusionarse limpiamente y aun así romper la compilación.</li>
684+<li><code class="nw">log -- path</code> y blame siguen los primeros padres y no siguen los renombrados.</li>
685+<li>Los clones superficiales y los repositorios <span class="nw">SHA-256</span> de git se rechazan por ahora.</li>
686+<li>La integración continua prueba Linux y otros sistemas tipo Unix; Windows aún no se prueba.</li>
687+<li>Las fases 0 a 4 están terminadas. La 5 está en marcha: ya están los deltas, los ficheros grandes troceados, los índices derivados, blame y el script de benchmarks. La 6 y la 7 están previstas.</li>
688+</ul>
689+<p class="scion" data-l="en" lang="en">Braid starts from ideas Anthropic published about Scion, its internal source control system. It is an independent implementation: it contains no Anthropic code and is not affiliated with or endorsed by Anthropic.</p>
690+<p class="scion" data-l="es" lang="es">Braid parte de ideas que Anthropic publicó sobre Scion, su sistema interno de control de versiones. Es una implementación independiente: no contiene código de Anthropic y no tiene relación con Anthropic ni cuenta con su respaldo.</p>
691+<p class="credits" data-l="en" lang="en">Credits: <a href="https://github.com/jj-vcs/jj">Jujutsu</a>, for the operation log and undo; <a href="https://sapling-scm.com">Sapling</a>, for history served at scale, and compressing a file version against the previous one; <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a>, for the git bridge; <a href="https://github.com/BLAKE3-team/BLAKE3">BLAKE3</a>, <a href="https://www.usenix.org/conference/atc16/technical-sessions/presentation/xia">FastCDC</a>, <a href="https://www.dolthub.com/docs/architecture/storage-engine/prolly-tree/">prolly trees</a> and <a class="nw" href="https://github.com/pascalkuthe/imara-diff">imara-diff</a>.</p>
692+<p class="credits" data-l="es" lang="es">Créditos: <a href="https://github.com/jj-vcs/jj">Jujutsu</a>, por el registro de operaciones y el deshacer; <a href="https://sapling-scm.com">Sapling</a>, por servir historia a gran escala y comprimir cada versión de un fichero respecto a la anterior; <a href="https://github.com/GitoxideLabs/gitoxide">gitoxide</a>, por el puente con git; <a href="https://github.com/BLAKE3-team/BLAKE3">BLAKE3</a>, <a href="https://www.usenix.org/conference/atc16/technical-sessions/presentation/xia">FastCDC</a>, los <a href="https://www.dolthub.com/docs/architecture/storage-engine/prolly-tree/">prolly trees</a> e <a class="nw" href="https://github.com/pascalkuthe/imara-diff">imara-diff</a>.</p>
693+</div>
694+</section>
695+
696+<section id="elffuss" class="sec" aria-labelledby="elffuss-title">
697+<div class="wrap">
698+<div class="sec-head">
699+<h2 id="elffuss-title"><span data-l="en" lang="en">Part of Elffuss</span><span data-l="es" lang="es">Parte de Elffuss</span></h2>
700+</div>
701+<p class="lead" data-l="en" lang="en">Braid is part of Elffuss, a family of tools for building software with agents.</p>
702+<p class="lead" data-l="es" lang="es">Braid forma parte de Elffuss, una familia de herramientas para construir software con agentes.</p>
703+<ul class="family">
704+<li><a href="https://elffuss.com"><span class="f-name">elffuss.com</span><span class="f-desc"><span data-l="en" lang="en">AI that lives in your browser, on your GPU.</span><span data-l="es" lang="es">IA que vive en tu navegador, en tu GPU.</span></span></a></li>
705+<li><a href="https://code.elffuss.com"><span class="f-name">Code</span><span class="f-desc"><span data-l="en" lang="en">An IDE with an AI agent that runs in your browser.</span><span data-l="es" lang="es">Un IDE con un agente de IA que corre en tu navegador.</span></span></a></li>
706+<li><a href="https://claw.elffuss.com"><span class="f-name">Claw</span><span class="f-desc"><span data-l="en" lang="en">The agentic OS that lives in your browser.</span><span data-l="es" lang="es">El sistema operativo agéntico que vive en tu navegador.</span></span></a></li>
707+<li><a href="https://translator.elffuss.com"><span class="f-name">Translator</span><span class="f-desc"><span data-l="en" lang="en">Real-time conversation translation, in the browser.</span><span data-l="es" lang="es">Traducción de conversaciones en tiempo real, en el navegador.</span></span></a></li>
708+<li><a href="https://copilot.elffuss.com"><span class="f-name"><span data-l="en" lang="en">Copilot</span><span data-l="es" lang="es">Copiloto</span></span><span class="f-desc"><span data-l="en" lang="en">Zero-trust meeting notes, in your browser.</span><span data-l="es" lang="es">Notas de reunión zero-trust, en tu navegador.</span></span></a></li>
709+<li><a href="https://huggingface.co/KikoCis"><span class="f-name">Hugging Face</span><span class="f-desc"><span data-l="en" lang="en">Models and Spaces.</span><span data-l="es" lang="es">Modelos y Spaces.</span></span></a></li>
710+</ul>
711+<h3 class="repos-title"><span data-l="en" lang="en">On GitHub</span><span data-l="es" lang="es">En GitHub</span></h3>
712+<ul class="repos">
713+<li><a href="https://github.com/KikoCis/elffuss"><code>elffuss</code></a> <span data-l="en" lang="en">the shared browser-agent core behind Code and Claw.</span><span data-l="es" lang="es">el núcleo de agente de navegador que comparten Code y Claw.</span></li>
714+<li><a href="https://github.com/KikoCis/elffuss-code"><code class="nw">elffuss-code</code></a> <span data-l="en" lang="en">an IDE with an AI agent that runs entirely in your browser.</span><span data-l="es" lang="es">un IDE con un agente de IA que corre entero en tu navegador.</span></li>
715+<li><a href="https://github.com/KikoCis/elffuss-claw"><code class="nw">elffuss-claw</code></a> <span data-l="en" lang="en">an agentic OS in your browser, with apps generated on demand.</span><span data-l="es" lang="es">un sistema operativo agéntico en tu navegador, con apps que se generan al pedirlas.</span></li>
716+<li><a href="https://github.com/KikoCis/elffuss-translator"><code class="nw">elffuss-translator</code></a> <span data-l="en" lang="en">real-time conversation translation in the browser.</span><span data-l="es" lang="es">traducción de conversaciones en tiempo real, en el navegador.</span></li>
717+</ul>
718+</div>
719+</section>
720+
721+</main>
722+
723+<footer class="site-foot">
724+<div class="wrap">
725+<div class="foot-row">
726+<a href="https://github.com/KikoCis/elffuss-braid/blob/main/LICENSE">Apache-2.0</a>
727+<span class="dot" aria-hidden="true">·</span>
728+<span>Copyright 2026 UtopiaIA</span>
729+<span class="dot" aria-hidden="true">·</span>
730+<a href="https://github.com/KikoCis/elffuss-braid">GitHub</a>
731+<span class="dot" aria-hidden="true">·</span>
732+<a href="#top"><span data-l="en" lang="en">Back to top</span><span data-l="es" lang="es">Volver arriba</span></a>
733+<span class="lang lang-foot" role="group" aria-label="Language" data-aria-en="Language" data-aria-es="Idioma" hidden><button type="button" data-set-lang="en" lang="en" aria-pressed="true" title="English">EN</button><button type="button" data-set-lang="es" lang="es" aria-pressed="false" title="Español">ES</button></span>
734+</div>
735+<p class="foot-note" data-l="en" lang="en">Braid is an independent implementation inspired by what Anthropic published about Scion. It contains no Anthropic code and is not affiliated with or endorsed by Anthropic.</p>
736+<p class="foot-note" data-l="es" lang="es">Braid es una implementación independiente inspirada en lo que Anthropic publicó sobre Scion. No contiene código de Anthropic y no tiene relación con Anthropic ni cuenta con su respaldo.</p>
737+</div>
738+</footer>
739+<p id="live" class="sr-only" role="status" aria-live="polite"></p>
740+</body>
741+</html>
added site/og.png +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

added site/og/og.svg +16 −0
@@ -0,0 +1,16 @@
1+<!-- SPDX-License-Identifier: Apache-2.0
2+ Copyright (c) 2026 UtopiaIA -->
3+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 630" width="1200" height="630">
4+<defs>
5+<radialGradient id="og-t" cx="0.12" cy="0.02" r="0.62"><stop offset="0" stop-color="#54dcc6" stop-opacity=".2"/><stop offset="1" stop-color="#54dcc6" stop-opacity="0"/></radialGradient>
6+<radialGradient id="og-i" cx="0.9" cy="0.02" r="0.66"><stop offset="0" stop-color="#8272ff" stop-opacity=".24"/><stop offset="1" stop-color="#8272ff" stop-opacity="0"/></radialGradient>
7+<radialGradient id="og-b" cx="0.3" cy="1.05" r="0.7"><stop offset="0" stop-color="#c8a06a" stop-opacity=".12"/><stop offset="1" stop-color="#c8a06a" stop-opacity="0"/></radialGradient>
8+</defs>
9+<rect width="1200" height="630" fill="#090a11"/>
10+<rect width="1200" height="630" fill="url(#og-t)"/>
11+<rect width="1200" height="630" fill="url(#og-i)"/>
12+<rect width="1200" height="630" fill="url(#og-b)"/>
13+<g transform="translate(120 62) scale(3)"><defs><mask id="og-cut0" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M38.67 21.01C41.17 21.11 43.67 22.42 46.17 24.77C48.67 27.12 51.17 30.51 53.67 34.5C56.17 38.49 58.67 43.08 61.17 47.69C63.67 52.3 66.17 56.92 68.67 60.96M84.67 74.99C87.17 74.89 89.67 73.58 92.17 71.23C94.67 68.88 97.17 65.49 99.67 61.5C102.17 57.51 104.67 52.92 107.17 48.31C109.67 43.7 112.17 39.08 114.67 35.04M130.67 21.01C133.17 21.11 135.67 22.42 138.17 24.77C140.67 27.12 143.17 30.51 145.67 34.5C148.17 38.49 150.67 43.08 153.17 47.69C155.67 52.3 158.17 56.92 160.67 60.96M176.67 74.99C179.17 74.89 181.67 73.58 184.17 71.23C186.67 68.88 189.17 65.49 191.67 61.5C194.17 57.51 196.67 52.92 199.17 48.31C201.67 43.7 204.17 39.08 206.67 35.04M222.67 21.01C225.17 21.11 227.67 22.42 230.17 24.77C232.67 27.12 235.17 30.51 237.67 34.5C240.17 38.49 242.67 43.08 245.17 47.69C247.67 52.3 250.17 56.92 252.67 60.96M268.67 74.99C271.11 74.89 273.56 73.64 276 71.38C278.44 69.13 280.89 65.88 283.33 62.03C285.78 58.18 288.22 53.73 290.67 49.23C293.11 44.73 295.56 40.18 298 36.13" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="og-cut1" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M22 32.94C23.78 35.66 25.56 38.71 27.33 41.91C29.11 45.1 30.89 48.43 32.67 51.68C34.44 54.92 36.22 58.09 38 60.96M54 74.99C56.5 74.89 59 73.58 61.5 71.23C64 68.88 66.5 65.49 69 61.5C71.5 57.51 74 52.92 76.5 48.31C79 43.7 81.5 39.08 84 35.04M100 21.01C102.5 21.11 105 22.42 107.5 24.77C110 27.12 112.5 30.51 115 34.5C117.5 38.49 120 43.08 122.5 47.69C125 52.3 127.5 56.92 130 60.96M146 74.99C148.5 74.89 151 73.58 153.5 71.23C156 68.88 158.5 65.49 161 61.5C163.5 57.51 166 52.92 168.5 48.31C171 43.7 173.5 39.08 176 35.04M192 21.01C194.5 21.11 197 22.42 199.5 24.77C202 27.12 204.5 30.51 207 34.5C209.5 38.49 212 43.08 214.5 47.69C217 52.3 219.5 56.92 222 60.96M238 74.99C240.5 74.89 243 73.58 245.5 71.23C248 68.88 250.5 65.49 253 61.5C255.5 57.51 258 52.92 260.5 48.31C263 43.7 265.5 39.08 268 35.04" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask><mask id="og-cut2" maskUnits="userSpaceOnUse" x="0" y="0" width="320" height="96"><rect x="0" y="0" width="320" height="96" fill="#fff"/><path d="M23.33 74.99C25.83 74.89 28.33 73.58 30.83 71.23C33.33 68.88 35.83 65.49 38.33 61.5C40.83 57.51 43.33 52.92 45.83 48.31C48.33 43.7 50.83 39.08 53.33 35.04M69.33 21.01C71.83 21.11 74.33 22.42 76.83 24.77C79.33 27.12 81.83 30.51 84.33 34.5C86.83 38.49 89.33 43.08 91.83 47.69C94.33 52.3 96.83 56.92 99.33 60.96M115.33 74.99C117.83 74.89 120.33 73.58 122.83 71.23C125.33 68.88 127.83 65.49 130.33 61.5C132.83 57.51 135.33 52.92 137.83 48.31C140.33 43.7 142.83 39.08 145.33 35.04M161.33 21.01C163.83 21.11 166.33 22.42 168.83 24.77C171.33 27.12 173.83 30.51 176.33 34.5C178.83 38.49 181.33 43.08 183.83 47.69C186.33 52.3 188.83 56.92 191.33 60.96M207.33 74.99C209.83 74.89 212.33 73.58 214.83 71.23C217.33 68.88 219.83 65.49 222.33 61.5C224.83 57.51 227.33 52.92 229.83 48.31C232.33 43.7 234.83 39.08 237.33 35.04M253.33 21.01C255.83 21.11 258.33 22.42 260.83 24.77C263.33 27.12 265.83 30.51 268.33 34.5C270.83 38.49 273.33 43.08 275.83 47.69C278.33 52.3 280.83 56.92 283.33 60.96" fill="none" stroke="#000" stroke-width="18.5" stroke-linecap="butt"/></mask></defs><path d="M22 74.94C25.83 75.42 29.67 73 33.5 68.35C37.33 63.7 41.17 56.89 45 49.84C48.83 42.79 52.67 35.58 56.5 30.26C60.33 24.93 64.17 21.55 68 21.06C71.83 20.58 75.67 23 79.5 27.65C83.33 32.3 87.17 39.11 91 46.16C94.83 53.21 98.67 60.42 102.5 65.74C106.33 71.07 110.17 74.45 114 74.94C117.83 75.42 121.67 73 125.5 68.35C129.33 63.7 133.17 56.89 137 49.84C140.83 42.79 144.67 35.58 148.5 30.26C152.33 24.93 156.17 21.55 160 21.06C163.83 20.58 167.67 23 171.5 27.65C175.33 32.3 179.17 39.11 183 46.16C186.83 53.21 190.67 60.42 194.5 65.74C198.33 71.07 202.17 74.45 206 74.94C209.83 75.42 213.67 73 217.5 68.35C221.33 63.7 225.17 56.89 229 49.84C232.83 42.79 236.67 35.58 240.5 30.26C244.33 24.93 248.17 21.55 252 21.06C255.83 20.58 259.67 23 263.5 27.65C267.33 32.3 271.17 39.11 275 46.16C278.83 53.21 282.67 60.42 286.5 65.74C290.33 71.07 294.17 74.45 298 74.94" fill="none" stroke="#c8a06a" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#og-cut0)"/><path d="M22 36.13C25.83 29.78 29.67 24.75 33.5 22.46C37.33 20.17 41.17 20.64 45 23.75C48.83 26.86 52.67 32.56 56.5 39.25C60.33 45.94 64.17 53.52 68 59.87C71.83 66.22 75.67 71.25 79.5 73.54C83.33 75.83 87.17 75.36 91 72.25C94.83 69.14 98.67 63.44 102.5 56.75C106.33 50.06 110.17 42.48 114 36.13C117.83 29.78 121.67 24.75 125.5 22.46C129.33 20.17 133.17 20.64 137 23.75C140.83 26.86 144.67 32.56 148.5 39.25C152.33 45.94 156.17 53.52 160 59.87C163.83 66.22 167.67 71.25 171.5 73.54C175.33 75.83 179.17 75.36 183 72.25C186.83 69.14 190.67 63.44 194.5 56.75C198.33 50.06 202.17 42.48 206 36.13C209.83 29.78 213.67 24.75 217.5 22.46C221.33 20.17 225.17 20.64 229 23.75C232.83 26.86 236.67 32.56 240.5 39.25C244.33 45.94 248.17 53.52 252 59.87C255.83 66.22 259.67 71.25 263.5 73.54C267.33 75.83 271.17 75.36 275 72.25C278.83 69.14 282.67 63.44 286.5 56.75C290.33 50.06 294.17 42.48 298 36.13" fill="none" stroke="#54dcc6" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#og-cut1)"/><path d="M22 32.94C25.83 38.8 29.67 46.26 33.5 53.19C37.33 60.13 41.17 66.46 45 70.41C48.83 74.35 52.67 75.86 56.5 74.5C60.33 73.14 64.17 68.93 68 63.06C71.83 57.2 75.67 49.74 79.5 42.81C83.33 35.87 87.17 29.54 91 25.59C94.83 21.65 98.67 20.14 102.5 21.5C106.33 22.86 110.17 27.07 114 32.94C117.83 38.8 121.67 46.26 125.5 53.19C129.33 60.13 133.17 66.46 137 70.41C140.83 74.35 144.67 75.86 148.5 74.5C152.33 73.14 156.17 68.93 160 63.06C163.83 57.2 167.67 49.74 171.5 42.81C175.33 35.87 179.17 29.54 183 25.59C186.83 21.65 190.67 20.14 194.5 21.5C198.33 22.86 202.17 27.07 206 32.94C209.83 38.8 213.67 46.26 217.5 53.19C221.33 60.13 225.17 66.46 229 70.41C232.83 74.35 236.67 75.86 240.5 74.5C244.33 73.14 248.17 68.93 252 63.06C255.83 57.2 259.67 49.74 263.5 42.81C267.33 35.87 271.17 29.54 275 25.59C278.83 21.65 282.67 20.14 286.5 21.5C290.33 22.86 294.17 27.07 298 32.94" fill="none" stroke="#8272ff" stroke-width="9.5" stroke-linecap="round" stroke-linejoin="round" mask="url(#og-cut2)"/></g>
14+<text x="600" y="446" text-anchor="middle" fill="#eae8f2" font-family="'Iowan Old Style', Georgia, 'Palatino Linotype', Palatino, serif" font-size="56" font-weight="600" letter-spacing="-0.3">Many agents. One main. No retry loop.</text>
15+<text x="600" y="530" text-anchor="middle" fill="#7f7ca0" font-family="ui-monospace, 'SF Mono', Menlo, Consolas, monospace" font-size="28" letter-spacing="1">braid.elffuss.com</text>
16+</svg>
added site/site.css +857 −0
@@ -0,0 +1,857 @@
1+/* SPDX-License-Identifier: Apache-2.0
2+ Copyright (c) 2026 UtopiaIA
3+ Elffuss Braid · braid.elffuss.com
4+ Static: no web fonts, no external requests. Dark by default, as on
5+ elffuss.com; light when the system asks for it. Terminals stay dark in
6+ both. */
7+
8+:root {
9+ --ground: #090a11;
10+ --surface: rgb(22, 23, 38);
11+ --surface-soft: rgba(22, 23, 38, .62);
12+ --line: rgba(150, 146, 184, .14);
13+ --line-strong: rgba(150, 146, 184, .28);
14+ --text: #eae8f2;
15+ --text-dim: #b3afce;
16+ --muted: #7f7ca0;
17+ /* --muted is for strokes, dots and dashed borders; text that should look
18+ quieter than --text-dim uses this, which keeps 4.5:1 even where the
19+ aurora lightens the ground */
20+ --muted-text: #8e8bb0;
21+ /* strand colours: text and graphics are the same in the dark */
22+ --brass: #c8a06a;
23+ --teal: #54dcc6;
24+ --indigo: #8272ff;
25+ --magenta: #e779cf;
26+ --g-brass: #c8a06a;
27+ --g-teal: #54dcc6;
28+ --g-indigo: #8272ff;
29+ --g-magenta: #e779cf;
30+ --btn-bg: linear-gradient(135deg, #e6c294, #c8a06a);
31+ --btn-ink: #140f08;
32+ --focus: #c8a06a;
33+ --tint-x: rgba(231, 121, 207, .07);
34+ --tint-x-line: rgba(231, 121, 207, .38);
35+ --aurora-teal: rgba(84, 220, 198, .13);
36+ --aurora-indigo: rgba(130, 114, 255, .16);
37+ --aurora-brass: rgba(200, 160, 106, .08);
38+ /* terminals: the same in both themes */
39+ --term-bg: #0e0f18;
40+ --term-line: rgba(150, 146, 184, .2);
41+ --term-text: #eae8f2;
42+ --term-dim: #b3afce;
43+ --term-muted: #7f7ca0;
44+ --term-a: #c8a06a;
45+ --term-b: #54dcc6;
46+ --term-c: #8272ff;
47+ --term-x: #e779cf;
48+ --serif: "Iowan Old Style", Georgia, "Palatino Linotype", Palatino, serif;
49+ --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
50+ --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
51+ --r: 16px;
52+ --r-sm: 10px;
53+ color-scheme: dark;
54+}
55+
56+@media (prefers-color-scheme: light) {
57+ :root {
58+ --ground: #f6f4ee;
59+ --surface: #fff;
60+ --surface-soft: rgba(255, 255, 255, .72);
61+ --line: rgba(21, 20, 31, .12);
62+ --line-strong: rgba(21, 20, 31, .22);
63+ --text: #15141f;
64+ --text-dim: #3f3c57;
65+ --muted: #5f5b7d;
66+ --muted-text: #5f5b7d;
67+ --brass: #7d5a1f;
68+ --teal: #0b6f61;
69+ --indigo: #4b3bd1;
70+ --magenta: #a2307f;
71+ --g-brass: #a77a3a;
72+ --g-teal: #13917f;
73+ --g-indigo: #5b4ae6;
74+ --g-magenta: #a2307f;
75+ --btn-bg: #7d5a1f;
76+ --btn-ink: #fff;
77+ --focus: #7d5a1f;
78+ --tint-x: rgba(162, 48, 127, .05);
79+ --tint-x-line: rgba(162, 48, 127, .34);
80+ --aurora-teal: rgba(19, 145, 127, .07);
81+ --aurora-indigo: rgba(91, 74, 230, .06);
82+ --aurora-brass: rgba(167, 122, 58, .05);
83+ color-scheme: light;
84+ }
85+}
86+
87+/* ------------------------------------------------------------- language */
88+/* Both languages are in the page; the one that does not match html[lang]
89+ is not shown. Without JavaScript the page is English. */
90+html:not([lang="es"]) [data-l="es"],
91+html[lang="es"] [data-l="en"] {
92+ display: none !important;
93+}
94+
95+/* ------------------------------------------------------------- base */
96+*, *::before, *::after { box-sizing: border-box; }
97+html {
98+ background: var(--ground);
99+ -webkit-text-size-adjust: 100%;
100+ text-size-adjust: 100%;
101+}
102+body {
103+ margin: 0;
104+ min-height: 100vh;
105+ color: var(--text);
106+ font-family: var(--sans);
107+ font-size: 1.06rem;
108+ line-height: 1.65;
109+ overflow-wrap: break-word;
110+}
111+body::before {
112+ content: "";
113+ position: fixed;
114+ inset: 0;
115+ z-index: -1;
116+ pointer-events: none;
117+ background:
118+ radial-gradient(40% 44% at 10% 4%, var(--aurora-teal), transparent 70%),
119+ radial-gradient(44% 46% at 90% 2%, var(--aurora-indigo), transparent 72%),
120+ radial-gradient(56% 50% at 28% 104%, var(--aurora-brass), transparent 76%);
121+}
122+img, svg { max-width: 100%; }
123+p, ul, ol, dl, figure, h1, h2, h3, h4, pre { margin: 0; }
124+a { color: inherit; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: .2em; }
125+a:hover { text-decoration-color: currentColor; }
126+p a, li a, dd a, td a, figcaption a { color: var(--text); }
127+code {
128+ font-family: var(--mono);
129+ font-size: .86em;
130+ padding: .08em .32em;
131+ border-radius: 6px;
132+ background: var(--surface-soft);
133+ border: 1px solid var(--line);
134+ white-space: nowrap;
135+}
136+@media (max-width: 640px) {
137+ code { white-space: normal; overflow-wrap: anywhere; }
138+}
139+:focus-visible {
140+ outline: 2px solid var(--focus);
141+ outline-offset: 3px;
142+ border-radius: 4px;
143+}
144+main:focus { outline: none; }
145+::selection { background: rgba(130, 114, 255, .35); }
146+
147+.sr-only {
148+ position: absolute !important;
149+ width: 1px;
150+ height: 1px;
151+ padding: 0;
152+ margin: -1px;
153+ overflow: hidden;
154+ clip: rect(0 0 0 0);
155+ white-space: nowrap;
156+ border: 0;
157+}
158+.skip {
159+ position: absolute;
160+ left: 16px;
161+ top: -60px;
162+ z-index: 10;
163+ padding: 10px 14px;
164+ border-radius: var(--r-sm);
165+ background: var(--text);
166+ color: var(--ground);
167+ font-weight: 600;
168+ text-decoration: none;
169+}
170+.skip:focus { top: 12px; }
171+
172+.wrap {
173+ width: 100%;
174+ max-width: 1120px;
175+ margin-inline: auto;
176+ padding-inline: clamp(16px, 4vw, 40px);
177+}
178+.narrow > * { max-width: 820px; }
179+.narrow-left { max-width: 820px; }
180+
181+/* ------------------------------------------------------------- header */
182+.site-head { border-bottom: 1px solid var(--line); }
183+.head-row {
184+ display: flex;
185+ flex-wrap: wrap;
186+ align-items: center;
187+ gap: 8px 18px;
188+ padding-block: 12px;
189+}
190+.brand {
191+ display: inline-flex;
192+ align-items: center;
193+ gap: 10px;
194+ color: var(--text);
195+ text-decoration: none;
196+ font-family: var(--serif);
197+ font-weight: 600;
198+ font-size: 1.14rem;
199+ letter-spacing: .01em;
200+}
201+.brand .mark { width: 60px; height: auto; display: block; }
202+.mark .sa, .logo .sa { stroke: var(--g-brass); }
203+.mark .sb, .logo .sb { stroke: var(--g-teal); }
204+.mark .sc, .logo .sc { stroke: var(--g-indigo); }
205+.nav { order: 3; width: 100%; }
206+.nav ul {
207+ display: flex;
208+ flex-wrap: wrap;
209+ gap: 2px 2px;
210+ list-style: none;
211+ padding: 0;
212+ margin: 0 -10px;
213+}
214+.nav a {
215+ display: inline-block;
216+ padding: 6px 10px;
217+ border-radius: 8px;
218+ color: var(--text-dim);
219+ text-decoration: none;
220+ font-size: .9rem;
221+}
222+.nav a:hover { color: var(--text); background: var(--surface-soft); }
223+/* on a phone the section links keep to two rows in both languages: GitHub
224+ is already a button in the hero and a link in the footer */
225+@media (max-width: 539px) {
226+ .nav li:last-child { display: none; }
227+}
228+@media (max-width: 479px) {
229+ .nav ul { margin-inline: -6px; }
230+ .nav a { padding-inline: 6px; }
231+}
232+.lang {
233+ display: inline-flex;
234+ gap: 2px;
235+ padding: 3px;
236+ border: 1px solid var(--line-strong);
237+ border-radius: 999px;
238+}
239+.lang[hidden] { display: none; }
240+.head-row > .lang { margin-left: auto; }
241+.lang button {
242+ min-width: 40px;
243+ min-height: 30px;
244+ padding: 5px 10px;
245+ border: 0;
246+ border-radius: 999px;
247+ background: transparent;
248+ color: var(--text-dim);
249+ font: 600 .74rem/1 var(--mono);
250+ letter-spacing: .08em;
251+ cursor: pointer;
252+}
253+.lang button:hover { color: var(--text); }
254+.lang button[aria-pressed="true"] { background: var(--text); color: var(--ground); }
255+@media (forced-colors: active) {
256+ .lang button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
257+}
258+
259+@media (min-width: 1180px) {
260+ .nav { order: 0; width: auto; margin-left: auto; }
261+ .nav ul { margin: 0; }
262+ .head-row > .lang { margin-left: 0; }
263+}
264+
265+/* ------------------------------------------------------------- hero */
266+.hero { padding-top: clamp(28px, 6vw, 72px); }
267+.hero-grid {
268+ display: grid;
269+ gap: 26px;
270+ grid-template-columns: minmax(0, 1fr);
271+ grid-template-areas: "logo" "copy" "card";
272+}
273+.hero-logo { grid-area: logo; }
274+.hero-copy { grid-area: copy; }
275+.hero-card { grid-area: card; }
276+.hero-logo .logo { display: block; width: 100%; max-width: 320px; height: auto; }
277+@media (min-width: 900px) {
278+ .hero-grid {
279+ grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
280+ grid-template-areas: "copy logo" "copy card";
281+ grid-template-rows: auto 1fr;
282+ column-gap: clamp(32px, 5vw, 64px);
283+ row-gap: 22px;
284+ align-items: start;
285+ }
286+ .hero-logo .logo { max-width: 460px; margin-inline: auto; }
287+ .hero-copy { padding-top: 8px; }
288+}
289+.eyebrow {
290+ font-family: var(--mono);
291+ font-size: .74rem;
292+ letter-spacing: .2em;
293+ text-transform: uppercase;
294+ color: var(--brass);
295+}
296+h1 {
297+ margin-top: 14px;
298+ font-family: var(--serif);
299+ font-weight: 600;
300+ font-size: clamp(2.2rem, 6vw, 4rem);
301+ line-height: 1.04;
302+ letter-spacing: -.01em;
303+ text-wrap: balance;
304+}
305+.nw { white-space: nowrap; }
306+.pitch {
307+ margin-top: 22px;
308+ max-width: 34ch;
309+ font-size: clamp(1.18rem, 2.2vw, 1.36rem);
310+ line-height: 1.45;
311+}
312+.sub { margin-top: 14px; max-width: 58ch; color: var(--text-dim); }
313+.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
314+.btn {
315+ display: inline-flex;
316+ align-items: center;
317+ min-height: 44px;
318+ padding: 10px 18px;
319+ border: 1px solid var(--line-strong);
320+ border-radius: var(--r-sm);
321+ background: var(--surface-soft);
322+ color: var(--text);
323+ font-weight: 600;
324+ font-size: .96rem;
325+ text-decoration: none;
326+}
327+.btn:hover { border-color: var(--text-dim); }
328+.btn-primary { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
329+.btn-primary:hover { border-color: transparent; filter: brightness(1.06); }
330+.fine { margin-top: 18px; font-size: .9rem; color: var(--text-dim); }
331+.hero-card figcaption {
332+ margin-top: 10px;
333+ max-width: 60ch;
334+ font-size: .9rem;
335+ line-height: 1.55;
336+ color: var(--text-dim);
337+}
338+
339+/* the strands of the hero logo draw in, once */
340+.logo .sa, .logo .sb, .logo .sc { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
341+@media (prefers-reduced-motion: no-preference) {
342+ .logo .sa, .logo .sb, .logo .sc { animation: draw 1.5s cubic-bezier(.22, .61, .36, 1) both; }
343+ .logo .sb { animation-delay: .16s; }
344+ .logo .sc { animation-delay: .32s; }
345+}
346+@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
347+
348+/* ------------------------------------------------------------- terminals */
349+.term {
350+ --agent: var(--term-line);
351+ position: relative;
352+ margin-block: 18px 22px;
353+ border: 1px solid var(--term-line);
354+ border-left: 3px solid var(--agent);
355+ border-radius: 12px;
356+ background: var(--term-bg);
357+ color: var(--term-dim);
358+ overflow: hidden;
359+ font-family: var(--mono);
360+}
361+.term.t-a { --agent: var(--term-a); }
362+.term.t-b { --agent: var(--term-b); }
363+.term.t-c { --agent: var(--term-c); }
364+.term.t-n { --agent: var(--term-muted); }
365+.term-hero {
366+ margin: 0;
367+ border-left-width: 1px;
368+ box-shadow: inset 2px 0 0 var(--term-a), inset 4px 0 0 var(--term-b), inset 6px 0 0 var(--term-c);
369+}
370+.term-bar {
371+ display: flex;
372+ justify-content: space-between;
373+ align-items: center;
374+ gap: 12px;
375+ min-height: 34px;
376+ padding: 6px 14px;
377+ border-bottom: 1px solid var(--term-line);
378+ color: var(--term-dim);
379+ font-size: .76rem;
380+ letter-spacing: .02em;
381+}
382+.term-bar > span:first-child { white-space: nowrap; }
383+.term-bar .bar-note { color: var(--term-dim); font-style: italic; text-align: right; text-wrap: balance; }
384+.term pre, .code pre {
385+ padding: 14px 16px;
386+ overflow-x: auto;
387+ font-family: var(--mono);
388+ font-size: .82rem;
389+ line-height: 1.62;
390+ white-space: pre;
391+ tab-size: 4;
392+}
393+.term code, .code code, .task code {
394+ padding: 0;
395+ border: 0;
396+ border-radius: 0;
397+ background: none;
398+ font-size: inherit;
399+ white-space: inherit;
400+ overflow-wrap: inherit;
401+}
402+.term-hero pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; padding: 16px 18px 16px 22px; }
403+.term .pr { color: var(--term-muted); }
404+.term .cmd { color: var(--term-text); }
405+.term .id { color: var(--term-muted); }
406+.term .el { color: var(--term-muted); }
407+.term .ag-a { color: var(--term-a); }
408+.term .ag-b { color: var(--term-b); }
409+.term .ag-c { color: var(--term-c); }
410+.term .x, .term .x .id { color: var(--term-x); }
411+.term .ln-a, .term .ln-a .id { color: var(--term-a); }
412+.term .ln-b, .term .ln-b .id { color: var(--term-b); }
413+.term .ln-c, .term .ln-c .id { color: var(--term-c); }
414+.exit {
415+ display: inline-block;
416+ padding: 1px 8px;
417+ border: 1px solid var(--term-x);
418+ border-radius: 999px;
419+ color: var(--term-x);
420+ font-family: var(--mono);
421+ font-size: .72rem;
422+ line-height: 1.5;
423+ letter-spacing: .04em;
424+ white-space: nowrap;
425+ vertical-align: 1px;
426+}
427+.story .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
428+/* blame is columns: it keeps its lines, like the copyable blocks below.
429+ On a phone it leaves the ids out, and its bar note says so, and on the
430+ narrowest its type is a little smaller, so that every line fits whole */
431+.story .term-cols pre { white-space: pre; overflow-wrap: normal; }
432+.bn-ids { display: none; }
433+@media (max-width: 480px) {
434+ .term-blame .bl-id { display: none; }
435+ .term-blame .bn-ids { display: inline; }
436+}
437+@media (max-width: 359px) {
438+ .story .term-blame pre { padding-inline: 12px; font-size: .76rem; }
439+}
440+/* the op log wraps an entry that does not fit under itself, past its
441+ number, so what each landing did stays in view. Its lines are inline
442+ blocks, not blocks, so its text reads and copies as braid prints it */
443+.term-oplog .ol { display: inline-block; width: 100%; padding-left: 4ch; text-indent: -4ch; }
444+
445+/* copyable blocks and column transcripts keep their exact text and scroll
446+ in their own box; site.js marks one that is wider than its box, and the
447+ text fades at the edge that has more, so a phone shows that it scrolls */
448+.code pre.more-right, .term-cols pre.more-right {
449+ -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
450+ mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
451+}
452+.code pre.more-left, .term-cols pre.more-left {
453+ -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
454+ mask-image: linear-gradient(to right, transparent, #000 40px);
455+}
456+.code pre.more-left.more-right, .term-cols pre.more-left.more-right {
457+ -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
458+ mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
459+}
460+.code pre:focus-visible, .term-cols pre:focus-visible { outline-offset: -2px; border-radius: 0 0 11px 11px; }
461+@supports selector(:has(*)) {
462+ .code:has(> pre:focus-visible), .term-cols:has(> pre:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
463+ .code > pre:focus-visible, .term-cols > pre:focus-visible { outline: none; }
464+}
465+.code {
466+ margin-block: 14px 22px;
467+ border: 1px solid var(--term-line);
468+ border-radius: 12px;
469+ background: var(--term-bg);
470+ color: var(--term-text);
471+ overflow: hidden;
472+}
473+.code-bar {
474+ display: flex;
475+ justify-content: space-between;
476+ align-items: center;
477+ min-height: 38px;
478+ padding: 4px 6px 4px 14px;
479+ border-bottom: 1px solid var(--term-line);
480+ color: var(--term-muted);
481+ font: .74rem/1 var(--mono);
482+ letter-spacing: .06em;
483+}
484+.copy {
485+ min-height: 30px;
486+ padding: 4px 12px;
487+ border: 1px solid var(--term-line);
488+ border-radius: 8px;
489+ background: transparent;
490+ color: var(--term-dim);
491+ font: 600 .74rem/1 var(--sans);
492+ cursor: pointer;
493+}
494+.copy:hover { color: var(--term-text); border-color: var(--term-dim); }
495+.copy:focus-visible { outline-color: #c8a06a; }
496+.copy .c-done { display: none; }
497+.copy.copied .c-idle { display: none; }
498+.copy.copied .c-done { display: inline; }
499+.copy.copied { color: var(--term-b); border-color: var(--term-b); }
500+
501+/* ------------------------------------------------------------- sections */
502+.sec { padding-top: clamp(64px, 9vw, 112px); }
503+.sec-head { margin-bottom: 22px; }
504+.sec-head .eyebrow { margin-bottom: 10px; }
505+h2 {
506+ font-family: var(--serif);
507+ font-weight: 600;
508+ font-size: clamp(1.75rem, 3.6vw, 2.5rem);
509+ line-height: 1.15;
510+ letter-spacing: -.005em;
511+ text-wrap: balance;
512+}
513+h3 {
514+ font-family: var(--serif);
515+ font-weight: 600;
516+ font-size: clamp(1.3rem, 2.4vw, 1.6rem);
517+ line-height: 1.25;
518+ text-wrap: balance;
519+}
520+.sec p + p, .sec p + .code, .sec .code + p { margin-top: 14px; }
521+.lead { max-width: 66ch; color: var(--text-dim); }
522+.note, .after, .licence, .run-note { color: var(--text-dim); font-size: .94rem; }
523+
524+/* ------------------------------------------------------------- story */
525+.chapter {
526+ display: grid;
527+ grid-template-columns: minmax(0, 1fr);
528+ margin-top: clamp(36px, 5vw, 56px);
529+}
530+.ch-num {
531+ font-family: var(--serif);
532+ font-weight: 600;
533+ font-size: 1.15rem;
534+ line-height: 1;
535+ color: var(--brass);
536+ letter-spacing: .04em;
537+ margin-bottom: 8px;
538+}
539+.ch-main { min-width: 0; max-width: 820px; }
540+.ch-main > p { max-width: 66ch; }
541+.ch-main > h3 + p { margin-top: 12px; }
542+.ch-main > p + p { margin-top: 14px; }
543+@media (min-width: 960px) {
544+ .chapter { grid-template-columns: 96px minmax(0, 1fr); }
545+ .ch-num { font-size: 2.6rem; margin: 0; padding-top: 2px; text-align: left; }
546+}
547+.ch-x {
548+ padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 30px) clamp(10px, 2vw, 20px);
549+ margin-inline: calc(-1 * clamp(16px, 3vw, 30px));
550+ border: 1px solid var(--tint-x-line);
551+ border-radius: var(--r);
552+ background: var(--tint-x);
553+}
554+@media (max-width: 640px) {
555+ .ch-x { margin-inline: -8px; padding-inline: 8px; }
556+}
557+.tasks {
558+ display: grid;
559+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
560+ gap: 10px;
561+ margin-top: 18px;
562+ padding: 0;
563+ list-style: none;
564+}
565+.task {
566+ border: 1px solid var(--term-line);
567+ border-top: 3px solid var(--agent);
568+ border-radius: 10px;
569+ background: var(--term-bg);
570+ color: var(--term-dim);
571+ font-family: var(--mono);
572+ font-size: .8rem;
573+}
574+.task.t-a { --agent: var(--term-a); }
575+.task.t-b { --agent: var(--term-b); }
576+.task.t-c { --agent: var(--term-c); }
577+.task-who {
578+ display: block;
579+ padding: 7px 12px;
580+ border-bottom: 1px solid var(--term-line);
581+ color: var(--agent);
582+ font-size: .74rem;
583+}
584+.task pre { padding: 10px 12px; font-size: .8rem; line-height: 1.6; white-space: pre-wrap; }
585+.task .del, .task .ctx { color: var(--term-muted); }
586+.task .add { color: var(--agent); }
587+.loop-row { display: grid; gap: 12px; align-items: center; margin-top: 14px; }
588+.loop-row p + p { margin-top: 0; }
589+.loop-fig { max-width: 420px; justify-self: center; width: 100%; }
590+/* equal halves, so the figure keeps room for its labels next to the text */
591+@media (min-width: 1000px) {
592+ .loop-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
593+}
594+.gitloop { display: block; width: 100%; height: auto; }
595+.gitloop .gl-path { fill: none; stroke: var(--text-dim); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
596+.gitloop .gl-dot { fill: var(--text-dim); }
597+.gitloop .gl-dot-x { fill: var(--g-magenta); }
598+.gitloop .gl-t { fill: var(--text-dim); font: 17px var(--mono); }
599+.gitloop .gl-x { fill: var(--magenta); font: 600 17px var(--mono); }
600+.gitloop .gl-ar { fill: var(--text-dim); }
601+details.run {
602+ margin-top: 24px;
603+ border: 1px solid var(--line-strong);
604+ border-radius: 12px;
605+ background: var(--surface-soft);
606+}
607+details.run > summary {
608+ cursor: pointer;
609+ padding: 12px 16px;
610+ font-weight: 600;
611+ list-style-position: inside;
612+}
613+details.run[open] > summary { border-bottom: 1px solid var(--line); }
614+details.run .code { margin: 12px; }
615+
616+/* ------------------------------------------------------------- autosync */
617+.as-band {
618+ padding: clamp(20px, 4vw, 36px);
619+ border: 1.5px dashed var(--muted);
620+ border-radius: var(--r);
621+ background: var(--surface-soft);
622+}
623+.as-band h2 { margin-top: 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
624+.as-band p:not(.pill) { margin-top: 14px; max-width: 66ch; color: var(--text-dim); }
625+.pill {
626+ display: inline-block;
627+ padding: 3px 10px;
628+ border: 1px solid var(--line-strong);
629+ border-radius: 999px;
630+ color: var(--text-dim);
631+ font: .72rem/1.5 var(--mono);
632+ letter-spacing: .12em;
633+ text-transform: uppercase;
634+}
635+
636+/* ------------------------------------------------------------- diagram */
637+.diagram {
638+ margin-top: 6px;
639+ padding: clamp(10px, 2vw, 22px);
640+ border: 1px solid var(--line);
641+ border-radius: var(--r);
642+ background: var(--surface-soft);
643+}
644+.dgm { display: block; width: 100%; height: auto; }
645+.dgm-tall { display: none; max-width: 460px; margin-inline: auto; }
646+@media (max-width: 999px) {
647+ .dgm-wide { display: none; }
648+ .dgm-tall { display: block; }
649+}
650+@media (max-width: 479px) {
651+ .diagram { padding: 6px; }
652+}
653+.dgm .band { fill: var(--surface-soft); stroke: var(--line-strong); }
654+.dgm .card { fill: var(--surface); stroke: var(--line-strong); }
655+.dgm .acc-a { fill: var(--g-brass); }
656+.dgm .acc-b { fill: var(--g-teal); }
657+.dgm .acc-c { fill: var(--g-indigo); }
658+.dgm .lb { font-family: var(--sans); }
659+.dgm .mono { font-family: var(--mono); }
660+.dgm .hi { fill: var(--text); }
661+.dgm .dim { fill: var(--text-dim); }
662+.dgm .muted { fill: var(--muted-text); }
663+.dgm .strong { font-weight: 600; }
664+.dgm .t-a { fill: var(--brass); }
665+.dgm .t-b { fill: var(--teal); }
666+.dgm .t-c { fill: var(--indigo); }
667+.dgm .t-x { fill: var(--magenta); }
668+.dgm .strand { fill: none; stroke-linecap: round; stroke-linejoin: round; }
669+.dgm .st-a { stroke: var(--g-brass); }
670+.dgm .st-b { stroke: var(--g-teal); }
671+.dgm .st-c { stroke: var(--g-indigo); }
672+.dgm .post { fill: var(--muted); }
673+.dgm .knot { fill: none; stroke: var(--g-magenta); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
674+.dgm .loop { fill: none; stroke: var(--g-teal); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
675+.dgm .ar { fill: var(--text-dim); }
676+.dgm .ar-b { fill: var(--g-teal); }
677+.dgm .flow { fill: none; stroke: var(--text-dim); stroke-width: 2; }
678+.dgm .box { fill: var(--surface); stroke: var(--line-strong); }
679+.dgm .ghost { fill: none; stroke: var(--muted); stroke-dasharray: 6 6; }
680+.points {
681+ display: grid;
682+ gap: 14px;
683+ margin-top: 28px;
684+ padding-left: 1.4em;
685+ max-width: 78ch;
686+}
687+.points li::marker { color: var(--brass); font-family: var(--serif); font-weight: 600; }
688+.points strong { font-weight: 650; }
689+.credit { margin-top: 24px; max-width: 72ch; color: var(--text-dim); font-size: .95rem; }
690+
691+/* ------------------------------------------------------------- agents */
692+.grid-title { margin-top: 34px; }
693+.contract {
694+ display: grid;
695+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
696+ gap: 12px;
697+ margin-top: 16px;
698+ padding: 0;
699+ list-style: none;
700+}
701+.contract > li {
702+ min-width: 0;
703+ padding: 16px 18px;
704+ border: 1px solid var(--line);
705+ border-radius: 12px;
706+ background: var(--surface-soft);
707+}
708+.contract > li.wide { grid-column: 1 / -1; }
709+.contract h4 {
710+ margin-bottom: 6px;
711+ font-family: var(--mono);
712+ font-size: .76rem;
713+ font-weight: 600;
714+ letter-spacing: .12em;
715+ text-transform: uppercase;
716+ color: var(--brass);
717+}
718+.contract p { font-size: .95rem; line-height: 1.55; color: var(--text-dim); }
719+.contract p code { color: var(--text); }
720+.contract .code { margin: 12px 0 2px; }
721+
722+/* ------------------------------------------------------------- git */
723+.rows { margin-top: 22px; border-top: 1px solid var(--line); }
724+.row {
725+ display: grid;
726+ gap: 6px 28px;
727+ padding-block: 18px;
728+ border-bottom: 1px solid var(--line);
729+}
730+@media (min-width: 760px) {
731+ .row { grid-template-columns: 200px minmax(0, 1fr); }
732+}
733+.row dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
734+.row dt code { display: block; width: max-content; margin-top: 6px; font-size: .74rem; color: var(--text-dim); }
735+.row dd { margin: 0; max-width: 70ch; }
736+.row dd ul { padding-left: 1.1em; display: grid; gap: 6px; }
737+.licence { margin-top: 6px; max-width: 72ch; }
738+.next-link { margin-top: 14px; }
739+.next-link a { color: var(--text); font-weight: 600; }
740+
741+/* ------------------------------------------------------------- measured */
742+.method { display: grid; gap: 6px; max-width: 76ch; padding-left: 1.1em; color: var(--text-dim); }
743+.ratios-run { margin-top: 26px; }
744+.ratios-run > p { max-width: 72ch; }
745+.table-wrap { margin-block: 16px 18px; overflow-x: auto; }
746+.table-wrap:focus-visible { outline-offset: 2px; }
747+table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
748+th, td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
749+thead th {
750+ border-bottom: 1px solid var(--line-strong);
751+ color: var(--text-dim);
752+ font-family: var(--mono);
753+ font-size: .72rem;
754+ font-weight: 600;
755+ letter-spacing: .1em;
756+ text-transform: uppercase;
757+}
758+tbody tr:hover { background: var(--surface-soft); }
759+.ratios td:nth-child(2) {
760+ font-family: var(--mono);
761+ font-size: 1.05rem;
762+ font-weight: 600;
763+ white-space: nowrap;
764+ min-width: 140px;
765+}
766+.ratios td:nth-child(3) code { white-space: nowrap; }
767+/* long commands in the first column break between tokens; flags stay whole */
768+.ratios td:first-child code { white-space: normal; }
769+.mk { display: block; position: relative; height: 10px; width: 120px; margin-top: 8px; }
770+.mk::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 2px; background: var(--line-strong); }
771+.mk-one { position: absolute; top: -1px; width: 2px; height: 12px; margin-left: -1px; background: var(--text-dim); }
772+.mk-bar { position: absolute; top: 3px; height: 4px; border-radius: 2px; background: var(--text-dim); opacity: .55; }
773+.mk-dot { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--text); }
774+.mk-legend { margin-top: 22px; font-size: .88rem; color: var(--text-dim); max-width: 72ch; }
775+
776+.checks td:first-child { width: 42%; color: var(--text); }
777+.checks td:last-child { color: var(--text-dim); }
778+
779+@media (max-width: 860px) {
780+ table, thead, tbody, tr, th, td { display: block; }
781+ thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
782+ tbody tr {
783+ margin-bottom: 10px;
784+ padding: 12px 14px;
785+ border: 1px solid var(--line);
786+ border-radius: 12px;
787+ background: var(--surface-soft);
788+ }
789+ tbody tr:hover { background: var(--surface-soft); }
790+ td { padding: 3px 0; border: 0; }
791+ .checks td:first-child { width: auto; font-weight: 600; }
792+ .ratios td:nth-child(2) { padding-top: 8px; }
793+ .ratios td:nth-child(3) code { white-space: normal; }
794+ html:not([lang="es"]) .ratios td:nth-child(2)::before { content: "braid / git "; }
795+ html[lang="es"] .ratios td:nth-child(2)::before { content: "braid / git "; }
796+ .ratios td:nth-child(2)::before { font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: var(--text-dim); }
797+ html:not([lang="es"]) .ratios td:nth-child(3)::before { content: "Reproduce: "; }
798+ html[lang="es"] .ratios td:nth-child(3)::before { content: "Para repetirlo: "; }
799+ html:not([lang="es"]) .checks td:last-child::before { content: "How it is checked: "; }
800+ html[lang="es"] .checks td:last-child::before { content: "Cómo se comprueba: "; }
801+ .ratios td:nth-child(3)::before, .checks td:last-child::before { color: var(--muted-text); font-size: .86rem; }
802+}
803+
804+/* ------------------------------------------------------------- honest */
805+.honest { display: grid; gap: 8px; max-width: 78ch; padding-left: 1.1em; }
806+.honest li::marker { color: var(--brass); }
807+.scion, .credits { margin-top: 18px; max-width: 76ch; color: var(--text-dim); font-size: .95rem; }
808+
809+/* ------------------------------------------------------------- elffuss */
810+.family {
811+ display: grid;
812+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
813+ gap: 12px;
814+ margin-top: 20px;
815+ padding: 0;
816+ list-style: none;
817+}
818+.family a {
819+ display: flex;
820+ flex-direction: column;
821+ gap: 4px;
822+ height: 100%;
823+ padding: 16px 18px;
824+ border: 1px solid var(--line);
825+ border-radius: 12px;
826+ background: var(--surface-soft);
827+ text-decoration: none;
828+}
829+.family a:hover { border-color: var(--line-strong); }
830+.f-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--text); }
831+.f-desc { font-size: .94rem; color: var(--text-dim); line-height: 1.5; }
832+.repos-title { margin-top: 30px; font-size: 1.15rem; }
833+.repos { display: grid; gap: 8px; margin-top: 12px; padding: 0; list-style: none; color: var(--text-dim); font-size: .95rem; }
834+/* underlined like every other link, so the chip alone does not have to say it */
835+.repos a { margin-right: 6px; }
836+.repos a code { color: var(--text); text-decoration: inherit; text-decoration-color: var(--muted); text-underline-offset: .2em; }
837+.repos a:hover code { border-color: var(--line-strong); text-decoration-color: currentColor; }
838+
839+/* ------------------------------------------------------------- footer */
840+.site-foot {
841+ margin-top: clamp(72px, 10vw, 120px);
842+ padding-block: 28px 40px;
843+ border-top: 1px solid var(--line);
844+ color: var(--text-dim);
845+ font-size: .92rem;
846+}
847+.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
848+.foot-row a { color: var(--text); }
849+.foot-row .dot { color: var(--muted); }
850+/* the toggle is a control, not one more item: it keeps to the right, and
851+ it is what wraps first */
852+.foot-row .lang-foot { margin-left: auto; }
853+@media (max-width: 539px) {
854+ .foot-row { gap: 8px 18px; }
855+ .foot-row .dot { display: none; }
856+}
857+.foot-note { margin-top: 14px; max-width: 76ch; font-size: .86rem; }
added site/site.js +231 −0
@@ -0,0 +1,231 @@
1+/* SPDX-License-Identifier: Apache-2.0
2+ Copyright (c) 2026 UtopiaIA
3+ Elffuss Braid · braid.elffuss.com
4+ The language toggle, the copy buttons, the faded edge of code blocks that
5+ scroll (only those take keyboard focus), and the markers of the ratio
6+ table. No dependencies, no requests. Without this file the page is
7+ English and complete, every code block takes focus, and the toggle and
8+ the copy buttons stay hidden. */
9+(function () {
10+ 'use strict';
11+
12+ var KEY = 'braid-lang';
13+ var root = document.documentElement;
14+ var TITLE = {
15+ en: 'Elffuss Braid · version control for many agents at once',
16+ es: 'Elffuss Braid · control de versiones para muchos agentes a la vez'
17+ };
18+ var SAID = {
19+ en: { copied: 'Copied', failed: 'Could not copy: the text is selected instead' },
20+ es: { copied: 'Copiado', failed: 'No se pudo copiar: el texto queda seleccionado' }
21+ };
22+
23+ function valid(value) {
24+ return value === 'en' || value === 'es' ? value : null;
25+ }
26+ function fromQuery() {
27+ try { return valid(new URLSearchParams(window.location.search).get('lang')); } catch (e) { return null; }
28+ }
29+ function fromStore() {
30+ try { return valid(window.localStorage.getItem(KEY)); } catch (e) { return null; }
31+ }
32+ function remember(value) {
33+ try { window.localStorage.setItem(KEY, value); } catch (e) { /* private mode: fine */ }
34+ }
35+ function fromBrowser() {
36+ var tag = (navigator.language || '').toLowerCase();
37+ return tag.indexOf('es') === 0 ? 'es' : null;
38+ }
39+
40+ // ?lang=, then the stored choice, then a Spanish browser, then English.
41+ // Set before the body is parsed, so the other language never flashes.
42+ var lang = fromQuery() || fromStore() || fromBrowser() || 'en';
43+ root.setAttribute('lang', lang);
44+
45+ function each(selector, fn) {
46+ var list = document.querySelectorAll(selector);
47+ for (var i = 0; i < list.length; i++) fn(list[i]);
48+ }
49+
50+ // Boxes whose text keeps its lines and may scroll sideways. In the HTML
51+ // each is a labelled region that takes keyboard focus; edges() keeps that
52+ // only for the ones that do scroll at the current width.
53+ var SCROLLERS = '.code pre, .term-cols pre, .table-wrap';
54+ var scrollers = [];
55+
56+ function apply(value) {
57+ lang = value;
58+ root.setAttribute('lang', value);
59+ document.title = TITLE[value];
60+ each('[data-set-lang]', function (button) {
61+ button.setAttribute('aria-pressed', String(button.getAttribute('data-set-lang') === value));
62+ });
63+ each('[data-aria-' + value + ']', function (el) {
64+ if (el.matches(SCROLLERS) && el.getAttribute('role') !== 'region') return;
65+ el.setAttribute('aria-label', el.getAttribute('data-aria-' + value));
66+ });
67+ allEdges(); // the other language has other widths
68+ }
69+
70+ function keepQuery(value) {
71+ try {
72+ var url = new URL(window.location.href);
73+ if (url.searchParams.has('lang')) {
74+ url.searchParams.set('lang', value);
75+ window.history.replaceState(null, '', url.toString());
76+ }
77+ } catch (e) { /* old browser: the toggle still works */ }
78+ }
79+
80+ function say(text) {
81+ var live = document.getElementById('live');
82+ if (!live) return;
83+ live.textContent = '';
84+ window.setTimeout(function () { live.textContent = text; }, 40);
85+ }
86+
87+ function write(text) {
88+ if (navigator.clipboard && window.isSecureContext) {
89+ return navigator.clipboard.writeText(text);
90+ }
91+ return new Promise(function (resolve, reject) {
92+ var area = document.createElement('textarea');
93+ area.value = text;
94+ area.setAttribute('readonly', '');
95+ area.style.position = 'fixed';
96+ area.style.top = '0';
97+ area.style.left = '0';
98+ area.style.opacity = '0';
99+ document.body.appendChild(area);
100+ area.select();
101+ var done = false;
102+ try { done = document.execCommand('copy'); } catch (e) { done = false; }
103+ document.body.removeChild(area);
104+ if (done) resolve(); else reject(new Error('copy'));
105+ });
106+ }
107+
108+ function copy(button) {
109+ var block = button.closest('.code');
110+ var code = block && block.querySelector('pre code');
111+ if (!code) return;
112+ write(code.textContent).then(function () {
113+ button.classList.add('copied');
114+ window.clearTimeout(button._braidTimer);
115+ button._braidTimer = window.setTimeout(function () { button.classList.remove('copied'); }, 1800);
116+ say(SAID[lang].copied);
117+ }, function () {
118+ var range = document.createRange();
119+ range.selectNodeContents(code);
120+ var selection = window.getSelection();
121+ selection.removeAllRanges();
122+ selection.addRange(range);
123+ say(SAID[lang].failed);
124+ });
125+ }
126+
127+ // A marker per row of the ratio table, drawn from the table's own cells
128+ // on a log scale, with a line at 1.
129+ function markers() {
130+ var table = document.querySelector('#measured table.ratios');
131+ if (!table || !table.tBodies.length) return;
132+ var found = [];
133+ var rows = table.tBodies[0].rows;
134+ for (var i = 0; i < rows.length; i++) {
135+ var cell = rows[i].cells[1];
136+ var value = cell ? parseFloat(cell.textContent.replace(',', '.')) : NaN;
137+ if (isFinite(value) && value > 0) found.push({ cell: cell, value: value });
138+ }
139+ if (!found.length) return;
140+ var values = found.map(function (f) { return f.value; });
141+ var lo = Math.log(Math.min(0.1, Math.min.apply(null, values) / 1.5));
142+ var hi = Math.log(Math.max(10, Math.max.apply(null, values) * 1.5));
143+ function at(v) { return (Math.log(v) - lo) / (hi - lo) * 100; }
144+ var one = at(1);
145+ found.forEach(function (f) {
146+ var x = at(f.value);
147+ var mark = document.createElement('span');
148+ mark.className = 'mk';
149+ mark.setAttribute('aria-hidden', 'true');
150+ var line = document.createElement('span');
151+ line.className = 'mk-one';
152+ line.style.left = one.toFixed(2) + '%';
153+ var bar = document.createElement('span');
154+ bar.className = 'mk-bar';
155+ bar.style.left = Math.min(x, one).toFixed(2) + '%';
156+ bar.style.width = Math.abs(x - one).toFixed(2) + '%';
157+ var dot = document.createElement('span');
158+ dot.className = 'mk-dot';
159+ dot.style.left = x.toFixed(2) + '%';
160+ mark.appendChild(bar);
161+ mark.appendChild(line);
162+ mark.appendChild(dot);
163+ f.cell.appendChild(mark);
164+ });
165+ var legend = document.getElementById('mk-legend');
166+ if (legend) legend.hidden = false;
167+ }
168+
169+ // A box that is wider than its text scrolls in it. Only then is it a
170+ // region to tab to, named in the page's language; otherwise it is plain
171+ // text, and keyboards and screen readers pass over it. The side that has
172+ // more is marked, and site.css fades the text there.
173+ function edges(el) {
174+ var max = el.scrollWidth - el.clientWidth;
175+ var scrolls = max > 1;
176+ if (scrolls) {
177+ el.setAttribute('tabindex', '0');
178+ el.setAttribute('role', 'region');
179+ var label = el.getAttribute('data-aria-' + lang);
180+ if (label) el.setAttribute('aria-label', label);
181+ } else if (el !== document.activeElement) {
182+ el.removeAttribute('tabindex');
183+ el.removeAttribute('role');
184+ el.removeAttribute('aria-label');
185+ }
186+ el.classList.toggle('more-right', scrolls && el.scrollLeft < max - 1);
187+ el.classList.toggle('more-left', scrolls && el.scrollLeft > 1);
188+ }
189+ function allEdges() {
190+ for (var i = 0; i < scrollers.length; i++) edges(scrollers[i]);
191+ }
192+ function watchEdges() {
193+ scrollers = document.querySelectorAll(SCROLLERS);
194+ for (var i = 0; i < scrollers.length; i++) {
195+ scrollers[i].addEventListener('scroll', function () { edges(this); }, { passive: true });
196+ }
197+ window.addEventListener('resize', allEdges);
198+ document.addEventListener('toggle', allEdges, true); // a <details> opened
199+ allEdges();
200+ }
201+
202+ function start() {
203+ apply(lang);
204+ // Without this file these do nothing, so they only show up with it.
205+ each('button.copy, .lang', function (el) { el.hidden = false; });
206+ document.addEventListener('click', function (event) {
207+ var target = event.target;
208+ if (!target || !target.closest) return;
209+ var toggle = target.closest('[data-set-lang]');
210+ if (toggle) {
211+ var value = valid(toggle.getAttribute('data-set-lang'));
212+ if (value) {
213+ apply(value);
214+ remember(value);
215+ keepQuery(value);
216+ }
217+ return;
218+ }
219+ var button = target.closest('button.copy');
220+ if (button) copy(button);
221+ });
222+ markers();
223+ watchEdges();
224+ }
225+
226+ if (document.readyState === 'loading') {
227+ document.addEventListener('DOMContentLoaded', start);
228+ } else {
229+ start();
230+ }
231+})();