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.
Dependency-free KEY=VALUE loader in ecosystem.config.cjs, same
/etc/products/*.env convention relay/openjev already use on railyard-box,
so the agent PR loop's Claude call has a real key in production without
adding a dotenv dependency. No-op (empty object) when the file isn't
present, e.g. local dev.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Repo owners can now mint a token limited to ONE repo and a chosen scope
(read / pr / full) instead of handing an agent their full account token --
via one MCP tool call (mint_agent_token) or the plain /agent-tokens
settings page. scopeGuard.mjs enforces the fence on every request before
it reaches the real Rithub API; a pr-scope token can open branches/PRs/
issues/comments but never merge, touch another repo, or mint itself a
broader token (the 5 token-management tools are ownerOnly and refused
outright for an agent-scoped session).
enable_agent_on_repo turns on the second half: labelling any open issue
"agent" makes bin/agent-worker.mjs (a separate pm2 poller) read the issue,
call the Anthropic Messages API for a structured fix, commit it on a new
branch, and open a pull request that closes the issue -- commenting on the
issue when it starts and when it opens the PR. The worker uses the same
scope-guarded client a human-held token would be, so it can't exceed the
fence either.
Verified end to end against production: a throwaway mail.tm user, a real
one-line bug, mint/list/revoke (plus a confirmed-blocked self-escalation
attempt), enable_agent_on_repo, an agent-labelled issue, one real
pollOnce() run against the live Anthropic API that produced a correct
one-line fix, a PR that closed the issue on merge, and the REST
/agent-tokens mint/list routes -- all cleaned up after (repo deleted, user
purged, token deleted, mail.tm inbox deleted). 27/27 unit tests pass.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
One endpoint (https://rithub.dev/mcp) any MCP agent (Claude Code, Cursor,
Codex) can point at with just a Bearer access token: list_repos,
create_repo, get_file, search_code, list_issues, create_issue,
comment_issue, list_pull_requests, get_pull_request_diff,
create_pull_request, create_branch_and_commit_files, merge_pull_request,
import_from_github. Stateless proxy over the live Rithub REST API using
the official MCP TypeScript SDK (Streamable HTTP transport) -- no
credential stored server-side.
Verified end to end against the live rithub.dev API with a throwaway
mail.tm user: create_repo -> commit 2 files on a branch -> open PR ->
comment -> merge, plus import_from_github, all via a real MCP client.
Throwaway user, its repos, and its token fully cleaned up after.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
UI study (plans/rithub-beat-github-2026-11-18.md) top-2 gaps, fixed on
rithub.dev (railyard-gitea-gitea-1):
1. Repo file browser at 390px was a cramped single-line 3-col grid
(icon+name+message+age all on one row, live-verified via gstack
screenshot). Added a @media(max-width:768px) override in
theme-rithub.css that stacks each #repo-files-table row into a
2-line card (name full-width, commit message + age below in small
grey text), GitHub-mobile style. Issue/PR list pages were already
responsive and untouched.
2. Issues/PR list pages rendered a blank white area when empty, no
icon/copy/CTA (inconsistent with Actions' own empty state). New
custom/templates/shared/issuelist.tmpl override (byte-for-byte
upstream plus one added block) renders an icon-only empty state +
"New Issue"/"New Pull Request" CTA when a repo's issue/PR list is
empty. Styled in theme-rithub.css, Apple rules (neutral + one
accent, no emoji, no gradients).
3. locale_en-US.ini: "Return to Gitea" -> "Return to Rithub" (error
page fallback link), webhook type label "Gitea" -> "Rithub" (repo
settings > webhooks > add webhook dropdown). Route/URL segment
unchanged (still /settings/hooks/gitea/new, a Go-level constant);
only the visible label changed.
Also made 9 retired/deprioritized repos private via the API (never
deleted) so Explore stops leaking them: caelum0x/{vcpeer-book,
vcpeer-live,vcpeer-share,vcpeer-suite,darkvol,zeroimpact,
recoder-agent-os,recoder.xyz}, erebos-labs/aeonrift -- all confirmed
retired/parked in plans/darkvol.md, plans/KNOWLEDGE-DIGEST-2026-11-17.md
and the VCPeer/Recoder deletion memory note. No DB/API change needed
in this repo for that part.
CSS cache-bust bumped v5->v6 in header.tmpl (Cloudflare caches these
assets, no purge-scoped token available).
Live-verified: gstack screenshots at 390x844 and 1440x900 (home, repo,
issues, pulls, explore, login, sign-up) in
gtm/qa-shots/rithub-ui-fix-2026-11-19/; container restarted once after
load1 dropped below the 6 gate; both "Sign in with GitHub" and
"Sign in with Google" confirmed present pre- and post-restart.
Signup-form Cloudflare Turnstile blocked a scripted mail.tm signup
(owner-only step per standing rule -- noted, not forced).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- apps/rit: `rit login` (PKCE OAuth2 against a new first-party "Rit CLI"
Gitea app, loopback callback, no token paste) and `rit import github`
(lists own repos+forks via `gh auth token`, smallest-first, skip-
existing, mirror=true). Wired as a transparent credential fallback into
remote.rs so push/fetch/pull/clone/issue/pr all work after one login.
`rit push` also syncs a `github` remote if present via system git.
- apps/gitea/scripts: oauth-auto-import.sh (path 1, cron-driven, triggered
by Gitea's own GitHub OAuth login source, flock+load-gated) and
rithub-agent.sh (path 3, plain-words trigger) share lib/bulk-migrate.sh
as their core.
- Found+fixed two real API bugs via live testing against rithub.dev
(MigrateRepoOptions.service is a string not an int; a bash bool-
interpolation bug), and one real production bug (orphan GitHub comments
on a deleted issue/PR 500 Gitea's comment-import phase even though the
repo+code already landed -- now detected and reported as a partial
success with a note instead of a false failure).
- Full real end-to-end verification with a throwaway mail.tm Rithub user,
fully cleaned up after. 121/121 existing rit tests still pass.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
rit status was ~4x slower than real git on a 10,500-file monorepo
(0.48s vs 0.12s avg, 3 runs) because tracked_status() always read+
SHA-1-hashed every tracked file sequentially — it never had git's
mtime-based stat-cache skip (index.rs's parse/serialize already zero
out ctime/mtime/dev/ino on every write, so that fast path isn't wired
up yet; flagged in plans/rithub-beat-github-2026-11-18.md as a
follow-up).
Fan the same per-file stat+read+hash work out across a bounded thread
pool (available_parallelism, capped at 32 workers, only kicks in above
64 entries) instead. Each entry's check is already independent/
read-only, so this is a pure performance change: chunks stay
contiguous in index order and are reassembled in order, preserving
the exact prior first-error-in-index-order semantics and byte-
identical status output (diffed before/after on the same tree).
Before/after on this repo (10,500 tracked files, 3-4 runs each):
git status: ~0.12s
rit status before: ~0.48s (4.0x slower than git)
rit status after: ~0.23s (1.9x slower than git) -- 2.1x faster than before
All 34 real-git interop tests still pass unchanged.
Measured funnel showed home->sign_up click-through already fixed (ef2768be);
remaining friction was on the sign_up page itself: bare "Register" card with
no value prop, a visible Turnstile checkbox, and a redundant second password
field. Template-only overrides (no Go/JS-bundle fork):
- signup_inner.tmpl: one-line "free, no card" + GitHub-import promise under
the header; password mirrors into Confirm Password as typed (field stays
real/editable, backend retype-match validation untouched).
- captcha.tmpl + footer.tmpl: Gitea's bundled captcha.ts hardcodes
{sitekey,theme} and ignores any data-appearance attribute, so renamed the
cfturnstile div so Gitea's own initCaptcha() no-ops, and render the real
Turnstile widget ourselves via the custom/footer.tmpl script hook with
appearance:'interaction-only' — same challenge, no visible checkbox for
well-behaved visitors, Siteverify still runs server-side on submit.
Verified live: form renders clean (no checkbox) at 1440px and 390px, invalid
captcha correctly still errors ("The CAPTCHA code is incorrect"), password
mirror works, post-login landing reaches the GitHub importer in one click.
Implements the honest, one-time nudge: finds real Rithub users (excludes
caelum0x and every QA/mail.tm test account by email domain + username
pattern) with 0 repos, and emails each one exactly once via the existing
arhan@scribase.com SMTP mailbox (same lib/smtp.mjs nodemailer wrapper the
outbound engine uses) — idempotent via a persisted sent-log on box1, real
List-Unsubscribe mailto header, no campaign/suppression-list reuse (this is
a transactional nudge to an existing registered user, not cold outreach).
Dry-run and --live both verified against the real railyard-box user list:
correctly finds exactly 1 real candidate (harish, 0 repos) and correctly
excludes caelum0x + both QA accounts (rithubqatester1118, rj11186). --live
correctly held rather than sending: arhan@scribase.com's daily cap was
already exhausted (25/22) from unrelated outreach work earlier today. Ready
to run once the cap resets.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Found during a full new-user walkthrough (signup -> import -> clone -> push
-> PR -> merge -> issue -> CI -> Ritgram connect -> link repo -> post):
- apps/gitea/custom/options/locale/locale_en-US.ini: the Actions tab's
empty-state ("There are no workflows yet") said "Gitea Actions" twice,
user-facing on every repo with no workflow yet. Now says "Rithub Actions".
- Ritgram's "Continue with Rithub" OAuth login/register buttons requested
scope=read:user only, so GET /forges/gitea/repos 500'd for every connected
user ("token does not have at least one of required scope(s),
required=[read:repository]"). Added read:repository to the authorize URL
in both login/page.tsx and register/page.tsx.
- RepoLinker's "My Repos" tab called githubService.getProjects() only, so a
Rithub-only user's own repos never appeared (My Repos (0) even with a real
repo). Now reads forgeService.list()'s connected forges and merges
forgeService.myRepos() (the existing GET /forges/:forge/repos endpoint,
already implemented backend-side but never called from the web app) with
the GitHub path.
- repositoryRouting.ts's parseRepositoryInput only recognized github.com
URLs, so pasting a real rithub.dev repo URL into the repo picker fell
through to "No repositories match your search." Now recognizes rithub.dev
(and git@rithub.dev: SSH) the same way as github.com.
- repositoryService.ts's searchRepositories() merged the cached DB with a
live GitHub search only; a brand-new, never-cached Rithub repo was
unsearchable by name. Wired in the Gitea adapter's already-built
searchRepos() as a third live source, same pattern as the GitHub one.
Verified live: Actions empty-state now says "Rithub Actions" (0 "Gitea"
text) on a fresh repo; backend tsc --noEmit and web tsc --noEmit both clean.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Independent verification of the 8-page SEO batch (1330517a) found
github-actions-minutes-ran-out.html and github-lfs-storage-quota-exceeded.html
stated GitHub's old, retired billing model as current fact, confirmed against
live GitHub docs:
- Actions: page said flat per-plan minute quotas (2,000/3,000/50,000 min) at
a flat $0.008/min Linux rate. GitHub now bills a monthly dollar amount
($12/$18/$300 Free/Team/Enterprise Cloud) at per-OS per-minute rates
(Linux 2-core $0.006, Windows $0.010, macOS $0.062) — rewrote title meta,
FAQ JSON-LD, and body table/copy to the real model while keeping the
~2,000/3,000/50,000-minute Linux-equivalent framing for readability.
- LFS: page said 1 GB free storage/bandwidth with $5/50GB data packs.
GitHub's current docs: 10 GiB free on Free/Pro, 250 GiB on Team/Enterprise
Cloud, and data packs were removed in favor of per-GB metered billing —
rewrote FAQ JSON-LD, the free-tier table, and body copy to match.
Redeployed both files to railyard-box (scp + cp into the read-only
custom/public bind mount, no gitea restart), backed up pre-change state to
/srv/_rollback/railyard-gitea-custom-pre-seo-billing-numbers-fix-20261118T165446Z.tgz
first. Live-verified 200 on both URLs with the corrected numbers present.
The other 6 pages in the batch (API rate limit, 2FA lockout, self-hosted
runner security, GitLab comparison, self-hosted PRs, Packages storage cost)
were checked against live GitHub docs too and are accurate as shipped.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
8 new static answer pages under apps/gitea/custom/public/assets/seo/,
each verified against reddit/HN as a real recurring search (minutes
cap, API rate limit, self-hosted runner security, GitLab vs GitHub vs
self-hosted, 2FA lockout, LFS quota, PR support on self-hosted git,
packages/registry storage cost), none duplicating the 20 already-live
pages. FAQPage JSON-LD, CTA to signup + GitHub importer, reciprocal
footer links across all 28 pages, sitemap-seo.xml updated to 28 URLs.
Deployed to railyard-box (scp into the read-only custom/public bind
mount, no gitea container restart). Live-verified 200 on all 8 URLs +
sitemap. IndexNow submitted, HTTP 200.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot training opt-out, "GitHub down" alternative, per-seat pricing
alternative, GitLab free-tier 5-user cap, Codeberg alternative, and
migrating issues/PRs (not just git history). All facts checked live
against github.com/pricing, GitLab's pricing page, Codeberg, and
GitHub's Copilot docs. Cross-linked into all 14 existing SEO pages'
footers and added to sitemap-seo.xml (20 URLs total). Deployed to
railyard-box (rollback tarball at /srv/_rollback/rithub-seo-pre-6newpages-20261118T124432Z.tgz
taken first) and IndexNow-pinged; all 6 URLs verified live 200 with
correct titles post-deploy.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Real PH-launch-day traffic measurement (plans/railyard.md, 2026-11-18
~12:00Z pass) found the biggest drop in the whole funnel: of 135 real
distinct homepage visitors, only 4 (~3%) ever opened /user/sign_up, and
of those 0 submitted. The homepage hero's two CTAs were icon-only
circles (person-add / GitHub mark) with no visible label -- just an
aria-label + title tooltip a mobile visitor never sees.
- home.tmpl: hero CTAs now show real text ("Sign up free" /
"Import from GitHub") next to their icons, as pill buttons. Same
explicit-exception-to-icon-only pattern already shipped and
owner-approved for the nav CTAs in 765a46c6. Subline now also states
in one line what Rithub is ("Rithub is Git hosting -- ..."), not just
the value prop.
- theme-rithub.css: .rithub-icon-btn (52x52 circle) replaced with
.rithub-cta-btn (pill, icon+text); mobile media query stacks the two
CTAs full-width and tightens hero padding so both are above the fold
even at a 390x667 viewport (verified live, not just at 390x844).
Deployed to railyard-box (apps/gitea/custom only, backed up custom/ to
/srv/_rollback first), 1 gitea restart (template change requires it,
custom/public CSS does not but was included in the same cycle). Verified
live by body content: 0 "gitea" text leaks on the new markup, CSS rule
count matches, 0 console errors, home/signup/login/explore/privacy/terms
all 200, all other containers on the box untouched (uptimes unchanged).
Verified end to end as a real logged-in user (gitea admin-CLI test
account, purged after): /repo/migrate?service_type=2 -- the exact href
the hero "Import from GitHub" button uses -- renders the real Migrate
From GitHub form directly, no redirect, confirming the importer is
reachable right after signup.
Real mail.tm Turnstile signup was attempted (gstack headed-Chrome,
fresh account, deleted after) but Cloudflare Turnstile consistently
returned "verification failed" for every attempt regardless of
click/keyboard method -- a CDP-automation-detection block on
Cloudflare's side, not a Rithub defect: 0 real visitors hit this failure
today per the same funnel measurement (no POSTs to /user/sign_up at
all), and a real human signup with a real token was already
independently verified twice earlier today by other sessions. Flagging
the same tooling limitation already logged for headed-Chrome QA.
Rollback: /srv/_rollback/railyard-gitea-custom-pre-home-cta-fix-20261118T121015Z.tgz
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Full live PH-launch walkthrough of rithub.dev as a new visitor (signup flow,
repo create, HTTPS push, issue, PR, GitHub import, settings) found one
real, reproduced leak that earlier QA passes missed: the pull-request merge
instructions box says "Merge the changes and update on Gitea." Reproduced
live on a real PR page, then source-audited the rest of the custom
locale_en-US.ini for the same word-boundary "Gitea" pattern and fixed 10
more genuinely user-reachable strings (Settings > Applications/Security/
Appearance, repo Settings > Webhooks, release-delete confirm). Left
admin/install-wizard-only strings untouched (not reachable by a normal
visitor or signed-up user).
Deployed to railyard-box (/srv/railyard-gitea/custom/options/locale/
locale_en-US.ini), gitea container recreated (locale loads at startup,
unlike the read-only static-file bind mount), live-reverified 0 "Gitea"
text leaks on the PR page and all 5 touched settings/hooks pages via a
real authenticated session (api-created QA user, deleted after). Residual,
not fixed: outbound links to docs.gitea.com/github.com/go-gitea (href
targets, not visible text) on the OAuth-scopes help link and the theme
CSS source link, and git-commit-author-email history (already documented
as an owner decision in a prior entry).
Rollback: /srv/_rollback/railyard-gitea-custom-pre-locale11fix-20261118T0136Z.tgz
on railyard-box.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
GitHub pain-point sweep for the rithub.dev PH launch: of the example
searched pain points (free private repos, GitHub Actions cost, account
flagged/suspended, self-host/data residency, one-click import) only "my
code trains someone else's AI model" had no dedicated page — the rest
were already live from prior sessions.
- New /assets/seo/code-not-used-for-ai-training.html: grounded only in
verifiable facts — no built-in Copilot-style feature, no third-party
AI pipeline reads repo contents, self-hosting removes the question
entirely. CTAs point at the real live rithub.dev signup and
GitHub-import flows (not the stale git.ereboslab.com links the older
pages use).
- robots.txt now publishes a real `Content-Signal: search=yes,
ai-input=yes, ai-train=no` directive so the page's central claim is
machine-checkable, not just prose.
- Added to sitemap-seo.xml; reciprocal internal links added from
rithub-vs-github, self-hosted-github-alternative,
private-git-hosting-free, migrate-from-github-to-self-hosted-git.
Deployed (static bind-mount, no docker build — no build was running
anywhere else on railyard-box for this change) and live-verified:
new page 200, 0 "gitea" occurrences, sitemap/robots updated live,
IndexNow key hosted at /assets/<key>.txt and submitted (202) for the
new URL since rithub.dev had no root-level IndexNow key yet.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
/docs(.md) and /llms.txt still explained own_product routing with
"(rally.*, menivor.*)" and a CLI example calling rally.email.verify --
real copy, but still naming an unintegrated product (0 rally tools
deployed). Narrowed the own_product examples to menivor.* only and swapped
the CLI example to a real, currently-reachable tool (menivor.video.status).
Fixes 4 of 7 PH-visitor QA findings (plans/railyard.md 2026-11-18), scoped
to apps/gitea only (not ritgram/toolgate):
- HIGH: /repo/migrate card and repo Signing Verification Settings both
showed literal "Gitea" text. Added a full custom en-US locale override
(Gitea's locale loader swaps the whole file per language, not a
per-key merge) with 4 lines edited, plus a migrate.tmpl override for
the one Go-hardcoded service title that locale strings can't reach.
- MEDIUM: OAuth consent screen named the founder's personal account
("created by @caelum0x") instead of the product. grant.tmpl override
drops that line.
- MEDIUM: migrate form's repo-name field could get GitHub-URL-derived
text concatenated with a quickly-typed custom name. footer.tmpl now
selects the field's value on focus so typing replaces it.
Deployed to railyard-box (bind-mount only, gitea container recreated,
ritgram/toolgate untouched) and live-verified with a throwaway Gitea
admin-CLI test user + mail.tm account, both deleted after.
HIGH finding #2 (illegible built-in image CAPTCHA) is NOT fixed here:
it's the only anti-spam gate on registration right now, so switching to
Cloudflare Turnstile needs a new Account.Turnstile:Edit-scoped API
token or an owner dashboard step — same blocker already hit for
Menivor/Bidstage/Calori-ai. Logged in plans/railyard.md.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
page_shell() builds the markdown twin link as {canonical}.md, which works
for /pricing.md and /docs.md, but for the root path (canonical == base +
"/") that produces base + "/.md" -- a real 404, since the homepage's
markdown twin is actually served at /index.md. Special-cased path == "/"
so the <link rel="alternate" type="text/markdown"> on the homepage points
at the real route.
Owner rule: say Rithub, never Gitea. /docs/rit, /docs/rithub-vs-gitlab and
/docs/rithub-vs-codeberg named the upstream engine "Gitea" 6 times total.
Kept exactly one plain upstream-license attribution line (Gitea is
MIT-licensed, on /docs/rit, the dedicated "what runs rithub.dev" page) and
rewrote every other mention to say Rithub instead (including "Gitea
Actions" -> "Rithub Actions").
Scoped to these 3 files only -- apps/ritgram/web has other agents' WIP
(feed, onboarding, ContentComposer, middleware, api.ts) left untouched.
Real third-party MCP clients (Superhuman x3, Flowy, "Toffu") registered via
DCR and tried to sign in, but 0 ever completed: /oauth/authorize's sign-in
fallback was a form asking a human to paste a raw Scribase session token,
which no real user can produce. A redirect to console.scribase.com's login
was considered and rejected (plans/railyard.md 2026-11-12): console's own
session cookie is host-only and differently named (ry_session, not
scribase_session) and there is no cross-domain bridge, so that redirect
would just strand the user on the wrong subdomain.
Real fix: Toolgate now does its own two-step email-code sign-in, entirely
on toolgate.scribase.com, against the platform's own public, unauthenticated,
enumeration-safe magic-link endpoints
(POST {api}/v1/auth/builtin/magic-link/request + /verify) -- confirmed live
to return session.token in the exact shape ScribaseIdentity.user_from_session
already verifies via GET /v1/account, so no new verification path was
needed, only a new way to obtain the token.
- IdentityProvider gets 3 new methods (supports_email_signin,
request_email_code, verify_email_code), all default-unimplemented (501)
so dev's StaticIdentity is unaffected.
- ScribaseIdentity implements them against the real magic-link endpoints.
- New routes POST /oauth/signin/email and POST /oauth/signin/code; sign_in_page
renders the real email form when the identity provider supports it (falls
back to login_url() redirect, then the old paste form, for other
deployments).
- Caught and fixed a real bug in the new code before it shipped: the
session+clear-email Set-Cookie pair was built as an array literal, which
axum's header IntoResponse impl inserts (last-wins), silently dropping the
session cookie -- a new integration test driving the full email+code+
redirect+consent flow caught it; fixed by appending both headers directly.
- 3 new unit tests (return_to/email/code validation) + 1 new end-to-end
integration test (wrong code rejected, right code opens a session, reaches
the real consent screen). cargo test --workspace: 0 failures.
Account.followers/following and User.followers/following were labeled
backwards relative to what they actually return: the "followers" field
on each model was the back-relation for the FK column that makes *this*
row the follower (i.e. "who I follow"), and "following" was the
back-relation for the FK column that makes this row the target (i.e.
"who follows me") -- exactly inverted from their names.
Swap just the two field names on each model (relation tags, FK columns,
and the Follow model's own follower/following fields are untouched, so
this needs zero DB migration). This fixes every _count.select.followers/
following read across router.ts, social.ts, resolvers.ts, adminController,
searchController, popularController, socialGraphService,
trendingRankingService, fakeAccountDetectionService, etc. in one place --
all profile header counts, followers/following list pages, and REST/
tRPC/GraphQL responses were pulling the inverted number.
followService.ts and the tRPC getFollowers/getFollowing procedures
already bypass these relations (query Follow directly by followerUserId/
followingUserId), so they were already correct and are unaffected.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Rally has 0 tools in the deployed catalog (hidden, no
SWITCHYARD_RALLY_TOKEN configured in prod) — the landing page, /docs.md
and /llms.txt still named it as an integrated "own product" in four
places (site.rs). Dropped "Rally" from all four so the copy matches what
is actually live: Scribase and Menivor.
The already-shipped follow fix (userController.ts, commit 21acdbaa) only
covered one of five real call paths for the same Follow.followerId/
followingId-is-an-Account-FK-not-a-User-id bug:
- socialController.ts's parallel POST/DELETE /api/v1/social/follow/:userId
(plus its getUserFollowers/getUserFollowing, which filtered the
Account-keyed followingId/followerId columns with a User id and
silently matched nothing).
- trpc/routers/social.ts's follow.followUser/unfollowUser/getFollowers/
getFollowing (same write bug, same silently-wrong reads, plus
getFollowers/getFollowing returned Account rows as if they were User
rows -- different id space than every other User-facing endpoint).
- trpc/router.ts's own separate users.follow mutation and users.profile's
isFollowing check (yet another independent copy of the same bug,
found via a full grep sweep, not mentioned in the prior session's
"not reachable" list).
- graphql/resolvers.ts's followUser mutation.
- services/githubSyncService.ts's syncAndAutoFollow -- wired to a real,
reachable, authenticated route (POST /api/v1/github/social/sync-follows)
that writes raw User ids into the Account-keyed FK columns via
createMany; would FK-violate for any real user who links GitHub and
has GitHub followers already on Ritgram. Fixed to resolve real Account
rows for both sides before writing, same as the other paths.
None of socialController/trpc/graphql are called by the live Next.js web
client (re-confirmed via grep across apps/ritgram/web, same finding as
the prior session), so this was latent rather than user-visible -- but
they are reachable API routes with the same 500, and githubSyncService's
route specifically is both reachable and silently broken for any real
GitHub-linked user.
Added services/followService.ts as the single shared implementation
(followUser/unfollowUser/isFollowing/listFollowers/listFollowing) and
routed every one of the above call sites through it, including
userController.ts's already-shipped handlers -- so there is now exactly
one place this fix lives instead of five independent copies.
tsc --noEmit clean.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Owner complaint: "rithub still has no google github apple auth and create
account options" -- the header only showed an icon-only Register control
(no visible text), so a first-time visitor had no obvious way to create
an account.
- head_navbar.tmpl / theme-rithub.css: the signed-out Register/Sign In
controls now show real "Sign up"/"Sign in" text next to their icons
(filled accent pill for Sign up, plain icon+text for Sign in), as an
explicit exception to the icon-only nav chrome rule. Dropped the
mismatched localized aria-label in favor of matching English text/title
(the visible text is now the accessible name).
- Login ("Register now.") and sign-up ("Sign in now!") cross-links were
already present and styled bold -- verified live, left as-is.
- docker-compose.yml: [oauth2_client] ENABLE_AUTO_REGISTRATION=true,
ACCOUNT_LINKING=auto, so a first OAuth login creates/links the account
directly, no second form.
- New apps/gitea/scripts/add-rithub-oauth-sources.sh: runs on
railyard-box (no SSH hop), reads /etc/products/rithub-oauth.env
(root-only, owner-filled) and calls `gitea admin auth add-oauth` for
GitHub/Google/Apple (Apple's ES256 client-secret JWT minted from the
.p8 key via python3+PyJWT, already present on the box). Safe to re-run;
skips sources that already exist or have no credentials. Verified live
as a no-op with an empty env file.
- rithub-oauth.env.example documents the exact env keys; a real (empty)
copy was created at /etc/products/rithub-oauth.env on railyard-box for
the owner to fill in.
- Kept the existing Mac-side add-oauth-sources.sh working (cross-
referenced, not replaced).
Deployed to railyard-box (apps/gitea only, backed up custom/+app.ini/
compose first). Verified live: header shows Sign up/Sign in text
(desktop + mobile), real signup via a mail.tm disposable address +
captcha succeeded end to end (account created, welcomed, deleted after).
No provider enabled yet -- OAuth app creation in each provider console
is an owner-only step, documented in plans/railyard.md.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Menivor's legacy /videos, /audio and /tasks/{id} routes are hidden under
MENIVOR_API_SURFACE=allowlist in production (confirmed live, 404 for every
caller). The real product surface is POST /api/v1/jobs + GET
/api/v1/jobs/{job_id}.
- menivor.video.render now POSTs /api/v1/jobs with layout fixed to
captions_only, so it never needs a paid HeyGen avatar plan (every other
layout is gated 402 sku_locked on the shared service account's free tier,
confirmed live against api.menivor.com).
- menivor.video.status now polls GET /api/v1/jobs/{job_id}, the same id
space render creates, and maps the new result_url field.
- menivor.tts.speak removed from the catalog (own.yaml + its capability
entry): there is no standalone TTS job on /api/v1/jobs, and the separate
POST /api/v1/media/audio gateway's flagship elevenlabs model can never
take a caller voice_id (AudioBody has no such field — confirmed by
reading app/domains/routing/providers/voice_gen.py), so it is a permanent
elevenlabs requires a voice_id failure for every caller regardless of
balance. The self-hosted tts/kokoro|chatterbox fallback's real
availability is unverifiable from Toolgate; shipping it would be exactly
the broken-tool-left-in-the-catalog outcome this fix exists to avoid.
Updated fixtures/contract tests for the new endpoints and response shape;
cargo test --workspace: 0 failures.
followUser/getFollowers/getFollowing/getUser's isFollowing check all wrote
and read Follow.followerId/followingId as if they held User ids, but the
Prisma schema's FK for those two required columns actually targets
Account.id. Every real follow attempt threw
"Foreign key constraint violated: Follow_followerId_fkey" and 500'd
(confirmed live with a fresh mail.tm test account against caelum0x;
confirmed via `select count(*) from "Follow"` = 0 in production).
Every *other* consumer of this table (feed ranking, recommendations,
trending, activity feed, analytics, blocking, data export, muted words,
GitHub activity sync) already reads the schema's parallel
followerUserId/followingUserId columns, which are User-keyed and nullable
-- so even a hypothetical accidental FK match would still have been
invisible to the rest of the app.
Fix: followUser now resolves both sides' Accounts (same pattern already
used in createPost/addComment) to satisfy the required followerId/
followingId FK, and also writes followerUserId/followingUserId so the row
is visible to every User-keyed reader. getFollowers/getFollowing/getUser
switched to query the followerUserId_followingUserId compound unique key
instead. Added the missing `DELETE /api/v1/users/:id/follow` route +
unfollowUser handler -- the web client's userService.unfollow() has always
called DELETE, which 404'd (no such route existed; follow was only ever a
POST toggle).
Not touched, flagged instead: socialController.ts's parallel
`/api/v1/social/follow/:userId` (POST/DELETE) and the tRPC (`/trpc`) and
GraphQL follow mutations have the exact same followerId/followingId-as-
User-id bug. None of them are called by the live Next.js web client
(confirmed via grep across apps/ritgram/web) so they're not part of the
live product surface, but they are reachable API routes with the same
latent 500 -- worth a dedicated follow-up pass.
tsc --noEmit clean.
- createCommentValidator had the same .escape() bug already fixed in
createPostValidator (0ec2f661) for post content: HTML-entity-escaped
literal "/" in comment URLs. Comment renderers (CommentThread.tsx via
linkifyText, RealTimeComments.tsx via plain JSX) never use
dangerouslySetInnerHTML, so React's own escaping is the real XSS guard;
removed .escape() to stop mangling comment URLs.
- DELETE /api/v1/auth/account 500s when the request has no
Content-Type: application/json body (req.body is undefined, not {},
so destructuring `password` off it throws). Guard with `req.body || {}`.
- The post-edit UI (/posts/:id/edit, linked from every post's own detail
page) called `PUT /api/v1/posts/:id`, which never existed on the
backend (404) -- a real public-facing stub. Added updatePostValidator,
postController.updatePost (content/hashtags/repositoryId, regenerates
link previews, replaces hashtag links) and the route, reusing the same
requireOwnershipOrRole('Post') middleware deletePost already uses.
tsc --noEmit clean.
web.search.searxng called the internal products-net SearXNG host over plain
http and the egress client's https-only policy blocked it ("only https is
allowed: http://"). EgressConfig gets a new http_hosts: exact host:port
entries (never a wildcard) derived only from SWITCHYARD_SEARXNG_URL when it
is http -- those hosts, and only those, are also exempted from the
private/internal-address block (the whole point of allowing http for an
internal Docker-network service name). Every other host keeps the existing
SSRF policy unchanged: https only, no private IPs, no other internal hosts.
4 new egress tests cover the scoping (own host only, not via allow_hosts,
not via IP literal).
Separately, Toolgate's native Menivor adapter sent the platform credential
as `Authorization: Bearer <token>`, but Menivor's resolve_principal only
accepts a raw key via `x-api-key` (Bearer is Clerk-JWT-only there) -- a
protocol mismatch that made every menivor.* call 401 regardless of token
validity (confirmed live: the same real service-account key gets 401 via
Bearer, 200 against GET /api/v1/jobs via x-api-key). Added with_api_key()
(send the credential verbatim, no prefix) and switched menivor_render/
menivor_status/menivor_tts to it; left Scribase/Rally on with_bearer
unchanged. Catalog's menivor provider credential placement corrected to
match (x-api-key, no prefix) for documentation accuracy.
cargo test --workspace: 0 failures.
- postValidator: drop .escape() from createPost's content rule (was turning
every literal "/" in a URL into /, so link detection and link previews
silently never fired on any post containing a link). React already escapes
rendered text; PostCard never uses dangerouslySetInnerHTML for post content.
- compose/edit live-preview panes DO use dangerouslySetInnerHTML for their
markdown preview and relied on the backend .escape() as their only XSS
guard -- added an explicit &/</> escape before any markdown transform so
removing .escape() doesn't open that up.
- linkify.tsx: linkifyText only matched @mention/#hashtag; added a URL pass
(same regex as extractUrls.ts) so bare https:// URLs render as a real
<a target="_blank">, with mention/hashtag matching skipping any range a URL
already claimed.
- Profile Posts tab called a route that doesn't exist
(GET /users/:username/posts, 404 on every profile). Added real
username/userId filtering to postController.getPosts (it previously ignored
both query params entirely) and pointed both frontend callers
(profileApi.ts's fetchUserPosts, ProfileTabs.tsx's dead-code twin) at
GET /v1/posts?username=. Switched ProfileTabs' infinite-scroll fetcher from
a cursor param the backend never returned to real page-based pagination.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The [migrations] section was absent from docker-compose.yml entirely,
which Gitea treats as ALLOWED_DOMAINS="" == every http(s) host allowed
via the one-click "Import from GitHub" form (/repo/migrate) -- a real
SSRF surface (internal railyard-box services, cloud metadata, etc.)
nobody had scoped down.
Deployed + verified live, twice: first pass used literal "github.com"
only and broke real imports (Gitea's GitHub migrator also dials
api.github.com/codeload.github.com, which don't match an exact
string); fixed with glob wildcards
(github.com,*.github.com,*.githubusercontent.com). Re-verified via
the real API: github.com/octocat/Hello-World migrates successfully
(3 commits, 3 branches, real content, not just an empty repo row),
gitlab.com is now rejected 422 "You can not import from disallowed
hosts" before any outbound fetch. Test repos created during
verification were deleted after.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Rithub has real signups/logins (i_like_gitea/_csrf session cookies) and
had zero legal pages -- plans/legal/rithub/{terms,privacy}.html are now
served at rithub.dev/terms and /privacy via a Caddy static handle added
ahead of Gitea's own reverse_proxy catch-all (box-only static files
under /srv/railyard-legal/rithub/, not part of this repo). Added both
links to the desktop 12-link SEO footer (rithub-footer-links-full) and
to the 390px short footer (rithub-footer-links-short), swapping out
"Is GitHub down?" there to hold the mobile list at 6 links -- that page
stays reachable from the desktop footer and the sitemap.
Verified live: /terms and /privacy both 200 text/html with correct
titles; footer links resolve and navigate correctly at 390px and 1280px;
/, /explore/repos, /user/login and a repo page still 200 after the
Gitea container restart needed to pick up the new custom/templates
footer.tmpl (Gitea caches templates in RUN_MODE=prod).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The a0b4c089 fix added body{padding-bottom} to reserve room for the new
fixed tab bar, but that's a no-op on any page taller than one screen:
body's own box is pinned to exactly 100dvh (flex-column shell,
border-box), so the padding never grows it; real content overflows past
that pinned box via a flex child's default min-height:auto, landing the
footer in the *overflow* region where body's padding has zero effect.
Confirmed live (getBoundingClientRect + forced reflow): adding the same
padding directly to .rithub-footer-links (a normal block box, not
pinned) adds a real 56px gap instead. Verified on the 3 real pages this
matters for (home, explore, a ~21000px-tall repo file list) -- footer
text now sits fully above the tab bar at the bottom scroll position,
confirmed via live screenshots at 390px. Desktop (1280px) unchanged:
tab bar and the extra padding are both display:none/0px above 640px.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Rithub: desktop keeps the 12-link SEO footer unchanged; <=640px now
shows a short 5-link footer (Explore, Sign up, Move from GitHub,
Rithub vs GitHub, Is GitHub down?) instead of the full keyword list,
which read as spam stacked above the mobile tab bar. All 5 links
verified 200. SEO guides stay crawlable via sitemap-seo.xml.
- Mobile bottom tab bar was already fixed-position with safe-area
padding and body bottom-padding (shipped in a0b4c089) -- verified
still correct live at 390px, nothing to change there.
- Ritgram: wired the real uploaded OG card
(https://assets.scribase.com/cards/ritgram-og-1200x630-1117b.png,
verified 200 image/png 1200x630) into root layout.tsx's openGraph +
twitter metadata, replacing the placeholder blue-"R" dynamic
app/opengraph-image.tsx route (deleted) and the dead /og-image.png
reference.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
products-8c edited the DEPLOYED custom dir on railyard-box directly
(plans/railyard.md, "## 2026-11-17 (8c): Rithub — all visible 'Gitea'
removed...", commit 4458096 in the products meta-repo) instead of going
through this checkout: head_navbar.tmpl help links now point at the
real move-from-github guide instead of docs.gitea.com, robots.txt/12
SEO guides reworded away from "built on Gitea", and a new
templates/swagger/ui.tmpl + public/assets/api/swagger.rithub.v1.json
rebrand /api/swagger as "Rithub API". Pulled all of it from the live
box (rsync box -> repo) before layering this session's icon/OG/nav
work on top, per their own handoff note ("sync these files from the
box back into apps/gitea/custom in the repo before the next custom-dir
deploy, or they will be reverted").
app.ini's [ui] REACTIONS/CUSTOM_EMOJIS=rithub (also part of their box
edit) is box-only config with no repo file to sync -- confirmed still
live after this session's 2 container recreates, nothing to do there.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The brand mark revision 3 commit (a0b4c089) updated favicon.svg/logo.svg
but never added logo.png/favicon.png -- Gitea has no on-the-fly SVG to
PNG rasterizer, it just falls through to its own bindata default mascot
bitmap for any custom/public/img/*.png path that doesn't exist on disk.
Verified live after the first deploy: /assets/img/logo.png (the PWA
manifest's only PNG icon, claimed 512x512) and the alternate-icon
favicon.png were both still the stock Gitea mascot despite the SVGs
being correct. Added real 512x512 logo.png and 32x32 favicon.png
rendered from the same vector (gtm/brand-icons-2026-11-17/rithub/).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Wires in the approved rithub brand assets from
gtm/brand-icons-2026-11-17/rithub/: the two-offset-block mark (replacing
the revision-2 three-node branch graph that blurred into a blob at 16px
and echoed Yammer's icon formula) as favicon.svg/logo.svg, plus
apple-touch-icon-180/icon-192/icon-512(-maskable) static assets and new
<link> tags for them (head.tmpl override, none existed upstream).
Repo tabs (Code/Issues/Pull requests/Actions/Releases/Wiki/Settings) now
use self-hosted Material Symbols Rounded SVGs -- outline inactive
(#6E6E73), filled+accent active (#0071E3) -- instead of Gitea's stock
octicons; Issues uses "error" (circle-exclamation) rather than
"bug_report", which read identically to the Settings gear at 18-24px.
New icon-only mobile bottom tab bar (<=640px: Home/Explore/
Notifications/Profile), same outline/filled pattern, injected via the
custom/footer.tmpl hook with client-side active-state detection.
Default og:image/twitter:image swapped to the new mark's OG card
(assets.scribase.com/cards/rithub-og-1200x630-1117b.png, uploaded to
R2 this pass) with og:image:alt added; the move-from-github SEO page
gets its own per-page OG card (previously had none).
Verified locally: spun up gitea/gitea:1.23 with these custom/ files
bind-mounted (GITEA_CUSTOM=/data/gitea/custom, real sqlite DB, not the
install wizard) -- home/explore/login/signup all 200, 0 template
panics in server logs, new favicon/apple-touch-icon/OG/tabbar markup
all present in rendered HTML. repo/header.tmpl {{ }} action count
matches upstream exactly minus the 7 swapped icon calls, confirming
the substitution didn't disturb template structure.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Ritgram's "Continue with Rithub" authorize-URL builder never sent a
&scope= param, so Gitea's consent screen warned new signups it would
"access and write to all your account information, including private
repos and organisations" for what's meant to be a lightweight SSO
button — a real trust/conversion hit on the primary signup CTA.
Pinned by an earlier same-day session (plans/railyard.md) to the
exact two lines; apps/ritgram was off-limits then, free now.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
catalog.md and llms-full.txt showed {"ticker":"example"} for company.sec.filings,
which answers 422 provider_rejected_input. Every tool now has a manifest example.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every real Rithub app page (repos/issues/explore/etc) led its footer with
"built on Gitea (MIT)" and no "Rithub" prefix at all, unlike the 12 static
SEO landing pages which already correctly lead with "Rithub — code hosting,
built on open-source Gitea (MIT)". Flagged in plans/pm/railyard.md backlog
#5 as explicitly rejected from the PH launch gallery for undermining the
"Rithub, not Gitea" positioning. Matched the SEO pages' already-correct
phrasing.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
navigator.webdriver is true for real, headed Chrome driven via CDP/
Playwright (the gstack/browse QA-testing tooling used to dogfood live
sites), which carries an ordinary Chrome UA and so passed the server-side
bot filter's UA regex uncaught -- every site on this tag (menivor.com
included) was counting that traffic as real visitors. /s.js now skips
sending anything, and never defines window.railyard, when
navigator.webdriver is true or localStorage railyard_opt_out=1 is set.
All 67 existing insights-edge tests still pass unmodified; the 3 KB gzip
tag budget still holds. Not deployed this session (insights.ereboslab.com
is under the standing ereboslab deploy freeze) -- noted in
docs/FIRST-PARTY-SITES.md, along with the fact that traffic numbers quoted
for any site in that table before today may include QA/dogfooding hits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rithub-only (apps/gitea) slice of the traffic-7e-rithub audit fixes.
Ritgram-side items stay blocked — apps/ritgram is claimed by another
session this round.
- Fix all 12 SEO landing pages' canonical tags to self-reference
rithub.dev instead of the redirecting legacy git.ereboslab.com
domain (audit found 10 stale, not the 9 originally listed).
- Add apps/gitea/custom/public/robots.txt with Sitemap: lines for
both the Gitea-generated and hand-built SEO sitemaps; previously
only served Gitea's content-signal boilerplate with no Sitemap/
User-agent rules at all.
- Add a before-send filter to the Insights beacon (header.tmpl +
all 12 static SEO pages) that drops page-view events from
navigator.webdriver/headless UAs or a documented localStorage
opt-out, so our own QA/crawl passes stop inflating this site's
numbers. Uses the tracker's existing data-before-send hook, no
change to the shared insights/insights-edge packages used by the
rest of the portfolio.
- New is-github-down.html: live GitHub status fetched client-side
from githubstatus.com's public API (CORS-open), plus a real
git --mirror migration path for when it's down.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apple design (plans/gtm/APPLE-DESIGN-RULES-2026-11-17.md): rewrote theme
tokens in globals.css/tailwind.config.js to neutral black/white + one
accent (#0071E3), replacing the GitHub-dark blue+green dual-accent theme;
mechanically swept every raw inline hex/rgba literal across app/components
that bypassed the CSS vars (506 hex + 326 rgb(a) replacements) since most
of the app hardcoded colors rather than using tokens; removed all emoji,
decorative gradients (Tailwind bg-gradient-to-* and raw linear/radial-
gradient() in inline styles), confetti, and glow/blur decorative orbs;
converted Navbar/Navigation to icon-only with aria-label+title. Finished
two stopped agents' in-progress work: deleted the fake AnimatedStats/
LiveActivity/ProjectShowcase/Testimonials auth-panel components and
cleaned up the emoji-laden feature list in (auth)/layout.tsx. Removed
remaining fabricated stats (topics/topics/[slug] posts-per-week/
contributors/followers) per the no-fake-numbers rule.
Rithub sign-in: added "Continue with Rithub" as an icon-only OAuth2
button (RithubMark component) on login/register, hidden "Continue with
GitHub" when GITHUB_CLIENT_ID is unset (confirmed unset in prod). Backend:
authenticateWithGitea in oauthService.ts exchanges the Gitea OAuth2 code,
resolves identity via the existing ForgeConnection table (no schema
migration needed), issues the same JWT/session as GitHub/Google login.
OAuth2 app created live on rithub.dev via its REST API as admin user
caelum0x; client id/secret stored in railyard-box's compose file (env
files don't ship to the runtime image, so the actual wiring lives in
docker-compose.yml, not backend/.env) and in ~/products/.env.
Critical bug found and fixed while verifying: services/api.ts's global
401 interceptor redirected every anonymous visitor to /login a couple
seconds after ANY page load -- including /login and /register themselves
-- because the AuthBootstrap's background GET /auth/me (expected to 401
for signed-out visitors) was treated the same as a real session-expiry
401, triggering a refresh attempt, another 401, and a hard
window.location.href redirect, which re-ran AuthBootstrap and repeated.
Fixed by excluding /auth/me and /auth/refresh from that redirect path.
Verified live with a fresh, cookie-less browser: previously looped
/register -> /login forever; now stable after 6s.
Also fixed: production CORS/API origin mismatch -- the frontend was
built with NEXT_PUBLIC_API_URL pointing at ritgram.ereboslab.com while
served from ritgram.rithub.dev, so every API call (login, register, etc.)
was blocked by CORS; rebuilt with rithub.dev as canonical and CORS_ORIGIN
allowing both domains.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
rithub.dev was serving Gitea's stock "Git with a cup of tea" boilerplate in
<meta name="description">, og:description and twitter:description on every
non-repo page -- exactly what PH/Google/X/LinkedIn link previews show on
launch day. Fixed via the official app.ini [ui.meta] AUTHOR/DESCRIPTION/
KEYWORDS keys (set.UI.Meta in modules/setting/ui.go), wired through
docker-compose.yml's GITEA__ui_0x2E_meta__* env vars (dotted section names
need hex-escaping: "." -> "_0x2E_", confirmed against Gitea's own
config_env_test.go). og:title/og:image/og:url were already correct from an
earlier pass. Also fixed 10 sitemap-seo.xml entries still pointing at the
retired git.ereboslab.com domain instead of rithub.dev.
Deployed to railyard-box:/srv/railyard-gitea (recreate gitea container only,
other 32 containers on the box untouched). Live-verified: homepage and a
real repo page (caelum0x/settlekit) both show zero "cup of tea" strings;
sitemap-seo.xml has zero stale-domain entries.