utopia-ia/elffuss-braid public
Changesets · Branches · Tags · Compare
| Changeset | a71130e7a2a9d4e0ab165dbc2ff5bb61e6afd32d7099c1827cb0de1a571f83bb |
|---|---|
| Author | KikoCis <KikoCis@users.noreply.github.com> · 2026-10-21 18:22 +02:00 |
| Committer | KikoCis <KikoCis@users.noreply.github.com> · 2026-10-21 18:22 +02:00 |
| Parents | 144cee5c7c47 |
3 files changed
modified README.md +1 −1
| @@ -594,7 +594,7 @@ | ||
| 594 | 594 | |
| 595 | 595 | ## Prior art and credits |
| 596 | 596 | |
| 597 | -- Anthropic, [Redesigning source control at Anthropic](https://www.anthropic.com/engineering/redesigning-source-control): | |
| 597 | +- Anthropic, [Redesigning source control at Anthropic](https://www.anthropic.com/research/redesigning-source-control): | |
| 598 | 598 | changesets stored against the first parent, server-side merges, minimal |
| 599 | 599 | branch state, immutable objects served by any cache tier. |
| 600 | 600 | - [Jujutsu](https://github.com/jj-vcs/jj): the operation log and undo. |
modified site/index.html +5 −6
| @@ -72,13 +72,13 @@ | ||
| 72 | 72 | "@id": "https://braid.elffuss.com/#app", |
| 73 | 73 | "name": "Elffuss Braid", |
| 74 | 74 | "alternateName": "braid", |
| 75 | - "description": "Version control for repositories where many AI coding agents land changes at the same time. Each agent commits in a workspace of its own over one shared store, and landing on main is one short step taken in turn. No server or daemon is needed on one machine; BraidHub is for agents on several machines.", | |
| 75 | + "description": "Version control for repositories where many AI coding agents land changes at the same time. Each agent commits in a workspace of its own over one shared store, and landing on main is one short step taken in turn. No server or daemon is needed on one machine.", | |
| 76 | 76 | "url": "https://braid.elffuss.com/", |
| 77 | 77 | "applicationCategory": "DeveloperApplication", |
| 78 | 78 | "applicationSubCategory": "Version control system", |
| 79 | 79 | "operatingSystem": "Linux and other Unix-like systems", |
| 80 | 80 | "softwareVersion": "0.1.1", |
| 81 | - "softwareRequirements": "Rust 1.89 or newer, to build it with cargo", | |
| 81 | + "softwareRequirements": "Rust 1.89 or newer, a C compiler (cc), git, and a POSIX shell such as bash", | |
| 82 | 82 | "installUrl": "https://braid.elffuss.com/agents.md", |
| 83 | 83 | "license": "https://www.apache.org/licenses/LICENSE-2.0", |
| 84 | 84 | "isAccessibleForFree": true, |
| @@ -90,8 +90,7 @@ | ||
| 90 | 90 | "No server or daemon on one machine", |
| 91 | 91 | "Bit-for-bit import of git history, and braid git sync to keep GitHub or any git remote in step", |
| 92 | 92 | "An append-only op log, and braid undo", |
| 93 | - "braid verify: keep a branch green, bisect a failure and revert the changeset that broke it", | |
| 94 | - "BraidHub, for agents that land on one main from several machines" | |
| 93 | + "braid verify: keep a branch green, bisect a failure and revert the changeset that broke it" | |
| 95 | 94 | ], |
| 96 | 95 | "publisher": { "@id": "https://braid.elffuss.com/#utopiaia" }, |
| 97 | 96 | "sameAs": [ |
| @@ -470,8 +469,8 @@ | ||
| 470 | 469 | <li><strong>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 servidor ya tiene una primera versión, <a href="#hub">BraidHub</a>; las cachés y el daemon están previstos (fases 6 y 7).</li> |
| 471 | 470 | </ol> |
| 472 | 471 | <h3 class="grid-title"><span data-l="en" lang="en">Where the ideas come from: Scion</span><span data-l="es" lang="es">De dónde vienen las ideas: Scion</span></h3> |
| 473 | -<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. <a href="scion.html">What braid takes from Scion, and where it differs</a>.</p> | |
| 474 | -<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. <a href="scion.html">Qué toma braid de Scion y en qué se aparta</a>.</p> | |
| 472 | +<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/research/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. <a href="scion.html">What braid takes from Scion, and where it differs</a>.</p> | |
| 473 | +<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/research/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. <a href="scion.html">Qué toma braid de Scion y en qué se aparta</a>.</p> | |
| 475 | 474 | </div> |
| 476 | 475 | </section> |
| 477 | 476 |
modified site/scion.html +25 −29
| @@ -1,20 +1,20 @@ | ||
| 1 | 1 | <!doctype html> |
| 2 | 2 | <!-- SPDX-License-Identifier: Apache-2.0 |
| 3 | 3 | Copyright (c) 2026 UtopiaIA --> |
| 4 | -<html lang="en" data-title-es="Las ideas de Scion, sin servidor · Elffuss Braid"> | |
| 4 | +<html lang="en" data-title-es="Ideas de Scion en código abierto, sin servidor en una máquina"> | |
| 5 | 5 | <head> |
| 6 | 6 | <meta charset="utf-8"> |
| 7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 8 | -<title>Scion's ideas, open source, with no server · Elffuss Braid</title> | |
| 9 | -<meta name="description" content="Version control from the ideas Anthropic published about Scion, open source and with no server on one machine. Independent, not affiliated with Anthropic."> | |
| 8 | +<title>Scion's ideas, open source, serverless on one machine</title> | |
| 9 | +<meta name="description" content="Open-source version control from the ideas Anthropic published about Scion, serverless on one machine. Independent, not affiliated with or endorsed by Anthropic."> | |
| 10 | 10 | <link rel="canonical" href="https://braid.elffuss.com/scion.html"> |
| 11 | 11 | <meta name="color-scheme" content="dark light"> |
| 12 | 12 | <meta name="theme-color" content="#090a11" media="(prefers-color-scheme: dark)"> |
| 13 | 13 | <meta name="theme-color" content="#f6f4ee" media="(prefers-color-scheme: light)"> |
| 14 | 14 | <meta property="og:type" content="article"> |
| 15 | 15 | <meta property="og:site_name" content="Elffuss"> |
| 16 | -<meta property="og:title" content="Scion's ideas, open source, with no server · Elffuss Braid"> | |
| 17 | -<meta property="og:description" content="Elffuss Braid starts from the ideas Anthropic published about Scion, and needs no server on one machine: many AI coding agents land on one main. Independent, not affiliated with Anthropic."> | |
| 16 | +<meta property="og:title" content="Scion's ideas, open source, serverless on one machine"> | |
| 17 | +<meta property="og:description" content="Elffuss Braid starts from the ideas Anthropic published about Scion: many AI coding agents land on one main, with no server on one machine. Independent, not affiliated with or endorsed by Anthropic."> | |
| 18 | 18 | <meta property="og:url" content="https://braid.elffuss.com/scion.html"> |
| 19 | 19 | <meta property="og:image" content="https://braid.elffuss.com/og.png"> |
| 20 | 20 | <meta property="og:image:type" content="image/png"> |
| @@ -24,8 +24,8 @@ | ||
| 24 | 24 | <meta property="og:locale" content="en_US"> |
| 25 | 25 | <meta property="og:locale:alternate" content="es_ES"> |
| 26 | 26 | <meta name="twitter:card" content="summary_large_image"> |
| 27 | -<meta name="twitter:title" content="Scion's ideas, open source, with no server · Elffuss Braid"> | |
| 28 | -<meta name="twitter:description" content="Elffuss Braid starts from the ideas Anthropic published about Scion, and needs no server on one machine: many AI coding agents land on one main. Independent, not affiliated with Anthropic."> | |
| 27 | +<meta name="twitter:title" content="Scion's ideas, open source, serverless on one machine"> | |
| 28 | +<meta name="twitter:description" content="Elffuss Braid starts from the ideas Anthropic published about Scion: many AI coding agents land on one main, with no server on one machine. Independent, not affiliated with or endorsed by Anthropic."> | |
| 29 | 29 | <meta name="twitter:image" content="https://braid.elffuss.com/og.png"> |
| 30 | 30 | <meta name="twitter:image:alt" content="The Elffuss Braid logo and the line Many agents. One main. No retry loop., beside a terminal where three agents commit at once and land in turn, and the third, which changed the same line as the first, gets a conflict while main does not move."> |
| 31 | 31 | <link rel="icon" href="favicon.svg" type="image/svg+xml"> |
| @@ -110,8 +110,8 @@ | ||
| 110 | 110 | <div class="sec-head"> |
| 111 | 111 | <h2 id="takes-title"><span data-l="en" lang="en">What braid takes from Scion</span> <span data-l="es" lang="es">Qué toma braid de Scion</span></h2> |
| 112 | 112 | </div> |
| 113 | -<p class="lead" data-l="en" lang="en">Anthropic described Scion, its internal source control system, in <a href="https://www.anthropic.com/engineering/redesigning-source-control">Redesigning source control at Anthropic</a>, published on 13 October 2026. These are the ideas braid takes from it: what the post says, and what braid does today.</p> | |
| 114 | -<p class="lead" data-l="es" lang="es">Anthropic describió Scion, su sistema interno de control de versiones, en <a href="https://www.anthropic.com/engineering/redesigning-source-control">Redesigning source control at Anthropic</a>, publicado el 13 de octubre de 2026. Estas son las ideas que braid toma de él: lo que dice el artículo y lo que braid hace hoy.</p> | |
| 113 | +<p class="lead" data-l="en" lang="en">Anthropic described Scion, its internal source control system, in <a href="https://www.anthropic.com/research/redesigning-source-control">Redesigning source control at Anthropic</a>, published on 13 October 2026. These are the ideas braid takes from it: what the post says, and what braid does today.</p> | |
| 114 | +<p class="lead" data-l="es" lang="es">Anthropic describió Scion, su sistema interno de control de versiones, en <a href="https://www.anthropic.com/research/redesigning-source-control">Redesigning source control at Anthropic</a>, publicado el 13 de octubre de 2026. Estas son las ideas que braid toma de él: lo que dice el artículo y lo que braid hace hoy.</p> | |
| 115 | 115 | <dl class="rows"> |
| 116 | 116 | <div class="row"> |
| 117 | 117 | <dt><span data-l="en" lang="en">Changesets</span><span data-l="es" lang="es">Changesets</span><code lang="en">format v1</code></dt> |
| @@ -124,32 +124,32 @@ | ||
| 124 | 124 | </div></dd> |
| 125 | 125 | </div> |
| 126 | 126 | <div class="row"> |
| 127 | -<dt><span data-l="en" lang="en">Landing without a merge queue</span><span data-l="es" lang="es">Aterrizar sin cola de fusión</span><code lang="en">braid land</code></dt> | |
| 127 | +<dt><span data-l="en" lang="en">Landing in one short step</span><span data-l="es" lang="es">Aterrizar en un paso corto</span><code lang="en">braid land</code></dt> | |
| 128 | 128 | <dd><div data-l="en" lang="en"> |
| 129 | -<p><strong>In the post:</strong> “every commit, rebase, or merge happens on the server, so there's nothing to push”, and moving a ref “is a compare-and-swap on a single Spanner row that happens separately from creating changesets”.</p> | |
| 130 | -<p><strong>In braid:</strong> <code>braid land</code> is that one step. A change built on the current head fast-forwards; otherwise braid rebases it path by path and merges only the files both sides touched, so the step costs what the change touches. Landings on a branch take their turn, and creating a change takes no repository lock. On one machine the step runs in the local store; on BraidHub, one task per branch runs it in order.</p> | |
| 129 | +<p><strong>In the post:</strong> “A proper merge queue, for example, doesn’t make much sense at agent scale.” Instead of a global repository lock on the merge queue, Anthropic “invested in post-merge and pre-deploy automated testing”: concurrent changes can then conflict, and Claude typically fixes those conflicts. Moving a ref “is a compare-and-swap on a single Spanner row that happens separately from creating changesets”.</p> | |
| 130 | +<p><strong>In braid:</strong> creating a changeset takes no repository lock, and landing it is one short step that the landings on a branch take in turn: a fast-forward, or a rebase path by path that merges only the files both sides touched, so the step costs what the change touches. On one machine, <code>braid land</code> takes it in the local store, in one op log transaction, and moves the branch with a compare-and-swap; on BraidHub, one task per branch takes it in order. The step runs no tests: as in the post, they run after landing, and <code>braid verify</code>, below, runs them on a branch's head. A landing that conflicts moves nothing and exits with status 2; with <code class="nw">--json</code>, each conflict gives its path, its kind and what each side has there. A branch never contains a conflict: the agent runs <code>braid update</code>, fixes the conflicts, commits and lands again.</p> | |
| 131 | 131 | </div><div data-l="es" lang="es"> |
| 132 | -<p><strong>En el artículo:</strong> todo commit, rebase o fusión ocurre en el servidor, así que no hay nada que subir con push, y mover una ref es un compare-and-swap sobre una sola fila de Spanner, aparte de crear changesets.</p> | |
| 133 | -<p><strong>En braid:</strong> <code>braid land</code> es ese paso. Un cambio hecho sobre la cabeza actual entra en fast-forward; si no, braid le hace rebase ruta a ruta y solo fusiona los ficheros que han tocado los dos lados, así que el paso cuesta lo que toca el cambio. Los aterrizajes en una rama van por turnos, y crear un cambio no bloquea el repositorio. En una sola máquina, el paso se hace en el almacén local; en BraidHub, una tarea por rama lo hace en orden.</p> | |
| 132 | +<p><strong>En el artículo:</strong> una cola de fusión como es debido no tiene mucho sentido a la escala de los agentes. En vez de un cerrojo global del repositorio sobre la cola de fusión, Anthropic ha invertido en tests automáticos después de fusionar y antes de desplegar; los cambios simultáneos pueden entonces entrar en conflicto, y Claude suele arreglar esos conflictos. Mover una ref es un compare-and-swap sobre una sola fila de Spanner, aparte de crear changesets.</p> | |
| 133 | +<p><strong>En braid:</strong> crear un changeset no bloquea el repositorio, y aterrizarlo es un paso corto que los aterrizajes en una rama dan por turnos: un fast-forward, o un rebase ruta a ruta que solo fusiona los ficheros que han tocado los dos lados, así que el paso cuesta lo que toca el cambio. En una sola máquina, <code>braid land</code> lo da en el almacén local, en una sola transacción del registro de operaciones, y mueve la rama con un compare-and-swap; en BraidHub, una tarea por rama lo da en orden. El paso no ejecuta tests: como en el artículo, los tests van después de aterrizar, y <code>braid verify</code>, más abajo, los ejecuta sobre la cabeza de una rama. Un aterrizaje con conflictos no mueve nada y sale con 2; con <code class="nw">--json</code>, cada conflicto da su ruta, su tipo y lo que tiene cada lado. Una rama nunca contiene un conflicto: el agente hace <code>braid update</code>, arregla los conflictos, hace commit y vuelve a aterrizar.</p> | |
| 134 | 134 | </div></dd> |
| 135 | 135 | </div> |
| 136 | 136 | <div class="row"> |
| 137 | 137 | <dt><span data-l="en" lang="en">Objects any cache can serve</span><span data-l="es" lang="es">Objetos que sirve cualquier caché</span></dt> |
| 138 | 138 | <dd><div data-l="en" lang="en"> |
| 139 | 139 | <p><strong>In the post:</strong> “the client talks over a socket to a daemon, <span class="nw">scion-daemon</span>, that stores objects for the whole node”; cache servers come next, and the authoritative <span class="nw">scion-servers</span> read from Spanner or cloud storage.</p> |
| 140 | -<p><strong>In braid:</strong> objects are immutable and named by id, so any tier can serve them, and braid's design gives a local store, a per-machine daemon, a cache and a server the same API. Today there are the local store and a first version of the server, BraidHub; the daemon and the caches are planned (milestones 6 and 7), and so is a virtual file system.</p> | |
| 140 | +<p><strong>In braid:</strong> objects are immutable and named by id, so any tier can serve them, and braid's design gives a local store, a per-machine daemon, a cache and a server the same API. Today there are the local store and a first version of the server, BraidHub; the caches and the daemon are planned (milestones 6 and 7), and so is a virtual file system.</p> | |
| 141 | 141 | </div><div data-l="es" lang="es"> |
| 142 | 142 | <p><strong>En el artículo:</strong> el cliente habla por un socket con un daemon, <span class="nw">scion-daemon</span>, que guarda los objetos de todo el nodo; después vienen servidores de caché, y los <span class="nw">scion-servers</span>, que son la autoridad, leen de Spanner o del almacenamiento en la nube.</p> |
| 143 | -<p><strong>En braid:</strong> los objetos son inmutables y se nombran por su id, así que cualquier nivel puede servirlos, y el diseño de braid da la misma API a un almacén local, a un daemon por máquina, a una caché y a un servidor. Hoy existen el almacén local y una primera versión del servidor, BraidHub; el daemon y las cachés están previstos (fases 6 y 7), igual que un sistema de ficheros virtual.</p> | |
| 143 | +<p><strong>En braid:</strong> los objetos son inmutables y se nombran por su id, así que cualquier nivel puede servirlos, y el diseño de braid da la misma API a un almacén local, a un daemon por máquina, a una caché y a un servidor. Hoy existen el almacén local y una primera versión del servidor, BraidHub; las cachés y el daemon están previstos (fases 6 y 7), igual que un sistema de ficheros virtual.</p> | |
| 144 | 144 | </div></dd> |
| 145 | 145 | </div> |
| 146 | 146 | <div class="row"> |
| 147 | 147 | <dt><span data-l="en" lang="en">Bisect and revert</span><span data-l="es" lang="es">Bisección y reversión</span><code lang="en">braid verify</code></dt> |
| 148 | 148 | <dd><div data-l="en" lang="en"> |
| 149 | -<p><strong>In the post:</strong> among the internal tools built on Scion's API are “automated bisect and revert pipelines”.</p> | |
| 149 | +<p><strong>In the post:</strong> every source control query that Scion's client uses is also exposed through an API, and “Many internal tools, such as our automated bisect and revert pipelines, wouldn’t be practical at scale without this cheap, programmatic access to source control.”</p> | |
| 150 | 150 | <p><strong>In braid:</strong> <code>braid verify</code> runs the project's tests on the head of a branch and keeps <code>braid/green/<branch></code> at the newest changeset that passed. When they fail, it bisects the changesets since then to find the first that fails, and with <code class="nw">--revert</code> it reverts that one and lands the revert. It runs where you run it, as you: it is not a sandbox.</p> |
| 151 | 151 | </div><div data-l="es" lang="es"> |
| 152 | -<p><strong>En el artículo:</strong> entre las herramientas internas que usan la API de Scion hay procesos automáticos de bisección y reversión.</p> | |
| 152 | +<p><strong>En el artículo:</strong> todas las consultas de control de versiones que usa el cliente de Scion están también en una API, y muchas herramientas internas, como sus procesos automáticos de bisección y reversión, no serían prácticas a gran escala sin ese acceso barato y programático al control de versiones.</p> | |
| 153 | 153 | <p><strong>En braid:</strong> <code>braid verify</code> ejecuta los tests del proyecto sobre la cabeza de una rama y mantiene <code>braid/green/<rama></code> en el changeset más reciente que los pasó. Cuando fallan, busca por bisección, entre los changesets posteriores, el primero que falla y, con <code class="nw">--revert</code>, lo revierte y aterriza la reversión. Se ejecuta donde lo lances y con tus permisos: no es un sandbox.</p> |
| 154 | 154 | </div></dd> |
| 155 | 155 | </div> |
| @@ -165,18 +165,14 @@ | ||
| 165 | 165 | <p class="lead" data-l="en" lang="en">Scion is built around a server: “Clients are always online,” the post says. Braid starts from one machine.</p> |
| 166 | 166 | <p class="lead" data-l="es" lang="es">Scion gira en torno a un servidor: según el artículo, sus clientes están siempre conectados. Braid empieza por una sola máquina.</p> |
| 167 | 167 | <ol class="points" data-l="en" lang="en"> |
| 168 | -<li><strong>No server and no daemon on one machine.</strong> Many braid processes share one store: 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 change of a ref, so <code>braid undo</code> can step back. Agents on one machine commit, land and read history with no network: braid works offline on one machine.</li> | |
| 169 | -<li><strong>A server when there are several machines.</strong> When agents on several machines share a repository, it lives on <a href="./#hub">BraidHub</a>, which is then the authority: people and agents sign in with GitHub, and <code>braid land</code> lands there with the output and exit statuses of a local landing. Git runs on the hub only in bare repositories with no hooks, so <a href="https://github.com/KikoCis/elffuss-braid/blob/main/docs/hub.md#11-mirrors">nothing of a repository runs on the hub</a>. BraidHub is a first version: for anything that matters, keep a GitHub mirror as the source of truth.</li> | |
| 170 | -<li><strong>Git at the edges.</strong> <code>braid git import</code> brings in a git repository's whole history bit for bit: each commit is exported again as it is imported, and the import stops unless its id comes back the same. <code>braid git sync</code> keeps GitHub, Gitea or any git remote in step, and the remote only ever fast-forwards. In a clone where braid is not set up, agents work with git as before.</li> | |
| 171 | -<li><strong>Conflicts come back as data.</strong> A landing that conflicts moves nothing and exits with status 2. With <code class="nw">--json</code>, the outcome is <code>conflicts</code>: each conflict gives its path, its kind and what each side has there, and <code>next</code> says what to run. A branch never contains a conflict: the agent runs <code>braid update</code>, fixes the markers, commits and lands again.</li> | |
| 172 | -<li><strong>Built for coding agents.</strong> Every command has a JSON form, <code>braid change create</code> makes and lands a changeset without a working copy, <code>BRAID_AGENT</code> is recorded with everything an agent does, and <code>braid agents init</code> writes the rules every session follows into the project's <code>AGENTS.md</code>.</li> | |
| 168 | +<li><strong>No server on one machine.</strong> In Scion, “every commit, rebase, or merge happens on the server, so there’s nothing to push”. In braid, the agents of one machine share one local store, each in a workspace of its own, and land on one main in turn. Many braid processes share that store: 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 change of a ref, so <code>braid undo</code> can step back. Agents on one machine commit, land and read history with no network. When agents on several machines share a repository, it lives on <a href="./#hub">BraidHub</a>, which is then the authority, as Scion's servers are, and <code>braid land</code> lands there with the output and exit statuses of a local landing. BraidHub is a first version: for anything that matters, keep a GitHub mirror as the source of truth.</li> | |
| 169 | +<li><strong>Open source.</strong> Scion is “an in-house version control system”, and the post says “it’s difficult to offer Scion in a form that would be broadly useful to other organizations.” Braid is open source, under the <a href="https://github.com/KikoCis/elffuss-braid/blob/main/LICENSE"><span class="nw">Apache-2.0</span></a> license: anyone can read it, build it, run it and change it.</li> | |
| 170 | +<li><strong>Git at the edges.</strong> Anthropic moved its monorepo from git to Scion, and of Scion the post says: “It diverges significantly from git, meaning companies would need to migrate every piece of the development lifecycle”. Braid keeps git: <code>braid git import</code> brings in a git repository's whole history bit for bit: each commit is exported again as it is imported, and the import stops unless its id comes back the same. <code>braid git sync</code> keeps GitHub, Gitea or any git remote in step, and the remote only ever fast-forwards. In a clone where braid is not set up, agents work with git as before.</li> | |
| 173 | 171 | </ol> |
| 174 | 172 | <ol class="points" data-l="es" lang="es"> |
| 175 | -<li><strong>Sin servidor ni daemon en una sola máquina.</strong> Muchos procesos de braid comparten un almacén: 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. Los agentes de una máquina hacen commit, aterrizan y leen la historia sin red: braid funciona sin conexión en una sola máquina.</li> | |
| 176 | -<li><strong>Un servidor cuando hay varias máquinas.</strong> Cuando agentes de varias máquinas comparten un repositorio, este vive en <a href="./#hub">BraidHub</a>, que pasa a ser la autoridad: personas y agentes entran con GitHub, y <code>braid land</code> aterriza allí con la misma salida y los mismos códigos de salida que un aterrizaje local. En el hub, git solo se ejecuta en repositorios bare y sin hooks, así que <a href="https://github.com/KikoCis/elffuss-braid/blob/main/docs/hub.md#11-mirrors">nada de un repositorio se ejecuta en el hub</a>. BraidHub es una primera versión: para todo lo que importe, ten un espejo en GitHub como fuente de verdad.</li> | |
| 177 | -<li><strong>Git en los bordes.</strong> <code>braid git import</code> trae toda la historia de un repositorio de git bit a bit: cada commit se vuelve a exportar al importarlo, y la importación se detiene si su id no sale idéntico. <code>braid git sync</code> mantiene al día GitHub, Gitea o cualquier remoto de git, y el remoto solo avanza en fast-forward. En un clon donde braid no está configurado, los agentes trabajan con git, como siempre.</li> | |
| 178 | -<li><strong>Los conflictos vuelven como datos.</strong> Un aterrizaje con conflictos no mueve nada y sale con 2. Con <code class="nw">--json</code>, el <code>outcome</code> es <code>conflicts</code>: cada conflicto da su ruta, su tipo y lo que tiene cada lado, y <code>next</code> dice qué ejecutar después. Una rama nunca contiene un conflicto: el agente hace <code>braid update</code>, arregla los marcadores, hace commit y vuelve a aterrizar.</li> | |
| 179 | -<li><strong>Hecho para agentes de programación.</strong> Todos los comandos tienen salida JSON, <code>braid change create</code> crea y aterriza un changeset sin copia de trabajo, <code>BRAID_AGENT</code> queda registrado con todo lo que hace un agente, y <code>braid agents init</code> escribe en el <code>AGENTS.md</code> del proyecto las reglas que sigue cada sesión.</li> | |
| 173 | +<li><strong>Sin servidor en una sola máquina.</strong> En Scion, todo commit, rebase o fusión ocurre en el servidor, así que no hay nada que subir con push. En braid, los agentes de una máquina comparten un único almacén local, cada uno en su propio espacio de trabajo, y aterrizan por turnos en un solo main. Muchos procesos de braid comparten ese almacén: 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. Los agentes de una máquina hacen commit, aterrizan y leen la historia sin red. Cuando agentes de varias máquinas comparten un repositorio, este vive en <a href="./#hub">BraidHub</a>, que pasa a ser la autoridad, como los servidores de Scion, y <code>braid land</code> aterriza allí con la misma salida y los mismos códigos de salida que un aterrizaje local. BraidHub es una primera versión: para todo lo que importe, ten un espejo en GitHub como fuente de verdad.</li> | |
| 174 | +<li><strong>Código abierto.</strong> Scion es un sistema de control de versiones interno, y el artículo dice que es difícil ofrecerlo de una forma que les sea útil a otras organizaciones en general. Braid es de código abierto, con licencia <a href="https://github.com/KikoCis/elffuss-braid/blob/main/LICENSE"><span class="nw">Apache-2.0</span></a>: cualquiera puede leerlo, compilarlo, ejecutarlo y cambiarlo.</li> | |
| 175 | +<li><strong>Git en los bordes.</strong> Anthropic pasó su monorepo de git a Scion, y el artículo dice que Scion se aparta tanto de git que una empresa tendría que migrar cada pieza de su ciclo de desarrollo. Braid se queda con git: <code>braid git import</code> trae toda la historia de un repositorio de git bit a bit: cada commit se vuelve a exportar al importarlo, y la importación se detiene si su id no sale idéntico. <code>braid git sync</code> mantiene al día GitHub, Gitea o cualquier remoto de git, y el remoto solo avanza en fast-forward. En un clon donde braid no está configurado, los agentes trabajan con git, como siempre.</li> | |
| 180 | 176 | </ol> |
| 181 | 177 | <p class="next-link"><a href="./#story"><span data-l="en" lang="en">Watch three agents land on one main</span><span data-l="es" lang="es">Mira cómo aterrizan tres agentes en un solo main</span></a></p> |
| 182 | 178 | </div> |
| @@ -187,7 +183,7 @@ | ||
| 187 | 183 | <div class="sec-head"> |
| 188 | 184 | <h2 id="prior-art-title"><span data-l="en" lang="en">Prior art: Mononoke, Sapling and Jujutsu</span> <span data-l="es" lang="es">Lo que vino antes: Mononoke, Sapling y Jujutsu</span></h2> |
| 189 | 185 | </div> |
| 190 | -<p class="lead" data-l="en" lang="en">The post names its own prior art: “Source control for huge monorepos has prior art, notably Google's Piper and Meta's Sapling”. Of Sapling's server, Mononoke, it says: “It pioneered many of the techniques we use in Scion, in particular the Bonsai data model.” Braid owes the same work, and more:</p> | |
| 186 | +<p class="lead" data-l="en" lang="en">The post names its own prior art: “Source control for huge monorepos has prior art, notably Google’s Piper and Meta’s Sapling”. Of Sapling's server, Mononoke, it says: “It pioneered many of the techniques we use in Scion, in particular the Bonsai data model.” Braid owes the same work, and more:</p> | |
| 191 | 187 | <p class="lead" data-l="es" lang="es">El artículo cita sus propios precedentes: Piper, de Google, y Sapling, de Meta. Del servidor de Sapling, Mononoke, dice que fue pionero en muchas de las técnicas que usa Scion, en particular el modelo de datos Bonsai. Braid les debe lo mismo, y algo más:</p> |
| 192 | 188 | <ul class="honest prior" data-l="en" lang="en"> |
| 193 | 189 | <li><a href="https://github.com/facebook/sapling/tree/main/eden/mononoke">Mononoke</a>, Sapling's server. A <a href="https://github.com/facebook/sapling/blob/main/eden/mononoke/docs/2.1-bonsai-data-model.md">Bonsai changeset</a> holds a flat list of the files a commit changed rather than a tree, and <a href="https://github.com/facebook/sapling/blob/main/eden/mononoke/docs/4.1-pushrebase.md">pushrebase</a> rebases a push on the server when the branch has moved and the push touches other files, so that clients do not fetch, rebase and push again. Braid's changesets and its landing follow the same two ideas; its landing also merges a file both sides changed, and needs no server on one machine.</li> |