steid

@jamesgill /

steid/plans/ROADMAP.md
Markdown9.1 KBRendered·Source·Blame·History·Raw
1# Steid
2
3The source of truth for what Steid is and the order it gets built in.
4
5## Vision
6
7Steid is a version control server that is entirely yours. One tenant, one binary, one
8database, one owner. It is built to be stable, secure, fast and simple, and to do
9nothing else.
10
11**Who it is for:** anyone who wants their code on a server they control — a solo
12developer, a small team, a company that will not put its source on a shared platform.
13Steid Cloud runs it for you on hardware nobody else touches.
14
15**What it is not:** not a GitHub clone, not a social network, not a portfolio, not a
16platform. No marketplace, no discover feed, no plugins, no growth loops. Fewer things,
17all of them finished.
18
19An instance belongs to one owner — an organisation or a person, chosen at initial
20setup — and the owner's home page at `/{handle}` is the front door.
21
22A managed offering — Steid instances hosted for companies and individuals — is
23planned, but lives entirely in its own repo (`../steid-control-plane`, decision 0001
24there). The constraint it places here: Steid stays single-tenant, never learns it is
25managed, and everything an operator does must eventually be drivable headlessly.
26
27**What makes it different from Gitea/Forgejo:** those are GitHub clones scaled down,
28carrying a platform's worth of features into a box one team runs. Steid is the opposite
29bet — single tenant, fewer features, each of them finished and proven.
30
31## Core Principles
32
33- **Stable** — upgrades roll back, backups are proven to restore, migrations never lock
34 you out
35- **Secure** — single tenant is the security model; private by default, scoped tokens,
36 no third-party scripts
37- **Performant** — one binary, SQLite, git on local disk, server-rendered pages
38- **Simple** — one config, one command to back up, one to restore; one obvious way to do
39 each thing
40- **Boring wins** — between two designs, take the one that is more predictable, more
41 isolated, or has fewer moving parts. See
42 [0010]decisions/0010-single-tenant-vcs-not-portfolio.md.
43
44## Stack
45
46Starting intent, not settled decisions. Each one gets a record in
47[decisions/]decisions/ when it's actually made and confirmed in this build.
48
49| Concern | Choice | Decision |
50|---|---|---|
51| Web framework | Topcoat (tokio-rs) | — |
52| Git transport | smart HTTP via `git http-backend` | [0001]decisions/0001-git-over-http-not-ssh.md |
53| Git auth | personal access tokens over HTTP Basic | [0001]decisions/0001-git-over-http-not-ssh.md |
54| Git operations | the `git` binary, behind narrow ports | [0006]decisions/0006-git-binary-behind-narrow-ports.md |
55| Crate layout | single crate | — |
56| Ownership | personal org owns repos | — |
57| URLs | root handles, grouped routes | [0004]decisions/0004-root-handles-grouped-routes.md |
58| Database | SQLite via sqlx | — |
59| Form safety | per-session CSRF token on every form | [0008]decisions/0008-csrf-double-submit-bound-to-the-session.md |
60
61Architecture and conventions: [architecture.md]architecture.md.
62
63## Milestone Ladder
64
65A from-scratch rebuild on Topcoat. Much of this was built and verified end-to-end in a
66previous attempt — see [progress.md]progress.md. Treat that code as reference, not as
67a baseline.
68
69| # | Milestone | Status |
70|---|---|---|
71| 0 | **Skeleton** — Topcoat app boots, config, one page, SQLite wired | done |
72| 1 | **Identity, thin** — claim on first run, login, session | done |
73| 2 | **Profile page** — `/{handle}` as the real profile | done |
74| 3 | **Repo model** — records + bare repos on disk | done |
75| 4a | **Clone over HTTP** — `git http-backend`, public repos, no auth | done |
76| 4b | **Push and tokens** — PATs over HTTP Basic, push, private clone | done |
77| 5 | **Repo browsing** — tree, blob, commit log | done |
78| 5b | **Deployable by anyone** — binary release, installer, TLS proxy | done |
79| 6 | **Writing** — posts, markdown | not started |
80| 7 | **Identity, full** — multi-user, orgs, invites, registration policy | first slice (organisations, home, private by default) shipped in 0.8.0 |
81| 8+ | Projects/showcases · issues & PRs · CI/CD · SSH transport · federation | issues, labels, webhooks and **pull requests** shipped; the rest not started |
82
83Since 2026-10-01 the order of work comes from the workspace launch plan,
84[`../../plans/launch.md`]../../plans/launch.md; Steid's items in it are listed in
85[current.md]current.md, and the ladder's statuses are unchanged by it.
86
87### Committed by the 2026-09-27 repositioning
88
89These follow from [0010]decisions/0010-single-tenant-vcs-not-portfolio.md. They are
90committed, not scheduled, and none of them renumber the ladder above.
91
92- **Multi-user: owner and members.** An instance has one owner — an organisation
93 ("Acme Inc") or a person ("james"), chosen at initial setup — and can have members it
94 works with. Both owners are handles at `/{handle}`. **The owner half shipped in
95 0.8.0**: organisations are creatable, one of them is the instance's home page, and `/`
96 lands there for everyone — see
97 [0011]decisions/0011-home-is-an-instance-setting.md. Members and roles are the rest
98 of milestone 7.
99- **Outsider registration, deliberately narrow.** Outsiders may register to file issues
100 and comment, and nothing else — under strict rate limits and narrow scopes, so an
101 instance can take bug reports without becoming a place anyone can do anything. It is a
102 policy an owner turns on, off by default.
103- ~~**Private by default.**~~ **Shipped in 0.8.0.** A new repository is private unless
104 made public.
105- **Invisible mode.** A whole instance behind sign-in, so a business can run its Steid
106 unreachable to anonymous visitors: no anonymous clone, no anonymous pages, and
107 `robots.txt` disallowing everything.
108
109**CI/CD is a milestone, eventually, and it is 8+.** Push-to-release — a repository that
110builds and publishes itself on push — is the obvious end state for a forge that already
111receives pushes, and it is what "source code integration" means for anyone arriving from
112GitHub. It needs receive-pack hooks, a job model, isolation to run untrusted code, and
113somewhere to keep artefacts, so it is a milestone in its own right rather than a feature.
114Recorded now because it was asked for; deliberately not scheduled.
115
116`/api` is not a milestone. It's a standing practice: every milestone that adds a use
117case exposes it under `/api` where that makes sense. An API isn't a feature, it's a
118second surface on work already being done — and having a third consumer keeps the use
119case layer honest.
120
121### Why this order
122
123Every previous ladder put anything a visitor could see behind four milestones of git
124plumbing. Across two attempts and ~6,000 lines, Steid had shipped identity, repo
125records, clone, push, and key auth — and not one page anyone would open. Attempt #2
126ended with all the git infrastructure working and nothing to show for it.
127
128A page you can open therefore shipped early: the owner's home page is milestone 2, not
129milestone 6. Full multi-user identity stays deferred to 7 — one tenant starts with one
130user, and there is nothing to collaborate on until there is something worth
131collaborating on.
132
133**Git moved ahead of writing after milestone 2 shipped**, deliberately reversing the
134original order. Two reasons. The owner's home page has a Repositories section that a
135visitor expects to be full, and a version control server whose repo list is permanently
136empty is its own kind of wrong. And git-over-HTTP is the least-understood work left — everything else is CRUD
137over SQLite, while that is pack data streamed through a subprocess — so learning what
138Topcoat makes awkward is worth more now than after three more features are stacked on
139top.
140
141The risk being run knowingly: disappearing into protocol work is what ended both
142previous attempts. Milestone 3 is deliberately small and ships something visible on the
143owner's home page; if milestone 4 starts to sprawl, that is the signal to bank it and go back to
144writing.
145
146**Milestone 5b was inserted rather than renumbered.** Deployment became urgent the
147moment Steid could host its own source: a server nobody can install is a demo. It is
148lettered rather than numbered for the same reason 4a/4b were — decisions
149[0003]decisions/0003-scoped-urls.md and [0004]decisions/0004-root-handles-grouped-routes.md
150both refer forward to "Milestone 7" meaning multi-user identity, and renumbering would
151quietly falsify accepted records to save a table row.
152
153**Milestone 4 was split before it started**, acting on that warning rather than waiting
154to be surprised by it. It bundled two subsystems — personal access tokens and the smart
155HTTP protocol — and neither shipped anything until both were done. Split, 4a is
156anonymous clone of a public repository with no authentication code at all, which is a
157working `git clone` in one small milestone; 4b adds tokens, push, and private clone on
158top. If 4b sprawls, 4a has already banked the capability.
159
160**One numbering scheme.** The previous attempt kept two (a roadmap ladder and a
161separate build log with conflicting numbers) and they drifted apart within three
162milestones. If the plan changes, edit this table — don't start a second list.
163
164The active milestone is broken into steps in [current.md]current.md.