Skip to content
Myr

Merge branch 'build/707-adr-glossary-agents-fold-ins'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by oscabriel · committed by oscabriel · parents 4de6bd1, f8985b9 · Browse files · 14 files+369 added−18 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

14 files+369 added−18 removed

  • tests:+202 added−0 removed
  • other:+167 added−18 removed

14 files+369 added−18 removed

modified:docs/adr/0001-bun-workspaces-and-turborepo.md+4 added
modified:docs/adr/0002-wrangler-deploys-every-worker.md+5 added
modified:docs/adr/0003-rpcgroup-is-the-one-schema.md+4 added
modified:docs/adr/0004-git-gateway-owns-custody.md+13 added
modified:docs/adr/0005-rules-read-from-the-landed-sha.md+4 added
modified:docs/adr/0006-landing-is-a-parse.md+6 added
modified:docs/adr/0008-claims-are-exclusive-by-default.md+5 added
added:docs/adr/0014-landing-is-a-cas-push-of-main-then-bookkeeping-refs.md+21 added
1---2status: accepted3---45# Landing is a CAS push of main, then the bookkeeping refs, each on its own67The platform lands a checked tree as one new commit on canonical `main`, whose parent is the landed SHA the Project DO last recorded, pushed with a plain push: never forced and never atomic. If `main` moved since, storage refuses it, and the landing re-merges onto the new `main` or ends as `StaleBase`. Only once `main` has moved does the platform push its bookkeeping: the mirror ref (ADR 0005) and the verdict note, each in a push of its own. Artifacts has no atomic multi-ref push, and any write token can force-push `main`, so the one push that matters is the compare-and-swap on `main`, and only the platform holds a token that can make it.89## Considered Options1011- **One atomic push of `main`, the mirror ref and the note.** This was the earlier design. Artifacts refuses `--atomic` (spike, Oct 6), and its receive-pack advertises no `atomic` capability.12- **`--force-with-lease` on `main`.** It is a compare-and-swap too, but it is a forced push: once the expected value matches, any commit replaces `main`, even one that does not descend from it, so a landing built on the wrong parent would rewrite history instead of failing. A plain push of a commit whose parent is the old tip can only move `main` forward. The Lander uses a lease only for its own compose refs, never for `main`.13- **Bookkeeping first, `main` last.** A mirror or a note naming a commit that never landed would mislead its readers, and Artifacts accepts a notes ref naming a commit the repo lacks, then fails the fetch of that commit.1415## Consequences1617- The landed SHA in the Project DO, written in the same transaction as the landing record, is the only truth (ADR 0005). The mirror ref and the note may trail `main` for a moment, and nothing decides by them.18- A bookkeeping push that fails stays in the DO's outbox, and the next alarm lands the same request again. The Lander finds its own commit already on `main`, by the commit's `Request-Id` trailer, and writes only what is missing, so a replayed landing never makes a second commit.19- Artifacts fires one push event per ref, so `OnPush` reads the ref and ignores the pushes the platform made.20- Write tokens for a canonical repo never leave the platform. Answers go to forks, and tokens are per repo.21- The serial landing queue lands one request per project at a time. A landing that meets `RepoBusy` waits and tries again, from a second up to five minutes.
added:docs/adr/0015-submitting-an-answer-is-asynchronous.md+19 added
1---2status: accepted3---45# Submitting an answer is asynchronous: the push hears the cheap stages, and the rest arrives later67An answer is offered by `git push` to the claim fork, or by the `submitAnswer` contract (the CLI's `submit`, the MCP tool). Either way, the call runs only the gate's first two stages: the parse (who may push what, and where) and the shape (territory, judge custody, weakening, reached internals). A clean answer then starts the `Answer` Workflow and returns at once with the outcome `Checking`, which git shows as `remote: checking <ask> at <head>; follow with <cli> status`. The merge, the project's own commands in a container, the held-back checks and any human stage run after the call has returned. Their outcome arrives as the verdict note on the answer's head, in `status` and `watch`, and through MCP. A container check takes minutes, and a push must not hold a request open that long.89## Considered Options1011- **Hold the push open until the verdict.** Every refusal would then reach `git push` output, but one request would hold the git client, the gateway and a container for minutes, and a dropped connection would leave the pusher with nothing to read.12- **Accept the push and say nothing until a later read.** Shape refusals are cheap and the most common kind, so they belong in git's own output, before the answerer moves on.1314## Consequences1516- Every offer carries a `requestId` (a push's is `push-<head>-<handle>`), so offering the same answer again returns the same receipt and starts no second run.17- A push hears every stage-1 refusal at once (ADR 0006). `submitAnswer` fails with one error, so it returns the first of them.18- Refusals from the later stages, such as `ChecksFailed`, `Flake`, `StaleBase` from a re-merge, or `HeldBackFailed`, never appear in the push's own output. They are read from `status`, `watch`, MCP or the verdict note (`git fetch` of the notes ref, then `git notes show`).19- An answer's `Outcome` says where it stands meanwhile: `Checking`, then `Landed`, a waiting state, or `Refused` (ADR 0006's amendment).
added:docs/adr/0016-a-person-is-a-platform-account.md+19 added
1---2status: accepted3---45# A person is a platform account, and nobody signs in with GitHub67A person is a handle in the platform's own accounts. They sign up and sign in with a handle and a password on the platform's own pages, and the platform is its own OAuth authorization server, for the CLI's login (PKCE) and for MCP clients. Google sign-in is an optional second way in, linked to a handle, and never the identity itself. There is no GitHub sign-in, no GitHub handle lookup and no GitHub key in any env. The product's point is to leave GitHub, so who a person is must not depend on it, and accounts that need no third party let every stage sign people in with nothing to register first.89## Considered Options1011- **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.12- **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.1314## Consequences1516- 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.17- A password is HMAC'd with a pepper held as a Worker secret, then hashed with PBKDF2, so a copy of the accounts table alone is useless. `COOKIE_KEY` and `PASSWORD_PEPPER` are required on every stage, and changing the pepper makes every stored password fail.18- Agents have no identity of their own. An agent works through its person's token, and the harness it names is audit metadata that a landing discloses as `Assisted-by:`, never identity or credit.19- Importing a public repo from GitHub once, to start a project, is unaffected (ADR 0010).
added:docs/adr/0017-rules-evaluate-once-per-landed-sha-in-a-sandbox.md+20 added
1---2status: accepted3---45# A project's rules are evaluated once per landed SHA, in a Dynamic Worker that can reach nothing67A project writes its process as TypeScript in the config folder. At each landing the Lander bundles the folder with Bun, with macros off so nothing in it runs while it is bundled. The platform then evaluates the bundle once, in a Dynamic Worker made by the Worker Loader. That Worker has no bindings, no outbound network (`fetch` and `connect` throw), no subrequests and a CPU limit, and a prelude freezes its clock and randomness to the landed commit's time and a hash of its SHA. The result is the project's policy: plain data, decoded with Schema as it leaves the sandbox, and cached in the Project DO beside the landed SHA it came from. Most rules are data. The few that are functions (whether a proposal opens without a decider, whether a claimant is admitted) are called on demand in the same kind of sandbox, with their facts passed in and the clock at zero. A project with no config folder runs on the defaults.89## Considered Options1011- **Config as data only (JSON or YAML).** There would be nothing to sandbox, but a project could not compute its rules, and the typed SDK would have nothing to check them against. `packages/rules` keeps a JSON evaluator (a committed `policy.json`, or the defaults) as a fallback adapter.12- **Bundle inside the platform Worker** with Cloudflare's worker bundler. A bundler would sit in the Worker that serves git, and it would bundle on every evaluation instead of once per landing.13- **Evaluate on every push.** Every push would pay a sandbox start, and two pushes judged against the same landing could see different rules.1415## Consequences1617- Only a landing changes a project's rules, and no answer changes what judges it: the config folder is in the judge closure, and rules are read only at the landed SHA (ADR 0005).18- Evaluating the same SHA twice gives the same policy (principle 8; `packages/rules/test/replay.test.ts`).19- A config folder that fails to bundle or to evaluate leaves the policy of the previous landed SHA in place, and the failure is logged.20- The SDK a project imports must run with no clock, no randomness and no network of its own, so rules get time and identity only through their facts.
added:packages/config/test/docs-public.test.ts+202 added
1/**2 * The repo's own docs are the public record (issue 707): AGENTS.md,3 * GLOSSARY.md, the ADRs and the agent docs point at nothing outside the4 * repo, AGENTS.md says what holds today, every decision has a numbered ADR5 * with a status, and the glossary defines the terms the code is written in.6 * File reads and string checks only.7 */8import { NodeServices } from "@effect/platform-node";9import { describe, expect, it } from "@effect/vitest";10import { Array, Effect, FileSystem, Order, Path, Schema } from "effect";1112import { repoRoot } from "./root.ts";1314/**15 * What a pointer to something only the maintainer can open looks like: a16 * home folder, the private research repo or the host that serves it, or the17 * build's own plan folder (gitignored).18 */19const PRIVATE = [20 "~/",21 "/home/",22 "wanted-explainer",23 "plans.gneiss.run",24 ".scratch/build",25] as const;2627/**28 * What a reference into the build's private plan looks like, which a reader29 * with only the repo cannot follow: a section of its spec (`spec §8`) or one30 * of its issues by wave (`W3 313`).31 */32const PLAN_REFERENCES = [/\bspec §/u, /\bW\d \d{3}\b/u] as const;3334/** Terms the code uses in public names, each of which GLOSSARY.md defines. */35const TERMS = [36 "Claim fork",37 "Decision",38 "Family",39 "Landed SHA",40 "Outcome",41 "Patch id",42 "Policy",43 "Proposal",44 "Today",45 "Working fork",46] as const;4748const RootPackage = Schema.Struct({49 scripts: Schema.Record(Schema.String, Schema.String),50});5152/** A file's text, by its path from the repo root. */53const read = (relative: string) =>54 Effect.gen(function* () {55 const fs = yield* FileSystem.FileSystem;56 const path = yield* Path.Path;57 const root = yield* repoRoot;5859 return yield* fs.readFileString(path.join(root, relative));60 });6162/** The markdown files in a folder, by their paths from the repo root, in name order. */63const markdownIn = (folder: string) =>64 Effect.gen(function* () {65 const fs = yield* FileSystem.FileSystem;66 const path = yield* Path.Path;67 const root = yield* repoRoot;68 const names = yield* fs.readDirectory(path.join(root, folder));6970 return Array.sort(71 names.filter((name) => name.endsWith(".md")),72 Order.String73 ).map((name) => `${folder}/${name}`);74 });7576/** Each file with its text. */77const withText = (paths: readonly string[]) =>78 Effect.forEach(paths, (path) =>79 Effect.map(read(path), (text) => ({ path, text }))80 );8182/** Every public doc this test reads, with its text. */83const publicDocs = Effect.gen(function* () {84 return yield* withText([85 "AGENTS.md",86 "GLOSSARY.md",87 ...(yield* markdownIn("docs/adr")),88 ...(yield* markdownIn("docs/agents")),89 ]);90});9192/** Frontmatter that opens the file and holds a `status:` line. */93const STATUS_FRONTMATTER =94 /^---\n(?:[^\n]*\n)*?status: \S[^\n]*\n(?:[^\n]*\n)*?---\n/u;9596/** The lines of a `## <title>` section, up to the next heading of its level or above. */97const sectionOf = (text: string, title: string): readonly string[] => {98 const lines = text.split("\n");99 const start = lines.indexOf(`## ${title}`);100101 if (start === -1) {102 return [];103 }104105 const rest = lines.slice(start + 1);106 const end = rest.findIndex((line) => /^#{1,2} /u.test(line));107108 return end === -1 ? rest : rest.slice(0, end);109};110111/** The command a list item opens with: `ops` in "- `ops -- <command>`: …". */112const commandOf = (line: string) =>113 /^- `(?<name>[^`\s]+)/u.exec(line)?.groups?.name;114115describe("the repo's public docs", () => {116 it.live("point at no home folder and no private plan", () =>117 Effect.gen(function* () {118 const docs = yield* publicDocs;119120 expect(121 docs.flatMap(({ path, text }) =>122 [123 ...PRIVATE.filter((pointer) => text.includes(pointer)),124 ...PLAN_REFERENCES.flatMap((reference) =>125 reference.test(text) ? [reference.source] : []126 ),127 ].map((found) => `${path}: ${found}`)128 )129 ).toStrictEqual([]);130 }).pipe(Effect.provide(NodeServices.layer))131 );132133 it.live("AGENTS.md describes today, with no Day 0 paragraph", () =>134 Effect.gen(function* () {135 const agents = yield* read("AGENTS.md");136137 expect(138 agents.split("\n").filter((line) => /\bDay 0\b/u.test(line))139 ).toStrictEqual([]);140 }).pipe(Effect.provide(NodeServices.layer))141 );142143 it.live(144 "AGENTS.md's Commands section names every root script, and only those",145 () =>146 Effect.gen(function* () {147 const agents = yield* read("AGENTS.md");148149 const { scripts } = yield* Schema.decodeEffect(150 Schema.fromJsonString(RootPackage)151 )(yield* read("package.json"));152153 expect(154 Array.sort(155 sectionOf(agents, "Commands").flatMap((line) => {156 const name = commandOf(line);157158 return name === undefined ? [] : [name];159 }),160 Order.String161 )162 ).toStrictEqual(Array.sort(Object.keys(scripts), Order.String));163 }).pipe(Effect.provide(NodeServices.layer))164 );165166 it.live("every ADR opens with a status line", () =>167 Effect.gen(function* () {168 const adrs = yield* withText(yield* markdownIn("docs/adr"));169170 expect(171 adrs.flatMap(({ path, text }) =>172 STATUS_FRONTMATTER.test(text) ? [] : [path]173 )174 ).toStrictEqual([]);175 }).pipe(Effect.provide(NodeServices.layer))176 );177178 it.live("ADRs are numbered from 0001 with no gap", () =>179 Effect.gen(function* () {180 const numbers = (yield* markdownIn("docs/adr")).map((path) =>181 path.slice("docs/adr/".length, "docs/adr/".length + 5)182 );183184 expect(numbers).toStrictEqual(185 Array.makeBy(186 numbers.length,187 (index) => `${String(index + 1).padStart(4, "0")}-`188 )189 );190 }).pipe(Effect.provide(NodeServices.layer))191 );192193 it.live("GLOSSARY.md defines each term the code uses", () =>194 Effect.gen(function* () {195 const glossary = (yield* read("GLOSSARY.md")).split("\n");196197 expect(198 TERMS.filter((term) => !glossary.includes(`**${term}**:`))199 ).toStrictEqual([]);200 }).pipe(Effect.provide(NodeServices.layer))201 );202});
modified:AGENTS.md+13 added-12 removed
1# Myr23Myr is a whole Git platform on Cloudflare. Everything a project ships is public, the contribution process is typed code, and a push lands only by passing a typed gate. It is our entry to Cloudflare's "Build the next GitHub" competition, which closes Wed Oct 14, 11:59 PM PDT.3Myr is a Git platform on Cloudflare. Everything a project ships is public, its contribution process is typed code on main, and a push lands only by passing a typed gate. It is our entry to Cloudflare's "Build the next GitHub" competition, which closes Wed Oct 14, 11:59 PM PDT.45The core loop runs on Cloudflare today: a person claims an ask, pushes an answer through the platform's git gateway, and the platform checks it and lands it, or refuses it: the cheap stages answer in git's own output, and the rest arrive later in `status`, `watch`, MCP and the verdict note. The CLI, MCP and the web all serve the same contracts, and typed visibility (layers, held-back checks, posture, the ledger and write-only env values) plugs in as one cartridge. `README.md` says how to run it, check it and cut it; `docs/adr/` records each decision and why; `GLOSSARY.md` defines the words.67`bun run verify` is the gate. The principles table names the check that holds each rule; a rule marked "No fence" is held by review.87The plan is the synthesis: `~/Developer/projects/wanted-explainer/notes/git-platform-research/zoom-out/synthesis.md`, published at https://plans.gneiss.run/wanted-explainer/zoom-out/synthesis.html. Read the section your task touches:89- the concept: §3;10- the repo tree and stack: §4, with the final tree in §13.3;11- dependency versions: §4.4;12- the day plan and cut lines: §7.2;13- the GLOSSARY.md and ADR drafts: §8.149## Principles1011A check wins over prose: if this file and a check disagree, fix this file.12
5 unmodified lines
18| 4 | **One schema, many surfaces.** Change `packages/protocol`; every surface derives from it. Projections live only in `apps/*/src/surfaces.ts`. The CLI's command list is `commandDocs` in `@repo/agent-kit`, which the platform's skill, the CLI's MCP prompt and the web's `llms.txt` all read. | `apps/cli/test/commands-doc.test.ts` (the command list against the real CLI's commands, flags and positionals); `packages/protocol/test/mcp.test.ts` (every MCP tool's schemas, with no JSON Schema leak); per-package `allowedUnstableApis` with `unstableApiUsage` at error |19| 5 | **The name lives only in `packages/brand`.** Internal packages use `@repo/*`. DO classes, Workflows, queues and databases carry job names. | `brand:check` (`scripts/brand.ts`, tested by `packages/brand/test/leaks.test.ts`) |20| 6 | **Pure core, thin hosts.** Only `@repo/artifacts` calls Artifacts. Each beta dependency sits behind one job-named port with a `/memory` adapter in the owning package. Apps import packages only. Worker code stays free of `node:child_process`, `@effect/platform-bun` and OpenTUI. `rules` and `gate` run in both Workers and Bun. `alchemy/*` stays in `infra/`. No module-level mutable state in a package's `src/`. | Scoped `allowedUnstableApis`; `packages/artifacts/test/repo-host-contract.ts` (one RepoHost contract every adapter passes); `apps/platform/test/bindings.test.ts` and `apps/platform/test/worker-init.test.ts` (the Worker starts on its real adapters, composed in `apps/platform/src/ports.ts`); `apps/web/test/production-bundle.test.ts` (no dev-world module in the web's production build); `packages/config/test/cartridge.test.ts` (the visibility cartridge is plugged in by one marked line and reached by nothing else, so removing it is a deletion). No fence: import direction and module-level state |21| 7 | **Deny by default for visibility.** Land the answer's tree, never the composed tree. Nothing from a layer enters a public tree. Snapshot before held-back files are written. Public-serving Workers have no private-namespace binding. Public commits, trailers, notes and errors name public paths only. | `PrivatePathInPublicTree`, one rule for the gate's stage 1 and the landing guard (`packages/gate/test/shape.test.ts`, `packages/visibility/test/guards.test.ts`); `apps/platform/test/visibility/layer-gateway.test.ts` (only a layer's readers clone it, every read is logged, a fork push cannot carry its paths); `apps/sandbox/test/held-back.test.ts` (egress off and the snapshot taken before any sealed file is written; one bit per area, no output); `apps/platform/test/visibility/held-back.test.ts` (the `Held-back:` trailer, the landing guards, no stored value in a note or a kept log); `apps/platform/test/bindings.test.ts`; `apps/sandbox/test/checker.test.ts` (no snapshot once the held-back slot is reached); `apps/web/test/env.test-d.ts` (the web's Env has no private-namespace or Artifacts binding) and `apps/platform/test/env.test-d.ts` (only the platform's has both) |28| 8 | **Deterministic and idempotent.** Rule evaluation sees frozen time and randomness and only injected facts. Re-running an operation converges. Check results are keyed by (tree SHA, check version), push events deduped by (repo, sha), and land requests carry a `requestId`. | `globalDate`, `globalRandom`, `globalTimers` and `cryptoRandomUUID` at error, with their in-Effect twins; `packages/rules/test/replay.test.ts`; `packages/project/test/project-store.contract.ts`; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts`; `apps/platform/test/workflows/answer.test.ts`; `apps/platform/test/workflows/on-push.test.ts`; `apps/platform/test/core-loop.test.ts`. No fence yet: one push deduped by (repo, sha) across the gateway's record and OnPush's (W3 313 #2) |22| 8 | **Deterministic and idempotent.** Rule evaluation sees frozen time and randomness and only injected facts. Re-running an operation converges. Check results are keyed by (tree SHA, check version), push events deduped by (repo, sha), and land requests carry a `requestId`. | `globalDate`, `globalRandom`, `globalTimers` and `cryptoRandomUUID` at error, with their in-Effect twins; `packages/rules/test/replay.test.ts`; `packages/project/test/project-store.contract.ts`; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts`; `apps/platform/test/workflows/answer.test.ts`; `apps/platform/test/workflows/on-push.test.ts`; `apps/platform/test/core-loop.test.ts`. No fence: one push deduped by (repo, sha) across the gateway's record and OnPush's |23| 9 | **Effect v4 only.** Read `node_modules/effect/src` as API truth. Off limits: `effect/unstable/*`, v3 `@effect/platform` and `@effect/cli`, and `effect/workflow` or `effect/cluster` on Workers. | `outdatedApi`; `no-restricted-imports` |24| 10 | **Escapes need a reason.** Every `oxlint-disable`, `@effect-diagnostics` or `@ts-expect-error` carries its reason after `--`, and is added only where no idiomatic code does the job. | `check` fails on an unused directive. No fence: the reason |25| 11 | **`bun run verify` is the authority.** Deploy only to an explicit stage, after `verify`, with smoke after. A red gate is fixed, never deployed around. | `packages/config/test/verify.test.ts` (verify's steps); `infra/deploy.ts` refuses without a known stage, runs `verify` first and `scripts/smoke.ts` after (`packages/config/test/deploy.test.ts`, `packages/config/test/smoke.test.ts`) |26| 12 | **Lifecycles are pure transitions.** `transition(state, command, now)`. Per DO call: hydrate, transition, persist, settle. Deadlines run on DO alarms. Call them lifecycles. | `globalTimers` and `globalTimersInEffect`; `packages/project/test/claim.model.test.ts` and `packages/project/test/landing.model.test.ts` (model tests over effect/Arbitrary histories, each seen catching its planted bug); `apps/platform/test/project-do.test.ts`. No fence: `Effect.sleep` and `Effect.delay` in `packages/project/src` |
12 unmodified lines
39- a cut that follows the README's "Keep or cut".4041**Needs the user's sign-off:**4249- a dependency outside the synthesis §4.4 adopt list;43- a dependency that no `package.json` in the repo has yet;44- any version change to effect, wrangler or pi;45- loosening `oxlint.config.ts`, `tsconfig.base.json` (map, overrides, allow-lists), `bunfig.toml`, `turbo.json` or `package.json` scripts;46- renaming or removing a DO class;47- deleting any Cloudflare resource;48- any deploy during a recording.4950## Commands5158Run each as `bun run <name>` from the repo root.52Run each as `bun run <name>` from the repo root; `--` passes flags to the script.5354- `verify`: the gate (see Verify).55- `check`: lints and checks formatting; an unused escape directive fails it.56- `fix`: applies lint fixes and formatting.
1 unmodified line
58- `test`: runs every workspace's tests.59- `brand:check`: fails when the name appears outside `packages/brand` and prose.60- `bytes:check`: fails when a Worker's bundle grows past its byte budget.61- `lockfile:check`: fails when `bun.lock` is out of date with the manifests.62- `prepare`: runs on `bun install` and patches TypeScript with the Effect language service.63- `env:check`: shows the env with its values redacted.64- `ops -- <command>`: runs cf with the ops credentials (see Boundaries).65- `bootstrap -- --stage <stage>`: makes a stage's Cloudflare resources; a second run creates nothing, and `--dry-run` only prints the plan.66- `deploy -- --stage <stage>`: the one way to deploy. It runs `verify`, deploys the three Workers with Wrangler, reads the push trigger back, then runs `smoke`.67- `smoke -- --stage <stage>`: read-only probes against a live stage.68- `seed`: puts the two example projects on a platform (`--world node` on this machine, or `--stage <stage>`); a second run changes nothing.69- `swarm`: not built yet, so it says so and exits 1. Once built, it runs fictional contributors, on several harnesses, against one split family on a stage.70- `release`: not built yet, so it says so and exits 1. Once built, it builds the CLI's package and binaries, which the platform serves from its own bucket. Only a person publishes.7172## Nouns7374Each code noun has one home:
71 unmodified lines
modified:GLOSSARY.md+34 added-6 removed
18 unmodified lines
19**Claim**:20One person's exclusive, expiring right to answer an ask, made of a fork and a scoped token; kept alive only by pushes.21_Avoid_: lease, lock, assignment2223**Claim fork**:24The fork a claim is made of, named `<project>--<ask>--<handle>`, to which the claimant pushes answers.25_Avoid_: branch, feature branch2627**Working fork**:28A person's own fork of a project, named `<project>--me--<handle>`, that holds a decider's own changes before they land and a proposer's sealed answers.29_Avoid_: personal fork, scratch repo3031**Check**:32The predicate that judges an answer: the ask's own check plus the project's checks, run by the platform on the exact merged tree.33_Avoid_: test (when the whole judgement is meant), CI, eval34
1 unmodified line
36The rule that an ask opens only if its check fails on main twice in the same way, by an assertion rather than a load error.37_Avoid_: failing test requirement3839**Check kind**:32The shape of an ask's check: redThenGreen, lintToZero, ratchet or migrate.40The shape of an ask's check: redThenGreen, lintToZero, ratchet, migrate, or symbolAbsent (a family's delete child).4142**Family**:43A migrate ask whose old name is used in two or more modules, opened as one child ask per module that uses it, each with that module as its territory, plus a delete child that waits on every child and checks the name is gone; the parent closes when its last child lands.44_Avoid_: epic, subtasks, batch4546**Territory**:47The module (by default a workspace package) an answer may change.48_Avoid_: scope (when meaning paths), lane, footprint49
1 unmodified line
51One or more members of the closed, typed union the platform returns instead of landing, all from the cheapest failing stage, each with a reason, a reproducing command, a next step, and whether retrying can help.52_Avoid_: rejection, error, failure, CI failure5354**Proposal**:43A request to open an ask, from anyone not denounced, that expires unless a decider accepts it.55A request to open an ask, or to flag an existing one, from anyone not denounced; it expires unless a decider accepts it.56_Avoid_: feature request, suggestion5758**Sealed answer**:59An answer recorded with a proposal and judged after the ask opens, without the decider reading its diff.
12 unmodified lines
72The platform's commit of a checked tree to main, written by the platform with credit trailers.73_Avoid_: merge, ship7475**Landed SHA**:64The commit the platform itself last landed; the only place rules are read from.76The commit the platform itself last landed on main; the only commit a project's rules are read from.77_Avoid_: HEAD, tip of main7879**Outcome**:80Where an offered answer stands: Checking, Landed, WaitingOnParent, AwaitingFinish, AwaitingDecision or Refused; only Refused carries refusals, and waiting is not a refusal.81_Avoid_: result, build state, CI status8283**Judge closure**:84Every file that decides what the checks do (check files, test and lint config including lint plugin sources and rule fixture tests, CI files, git and harness hook configs, scripts, the config folder, .env.schema and committed .env.* files); no answer may change it.85_Avoid_: protected paths86
4 unmodified lines
91A counted budget per territory, recorded at landing and lowered automatically, that answers may lower but never raise; only a decider raises it.92_Avoid_: baseline (alone), suppression file9394**Verdict**:79The record of one check run: base, head, patch-id, level and the platform as verifier, kept with the landing.95The record of one check run: base, head, patch id, level and the platform as verifier, kept with the landing.96_Avoid_: approval, review9798**Patch id**:99The platform's own fingerprint of an answer's change set: a hash over each path the answer changes, with its content before and after, so the same change gives the same id however its commits were made.100_Avoid_: git patch-id, diff hash101102## People and attention103104**Asker**:105The person credited with deciding a change was worth making.
5 unmodified lines
111**Decider**:112A person whose decisions open asks, accept proposals and finish answers for an area.113_Avoid_: reviewer, approver, owner114115**Decision**:116One choice put to a project's deciders, with its evidence and a safe default that is taken if nobody decides before it expires.117_Avoid_: approval, vote, review request118119**Today**:96A decider's daily page of decisions with evidence and safe defaults, held to a budget.120A decider's daily page of open decisions, ordered by expiry and held to their budget; the overflow waits for a later day.121_Avoid_: inbox, queue, dashboard122123**Budget**:100The number of decisions a decider takes per day; overflow waits and expires.124The number of decisions a decider takes per day; a decision past it waits, and one that expires undecided takes its default.125126**Vouch**:127A line in the project's vouch file by which a member admits a person to claim and to submit sealed answers.128_Avoid_: approval, whitelist
61 unmodified lines
190**Config folder**:191The .myr/ folder on main holding the project's process as TypeScript: project.ts, kinds, asks, visibility.ts, the vouch file.192_Avoid_: settings, workflow files193194**Policy**:195A project's rules as the platform evaluated them from the config folder at one landed SHA, or the defaults when the project has no config folder.196_Avoid_: settings, config (when meaning the evaluated result)197198**Run block**:199The config folder's declaration of the project's own commands: setup, doctor, test, checks.200201**Gateway**:
6 unmodified lines