steid

@jamesgill /

steid/plans/ROADMAP.md
Markdown6.9 KBRendered·Source·Blame·History·Raw
1# Steid
2
3The source of truth for everything in a developer's or organization's portfolio.
4
5## Vision
6
7Steid is a developer/org identity and portfolio platform. It's where you host your
8code, your writing, your projects — everything you do, in one place, under your
9control.
10
11Git repos are a core feature, not the whole product. Blogs, documentation, project
12showcases, and anything else a dev or org wants to present lives here too.
13
14Personal-first, but organizations can collaborate on it.
15
16A managed offering — Steid instances hosted for companies and individuals — is
17planned, but lives entirely in its own repo (`../steid-control-plane`, decision 0001
18there). The constraint it places here: Steid stays single-tenant, never learns it is
19managed, and everything an operator does must eventually be drivable headlessly.
20
21**What makes it different from Gitea/Forgejo:** those are GitHub clones scaled down.
22Steid is portfolio-first — the profile page is the product, and repos are one kind of
23thing that appears on it. That framing should win any tie-break.
24
25## Core Principles
26
27- **Fast** — Rust, minimal overhead
28- **Reliable** — correct first, then optimize
29- **Personal-first** — great for a single dev, scales to orgs
30- **Identity-centric** — everything is built around who you are (user/org); auth is
31 designed in from day one, not bolted on
32
33## Stack
34
35Starting intent, not settled decisions. Each one gets a record in
36[decisions/]decisions/ when it's actually made and confirmed in this build.
37
38| Concern | Choice | Decision |
39|---|---|---|
40| Web framework | Topcoat (tokio-rs) | — |
41| Git transport | smart HTTP via `git http-backend` | [0001]decisions/0001-git-over-http-not-ssh.md |
42| Git auth | personal access tokens over HTTP Basic | [0001]decisions/0001-git-over-http-not-ssh.md |
43| Git operations | the `git` binary, behind narrow ports | [0006]decisions/0006-git-binary-behind-narrow-ports.md |
44| Crate layout | single crate | — |
45| Ownership | personal org owns repos | — |
46| URLs | root handles, grouped routes | [0004]decisions/0004-root-handles-grouped-routes.md |
47| Database | SQLite via sqlx | — |
48| Form safety | per-session CSRF token on every form | [0008]decisions/0008-csrf-double-submit-bound-to-the-session.md |
49
50Architecture and conventions: [architecture.md]architecture.md.
51
52## Milestone Ladder
53
54A from-scratch rebuild on Topcoat. Much of this was built and verified end-to-end in a
55previous attempt — see [progress.md]progress.md. Treat that code as reference, not as
56a baseline.
57
58| # | Milestone | Status |
59|---|---|---|
60| 0 | **Skeleton** — Topcoat app boots, config, one page, SQLite wired | done |
61| 1 | **Identity, thin** — claim on first run, login, session | done |
62| 2 | **Profile page** — `/{handle}` as the real profile | done |
63| 3 | **Repo model** — records + bare repos on disk | done |
64| 4a | **Clone over HTTP** — `git http-backend`, public repos, no auth | done |
65| 4b | **Push and tokens** — PATs over HTTP Basic, push, private clone | done |
66| 5 | **Repo browsing** — tree, blob, commit log | done |
67| 5b | **Deployable by anyone** — binary release, installer, TLS proxy | done |
68| 6 | **Writing** — posts, markdown | not started |
69| 7 | **Identity, full** — multi-user, orgs, invites, registration policy | not started |
70| 8+ | Projects/showcases · issues & PRs · CI/CD · SSH transport · federation | issues, labels, webhooks and **pull requests** shipped; the rest not started |
71
72**CI/CD is a milestone, eventually, and it is 8+.** Push-to-release — a repository that
73builds and publishes itself on push — is the obvious end state for a forge that already
74receives pushes, and it is what "source code integration" means for anyone arriving from
75GitHub. It needs receive-pack hooks, a job model, isolation to run untrusted code, and
76somewhere to keep artefacts, so it is a milestone in its own right rather than a feature.
77Recorded now because it was asked for; deliberately not scheduled.
78
79`/api` is not a milestone. It's a standing practice: every milestone that adds a use
80case exposes it under `/api` where that makes sense. An API isn't a feature, it's a
81second surface on work already being done — and having a third consumer keeps the use
82case layer honest.
83
84### Why this order
85
86The vision calls Steid portfolio-first, but every previous ladder put portfolio behind
87four milestones of git plumbing. Across two attempts and ~6,000 lines, Steid has
88shipped identity, repo records, clone, push, and key auth — and not one portfolio
89feature. Attempt #2 ended with all the git infrastructure working and nothing that
90distinguishes it from Gitea.
91
92The differentiator therefore shipped early: the profile page is milestone 2, not
93milestone 6. Full multi-user identity stays deferred to 7 — personal-first means one
94user, and there is nothing to collaborate on until there is something worth
95collaborating on.
96
97**Git moved ahead of writing after milestone 2 shipped**, deliberately reversing the
98original order. Two reasons. The profile has a Repositories section that a visitor
99expects to be full, and a gitforge whose repo list is permanently empty is its own kind
100of wrong. And git-over-HTTP is the least-understood work left — everything else is CRUD
101over SQLite, while that is pack data streamed through a subprocess — so learning what
102Topcoat makes awkward is worth more now than after three more features are stacked on
103top.
104
105The risk being run knowingly: disappearing into protocol work is what ended both
106previous attempts. Milestone 3 is deliberately small and ships something visible on the
107profile; if milestone 4 starts to sprawl, that is the signal to bank it and go back to
108writing.
109
110**Milestone 5b was inserted rather than renumbered.** Deployment became urgent the
111moment Steid could host its own source: a gitforge nobody can install is a demo. It is
112lettered rather than numbered for the same reason 4a/4b were — decisions
113[0003]decisions/0003-scoped-urls.md and [0004]decisions/0004-root-handles-grouped-routes.md
114both refer forward to "Milestone 7" meaning multi-user identity, and renumbering would
115quietly falsify accepted records to save a table row.
116
117**Milestone 4 was split before it started**, acting on that warning rather than waiting
118to be surprised by it. It bundled two subsystems — personal access tokens and the smart
119HTTP protocol — and neither shipped anything until both were done. Split, 4a is
120anonymous clone of a public repository with no authentication code at all, which is a
121working `git clone` in one small milestone; 4b adds tokens, push, and private clone on
122top. If 4b sprawls, 4a has already banked the capability.
123
124**One numbering scheme.** The previous attempt kept two (a roadmap ladder and a
125separate build log with conflicting numbers) and they drifted apart within three
126milestones. If the plan changes, edit this table — don't start a second list.
127
128The active milestone is broken into steps in [current.md]current.md.