- scripts/build-desktop-dist.sh cross-compiles the desktop client for
Linux (glibc 2.39) and Windows with Zig and Cargo, bundles liblore
from the pinned release, and writes the archives, SHA256SUMS and BUILD
to run/downloads/.
- lore-forge serves them to signed-in users at /download and
/downloads/{file} (LORE_FORGE_DOWNLOADS_DIR), with a Desktop tab in
the nav and a panel on the home page. Only plain names of known types
are served; download and downloads are reserved names.
- fetch-lore.sh takes LORE_TARGET for --liblore and unpacks the Windows
zip.
- loreserver-config --grpc-tls-at-proxy (LORE_GRPC_TLS_AT_PROXY=1 for
start.sh) gives the certificate to QUIC only, for a proxy that ends
TLS on TCP 41337 and relays to loreserver over a private link.
- shell.nix: an FHS shell with Rust, protoc, Zig and the other build
tools, for NixOS.
TLS on every Lore port, a Linux deployment behind Caddy, and backups.
- lore-forge loreserver-config writes loreserver's whole config:
the certificate on QUIC and gRPC, store paths, ports, and the HTTP
port bound to 127.0.0.1. --output writes it atomically. start.sh,
the e2e test and the systemd units all use it.
- The repository browser reaches Lore's gRPC over TLS for https URLs.
Pages show lores:// remotes (lore:// for loopback hosts), with
LORE_FORGE_LORE_REMOTE to override.
- serve stops cleanly on SIGTERM, and reads the secret key from
LORE_FORGE_SECRET_KEY_FILE or a systemd credential as well.
- backup-database snapshots the database with VACUUM INTO on a
read-only connection and checks the copy.
- scripts/backup.sh copies the store live, stops loreserver briefly to
copy it again with the database, and keeps hard-linked snapshots.
scripts/restore.sh puts one back and moves the current state aside.
- deploy/: install.sh, systemd units for lore-forge, loreserver,
certificate copying and nightly backups, the Caddy site, the
settings template and an operator README. Not yet run on Linux.
- e2e: TLS by default with a CA made for the run (NO_TLS=1 for
lore://); untrusting and lore:// clients are refused; ends with a
backup, a push and a restore.
- Docs: deployment.md, Lore's transport security, backups in storage,
and the overview's decisions and status.
Desktop milestone 3, protocol v3.
- lore-sys: lock acquire, release and status, and notification
subscribe/unsubscribe, with their events.
- Service: locks, lock, unlock (with force) and workspace_settings
methods; locks and notice events; error -32006 for files someone
else holds. SUBMIT refuses those files and releases your locks on
what it pushed unless keep_locks is set.
- Service policies: a file watcher rescans after edits, warns once per
edited file someone else has locked, and with lock_on_edit locks
newly modified binary files (NUL in the first 8 KB, or the binary/
text extension lists). One notification subscription per repository
keeps locks current and marks the workspace behind on pushes.
- Autosync (off, interval, on_change) only pulls. It holds back when
local edits overlap remote changes, keeps them, and sets a warning.
- GUI: LOCK/UNLOCK in FILES with multi-select, LOCKED BY and LOCK in
CHANGES with KEEP LOCKS, a LOCKS tab with UNLOCK and FORCE UNLOCK,
the AUTO popup, notices under the header and in the tray tooltip.
--test goes on when its warm-up sync is refused; --tab locks.
- e2e: bob gets writer access and a CLI working copy to check locks,
lock on edit and autosync between two users.
- Docs: verified lock and notification behaviour of liblore v0.14.0,
the protocol v3 tables, autosync, and the milestone status.
forge-service now loads Lore's C library (liblore v0.14.0, pinned in
lore.lock) through generated bindings in desktop/lore-sys, and speaks
protocol v2: status, history, files, revisions, file history, local
changes, sync, submit of chosen files, sign-in through the forge's
device flow, the repository list, clone, and adding or forgetting
workspaces. Requests on one connection run concurrently.
The GUI drops the sample repository and draws the explorer from the
service, with an ADD panel for opening or cloning, a sign-in banner,
and a CHANGES tab whose checked files SUBMIT commits and pushes.
scripts/e2e-lore.sh now also drives forge-service against the real
loreserver and lore-forge through scripts/desktop-e2e.py, and keeps
every login's key in a file so no run asks for the keychain.
fetch-lore.sh gains --liblore. Design docs and agent notes record what
was verified in liblore and the SYNC/SUBMIT decisions.
lore-forge now runs beside an unmodified loreserver as its token
issuer, user directory and repository registry, with a server-rendered
UI in the desktop client's pixel style.
Accounts and sign-in: first-run setup, password sign-in with rate
limiting, signup modes and invite links, GitHub, Discord and Google
sign-in by explicit linking (tested against a fake provider), sessions
and CLI logins with revocation, API tokens, and service accounts.
Issuer: device code, refresh with rotation and reuse detection, token
exchange to repository-scoped tokens, API-token login, the client
credentials grant for service accounts, revocation, and signing key
rotation from the admin page or the rotate-signing-key command.
Access: user and organisation namespaces, members, teams, role
presets with extra actions, per-repository grants, and the admin pages.
Repository browser: FILES, GRAPH and TREE tabs and a revision page
with diffs, read from loreserver as the viewer with a one-minute
read-only token per page view. File diffs are computed here because
Lore's ContentDiff is unimplemented.
scripts/e2e-lore.sh checks all of this against the pinned Lore
v0.14.0 release, including a branch and a merge. The design documents
record what was verified in Lore's source and what is still assumed.
lore-forge is a Rust web server that runs beside Epic's Lore version
control server and provides accounts, sign-in through GitHub, Discord
and Google, the tokens Lore verifies, per-repository permissions and a
self-hosted forge UI.
AGENTS.md describes the project and its conventions. The documents
under .ai/designs record the architecture agreed so far: how
lore-forge integrates with Lore, the account and sign-in model, the
token issuer, namespaces and access control, the server-rendered web
UI, forge features and SQLite storage.
No code yet; this is design only.