Decide a deciders' threshold, the host as a port, a reasoned vouch, signed landings and the ledger as a note, and record the row and inspector rules
Before adoption: this commit came in with the history the project adopted, so no landing records it.
ADRs 0034 to 0038 are proposed for after the window, each the smallest version drawn from two peer platforms read by mechanism, with the sign-off a signing library and an identity dependency would need. ADR 0039 records why a row's word is ink and the inspector widens. ADR 0016 declines a portable identity behind the handle, and AGENTS.md's rejected dependencies name the client it would take.
authored by oscabriel · committed by oscabriel · parent 9df5c38 · Browse files · 8 files·+135 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+135 added−0 removed
- other:+135 added−0 removed
Provenance
- Commit
b245d7a- Tree
965823f- Author
oscabriel <oscarhernandeziv@gmail.com>- Committer
oscabriel <oscarhernandeziv@gmail.com>- Parent
9df5c38
8 files changed+135 added−0 removed
modified:docs/adr/0016-a-person-is-a-platform-account.md+1 added
8 unmodified lines910111213141516174 unmodified lines8 unmodified lines## Considered Options
- **GitHub OAuth as the only sign-in.** This was the earlier plan. People would arrive with an account and a handle they already have, but every stage would need an OAuth app registered by hand, and identity on a platform built to replace GitHub would be GitHub's.- **Named sessions alone:** a sensitive env value mapping bearer tokens to handles. It stays beside accounts, behind the same sessions port, for the operator and the demo's fictional people, who need several accountable identities without signing up one by one. It is not how real people join.- **A portable identity behind the handle** (declined, October 2026). Two peer platforms point a handle at something no single host owns: one at a decentralised identifier held on a data server the person chooses, with a third-party client library and an OAuth flow to reach it; the other at a signing key per device, encoded as an identifier, with no account at all. Either would let a `Signed-off-by` trailer name an identity that outlives this platform. Declined for now: the first adds a dependency no `package.json` has and a sign-in redesign, and makes who a person is depend on a third party's account again, which this decision exists to avoid; the second is a key-management burden on every contributor before their first claim. If a second identity is ever added, it is a key the person holds, linked to their platform handle and verified by the platform, never an account at a third party. Re-adding either client needs the user's sign-off.
## Consequences
- Handles are the platform's own. Credit trailers, the vouch file (where a handle with no provider prefix is a platform handle) and fork names spell them, and two handles that differ only in case are one person.4 unmodified linesadded:docs/adr/0034-a-decision-for-a-path-takes-effect-at-its-deciders-threshold.md+22 added
12345678910111213141516171819202122---status: proposed---
# A decision for a path takes effect at its deciders' threshold
A project's deciders are a list of handles per path in the config folder (`Policy.deciders`, `{handles, paths}`), and a decision takes effect on one decider's choice. One peer platform read in October 2026 keeps who may move a ref as a typed value in the repository itself: a list of keys and a count, per ref, evaluated when the ref is updated, and its web states the rule as one sentence ("1 out of 3 have to accept"). Another answers "may this key push here" per push from the host that keeps the repo. Both put the rule where the clone can read it and derive the sentence from the value. Myr already does the first half: the rule is typed code on main. What it lacks is the count.
The decision: a deciders entry takes an optional `threshold`, default 1. A decision whose paths fall under an entry with a threshold of n takes effect only once n distinct deciders have chosen the same choice; each of them is credited `Decided-by`. Until then the decision is waiting, never refused, and the status line says so: "Waiting on decision dec-000001 · 1 of 2 deciders have accepted · a decider's move". If it expires first, its default takes effect as it does today, so "doing nothing lets nothing in" still holds. The count is evaluated in the decision lifecycle's `transition(state, command, now)` and nowhere else; the Policy page reads "2 of 3 deciders for `src/**`" and Today's row shows "1 of 2" under the default. This is the smallest version: no weighting, no per-kind thresholds, no delegate groups.
## Considered Options
- **A threshold on the project, not the path.** One number is easier to explain, but the rules are already per path, and a project that wants two deciders on `src/**` and one on `docs/**` would have to choose.- **Evaluate the count at the gate's decider stage instead of in the lifecycle.** The gate would then hold decision state, which Principle 12 keeps in lifecycles; the stage reads the decision's outcome as it does now.- **A bot as a decider, to make a count up.** An agent holds no account and no credit (ADR 0016); a threshold counts people.
## Consequences
- `Policy.deciders` gains an optional `Schema.Int` field in `packages/protocol`, so the CLI, MCP and the web derive it; a missing field is 1 and no stored policy changes meaning.- The decision lifecycle's model tests (`packages/project/test/*.model.test.ts`) gain histories where n deciders choose in any order, choose differently, or run out of time, and the planted bug is a decision that takes effect at n minus one.- The web's status line, Policy page and Today row take the count from the typed value; a count of deciders is a rule, never a score, so the No Score Rule is not touched.- Not built in the competition window. No new refusal tag and no new dependency.added:docs/adr/0035-a-repos-host-is-a-port-behind-the-gateways-custody.md+20 added
1234567891011121314151617181920---status: proposed---
# A repo's host is a port behind the gateway's custody
One peer platform read in October 2026 splits hosting from viewing: a repository lives on a host chosen when it is made, a web view reads the whole network, and a second, read-only view of the same records exists, which proves the view is replaceable. Myr already has that shape without having said so: every repo is reached through `RepoHost`, one port with one contract every adapter passes (`packages/artifacts/test/repo-host-contract.ts`, Principle 6), and the gateway (ADR 0004) holds every credential, enforces custody and visibility, and refuses in git's own output.
The decision: the gateway's custody is all a host must honour. A host is whatever passes the `RepoHost` contract and takes its writes only from the gateway and the platform's own landings (ADR 0014); it holds no rule, no credential of its own that a client can reach, and no second way onto `main`. Adding a host (a second storage product, a self-hosted git server, a machine of the project's own) is one adapter in the owning package, not a rewrite of the platform, and the web, the CLI and MCP keep reading through the same contracts whichever host answers. Nothing is built for this now; the ADR exists so that nobody designs a second host as a second gateway.
## Considered Options
- **A host per project, chosen at creation, as the peer does.** The seam is the same; the choice is deferred until a second adapter exists, since a choice among one is noise in the init form.- **Let a host enforce its own rules** (membership on the host, as the peer's host does). It would be a second rule engine beside the typed config folder on main, with the rules in a place a clone cannot read.
## Consequences
- A second host adapter must pass `repo-host-contract.ts` unchanged and must refuse any write that does not come through the gateway; a test for the second point joins the contract when the first such adapter lands.- The visibility boundary stays the repo boundary (ADR 0007): a layer is a repo on a host, and a host sees nothing of what a layer means.- Not built in the competition window; no dependency is added.added:docs/adr/0036-a-vouch-carries-its-reason-and-the-landing-it-followed.md+22 added
12345678910111213141516171819202122---status: proposed---
# A vouch carries its reason and the landing it followed
A vouch is a line in the project's vouch file on main: a handle, and whether the line denounces. One peer platform read in October 2026 makes a vouch a public, revocable record with an optional reason and a pointer to the work it was made after, offered to a maintainer right after a contribution lands, and with no number attached: it changes what a person may do, not how they rank. That is the vouch Myr's glossary describes, with two fields missing.
The decision: a vouch line takes an optional `reason` and an optional `for`, the SHA of the landing it followed. The Policy page shows each as the line it is ("vouched by ines-v, for 9b1c3e5 (format-ordinal)"), with the landing linked, and never a count. After that, Today's "Newcomers to welcome" gains a one-tap Vouch whose consequence reads "adds a line to the vouch file and lands it with you as Decided-by": it is a decider's choice, so it is one of the web's permitted writes, and the line lands through the gate from the decider's working fork like any other change to the config folder. A denouncement stays what it is (it bars proposals) and is shown as its line, never as a warning label beside a name. There is no decay: the record window (30 days) already expires what trust reads.
## Considered Options
- **A vouch as a trailer on the landing** (`Vouched-by`). It would ride with the clone, but a vouch is about a person, not a tree, and it must be revocable; a line on main can be removed by a landing, a trailer cannot.- **A count of vouches shown beside a handle.** "Vouched for by 3 people" is a score; PRODUCT's "No scores" and DESIGN's No Score Rule forbid it.- **Vouches visible only to the signed-in.** The vouch file is public code on main; hiding its reading would make the web say less than the clone.
## Consequences
- The config schema in `packages/protocol` (the vouch line's parse) gains two optional fields; an old file reads as before.- The Policy page's vouch rows gain a reason and a linked landing when present; `apps/web/test` holds that no count of vouches is drawn.- The Today choice is a new contract (a decider's decision whose effect is a landing of the vouch file), in a later ADR of its own if it needs one; the line format needs none.- Not built in the competition window; no dependency is added.added:docs/adr/0037-the-platform-signs-every-landing.md+22 added
12345678910111213141516171819202122---status: proposed---
# The platform signs every landing
A landing is the platform's commit (ADR 0014), and "main moves only by a landing" is the product's first promise, but a clone cannot check it: the commits on `main` look like anyone's. One peer platform read in October 2026 signs the whole of a node's references each time they change, so anyone with a clone can verify every later update of the repository without the host. Myr needs less than that: one key, one kind of commit.
The decision: the platform signs each landing commit with one key held in the decoded env (`LANDING_SIGNING_KEY`, decoded once in the platform's env Layer, Principle 2), and publishes the public key at `/.well-known/` on the platform. `git log --show-signature` in a clone then proves offline that every commit on `main` is the platform's, and a commit on `main` without that signature is, by that fact, one the gate never saw. The web's Provenance block gains one entry, "Signature", naming the key. Nothing a contributor pushes is signed by the platform, and the platform never signs a fork's commits.
## Considered Options
- **Sign every ref, as the peer does.** It needs a signing identity per node and a protocol between nodes; Myr has one writer of `main` and one claim per fork.- **Ask contributors to sign their commits.** It would add a key to every first claim, and it proves authorship, not that the gate ran. Author signatures can be kept when present, apart from this.- **Keep the proof on the platform** (a verdict note per landing, which exists). It is a fetch away and the platform must be reachable to serve it; a signature is in the commit and needs nobody.
## Consequences
- A signing library the repo does not have (Ed25519 or OpenPGP signatures over git's commit buffer, verifiable by stock git) is a new dependency, and so needs the user's sign-off before any of this is built.- `LANDING_SIGNING_KEY` joins `apps/platform`'s `.env.schema` as a sensitive value the user sets; a stage with no key refuses to start, as a bad env does today.- A test holds that an unsigned push to `main` is still refused at the gateway (the signature proves a landing; it never admits one), and that the Lander's commit buffer verifies against the published key.- Not built in the competition window.added:docs/adr/0038-the-ledger-is-a-note-on-main.md+22 added
12345678910111213141516171819202122---status: proposed---
# The ledger is a note on main
"Export is `git clone`": code, asks and credit trailers leave with a clone, and verdict notes take one more fetch of `refs/notes/*` (ADR 0010). What a clone does not carry is the ledger (the project's layers, counts, commitments, releases and posture changes) and its decisions; both live in the platform's record alone. One peer platform read in October 2026 keeps every social object as commits in the repository under refs of its own, so a clone carries the code, the discussion and the rule set at once. Myr's rule set is already on main; the ledger is the gap.
The decision: the platform writes the ledger as a note on each landing that changes it, under `refs/notes/ledger`, append-only, in the same typed form the Ledger page and `projectPolicy` read. The fetch that brings the verdict notes brings the ledger too, so PRODUCT's sentence covers it with no new step. Only the platform writes these refs: a fork takes branches only (Principle 7, `apps/platform/test/gateway.test.ts`), so a contributor can neither forge nor erase an entry. Decisions follow the same path later, in a note of their own, once their lifecycle's record is settled enough to be a public shape.
## Considered Options
- **Commits under a ref of their own** (`refs/ledger`), as the peer's objects are. A commit DAG allows concurrent writers to merge, which the ledger has not got: one platform writes it in order. Notes are what git already fetches with the verdicts.- **A file in the config folder on main.** It would make every ledger change a landing on `main`, which moves the project's history for a bookkeeping entry, and an answer could then touch it.- **Leave the ledger on the platform** and say so. This is where the docs stand in the window: PRODUCT names the ledger as the one record not yet in the clone.
## Consequences
- The Lander's bookkeeping push (ADR 0014) gains one more note, each on its own, after `main` has moved.- The Ledger page names the ref the note is fetched from, as the verdict notes are named.- `packages/project` gains a writer of the note and a reader that decodes it with Schema (Principle 2), and a test that the note's entries equal the ledger the platform serves.- Not built in the competition window; no dependency is added.added:docs/adr/0039-the-webs-rows-carry-the-state-on-the-mark-and-the-inspector-widens.md+25 added
12345678910111213141516171819202122232425---status: accepted---
# The web's rows carry the state on the mark and the word in ink, and the inspector widens for its commands
Two rules of DESIGN.md changed in October 2026, after a heuristic critique of the front page, a project home and an answer page (31 of 40) and a source-first reading of a peer platform's web UI, taken as values and patterns only. This records the two changes and why, so that nobody restores the old rules as a tidy-up.
**The row's state word is ink.** DESIGN.md's row anatomy said "the state word in its role": Waiting in ochre, Refused in red, Landed in green, on every row. Measured on a project home, that painted ochre thirty-one times on one screen, and the one word that asks the reader for a move, "Open to take", was ink and had no weight against it. The peer's lists make the opposite mistake, a tinted square and no word, and are loud for it. The rule is now the Mark Carries Rule: in a row the colour belongs to the mark, the word is ink at 500, except Refused (red) and Landed (green), which are final and rare. The status line, the state badge and the inspector keep the coloured word, where it is said once beside its sentence. The Word First Rule is untouched: every mark still has its word.
**The inspector is 20 rem from `shell` and 22 rem from `codefacts`.** At 19 rem with 16 px of padding, a 6ch hang and a 32 px Copy, the inspector's command line held about 27 characters, so `myr claim <ask> --project <project>` and `git clone` of a project wrapped to three or four lines. The inspector exists to hand a command over; it was the hardest thing on the page to read. The peer opens its side column at 20 rem and only from 1350 px, and truncates its commands; Myr shows a command whole, so it makes room instead: 20 rem, 22 rem from 1440 px, and the command line in a bleed form inside the inspector (pane-wide, hairlines top and bottom, a 28 px icon-only Copy, a 2ch hang), which gives about 32 and 36 characters a line. Main keeps a 556 px row at 1164 px and an 800 px one at 1440 px.
Beside them DESIGN.md took, within its rules, a pressed-surface token for a selected row under the pointer, the time slot filled on every row, a two-line want below `tablet`, `files · +n −m` on a subject's meta line, Provenance in the one block shape, the path split in the code header and tree, the `kbd` look in the keys dialog, the Landed page told as a sentence before its hashes, and posture said once per page. None adds a colour to a non-state thing, a score, a fill, a shadow, a radius above 2 px or text under 13 px.
## Considered Options
- **Keep the coloured word and thin the lists.** Fewer rows per screen would not change what a page of waiting asks looks like; the stripe is the rule, not the count.- **Collapse the inspector on laptops** and let main have the width. The facts and the command are what the page is for; hiding them to fit them is backwards.- **Truncate commands in the inspector**, as the peer does. A command copied whole but read in part is the one thing the control room must not do.
## Consequences
- The rules are decided in DESIGN.md and not yet in the code; its "Decided, not yet drawn" list names each file, and the build issues are cut from it. The tokens (`--surface-2`, and its contrast pairs in `apps/web/test/tokens.test.ts`) are in `styles.css` now.- Tests that key on a row's state word by colour class must key on `data-mark` and the word instead, as DESIGN.md's "Do" already asks.- The critique's remaining findings (heading order in the inspector, the intro paragraphs past 70ch, the toolbar's inset) are polish, not rules, and are not recorded here.modified:AGENTS.md+1 added
119 unmodified lines120 - XState in the window; the `no-comments` rule; Alchemy PR preview packages; `herdr-ts-sdk`.121 - shadcn's `command` (it brings `cmdk`, built on Radix), `sidebar` (its source calls `Math.random()`, which typecheck refuses, and its `use-mobile` hook fails lint) and `resizable` (it adds `react-resizable-panels`, and a fixed grid does the job) in `apps/web`.122 - DOMPurify for a README's HTML: it needs a DOM, which the Worker has not got. `rehype-sanitize` runs the same on the server and in the browser.123 - Any inbound or two-way GitHub sync. It would be a second way onto `main` that skips the gate.124+- A decentralised-identity client (an atproto OAuth client, a DID resolver) behind the handle: a sign-in redesign and a third party's account as identity (ADR 0016). A second identity, if ever, is a key the person holds.125 126 ## Agent skills127 128 ### Issue tracker21 unmodified lines