| 1 | # braid.elffuss.com |
| 2 | |
| 3 | The site of Elffuss Braid: two static pages, in English and Spanish, with no |
| 4 | build step and no requests to anything but their own files. |
| 5 | |
| 6 | | File | What it is | |
| 7 | |---|---| |
| 8 | | `index.html` | The home page. The logo, the diagram and the git loop are inline SVG. | |
| 9 | | `scion.html` | What braid takes from the ideas Anthropic published about Scion, where it differs, the prior art it credits and other open implementations. It has the header, the footer, the CSS and the JavaScript of `index.html`; its links into the home page are `./#…`. | |
| 10 | | `site.css` | Dark by default, as on elffuss.com; light under `prefers-color-scheme: light`. Terminals stay dark in both. | |
| 11 | | `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. | |
| 12 | | `og.png`, `og/og.svg` | The Open Graph image, 1200 × 630, and its source. | |
| 13 | | `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. | |
| 14 | | `agents.md` | The guide for coding agents: installing braid and setting it up in a project. It is part 1 of the repository's `AGENTS.md`, with a title and an introduction of its own, and the prompt under "Ask your agent" points at it. | |
| 15 | | `llms.txt` | What braid is, in the [llms.txt](https://llmstxt.org) format, with links to `agents.md`, the README and the docs. | |
| 16 | | `robots.txt` | Lets every crawler in and names the sitemap. | |
| 17 | | `sitemap.xml` | Every page, `llms.txt` and `agents.md`. A new page goes in it in the same change. | |
| 18 | |
| 19 | The HTML, the CSS, the JavaScript and the SVGs open with |
| 20 | `SPDX-License-Identifier: Apache-2.0` and `Copyright (c) 2026 UtopiaIA` in a |
| 21 | comment, as every source file of the repository does. `agents.md` and |
| 22 | `llms.txt` are documents that agents read whole, like the repository's |
| 23 | Markdown, and carry no such comment: an llms.txt starts with its title. |
| 24 | |
| 25 | To look at it locally: |
| 26 | |
| 27 | ```bash |
| 28 | python3 -m http.server --directory site 8000 |
| 29 | ``` |
| 30 | |
| 31 | ## Two languages in each page |
| 32 | |
| 33 | Every translated block is in the page twice, once with `data-l="en" |
| 34 | lang="en"` and once with `data-l="es" lang="es"`. `site.css` hides the one |
| 35 | that does not match `html[lang]`. `site.js` sets `html[lang]` before the body |
| 36 | is drawn, from the first of: `?lang=en` or `?lang=es`, the choice stored when |
| 37 | someone pressed EN or ES, a browser language that starts with `es`, English. |
| 38 | Elements with `data-aria-en` and `data-aria-es` get the matching |
| 39 | `aria-label`; the page title and the "Copied" message follow too. The |
| 40 | English title is the page's `<title>` and the Spanish one is `data-title-es` |
| 41 | on `<html>`: a title is changed there, and nowhere else. |
| 42 | |
| 43 | Transcripts, commands and JSON are not translated, and carry `lang="en"`. |
| 44 | In the ratio table, what each row compares is written in both languages; |
| 45 | its commands and its ratio are not translated. |
| 46 | |
| 47 | Every code block keeps its lines and scrolls in its own box, and so does |
| 48 | the story's `braid blame`, whose columns must line up (`term-cols`). The |
| 49 | one exception is the prompt under "Ask your agent" (`.code.prompt`), a |
| 50 | sentence rather than a command, which wraps; it is in the page once per |
| 51 | language, since the Spanish page asks in Spanish. At 480 |
| 52 | pixels and below, blame leaves its ids out (`span.bl-id`) and its bar note |
| 53 | says so (`span.bn-ids`); below 360 its type is a little smaller, so every |
| 54 | line fits a phone whole. The story's `braid op log` (`term-oplog`) never |
| 55 | scrolls: an entry that does not fit wraps under itself, four columns in, so |
| 56 | what each landing did stays in view. Each of its lines is a `span.ol`, an |
| 57 | inline block with its newline inside, so the text reads and copies as braid |
| 58 | prints it. The other story transcripts wrap as plain text. |
| 59 | |
| 60 | In the HTML, the `<pre>` of every block that may scroll, and the wrapper of |
| 61 | each table, is a labelled region that takes keyboard focus. `site.js` keeps |
| 62 | that only where the box does scroll at the current width, and takes the |
| 63 | `tabindex`, the role and the label away elsewhere, so a keyboard does not |
| 64 | stop on text that does not move. A copy button, where there is one, names |
| 65 | what it copies. Both labels are given in the two languages with |
| 66 | `data-aria-en` and `data-aria-es`. |
| 67 | |
| 68 | A flag with its argument, or any name with a hyphen (`Apache-2.0`, |
| 69 | `SHA-256`, `cargo-fuzz`, `(fast-forward)` in a transcript), sits in |
| 70 | `<span class="nw">` (or the whole `<code class="nw">`), so a narrow screen |
| 71 | never breaks a line inside it. A separator goes inside the span of the word |
| 72 | after it, so it never ends a line. |
| 73 | |
| 74 | New text goes in both languages. The Spanish is written, not translated word |
| 75 | for word: land is *aterrizar*, workspace *espacio de trabajo*, store |
| 76 | *almacén*, op log *registro de operaciones*; changeset, fast-forward and lease |
| 77 | stay in English. |
| 78 | |
| 79 | ## Slots that will be filled later |
| 80 | |
| 81 | - `<!-- autosync:start -->` … `<!-- autosync:end -->` holds a placeholder for |
| 82 | automatic git sync. Each marker appears once. Until the feature ships, its |
| 83 | heading and its text say it is coming, never that it works. Whoever fills |
| 84 | it keeps the id `autosync` and both languages, and says nothing about it |
| 85 | anywhere else on the page, in the meta tags or in the OG image. The one |
| 86 | link to it from outside is "Automatic sync with git" at the end of `#git`, |
| 87 | which stays true before and after; keep the id. |
| 88 | - `<!-- ratios:start -->` … `<!-- ratios:end -->` holds everything that comes |
| 89 | from one run of `bench/run.py`: the commit measured, the table, the retry |
| 90 | counts and what they showed, in the past tense. To refresh it, put the rows |
| 91 | of the new table in the `<tbody>`, one `<tr>` per row. The first cell says |
| 92 | what was compared, once in `<span data-l="en" lang="en">` and once in |
| 93 | `<span data-l="es" lang="es">`; commands stay in `<code>`, and the Spanish |
| 94 | writes thousands with a no-break space (`10 287`) and four digits |
| 95 | together (`1000`). The second cell holds the ratio alone, as the script |
| 96 | prints it: `site.js` draws a marker per row from it, on a log scale with a |
| 97 | line at 1. Then rewrite the sentences in both languages, including the |
| 98 | list of work that came after the commit measured. Keep the `table-wrap` |
| 99 | around the table, with its attributes. Nothing outside the block depends |
| 100 | on the run: the line about speed under "What is honest about this" only |
| 101 | sends the reader to the table. |
| 102 | |
| 103 | ## What the pages may say |
| 104 | |
| 105 | - Only what is true of the code today. |
| 106 | - Ratios against git appear only between the ratios markers; another page |
| 107 | sends the reader to `./#measured`. No absolute times, sizes or |
| 108 | throughput, no description of any machine, no user names and no disk |
| 109 | paths. |
| 110 | - Wherever Scion is named, the page also says that braid is an independent |
| 111 | implementation, contains no Anthropic code and is not affiliated with or |
| 112 | endorsed by Anthropic. |
| 113 | - `scion.html` quotes Anthropic's post word for word, or says plainly what |
| 114 | the post says, and what it says of another project comes from that |
| 115 | project's own README or docs. It compares and does not judge: what both |
| 116 | projects do is said of both. |
| 117 | - The story is braid's own test, `crates/cli/tests/three_agents.rs`, run as |
| 118 | the "Run it yourself" script does. If the transcripts are made again, leave |
| 119 | out the op log's times and blame's dates, never paste what `workspace add` |
| 120 | prints (it names the directory), and change the hero card and the story |
| 121 | together. |
| 122 | - The prompt under "Ask your agent" is the same, word for word, in the |
| 123 | English page, in the README, in `llms.txt` and under "Try it" in |
| 124 | `scion.html`, and so is its Spanish in the Spanish pages and in the |
| 125 | README's Spanish part. `agents.md` is part 1 of `AGENTS.md`, and its |
| 126 | install command names the tag of the version in `Cargo.toml`. |
| 127 | `crates/cli/tests/guides.rs` checks all of this, and that every braid |
| 128 | command `agents.md` gives exists with its flags; every command it gives |
| 129 | runs as written. |
| 130 | - The structured data in the head of `index.html` (JSON-LD) names the |
| 131 | version in `Cargo.toml`, so a release bumps it too, and every page is in |
| 132 | `sitemap.xml`. `crates/cli/tests/guides.rs` checks both, and that every |
| 133 | text that names Scion says braid is independent. |
| 134 | - The quick start and the agent's commands under "Many agents on one |
| 135 | repository" run as one session, top to bottom. `braid undo` comes after the |
| 136 | agent lands, so it takes that landing back; before it, it would take the |
| 137 | import back and leave the agent an empty repository. |
| 138 | - Every link into the repository points at `main` on GitHub. |
| 139 | |
| 140 | ## Before it is served |
| 141 | |
| 142 | The page describes what `main` holds on GitHub, so it goes out only once |
| 143 | all of this is true: |
| 144 | |
| 145 | 1. `main` on GitHub holds this tree, `site/` included, pushed after |
| 146 | `scripts/privacy-check.sh` passes. The quick start clones and builds it, |
| 147 | and CI has run on it: the story says CI runs the scene on every push to |
| 148 | `main`. |
| 149 | 2. The tag that `agents.md` installs (`--tag v` and the version in |
| 150 | `Cargo.toml`) is on GitHub, at a commit of `main` that holds this tree. |
| 151 | Push the commits and the tag first and serve the page after, never the |
| 152 | other way round: `agents.md` is served apart from the code, and an |
| 153 | agent that follows it before the tag is there gets an error from cargo |
| 154 | instead of braid. |
| 155 | 3. Every link into the repository answers from `main`. Check them against |
| 156 | what `main` holds, not against github.com, which answers 200 for any path |
| 157 | of an empty repository: a file answers 200 at |
| 158 | `https://raw.githubusercontent.com/utopia-ia/elffuss-braid/main/<path>`, |
| 159 | and a directory (`crates/sim`, `fuzz/fuzz_targets`, `bench`) is listed by |
| 160 | `gh api 'repos/utopia-ia/elffuss-braid/contents/<path>?ref=main'`. |
| 161 | 4. The text matches `main`. The ratios block, for one, lists the work on |
| 162 | speed that came after the commit measured, and that list grows. |
| 163 | 5. `https://braid.elffuss.com/` answers 200 with a certificate for that |
| 164 | name, `http://braid.elffuss.com/` redirects to it, and |
| 165 | `https://braid.elffuss.com/og.png` answers 200 as `image/png`. Only then |
| 166 | does the link go anywhere: the repository's homepage |
| 167 | (`gh repo edit utopia-ia/elffuss-braid --homepage https://braid.elffuss.com`), |
| 168 | and posts, whose link previews are fetched once and kept. |
| 169 | 6. `https://braid.elffuss.com/agents.md` answers 200 as |
| 170 | `text/markdown; charset=utf-8` and `https://braid.elffuss.com/llms.txt` |
| 171 | as `text/plain; charset=utf-8`, so that an agent reads them as text: |
| 172 | `curl -sI` shows the type. A server that does not know `.md` may send |
| 173 | `application/octet-stream` instead. `https://braid.elffuss.com/robots.txt` |
| 174 | answers 200 as `text/plain`, `https://braid.elffuss.com/sitemap.xml` as |
| 175 | `text/xml` or `application/xml`, and every page in the sitemap answers |
| 176 | 200. A new page is then submitted again with the sitemap, in Google |
| 177 | Search Console and Bing Webmaster Tools. |
| 178 | |
| 179 | ## Images |
| 180 | |
| 181 | `og.png` is `og/og.svg` rendered at 1200 × 630 in a headless browser. The |
| 182 | icons are `favicon.svg` rendered at 32 and 180 pixels; the 180-pixel one is |
| 183 | drawn on a square without rounded corners, since iOS rounds it. |
| 184 | `favicon.ico` holds `favicon-32.png`, byte for byte, as its one image: an |
| 185 | ICO file may hold a PNG. Before a PNG is committed, strip every chunk but |
| 186 | the image data and look through it with `strings` for anything that names a |
| 187 | person or a machine. Check a PNG by its chunks (only `IHDR`, `IDAT` and |
| 188 | `IEND`), not with a text search: compressed image data can match any short |
| 189 | pattern. A text search of the page skips binary files and also catches |
| 190 | units written after ` `: |
| 191 | |
| 192 | ```bash |
| 193 | grep -rnIE --exclude=README.md "/(Users|home)/|[0-9]+( |\s)?(ms|MB|GB|MiB|GiB)\b" site/ |
| 194 | ``` |
| 195 | |
| 196 | The only hits it should find are the secrets guard's `1 MiB`, in |
| 197 | English and in Spanish, and its `1 MiB` in `agents.md`: a threshold of |
| 198 | braid's, not a measurement. |
| 199 | |
| 200 | Every strand on the page is the logo's own curve, from |
| 201 | `docs/assets/braid.svg`: three strands of `y = 48 + 27 cos(2π (x − c) / 92)`, |
| 202 | a third of a period apart, and at each crossing the strand on top is cut out |
| 203 | of the one beneath. The SVGs are plain markup and can be edited by hand; an |
| 204 | inlined copy of the logo needs its own mask ids. |