Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/docs/API.md # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / docs / API.md` 2350 lines ยท 106434 bytes Raw Blame History Rendered 1 # forged JSON API (machine form of the pages) 2 3 Owner: ForgeServer. Source: `server/json.om` (explore, repo home), `server/counts.om` (counts), 4 `server/jsonp.om` (shared pieces, errors, search, the owner's profile) and each slice's own JSON unit 5 (browse `browse/e1_json.om` `browse/e2_json.om`, downloads `dl/dljson.om`, patches and issues in 6 `collab/`, social in `social/`). Tests: `server/tests/counts.sh` (isolated build with fixture logs), 7 `server/tests/jsonpages.sh` (walks every page under both bases as JSON and checks it against the 8 tables below and its HTML page), `infra/smoke.sh` (live, both bases). 9 10 Every page that has a machine form answers it at the same URL. Agents read these documents instead 11 of scraping HTML; humans see the same data on the HTML page, which stays the default. 12 13 ## How to ask for JSON 14 15 Every page answers JSON at its own URL when the request carries `Accept: application/json`. Explore 16 and the repository home also have a `.json` name: 17 18 | Page | HTML | JSON | 19 |---|---|---| 20 | Explore | `explore`, `` | `explore.json`, or `explore` / `` with `Accept: application/json` | 21 | Repository home | `/` | `/.json`, or `/` with `Accept: application/json` | 22 | Every other page | its URL | the same URL with `Accept: application/json`; the schemas below name the URLs | 23 24 - `` is `/` on `https://interplane.io/` and `/forge/` on `https://www.aienos.com/forge/`. 25 On interplane.io the root `/` is the static site, so the explore JSON there is `/explore.json` 26 (or `/explore` with the Accept header). 27 - The Accept header selects JSON when it names `application/json` and does not name `text/html` 28 (browsers name `text/html`, so they keep getting HTML). No Accept header means HTML. 29 - Response: `200`, `Content-Type: application/json; charset=utf-8`, `Cache-Control: no-store`, the 30 same security headers as every forged response. `GET` and `HEAD` only; any other method is `405`. 31 A page that redirects (`301`, `302`, `303`) redirects a JSON request the same way; an error answers 32 the same status as the HTML page with a `forge/error/1` document. 33 - A repository that is not in the public table (or is on the deny list) is `404` with or without 34 `.json`, on every page under it, exactly like its HTML page. A `.json` name with more path after it 35 is `404`. 36 - Raw files are not pages and have no JSON form: `/raw/...`, `/commit/.patch` and `.diff`, 37 `/patches/.diff`, archives and release asset downloads answer their bytes whatever the Accept 38 header says. 39 - Each HTML page names its JSON form in ``: 40 `` on explore, 41 `` on the repo home, 42 and on every other page with a JSON form its own URL (query included), which answers JSON with the 43 Accept header. Error pages name none. 44 45 ## Reading in another language (plain text, translation hints) 46 47 The forge translates nothing and keeps no translated copy. A reader translates a page with their own 48 browser or tool; the English page is the reference. Two things make that safe (source: 49 `server/tr.om`, gate: `server/tests/translate.sh`): 50 51 - Every HTML page is sent with translation hints: ``; `translate="no"` on every `pre`, 52 `code`, `kbd` and `samp` element and on every element whose class names `mono`, `files`, `file`, 53 `dir`, `crumbs`, `brand` or `rname` (commands, ids, file lists and paths, the Interplane name, 54 project names in lists); and a word that is 55 a hex hash (7 or more of `0-9a-f`, with a digit) or a Radicle id 56 (`z...`, 29 or more base58 letters) is wrapped in ``. A browser's own page 57 translation and translation extensions leave those parts byte for byte as they are. The hints add 58 only those attributes and spans: nothing else in a page changes. 59 - Every HTML page also answers as plain text at its own address with the query `format=text` 60 (`/?format=text`; the footer links it as "This page as plain text"): the page's 61 own status, `Content-Type: text/plain; charset=utf-8`, the same security headers. The text is the 62 page's content without the site header and footer, after one preface line and a `Page:` line. 63 Inline code, commands, the breadcrumb path and the hashes and ids above are in backticks, `pre` 64 blocks and file lists in ``` fences, 65 headings start with `#`, list items with `-`, and a link's target follows its text in `<...>`. An 66 agent or a person with their own model translates this text themselves; the parts in backticks, 67 fences and `<...>` must be copied exactly. Other query fields stay (`search?q=omega&format=text`), and 68 the footer link of a page with a query carries it. 69 - Every response (pages, JSON, text, files, errors, redirects) carries a Content-Security-Policy with 70 `script-src 'none'`; there is no script on any page and no endpoint that translates. 71 72 ## Conventions 73 74 - Keys are stable. A new version of a document gets a new schema name (`forge/repo/2`); keys are 75 only added within a version, never renamed or removed. 76 - Ids: a repository is its id as a bare `""` (`z` then base58); in the store-reading build 77 (`FORGE_STORE`, docs/CONTRACT.md section 1) it is `"git:"`, the 64 lowercase hex digits of the 78 project's id in the Interplane store (the SHA-256 of its record 1). A commit is its full 40-hex sha. 79 - Times: ISO-8601 UTC strings, `"2026-11-07T11:01:21Z"`. 80 - `null` means not known or not measured. A count of zero is `0`, never `null`. 81 - Paths (`path`, `json`, archive and readme links) start with ``, so they are correct for the 82 domain the request came in on. 83 - Strings are valid UTF-8 JSON. Bytes that are not well-formed UTF-8 in the source (a commit subject, 84 a file name) become U+FFFD. `<`, `>`, `&` and control bytes are written as `\u00XX`. 85 86 ## `forge/explore/1` 87 88 | Key | Type | Meaning | 89 |---|---|---| 90 | `schema` | string | `"forge/explore/1"` | 91 | `base` | string | the base of the request, `"/"` or `"/forge/"` | 92 | `count` | integer | number of public repositories (the length of `repos`) | 93 | `repos` | array of repo summaries | in the order of the HTML list (the RIDS.md public table; in the store-reading build every public line of the store's `catalog.tsv` less the deny list, in catalog order) | 94 95 A repo summary (also the first keys of `forge/repo/1`): 96 97 | Key | Type | Meaning | 98 |---|---|---| 99 | `owner` | string | `"drakestapleton"` (the node delegate; the only owner) | 100 | `name` | string | repository name as in RIDS.md (the catalog in the store-reading build) | 101 | `rid` | string | `""` (bare); `"git:"` in the store-reading build (Conventions) | 102 | `path` | string | HTML page, `/` | 103 | `json` | string | its `forge/repo/1` document, `/.json` | 104 | `description` | string or null | from the project's identity document (kept in `repo.git` when the project was imported) | 105 | `default_branch` | string | from RIDS.md (the catalog in the store-reading build) | 106 | `stars` | integer | star count from the forge's social log | 107 | `last_commit` | object or null | last commit of the default branch: `sha` (40 hex), `time` (committer time, UTC), `subject` (first line, at most about 980 bytes; the HTML list shows the first 200 bytes of date, short sha and subject) | 108 109 Example (shortened; sha, time and subject are the real last commit of cuda-crack on 2026-11-09): 110 111 ```json 112 {"schema":"forge/explore/1","base":"/forge/","count":29,"repos":[ 113 {"owner":"drakestapleton","name":"cuda-crack","rid":"z631r2JJiVT8it4tST7RK24hpowi","path":"/forge/drakestapleton/cuda-crack","json":"/forge/drakestapleton/cuda-crack.json","description":"...","default_branch":"main","stars":0,"last_commit":{"sha":"`7e3c9a731d8607ceb60b5a257c8c3652becd544f`","time":"2026-11-07T11:01:21Z","subject":"replicate.sh --agent --yes: ..."}} 114 ]} 115 ``` 116 117 ## `forge/repo/1` 118 119 All keys of the repo summary above, then: 120 121 | Key | Type | Meaning | 122 |---|---|---| 123 | `schema` | string | `"forge/repo/1"` (first key) | 124 | `favorites` | integer | favorite count from the social log | 125 | `clone` | object | `rad` (`""`, bare), `rad_clone` (`null`), `git_https` (`null`: no public Git URL yet). Store-reading build: `rad` and `rad_clone` null, `git_https` `"projects//repo.git"` when built with `FORGE_CLONE_BASE`, else null | 126 | `archives` | object | `zip`, `tar_gz`: source archive links of the default branch | 127 | `files` | array or null | top-level entries of the default branch (`git ls-tree -l`), each `name` (string), `type` (`"blob"`, `"tree"` or `"commit"`), `sha` (40 hex object id), `size` (integer bytes, null for trees and submodules); null when the branch cannot be read | 128 | `files_truncated` | boolean | true when the tree has more than 1000 entries (only the first 1000 are listed), or its listing is longer than the 16 MiB forged reads (the entries in it are listed, the rest are not) | 129 | `readme` | object or null | the README the home page renders (`readme.md` first, then any name starting with `readme`, ignoring case): `name`, `html` (blob page), `raw` (raw file) | 130 | `counts` | object | real clone, download and seeding numbers, below | 131 132 The store-reading HTML home panel differs from the JSON `archives` object's branch links: 133 it offers `/drakestapleton//archive/commits/<40-lower-case-hex>.zip` and `.tar.gz`, 134 pinned to the commit displayed. These are public Git edge routes (`infra/bazinga/omega-read`), 135 not forged `dlroute` routes. A commit object reachable from the public mirror's root heads or 136 tags is required; short, upper-case, unknown and unreachable IDs are refused. An accepted 137 archive has prefix `-/`, quoted-SHA ETag and `Cache-Control: no-cache`. 138 The JSON archive links and legacy `/archive/` redirects are unchanged. 139 140 ### `counts` 141 142 Every number comes from a log or table that exists on the node, and says which. Nothing is seeded, 143 estimated or carried over from elsewhere. Each log-based count carries `since`: the time of the first 144 line of the oldest log forged has read for it. `count` is null (and `since` null) when that log has 145 never been readable. 146 147 | Key | Source | What one count is | Left out | 148 |---|---|---|---| 149 | `git_fetches` | front-door nginx download log | a git smart-HTTP `GET .../info/refs?service=git-upload-pack` answered 200, for `/code/git/.git` or the retired clone path: one per `git clone` or `git fetch` | our own addresses (loopback, LAN, tailnet 100.64/10, IPv6 local, the address `www.aienos.com` resolves to, which is the home connection) and user agents naming bot, crawl or spider | 150 | `upload_pack_requests` | retired | not measured: `count` and `since` are always `null` | `null` | 151 | `downloads` | forged's access log | a `GET` or `HEAD` of `///archive/...` (`archives`) or `/releases/download/...` (`release_assets`) answered 200; `count` = `archives` + `release_assets` | our own addresses as above (requests that did not come through the public edge are logged as loopback) | 152 | `seeds` | retired | not measured: `count` and `as_of` are always `null` | (no `excludes` key) | 153 154 `seeds` replaced the earlier `radicle_seeds` key on 2026-11-14, when its source was retired. 155 156 Each object also has `source`, `counts` and `excludes` strings with the same words, so a reader 157 never needs this page to know what a number means. 158 159 How the counts stay current without a timer: when a repo home (HTML or JSON) is requested, forged 160 stats each log and reads only what was added since its saved position (after a daily rotation, first 161 the rest of `.1`, then the new log). Counted events are appended to `~/forge-data/counts.log` 162 (one write per batch, with the log position), which forged replays at start and on reload. Before 163 appending again it discards any bytes after the last committed cursor, including a partial event 164 line, so a later batch cannot resurrect abandoned events. A journal shorter than its committed end 165 is refused rather than extended. The routing table is read again only when the node database 166 changed. Nothing runs when nobody looks. 167 168 Known limits: a request answered while forged was down for more than one rotation (two days) is 169 counted from the logs that still exist uncompressed; older compressed logs are not read. A `HEAD` of 170 an archive counts like a `GET`. Unique visitors are not counted (no address is ever stored). 171 172 Example: the counts of `cuda-crack` from a trial build that read the real logs on 2026-11-09 173 (`server/tests/trial-real.sh`; an independent awk recount of the same logs gave the same numbers for 174 all 29 public repositories; the long strings are shortened here): 175 176 ```json 177 "counts":{ 178 "git_fetches":{"count":2,"since":"2026-11-08T11:48:05Z","source":"front-door nginx download log","counts":"...","excludes":"..."}, 179 "upload_pack_requests":{"count":null,"since":null,"source":"retired","counts":"not measured: the source of this count is retired","excludes":null}, 180 "downloads":{"count":0,"archives":0,"release_assets":0,"since":"2026-11-07T11:02:18Z","source":"forged access log","counts":"...","excludes":"..."}, 181 "seeds":{"count":null,"as_of":null,"source":"retired","counts":"not measured: the source of this count is retired"} 182 } 183 ``` 184 185 The HTML repo home shows the same numbers under the star / watch / favorite bar, each with its source 186 and since date. 187 188 ## `forge/error/1` 189 190 Any page asked for JSON that answers an error (4xx or 5xx) without a body of its own: a repository 191 that is not public or is refused (`404`), an unknown ref, path or id (`404`), a method other than GET 192 or HEAD (`405`), a page not built yet (`501`). The status line carries the same code; the HTML page 193 of the same URL answers the same code. 194 195 | Key | Type | Meaning | 196 |---|---|---| 197 | `schema` | string | `"forge/error/1"` | 198 | `status` | integer | the HTTP status, equal to the response's | 199 | `error` | string | the error page's title (`"Not found"`) | 200 | `message` | string | the error page's explanation | 201 202 Only the 503 "moving" answer of the store-reading build (section below) has one more key, `reason` 203 (a string, `"moving"`); it is not in the table because every other error document lacks it. 204 205 Example (`GET /forge/drakestapleton//tree/main`, a refused repository): 206 207 ```json 208 {"schema":"forge/error/1","status":404,"error":"Not found","message":"Not found. This page does not exist, or the repository is not public on this forge."} 209 ``` 210 211 A response that would not fit the server's body (8 MiB, for the JSON or the HTML form of a page) is 212 never sent cut: the answer is `500` with this document and a message that says the page is too 213 large. A document that is JSON by its name (`.json`, `.receipt`) gets it without an `Accept` header. 214 The data is whole in the repository and can be read with git. Gates: 215 `server/tests/overflow.sh`, `collab/tests/bigstore.sh`. 216 217 ### Parts moving to the new Interplane store (store-reading build) 218 219 The store-reading build (`FORGE_STORE`) does not compose the Salvage Yard, Community Machines, Open 220 builds and the trending list (`run.sh` composes `store/mvsalvage.om`, `store/mvcommunity.om`, 221 `store/mvopen.om` and `store/mvgrowth.om` in place of their slices; `store/moving.om` answers). Their 222 addresses do not answer 404: `salvage`, `salvage/` and everything under `salvage/`; 223 `community`, `community/` and everything under it; `open`, `open/` and 224 everything under it; `open.json`; `bring.sh`, `get.sh`, `withdraw.sh`; 225 `trending` and `trending.json` answer `503` for any method, with no `Retry-After` header 226 (no time is promised). The HTML page's title is `Moving` and its text is exactly "This part is moving 227 to the new Interplane store and is not available yet." A JSON request (a `.json` name, or 228 `Accept: application/json`) gets this document with `"reason":"moving"`: 229 230 ```json 231 {"schema":"forge/error/1","status":503,"error":"Moving","message":"This part is moving to the new Interplane store and is not available yet.","reason":"moving"} 232 ``` 233 234 Every other 503 (the event stream's fail-closed answer, a busy download with `Retry-After`) keeps its 235 own words and has no `reason` key. `agents.json` lists these parts under `not_available` with the 236 same reason. Gate: `store/tests/agentdoor-store.sh`. The default build keeps its 404s 237 (`server/no.om`) when a slice is not composed. 238 239 ## `forge/search/1` 240 241 `GET search?q=` with `Accept: application/json`: the forge-wide search page. The 242 repositories whose name or description contains `q` (case-insensitive), then the code matches of `q` 243 on every repository's default branch (`git grep -I -n -i -F --max-count=5`, at most 100 matches in 244 all, in repository order), exactly as the HTML page lists them. `q` is cut at 200 bytes. 245 246 | Key | Type | Meaning | 247 |---|---|---| 248 | `schema` | string | `"forge/search/1"` | 249 | `base` | string | the base of the request | 250 | `query` | string or null | the query as searched; null when the URL has no `q` (the page then lists nothing) | 251 | `repos` | array | matching repositories, each a repo summary exactly as in `forge/explore/1` | 252 | `code` | array | code matches, in the order of the HTML page | 253 | `code_truncated` | boolean | true when the 100-match cap was reached (the HTML page says "Showing the first 100") | 254 255 ### `repos` items 256 257 | Key | Type | Meaning | 258 |---|---|---| 259 | `owner` | string | as in `forge/explore/1` | 260 | `name` | string | | 261 | `rid` | string | | 262 | `path` | string | | 263 | `json` | string | | 264 | `description` | string or null | | 265 | `default_branch` | string | | 266 | `stars` | integer | | 267 | `last_commit` | object or null | `sha`, `time`, `subject` as in `forge/explore/1` | 268 269 ### `repos.last_commit` object 270 271 | Key | Type | Meaning | 272 |---|---|---| 273 | `sha` | string | 40 hex | 274 | `time` | string | committer time, UTC | 275 | `subject` | string | first line | 276 277 ### `code` items 278 279 | Key | Type | Meaning | 280 |---|---|---| 281 | `repo` | string | repository name | 282 | `rid` | string | `""` (bare) | 283 | `path` | string | file path in the repository | 284 | `line` | integer | line number (1-based) | 285 | `text` | string | the matching line, its first 300 bytes (the HTML page shows the same 300) | 286 | `html` | string | the blob page at that line, `//blob//#L` | 287 288 Example (`GET /forge/search?q=gb10`, shortened to one repository and one match of 100): 289 290 ```json 291 {"schema":"forge/search/1","base":"/forge/","query":"gb10", 292 "repos":[{"owner":"drakestapleton","name":"aien-sovereign-core-mv","rid":"`z44GqrPVAPjZkhoD2MWVjqy18ighN`","path":"/forge/drakestapleton/aien-sovereign-core-mv","json":"/forge/drakestapleton/aien-sovereign-core-mv.json","description":"AienOS host runtime: ...","default_branch":"main","stars":0,"last_commit":{"sha":"`314c0cc2360c75fd44edfc55ae22db036e792e96`","time":"2026-11-09T00:48:00Z","subject":"Merge fix/crumb-924-lock (`7bdf1521`): ..."}}], 293 "code":[{"repo":"aien-sovereign-core-mv","rid":"`z44GqrPVAPjZkhoD2MWVjqy18ighN`","path":".github/workflows/release.yml","line":57,"text":" # The native engine is linked only on the candidate target (linux aarch64, the GB10 host class).","html":"/forge/drakestapleton/aien-sovereign-core-mv/blob/main/.github/workflows/release.yml#L57"}], 294 "code_truncated":true} 295 ``` 296 297 ## `forge/tree/1` 298 299 `GET //tree/[/]` with `Accept: application/json`. The directory listing 300 of the tree page: one directory of the repository at a ref. Source: `browse/e1_json.om` (`brjtree`). 301 A path that is a file redirects (`302`, `Location` = its blob page) exactly like the HTML page; an 302 unknown ref or path is `404` with a `forge/error/1` body. 303 304 | Key | Type | Meaning | 305 |---|---|---| 306 | `schema` | string | `"forge/tree/1"` | 307 | `base` | string | the base of the request, `"/"` or `"/forge/"` | 308 | `repo` | object | the repository (see Conventions) | 309 | `ref` | string | the ref as written in the URL (branch, tag or commit sha) | 310 | `ref_kind` | string | `"branch"`, `"tag"` or `"commit"` (the label of the page's ref bar) | 311 | `commit` | string | the 40-hex commit the ref resolved to | 312 | `path` | string | the directory, relative to the repository root, `""` at the root | 313 | `parent` | string or null | the `..` row: tree page of the parent directory; null at the root | 314 | `history` | string | the History link: commit log of this path at this ref | 315 | `last_commit` | object or null | the newest commit touching this path at `commit` (the box above the listing); null when git log printed nothing | 316 | `entries` | array | the rows of the listing in page order: directories first, then files and submodules, each group in git's order | 317 | `truncated` | boolean | true when the listing stopped at the page's cap of 5000 rows (or when the response buffer was full) | 318 | `readme` | object or null | the README the page renders below the listing; null when there is none or it cannot be read | 319 320 ### `last_commit` object 321 322 | Key | Type | Meaning | 323 |---|---|---| 324 | `sha` | string | 40-hex commit (the page shows the first 7) | 325 | `author` | string | author name | 326 | `time` | string | author time, ISO-8601 UTC (the page shows the date) | 327 | `subject` | string | first line of the message | 328 | `path` | string | commit page, `//commit/` | 329 330 ### `entries` items 331 332 | Key | Type | Meaning | 333 |---|---|---| 334 | `name` | string | file or directory name | 335 | `type` | string | `"tree"` (directory), `"blob"` (file) or `"commit"` (submodule) | 336 | `sha` | string | 40-hex object id (as in `forge/repo/1` `files`) | 337 | `size` | integer or null | bytes of a file; null for directories and submodules | 338 | `path` | string | path from the repository root | 339 | `html` | string or null | the row's link: tree page of a directory, blob page of a file; null for a submodule (the page shows it without a link) | 340 341 ### `readme` object 342 343 | Key | Type | Meaning | 344 |---|---|---| 345 | `name` | string | file name: `readme.md` or `readme.markdown` (any case) first, else `readme` or `readme.` | 346 | `html` | string | its blob page | 347 | `raw` | string | the raw file | 348 349 Example (real, shortened with ... only inside long strings): 350 351 ```json 352 { 353 "schema": "forge/tree/1", 354 "base": "/forge/", 355 "repo": { 356 "owner": "drakestapleton", 357 "name": "cuda-crack", 358 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 359 "path": "/forge/drakestapleton/cuda-crack", 360 "json": "/forge/drakestapleton/cuda-crack.json" 361 }, 362 "ref": "main", 363 "ref_kind": "branch", 364 "commit": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 365 "path": "check", 366 "parent": "/forge/drakestapleton/cuda-crack/tree/main", 367 "history": "/forge/drakestapleton/cuda-crack/commits/main/check", 368 "last_commit": { 369 "sha": "`043f993fab0b263eb0edd1a367fee8fee8f6a79b`", 370 "author": "aien-spark", 371 "time": "2026-11-07T10:00:25Z", 372 "subject": "reencode.om: each D field number appears at most once per form (ReviewCrack `f5ea1b2e` note)", 373 "path": "/forge/drakestapleton/cuda-crack/commit/`043f993fab0b263eb0edd1a367fee8fee8f6a79b`" 374 }, 375 "entries": [ 376 { 377 "name": "CHECK.txt", 378 "type": "blob", 379 "sha": "`d75a1e3317ca506102421890b135541288ce20bb`", 380 "size": 991, 381 "path": "check/CHECK.txt", 382 "html": "/forge/drakestapleton/cuda-crack/blob/main/check/CHECK.txt" 383 }, 384 { 385 "name": "check.sh", 386 "type": "blob", 387 "sha": "`aeca56ce939102eef368b4d4a46ddcc5c63aeb28`", 388 "size": 3963, 389 "path": "check/check.sh", 390 "html": "/forge/drakestapleton/cuda-crack/blob/main/check/check.sh" 391 }, 392 { 393 "name": "reencode.om", 394 "type": "blob", 395 "sha": "`bd09c8a5f212211f27de38fed25ff8dda43552c4`", 396 "size": 6197, 397 "path": "check/reencode.om", 398 "html": "/forge/drakestapleton/cuda-crack/blob/main/check/reencode.om" 399 } 400 ], 401 "truncated": false, 402 "readme": null 403 } 404 ``` 405 406 ## `forge/blob/1` 407 408 `GET //blob//` with `Accept: application/json`. One file at a ref, with 409 its text when the page shows it. Source: `browse/e1_json.om` (`brjblob`). A path that is a directory 410 redirects (`302`, `Location` = its tree page); an unknown ref or path is `404` (`forge/error/1`). 411 `?plain=1` selects the source view of a Markdown file, as on the page. 412 413 | Key | Type | Meaning | 414 |---|---|---| 415 | `schema` | string | `"forge/blob/1"` | 416 | `base` | string | the base of the request | 417 | `repo` | object | the repository (see Conventions) | 418 | `ref` | string | the ref as written in the URL | 419 | `ref_kind` | string | `"branch"`, `"tag"` or `"commit"` | 420 | `commit` | string | the 40-hex commit the ref resolved to | 421 | `path` | string | the file, relative to the repository root | 422 | `name` | string | the last segment of `path` | 423 | `size` | integer | bytes | 424 | `lines` | integer or null | number of lines as the page counts them (newlines, plus one for a last line without one); null for a file larger than 16 MiB, whose text forged does not hold | 425 | `binary` | boolean | the page's binary test (a NUL byte in the first 8000 bytes) | 426 | `kind` | string | how the page shows the file: `"text"` (code table), `"markdown"` (rendered Markdown), `"image"` (inline image), `"binary"` (binary file, raw link only; also PDF), `"large"` (too large to show: above 2 MiB, or above 512 MiB, which also has no raw link) | 427 | `links` | object | the links of the file's info bar | 428 | `content` | string or null | the file's text for `kind` `"text"` and `"markdown"` (Markdown as source text); null otherwise | 429 | `content_truncated` | boolean | true only when `content` stopped early because the 8 MiB response buffer was full (the page shows at most 2 MiB, so this does not happen for text forged shows) | 430 431 ### `links` object 432 433 | Key | Type | Meaning | 434 |---|---|---| 435 | `raw` | string or null | raw file; null above 512 MiB (the page offers no raw link) | 436 | `blame` | string | blame page | 437 | `history` | string | commit log of this file | 438 | `source` | string or null | Markdown file shown rendered: its source view (`?plain=1`); null otherwise | 439 | `rendered` | string or null | Markdown file shown as source (`?plain=1`): its rendered view; null otherwise | 440 441 Example (real, shortened with ... only inside long strings): 442 443 ```json 444 { 445 "schema": "forge/blob/1", 446 "base": "/", 447 "repo": { 448 "owner": "drakestapleton", 449 "name": "cuda-crack", 450 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 451 "path": "/drakestapleton/cuda-crack", 452 "json": "/drakestapleton/cuda-crack.json" 453 }, 454 "ref": "main", 455 "ref_kind": "branch", 456 "commit": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 457 "path": "receipts/omega-mv/evidence/SEED-0/sm121/chip/steps.txt", 458 "name": "steps.txt", 459 "size": 100, 460 "lines": 4, 461 "binary": false, 462 "kind": "text", 463 "links": { 464 "raw": "/drakestapleton/cuda-crack/raw/main/receipts/omega-mv/evidence/SEED-0/sm121/chip/steps.txt", 465 "blame": "/drakestapleton/cuda-crack/blame/main/receipts/omega-mv/evidence/SEED-0/...", 466 "history": "/drakestapleton/cuda-crack/commits/main/receipts/omega-mv/evidence/SEED-...", 467 "source": null, 468 "rendered": null 469 }, 470 "content": "check_words exit=0 want=0 ok\nrun_seed exit=0 want=0 ok\ncontrol_mutant ex...", 471 "content_truncated": false 472 } 473 ``` 474 475 ## `forge/blame/1` 476 477 `GET //blame//` with `Accept: application/json`. Every line of a file 478 with the commit that last changed it (`git blame --porcelain`). Source: `browse/e1_json.om` 479 (`brjblame`). A directory redirects (`302`) to its tree page; an unknown ref or path, or a failed 480 blame, is `404` (`forge/error/1`). 481 482 | Key | Type | Meaning | 483 |---|---|---| 484 | `schema` | string | `"forge/blame/1"` | 485 | `base` | string | the base of the request | 486 | `repo` | object | the repository (see Conventions) | 487 | `ref` | string | the ref as written in the URL | 488 | `ref_kind` | string | `"branch"`, `"tag"` or `"commit"` | 489 | `commit` | string | the 40-hex commit the ref resolved to | 490 | `path` | string | the file, relative to the repository root | 491 | `history` | string | commit log of this file | 492 | `commits` | array | the commits that appear in the blame, in order of first appearance (at most 4096, the page's table) | 493 | `lines` | array | the lines of the file in order | 494 | `truncated` | boolean | true when the blame output was larger than forged reads (16 MiB) or the response buffer was full; the lines after the cut are missing | 495 496 ### `commits` items 497 498 | Key | Type | Meaning | 499 |---|---|---| 500 | `sha` | string | 40-hex commit | 501 | `author` | string | author name | 502 | `time` | string or null | author time, ISO-8601 UTC | 503 | `subject` | string | first line of the message (the page shows it as the tooltip) | 504 | `path` | string | commit page | 505 506 ### `lines` items 507 508 | Key | Type | Meaning | 509 |---|---|---| 510 | `line` | integer | line number in the file (1-based) | 511 | `commit` | string or null | 40-hex commit that last changed the line (its entry in `commits` has the details) | 512 | `text` | string | the line without its newline | 513 514 Example (real, shortened with ... only inside long strings): 515 516 ```json 517 { 518 "schema": "forge/blame/1", 519 "base": "/", 520 "repo": { 521 "owner": "drakestapleton", 522 "name": "cuda-crack", 523 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 524 "path": "/drakestapleton/cuda-crack", 525 "json": "/drakestapleton/cuda-crack.json" 526 }, 527 "ref": "main", 528 "ref_kind": "branch", 529 "commit": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 530 "path": "receipts/omega-mv/evidence/SEED-0/sm121/chip/steps.txt", 531 "history": "/drakestapleton/cuda-crack/commits/main/receipts/omega-mv/evidence/SEED-...", 532 "commits": [ 533 { 534 "sha": "`c17646e7bc4215aa413a8acfb66fa9dd3794062c`", 535 "author": "aien-spark", 536 "time": "2026-11-07T09:47:27Z", 537 "subject": "cuda-crack: I broke CUDA. GB10 sm_121 machine code without the CUDA toolkit", 538 "path": "/drakestapleton/cuda-crack/commit/`c17646e7bc4215aa413a8acfb66fa9dd3794062c`" 539 } 540 ], 541 "lines": [ 542 { 543 "line": 1, 544 "commit": "`c17646e7bc4215aa413a8acfb66fa9dd3794062c`", 545 "text": "check_words exit=0 want=0 ok" 546 }, 547 { 548 "line": 2, 549 "commit": "`c17646e7bc4215aa413a8acfb66fa9dd3794062c`", 550 "text": "run_seed exit=0 want=0 ok" 551 }, 552 { 553 "line": 3, 554 "commit": "`c17646e7bc4215aa413a8acfb66fa9dd3794062c`", 555 "text": "control_mutant exit=1 want=1 ok" 556 }, 557 { 558 "line": 4, 559 "commit": "`c17646e7bc4215aa413a8acfb66fa9dd3794062c`", 560 "text": "session PASS" 561 } 562 ], 563 "truncated": false 564 } 565 ``` 566 567 ## `forge/repo-search/1` 568 569 `GET //search?q=` with `Accept: application/json`. Case-insensitive fixed 570 string search over the default branch (`git grep -I -i -F`, at most 5 lines per file). Source: 571 `browse/e1_json.om` (`brjsrch`). A query longer than 256 bytes or containing a control byte is `400` 572 (`forge/error/1`), as on the page. Without `q` the document has `query` null and no hits. 573 574 | Key | Type | Meaning | 575 |---|---|---| 576 | `schema` | string | `"forge/repo-search/1"` | 577 | `base` | string | the base of the request | 578 | `repo` | object | the repository (see Conventions) | 579 | `query` | string or null | the search text; null when `q` is absent or empty | 580 | `ref` | string | the default branch searched | 581 | `commit` | string | the 40-hex commit of that branch | 582 | `hits` | array | matching files in git grep's order | 583 | `truncated` | boolean | true when the list stopped at the page's cap of 200 matching lines and more followed | 584 585 ### `hits` items 586 587 | Key | Type | Meaning | 588 |---|---|---| 589 | `path` | string | file path | 590 | `html` | string | its blob page at `ref` | 591 | `lines` | array | the matching lines of this file (at most 5) | 592 593 ### `hits.lines` items 594 595 | Key | Type | Meaning | 596 |---|---|---| 597 | `line` | integer | line number | 598 | `text` | string | the whole line (the page shows the first 300 bytes) | 599 | `html` | string | blob page anchored at the line, `...#L` | 600 601 Example (real, shortened with ... only inside long strings): 602 603 ```json 604 { 605 "schema": "forge/repo-search/1", 606 "base": "/", 607 "repo": { 608 "owner": "drakestapleton", 609 "name": "cuda-crack", 610 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 611 "path": "/drakestapleton/cuda-crack", 612 "json": "/drakestapleton/cuda-crack.json" 613 }, 614 "query": "RUNLOG", 615 "ref": "main", 616 "commit": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 617 "hits": [ 618 { 619 "path": "replicate.sh", 620 "html": "/drakestapleton/cuda-crack/blob/main/replicate.sh", 621 "lines": [ 622 { 623 "line": 29, 624 "text": "# PATH; runs each step in a new clean shell; prints PASS/FAIL/NOT_RUN pe...", 625 "html": "/drakestapleton/cuda-crack/blob/main/replicate.sh#L29" 626 }, 627 { 628 "line": 109, 629 "text": "LOG=$WS/RUNLOG.md", 630 "html": "/drakestapleton/cuda-crack/blob/main/replicate.sh#L109" 631 }, 632 { 633 "line": 114, 634 "text": "\tsay \"# RUNLOG: replicate.sh\"", 635 "html": "/drakestapleton/cuda-crack/blob/main/replicate.sh#L114" 636 }, 637 { 638 "line": 697, 639 "text": "\tsay \"RESULT: every required step PASSED. RUNLOG: $WSD/RUNLOG.md\"", 640 "html": "/drakestapleton/cuda-crack/blob/main/replicate.sh#L697" 641 }, 642 { 643 "line": 700, 644 "text": "say \"RESULT: $req_bad required step(s) did not PASS (NOT_RUN is not PASS...", 645 "html": "/drakestapleton/cuda-crack/blob/main/replicate.sh#L700" 646 } 647 ] 648 }, 649 { 650 "path": "replication/20261107T104021Z/RUNLOG.md", 651 "html": "/drakestapleton/cuda-crack/blob/main/replication/20261107T104021Z/RUNLOG.md", 652 "lines": [ 653 { 654 "line": 1, 655 "text": "# RUNLOG: replicate.sh", 656 "html": "/drakestapleton/cuda-crack/blob/main/replication/20261107T104021Z/RUNLOG.md#L1" 657 } 658 ] 659 }, 660 { 661 "path": "replication/README.md", 662 "html": "/drakestapleton/cuda-crack/blob/main/replication/README.md", 663 "lines": [ 664 { 665 "line": 3, 666 "text": "Each directory holds `RUNLOG.md` and `summary.tsv`, copied unchanged fro...", 667 "html": "/drakestapleton/cuda-crack/blob/main/replication/README.md#L3" 668 }, 669 { 670 "line": 7, 671 "text": "| `20261107T104021Z` | `replicate.sh` sha256 ``58b8671799500fd49a0ae27b1e`...", 672 "html": "/drakestapleton/cuda-crack/blob/main/replication/README.md#L7" 673 }, 674 { 675 "line": 14, 676 "text": "`2f1eca4d18d9f8ce90b98c5519593d3d7deeca83915f50ec55a61452a445d2f5` 202611...", 677 "html": "/drakestapleton/cuda-crack/blob/main/replication/README.md#L14" 678 } 679 ] 680 } 681 ], 682 "truncated": false 683 } 684 ``` 685 686 ## `forge/commits/1` 687 688 `GET //commits[/[/]][?page=N]` with `Accept: application/json`: one page (30 commits) of the history of `` (default branch when omitted), optionally only commits touching ``. 689 690 | Key | Type | Meaning | 691 |---|---|---| 692 | `schema` | string | `forge/commits/1` | 693 | `base` | string | the site base, `/` or `/forge/` | 694 | `repo` | object | the repository (see `forge/repo/1`) | 695 | `ref` | string | the ref as named in the URL (the default branch name when the URL has none) | 696 | `commit` | string | full sha the ref resolves to | 697 | `path` | string | the path filter, `""` when none | 698 | `page` | integer | the page number (1 when `?page` is absent or invalid) | 699 | `per_page` | integer | always 30 | 700 | `commits` | array | the commits of this page, newest first, as the HTML table lists them | 701 | `next` | string or null | link to the older page (the HTML "Older" link), null when there is none | 702 | `prev` | string or null | link to the newer page (the HTML "Newer" link), null on page 1 | 703 704 ### `commits` items 705 706 | Key | Type | Meaning | 707 |---|---|---| 708 | `sha` | string | full commit sha | 709 | `author` | string | author name | 710 | `time` | string or null | author time, ISO 8601 UTC | 711 | `subject` | string | first line of the message | 712 | `path` | string | link to the commit page; the HTML "Browse" link is `//tree/` | 713 714 Unknown ref or sha, or `git log` failing: 404 `forge/error/1`. 715 716 Example (real, shortened with ... only inside long strings): 717 718 ```json 719 { 720 "schema": "forge/commits/1", 721 "base": "/", 722 "repo": { 723 "owner": "drakestapleton", 724 "name": "cuda-crack", 725 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 726 "path": "/drakestapleton/cuda-crack", 727 "json": "/drakestapleton/cuda-crack.json" 728 }, 729 "ref": "main", 730 "commit": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 731 "path": "LICENSE", 732 "page": 1, 733 "per_page": 30, 734 "commits": [ 735 { 736 "sha": "`c17646e7bc4215aa413a8acfb66fa9dd3794062c`", 737 "author": "aien-spark", 738 "time": "2026-11-07T09:47:27Z", 739 "subject": "cuda-crack: I broke CUDA. GB10 sm_121 machine code without the CUDA toolkit", 740 "path": "/drakestapleton/cuda-crack/commit/`c17646e7bc4215aa413a8acfb66fa9dd3794062c`" 741 } 742 ], 743 "next": null, 744 "prev": null 745 } 746 ``` 747 748 ## `forge/commit/1` 749 750 `GET //commit/` with `Accept: application/json`: one commit, its numstat and its unified diff against the first parent. `/commit/.patch` and `/commit/.diff` are always the raw `text/plain` files, whatever the `Accept` header. 751 752 | Key | Type | Meaning | 753 |---|---|---| 754 | `schema` | string | `forge/commit/1` | 755 | `base` | string | the site base, `/` or `/forge/` | 756 | `repo` | object | the repository (see `forge/repo/1`) | 757 | `sha` | string | full commit sha | 758 | `parents` | array | full shas of the parents (strings), `[]` for a root commit | 759 | `author` | object | the author | 760 | `committer` | object or null | the committer; present only when the HTML shows it (committer name length differs from the author name length, the HTML's own rule), else null | 761 | `subject` | string | first line of the message | 762 | `message` | string or null | the rest of the message as the HTML message block shows it (leading spaces of the body and trailing spaces dropped), null when the message is only a subject | 763 | `links` | object | raw forms and the tree at this commit | 764 | `files_changed` | integer or null | number of numstat rows (the HTML stat line); null when `git show --numstat` failed | 765 | `additions` | integer or null | sum of added lines | 766 | `deletions` | integer or null | sum of deleted lines | 767 | `files` | array or null | the numstat rows the HTML table shows (the first 3000) | 768 | `files_truncated` | boolean | true when more than 3000 rows exist | 769 | `diff` | string or null | git's unified diff text up to the point where the HTML renderer stops (4 MiB of input or 30000 rendered rows); null when the diff command failed | 770 | `diff_truncated` | boolean | true when the HTML shows the "diff truncated" notice, or when `diff` stopped early because the 8 MiB response buffer was nearly full (escaping can take 6 bytes per input byte) | 771 772 ### `author` object 773 774 | Key | Type | Meaning | 775 |---|---|---| 776 | `name` | string | author name | 777 | `time` | string or null | author time, ISO 8601 UTC | 778 779 ### `committer` object 780 781 | Key | Type | Meaning | 782 |---|---|---| 783 | `name` | string | committer name | 784 | `time` | string or null | committer time, ISO 8601 UTC | 785 786 ### `links` object 787 788 | Key | Type | Meaning | 789 |---|---|---| 790 | `patch` | string | `/commit/.patch` (mbox patch) | 791 | `diff` | string | `/commit/.diff` (plain diff) | 792 | `tree` | string | `/tree/` (browse files at this commit) | 793 794 ### `files` items 795 796 | Key | Type | Meaning | 797 |---|---|---| 798 | `path` | string | the path as numstat prints it (renames as `old => new` or `dir/{a => b}`) | 799 | `added` | integer or null | added lines, null for a binary file | 800 | `deleted` | integer or null | deleted lines, null for a binary file | 801 802 Unknown sha or ref, a path after the sha, or `git show` failing: 404 `forge/error/1`. 803 804 Example (real, shortened with ... only inside long strings): 805 806 ```json 807 { 808 "schema": "forge/commit/1", 809 "base": "/forge/", 810 "repo": { 811 "owner": "drakestapleton", 812 "name": "cuda-crack", 813 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 814 "path": "/forge/drakestapleton/cuda-crack", 815 "json": "/forge/drakestapleton/cuda-crack.json" 816 }, 817 "sha": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 818 "parents": [ 819 "`5c2635a9f756d42f64d03308be67e9337539a0aa`" 820 ], 821 "author": { 822 "name": "aien-spark", 823 "time": "2026-11-07T11:01:21Z" 824 }, 825 "committer": null, 826 "subject": "replicate.sh --agent --yes: exact allow-list instead of token deny-list; FORBID also on ;|& split text; --turns checked ...sh covers the 9 known bypasses", 827 "message": "", 828 "links": { 829 "patch": "/forge/drakestapleton/cuda-crack/commit/`7e3c9a731d8607ceb60b5a257c8c3652becd544f`.patch", 830 "diff": "/forge/drakestapleton/cuda-crack/commit/`7e3c9a731d8607ceb60b5a257c8c3652becd544f`.diff", 831 "tree": "/forge/drakestapleton/cuda-crack/tree/`7e3c9a731d8607ceb60b5a257c8c3652becd544f`" 832 }, 833 "files_changed": 2, 834 "additions": 140, 835 "deletions": 18, 836 "files": [ 837 { 838 "path": "replicate.sh", 839 "added": 98, 840 "deleted": 13 841 }, 842 { 843 "path": "tests/agent-gate.sh", 844 "added": 42, 845 "deleted": 5 846 } 847 ], 848 "files_truncated": false, 849 "diff": "diff --git a/replicate.sh b/replicate.sh\nindex `feae082`..`39bd15a` 100755\n--- a/replicate.sh\n+++ b/replicate.sh\n@@ -12,8 +1...EOF\n rc=$?\n cat \"$tmp/py.out\"\n", 850 "diff_truncated": false 851 } 852 ``` 853 854 ## `forge/compare/1` 855 856 `GET //compare/...` with `Accept: application/json`: what head `` has that base `` does not (`git log a..b`, `git diff a...b`). `GET //compare` answers the same schema for the form page (`compare_base`/`compare_head` null, empty lists, `form` set); `GET .../compare?a=&b=` redirects (302) to `/compare/...` exactly as the HTML form does. The compare sides are `compare_base`/`compare_head` because `base` is the site base in every document. 857 858 | Key | Type | Meaning | 859 |---|---|---| 860 | `schema` | string | `forge/compare/1` | 861 | `base` | string | the site base, `/` or `/forge/` | 862 | `repo` | object | the repository (see `forge/repo/1`) | 863 | `compare_base` | object or null | the base side; null on the form page | 864 | `compare_head` | object or null | the head side; null on the form page | 865 | `commits` | array or null | commits in head and not in base, newest first, as the HTML lists them (at most 250); null when `git log` failed | 866 | `commits_truncated` | boolean | true when more than 250 commits exist (the HTML "newest 250" note) | 867 | `files_changed` | integer or null | number of numstat rows of `git diff --numstat -M a...b`; null when it failed | 868 | `additions` | integer or null | sum of added lines | 869 | `deletions` | integer or null | sum of deleted lines | 870 | `files` | array or null | the numstat rows the HTML table shows (the first 3000) | 871 | `files_truncated` | boolean | true when more than 3000 rows exist | 872 | `diff` | string or null | git's unified diff text up to the point where the HTML renderer stops (4 MiB of input or 30000 rendered rows); null when the HTML shows no diff (form page, no changes, or a failed command) | 873 | `diff_truncated` | boolean | true when the HTML shows the "diff truncated" notice, or when `diff` stopped early because the 8 MiB response buffer was nearly full (escaping can take 6 bytes per input byte) | 874 | `form` | object or null | the compare form (form page only), else null | 875 876 ### `compare_base` object 877 878 | Key | Type | Meaning | 879 |---|---|---| 880 | `ref` | string | the base as typed in the URL | 881 | `sha` | string | full sha it resolves to | 882 883 ### `compare_head` object 884 885 | Key | Type | Meaning | 886 |---|---|---| 887 | `ref` | string | the head as typed in the URL | 888 | `sha` | string | full sha it resolves to | 889 890 ### `commits` items 891 892 | Key | Type | Meaning | 893 |---|---|---| 894 | `sha` | string | full commit sha | 895 | `author` | string | author name | 896 | `time` | string or null | author time, ISO 8601 UTC | 897 | `subject` | string | first line of the message | 898 | `path` | string | link to the commit page | 899 900 ### `files` items 901 902 | Key | Type | Meaning | 903 |---|---|---| 904 | `path` | string | the path as numstat prints it (renames as `old => new` or `dir/{a => b}`) | 905 | `added` | integer or null | added lines, null for a binary file | 906 | `deleted` | integer or null | deleted lines, null for a binary file | 907 908 ### `form` object 909 910 | Key | Type | Meaning | 911 |---|---|---| 912 | `action` | string | `/compare`, the form target | 913 | `method` | string | `get` | 914 | `base_param` | string | query parameter of the base field, `a` | 915 | `head_param` | string | query parameter of the head field, `b` | 916 | `maxlength` | integer | longest accepted value, 200 | 917 | `help` | string | the help text under the form | 918 919 Unresolvable base or head, or a malformed `/compare/...` path: 404 `forge/error/1`. 920 921 Example (real, shortened with ... only inside long strings): 922 923 ```json 924 { 925 "schema": "forge/compare/1", 926 "base": "/", 927 "repo": { 928 "owner": "drakestapleton", 929 "name": "cuda-crack", 930 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 931 "path": "/drakestapleton/cuda-crack", 932 "json": "/drakestapleton/cuda-crack.json" 933 }, 934 "compare_base": { 935 "ref": "`5c2635a9`", 936 "sha": "`5c2635a9f756d42f64d03308be67e9337539a0aa`" 937 }, 938 "compare_head": { 939 "ref": "`7e3c9a73`", 940 "sha": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`" 941 }, 942 "commits": [ 943 { 944 "sha": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 945 "author": "aien-spark", 946 "time": "2026-11-07T11:01:21Z", 947 "subject": "replicate.sh --agent --yes: exact allow-list instead of token deny-list; FORBID also on ;|& split text; --turns checked ...sh covers the 9 known bypasses", 948 "path": "/drakestapleton/cuda-crack/commit/`7e3c9a731d8607ceb60b5a257c8c3652becd544f`" 949 } 950 ], 951 "commits_truncated": false, 952 "files_changed": 2, 953 "additions": 140, 954 "deletions": 18, 955 "files": [ 956 { 957 "path": "replicate.sh", 958 "added": 98, 959 "deleted": 13 960 }, 961 { 962 "path": "tests/agent-gate.sh", 963 "added": 42, 964 "deleted": 5 965 } 966 ], 967 "files_truncated": false, 968 "diff": "diff --git a/replicate.sh b/replicate.sh\nindex `feae082`..`39bd15a` 100755\n--- a/replicate.sh\n+++ b/replicate.sh\n@@ -12,8 +1...EOF\n rc=$?\n cat \"$tmp/py.out\"\n", 969 "diff_truncated": false, 970 "form": null 971 } 972 ``` 973 974 ## `forge/branches/1` 975 976 `GET //branches[?page=N]` with `Accept: application/json`: the branches as the HTML table lists them (newest commit first), 2000 a page. Every branch is on some page: the list is read one line at a time, so no number of branches cuts it. The HTML page has the same `?page=N`; when the list has more than one page it says "Rows a to b of n." under the table and links the newer and older pages (a list of one page is shown as before paging). A page past the last row is a 404. 977 978 | Key | Type | Meaning | 979 |---|---|---| 980 | `schema` | string | `forge/branches/1` | 981 | `base` | string | the site base, `/` or `/forge/` | 982 | `repo` | object | the repository (see `forge/repo/1`) | 983 | `branches` | array | the branches on this page (at most 2000) | 984 | `truncated` | boolean | true when branches follow on a later page (`next` is not null) | 985 | `page` | integer | this page number, from 1 | 986 | `total` | integer | the number of branches | 987 | `prev` | string or null | link to the previous page (`/branches?page=N-1`), null on page 1 | 988 | `next` | string or null | link to the next page, null on the last page | 989 990 ### `branches` items 991 992 | Key | Type | Meaning | 993 |---|---|---| 994 | `name` | string | short branch name | 995 | `default` | boolean | true for the default branch (the HTML "default" badge) | 996 | `commit` | object | the tip commit as the row shows it | 997 | `html` | string | `/tree/` (browse files) | 998 | `archives` | object | download links | 999 1000 ### `branches.commit` object 1001 1002 | Key | Type | Meaning | 1003 |---|---|---| 1004 | `sha` | string | full sha of the tip | 1005 | `time` | string or null | committer time, ISO 8601 UTC | 1006 | `subject` | string | first line of the message | 1007 | `path` | string | link to the commit page | 1008 1009 ### `branches.archives` object 1010 1011 | Key | Type | Meaning | 1012 |---|---|---| 1013 | `zip` | string | `/archive/refs/heads/.zip` | 1014 | `tar_gz` | string | `/archive/refs/heads/.tar.gz` | 1015 1016 A path after `/branches`: 404 `forge/error/1`. 1017 1018 Example (real, shortened with ... only inside long strings): 1019 1020 ```json 1021 { 1022 "schema": "forge/branches/1", 1023 "base": "/", 1024 "repo": { 1025 "owner": "drakestapleton", 1026 "name": "cuda-crack", 1027 "rid": "z631r2JJiVT8it4tST7RK24hpowi", 1028 "path": "/drakestapleton/cuda-crack", 1029 "json": "/drakestapleton/cuda-crack.json" 1030 }, 1031 "branches": [ 1032 { 1033 "name": "main", 1034 "default": true, 1035 "commit": { 1036 "sha": "`7e3c9a731d8607ceb60b5a257c8c3652becd544f`", 1037 "time": "2026-11-07T11:01:21Z", 1038 "subject": "replicate.sh --agent --yes: exact allow-list instead of token deny-list; FORBID also on ;|& split text; --turns checked ...sh covers the 9 known bypasses", 1039 "path": "/drakestapleton/cuda-crack/commit/`7e3c9a731d8607ceb60b5a257c8c3652becd544f`" 1040 }, 1041 "html": "/drakestapleton/cuda-crack/tree/main", 1042 "archives": { 1043 "zip": "/drakestapleton/cuda-crack/archive/refs/heads/main.zip", 1044 "tar_gz": "/drakestapleton/cuda-crack/archive/refs/heads/main.tar.gz" 1045 } 1046 } 1047 ], 1048 "truncated": false 1049 } 1050 ``` 1051 1052 ## `forge/tags/1` 1053 1054 `GET //tags[?page=N]` with `Accept: application/json`: the tags as the HTML table lists them (newest first), 2000 a page, every tag on some page (as `forge/branches/1`). 1055 1056 | Key | Type | Meaning | 1057 |---|---|---| 1058 | `schema` | string | `forge/tags/1` | 1059 | `base` | string | the site base, `/` or `/forge/` | 1060 | `repo` | object | the repository (see `forge/repo/1`) | 1061 | `tags` | array | the tags on this page (at most 2000); `[]` when there are none | 1062 | `truncated` | boolean | true when tags follow on a later page (`next` is not null) | 1063 | `page` | integer | this page number, from 1 | 1064 | `total` | integer | the number of tags | 1065 | `prev` | string or null | link to the previous page (`/tags?page=N-1`), null on page 1 | 1066 | `next` | string or null | link to the next page, null on the last page | 1067 1068 ### `tags` items 1069 1070 | Key | Type | Meaning | 1071 |---|---|---| 1072 | `name` | string | short tag name | 1073 | `object` | string | sha of the tag ref's object (the tag object for an annotated tag, the commit for a lightweight one) | 1074 | `commit` | string | sha the tag points at after peeling (the commit the HTML short sha shows) | 1075 | `time` | string or null | creator date, ISO 8601 UTC | 1076 | `subject` | string | tag message subject (commit subject for a lightweight tag) | 1077 | `commit_path` | string | link to that commit's page | 1078 | `html` | string | `/tree/` (browse files) | 1079 | `archives` | object | download links | 1080 | `release` | string | `/releases/tag/` (the row's release link) | 1081 1082 ### `tags.archives` object 1083 1084 | Key | Type | Meaning | 1085 |---|---|---| 1086 | `zip` | string | `/archive/refs/tags/.zip` | 1087 | `tar_gz` | string | `/archive/refs/tags/.tar.gz` | 1088 1089 A path after `/tags`: 404 `forge/error/1`. 1090 1091 Example (real, shortened with ... only inside long strings): 1092 1093 ```json 1094 { 1095 "schema": "forge/tags/1", 1096 "base": "/forge/", 1097 "repo": { 1098 "owner": "drakestapleton", 1099 "name": "omega-bridge", 1100 "rid": "`z3Hr9ZaiKHwwuNzPK5M8c7uw6pj7y`", 1101 "path": "/forge/drakestapleton/omega-bridge", 1102 "json": "/forge/drakestapleton/omega-bridge.json" 1103 }, 1104 "tags": [ 1105 { 1106 "name": "cudapp-lock/`ead98302`", 1107 "object": "`ead98302ff0a649c49c3f2c7568af5e1b3da33eb`", 1108 "commit": "`ead98302ff0a649c49c3f2c7568af5e1b3da33eb`", 1109 "time": "2026-10-28T19:57:03Z", 1110 "subject": "Pin archived static QEMU and exercise scalar x86 consumers explicitly", 1111 "commit_path": "/forge/drakestapleton/omega-bridge/commit/`ead98302ff0a649c49c3f2c7568af5e1b3da33eb`", 1112 "html": "/forge/drakestapleton/omega-bridge/tree/cudapp-lock/`ead98302`", 1113 "archives": { 1114 "zip": "/forge/drakestapleton/omega-bridge/archive/refs/tags/cudapp-lock/`ead98302`.zip", 1115 "tar_gz": "/forge/drakestapleton/omega-bridge/archive/refs/tags/cudapp-lock/`ead98302`.tar.gz" 1116 }, 1117 "release": "/forge/drakestapleton/omega-bridge/releases/tag/cudapp-lock/`ead98302`" 1118 }, 1119 { 1120 "name": "license-apache-2.0", 1121 "object": "`999ce8317c05ddff59a3ec02f77da1c2c5dac6ec`", 1122 "commit": "`999ce8317c05ddff59a3ec02f77da1c2c5dac6ec`", 1123 "time": "2026-10-24T04:12:28Z", 1124 "subject": "chore(license): adopt Apache-2.0 across the tree", 1125 "commit_path": "/forge/drakestapleton/omega-bridge/commit/`999ce8317c05ddff59a3ec02f77da1c2c5dac6ec`", 1126 "html": "/forge/drakestapleton/omega-bridge/tree/license-apache-2.0", 1127 "archives": { 1128 "zip": "/forge/drakestapleton/omega-bridge/archive/refs/tags/license-apache-2.0.zip", 1129 "tar_gz": "/forge/drakestapleton/omega-bridge/archive/refs/tags/license-apache-2.0.tar.gz" 1130 }, 1131 "release": "/forge/drakestapleton/omega-bridge/releases/tag/license-apache-2.0" 1132 } 1133 ], 1134 "truncated": false 1135 } 1136 ``` 1137 1138 ## `forge/releases/1` 1139 1140 `GET //releases[?page=N]` (also `/releases/`) with `Accept: application/json`. The releases list: 10 releases per page, newest first, the same records and order as the HTML page. Every tag is a release (no cap at the newest 500). The bound is 16 MiB of tag records (about 150,000 tags) and 16 MiB for one tag message; past either, the list and the pages it covers are the whole 500 `forge/error/1` ("larger than the forge reads in one piece"), never a shorter list. 1141 1142 | Key | Type | Meaning | 1143 |---|---|---| 1144 | `schema` | string | `"forge/releases/1"` | 1145 | `base` | string | the X-Forge-Base prefix every link starts with | 1146 | `repo` | object | the repository (see Conventions) | 1147 | `page` | integer | this page number, from 1 (a page past the end of a nonempty list is a 404) | 1148 | `releases` | array | the releases on this page; empty when the repository has no release tags | 1149 | `prev` | string or null | link to the newer page (`?page=N-1`), null on page 1 | 1150 | `next` | string or null | link to the older page (`?page=N+1`), null on the last page | 1151 1152 ### `releases` items 1153 1154 | Key | Type | Meaning | 1155 |---|---|---| 1156 | `tag` | string | the tag name, which is the release title (a canonical or delegate tag) | 1157 | `html` | string | link to the release page `//releases/tag/` | 1158 | `prerelease` | boolean | the tag name marks a pre-release (`-rc`, `-alpha`, `-beta`, `-pre`, `-dev`) | 1159 | `latest` | boolean | this is the newest non-pre-release (the target of `/releases/latest`) | 1160 | `time` | string or null | the tag's creator date (tagger date of an annotated tag, else the commit date), ISO 8601 UTC; the HTML shows its day | 1161 | `commit` | object | the commit the tag points at (the HTML shows only its sha) | 1162 | `subject` | string or null | the annotated tag's subject line; null for a lightweight tag or an empty subject | 1163 | `notes` | string or null | the annotated tag's message body (release notes), raw text, whole; null for a lightweight tag or an empty body | 1164 | `archives` | object | the two source archives of the tag | 1165 | `assets` | array or null | always null on the list page (the HTML lists assets only on the release page) | 1166 | `assets_not_offered` | integer or null | always null on the list page | 1167 1168 ### `releases.commit` object 1169 1170 | Key | Type | Meaning | 1171 |---|---|---| 1172 | `sha` | string | full 40-hex commit sha | 1173 | `path` | string | link to the commit page `//commit/` | 1174 1175 ### `releases.archives` object 1176 1177 | Key | Type | Meaning | 1178 |---|---|---| 1179 | `zip` | object | the `.zip` source archive | 1180 | `tar_gz` | object | the `.tar.gz` source archive | 1181 1182 ### `releases.archives.zip` object 1183 1184 | Key | Type | Meaning | 1185 |---|---|---| 1186 | `name` | string | the download file name `-.zip` (a leading `v` before a digit is dropped, `/` becomes `-`), as the HTML link text | 1187 | `path` | string | download link `//archive/refs/tags/.zip` | 1188 | `size` | integer or null | bytes of the cached archive; null until it has been built (downloaded once), as the HTML shows "-" | 1189 | `sha256` | string or null | SHA-256 (64 hex) of the cached archive; null when `size` is null | 1190 1191 ### `releases.archives.tar_gz` object 1192 1193 | Key | Type | Meaning | 1194 |---|---|---| 1195 | `name` | string | the download file name `-.tar.gz` | 1196 | `path` | string | download link `//archive/refs/tags/.tar.gz` | 1197 | `size` | integer or null | bytes of the cached archive; null until it has been built | 1198 | `sha256` | string or null | SHA-256 (64 hex) of the cached archive; null when `size` is null | 1199 1200 ### `releases.assets` items 1201 1202 Never present today: `assets` is null on every list entry. The shape is reserved as the one of `release.assets` items. 1203 1204 | Key | Type | Meaning | 1205 |---|---|---| 1206 | `name` | string | the file name under `release-assets/` | 1207 | `path` | string | download link `//releases/download//` | 1208 | `size` | integer or null | bytes of the cached file; null until it has been downloaded once | 1209 | `sha256` | string or null | SHA-256 (64 hex) of the cached file; null when `size` is null | 1210 1211 Example (real, from a trial forged over a fixture repository; the live allow-list has no repository with tags today, where `releases` is `[]`): 1212 1213 ```json 1214 { 1215 "schema": "forge/releases/1", 1216 "base": "/forge/", 1217 "repo": { 1218 "owner": "drakestapleton", 1219 "name": "dlfix", 1220 "rid": "z3FixtureRepoForReasesTagsXY", 1221 "path": "/forge/drakestapleton/dlfix", 1222 "json": "/forge/drakestapleton/dlfix.json" 1223 }, 1224 "page": 2, 1225 "releases": [ 1226 { 1227 "tag": "v0.1.0", 1228 "html": "/forge/drakestapleton/dlfix/releases/tag/v0.1.0", 1229 "prerelease": false, 1230 "latest": false, 1231 "time": "2025-02-11T00:00:00Z", 1232 "commit": { 1233 "sha": "`771405a781f24d6647897f0dd1764a04d12922e8`", 1234 "path": "/forge/drakestapleton/dlfix/commit/`771405a781f24d6647897f0dd1764a04d12922e8`" 1235 }, 1236 "subject": null, 1237 "notes": null, 1238 "archives": { 1239 "zip": { 1240 "name": "dlfix-0.1.0.zip", 1241 "path": "/forge/drakestapleton/dlfix/archive/refs/tags/v0.1.0.zip", 1242 "size": null, 1243 "sha256": null 1244 }, 1245 "tar_gz": { 1246 "name": "dlfix-0.1.0.tar.gz", 1247 "path": "/forge/drakestapleton/dlfix/archive/refs/tags/v0.1.0.tar.gz", 1248 "size": null, 1249 "sha256": null 1250 } 1251 }, 1252 "assets": null 1253 }, 1254 { 1255 "tag": "v0.10.0", 1256 "html": "/forge/drakestapleton/dlfix/releases/tag/v0.10.0", 1257 "prerelease": false, 1258 "latest": false, 1259 "time": "2025-02-11T00:00:00Z", 1260 "commit": { 1261 "sha": "`a7c0e58d022a76bc055a27d6f2b64c0f47d3e407`", 1262 "path": "/forge/drakestapleton/dlfix/commit/`a7c0e58d022a76bc055a27d6f2b64c0f47d3e407`" 1263 }, 1264 "subject": null, 1265 "notes": null, 1266 "archives": { 1267 "zip": { 1268 "name": "dlfix-0.10.0.zip", 1269 "path": "/forge/drakestapleton/dlfix/archive/refs/tags/v0.10.0.zip", 1270 "size": null, 1271 "sha256": null 1272 }, 1273 "tar_gz": { 1274 "name": "dlfix-0.10.0.tar.gz", 1275 "path": "/forge/drakestapleton/dlfix/archive/refs/tags/v0.10.0.tar.gz", 1276 "size": null, 1277 "sha256": null 1278 } 1279 }, 1280 "assets": null 1281 }, 1282 { 1283 "tag": "v0.9.0", 1284 "html": "/forge/drakestapleton/dlfix/releases/tag/v0.9.0", 1285 "prerelease": false, 1286 "latest": false, 1287 "time": "2025-01-19T00:00:00Z", 1288 "commit": { 1289 "sha": "`b503757bb25bc6c44dfee4bf38846bbb75f3ae46`", 1290 "path": "/forge/drakestapleton/dlfix/commit/`b503757bb25bc6c44dfee4bf38846bbb75f3ae46`" 1291 }, 1292 "subject": null, 1293 "notes": null, 1294 "archives": { 1295 "zip": { 1296 "name": "dlfix-0.9.0.zip", 1297 "path": "/forge/drakestapleton/dlfix/archive/refs/tags/v0.9.0.zip", 1298 "size": null, 1299 "sha256": null 1300 }, 1301 "tar_gz": { 1302 "name": "dlfix-0.9.0.tar.gz", 1303 "path": "/forge/drakestapleton/dlfix/archive/refs/tags/v0.9.0.tar.gz", 1304 "size": null, 1305 "sha256": null 1306 } 1307 }, 1308 "assets": null 1309 } 1310 ], 1311 "prev": "/forge/drakestapleton/dlfix/releases?page=1", 1312 "next": null 1313 } 1314 ``` 1315 1316 Live (`cuda-crack`, no tags), under base `/`: 1317 1318 ```json 1319 {"schema":"forge/releases/1","base":"/","repo":{"owner":"drakestapleton","name":"cuda-crack","rid":"z631r2JJiVT8it4tST7RK24hpowi","path":"/drakestapleton/cuda-crack","json":"/drakestapleton/cuda-crack.json"},"page":1,"releases":[],"prev":null,"next":null} 1320 ``` 1321 1322 ## `forge/release/1` 1323 1324 `GET //releases/tag/` with `Accept: application/json`. One release with its `release-assets/` files. Errors as the HTML: 404 for an unknown or too-long tag, 400 for a refused tag name. `GET //releases/latest` answers the same 302 redirect to this page in both forms (404 when there is no non-pre-release); `/archive/...` and `/releases/download/...` are files. 1325 1326 | Key | Type | Meaning | 1327 |---|---|---| 1328 | `schema` | string | `"forge/release/1"` | 1329 | `base` | string | the X-Forge-Base prefix every link starts with | 1330 | `repo` | object | the repository (see Conventions) | 1331 | `release` | object | the release | 1332 1333 ### `release` object 1334 1335 | Key | Type | Meaning | 1336 |---|---|---| 1337 | `tag` | string | the tag name, which is the release title | 1338 | `html` | string | link to this page | 1339 | `prerelease` | boolean | the tag name marks a pre-release | 1340 | `latest` | boolean | this is the newest non-pre-release | 1341 | `time` | string or null | the tag's creator date, ISO 8601 UTC | 1342 | `commit` | object | the commit the tag points at | 1343 | `subject` | string or null | the annotated tag's subject line; null for a lightweight tag or an empty subject | 1344 | `notes` | string or null | the annotated tag's message body, raw text, whole; null for a lightweight tag or an empty body | 1345 | `archives` | object | the two source archives of the tag | 1346 | `assets` | array | every file under `release-assets/` in the tagged commit that is offered for download (git order); empty when there are none. A release whose page does not fit the 8 MiB response is the whole 500 `forge/error/1` ("too large for the forge to send"); its downloads still work | 1347 | `assets_not_offered` | integer | entries of `release-assets/` that are not offered (a name over 120 bytes, a byte other than `A-Z a-z 0-9 . _ - +`, a leading dot, or not a plain file); the HTML page says the same number | 1348 1349 ### `release.commit` object 1350 1351 | Key | Type | Meaning | 1352 |---|---|---| 1353 | `sha` | string | full 40-hex commit sha | 1354 | `path` | string | link to the commit page | 1355 1356 ### `release.archives` object 1357 1358 | Key | Type | Meaning | 1359 |---|---|---| 1360 | `zip` | object | the `.zip` source archive | 1361 | `tar_gz` | object | the `.tar.gz` source archive | 1362 1363 ### `release.archives.zip` object 1364 1365 | Key | Type | Meaning | 1366 |---|---|---| 1367 | `name` | string | the download file name `-.zip` | 1368 | `path` | string | download link `//archive/refs/tags/.zip` | 1369 | `size` | integer or null | bytes of the cached archive; null until it has been built | 1370 | `sha256` | string or null | SHA-256 (64 hex) of the cached archive; null when `size` is null | 1371 1372 ### `release.archives.tar_gz` object 1373 1374 | Key | Type | Meaning | 1375 |---|---|---| 1376 | `name` | string | the download file name `-.tar.gz` | 1377 | `path` | string | download link `//archive/refs/tags/.tar.gz` | 1378 | `size` | integer or null | bytes of the cached archive; null until it has been built | 1379 | `sha256` | string or null | SHA-256 (64 hex) of the cached archive; null when `size` is null | 1380 1381 ### `release.assets` items 1382 1383 | Key | Type | Meaning | 1384 |---|---|---| 1385 | `name` | string | the file name under `release-assets/` | 1386 | `path` | string | download link `//releases/download//` | 1387 | `size` | integer or null | bytes of the cached file; null until it has been downloaded once, as the HTML shows "-" | 1388 | `sha256` | string or null | SHA-256 (64 hex) of the cached file; null when `size` is null | 1389 1390 Example (real, fixture repository, after one download of each asset and of the zip archive): 1391 1392 ```json 1393 { 1394 "schema": "forge/release/1", 1395 "base": "/", 1396 "repo": { 1397 "owner": "drakestapleton", 1398 "name": "dlfix", 1399 "rid": "z3FixtureRepoForReasesTagsXY", 1400 "path": "/drakestapleton/dlfix", 1401 "json": "/drakestapleton/dlfix.json" 1402 }, 1403 "release": { 1404 "tag": "v1.0.0", 1405 "html": "/drakestapleton/dlfix/releases/tag/v1.0.0", 1406 "prerelease": false, 1407 "latest": true, 1408 "time": "2026-01-02T00:00:00Z", 1409 "commit": { 1410 "sha": "`934969dfa00e7612681463eb8f0ce2a965c9882a`", 1411 "path": "/drakestapleton/dlfix/commit/`934969dfa00e7612681463eb8f0ce2a965c9882a`" 1412 }, 1413 "subject": "First release", 1414 "notes": "Notes line bold & \"quoted\" more\n", 1415 "archives": { 1416 "zip": { 1417 "name": "dlfix-1.0.0.zip", 1418 "path": "/drakestapleton/dlfix/archive/refs/tags/v1.0.0.zip", 1419 "size": 300814, 1420 "sha256": "`29948c1d590deed8013bb95541f9d61e0ea58bf0ecc5ea662017a78abf604197`" 1421 }, 1422 "tar_gz": { 1423 "name": "dlfix-1.0.0.tar.gz", 1424 "path": "/drakestapleton/dlfix/archive/refs/tags/v1.0.0.tar.gz", 1425 "size": null, 1426 "sha256": null 1427 } 1428 }, 1429 "assets": [ 1430 { 1431 "name": "blob.bin", 1432 "path": "/drakestapleton/dlfix/releases/download/v1.0.0/blob.bin", 1433 "size": 300000, 1434 "sha256": "`5238614466f7efa2f91d6b57939fb1651f9550826de49480cab45869fd552d81`" 1435 }, 1436 { 1437 "name": "tool-linux.txt", 1438 "path": "/drakestapleton/dlfix/releases/download/v1.0.0/tool-linux.txt", 1439 "size": 8, 1440 "sha256": "`8419ff13897cbe37259aafcdf99caa54532b826445935be0fcb71456525ebc26`" 1441 } 1442 ] 1443 } 1444 } 1445 ``` 1446 1447 ## `forge/patches/1` 1448 1449 `GET //patches[?state=open|draft|merged|archived|all]` (also `/pulls`, the same list) 1450 1451 The patch list page: the state filter in effect, its tabs with their counts, and the rows the page shows 1452 (at most 200 patches, the page's cap; filtered by state; in HTML order). An unknown `state` value is 1453 `open`, as on the page. Titles are at most 300 bytes, as in the HTML list. 1454 1455 | Key | Type | Meaning | 1456 |---|---|---| 1457 | `schema` | string | `forge/patches/1` | 1458 | `base` | string | `/` or `/forge/` | 1459 | `repo` | object | the repository (see `forge/repo/1`) | 1460 | `state` | string | the filter in effect: `open`, `draft`, `merged`, `archived` or `all` | 1461 | `states` | array | the filter tabs, in HTML order | 1462 | `truncated` | boolean | the repository has more than 200 patches and only 200 are listed (the page's cap note) | 1463 | `patches` | array | the rows of the list, in HTML order | 1464 | `new` | string | link to the new patch form | 1465 1466 ### `states` items 1467 1468 | Key | Type | Meaning | 1469 |---|---|---| 1470 | `state` | string | the `?state=` value of the tab | 1471 | `count` | integer | the number in the tab | 1472 | `path` | string | link to the list in that state | 1473 1474 ### `patches` items 1475 1476 | Key | Type | Meaning | 1477 |---|---|---| 1478 | `id` | string | the patch id (40 hex) | 1479 | `title` | string | the title, empty when the patch has none | 1480 | `state` | string | `open`, `draft`, `merged` or `archived` | 1481 | `author` | object | who opened the patch | 1482 | `updated` | string or null | the time of the newest change | 1483 | `revisions` | integer | number of revisions | 1484 | `comments` | integer | number of comments and reviews | 1485 | `verdict` | string or null | the linked review verdict of the newest revision (at most 128 bytes, as in the list) | 1486 | `path` | string | link to the patch page | 1487 1488 ### `patches.author` object 1489 1490 | Key | Type | Meaning | 1491 |---|---|---| 1492 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1493 | `did` | string | the author's `did:key:` | 1494 | `path` | string or null | link to the owner's page when `name` is set | 1495 1496 Example (real, shortened with ... only inside long strings): 1497 1498 ```json 1499 { 1500 "schema": "forge/patches/1", 1501 "base": "/", 1502 "repo": { 1503 "owner": "drakestapleton", 1504 "name": "omega-harness", 1505 "rid": "`z39gvwWsnkRZsAConQLjaKiNVLHfW`", 1506 "path": "/drakestapleton/omega-harness", 1507 "json": "/drakestapleton/omega-harness.json" 1508 }, 1509 "state": "draft", 1510 "states": [ 1511 { 1512 "state": "open", 1513 "count": 1, 1514 "path": "/drakestapleton/omega-harness/patches?state=open" 1515 }, 1516 { 1517 "state": "draft", 1518 "count": 1, 1519 "path": "/drakestapleton/omega-harness/patches?state=draft" 1520 }, 1521 { 1522 "state": "merged", 1523 "count": 7, 1524 "path": "/drakestapleton/omega-harness/patches?state=merged" 1525 }, 1526 { 1527 "state": "archived", 1528 "count": 0, 1529 "path": "/drakestapleton/omega-harness/patches?state=archived" 1530 }, 1531 { 1532 "state": "all", 1533 "count": 9, 1534 "path": "/drakestapleton/omega-harness/patches?state=all" 1535 } 1536 ], 1537 "truncated": false, 1538 "patches": [ 1539 { 1540 "id": "`5069b161d30889f46e2d4aae102edc2151731adc`", 1541 "title": "docs: importer acceptance hold and SI gate guide (draft)", 1542 "state": "draft", 1543 "author": { 1544 "name": "drakestapleton", 1545 "did": "did:key:`z6MkfZDue1TbaNFi3ZzcD9uiTeduPLC52ucdFVuLKZwexxhK`", 1546 "path": "/drakestapleton" 1547 }, 1548 "updated": "2026-11-07T18:24:19Z", 1549 "revisions": 1, 1550 "comments": 0, 1551 "verdict": null, 1552 "path": "/drakestapleton/omega-harness/patches/`5069b161d30889f46e2d4aae102edc2151731adc`" 1553 } 1554 ], 1555 "new": "/drakestapleton/omega-harness/patches/new" 1556 } 1557 ``` 1558 1559 ## `forge/patch/1` 1560 1561 `GET //patches/[?rev=]` 1562 1563 One patch. `` is 4 to 40 lowercase hex naming exactly one patch, else 404 (`forge/error/1`). `diff` 1564 names the revision whose changes the page shows: the one `?rev=` names, else the newest revision that is 1565 not redacted. The diff text and its stat are not in the document; `diff.raw` is the raw diff 1566 (`text/plain`, unchanged by `Accept`). Bodies and descriptions are the raw markdown source the page 1567 renders. `labels` and `assignees` are split at the `, ` the page joins them with. 1568 1569 | Key | Type | Meaning | 1570 |---|---|---| 1571 | `schema` | string | `forge/patch/1` | 1572 | `base` | string | `/` or `/forge/` | 1573 | `repo` | object | the repository (see `forge/repo/1`) | 1574 | `id` | string | the patch id (40 hex) | 1575 | `title` | string | the title, empty when the patch has none | 1576 | `state` | string | `open`, `draft`, `merged` or `archived` | 1577 | `author` | object | who opened the patch | 1578 | `opened` | string or null | time of the first change | 1579 | `path` | string | link to this page | 1580 | `description` | string | the description of revision 1 (markdown), empty when none | 1581 | `labels` | array | label names (strings) | 1582 | `assignees` | array | assignee DIDs (strings) | 1583 | `forged_commit` | string or null | the commit the running forged was built from (40 hex), null when not recorded | 1584 | `revisions` | array | every revision, oldest first | 1585 | `merges` | array | every merge | 1586 | `activity` | array | every event in change order, as the Activity list shows it | 1587 | `diff` | object or null | the revision whose changes the page shows; null when every revision is redacted | 1588 1589 ### `author` object 1590 1591 | Key | Type | Meaning | 1592 |---|---|---| 1593 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1594 | `did` | string | the author's `did:key:` | 1595 | `path` | string or null | link to the owner's page when `name` is set | 1596 1597 ### `revisions` items 1598 1599 | Key | Type | Meaning | 1600 |---|---|---| 1601 | `number` | integer | revision number (1 = first) | 1602 | `id` | string | revision id (40 hex) | 1603 | `path` | string | link to this page showing that revision's changes | 1604 | `redacted` | boolean | the revision was redacted | 1605 | `base` | string | base commit (40 hex) | 1606 | `head` | string | head commit (40 hex) | 1607 | `author` | object | who pushed it (same keys as `author`) | 1608 | `time` | string or null | when | 1609 | `verdict` | string or null | first line of the review verdict that names this head | 1610 1611 ### `revisions.author` object 1612 1613 | Key | Type | Meaning | 1614 |---|---|---| 1615 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1616 | `did` | string | the author's `did:key:` | 1617 | `path` | string or null | link to the owner's page when `name` is set | 1618 1619 ### `merges` items 1620 1621 | Key | Type | Meaning | 1622 |---|---|---| 1623 | `revision` | integer | the merged revision number | 1624 | `commit` | string | the merge commit (40 hex) | 1625 | `author` | object | who merged (same keys as `author`) | 1626 | `time` | string or null | when | 1627 1628 ### `merges.author` object 1629 1630 | Key | Type | Meaning | 1631 |---|---|---| 1632 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1633 | `did` | string | the author's `did:key:` | 1634 | `path` | string or null | link to the owner's page when `name` is set | 1635 1636 ### `activity` items 1637 1638 | Key | Type | Meaning | 1639 |---|---|---| 1640 | `type` | string | `open`, `revision`, `review`, `comment` or `merge` | 1641 | `author` | object | who (same keys as `author`) | 1642 | `time` | string or null | when | 1643 | `revision` | integer or null | the revision the event names; null for a comment on no revision or an unknown one | 1644 | `head` | string or null | head commit of an `open` or `revision` event | 1645 | `commit` | string or null | merge commit of a `merge` event | 1646 | `verdict` | string or null | `accept` or `reject` for a `review`, else null | 1647 | `body` | string or null | review summary or comment body (markdown); null for other events and redacted comments | 1648 | `redacted` | boolean | the comment (or, for `open`/`revision`, the revision) was redacted | 1649 1650 ### `activity.author` object 1651 1652 | Key | Type | Meaning | 1653 |---|---|---| 1654 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1655 | `did` | string | the author's `did:key:` | 1656 | `path` | string or null | link to the owner's page when `name` is set | 1657 1658 ### `diff` object 1659 1660 | Key | Type | Meaning | 1661 |---|---|---| 1662 | `revision` | integer | revision number | 1663 | `id` | string | revision id (40 hex) | 1664 | `base` | string | base commit (40 hex) | 1665 | `head` | string | head commit (40 hex) | 1666 | `raw` | string | link to the raw diff of that revision | 1667 1668 Example (real, shortened with ... only inside long strings): 1669 1670 ```json 1671 { 1672 "schema": "forge/patch/1", 1673 "base": "/", 1674 "repo": { 1675 "owner": "drakestapleton", 1676 "name": "omega-bridge", 1677 "rid": "`z3Hr9ZaiKHwwuNzPK5M8c7uw6pj7y`", 1678 "path": "/drakestapleton/omega-bridge", 1679 "json": "/drakestapleton/omega-bridge.json" 1680 }, 1681 "id": "`900f9615b4937adad859fb6bb3c6519d910ea63c`", 1682 "title": "DRA-105: GB10 device windows (run-device-window.sh) + F5 one-mkdir race fix", 1683 "state": "open", 1684 "author": { 1685 "name": "drakestapleton", 1686 "did": "did:key:`z6MkfZDue1TbaNFi3ZzcD9uiTeduPLC52ucdFVuLKZwexxhK`", 1687 "path": "/drakestapleton" 1688 }, 1689 "opened": "2026-11-07T11:05:11Z", 1690 "path": "/drakestapleton/omega-bridge/patches/`900f9615b4937adad859fb6bb3c6519d910ea63c`", 1691 "description": "DRA-105: GB10 device windows for MISSION-REPORT section 3 (tools/run-device-window.sh rewrite, evidence/device-window) p...", 1692 "labels": [], 1693 "assignees": [], 1694 "forged_commit": null, 1695 "revisions": [ 1696 { 1697 "number": 1, 1698 "id": "`900f9615b4937adad859fb6bb3c6519d910ea63c`", 1699 "path": "/drakestapleton/omega-bridge/patches/`900f9615b4937adad859fb6bb3c6519d910ea63c`?rev=`900f9615b4937adad859fb6bb3c6519d910ea63c`#changes", 1700 "redacted": false, 1701 "base": "`d8174eddf953ad53e16f19eb5841459df99e24bb`", 1702 "head": "`fd4a03216f905ec20be6aad8b93b23e42de425c7`", 1703 "author": { 1704 "name": "drakestapleton", 1705 "did": "did:key:`z6MkfZDue1TbaNFi3ZzcD9uiTeduPLC52ucdFVuLKZwexxhK`", 1706 "path": "/drakestapleton" 1707 }, 1708 "time": "2026-11-07T11:05:11Z", 1709 "verdict": "VERDICT MERGE head=`fd4a03216f905ec20be6aad8b93b23e42de425c7`" 1710 } 1711 ], 1712 "merges": [], 1713 "activity": [ 1714 { 1715 "type": "open", 1716 "author": { 1717 "name": "drakestapleton", 1718 "did": "did:key:`z6MkfZDue1TbaNFi3ZzcD9uiTeduPLC52ucdFVuLKZwexxhK`", 1719 "path": "/drakestapleton" 1720 }, 1721 "time": "2026-11-07T11:05:11Z", 1722 "revision": 1, 1723 "head": "`fd4a03216f905ec20be6aad8b93b23e42de425c7`", 1724 "commit": null, 1725 "verdict": null, 1726 "body": null, 1727 "redacted": false 1728 }, 1729 { 1730 "type": "comment", 1731 "author": { 1732 "name": "drakestapleton", 1733 "did": "did:key:`z6MkfZDue1TbaNFi3ZzcD9uiTeduPLC52ucdFVuLKZwexxhK`", 1734 "path": "/drakestapleton" 1735 }, 1736 "time": "2026-11-07T11:05:30Z", 1737 "revision": 1, 1738 "head": null, 1739 "commit": null, 1740 "verdict": null, 1741 "body": "Merged into main by desk merge commit `f9c59e418e27842d968aa8554f678cd0145e9ad5` (`882e3c06` + `fd4a0321`), pushed 2026-11-07T...", 1742 "redacted": false 1743 } 1744 ], 1745 "diff": { 1746 "revision": 1, 1747 "id": "`900f9615b4937adad859fb6bb3c6519d910ea63c`", 1748 "base": "`d8174eddf953ad53e16f19eb5841459df99e24bb`", 1749 "head": "`fd4a03216f905ec20be6aad8b93b23e42de425c7`", 1750 "raw": "/drakestapleton/omega-bridge/patches/`900f9615b4937adad859fb6bb3c6519d910ea63c`.diff?rev=`900f9615b4937adad859fb6bb3c6519d910ea63c`" 1751 } 1752 } 1753 ``` 1754 1755 ## Native issue forms 1756 1757 Signed-in accounts can open issues and comment on public repositories in the native store. Sign in 1758 at `login` with an Ed25519 key. Browser forms submit the session cookie, hidden csrf and request 1759 fields, title (one line, 1 to 256 UTF-8 bytes, for creation), and body (Markdown). The body may be 1760 empty for creation. The body limit is 16,000 UTF-8 bytes after normalizing line endings. The browser 1761 receives 303 with the canonical issue URL in Location. 1762 1763 Agents use the same session and URL-encoded fields. Request the form and submit it with 1764 `Accept: application/json`. The two form URLs are `//issues/new` and 1765 `//issues//comments`. The latter requires the full 16-hex issue ID. Imported 1766 issues accept native comments. GET returns the fields below. POST returns a write result. 1767 1768 A repeat with the same account, form request token and normalized fields returns the previously 1769 published outcome. A recognized token with different text returns 409. Invalid fields return 400, 1770 incorrect or missing CSRF returns 403, and a missing issue returns 404. A full index or thread 1771 returns 409, rate limiting returns 429, and contention returns 503 with Retry-After. An I/O failure 1772 returns 500. An unsigned form request for JSON or an unsigned POST redirects to sign-in. 1773 1774 The historical importer is run against isolated staging data. Publishing its output into a 1775 repository with live issues requires coordination with the forge writer lock and a merge of existing 1776 issue IDs and comments. Replacing an active issues directory with the staging export loses the 1777 repository's live records. 1778 1779 ## `forge/issue-form/1` 1780 1781 `GET //issues/new` or `GET //issues//comments` 1782 1783 Send `Accept: application/json` and the signed-in session cookie. The response is private to the 1784 session and cannot be cached by the public edge. 1785 1786 | Key | Type | Meaning | 1787 |---|---|---| 1788 | `schema` | string | `forge/issue-form/1` | 1789 | `base` | string | `/` or `/forge/` | 1790 | `repo` | object | the repository (see `forge/repo/1`) | 1791 | `action` | string | URL for the form POST | 1792 | `csrf` | string | session-bound CSRF field | 1793 | `request` | string | token for deduplication of this form submission | 1794 1795 ## `forge/issue-write/1` 1796 1797 `POST //issues/new` or `POST //issues//comments` 1798 1799 Send `Accept: application/json`, the session cookie, and the form's URL-encoded fields. A new write 1800 returns 201. A replay of an accepted submission returns 200. 1801 1802 | Key | Type | Meaning | 1803 |---|---|---| 1804 | `schema` | string | `forge/issue-write/1` | 1805 | `base` | string | `/` or `/forge/` | 1806 | `repo` | object | the repository (see `forge/repo/1`) | 1807 | `path` | string | canonical issue URL | 1808 | `applied` | boolean | true for a new write and false for a replay | 1809 1810 ## `forge/issues/1` 1811 1812 `GET //issues[?state=open|closed|all]` 1813 1814 In the native store, the unpaged JSON list preserves index order and lists up to 200 issues. 1815 Add `?page=1` for a 30-item page, newest indexed issue first, with `page`, `per_page`, `prev`, and 1816 `next` fields. State counts cover the entire index. The HTML list opens on the newest page. 1817 1818 The issue list page: same shape as `forge/patches/1` without revisions. `draft` and `merged` are `open` 1819 here, and `archived` is `closed`, as on the page. 1820 1821 | Key | Type | Meaning | 1822 |---|---|---| 1823 | `schema` | string | `forge/issues/1` | 1824 | `base` | string | `/` or `/forge/` | 1825 | `repo` | object | the repository (see `forge/repo/1`) | 1826 | `state` | string | the filter in effect: `open`, `closed` or `all` | 1827 | `states` | array | the filter tabs, in HTML order | 1828 | `truncated` | boolean | the repository has more than 200 issues and only 200 are listed (the page's cap note) | 1829 | `issues` | array | the rows of the list, in HTML order | 1830 | `new` | string | link to the new issue form | 1831 1832 ### `states` items 1833 1834 | Key | Type | Meaning | 1835 |---|---|---| 1836 | `state` | string | the `?state=` value of the tab | 1837 | `count` | integer | the number in the tab | 1838 | `path` | string | link to the list in that state | 1839 1840 ### `issues` items 1841 1842 | Key | Type | Meaning | 1843 |---|---|---| 1844 | `id` | string | the issue id (40 hex) | 1845 | `title` | string | the title (at most 300 bytes), empty when the issue has none | 1846 | `state` | string | `open`, `draft` or `closed` | 1847 | `author` | object | who opened the issue | 1848 | `updated` | string or null | the time of the newest change | 1849 | `comments` | integer | number of comments | 1850 | `verdict` | string or null | always null for issues (the row has no verdict) | 1851 | `path` | string | link to the issue page | 1852 1853 ### `issues.author` object 1854 1855 | Key | Type | Meaning | 1856 |---|---|---| 1857 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1858 | `did` | string | the author's `did:key:` | 1859 | `path` | string or null | link to the owner's page when `name` is set | 1860 1861 The issue examples come from a test build whose allow-list adds heartwood, because no served repository 1862 has issues yet. This list example keeps two of the 46 rows. 1863 1864 Example (real, shortened with ... only inside long strings): 1865 1866 ```json 1867 { 1868 "schema": "forge/issues/1", 1869 "base": "/", 1870 "repo": { 1871 "owner": "drakestapleton", 1872 "name": "heartwood", 1873 "rid": "`z3gqcJUoA1n9HaHKufZs5FCSGazv5`", 1874 "path": "/drakestapleton/heartwood", 1875 "json": "/drakestapleton/heartwood.json" 1876 }, 1877 "state": "closed", 1878 "states": [ 1879 { 1880 "state": "open", 1881 "count": 154, 1882 "path": "/drakestapleton/heartwood/issues?state=open" 1883 }, 1884 { 1885 "state": "closed", 1886 "count": 46, 1887 "path": "/drakestapleton/heartwood/issues?state=closed" 1888 }, 1889 { 1890 "state": "all", 1891 "count": 200, 1892 "path": "/drakestapleton/heartwood/issues?state=all" 1893 } 1894 ], 1895 "truncated": false, 1896 "issues": [ 1897 { 1898 "id": "`ee4398a4988c8f36e6b2f12174dff14d384edb38`", 1899 "title": "Using Clap", 1900 "state": "closed", 1901 "author": { 1902 "name": null, 1903 "did": "did:key:`z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM`", 1904 "path": null 1905 }, 1906 "updated": "2026-08-10T15:59:42Z", 1907 "comments": 1, 1908 "verdict": null, 1909 "path": "/drakestapleton/heartwood/issues/`ee4398a4988c8f36e6b2f12174dff14d384edb38`" 1910 }, 1911 { 1912 "id": "`f922d900e8d377392b090f65c828228deed9c9d9`", 1913 "title": "NO_COLOR disables all styling", 1914 "state": "closed", 1915 "author": { 1916 "name": null, 1917 "did": "did:key:`z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA`", 1918 "path": null 1919 }, 1920 "updated": "2026-06-23T16:34:10Z", 1921 "comments": 2, 1922 "verdict": null, 1923 "path": "/drakestapleton/heartwood/issues/`f922d900e8d377392b090f65c828228deed9c9d9`" 1924 } 1925 ], 1926 "new": "/drakestapleton/heartwood/issues/new" 1927 } 1928 ``` 1929 1930 ## `forge/issue/1` 1931 1932 `GET //issues/` 1933 1934 One issue. `` is 4 to 40 lowercase hex naming exactly one issue, else 404. The first comment is the 1935 issue body, as on the page. 1936 1937 The native store accepts unique prefixes of 4 to 16 hex characters. Directly posted authors and 1938 commenters carry their session key in `author.did` with `name: null`. An issue opened natively has 1939 `imported: null`. Imported authors retain source attribution with `author: null`. 1940 1941 | Key | Type | Meaning | 1942 |---|---|---| 1943 | `schema` | string | `forge/issue/1` | 1944 | `base` | string | `/` or `/forge/` | 1945 | `repo` | object | the repository (see `forge/repo/1`) | 1946 | `id` | string | the issue id (40 hex) | 1947 | `title` | string | the title, empty when the issue has none | 1948 | `state` | string | `open`, `draft` or `closed` | 1949 | `author` | object | who opened the issue | 1950 | `opened` | string or null | time of the first change | 1951 | `path` | string | link to this page | 1952 | `reason` | string or null | the close reason the page shows, null when none | 1953 | `labels` | array | label names (strings) | 1954 | `assignees` | array | assignee DIDs (strings) | 1955 | `comments` | array | the comment thread, oldest first | 1956 1957 ### `author` object 1958 1959 | Key | Type | Meaning | 1960 |---|---|---| 1961 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1962 | `did` | string | the author's `did:key:` | 1963 | `path` | string or null | link to the owner's page when `name` is set | 1964 1965 ### `comments` items 1966 1967 | Key | Type | Meaning | 1968 |---|---|---| 1969 | `author` | object | who wrote it (same keys as `author`) | 1970 | `time` | string or null | when | 1971 | `body` | string or null | the body (markdown), null when redacted | 1972 | `redacted` | boolean | the comment was redacted | 1973 1974 ### `comments.author` object 1975 1976 | Key | Type | Meaning | 1977 |---|---|---| 1978 | `name` | string or null | `drakestapleton` when the author is the node delegate, else null | 1979 | `did` | string | the author's `did:key:` | 1980 | `path` | string or null | link to the owner's page when `name` is set | 1981 1982 Example (real, shortened with ... only inside long strings): 1983 1984 ```json 1985 { 1986 "schema": "forge/issue/1", 1987 "base": "/", 1988 "repo": { 1989 "owner": "drakestapleton", 1990 "name": "heartwood", 1991 "rid": "`z3gqcJUoA1n9HaHKufZs5FCSGazv5`", 1992 "path": "/drakestapleton/heartwood", 1993 "json": "/drakestapleton/heartwood.json" 1994 }, 1995 "id": "`f922d900e8d377392b090f65c828228deed9c9d9`", 1996 "title": "NO_COLOR disables all styling", 1997 "state": "closed", 1998 "author": { 1999 "name": null, 2000 "did": "did:key:`z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA`", 2001 "path": null 2002 }, 2003 "opened": "2026-06-04T08:01:08Z", 2004 "path": "/drakestapleton/heartwood/issues/`f922d900e8d377392b090f65c828228deed9c9d9`", 2005 "reason": "solved", 2006 "labels": [ 2007 "crate=radicle-cli", 2008 "type=improvement" 2009 ], 2010 "assignees": [], 2011 "comments": [ 2012 { 2013 "author": { 2014 "name": null, 2015 "did": "did:key:`z6MkwGoyYxt6A2VE3fvZyH2rgiWdsXHBeV7jm7GSByS2aagA`", 2016 "path": null 2017 }, 2018 "time": "2026-06-04T08:01:08Z", 2019 "body": "See the [zulip](https://radicle.zulipchat.com/#narrow/channel/374620-CLI/topic/The.20CLI.20misinterprets.20NO_COLOR/with...", 2020 "redacted": false 2021 }, 2022 { 2023 "author": { 2024 "name": null, 2025 "did": "did:key:`z6Mku8hpprWTmCv3BqkssCYDfr2feUdyLSUnycVajFo9XVAx`", 2026 "path": null 2027 }, 2028 "time": "2026-06-19T09:49:03Z", 2029 "body": "I've patched the heartwood code (with some assistance) to correct this, and it seems to work properly with the command s...", 2030 "redacted": false 2031 } 2032 ] 2033 } 2034 ``` 2035 2036 ## `forge/stargazers/1` 2037 2038 `GET //stargazers` with `Accept: application/json`. The accounts that starred the repository. 2039 2040 | Key | Type | Meaning | 2041 |---|---|---| 2042 | `schema` | string | `"forge/stargazers/1"` | 2043 | `base` | string | the base of the request, `"/"` or `"/forge/"` | 2044 | `repo` | object | the repository (see Conventions) | 2045 | `count` | integer | star count of the repository (the number in the repository's social bar) | 2046 | `users` | array | the accounts that starred it, in the HTML list order; `[]` when nobody did | 2047 2048 ### `users` items 2049 2050 | Key | Type | Meaning | 2051 |---|---|---| 2052 | `name` | string | the account's display name, or its `z...` key when it has none (the HTML shows the first 16 characters of the key) | 2053 | `path` | string | the account's profile, `` | 2054 2055 Example (real, trial server with throwaway accounts, 2026-11-09 UTC): 2056 2057 ```json 2058 {"schema":"forge/stargazers/1","base":"/forge/","repo":{"owner":"drakestapleton","name":"cuda-crack","rid":"z631r2JJiVT8it4tST7RK24hpowi","path":"/forge/drakestapleton/cuda-crack","json":"/forge/drakestapleton/cuda-crack.json"},"count":2,"users":[{"name":"tester-one","path":"/forge/tester-one"},{"name":"`z6MkkjqXvx7SrFRXDXTmpvXEib7jCwnQVQcAaQtXFC6Yczam`","path":"/forge/`z6MkkjqXvx7SrFRXDXTmpvXEib7jCwnQVQcAaQtXFC6Yczam`"}]} 2059 ``` 2060 2061 ## `forge/watchers/1` 2062 2063 `GET //watchers` with `Accept: application/json`. The accounts that watch the repository. 2064 2065 | Key | Type | Meaning | 2066 |---|---|---| 2067 | `schema` | string | `"forge/watchers/1"` | 2068 | `base` | string | the base of the request, `"/"` or `"/forge/"` | 2069 | `repo` | object | the repository (see Conventions) | 2070 | `count` | integer | watch count of the repository (the number in the repository's social bar) | 2071 | `users` | array | the accounts that watch it, in the HTML list order; `[]` when nobody does | 2072 2073 ### `users` items 2074 2075 | Key | Type | Meaning | 2076 |---|---|---| 2077 | `name` | string | the account's display name, or its `z...` key when it has none | 2078 | `path` | string | the account's profile, `` | 2079 2080 Example (real, trial server): 2081 2082 ```json 2083 {"schema":"forge/watchers/1","base":"/forge/","repo":{"owner":"drakestapleton","name":"cuda-crack","rid":"z631r2JJiVT8it4tST7RK24hpowi","path":"/forge/drakestapleton/cuda-crack","json":"/forge/drakestapleton/cuda-crack.json"},"count":1,"users":[{"name":"tester-one","path":"/forge/tester-one"}]} 2084 ``` 2085 2086 ## `forge/user/1` 2087 2088 `GET [?tab=stars|followers|following]`, `/followers` and `/following` with `Accept: application/json`. A profile: an account (display name or `z...` key) or the forge owner. `/followers` is the same page as `?tab=followers` (likewise following). `repos`, `stars_received` and `favorites_received` are filled on the forge owner's plain and stars views (server); on every other view (accounts, and the owner's followers/following views, served by the social slice) they are `null`. A `?tab=` value the page does not offer shows the stars list, like the HTML. 2089 2090 | Key | Type | Meaning | 2091 |---|---|---| 2092 | `schema` | string | `"forge/user/1"` | 2093 | `base` | string | the base of the request, `"/"` or `"/forge/"` | 2094 | `user` | string | the profile's heading: the display name, or the `z...` key when the account has none | 2095 | `did` | string or null | the DID the profile shows, `"did:key:z6Mk..."` | 2096 | `followers` | integer | number of followers | 2097 | `following` | integer | number of accounts followed | 2098 | `tab` | string | the list shown: `"stars"`, `"followers"` or `"following"` | 2099 | `repos` | array or null | the forge owner's public repositories, items as in `forge/explore/1`; `null` on the views listed above | 2100 | `stars_received` | integer or null | stars on the owner's repositories (owner views only, else `null`) | 2101 | `favorites_received` | integer or null | favorites on the owner's repositories (owner views only, else `null`) | 2102 | `starred` | array or null | the repositories the user starred, in the HTML order, when `tab` is `"stars"`; else `null` | 2103 | `users` | array or null | the followers (tab `"followers"`) or the followed accounts (tab `"following"`) in the HTML order; else `null` | 2104 2105 ### `repos` items 2106 2107 Repo summaries exactly as the items of `forge/explore/1` (`owner`, `name`, `rid`, `path`, `json`, `description`, `default_branch`, `stars`, `last_commit`). 2108 2109 | Key | Type | Meaning | 2110 |---|---|---| 2111 | `owner` | string | see `forge/explore/1` | 2112 | `name` | string | see `forge/explore/1` | 2113 | `rid` | string | see `forge/explore/1` | 2114 | `path` | string | see `forge/explore/1` | 2115 | `json` | string | see `forge/explore/1` | 2116 | `description` | string or null | see `forge/explore/1` | 2117 | `default_branch` | string | see `forge/explore/1` | 2118 | `stars` | integer | see `forge/explore/1` | 2119 | `last_commit` | object or null | see `forge/explore/1` | 2120 2121 ### `starred` items 2122 2123 | Key | Type | Meaning | 2124 |---|---|---| 2125 | `name` | string | repository name | 2126 | `rid` | string | `""` (bare) | 2127 | `path` | string | the repository page, `/` | 2128 | `stars` | integer | the repository's star count (shown next to it in the list) | 2129 2130 ### `users` items 2131 2132 | Key | Type | Meaning | 2133 |---|---|---| 2134 | `name` | string | the account's display name, or its `z...` key when it has none | 2135 | `path` | string | the account's profile, `` | 2136 2137 Example (real, trial server, `?tab=stars` of an account): 2138 2139 ```json 2140 {"schema":"forge/user/1","base":"/forge/","user":"tester-one","did":"did:key:`z6Mkry4YVoekcSfSHEZZkyJRYg2tURTFhnh9PNuP87uZ3AzQ`","followers":1,"following":2,"tab":"stars","repos":null,"stars_received":null,"favorites_received":null,"starred":[{"name":"omega-mv","rid":"z6do9WDBhuSnvopDkgFdFr1yWA62","path":"/forge/drakestapleton/omega-mv","stars":1},{"name":"cuda-crack","rid":"z631r2JJiVT8it4tST7RK24hpowi","path":"/forge/drakestapleton/cuda-crack","stars":2}],"users":null} 2141 ``` 2142 2143 Example (real, trial server, `tester-one/following`): 2144 2145 ```json 2146 {"schema":"forge/user/1","base":"/forge/","user":"tester-one","did":"did:key:`z6Mkry4YVoekcSfSHEZZkyJRYg2tURTFhnh9PNuP87uZ3AzQ`","followers":1,"following":2,"tab":"following","repos":null,"stars_received":null,"favorites_received":null,"starred":null,"users":[{"name":"`z6MkkjqXvx7SrFRXDXTmpvXEib7jCwnQVQcAaQtXFC6Yczam`","path":"/forge/`z6MkkjqXvx7SrFRXDXTmpvXEib7jCwnQVQcAaQtXFC6Yczam`"},{"name":"drakestapleton","path":"/forge/drakestapleton"}]} 2147 ``` 2148 2149 ## `forge/stars/1` 2150 2151 `GET stars[?tab=favorites|watching]` with `Accept: application/json` and the session cookie. The signed-in account's own lists. Without a session it is `303` to `login`, like the HTML page. 2152 2153 | Key | Type | Meaning | 2154 |---|---|---| 2155 | `schema` | string | `"forge/stars/1"` | 2156 | `base` | string | the base of the request, `"/"` or `"/forge/"` | 2157 | `user` | string | the signed-in account: display name, or `z...` key when it has none | 2158 | `tab` | string | the list shown: `"stars"`, `"favorites"` (private to the account) or `"watching"` | 2159 | `repos` | array | the repositories in that list, in the HTML order | 2160 2161 ### `repos` items 2162 2163 | Key | Type | Meaning | 2164 |---|---|---| 2165 | `name` | string | repository name | 2166 | `rid` | string | `""` (bare) | 2167 | `path` | string | the repository page, `/` | 2168 | `stars` | integer | the repository's star count (shown next to it in the list) | 2169 2170 Example (real, trial server, `?tab=favorites`): 2171 2172 ```json 2173 {"schema":"forge/stars/1","base":"/forge/","user":"tester-one","tab":"favorites","repos":[{"name":"omega-mv","rid":"z6do9WDBhuSnvopDkgFdFr1yWA62","path":"/forge/drakestapleton/omega-mv","stars":1}]} 2174 ``` 2175 2176 Social pages without a JSON form: `login`, `logout`, `settings` (forms, or private 2177 account data) and every `POST` (`star`, `unstar`, `fav`, `unfav`, `watch`, `unwatch`, `follow`, 2178 `unfollow`, `settings/name`, `login`, `logout`) answer exactly as before, whatever the Accept header, 2179 and carry no alternate link. A non-existent user is `404` with a `forge/error/1` body, like its HTML 2180 page. `stars` without a session stays `303` to `login`. 2181 2182 ## `interplane/agents/1` 2183 2184 `GET agents.json`: the one document an agent reads first (`server/agents.om`). It lists every 2185 machine-readable address this forge answers today, how to ask each for JSON, the schema it answers 2186 (from this file, `docs/GROWTH.md` or `docs/OPEN-BUILDS.md`), whether it needs a browser session, and 2187 what is not available, so an agent does not have to guess. The routes are not prose kept by hand: 2188 `server/agents.tsv` is the one table, compiled into the build by `run.sh` (`.build/agents.om`), and 2189 `server/tests/agentdoor.sh` fetches every row with its template filled from a fixture and checks the 2190 schema it answers, and that every schema heading of this file is a row. Only `agents.json` is claimed: 2191 `/agents/` on interplane.io is a page of the static site (nginx serves existing files first), so the 2192 forge does not answer `/agents`. JSON whatever the headers; errors are `forge/error/1`. 2193 2194 | Key | Type | Meaning | 2195 |---|---|---| 2196 | `schema` | string | `"interplane/agents/1"` | 2197 | `base` | string | the base of the request (`"/"` or `"/forge/"`); every address below starts with it | 2198 | `read_first` | string | the address of this document | 2199 | `how_to_ask` | object | what the `json` word of a route means | 2200 | `text_form` | string | how to get the plain-text form of an HTML page (`format=text`) | 2201 | `error_schema` | string | `"forge/error/1"`: the document of every error a JSON request gets | 2202 | `events` | object or null | the activity stream (below); null in a build without the event store | 2203 | `routes` | array | one item per address, in the order of `server/agents.tsv` | 2204 | `not_available` | array | what agents ask for that this forge does not offer, and why | 2205 2206 ### `how_to_ask` object 2207 2208 | Key | Type | Meaning | 2209 |---|---|---| 2210 | `suffix` | string | `json` is `"suffix"`: the path itself is the JSON name (`.json`) | 2211 | `accept` | string | `json` is `"accept"`: send `Accept: application/json` (and not `text/html`) to the page's own address | 2212 | `always` | string | `json` is `"always"`: JSON whatever the headers say | 2213 2214 ### `events` object 2215 2216 | Key | Type | Meaning | 2217 |---|---|---| 2218 | `path` | string | `events.json` | 2219 | `schema` | string | `"interplane/events/1"` | 2220 | `after` | string | how `after=` and `next` work | 2221 | `limit_default` | integer | 50 | 2222 | `limit_max` | integer | 200 | 2223 | `etag` | string | how to poll cheaply with `If-None-Match` | 2224 | `feed` | string | `feed`, the same stream as a page for people | 2225 2226 ### `routes` items 2227 2228 | Key | Type | Meaning | 2229 |---|---|---| 2230 | `method` | string | `"GET"` | 2231 | `path` | string | the base and a path template: `{owner}`, `{repo}`, `{ref}`, `{path}`, `{sha}`, `{id}`, `{tag}`, `{user}`, `{q}`, `{a}`, `{b}`, `{rid}`, `{slug}`, `{order}`, `{seq}`, `{n}` are filled by the reader | 2232 | `json` | string | `"suffix"`, `"accept"` or `"always"` (`how_to_ask`) | 2233 | `schema` | string or null | the `schema` of the answer; null for `status.json`, which has no schema key | 2234 | `auth` | string | `"none"`, or `"session"`: answers only with a signed-in browser session (signed out it is a 303 to `login`) | 2235 | `doc` | string | the file of this repository that documents the schema | 2236 | `purpose` | string | one line | 2237 2238 ### `not_available` items 2239 2240 | Key | Type | Meaning | 2241 |---|---|---| 2242 | `what` | string | what is not offered (or the address that is not built in this build) | 2243 | `why` | string | why, and what to use instead | 2244 2245 Example (`GET /agents.json`, shortened): 2246 2247 ```json 2248 {"schema":"interplane/agents/1","base":"/","read_first":"/agents.json","how_to_ask":{"suffix":"the path itself is the JSON name","accept":"...","always":"..."},"text_form":"...","error_schema":"forge/error/1","events":{"path":"/events.json","schema":"interplane/events/1","after":"...","limit_default":50,"limit_max":200,"etag":"...","feed":"/feed"},"routes":[{"method":"GET","path":"/{owner}/{repo}/patches/{id}","json":"accept","schema":"forge/patch/1","auth":"none","doc":"docs/API.md","purpose":"one patch: revisions, reviews, comments, merges, verdicts"}],"not_available":[{"what":"MCP server","why":"..."}]} 2249 ``` 2250 2251 ## `interplane/events/1` 2252 2253 `GET events.json?after=&limit=` (JSON whatever the headers; also `events` and 2254 `feed` with `Accept: application/json`; `events` without it redirects to the feed page): 2255 the public activity of this forge as one append-only, ordered stream, so an agent reads from where it 2256 stopped instead of polling every list page. Source and rules: `door/`, `docs/AGENT-DOOR.md`. 2257 2258 - `after` (default 0) is exclusive: the answer holds the events with a higher `seq`, oldest first. 2259 `limit` defaults to 50; the maximum is 200, and a larger request is answered with 200 events and 2260 `limited: true` (not an error). Anything but 1 to 18 digits, or `limit=0`, is `400`. 2261 - `next` is the address to read next: `after` is the last `seq` this answer looked at, so a reader that 2262 follows `next` sees every event once, with no gap and no repeat. An answer with no events keeps 2263 `after` where it was: read the same `next` again later. 2264 - `seq` is strictly increasing and never reused; it stays the same across restarts (the stream is the 2265 file `events/log`). A `seq` can be missing from every answer: an event of a repository that is 2266 no longer public is not shown, and its number is not given to another event. 2267 - The answer carries an `ETag`; a request with `If-None-Match` set to it is answered `304` with no body 2268 while the stream (and the account names and the public list it shows) did not change. 2269 - The edge cache in front of interplane.io keeps a 200 answer up to 30 seconds. 2270 2271 | Key | Type | Meaning | 2272 |---|---|---| 2273 | `schema` | string | `"interplane/events/1"` | 2274 | `base` | string | the base of the request | 2275 | `head_seq` | integer | the highest `seq` in the stream (0 when it is empty) | 2276 | `after` | integer | the `after` of the request | 2277 | `limit` | integer | the limit applied (at most `limit_max`) | 2278 | `limit_requested` | integer | the limit asked for (50 when none) | 2279 | `limit_max` | integer | 200 | 2280 | `limited` | boolean | true when the limit asked for was larger than `limit_max` | 2281 | `events` | array | the events, oldest first | 2282 | `count` | integer | the length of `events` | 2283 | `next` | string | `events.json?after=&limit=`: read this next | 2284 2285 ### `events` items 2286 2287 | Key | Type | Meaning | 2288 |---|---|---| 2289 | `seq` | integer | the event's number in the stream, from 1 | 2290 | `time` | string | ISO-8601 UTC time from the source record: the change's author time (patches, issues, reviews, comments), the tag or commit date (release, branch moved), the social log line, the day of the open shelf row (00:00); store-reading build, a branch move recorded by the chain: the record's time | 2291 | `kind` | string | `patch_opened`, `patch_revised`, `patch_merged`, `patch_archived`, `review`, `comment`, `issue_opened`, `issue_closed`, `release`, `branch_moved`, `star`, `follow`, `open_brought`, `open_withdrawn`; the store-reading build has only `release`, `branch_moved`, `star` and `follow` | 2292 | `actor` | object or null | who did it | 2293 | `repo` | object or null | the public repository it is about (`forge/repo/1` summary keys: `rid` is that form's identifier, the bare `""` in the Radicle build (no `rad:` prefix since `9a4420a`, as in Conventions) or, in the store-reading build, `"git:"`); null for a follow and the open shelf | 2294 | `subject` | string | one line: the patch or issue title, the tag name, `" new commits on "`, the starred repository, the followed key, the shelf name | 2295 | `path` | string or null | the HTML page of the thing | 2296 | `json` | string or null | its JSON address (the same page with `Accept: application/json`, or the `.json` name) | 2297 | `source` | string | the object it was read from, so it can be checked: the COB id (opening), the change commit (revision, merge, review, comment, archive, close), the tag object or the commit (release, branch moved), `social.log:`, `open/list.tsv:@`; store-reading build: `chain.tsv:` (the chain record of a branch move), `repo.git:` (a tag object, or a move no record names) | 2298 | `verdict` | string or null | a review's verdict word (`accept`, `reject`), else null | 2299 | `from` | string or null | branch moved: the old head (40 hex), else null | 2300 | `commits` | integer or null | branch moved: the commits the new head has that the old one has not, else null | 2301 | `target` | object or null | follow: the followed account (same keys as `actor`), else null | 2302 2303 ### `events.actor` object 2304 2305 | Key | Type | Meaning | 2306 |---|---|---| 2307 | `name` | string or null | the account's display name (the owner: `drakestapleton`); null when it has none or the key has no account here | 2308 | `did` | string | the `did:key:` of the key that signed the change or the social line | 2309 | `path` | string or null | the account's page; null when the key has no account here | 2310 2311 ### `events.target` object 2312 2313 | Key | Type | Meaning | 2314 |---|---|---| 2315 | `name` | string or null | as `actor` | 2316 | `did` | string | as `actor` | 2317 | `path` | string or null | as `actor` | 2318 2319 ### `events.repo` object 2320 2321 | Key | Type | Meaning | 2322 |---|---|---| 2323 | `owner` | string | `"drakestapleton"` | 2324 | `name` | string | repository name as in RIDS.md | 2325 | `rid` | string | `""` (bare) | 2326 | `path` | string | HTML page, `/` | 2327 | `json` | string | its `forge/repo/1` document, `/.json` | 2328 2329 Example (`GET /events.json?after=40&limit=2`, shortened): 2330 2331 ```json 2332 {"schema":"interplane/events/1","base":"/","head_seq":57,"after":40,"limit":2,"limit_requested":2,"limit_max":200,"limited":false,"events":[ 2333 {"seq":41,"time":"2026-11-14T15:02:10Z","kind":"patch_opened","actor":{"name":"fixdev","did":"did:key:z6Mk...","path":"/fixdev"},"repo":{"owner":"drakestapleton","name":"hop","rid":"z3uek...","path":"/drakestapleton/hop","json":"/drakestapleton/hop.json"},"subject":"fixture change one","path":"/drakestapleton/hop/patches/","json":"/drakestapleton/hop/patches/","source":"","verdict":null,"from":null,"commits":null,"target":null}, 2334 {"seq":42,"time":"2026-11-14T15:20:00Z","kind":"branch_moved","actor":{"name":"drakestapleton","did":"did:key:z6MkfZ...","path":"/drakestapleton"},"repo":{...},"subject":"2 new commits on main","path":"/drakestapleton/hop/compare/...","json":"/drakestapleton/hop/compare/...","source":"","verdict":null,"from":"","commits":2,"target":null} 2335 ],"count":2,"next":"/events.json?after=42&limit=2"} 2336 ``` 2337 2338 ## Pages without a JSON form 2339 2340 These answer the same bytes whatever the `Accept` header says, and their HTML names no JSON alternate. 2341 2342 - Input forms with no repository facts: `//patches/new`, `/issues/new`, `login`, 2343 `settings`. 2344 - `//compose/` is the signed-in author's preview of one composed write (session state, 2345 not repository data). 2346 - Raw bytes: `/raw//`, `/commit/.patch`, `/commit/.diff`, `/patches/.diff`, 2347 `/archive/...`, `/releases/download/...`. 2348 - Redirects stay redirects: `/pulls/` and `/pull/` (302 to `/patches/`), `/releases/latest` 2349 (302), `stars` signed out (303 to `login`), tree on a file and blob on a folder (302). 2350 - Native issue POSTs support the machine form and result documented above.