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/compare/539217d2e4a67ec266b6d88ab2f3dc882f929f46...e8ae0f2ce0e12ca87b06a1be46e8cbf5d9012aac # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## Comparing `539217d2e4a67ec266b6d88ab2f3dc882f929f46` ... `e8ae0f2ce0e12ca87b06a1be46e8cbf5d9012aac` - Merge the forge chrome for the redesigned site layout `e8ae0f2` · Drake Stapleton · 2026-11-22 18:28 · Browse - Merge the recovered commit-pinned clone panels and archive edge `fdf3c1d` · Drake Stapleton · 2026-11-22 18:28 · Browse - Recover live commit-pinned clone panels and archive edge `e2d7a25` · Drake Stapleton · 2026-11-22 18:23 · Browse - Fix forge chrome for the redesigned site layout `0f677ec` · Drake Stapleton · 2026-11-22 18:19 · Browse 16 files changed, +469 -105 README.md +14 -2 browse/a_core.om +4 -0 browse/c1_page.om +16 -2 browse/tests/stubutil.om +1 -0 dl/tests/pinned-archives.sh +83 -0 docs/API.md +8 -0 docs/CONTRACT.md +25 -0 docs/FEATURES.md +4 -3 infra/bazinga/omega-read +22 -7 infra/nginx/snippets/bazinga-git.conf +2 -2 server/chromegen.om +90 -44 server/pages.om +12 -5 server/tests/sitechrome.sh +50 -31 server/util.om +10 -0 store/clone.om +18 -9 store/tests/pinned-clone.sh +110 -0 README.md @@ -8,8 +8,12 @@ raw, source archives (zip, tar.gz), releases, Radicle patches and issues, stars, 8 8 and Radicle-key sign-in. Pages are server-rendered HTML and CSS; there is no JavaScript. Every page 9 9 wears the interplane.io header and footer (one site): `./run.sh units` generates them at every build from the 10 10 site's own source with `server/chromegen.om`, and `server/tests/sitechrome.sh` checks the result. 11 -The galaxy dark palette is taken from that same generated site :root, so the forge does not keep 12 -a second copy of the site CSS palette (the favicon and the two diff-row tints keep their own values). The galaxy tokens asset is only routed on the root 11 +Projects (the link to `/explore`) is marked current; forge controls remain a separate row. The 12 +three-column footer keeps its site structure around forge-specific fine print. The decorative rope 13 +band outside the site's footer is not copied. Header/footer rules include responsive and Strand-system 14 +overrides, including the sticky header and primary button. The dark navy palette comes from the 15 +generated site `:root`; forge aliases refer to its tokens, not a second palette (only the favicon and 16 +the two diff-row tints keep their own values). The galaxy tokens asset is only routed on the root 13 17 base, not under /forge/, so forge.css stays self-contained for both bases. visits/visits.css 14 18 already reads galaxy/tokens.css and needs no separate palette. 15 19 @@ -64,6 +68,14 @@ How the pieces fit together: `docs/CONTRACT.md`. What replaces the GitHub annoya 64 68 `FORGE_CLONE_BASE=https:////`) reads the project list from the store's `catalog.tsv` 65 69 and Git from `projects/NAME/repo.git` (`store/`, docs/CONTRACT.md section 1); `deploy` and 66 70 `restart` refuse it. Acceptance: `bash store/tests/compare.sh STORE KEY IPL_DIR`. 71 + On the repository home, the store clone panel names the displayed commit: 72 + `git clone --no-checkout && git -C checkout --detach <40-hex>`. 73 + Its ZIP and tar.gz links use `///archive/commits/<40-hex>.zip|.tar.gz`. 74 + That address is answered by the public Git edge (`infra/bazinga/omega-read`), not forged's 75 + `dl/dl.om`: only full lower-case commit IDs reachable from a public head or tag are accepted. 76 + The old `/archive/refs/heads/` addresses remain branch archives; forged's 77 + `/archive/` still redirects only when a canonical head or tag points exactly at that commit. 78 + Checks: `bash store/tests/pinned-clone.sh` and `bash dl/tests/pinned-archives.sh` (private fixtures). 67 79 68 80 ## Data 69 81 browse/a_core.om @@ -440,6 +440,10 @@ if ne st 0 440 440 ret false 441 441 end 442 442 hx = false 443 +note A full commit id wins over a same-named ref, keeping pinned page links pinned. 444 +if eq brhexseg 40 445 +k = 0 446 +end 443 447 if eq k 0 444 448 k = brhexseg 445 449 if eq k 0 browse/c1_page.om @@ -659,6 +659,14 @@ na = add tab 1 659 659 brreadme na sub e na 660 660 end 661 661 text tbnord "

