Skip to content

Commit eb6f9d0

Browse files
committed
docs(plans): the order Origin's work is needed in, and two last decisions
The account settings get a hostname of their own, and the name lookup returns handles from the start.
1 parent efb0a28 commit eb6f9d0

4 files changed

Lines changed: 52 additions & 9 deletions

File tree

‎docs/plans/platform/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Every item carries one of these:
7979
| Hidden paths | Only folders can be hidden, each with a nonce. Built once the mirror is no longer needed | Decided | [origin](origin.md#hidden-paths) |
8080
| Release channels | Nightly and stable map to targets for the CLI and the SDKs. The hosted service uses feature flags on one version | Deferred | [origin](origin.md#releases-and-channels) |
8181
| Frontend framework | Topcoat goes. An experiment picks between React with TanStack Start and SvelteKit. Leptos is out. The product renders on a server | Decided | [frontend](frontend.md) |
82-
| Origin Auth's pages | Sign-in, consent and recovery stay in Origin Auth. The settings, the developer console and the admin dashboard move to the product's frontend, as one admin app for both services | Decided | [review](review.md#the-auth-port-and-the-admin-dashboard) |
82+
| Origin Auth's pages | Sign-in, consent and recovery stay in Origin Auth. The settings, on a hostname of their own, the developer console and the admin dashboard move to the product's frontend, as one admin app for both services | Decided | [review](review.md#the-auth-port-and-the-admin-dashboard) |
8383
| Between services | Calls between the node and SourceOrigin's services use private listeners, linked through piqueld | Decided | [origin](origin.md#between-services) |
8484
| Private changes | A change can be made private by choice, for sensitive fixes | Decided | [origin](origin.md#private-changes) |
8585
| Diff performance | Diffs must be as fast as Pierre's diffshub. Origin gains a diff endpoint | Decided | [frontend](frontend.md#what-pierre-provides) |

‎docs/plans/platform/origin.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ asks it.
142142
- Offline, the CLI shows the ID, or a name it last displayed. That cache is
143143
only cosmetic.
144144

145-
**Decided:** the lookup returns what a person's public profile shows, so it
146-
can be public. Profiles will be public pages, sourceorigin#101. An account
147-
with no public profile doesn't resolve, and its ID is shown. The deletion
145+
**Decided:** the lookup returns what is public about a person, so it can be
146+
public. That is the handle from the start, since handles are public already,
147+
and what a public profile shows once profiles exist, sourceorigin#101. The deletion
148148
promise is narrower than first written: the provider stops resolving the
149149
account, and anyone who looked it up before may have kept the answer.
150150

‎docs/plans/platform/review.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,18 @@ Its cost: Origin Auth needs a JSON API for every account and admin operation,
117117
with its own protection against forged requests, and the browser tests and
118118
the documentation's screenshots are rewritten. With agents that is moderate.
119119

120-
**Open:** whether the account settings get their own hostname, not a path on
120+
**Decided:** the account settings get their own hostname, not a path on
121121
`sourceorigin.dev`. A browser lets any script on a page act as the signed-in
122122
person on every page of the same hostname. The product's pages show content
123123
that other people wrote, such as READMEs and diffs. If a bug ever let such
124124
content run a script, that script could open the settings and add its own
125-
passkey. On another hostname the browser stops it. The cheaper alternative
126-
keeps `/settings` and asks for a passkey again, at Origin Auth, before every
127-
sensitive change.
125+
passkey. On another hostname the browser stops it. Keeping `/settings` and
126+
asking for a passkey again before every sensitive change was the cheaper
127+
alternative; the hostname costs one route now, and changing URLs later is
128+
harder.
128129

129130
## Still to answer
130131

131-
- Whether the account settings get their own hostname, above.
132132
- How private changes work in detail. See
133133
[private changes](origin.md#private-changes).
134134
- What happens when a reader gains access to a hidden folder they already

‎docs/plans/platform/roadmap.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,49 @@ v0.2 after the council's review, because milestone 1 ships them. origin#70, a
119119
target that accepts landings only from another target, is closed: see
120120
[deploys](origin.md#deploys).
121121

122+
## What Origin needs first
123+
124+
**Proposed.** SourceOrigin's milestone 0 needs nothing from Origin and can
125+
start at once. Everything after it waits on Origin, in this order.
126+
127+
Before any real repository exists, because these are written into records or
128+
into `policy.toml` and can't be changed afterwards:
129+
130+
1. The stack merged: the ten pull requests, with origin#19 and origin#39.
131+
2. origin#76 ignore files.
132+
3. origin#77 times on records.
133+
4. origin#44 principals as IDs, with one issuer per repository.
134+
5. origin#78 a repository's identity in its genesis.
135+
6. origin#79 the design for rotating and recovering authority keys.
136+
7. origin#56 a repository format version.
137+
138+
To host the first repository, which is milestone 1:
139+
140+
1. origin#33 TLS in the client.
141+
2. origin#45 OpenID Connect and origin#46 `origin login`, with sourceorigin#68
142+
on the other side.
143+
3. origin#51 repositories that start closed.
144+
4. origin#54 health endpoints, which piqueld's health check needs.
145+
5. origin#57 `origin verify` and origin#85 taking back acceptances after a
146+
restore, with piqueld's backups.
147+
6. origin#58 the git mirror, then origin#59 colocated mode and origin#61 the
148+
agent skills.
149+
150+
The first node needs no registry: `origin repo create` on the node is enough
151+
until the platform has an API.
152+
153+
To build the platform's service against:
154+
155+
1. origin#53 the registry and origin#84 creating a repository.
156+
2. origin#47 the display-name lookup.
157+
3. origin#81 diffs.
158+
4. origin#24 webhooks, origin#63 deploy statements and origin#64 exporting a
159+
snapshot.
160+
161+
Not on the path: origin#48 readable policy files, origin#50 the authorization
162+
design, origin#34, origin#55 telemetry, origin#80 redaction and origin#20.
163+
They are in v0.2 and matter before outside users arrive.
164+
122165
## Milestones
123166

124167
**Decided**, milestone by milestone. piquel agreed to each row.

0 commit comments

Comments
 (0)