13 Commits

Author SHA1 Message Date
ec98430794 feat(rit,gitea): zero-manual-step GitHub->Rithub import (login, CLI, agent) + orphan-comment migrate bug fix
Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
ci / node suites (push) Has been cancelled
- 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>
2026-11-19 00:12:57 +03:00
07916245a5 perf(rit): parallelize tracked-worktree status across index entries
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.
2026-11-18 23:43:41 +03:00
0e2645fc90 feat(rithub): monochrome Apple glass theme (no blue), readable dark mode, ink logo, new screenshots, OAuth source script
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:38:31 +03:00
4f64804ad5 feat(gitea): adopt go-gitea/gitea as Railyard's code hosting (apps/gitea)
Replaces the from-scratch "Rithub + Rit" build (Dec 21/28 roadmap milestone)
with the official gitea/gitea image (MIT) + Postgres, per
plans/OSS-ADOPTION-2026-10-15.md's Railyard row 1. Closes the named gap
(packages, LFS, wikis, Actions CI) in one compose file instead of a
multi-week Rust build.

- apps/gitea/docker-compose.yml: gitea/gitea:1.23 + postgres:17, app.ini
  entirely via GITEA__<SECTION>__<KEY> env (no app.ini committed). Documents
  three gotchas found proving this locally: the Docker image's CustomPath is
  /data/gitea itself (not /data/gitea/custom); root-level keys like APP_NAME
  need the GITEA____KEY (empty section) form; START_SSH_SERVER=true fights
  the base image's passthrough OpenSSH for :22 and crash-loops.
- apps/gitea/custom/: Rithub branding overlay (logo, favicon, brand CSS,
  header/footer template injection with MIT attribution to Gitea) — pure
  overlay, no upstream template edited.
- apps/gitea/integrations/railyard/: Rago/Mint billing bridge adapted from
  apps/rithub-forge's (uncommitted, untouched) Forgejo experiment — it
  already accepted Gitea's X-Gitea-* webhook headers as a fallback, now
  promoted to primary. 16 new unit tests, all passing.
- apps/gitea/deploy/RUNBOOK.md: first production deploy on railyard-box
  (Oracle A1 ARM64) — Cloudflare Tunnel for HTTPS, SSH on :2222 via the VCN
  security list, gitea dump/restore backups, rollback. Not executed.
- apps/gitea/README.md: full inventory of what existed (apps/rit, apps/rithub
  — Rust, kept) vs. what Gitea covers vs. what's deployed, plus the local
  proof log (HTTPS push, SSH push, LFS, npm package registry, wiki — all
  verified working against the official arm64 image on this machine).
- apps/rit/README.md, apps/rithub/README.md: pointer notes to this decision.
  Neither directory is deleted or modified beyond the note (owner rule).

Local proof only — compose stack torn down after screenshots, nothing
deployed, nothing pushed to origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 03:13:21 +03:00
d1304f9ad9 feat(rit,rithub): push --delete/--tags, tag refspecs, author logins in listings
rithub collab API now returns author_login on issues, PRs and comments so
rit listings show real authors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 01:25:24 +03:00
a47687bdd7 feat(rithub): rit issue/pr CLI, SSH push billing parity, GraphQL private-repo quota, branch/team/label mgmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 00:43:23 +03:00
946d2a0969 feat(rithub): enforce authz across web and API, account/org/settings pages, billing, rit remote CLI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 00:05:57 +03:00
3c0449d862 feat(rit): Phase 3-4 — exchange (atomic receive-pack, delta packs, smart-HTTP) + history editing
- multi-ref ATOMIC receive-pack (two-phase ref txn, 'atomic' cap); OFS_DELTA pack gen (window=10, fsck-clean vs real git)
- smart-HTTP (axum): /info/refs + /git-upload-pack|/git-receive-pack; real git clone+push verified; serve-http CLI
- merge (--no-ff/--continue/--abort), sequencer rebase+cherry-pick (--continue/--abort/--skip), stash (push/list/apply/pop/drop)
- deps axum+tokio (offline-compilable); cargo 0; 87 lib + 34 interop tests pass

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-09-23 18:41:59 +03:00
325784dfaf feat: rithub forge Phases A-C + rit git Phase 2 (local authoring)
rithub (git forge, cargo 0, 15 routes):
- auth depth: token scopes/expires_at/revoked_at (mig 0012) enforced in auth path + list/revoke endpoints;
  deploy keys (mig 0013) on SSH + HTTP Basic paths, repo-scoped read_only; persistent ed25519 SSH host key
  (load-or-generate from data_root, 0600)
- durable outbox (mig 0010): outbox_jobs + FOR UPDATE SKIP LOCKED worker; webhooks/notifications/audit moved
  async through it; SMTP email notifications (lettre) for PR/review/issue events
- API: PATCH/PUT repos/issues/PRs + milestones (mig 0011, milestone_id FK + progress)
rit (from-scratch git, cargo 0, 87 lib + 34 interop tests pass, diff byte-identical to git):
- reflog (git wire format on every ref update, HEAD + per-ref logs), branch create/delete/list/rename,
  tag lightweight+annotated, switch/checkout (2-way merge safety), diff (worktree/index/HEAD), show

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-09-23 18:03:45 +03:00
894359e5ff feat(railyard): per-app completion pass — money-correct settlement + crate cores
- rago: exactly-once prepaid settlement (deterministic idempotency, unique partial index + in-tx ON CONFLICT guard) — closes the double-charge risk
- mint: double-entry + reserve conservation verified (14 tests)
- ledgerline: atomic settlement outbox + partial recovery index (37 tests)
- abacus: hard per-agent budget enforcement + kill-switch (54 tests)
- vend: crash reaper / in-flight session reconciliation
- turnstile/agent-runtime/ranguard/rit/game-economy/context-passport/rithub: core advanced + tests
2026-09-07 17:17:54 +03:00
6a2bbd0362 feat(rit): packfile read via gitoxide (gix) — OSS-fork strategy; real-git packed-repo interop tests 2026-08-25 00:59:39 +03:00
2787d80d12 docs: enterprise architecture + graph-engineering + scale for rit/rithub/ranguard 2026-08-24 20:52:24 +03:00
1cfd677a63 feat(rit+rithub): rit (rust git core, 35 tests) + rithub (forge scaffold) under railyard/apps 2026-08-24 20:43:50 +03:00