This project has no README yet. A README is the page where a project says what it is and how to use it. Here are its files:

\n" 662 +note brpinhd: share the resolved commit with the header only for this render. 663 +fn brpinhd to void 664 +for i ulong 40 665 +put fpin i get gbsha i 666 +end 667 +frepohd 0 668 +put fpin 0 0 669 +end 662 670 note brhome: repo home at the default branch; 0 hands an empty repo back to the server's home. 663 671 note README first: the friendly header (frepohd), the README (or a plain note and the file list when 664 672 note there is none), then the "For developers: proof and records" section (server/pages.om fpjdev1, @@ -671,7 +679,13 @@ ret 0 671 679 end 672 680 put ftil 0 0 673 681 ftirepo 674 -frepohd 0 682 +for i ulong 40 683 +put gbref i get gbsha i 684 +put gbfr i get gbsha i 685 +end 686 +put gbrefl 0 40 687 +put gbfrl 0 40 688 +brpinhd 675 689 lsok = brrdfind 676 690 rd = and lsok gt get gbrml 0 0 677 691 if rd @@ -709,7 +723,7 @@ brloc tbblob 709 723 ret 302 710 724 end 711 725 brti tbtfil 712 -frepohd 0 726 +brpinhd 713 727 brrefbar 714 728 brcrumb 715 729 brlast browse/tests/stubutil.om @@ -18,6 +18,7 @@ global fown uchar 64 18 18 global fownl ulong 1 19 19 global frepo uchar 128 20 20 global frepol ulong 1 21 +global fpin uchar 40 21 22 global frest uchar 4096 22 23 global frestl ulong 1 23 24 global fkind ulong 1 dl/tests/pinned-archives.sh new file mode 100644 @@ -0,0 +1,83 @@ 1 +#!/usr/bin/env bash 2 +# ORACLE: exercise the deployed edge CGI's commit archives with private Git fixtures, no sockets. 3 +# The product CGI and nginx snippet stay byte-identical to their deployed copies. Only this 4 +# private executable's fixed public root is substituted. Every accepted class has a refused twin. 5 +set -euo pipefail 6 +cd "$(dirname "$0")/../.." 7 +T=$(mktemp -d /tmp/forge-pinned-archive.XXXXXX) 8 +trap '[ "${KEEP_TEST_TMP:-0}" = 1 ] || rm -rf "$T"' EXIT 9 +run() { taskset -c "${CORES:-4,5}" nice -n 10 "$@"; } 10 +pass=0 11 +ok() { pass=$((pass+1)); echo "PASS $*"; } 12 +die() { echo "FAIL $*"; exit 1; } 13 +export GIT_AUTHOR_NAME=fixture GIT_AUTHOR_EMAIL=fixture@invalid GIT_COMMITTER_NAME=fixture GIT_COMMITTER_EMAIL=fixture@invalid 14 +export GIT_AUTHOR_DATE=2026-01-01T00:00:00Z GIT_COMMITTER_DATE=2026-01-01T00:00:00Z 15 +mkdir -p "$T/public" "$T/w" 16 +git -C "$T/w" init -q -b main 17 +printf 'one\n' > "$T/w/README" 18 +git -C "$T/w" add README; git -C "$T/w" commit -qm one 19 +old=$(git -C "$T/w" rev-parse HEAD) 20 +printf 'two\n' >> "$T/w/README"; git -C "$T/w" commit -qam two 21 +head=$(git -C "$T/w" rev-parse HEAD) 22 +branch=$(printf branch | git -C "$T/w" commit-tree "$old^{tree}") 23 +tag=$(printf tag | git -C "$T/w" commit-tree "$old^{tree}") 24 +dangling=$(printf dangling | git -C "$T/w" commit-tree "$old^{tree}") 25 +git clone -q --bare "$T/w" "$T/public/fixture.git" 26 +G=(git --git-dir="$T/public/fixture.git") 27 +# Objects unreachable from main are copied explicitly, then only two get canonical refs. 28 +for c in "$branch" "$tag" "$dangling"; do "${G[@]}" fetch -q "$T/w" "$c"; done 29 +"${G[@]}" update-ref refs/heads/other "$branch" 30 +"${G[@]}" update-ref refs/tags/only-tag "$tag" 31 +"${G[@]}" update-ref refs/noncanonical/hidden "$dangling" 32 +blob=$("${G[@]}" rev-parse "$head:README") 33 +sed "s|^export GIT_PROJECT_ROOT=.*|export GIT_PROJECT_ROOT=$T/public|" infra/bazinga/omega-read > "$T/omega-read" 34 +req() { 35 + local path=$1 method=${2:-GET} 36 + run env PATH_INFO="/fixture$path" REQUEST_METHOD="$method" QUERY_STRING= sh "$T/omega-read" > "$T/response" 37 + # CGI headers end in CRLF CRLF. Keep archive bytes unmodified. 38 + if head -1 "$T/response" | grep -q '^Status:'; then 39 + status=$(head -1 "$T/response" | tr -d '\r' | cut -d' ' -f2) 40 + else status=200; fi 41 + LC_ALL=C awk '{ n += length($0) + 1; if ($0 == "\r") {print n; exit} }' "$T/response" > "$T/offset" 42 + dd if="$T/response" of="$T/body" bs=1 skip="$(cat "$T/offset")" status=none 43 + LC_ALL=C awk '$0 == "\r" {exit} {sub(/\r$/, ""); print}' "$T/response" > "$T/headers" 44 +} 45 +accept() { 46 + local sha=$1 fmt=$2 path=${3:-/commits/$1.$2} 47 + req "$path" 48 + [ "$status" = 200 ] || die "$path status $status" 49 + grep -qF "Content-Disposition: attachment; filename=fixture-$sha.$fmt" "$T/headers" || die disposition 50 + grep -qF "ETag: \"$sha\"" "$T/headers" || die etag 51 + grep -qFx 'Cache-Control: no-cache' "$T/headers" || die cache 52 + local mime=application/zip; [ "$fmt" != tar.gz ] || mime=application/gzip 53 + grep -qFx "Content-Type: $mime" "$T/headers" || die type 54 + "${G[@]}" archive --format="$fmt" --prefix="fixture-$sha/" "$sha" > "$T/want" 55 + cmp -s "$T/want" "$T/body" || die "$path body" 56 + ok "$path status, type, disposition, cache, etag and archive bytes" 57 +} 58 +refuse() { req "$1"; [ "$status" = 404 ] && [ ! -s "$T/body" ] || die "$1 expected empty 404"; ok "NEG $1 empty 404"; } 59 +for sha in "$head" "$old" "$branch" "$tag"; do 60 + for fmt in zip tar.gz; do accept "$sha" "$fmt"; refuse "/commits/${sha:0:39}.$fmt"; done 61 +done 62 +refuse "/commits/${head:0:7}.zip" 63 +for sha in "$dangling" "$blob" `0000000000000000000000000000000000000000` "${head^^}" "${head}0"; do refuse "/commits/$sha.zip"; done 64 +for suffix in '' .tar .tgz .ZIP .zip. .zip/; do refuse "/commits/$head$suffix"; done 65 +req "/commits/$head.zip" HEAD 66 +[ "$status" = 200 ] && [ ! -s "$T/body" ] || die 'HEAD response' 67 +ok 'HEAD has the same archive headers and no body' 68 +req /refs/heads/main.zip 69 +[ "$status" = 200 ] || die 'old branch route' 70 +"${G[@]}" archive --format=zip --prefix=fixture-main/ "$head" > "$T/want" 71 +cmp -s "$T/want" "$T/body" || die 'old branch bytes' 72 +ok 'old /refs/heads/main.zip keeps its branch prefix' 73 +refuse /refs/heads/missing.zip 74 +req /archive/main.zip 75 +[ "$status" = 200 ] && cmp -s "$T/want" "$T/body" || die 'old CGI archive alias' 76 +ok 'old CGI /archive/main.zip alias stays equal' 77 +# Mutant: remove reachability check. The same dangling request must now violate the refusal. 78 +sed '/\[ -n "$visible" \] || notfound/d' "$T/omega-read" > "$T/mutant" 79 +mv "$T/omega-read" "$T/good"; mv "$T/mutant" "$T/omega-read" 80 +req "/commits/$dangling.zip" 81 +[ "$status" = 200 ] && [ -s "$T/body" ] || die 'reachability mutant not detected' 82 +ok 'NEG reachability mutant exposes hidden commit and fails the refusal oracle' 83 +echo "pinned archives: $pass pass, 0 fail" docs/API.md @@ -129,6 +129,14 @@ All keys of the repo summary above, then: 129 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 130 | `counts` | object | real clone, download and seeding numbers, below | 131 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 + 132 140 ### `counts` 133 141 134 142 Every number comes from a log or table that exists on the node, and says which. Nothing is seeded, docs/CONTRACT.md @@ -88,6 +88,24 @@ store-reading build never writes `server/forged`. The store layout and its rules 88 88 CONTRACT.md v0; `store/repos.om` says which of them forged checks. `store/tests/compare.sh` is the 89 89 acceptance test. 90 90 91 +The store repository home resolves its default branch once and pins the README/file links, 92 +Files tab and clone panel to that commit. `brpinhd` copies `gbsha` into `fpin` (uchar 40), calls 93 +`frepohd 0`, then clears `fpin[0]`; tree pages use the same wrapper. `fputpin` writes its 40 bytes. 94 +A full 40-hex ref segment is interpreted as a commit even if a branch has that exact name. 95 +Without `FORGE_CLONE_BASE`, the Git command is omitted but the pinned archive links remain. 96 +An empty repository has no clone panel. 97 + 98 +The public Git edge, not `dlroute`, answers 99 +`/drakestapleton//archive/commits/<40-lower-case-hex>.zip|.tar.gz` 100 +(`infra/nginx/snippets/bazinga-git.conf`, `infra/bazinga/omega-read`). The object must be a commit 101 +reachable from a root `refs/heads` or `refs/tags` in the public filtered Git mirror, including 102 +older history and commits on another branch or only under a tag. The download's prefix is 103 +`-/`, ETag is the quoted SHA, and Cache-Control is `no-cache`. HEAD sends no body. 104 +Malformed paths fall through to forged; a well-formed but unknown, non-commit or unreachable SHA 105 +gets an empty 404 from the edge. Existing branch archives retain their branch-based prefix. 106 +Forged's legacy `/archive/<7..40-hex>` remains a 302 only for a commit at a canonical head or tag 107 +tip, otherwise 404. It does not implement the edge's `/archive/commits/` path. 108 + 91 109 ## 2. Request (set by the server before dispatch; read only) 92 110 93 111 Scalars are `global X ulong 1`, read with `get X 0`. @@ -219,6 +237,13 @@ The edge CSP forbids inline `style=` and `