rithub-beat-github-2026-11-18.md UI findings, round 2 (live at rithub.dev): 1. Mobile repo file-list commit-message overflow (finding #1, re-opened). The 2026-11-18 mobile fix forced .repo-file-item out of stock Gitea's display:contents, which pulled it out of #repo-files-table's own 3-column CSS grid -- each row was then auto-placed as one opaque grid item sized by its own min-content width (measured live: 911.625px on a 390px screen), blowing commit-message text off the right edge with no ellipsis. Fixed by collapsing #repo-files-table to a single grid column at this breakpoint AND adding min-width:0 to the grid/flex items so the existing overflow:hidden;text-overflow:ellipsis on .repo-file-cell.message can actually do its job. Verified live: item width 372px, message cell 348px, body.scrollWidth == innerWidth (390), ellipsis renders correctly across every row including nested paths. 2. Explore leads with real public repos (finding #3, the "not done" half from the prior pass). New templates/explore/repos.tmpl (override) + explore/featured.tmpl: a curated "Featured" section above the raw bulk list, shown on the default unfiltered first page only. The 8 pinned repos were chosen via a real Jev (TypeSafe System One) score per repo ("how strong a flagship example is this to showcase" -- stars are 0 across the board this early, so quality-of-description was the real signal); apps/gitea/scripts/explore-featured-refresh.sh (installed on railyard-box's crontab, daily) refreshes each pinned repo's live stars/description/push-time and re-sorts by that -- static template content, no engine/Go code change, self-gated restart (load1<6, no other build) matching oauth-auto-import.sh's pattern. 3. Home page links to /mcp-docs ("Works with your coding agent") -- a single tertiary text link under the two hero CTAs, not a third pill button. 4. Full 390px/1440px sweep of home, explore, repo, issues, pulls, login, signup, mcp-docs: no console errors, no horizontal page overflow, no regressions. Screenshots: gtm/qa-shots/rithub-ui-round2-2026-11-19/. 3 container restarts this pass (gated on load1<6 + no build each time): 1 shipped the intended fix set, 2 were corrective after live DOM/CSS-cascade inspection (CDP `inspect`) proved the first file-list fix attempt hadn't actually closed the overflow -- documented honestly in the CSS comments and plans/railyard.md rather than claiming success from the screenshot alone.
apps/gitea — Railyard's code hosting (Rithub), on Gitea
Decision (2026-10-15): Railyard's code-hosting service ("Rithub + Rit" on
the roadmap, Dec 21/28 milestone) is go-gitea/gitea (MIT, 58k+★, actively
maintained) — composed as its own container, not hand-built. This closes the
roadmap gap named in plans/OSS-ADOPTION-2026-10-15.md ("Railyard" section,
row 1): packages, LFS, wikis, and Actions CI were each a multi-week
from-scratch build; Gitea ships all four today.
Inventory: what existed, what Gitea covers, what's kept
Two prior, independent efforts exist in this repo for the same product slot. Neither is deleted (owner rule: never delete sources/features) — both stay on disk, now documented as superseded by this decision for new work:
| Path | What it is | Status | Disposition |
|---|---|---|---|
apps/rit |
Library-first Rust reimplementation of Git's object/index/ref/pack model (hash-object, pack receive/upload, interop-tested against real git) |
Phase-complete for its own scope; genuinely impressive, byte-for-byte Git-compatible | Kept, not deleted. No longer the dependency of a forge build — see below. |
apps/rithub |
Self-hostable Rust git forge built on rit: full collaboration core (issues, PRs with merge/squash/rebase, review, forks + cross-repo PRs), web UI, RBAC, protected branches, webhooks, releases, audit log, search, Rago/Mint billing hook. Self-contained git plane (no system git binary needed). Its own README states it directly: "Actions/runners, packages, wikis/projects, OAuth/SSO, and a SPA remain ahead" — i.e., exactly this roadmap milestone's scope was its open gap. |
Phase 7 of its own roadmap; not deployed anywhere | Kept, not deleted; superseded for this milestone. The remaining gap (packages/LFS/wikis/Actions/OAuth) is now closed by apps/gitea instead of being built from scratch in Rust. If rithub's deeper collaboration/billing model (native Rago/Mint integration, no git binary dependency) is wanted later, it remains available to finish independently — the two are not mutually exclusive, just not both being built at once. |
apps/rithub-forge |
An uncommitted, in-progress Forgejo (Gitea's AGPL/GPL community fork) adoption from an earlier session: full Forgejo source checkout (~593 MB, its own nested git repo cloned from codeberg.org/forgejo/forgejo), rebranded via custom/ overlay, with a real integrations/railyard/ billing bridge (webhook → Rago → Mint) and SSO/OIDC docs. Its own README already flagged itself as "a separate, optional... deployment kept for teams that need Forgejo-only features," distinct from the Rust rithub which it called "the shipped Rithub product." |
Never committed to git (sits as untracked files in the main ~/products/railyard checkout); never deployed |
Kept on disk, untouched by this change, documented here. Superseded as the adoption decision: the owner's current instruction is explicitly Gitea (MIT), not Forgejo (GPL-3.0-or-later for Forgejo's own code going forward) — license cleanliness was exactly why the OSS-ADOPTION doc picked Gitea over Forgejo as the runner-up. integrations/railyard/webhook-bridge/bridge.mjs in this directory is adapted from (not copied verbatim into history — the source was never committed) that experiment's bridge, which already handled both Forgejo's and Gitea's webhook header names. |
Net: three codebases now exist side by side for the same product slot
(rit+rithub Rust-native, rithub-forge Forgejo/uncommitted, gitea
official/deployed). Nothing was deleted. apps/gitea is the one wired into
the console and documented for production deploy.
What's here
docker-compose.yml— officialgitea/gitea:1.23image +postgres:17.app.iniis generated entirely fromGITEA__<SECTION>__<KEY>environment variables (Gitea's documented environment-to-ini mechanism) — no app.ini is committed. See the file's own comments for two non-obvious gotchas found while proving this locally:- The Docker image's
CustomPathis/data/giteaitself, not/data/gitea/custom— branding overlays bind-mount./custom/public → /data/gitea/publicand./custom/templates → /data/gitea/templatesindividually, never the whole/data/gitea(that would shadowconf/,ssh/, the sqlite/log dirs that also live there). - Root-level
app.inikeys with no[section](likeAPP_NAME) map toGITEA____KEY(empty section segment), notGITEA__APP_NAME. - Don't set
GITEA__server__START_SSH_SERVER=trueand leave the base image's own passthrough OpenSSH running — they fight over container port:22and crash-loop. LeaveSTART_SSH_SERVERunset (the passthrough default);SSH_PORTis only the port advertised in clone URLs.
- The Docker image's
.env.example— copy to.env, fill in secrets.custom/— branding overlay:public/assets/img/logo.svg+favicon.svg(Rithub "R" mark),public/assets/css/railyard-brand.css(brand color CSS-variable overrides),templates/custom/header.tmpl(injects the stylesheet),templates/custom/footer.tmpl(brand + MIT attribution line).integrations/railyard/— the Rago/Mint billing bridge (dependency-free Node, HMAC-verified both ways) and its unit tests (16/16 passing,node --test integrations/railyard/tests/bridge.test.mjs).deploy/RUNBOOK.md— first production deploy on railyard-box (Oracle A1 ARM64), Cloudflare Tunnel for HTTPS, SSH on a non-22 port via the VCN security list,gitea dump/gitea restorebackups, rollback.
SSO (backlog item 5, closed)
apps/console is now a real OIDC provider (lib/oidc.ts: RS256 id_token and
a self-contained RS256 access_token, authorization-code grant, single-use
codes in railyard.oidc_codes): discovery at
/.well-known/openid-configuration, /oidc/{authorize,token,userinfo,jwks}.
A visitor who is not yet signed into Console is bounced through its existing
sign-in and comes straight back to finish the OIDC flow, so one session
covers both Console and Rithub. It is gated on two console env vars
(RAILYARD_OIDC_SIGNING_KEY, generated with
apps/console/scripts/gen-oidc-key.mjs; RAILYARD_OIDC_CLIENTS, a
{client_id: {secret, redirect_uri}} map) -- unset, every /oidc/* route
answers 503 and Gitea just keeps its native accounts. The exact
gitea admin auth add-oauth registration command is documented inline in
docker-compose.yml's railyard-sso block.
Local proof (2026-10-15, this session)
Ran via docker-compose up -d on this machine (Colima, arm64 host — the
exact target architecture as the Oracle A1 box) against the official
gitea/gitea:1.23 + postgres:17 images, both pulled as native arm64
manifests (no emulation):
- Branding: page
<title>= "Rithub (by Railyard)", custom logo + favicon + brand CSS served (200s), custom footer line rendered with MIT attribution to Gitea — confirmed viacurland three screenshots (desktop 1440×900 home + repo, mobile 390×844 repo) at/tmp/railyard-git-*.png. - Admin user created (
gitea admin user create --admin), API token minted. - Repo created via API; HTTPS push (
git pushoverhttp://with a token in the URL) — works. - SSH push — registered a public key via the API, pushed a second commit
over
ssh://...@localhost:2222— works. - Git LFS —
git lfs track "*.bin", pushed a 200 KB binary, confirmed tracked viagit lfs ls-filesand visible in the repo file list — works. - npm package registry —
npm publishagainsthttp://localhost:3300/api/packages/<owner>/npm/with a.npmrctoken — published@railyard/proof-pkg@1.0.0, confirmed via the packages API — works. - Wiki — created a page via the wiki API — works.
- Repo's own tab bar confirms Issues, Pull Requests, Actions, Packages, Projects, Wiki are all present and enabled.
Local proof was torn down after screenshots (docker compose down, image/
volume cleanup) — disk discipline, nothing proof-only is left running.
Console wiring
apps/console's left nav has a Code entry pointing at RAILYARD_GIT_URL
(default https://git.ereboslab.com) — see lib/config.ts and
components/Nav.tsx.
Production deploy (2026-10-19)
Live on railyard-box: docker compose stack at /srv/railyard-gitea
(web on host port 3350, Postgres on 5434 -- 3300/3400/3100/5433 were already
taken by rago/mint/relay/the shared Postgres), fronted by Caddy
(infra-box/caddy/sites/gitea.caddy, CADDY_SITES += gitea) with a
Let's Encrypt cert, not the Cloudflare Tunnel the original RUNBOOK draft
proposed -- every other box-hosted Railyard service (rago/relay/mint/errors)
already uses plain Caddy + a proxied Cloudflare DNS A record to
130.61.113.116, so this follows the same, already-proven pattern instead of
introducing a new one. DNS: git.ereboslab.com A record added via the
Cloudflare API (not git.railyard.ereboslab.com -- no other service here
uses a railyard. prefix). Verified live: https://git.ereboslab.com/ 200s
with the "Rithub (by Railyard)" title, logo/branding assets 200, admin
account caelum0x created.
Not yet done (owner step, OCI Console, networking only): the Oracle VCN
security list rule for inbound TCP 2222 (git-over-SSH) -- HTTPS clone/push
and the web UI work today; SSH clone needs that one rule added, same as
deploy/RUNBOOK.md step 3 already documented.
CI runner deployed (2026-10-20)
Closes a real gap found in a GitLab CE / GitHub Enterprise Server
comparison: GITEA__actions__ENABLED=true has been set since the first
deploy, but with no runner registered the Actions tab was cosmetic — a
pushed .gitea/workflows/*.yml job would queue forever. act_runner
(gitea/act_runner:0.6.1, pinned) is now a real service in
docker-compose.yml: DooD via the mounted host docker socket, registered
against the gitea container over the internal compose network
(http://gitea:3000, not the public HTTPS hostname), credentials persisted
in the gitea-runner-data volume after first boot. See
deploy/RUNBOOK.md's "act_runner" section for the registration command and
an end-to-end smoke-test workflow. Deployed and verified live on
railyard-box. Live proof (2026-10-20, this session): registered the runner
(docker exec -u git railyard-gitea-gitea-1 gitea actions generate-runner-token
docker compose up -d act_runner) — logs showrunner: railyard-box ... declare successfullywith labels[ubuntu-latest ubuntu-22.04 ubuntu-24.04]. Created a throwaway repo (caelum0x/ci-runner-proof), pushed a real.gitea/workflows/ci.yml(runs-on: ubuntu-latest, oneechostep) over HTTP with a scoped API token, and polledGET /api/v1/repos/caelum0x/ci-runner-proof/actions/tasks: the runner pulleddocker.gitea.com/runner-images:ubuntu-latest, ran the job in a sibling container (GITEA-ACTIONS-TASK-1-WORKFLOW-JOB-smoke-...), and the run'sstatuswentqueued->running->successwithin about a minute of the push. Proof repo deleted afterward (DELETE /api/v1/repos/...,204); the two scoped proof tokens remain on the admin account under Settings -> Applications (safe to revoke manually).
SEO landing pages (2026-11-16) — written to repo, not yet deployed
Added two static answer pages for searched questions, placed under
custom/public/assets/seo/ because Gitea's static-file serving only covers
paths under /assets/* (verified live: /assets/img/logo.svg → 200; a
top-level path like /self-hosted-github-alternative.html risks colliding
with Gitea's own :username catch-all route, unverified and not worth the
risk to test against the live instance):
custom/public/assets/seo/self-hosted-github-alternative.html— "self-hosted github alternative" (direct answer, migration steps, FAQ +FAQPageJSON-LD, CTA).custom/public/assets/seo/github-account-flagged-move-repos.html— "github account flagged / suspended, how to move repos" (same structure).custom/public/assets/seo/sitemap-seo.xml— a sitemap fragment listing both URLs.- Both pages cross-link each other and linked from the brand footer (
templates/custom/footer.tmpl) so they're reachable once live.
Real limitation found: https://git.ereboslab.com/sitemap.xml is Gitea's
own dynamic route (a sitemapindex pointing at
/explore/users/sitemap-1.xml and /explore/repos/sitemap-1.xml,
code-owned, live-verified 2026-11-16) — a static file at that same path from
custom/public cannot add entries to it. sitemap-seo.xml above is a
separate file at /assets/seo/sitemap-seo.xml; it is not referenced by the
real /sitemap.xml or by robots.txt (also a Gitea-owned dynamic route).
Closing this gap for real needs either a Gitea source patch to the
sitemap-index handler, or a Caddy-level rule that serves/merges an extra
sitemap before the request reaches Gitea — out of scope for this pass.
Not deployed. Blocker, not worked around: git.ereboslab.com is an
*.ereboslab.com consumer-facing product site on railyard-box, which falls
under the standing *.ereboslab.com consumer-site deploy freeze
(feedback-ereboslab-freeze-scope-2026-11-11, reconfirmed 2026-11-12 for
this exact box in the Toolgate entry of
project-railyard-is-scribase-toolgate-2026-11-12) and under the separate
"no server deploy without the product's own domain" rule
(feedback-no-server-deploy-without-domain-2026-11-11 — Rithub's domain
decision is explicitly still deferred, plans/rithub-master-plan-2026-11-12.md
§3.1). These two pages are committed to this repo, ready to ship via the
existing deploy/RUNBOOK.md rsync step (custom/public is already bind-mounted
read-only into the live container), the moment either the freeze lifts for
this host or Rithub gets its own domain. Do not deploy them to
git.ereboslab.com without a fresh owner go-ahead on one of those two, and do
not stand up a new domain to route around this.