Skip to content
Myr

Merge build/maintainer-wording into main

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

authored by oscabriel · committed by oscabriel · parents 378d320, 3a07ecf · Browse files · 125 files+210 added−203 removed
This commit

State

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

Diff stats

125 files+210 added−203 removed

  • tests:+88 added−81 removed
  • other:+122 added−122 removed

125 files+210 added−203 removed

This commit is too large to show whole: its files are listed by path, without their changes.

modified:apps/cli/src/local/check.ts+1 added-1 removed
759 unmodified lines
760 const ratcheted = judgeMoves(facts, ask.value, counts.moves);761762 for (const move of ratcheted.decisions) {763 yield* output.note(764 `The ratchet ${moveText(move)}: a reasoned escape you add there asks a decider to raise it, so the answer will wait on that decision.`764 `The ratchet ${moveText(move)}: a reasoned escape you add there asks a maintainer to raise it, so the answer will wait on that decision.`765 );766 }767768 const refusals = [...failed, ...ratcheted.refusals];
25 unmodified lines
modified:apps/cli/src/local/why.ts+1 added-1 removed
223 unmodified lines
224 return { code: true, label: "Ask", value: landing.ask };225 }226227 return landing.opened === undefined228 ? { label: "Ask", value: "none (a decider's own landing)" }228 ? { label: "Ask", value: "none (a maintainer's own landing)" }229 : { code: true, label: "Opened", value: landing.opened };230};231232const landingRows = (landing: LandingView): readonly Row[] => [
144 unmodified lines
modified:apps/cli/src/render.ts+5 added-5 removed
113 unmodified lines
114115const outcomeText = (outcome: Outcome) =>116 Outcome.match(outcome, {117 AwaitingDecision: ({ decision }) => `waits on decision ${decision}`,118 AwaitingFinish: () => "passed; waits for a decider's finish",118 AwaitingFinish: () => "passed; waits for a maintainer's finish",119 Checking: ({ stage }) => `checking (${stage})`,120 Landed: ({ sha }) => `landed as ${short(sha)}`,121 Refused: ({ refusals }) =>122 `refused: ${refusals.map((refusal) => refusal._tag).join(", ")}`,
229 unmodified lines
352 policy.source === "config"353 ? `As of ${short(policy.at)}, the landed commit, from ${PROJECT_FILE}.`354 : `As of ${short(policy.at)}, the landed commit. This project has no ${PROJECT_FILE}: the person who set it up decides everything, under the platform's defaults.`355 ),356 prose("Deciders by path:"),356 prose("Maintainers by path:"),357 table(358 ["paths", "deciders"],358 ["paths", "maintainers"],359 policy.deciders.map(({ handles, paths }) => [paths, handles.join(", ")]),360 "Nobody decides.",361 [0]362 ),
13 unmodified lines
376 : `${plural(caps.proposalsPerPerson, "proposal", "proposals")} per person at once`,377 ],378 [379 "Budget",380 `${plural(budget.decisionsPerDay, "decision", "decisions")} a day per decider; an undecided one takes its default after ${plural(budget.expireDays, "day", "days")}`,380 `${plural(budget.decisionsPerDay, "decision", "decisions")} a day per maintainer; an undecided one takes its default after ${plural(budget.expireDays, "day", "days")}`,381 ],382 [383 "Claim timing",384 `warned after ${spanOf(claims.warnAfterMs)} without a push; lapses after ${spanOf(claims.lapseAfterMs)}`,
21 unmodified lines
406407 return reason === "noConfig"408 ? [409 `${notEvaluated}: there is no ${Brand.configDir}/ folder, and no test command in the project's CI or package files.`,410 `Run \`${Brand.cli} init --project <owner>/<name> --dry-run\` in the project's repo to see the ${PROJECT_FILE} it proposes, then have a decider land it.`,410 `Run \`${Brand.cli} init --project <owner>/<name> --dry-run\` in the project's repo to see the ${PROJECT_FILE} it proposes, then have a maintainer land it.`,411 ]412 : [413 `${notEvaluated}: ${Brand.configDir}/ at ${short(at)} did not evaluate.`,414 `Fix it by landing a change to ${Brand.configDir}/; it is evaluated again at every landing.`,
126 unmodified lines
modified:apps/cli/test/local/check.test.ts+2 added-2 removed
708 unmodified lines
709 }).pipe(Effect.scoped, Effect.provide(NodeServices.layer))710 );711712 it.live(713 "lets a raise a reasoned escape explains wait on a decider, as the platform does, and says so",713 "lets a raise a reasoned escape explains wait on a maintainer, as the platform does, and says so",714 () =>715 Effect.gen(function* () {716 const repo = yield* aCheckRepo;717
32 unmodified lines
750 },751 ok: true,752 });753 expect(printed.err.join("\n")).toContain(754 `The ratchet ${ratchet} in a: 2 on the base, 3 here: a reasoned escape you add there asks a decider to raise it`754 `The ratchet ${ratchet} in a: 2 on the base, 3 here: a reasoned escape you add there asks a maintainer to raise it`755 );756 }).pipe(Effect.scoped, Effect.provide(NodeServices.layer))757 );758
73 unmodified lines
modified:apps/cli/test/local/env-set-live.test.ts+1 added-1 removed
733 unmodified lines
734 })735 );736737 it.effect(738 "refuses bram, no decider, with NotDecider printed once and exit 77",738 "refuses bram, no maintainer, with NotDecider printed once and exit 77",739 () =>740 Effect.gen(function* () {741 const { byBram } = yield* Scenario;742
95 unmodified lines
modified:apps/cli/test/tui/today.test.ts+3 added-3 removed
51 unmodified lines
5253 return { calls, state: now };54};5556describe("the keys a decider presses on Today", () => {56describe("the keys a maintainer presses on Today", () => {57 it("declines the second decision with d, its default, at once", () => {58 const { calls } = press(start(today), ["down", "d"]);5960 expect(calls).toStrictEqual([
13 unmodified lines
74 { choice: "accept", decision: vouch.id, project: datekit },75 ]);76 });7778 it("keeps the decision open when the decider says n, or moves on", () => {78 it("keeps the decision open when the maintainer says n, or moves on", () => {79 const asked = press(start(today), ["down", "a"]).state;8081 expect(press(asked, ["n", "y"]).calls).toStrictEqual([]);82 expect(press(asked, ["up", "y"])).toStrictEqual({
334 unmodified lines
417418const ids = (state: TodayViewState | undefined) =>419 state?.today.decisions.map(({ id }) => id);420421describe("Today full-screen, worked by a decider", () => {421describe("Today full-screen, worked by a maintainer", () => {422 it.effect(423 "sends d on the second decision as a decline, then shows Today without it",424 () =>425 Effect.gen(function* () {
263 unmodified lines
modified:apps/cli/test/policy-view.test.ts+4 added-4 removed
60 unmodified lines
61 .map((line) => line.replaceAll(/\s+/gu, " ").trim())62 .filter((line) => line !== "");6364describe("policy's text view", () => {65 it("lists each decider glob with its handles, in the policy's order", () => {65 it("lists each maintainer glob with its handles, in the policy's order", () => {66 const lines = linesOf(textOf(datekit));6768 expect(lines).toContain("** ines-v");69 expect(lines).toContain("src/tz.ts okonkwo, bram");
1 unmodified line
71 lines.indexOf("src/tz.ts okonkwo, bram")72 );73 });7475 it("writes each decider glob as code in Markdown, so `**` reads as a glob, not emphasis", () => {75 it("writes each maintainer glob as code in Markdown, so `**` reads as a glob, not emphasis", () => {76 const markdown = Option.match(views.projectPolicy(datekit), {77 onNone: () => "",78 onSome: (view) => view.markdown,79 });
35 unmodified lines
115116 for (const line of [117 "Claims 3 claims per person at once",118 "Proposals 2 proposals per person at once",119 "Budget 5 decisions a day per decider; an undecided one takes its default after 14 days",119 "Budget 5 decisions a day per maintainer; an undecided one takes its default after 14 days",120 "Claim timing warned after 2 hours without a push; lapses after 24 hours",121 "Record a landing counts once it has stood 30 days, for 365 days",122 ]) {123 expect(lines).toContain(line);
6 unmodified lines
130 const lines = linesOf(textOf(noConfig));131132 expect(lines).toStrictEqual([133 `The config at the landed commit ${sha.slice(0, 7)} has not been evaluated: there is no ${Brand.configDir}/ folder, and no test command in the project's CI or package files.`,134 `Run \`${Brand.cli} init --project <owner>/<name> --dry-run\` in the project's repo to see the ${Brand.configDir}/project.ts it proposes, then have a decider land it.`,134 `Run \`${Brand.cli} init --project <owner>/<name> --dry-run\` in the project's repo to see the ${Brand.configDir}/project.ts it proposes, then have a maintainer land it.`,135 ]);136 });137138 it("names init with --project in the Markdown form too, without the page's clone sentence", () => {
94 unmodified lines
modified:apps/platform/src/adapters/custody.ts+2 added-2 removed
187 unmodified lines
188) =>189 Effect.gen(function* () {190 const isClaimant = sameHandle(pusher.handle, fork.handle);191192 // A decider finishes an answer by pushing onto its fork.192 // A maintainer finishes an answer by pushing onto its fork.193 const refused = yield* against(projects, fork.project, (api) =>194 isClaimant195 ? holds(api, pusher, fork.ask)196 : Effect.map(Effect.isSuccess(api.today(pusher)), (decides) =>
2 unmodified lines
199 );200201 return custodyOf(202 (commands) => [...branchesOnly(commands), ...refused],203 // A decider's commits are judged by `<cli> finish`, not by the push.203 // A maintainer's commits are judged by `<cli> finish`, not by the push.204 (repo, commands) =>205 Option.match(206 Option.filter(mainTip(commands), () => isClaimant),207 {
127 unmodified lines
modified:apps/platform/src/workflows/on-push.ts+1 added-1 removed
54 unmodified lines
55class LooksStray extends Data.TaggedError("LooksStray") {}5657// The platform pushes `main` before its DO records the landing, and the event can58// arrive in between: a stray verdict on the platform's own landing would ask the59// deciders to revert it.59// maintainers to revert it.60const strayGrace: StepRetry = {61 backoff: "exponential",62 delayMs: 15_000,63 limit: 4,
64 unmodified lines
modified:apps/platform/src/home.ts+1 added-1 removed
121 unmodified lines
122 ])123 ),124 section(125 "Drafting",126 `<p>A member can ask the platform's agent to draft a proposed ask (Workers AI, ${code(draftModel)}); a decider accepts it, and only people are credited.</p>`126 `<p>A member can ask the platform's agent to draft a proposed ask (Workers AI, ${code(draftModel)}); a maintainer accepts it, and only people are credited.</p>`127 ),128 section("Health", `<p>${link(`${origin}/health`)}</p>`),129 ].join("\n"),130 "document"
47 unmodified lines
modified:apps/platform/test/visibility/env-values.test.ts+1 added-1 removed
305 unmodified lines
306});307308describe("a write-only value over the platform", () => {309 it.effect(310 "is set by a decider over /rpc, refused to anyone else, sealed in the DO, and shown to anyone as who and when",310 "is set by a maintainer over /rpc, refused to anyone else, sealed in the DO, and shown to anyone as who and when",311 () =>312 Effect.gen(function* () {313 const { refused, set, shown, stored } =314 yield* settingTheToken(keptFresh());
59 unmodified lines
modified:apps/platform/test/workflows/answer.test.ts+2 added-2 removed
601 unmodified lines
602 }).pipe(Effect.provide(world))603 );604605 it.effect(606 "an answer a decider must finish stops once checked, and lands nothing",606 "an answer a maintainer must finish stops once checked, and lands nothing",607 () =>608 Effect.gen(function* () {609 const answer = yield* cleanAnswer;610 const steps = yield* freshSteps();
14 unmodified lines
625 }).pipe(Effect.provide(worldWith(finishRequired)))626 );627628 it.effect(629 "a decider's finish starts the answer's run again, and a fresh run lands it, finished",629 "a maintainer's finish starts the answer's run again, and a fresh run lands it, finished",630 () =>631 Effect.gen(function* () {632 const answer = yield* cleanAnswer;633
333 unmodified lines
modified:apps/platform/test/workflows/on-push.test.ts+1 added-1 removed
279 unmodified lines
280 event: pushed({ after: answerHead, repo: "alice__datekit--me--alice" }),281 facts: facts(282 RepoKind.WorkingFork({ handle: Handle.make("alice"), project: datekit })283 ),284 title: "a decider's working fork took a push",284 title: "a maintainer's working fork took a push",285 verdict: ignored("not main"),286 },287 {288 event: pushed({ after: strayHead, repo: "Not.A.Project" }),
499 unmodified lines
modified:apps/platform/test/auth.test.ts+1 added-1 removed
198 unmodified lines
199 })200 );201202 it.effect(203 "refuses a signed-in or decider contract to anyone as Unauthenticated",203 "refuses a signed-in or maintainer contract to anyone as Unauthenticated",204 () =>205 Effect.gen(function* () {206 const seen = yield* Ref.make<readonly Principal[]>([]);207
277 unmodified lines
modified:apps/platform/test/core-loop.test.ts+1 added-1 removed
464 unmodified lines
465 60_000466 );467468 it.live(469 "a want proposed with a draft runs in process, goes to the decider with its red-first evidence, and opens on accept with Assisted-by beside the people's credits",469 "a want proposed with a draft runs in process, goes to the maintainer with its red-first evidence, and opens on accept with Assisted-by beside the people's credits",470 () =>471 Effect.gen(function* () {472 const drafted: DraftedAsk = {473 id: AskId.make("parse-day"),
126 unmodified lines
modified:apps/platform/test/evidence.test.ts+1 added-1 removed
256 unmodified lines
257 60_000258 );259260 it.live(261 "gives the log to the answer's claimant and to a decider, and refuses everyone else",261 "gives the log to the answer's claimant and to a maintainer, and refuses everyone else",262 () =>263 Effect.gen(function* () {264 const { logRef, objects, world } = yield* refused;265 const ref = { project, ref: logRef };
108 unmodified lines
modified:apps/platform/test/gateway.test.ts+3 added-3 removed
133 unmodified lines
134 30_000135 );136137 it.live(138 "2. a decider's push to canonical main is DirectPush, and main stays where it was",138 "2. a maintainer's push to canonical main is DirectPush, and main stays where it was",139 () =>140 Effect.gen(function* () {141 const { landed, repos, root, urlOf } = yield* withDatekit;142 const clone = `${root}/clone`;
559 unmodified lines
702 30_000703 );704705 it.live(706 "a decider pushes onto someone's claim fork to finish its answer, which the push itself does not offer",706 "a maintainer pushes onto someone's claim fork to finish its answer, which the push itself does not offer",707 () =>708 Effect.gen(function* () {709 const { api, landed, projects, seen } = yield* withDatekit;710 const { claim } = yield* api.claim(bob, parseIso).pipe(Effect.orDie);
30 unmodified lines
741 30_000742 );743744 it.live(745 "a fork takes branches only, whoever pushes: a working fork's owner and a finishing decider hear DirectPush for a tag",745 "a fork takes branches only, whoever pushes: a working fork's owner and a finishing maintainer hear DirectPush for a tag",746 () =>747 Effect.gen(function* () {748 const { api, landed, projects } = yield* withDatekit;749 const { claim } = yield* api.claim(bob, parseIso).pipe(Effect.orDie);
88 unmodified lines
modified:apps/platform/test/handlers.test.ts+2 added-2 removed
383 unmodified lines
384 )385 );386387 it.effect(388 "give a decider one Today across their projects, and anyone else none",388 "give a maintainer one Today across their projects, and anyone else none",389 () =>390 Effect.gen(function* () {391 yield* made;392
353 unmodified lines
746});747748describe("making a project", () => {749 it.effect(750 "starts it empty with its maker as its decider, at the platform's git URL, once",750 "starts it empty with its maker as its maintainer, at the platform's git URL, once",751 () =>752 Effect.gen(function* () {753 yield* advanceTo("2026-10-07T12:00:00Z");754
174 unmodified lines
modified:apps/platform/.env.schema+1 added-1 removed
41 unmodified lines
42# @optional @sensitive43GOOGLE_CLIENT_SECRET=4445# Write-only env values: the 256-bit key, as 64 hex characters, that46# wraps the data key of every value a decider sets (WebCrypto, AES-GCM).46# wraps the data key of every value a maintainer sets (WebCrypto, AES-GCM).47# Losing it loses every stored value: nobody, the platform included, can48# open one again. Keep a copy outside this machine. Changing it needs every49# value re-wrapped first.50# @required @sensitive @type=string(isLength=64, matches=regex("^[0-9a-fA-F]{64}$"))
1 unmodified line
modified:apps/sandbox/test/lander.test.ts+1 added-1 removed
761 unmodified lines
762 );763 });764 describe(compose, () => {765 it.live(766 "commits a decider's files onto main on a compose ref named by the tree, leaves main alone, and gives the same commit when asked again",766 "commits a maintainer's files onto main on a compose ref named by the tree, leaves main alone, and gives the same commit when asked again",767 () =>768 Effect.gen(function* () {769 const repos = yield* world;770 const sides = yield* diverged(repos);
426 unmodified lines
modified:apps/web/e2e/people.e2e.ts+2 added-2 removed
26 unmodified lines
27 Option.isNone(settings.web),28 "WEB_URL is not set: point it at a deployed web's origin to run this check"29 );3031 test(`${project}'s policy page shows its deciders and the commit they are read at`, ({31 test(`${project}'s policy page shows its maintainers and the commit they are read at`, ({32 page: browser,33 }) =>34 Effect.runPromise(35 Effect.gen(function* () {
12 unmodified lines
48 );4950 yield* Effect.promise(() =>51 expect(52 browser.getByRole("heading", { name: "Deciders by path" })52 browser.getByRole("heading", { name: "Maintainers by path" })53 ).toBeVisible()54 );5556 yield* Effect.promise(() =>
17 unmodified lines
modified:apps/web/src/dev/fixtures/fillers.ts+1 added-1 removed
178 unmodified lines
179 }),180 ],181 [182 `${configDir}/vouched.td`,183 `# The people ${project.project}'s deciders vouch for.\n`,183 `# The people ${project.project}'s maintainers vouch for.\n`,184 ],185 ]);186187export const seedFillers = (minute: number) =>
50 unmodified lines
modified:apps/web/src/dev/fixtures/vellum.ts+1 added-1 removed
349 unmodified lines
350 [`${dir}/policy.json`, policy],351 [352 `${dir}/vouched.td`,353 [354 "# The people vellum's deciders vouch for.",354 "# The people vellum's maintainers vouch for.",355 people.bram,356 people.okafor,357 people.lin,358 `${people.tove} Started with the CLI docs.`,
1553 unmodified lines
modified:apps/web/src/dev/examples.ts+2 added-2 removed
373 unmodified lines
374 ],375 [376 `${dir}/vouched.td`,377 [378 "# The people datekit's deciders vouch for.",378 "# The people datekit's maintainers vouch for.",379 datekitPeople.contributor,380 "",381 ].join("\n"),382 ],
209 unmodified lines
592 source: "config",593 weakening: { markers: [".skip(", ".only(", ".todo("] },594 }),595 ],596 [`${dir}/vouched.td`, "# The people burrow's deciders vouch for.\n"],596 [`${dir}/vouched.td`, "# The people burrow's maintainers vouch for.\n"],597]);598599export const burrow = {600 asks: burrowAsks.map(
32 unmodified lines
modified:apps/web/src/dev/fixtures.ts+1 added-1 removed
255 unmodified lines
256 .slice(0, limit)257 .map((event) => ({ event, seq: event.seq }))258 )259 ),260 // Anyone but a decider or the log's claimant hears `NotDecider` whether or not a log is kept,260 // Anyone but a maintainer or the log's claimant hears `NotDecider` whether or not a log is kept,261 // so the reply tells no one which logs exist.262 evidence: (caller, ref) =>263 Effect.gen(function* () {264 const record = yield* current;
159 unmodified lines
modified:apps/web/src/features/agents/manifest.ts+1 added-1 removed
27 unmodified lines
28export const MANIFEST_PATH = "/manifest.webmanifest";2930export const webManifest = () => ({31 background_color: themeColors.light,32 description: `Open asks, answers and a decider's Today on ${Brand.name}.`,32 description: `Open asks, answers and a maintainer's Today on ${Brand.name}.`,33 display: "standalone",34 icons,35 id: "/today",36 lang: "en",
9 unmodified lines
modified:apps/web/src/features/decision/decision-page.tsx+4 added-4 removed
58 unmodified lines
59 readonly soon: boolean;60}) => (61 <FactBlock label="Decision">62 <dl className="text-ui grid grid-cols-[6rem_1fr] gap-x-3 gap-y-1.5">63 <dt className="text-label text-muted-foreground pt-0.5">Deciders</dt>63 <dt className="text-label text-muted-foreground pt-0.5">Maintainers</dt>64 <dd className="flex flex-wrap gap-x-2">65 {decision.deciders.map((handle) => (66 <HandleLink handle={handle} key={handle} />67 ))}
102 unmodified lines
170}) => (171 <div className="flex max-w-[70ch] flex-col items-start gap-3">172 <p className="text-body">173 Decision <code className="text-mono font-mono">{id}</code> is a choice put174 to {project}&apos;s deciders: the people its policy names for what it is175 about. A decider takes it on their Today, with its evidence and a safe176 default if nobody does.174 to {project}&apos;s maintainers: the people its policy names for what it175 is about. A maintainer takes it on their Today, with its evidence and a176 safe default if nobody does.177 </p>178 <p className="text-ui">179 <AppLink className={LINK} to={`/${project}/people`}>180 Who decides in {project}
169 unmodified lines
modified:apps/web/src/features/env/env-page.tsx+1 added-1 removed
250 unmodified lines
251252const SetValueFacts = ({ project }: { readonly project: ProjectName }) => (253 <FactBlock label="Set a value">254 <p className="text-ui text-muted-foreground">255 A decider sets one from a terminal; nobody reads it back.255 A maintainer sets one from a terminal; nobody reads it back.256 </p>257 <CommandLine258 command={`${Brand.cli} env set <KEY> --project ${project} --yes`}259 numbered
108 unmodified lines
modified:apps/web/src/features/front/front-page.tsx+1 added-1 removed
248 unmodified lines
249 />250 ) : (251 <EmptyState252 command={`${Brand.cli} ask open <ask> --files <files>`}253 title="No open asks on any project. A decider opens one from an ask file."253 title="No open asks on any project. A maintainer opens one from an ask file."254 />255 );256257interface Group {
263 unmodified lines
modified:apps/web/src/features/import/import-offer.tsx+1 added-1 removed
29 unmodified lines
3031 return (32 <Workspace33 crumbs={[{ label: project }]}34 meta={`Nobody has imported ${project} yet. Import it, and you become its decider.`}34 meta={`Nobody has imported ${project} yet. Import it, and you become its maintainer.`}35 title="Not imported yet"36 >37 <ImportForm38 {...importer}
11 unmodified lines
modified:apps/web/src/features/import/import-page.tsx+1 added-1 removed
10 unmodified lines
11 <li>12 The platform clones the repo once, over HTTPS. Later pushes to the13 source do not follow it.14 </li>15 <li>You become the project&apos;s decider.</li>15 <li>You become the project&apos;s maintainer.</li>16 <li>17 A repo with no config folder takes its checks from its CI and its test18 command.19 </li>
35 unmodified lines
modified:apps/web/src/features/landing/landing-page.tsx+2 added-2 removed
98 unmodified lines
99];100101const LOOP: readonly ReactNode[] = [102 <>103 A decider opens an ask; <Code>{`${Brand.cli} ask open`}</Code> lands it only104 once its check fails on <Code>main</Code> twice the same way, by an103 A maintainer opens an ask; <Code>{`${Brand.cli} ask open`}</Code> lands it104 only once its check fails on <Code>main</Code> twice the same way, by an105 assertion.106 </>,107 <>108 A contributor runs <Code>{`${Brand.cli} claim <ask>`}</Code> and gets a fork
269 unmodified lines
modified:apps/web/src/features/ledger/ledger-page.tsx+1 added-1 removed
91 unmodified lines
92 </Fragment>93 ));9495const MembersOf = ({ members }: { readonly members: Members }) =>96 members === "deciders" ? "the deciders" : <Handles handles={members} />;96 members === "deciders" ? "the maintainers" : <Handles handles={members} />;9798const LayerBlock = ({ layer }: { readonly layer: Layer }) => (99 <li className="flex min-w-0 flex-col gap-2" data-layer={layer.name}>100 <h3
323 unmodified lines
modified:apps/web/src/features/project/project-page.tsx+2 added-2 removed
332 unmodified lines
333 const parts = [334 `Gate: ${plural(StageName.literals.length, "stage", "stages")}`,335 deciders === undefined || deciders.length === 0336 ? undefined337 : `deciders set for ${plural(deciders.length, "path", "paths")}`,337 : `maintainers set for ${plural(deciders.length, "path", "paths")}`,338 sealed,339 landedAt === undefined ? (340 "nothing landed yet"341 ) : (
75 unmodified lines
417 } else if (asks.length === 0) {418 list = (419 <EmptyState420 command={`${Brand.cli} ask open <ask> --files <files>`}421 title="No open asks. A decider opens one from an ask file."421 title="No open asks. A maintainer opens one from an ask file."422 />423 );424 } else {425 list = (
206 unmodified lines
modified:apps/web/src/features/project-people/people-view.tsx+5 added-5 removed
104 unmodified lines
105 deciders,106}: {107 readonly deciders: PublicPolicy["deciders"];108}) => (109 <Region id="deciders" title="Deciders by path">109 <Region id="deciders" title="Maintainers by path">110 <ul className="border-rule flex flex-col border-t">111 {deciders.map(({ handles, paths }) => (112 <li113 className="border-rule text-ui shell:grid-cols-[minmax(10rem,16rem)_minmax(0,1fr)] grid min-h-10 grid-cols-[minmax(7rem,40%)_minmax(0,1fr)] items-baseline gap-4 border-b py-2.5"
99 unmodified lines
213 : `${plural(caps.proposalsPerPerson, "proposal", "proposals")} per person at once`}214 </Num>215 </Definition>216 <Definition term="Budget">217 <Num>{`${plural(budget.decisionsPerDay, "decision", "decisions")} a day per decider; an undecided one takes its default after ${plural(budget.expireDays, "day", "days")}`}</Num>217 <Num>{`${plural(budget.decisionsPerDay, "decision", "decisions")} a day per maintainer; an undecided one takes its default after ${plural(budget.expireDays, "day", "days")}`}</Num>218 </Definition>219 <Definition term="Claim timing">220 <Num>{`warned after ${spanOf(claims.warnAfterMs)} without a push; lapses after ${spanOf(claims.lapseAfterMs)}`}</Num>221 </Definition>
137 unmodified lines
359 " folder, and the defaults need a test command that the platform could not find in its CI or package files."360 }361 </p>362 <p className="text-ui max-w-[70ch]">363 {"To make it evaluate, a decider lands a "}363 {"To make it evaluate, a maintainer lands a "}364 <Code>{PROJECT_FILE}</Code>365 {366 " that names the test command. In a clone, this prints the file the CLI proposes from the repo's own files; add the test command to it, commit it, and land it as the facts say."367 }
41 unmodified lines
409410const ChangeFacts = ({ project }: { readonly project: ProjectName }) => (411 <FactBlock label="How to change these">412 <p className="text-ui">413 {`Land a change to ${CONFIG_DIR}: open an ask for it, or, as a decider, land your own from a clone.`}413 {`Land a change to ${CONFIG_DIR}: open an ask for it, or, as a maintainer, land your own from a clone.`}414 </p>415 <Step416 command={lines(`${Brand.cli} ask open <ask>`, [417 `--project ${project}`,
10 unmodified lines
428 "--message <message>",429 "--requestId land-$(git rev-parse HEAD)",430 "--yes",431 ])}432 label="Or land your own, as a decider"432 label="Or land your own, as a maintainer"433 />434 </FactBlock>435);436
35 unmodified lines
modified:apps/web/src/features/proposal/proposal-view.tsx+5 added-5 removed
311 unmodified lines
312 <dd>313 <When at={proposal.expiresAt} now={now} />314 <span className="text-muted-foreground">315 {" "}316 unless a decider opens it316 unless a maintainer opens it317 </span>318 </dd>319 <dt className="text-label text-muted-foreground pt-0.5">State</dt>320 <dd
65 unmodified lines
386387 if (files.length === 0) {388 return proposal.draft === undefined ? (389 <p className="text-body max-w-[70ch]">390 A want alone: no ask file or check yet. A decider who accepts it writes391 the change it asks for.390 A want alone: no ask file or check yet. A maintainer who accepts it391 writes the change it asks for.392 </p>393 ) : null;394 }395396 return (397 <>398 {kept ? (399 <p className="text-ui text-muted-foreground" data-kept="">400 An earlier round&apos;s ready draft, which a decider can still accept:401 it runs red first again on main before the ask opens.400 An earlier round&apos;s ready draft, which a maintainer can still401 accept: it runs red first again on main before the ask opens.402 </p>403 ) : null}404 <AskFileStep file={askFile} proposal={proposal} />405 {checks.length === 0 ? null : (
78 unmodified lines
modified:apps/web/src/features/propose/propose-view.tsx+4 added-4 removed
87 unmodified lines
88 >89 <p className="text-body">90 A proposal asks {project} to open an ask nobody wrote yet: a want in your91 words, which the platform&apos;s agent can draft into an ask file and a92 failing check for a decider to accept.92 failing check for a maintainer to accept.93 </p>94 <p className="text-ui flex items-start gap-2">95 <LogIn96 aria-hidden="true"
124 unmodified lines
221 </Label>222 </div>223 <p className="text-label text-muted-foreground pl-6 font-normal">224 It writes the ask file and a check that fails on main, runs it red225 first, and puts the draft to a decider. Clear the box to propose the226 want alone.225 first, and puts the draft to a maintainer. Clear the box to propose226 the want alone.227 </p>228 </div>229230 {children}
80 unmodified lines
311 { label: "Propose an ask" },312 ]}313 facts={<GoodWant />}314 factsHeading="Proposing"315 meta="A decider decides whether the ask opens; nothing lands from here."315 meta="A maintainer decides whether the ask opens; nothing lands from here."316 title="Propose an ask"317 >318 <ProposeBody319 about={about}
15 unmodified lines
modified:apps/web/src/features/shared/facts.tsx+1 added-1 removed
212 unmodified lines
213 () => "Checks kept in a layer, one result per area and nothing more."214 ),215 Match.when(216 "human",217 () => "A decider's finish, when the ask's kind asks for one."217 () => "A maintainer's finish, when the ask's kind asks for one."218 ),219 Match.exhaustive220);221
353 unmodified lines
modified:apps/web/src/features/shared/outcome.tsx+2 added-2 removed
68 unmodified lines
69 readonly heldBack: boolean;70}7172/**73 * A passing verdict reaches the decider stage whether or not a decider took74 * part, so with `holds` a held-back or decider stage it never needed reads not73 * A passing verdict reaches the maintainer stage whether or not a maintainer took74 * part, so with `holds` a held-back or maintainer stage it never needed reads not75 * needed.76 */77export const stageStates = (78 reached: StageName,
125 unmodified lines
modified:apps/web/src/features/shared/status-line.tsx+8 added-8 removed
33 unmodified lines
34 Match.when("heldBack", () => ({35 label: "Held-back",36 words: "held-back checks",37 })),38 Match.when("human", () => ({ label: "Decider", words: "decider" })),38 Match.when("human", () => ({ label: "Maintainer", words: "maintainer" })),39 Match.exhaustive40);4142export type StatusSubject =
84 unmodified lines
127 Match.when("answerer", () => [128 claimant === undefined ? "the answerer's move" : `${claimant}'s move`,129 ]),130 Match.when("decider", () => [131 decider === undefined ? "a decider's move" : `${decider}'s move`,131 decider === undefined ? "a maintainer's move" : `${decider}'s move`,132 ]),133 Match.when("platform", () => ["the platform's move"]),134 Match.when("parent", () => ["that ask's move"]),135 Match.when("none", () => []),
41 unmodified lines
177 lead: "Passed",178 mark: "waiting",179 rest: (180 <>181 , waiting for a decider&apos;s finish181 , waiting for a maintainer&apos;s finish182 {decider === undefined ? null : (183 <>184 {" "}185 from <HandleLink handle={decider} />
199 unmodified lines
385 }386387 const [only, ...others] = decision.deciders;388389 return others.length === 0 ? `${only}'s move` : "a decider's move";389 return others.length === 0 ? `${only}'s move` : "a maintainer's move";390};391392const decisionReading = ({393 decision,
52 unmodified lines
446 return { after: [], lead: "Expired", mark: "notNeeded", tone: "ink" };447 }448449 const waiting: Reading = {450 after: ["a decider's move"],450 after: ["a maintainer's move"],451 lead: "Waiting",452 mark: "waiting",453 rest: " for a decider to open it or decline it",453 rest: " for a maintainer to open it or decline it",454 tone: "waiting",455 };456457 return proposal.draft === undefined
19 unmodified lines
477 ),478 tone: "ink",479 }),480 Ready: (): Reading => ({481 after: ["a decider's move"],481 after: ["a maintainer's move"],482 lead: "Ready",483 mark: "waiting",484 rest: ", waits for a decider",484 rest: ", waits for a maintainer",485 tone: "waiting",486 }),487 });488};
86 unmodified lines
modified:apps/web/src/features/today/today-page.tsx+1 added-1 removed
53 unmodified lines
54const budgetShort = (budget: Today["budget"]) =>55 `${counted(Math.max(0, budget.total - budget.used))} left today`;5657const WHAT_TODAY_IS =58 "Today is a decider's page: the decisions you owe your projects each day, each with its evidence and a safe default if you leave it.";58 "Today is a maintainer's page: the decisions you owe your projects each day, each with its evidence and a safe default if you leave it.";5960interface Listed {61 readonly decision: Decision;62 readonly soon: boolean;
570 unmodified lines
modified:apps/web/src/routes/$owner/$project/people.tsx+1 added-1 removed
116 unmodified lines
117 headers: () => branchPage,118 head: ({ params: { project } }) =>119 pageHead({120 title: `Policy · ${project}`,121 description: `${project}'s deciders and limits.`,121 description: `${project}'s maintainers and limits.`,122 }),123 component: PeoplePage,124 notFoundComponent: Unknown,125});
modified:apps/web/test/answer.test.tsx+2 added-2 removed
177 unmodified lines
178 ["human", "pending"],179 ]);180 });181182 it("reads the decider and held-back stages as not needed for a landing that needed neither", () => {182 it("reads the maintainer and held-back stages as not needed for a landing that needed neither", () => {183 const markup = markupOf(184 page({ landing: plainLanding, verdict: landedAt("human", false) })185 );186
5 unmodified lines
192 textOf(page({ landing: plainLanding, verdict: landedAt("human", false) }))193 ).toContain("not needed");194 });195196 it("reads them passed for a landing a decider finished and held-back checks judged", () => {196 it("reads them passed for a landing a maintainer finished and held-back checks judged", () => {197 const markup = markupOf(198 page({ landing: decidedLanding, verdict: landedAt("human", true) })199 );200
544 unmodified lines
modified:apps/web/test/client-today.test.ts+2 added-2 removed
24 unmodified lines
25 expect(Schema.is(Unauthenticated)(refused)).toBeTruthy();26 })27 );2829 it.live("shows the decider their Today, with the seed's decisions", () =>29 it.live("shows the maintainer their Today, with the seed's decisions", () =>30 Effect.gen(function* () {31 const today = yield* settled(registryAs(DECIDER), todayAtom);3233 expect(
24 unmodified lines
5859 // The page's atoms live in a registry of the page's own (`SeededAtoms`),60 // the rail's in the root's: a decision taken on the page refetches both.61 it.live(62 "closes a decision the decider declines, and Today refetches without it, on the page and in the rail",62 "closes a decision the maintainer declines, and Today refetches without it, on the page and in the rail",63 () =>64 Effect.gen(function* () {65 const registry = registryAs(DECIDER);66 const rail = registryAs(DECIDER);
65 unmodified lines
modified:apps/web/test/decision.test.tsx+2 added-2 removed
241 unmodified lines
242 ]);243 })244 );245246 it.live("sends no note when the decider wrote none", () =>246 it.live("sends no note when the maintainer wrote none", () =>247 Effect.gen(function* () {248 const { asked } = yield* decideOnce(taken, { choice: "adopt" });249250 expect(asked.decide).toStrictEqual([
412 unmodified lines
663 const text = plainTextOf(markup);664665 expect(markup).not.toContain("data-choice=");666 expect(markup).not.toContain(".skip(");667 expect(text).toContain("A decider takes it on their Today");667 expect(text).toContain("A maintainer takes it on their Today");668 expect(markup).toContain('href="/oscabriel/vellum/people"');669 expect(text).toContain(`${Brand.cli} today --project oscabriel/vellum`);670 });671});
modified:apps/web/test/dev-backend.test.ts+1 added-1 removed
367 unmodified lines
368);369370describe("a draft in the dev world", seededWorlds, () => {371 it.live(372 "is drafted as it is proposed, red first on the scripted Checker, and its decision joins the decider's Today",372 "is drafted as it is proposed, red first on the scripted Checker, and its decision joins the maintainer's Today",373 () =>374 Effect.gen(function* () {375 const { after, before, proposed, shown } = yield* drafted;376
21 unmodified lines
modified:apps/web/test/dev-fixtures.test.ts+19 added-17 removed
432 unmodified lines
433 )434 );435436 it.live(437 "put every kind of decision on a decider's Today, one due within the day and two of five taken",437 "put every kind of decision on a maintainer's Today, one due within the day and two of five taken",438 () =>439 inWorld(withFixtures, (as) =>440 Effect.gen(function* () {441 const project = vellum;
151 unmodified lines
593 })594 )595 );596597 it.live(598 "state a policy with maintainers by path and a denounced person",597 it.live("state a policy with deciders by path and a denounced person", () =>598 inWorld(withFixtures, (as) =>599 Effect.gen(function* () {600 const { policy } = yield* (yield* as()).projectPolicy({601 project: vellum,602 });599 () =>600 inWorld(withFixtures, (as) =>601 Effect.gen(function* () {602 const { policy } = yield* (yield* as()).projectPolicy({603 project: vellum,604 });605604 expect(605 new Set(policy?.deciders.map(({ paths }) => paths)).size606 ).toBeGreaterThan(2);607 expect(608 policy?.vouches609 .filter(({ denounced }) => denounced)610 .map(({ handle }) => handle)611 ).toStrictEqual(["wren"]);612 })613 )606 expect(607 new Set(policy?.deciders.map(({ paths }) => paths)).size608 ).toBeGreaterThan(2);609 expect(610 policy?.vouches611 .filter(({ denounced }) => denounced)612 .map(({ handle }) => handle)613 ).toStrictEqual(["wren"]);614 })615 )616 );617618 it.live("draft proposals into every state a draft settles in", () =>619 inWorld(withFixtures, (as) =>
231 unmodified lines
modified:apps/web/test/facts.test.tsx+1 added-1 removed
174 unmodified lines
175 "Merge",176 "Cheap",177 "Checks",178 "Held-back",179 "Decider",179 "Maintainer",180 ])181 ).toBeTruthy();182 });183});
99 unmodified lines
modified:apps/web/test/home.test.tsx+1 added-1 removed
347 unmodified lines
348 60_000349 );350351 it.live(352 "gives a decider the decisions waiting for them, each linking its page, and Today",352 "gives a maintainer the decisions waiting for them, each linking its page, and Today",353 () =>354 Effect.gen(function* () {355 const markup = yield* pageFrom(yield* readHome);356
33 unmodified lines
modified:apps/web/test/ledger.test.tsx+2 added-2 removed
251 unmodified lines
252 "sealed",253 "Reason",254 "Held-back checks judge an answer by the ask's words, not by tests it could read.",255 "Readers",256 "the deciders",256 "the maintainers",257 "Writers",258 "the deciders",258 "the maintainers",259 ])260 ).toBeTruthy();261 });262
398 unmodified lines
modified:apps/web/test/outcome.test.tsx+2 added-2 removed
93 unmodified lines
94 "dec-000001",95 ],96 [97 Outcome.cases.AwaitingFinish.make({ decider: handle("okonkwo") }),98 "waiting for a decider's finish",98 "waiting for a maintainer's finish",99 "okonkwo",100 ],101 [102 Outcome.cases.WaitingOnParent.make({
119 unmodified lines
222 });223});224225describe("each stage's state", () => {226 it("marks the decider and held-back stages of a landing that needed neither as not needed", () => {226 it("marks the maintainer and held-back stages of a landing that needed neither as not needed", () => {227 expect(228 stageStates("human", landed, { decided: false, heldBack: false })229 ).toStrictEqual([230 ["parse", "passed"],
53 unmodified lines
modified:apps/web/test/project-people.test.tsx+6 added-1 removed
224 unmodified lines
225 expect(layers.slice(layers.indexOf(">") + 1)).not.toMatch(226 /<(?:p|div|ul|ol|li|dl)\b/u227 );228229 for (const repeated of ["Readers", "Writers", "Audience", "the deciders"]) {229 for (const repeated of [230 "Readers",231 "Writers",232 "Audience",233 "the maintainers",234 ]) {235 expect(markup).not.toContain(repeated);236 }237 });238
431 unmodified lines
modified:apps/web/test/project.test.tsx+2 added-2 removed
379 unmodified lines
380 mainOf(markup)381 )?.[0] ?? "";382383 expect(textIn(rule)).toBe(384 "Gate: 7 stages · deciders set for 1 path · 7 sealed checks in 1 area · last landed 1 d ago"384 "Gate: 7 stages · maintainers set for 1 path · 7 sealed checks in 1 area · last landed 1 d ago"385 );386 expect(rule).toContain('href="/oscabriel/datekit/ledger"');387 expect(inspectorOf(markup)).not.toContain("data-posture=");388 })
19 unmodified lines
408409 expect(410 missingFrom(text, [411 "How a change lands here",412 "Parse · Shape · Merge · Cheap · Checks · Held-back · Decider",412 "Parse · Shape · Merge · Cheap · Checks · Held-back · Maintainer",413 "export: 7 sealed checks",414 ])415 ).toStrictEqual([]);416 expect(text).toMatch(/src\/\*\*\s*·\s*ines-v, okonkwo/u);
591 unmodified lines
modified:apps/web/test/proposal.test.tsx+5 added-5 removed
124 unmodified lines
125 expect(markup).toMatch(/data-tone="checking"[^>]*>[\s\S]*?Drafting/u);126 expect(markup).not.toMatch(DRAFT_AGAIN);127 });128129 it("once ready, says it waits for a decider, in the waiting role", () => {129 it("once ready, says it waits for a maintainer, in the waiting role", () => {130 const markup = view(ready);131132 expect(markup).toMatch(/data-tone="waiting"/u);133 expect(plainText(markup)).toContain("Ready , waits for a decider");133 expect(plainText(markup)).toContain("Ready , waits for a maintainer");134 });135136 it("reads the draft as a guide, in its order: the ask file, the check, red first", () => {137 const text = plainText(view(ready));
62 unmodified lines
200 expect(markup).not.toContain("text-refused");201 expect(markup).not.toContain("data-refusal=");202 });203204 it("failed after a ready round, still shows that round's files as a draft a decider can accept", () => {204 it("failed after a ready round, still shows that round's files as a draft a maintainer can accept", () => {205 const kept = withDraft(206 ready,207 DraftState.cases.Failed.make({208 attempts: 3,
10 unmodified lines
219 expect(text).toContain("An earlier round's ready draft");220 expect(plainText(view(ready))).not.toContain("An earlier round");221 });222223 it("offers Draft again only to the proposer or a decider", () => {223 it("offers Draft again only to the proposer or a maintainer", () => {224 const markup = markupOf(225 <ProposalView226 decision={Option.none()}227 files={[]}
38 unmodified lines
266 expect(markup).toContain(267 'href="/auth/signin?return=%2Foscabriel%2Fdatekit%2Fproposals%2Fprop-000007"'268 );269 expect(plainText(markup)).toContain("Sign in");270 expect(plainText(markup)).not.toContain("Today is a decider's page");270 expect(plainText(markup)).not.toContain("Today is a maintainer's page");271 });272273 it("refused, shows the refusal", () => {274 const markup = markupOf(
191 unmodified lines
modified:apps/web/test/propose.test.tsx+1 added-1 removed
249 unmodified lines
250251 expect(markup).toContain(252 `href="/auth/signin?return=%2Foscabriel%2Fdatekit%2Fproposals%2Fnew%3Fabout%3Dsrc%252Fformat.ts%26at%3D${at}%26line%3D12"`253 );254 expect(plainText(markup)).not.toContain("Today is a decider's page");254 expect(plainText(markup)).not.toContain("Today is a maintainer's page");255 });256});
modified:apps/web/test/status-line.test.tsx+4 added-4 removed
150 unmodified lines
151 Outcome.cases.AwaitingDecision.make({152 decision: DecisionId.make("dec-000001"),153 }),154 "Waiting on decision dec-000001",155 "a decider's move",155 "a maintainer's move",156 ],157 [158 Outcome.cases.AwaitingFinish.make({ decider: okonkwo }),159 "Passed, waiting for a decider's finish from okonkwo",159 "Passed, waiting for a maintainer's finish from okonkwo",160 "okonkwo's move",161 ],162 [163 Outcome.cases.WaitingOnParent.make({
81 unmodified lines
245 expect(yours.text).toContain("Expires in 3 h");246 expect(yours.text).toContain("default: decline");247 expect(yours.text).toContain("your move");248 expect(yours.tone).toBe("waiting");249 expect(theirs.text).toContain("a decider's move");249 expect(theirs.text).toContain("a maintainer's move");250 });251252 it("says a decided decision's choice, in the landed role only when it took effect", () => {253 const accepted = line({
45 unmodified lines
299 });300301 expect(drafting.text).toContain("Drafting");302 expect(drafting.tone).toBe("checking");303 expect(ready.text).toContain("Ready, waits for a decider");303 expect(ready.text).toContain("Ready, waits for a maintainer");304 expect(ready.tone).toBe("waiting");305 });306307 it("draws only the mark and the lead word in its compact form", () => {
15 unmodified lines
modified:apps/web/test/today.test.tsx+4 added-4 removed
374 unmodified lines
375 it("signed out, says what Today is in one sentence, links to sign in, and gives the command", () => {376 const markup = markupOf(viewOf(TodayRead.cases.SignedOut.make({})));377 const text = textIn(markup);378379 expect(text).toContain("Today is a decider's page");379 expect(text).toContain("Today is a maintainer's page");380 expect(markup).toMatch(381 /<a[^>]*href="\/auth\/signin[^"]*"[^>]*>Sign in<\/a>/u382 );383 expect(text).toContain(`${Brand.cli} today`);384 expect(markup).not.toContain("data-decision");385 });386387 it("shows a DecisionClosed refusal the decider's choice came back with", () => {387 it("shows a DecisionClosed refusal the maintainer's choice came back with", () => {388 const closed = new DecisionClosed({ decision: stray.id });389390 const markup = markupOf(391 viewOf(TodayRead.cases.Read.make({ today }), {
172 unmodified lines
564};565566describe("Today, read on the server with the reader's session", () => {567 it.live(568 "renders a decider's Today from the fixtures: the budget sentence, the sections and what waits",568 "renders a maintainer's Today from the fixtures: the budget sentence, the sections and what waits",569 () =>570 Effect.gen(function* () {571 const markup = pageFrom(yield* readToday({ project: vellum }));572 const text = textIn(markup);
21 unmodified lines
594 () =>595 Effect.gen(function* () {596 const markup = pageFrom(yield* readToday({}));597598 expect(textIn(markup)).toContain("Today is a decider's page");598 expect(textIn(markup)).toContain("Today is a maintainer's page");599 expect(textIn(markup)).toContain(`${Brand.cli} today`);600 expect(markup).not.toContain("data-decision");601 }).pipe(Effect.provide(fixturesClient()), Effect.scoped),602 60_000
9 unmodified lines
modified:examples/burrow/README.md+1 added-1 removed
32 unmodified lines
33- **`legacyFetch` is on its way out.** It throws on any failed request; `http.get` hands the failure back as a value. `bun scripts/count-callers.ts legacyFetch` shows who still calls it, by package (`--json` for a script).3435## Contributing3637Work is offered as asks, each with a check that says when it is done. The project's process lives in `.myr/`: `project.ts` (deciders, ask kinds, the module-state ratchet), `vouched.td` (who may claim), and the open asks in `asks/`. `okafor` and `lin-h` decide for every path.37Work is offered as asks, each with a check that says when it is done. The project's process lives in `.myr/`: `project.ts` (maintainers, ask kinds, the module-state ratchet), `vouched.td` (who may claim), and the open asks in `asks/`. `okafor` and `lin-h` decide for every path.3839## License4041MIT, see `LICENSE`. `tools/oxlint/burrow/rules/no-module-level-mutable-state.ts` is MIT too, under its authors' notice in `tools/oxlint/burrow/LICENSE-rat-stack.txt`.
modified:packages/agent-kit/src/docs/held-back-checks.ts+2 added-2 removed
38 unmodified lines
39 "Each landing a held-back suite judged carries a `Held-back:` trailer with the suite's salted commitment, so anyone can later confirm which suite judged it once the checks are released.",40 "",41 "## Posture and the ledger",42 "",43 "The platform computes a project's posture from its visibility config as it stands: Open, Open with sealed evidence, Open on schedule, Open core, or Source available. A narrowing stands only once a decider accepts it and its notice has run out.",43 "The platform computes a project's posture from its visibility config as it stands: Open, Open with sealed evidence, Open on schedule, Open core, or Source available. A narrowing stands only once a maintainer accepts it and its notice has run out.",44 "",45 `The ledger is the public, append-only record of a project's layers, their counts, commitments, releases and posture changes. Its page is on the web under each project, and ${cli("ledger --project <owner>/<name>")} prints it. Content moves to a wider audience only by a release: a typed, credited landing that cannot be undone.`,46 "",47 "## The env shape and write-only values",48 "",49 `A project's environment is described by its committed ${code(".env.schema")}, in the format varlock reads. The platform parses it from the landed commit and never resolves it; the project's Env shape page and ${cli("env shape --project <owner>/<name>")} show it, and who set each value, never a value.`,50 "",51 `A decider sets a value for a \`@sensitive\` item from stdin: ${cli("env set <key> --project <owner>/<name>")}. Nobody can read it back. An answer's code sees a placeholder; for a \`@proxy\` item the platform swaps the placeholder for the real value on matching outbound HTTPS requests.`,51 `A maintainer sets a value for a \`@sensitive\` item from stdin: ${cli("env set <key> --project <owner>/<name>")}. Nobody can read it back. An answer's code sees a placeholder; for a \`@proxy\` item the platform swaps the placeholder for the real value on matching outbound HTTPS requests.`,52 "",53 ],54 slug: "held-back-checks",55};
modified:packages/agent-kit/src/docs/run-a-project.ts+6 added-6 removed
9 unmodified lines
10export const runAProject: DocSource = {11 body: () => [12 "## Make a project",13 "",14 `In a repo of your own, ${cli("init --project <owner>/<name>")} makes it a project: it finds the repo's checks (its test and lint commands, and its CI), writes the config folder, ${code(`${dir}/`)}, and pushes. You are the project's first decider.`,14 `In a repo of your own, ${cli("init --project <owner>/<name>")} makes it a project: it finds the repo's checks (its test and lint commands, and its CI), writes the config folder, ${code(`${dir}/`)}, and pushes. You are the project's first maintainer.`,15 "",16 "## How a project is named",17 "",18 `A project's name is its owner, then a short name: ${code("<owner>/<name>")}, as in ${code("oscabriel/datekit")}. The name is the project's address everywhere: ${code("--project")} takes it, the web shows the project at ${code("/<owner>/<name>")}, and git clones it from ${code("<platform>/<owner>/<name>.git")}. You make projects under your own handle; a bare word, as in ${cli("init --project datekit")}, is taken as yours, under the handle ${cli("login")} kept. Owning a namespace is the right to make projects in it and nothing more: who decides stays with the config folder.`,19 "",20 "## Import a repo",21 "",22 `To bring a public repo over HTTPS: ${cli("init --import <url>")}, with ${code("--branch")} when its default branch is not the one you want. A repo from ${sourceHosts.map((host) => code(host)).join(", ")} is named after its source namespace, ${code("<host>/<account>/<name>")}, so ${code("https://github.com/pallets/click")} becomes ${code("github.com/pallets/click")}; a repo from any other host is named under your handle, after the URL's last segment. ${code("--project")} names it otherwise, a bare word again under your handle. On the web, [Import a repo](/import) does the same, and the web address of such a name nobody has imported yet, such as ${code("/github.com/pallets/click")}, offers the import. You are an import's first decider, as of any project.`,22 `To bring a public repo over HTTPS: ${cli("init --import <url>")}, with ${code("--branch")} when its default branch is not the one you want. A repo from ${sourceHosts.map((host) => code(host)).join(", ")} is named after its source namespace, ${code("<host>/<account>/<name>")}, so ${code("https://github.com/pallets/click")} becomes ${code("github.com/pallets/click")}; a repo from any other host is named under your handle, after the URL's last segment. ${code("--project")} names it otherwise, a bare word again under your handle. On the web, [Import a repo](/import) does the same, and the web address of such a name nobody has imported yet, such as ${code("/github.com/pallets/click")}, offers the import. You are an import's first maintainer, as of any project.`,23 "",24 "## The config folder",25 "",26 `How the project takes changes is TypeScript on \`main\`, in ${code(`${dir}/`)}. The platform reads it only from the commit it last landed, in a sandbox with no network and frozen time, so it changes the way everything else does: by a landing.`,
36 unmodified lines
63 `${cli("ask open <ask> --project <owner>/<name>")} lands the ask, but only once its check fails on \`main\` twice the same way, by an assertion: a check that cannot fail, or fails by not loading, opens nothing. ${cli("schema ask open")} prints what it takes.`,64 "",65 "## Proposals and drafts",66 "",67 `Anyone not denounced may propose an ask: ${cli('propose --project <owner>/<name> --want "<what should be true>"')}. A proposal expires unless a decider accepts it. With ${code("--draft")}, the platform's agent drafts the ask file and its failing check, runs them red first, and puts the draft to a decider with its evidence; ${cli("proposal <proposal> --project <owner>/<name>")} follows it, and ${cli("ask draft <proposal> --project <owner>/<name>")} asks for another round. Nothing lands until a decider accepts, and the landing discloses the agent in \`Assisted-by\`.`,67 `Anyone not denounced may propose an ask: ${cli('propose --project <owner>/<name> --want "<what should be true>"')}. A proposal expires unless a maintainer accepts it. With ${code("--draft")}, the platform's agent drafts the ask file and its failing check, runs them red first, and puts the draft to a maintainer with its evidence; ${cli("proposal <proposal> --project <owner>/<name>")} follows it, and ${cli("ask draft <proposal> --project <owner>/<name>")} asks for another round. Nothing lands until a maintainer accepts, and the landing discloses the agent in \`Assisted-by\`.`,68 "",69 "## Today",70 "",71 `A decider's day is a short list of decisions, each with its evidence and a safe default taken if nobody decides before it expires, held to the project's budget. Read it on the web at [Today](/today), or with ${cli("today")}, and take one with ${cli("decide --project <owner>/<name> --decision <decision> --choice accept")} (or \`decline\`, \`adopt\`, \`revert\`).`,71 `A maintainer's day is a short list of decisions, each with its evidence and a safe default taken if nobody decides before it expires, held to the project's budget. Read it on the web at [Today](/today), or with ${cli("today")}, and take one with ${cli("decide --project <owner>/<name> --decision <decision> --choice accept")} (or \`decline\`, \`adopt\`, \`revert\`).`,72 "",73 "## Finish an answer, or land your own change",74 "",75 `When an ask's kind requires a finish, a passing answer waits for a decider's own commits on top: ${cli("finish <ask> --project <owner>/<name> --base <base> --head <head>")}. They are checked again, and the landing credits you with \`Finished-by\`.`,75 `When an ask's kind requires a finish, a passing answer waits for a maintainer's own commits on top: ${cli("finish <ask> --project <owner>/<name> --base <base> --head <head>")}. They are checked again, and the landing credits you with \`Finished-by\`.`,76 "",77 `A decider's own change goes through the same gate. Make your working fork, push to it, and land it:`,77 `A maintainer's own change goes through the same gate. Make your working fork, push to it, and land it:`,78 "",79 ...shell(80 `${Brand.cli} fork --project <owner>/<name>`,81 `git push <fork remote> HEAD:main`,
10 unmodified lines
modified:packages/agent-kit/src/docs/start-here.ts+1 added-1 removed
14 unmodified lines
15 "- A **refusal** is what the platform gives instead of landing: a member of one closed, typed union, with whether trying again can help and the command to run next.",16 "",17 "## How a change reaches `main`",18 "",19 `1. A decider opens an ask. It opens only once its check fails on \`main\` twice the same way, by an assertion.`,19 `1. A maintainer opens an ask. It opens only once its check fails on \`main\` twice the same way, by an assertion.`,20 `2. A contributor claims it with ${cli("claim <ask> --project <owner>/<name>")} and gets a fork of their own. A claim is exclusive and expires unless they push.`,21 "3. They work in plain git, with any editor or agent, and push to the fork through the platform.",22 "4. The push is checked against the claim, the territory and the files that decide what the checks do, and refused in `git push`'s own output if it strays.",23 "5. The platform merges the answer onto `main` and runs the ask's check, the project's checks and any held-back checks on that exact tree.",
26 unmodified lines
modified:packages/agent-kit/src/agent-setup.ts+1 added-1 removed
231 unmodified lines
232 limit: "A claim without a push",233 value: `Warned after ${span(claims.warnAfterMs)}, lapses after ${span(claims.lapseAfterMs)}, by default`,234 },235 {236 limit: "Decisions a decider takes a day",236 limit: "Decisions a maintainer takes a day",237 value: `${budget.decisionsPerDay} by default`,238 },239 {240 limit: "A decision nobody takes",
82 unmodified lines
modified:packages/agent-kit/src/llms-sections.ts+3 added-3 removed
47 unmodified lines
48 [49 "A claim's fork",50 code("<owner>/<name>--<ask>--<handle>"),51 "Signed-in people",52 "Its claimant while the claim is live, and a decider who finishes the answer",52 "Its claimant while the claim is live, and a maintainer who finishes the answer",53 ],54 [55 "A working fork",56 code("<owner>/<name>--me--<handle>"),
36 unmodified lines
93const eventLines = {94 AskClosed: "An ask closed, with the landing that answered it.",95 AskOpened: "A new ask opened.",96 Claimed: "Someone claimed an ask.",97 Decided: "A decider took a decision.",97 Decided: "A maintainer took a decision.",98 Judged: "An answer was checked, with the outcome its verdict holds.",99 Landed:100 "A landing reached `main`, a project's adoption (its first push or its import) among them.",101 Lapsed: "A claim lapsed: no push for too long.",102 LedgerAppended: "The project's public ledger gained an entry.",103 ProposalDrafted:104 "A proposal's draft settled: ready for a decider, or failed.",104 "A proposal's draft settled: ready for a maintainer, or failed.",105 ProposalOpened: "A proposal opened.",106 Pushed: "A claimant pushed to their fork.",107 Released: "A claim was released.",108 Warned: "A claim was warned that it lapses without a push.",
10 unmodified lines
modified:packages/agent-kit/src/refusals.ts+3 added-3 removed
92 unmodified lines
93 VerifierBlocked: {94 todo: "Nothing: the platform could not run the checks, and runs them again.",95 },96 Weakened: {97 todo: "Take the marker out; a marker without a reason may get one after ` -- ` for a decider to weigh, but one a decider declined stays out; never raise a ratchet.",97 todo: "Take the marker out; a marker without a reason may get one after ` -- ` for a maintainer to weigh, but one a maintainer declined stays out; never raise a ratchet.",98 },99} as const satisfies Record<AnswerTag, Repair>;100101const elsewhere = {
11 unmodified lines
113 LayerContentInPublicTree: {114 todo: "Take the paths it names out: their files stay private and never enter a public tree.",115 },116 NotDecider: {117 todo: "Only one of the project's deciders may do this: ask one of them.",117 todo: "Only one of the project's maintainers may do this: ask one of them.",118 },119 NotRedFirst: {120 todo: "Make the ask's check fail on main by an assertion, the same way twice, then open the ask again.",121 },
3 unmodified lines
125 NotYourNamespace: {126 todo: "Make the project in your own namespace: `next` names it with your handle.",127 },128 PostureChange: {129 todo: "A decider declined the posture change it names (`from`, `to`): take out what changes the posture; `next` lists the decisions.",129 todo: "A maintainer declined the posture change it names (`from`, `to`): take out what changes the posture; `next` lists the decisions.",130 },131 ProjectExists: { todo: "Pick another name: that one is taken." },132 ProposalClosed: {133 todo: "Nothing more is drafted for it: the proposal was accepted, declined or expired.",
157 unmodified lines
modified:packages/agent-kit/src/sections.ts+5 added-5 removed
116 unmodified lines
117 ...(weakening.markers.length === 0118 ? []119 : [120 "",121 `Never add a marker that turns a check off: ${weakening.markers.map(code).join(", ")}. One without a reason is refused with \`Weakened\`; one with a reason waits for a decider.`,121 `Never add a marker that turns a check off: ${weakening.markers.map(code).join(", ")}. One without a reason is refused with \`Weakened\`; one with a reason waits for a maintainer.`,122 ]),123 ...(ratchets.length === 0124 ? []125 : [126 "",127 "Ratchets only go down: an answer that raises one is refused with `Weakened`, and only a decider raises one.",127 "Ratchets only go down: an answer that raises one is refused with `Weakened`, and only a maintainer raises one.",128 "",129 ...ratchetLines(ratchets),130 ]),131 "",
52 unmodified lines
184185const finishText = {186 never: "none: a passing answer lands as it is.",187 optional:188 "a decider may add commits of their own to a passing answer before it lands, credited `Finished-by`.",188 "a maintainer may add commits of their own to a passing answer before it lands, credited `Finished-by`.",189 required:190 "a passing answer waits for a decider's commits on top before it lands, credited `Finished-by`.",190 "a passing answer waits for a maintainer's commits on top before it lands, credited `Finished-by`.",191} as const satisfies Record<AskKind["finish"], string>;192193const kindLines = (kind: AskKind, policy: Policy) => [194 `### ${code(kind.name)}`,
16 unmodified lines
211 ? []212 : [213 "## Ask kinds",214 "",215 `Each ask is of one kind, which says how its check judges an answer, who may claim it and whether a decider finishes it; ${cli("ask", "<ask>")} names it.`,215 `Each ask is of one kind, which says how its check judges an answer, who may claim it and whether a maintainer finishes it; ${cli("ask", "<ask>")} names it.`,216 "",217 ...Arr.sort(218 policy.kinds,219 byName((kind: AskKind) => kind.name)
20 unmodified lines
modified:packages/agent-kit/test/golden/agent-plugins-stdio.txt+1 added-1 removed
62 unmodified lines
63| `AskBlocked` | yes | 75 | `__CLI__ asks` | Wait for the asks it names to land, or answer one of them first. |64| `Denounced` | no | 77 | `__CLI__ status` | The project's vouch file denounces you: it takes no claims or proposals from you. |65| `OutOfScope` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they are outside the ask's territory. |66| `TouchedJudge` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they decide what the checks do. |67| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a decider to weigh, but one a decider declined stays out; never raise a ratchet. |67| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a maintainer to weigh, but one a maintainer declined stays out; never raise a ratchet. |68| `PrivatePathInPublicTree` | no | 65 | `__CLI__ check` | Take the held-back paths it names out of your answer. |69| `ReachedInternals` | no | 65 | `__CLI__ check` | Import the other module only through its public files. |70| `StaleBase` | yes | 75 | `git pull --rebase` | Main moved: rebase onto it, resolve the conflicts it names, and push again. `movedBy` names the landing that last changed each conflicting path, with its `author` and `ask`: keep that change as you resolve. |71| `StaleLayer` | yes | 75 | `__CLI__ status` | Nothing: the answer is checked again. |
26 unmodified lines
modified:packages/agent-kit/test/golden/agent-plugins.txt+1 added-1 removed
63 unmodified lines
64| `AskBlocked` | yes | 75 | `__CLI__ asks` | Wait for the asks it names to land, or answer one of them first. |65| `Denounced` | no | 77 | `__CLI__ status` | The project's vouch file denounces you: it takes no claims or proposals from you. |66| `OutOfScope` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they are outside the ask's territory. |67| `TouchedJudge` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they decide what the checks do. |68| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a decider to weigh, but one a decider declined stays out; never raise a ratchet. |68| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a maintainer to weigh, but one a maintainer declined stays out; never raise a ratchet. |69| `PrivatePathInPublicTree` | no | 65 | `__CLI__ check` | Take the held-back paths it names out of your answer. |70| `ReachedInternals` | no | 65 | `__CLI__ check` | Import the other module only through its public files. |71| `StaleBase` | yes | 75 | `git pull --rebase` | Main moved: rebase onto it, resolve the conflicts it names, and push again. `movedBy` names the landing that last changed each conflicting path, with its `author` and `ask`: keep that change as you resolve. |72| `StaleLayer` | yes | 75 | `__CLI__ status` | Nothing: the answer is checked again. |
23 unmodified lines
modified:packages/agent-kit/test/golden/agent-setup.txt+1 added-1 removed
113 unmodified lines
114| --- | --- |115| Claims one person holds at once, in a project | 3 by default |116| Open proposals one person holds, in a project | 2 by default; 0 turns proposals off |117| A claim without a push | Warned after 2 hours, lapses after 1 day, by default |118| Decisions a decider takes a day | 5 by default |118| Decisions a maintainer takes a day | 5 by default |119| A decision nobody takes | 2 weeks by default, then it takes its default |120| Claims, proposals and drafts across the platform, per person | A set number a minute; past it, CapReached says when to try again |121122## Refusals
14 unmodified lines
modified:packages/agent-kit/test/golden/claude-plugin-stdio.txt+1 added-1 removed
61 unmodified lines
62| `AskBlocked` | yes | 75 | `__CLI__ asks` | Wait for the asks it names to land, or answer one of them first. |63| `Denounced` | no | 77 | `__CLI__ status` | The project's vouch file denounces you: it takes no claims or proposals from you. |64| `OutOfScope` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they are outside the ask's territory. |65| `TouchedJudge` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they decide what the checks do. |66| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a decider to weigh, but one a decider declined stays out; never raise a ratchet. |66| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a maintainer to weigh, but one a maintainer declined stays out; never raise a ratchet. |67| `PrivatePathInPublicTree` | no | 65 | `__CLI__ check` | Take the held-back paths it names out of your answer. |68| `ReachedInternals` | no | 65 | `__CLI__ check` | Import the other module only through its public files. |69| `StaleBase` | yes | 75 | `git pull --rebase` | Main moved: rebase onto it, resolve the conflicts it names, and push again. `movedBy` names the landing that last changed each conflicting path, with its `author` and `ask`: keep that change as you resolve. |70| `StaleLayer` | yes | 75 | `__CLI__ status` | Nothing: the answer is checked again. |
61 unmodified lines
modified:packages/agent-kit/test/golden/claude-plugin.txt+1 added-1 removed
62 unmodified lines
63| `AskBlocked` | yes | 75 | `__CLI__ asks` | Wait for the asks it names to land, or answer one of them first. |64| `Denounced` | no | 77 | `__CLI__ status` | The project's vouch file denounces you: it takes no claims or proposals from you. |65| `OutOfScope` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they are outside the ask's territory. |66| `TouchedJudge` | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they decide what the checks do. |67| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a decider to weigh, but one a decider declined stays out; never raise a ratchet. |67| `Weakened` | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a maintainer to weigh, but one a maintainer declined stays out; never raise a ratchet. |68| `PrivatePathInPublicTree` | no | 65 | `__CLI__ check` | Take the held-back paths it names out of your answer. |69| `ReachedInternals` | no | 65 | `__CLI__ check` | Import the other module only through its public files. |70| `StaleBase` | yes | 75 | `git pull --rebase` | Main moved: rebase onto it, resolve the conflicts it names, and push again. `movedBy` names the landing that last changed each conflicting path, with its `author` and `ask`: keep that change as you resolve. |71| `StaleLayer` | yes | 75 | `__CLI__ status` | Nothing: the answer is checked again. |
59 unmodified lines
modified:packages/agent-kit/test/golden/full-llms.txt+6 added-6 removed
66 unmodified lines
67| `AskBlocked` | Push and claim | yes | 75 | `__CLI__ asks` | Wait for the asks it names to land, or answer one of them first. |68| `Denounced` | Push and claim | no | 77 | `__CLI__ status` | The project's vouch file denounces you: it takes no claims or proposals from you. |69| `OutOfScope` | Shape | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they are outside the ask's territory. |70| `TouchedJudge` | Shape | no | 65 | `__CLI__ check` | Undo your changes to the paths it names: they decide what the checks do. |71| `Weakened` | Shape | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a decider to weigh, but one a decider declined stays out; never raise a ratchet. |71| `Weakened` | Shape | no | 65 | `__CLI__ check` | Take the marker out; a marker without a reason may get one after ` -- ` for a maintainer to weigh, but one a maintainer declined stays out; never raise a ratchet. |72| `PrivatePathInPublicTree` | Shape | no | 65 | `__CLI__ check` | Take the held-back paths it names out of your answer. |73| `ReachedInternals` | Shape | no | 65 | `__CLI__ check` | Import the other module only through its public files. |74| `StaleBase` | Merge | yes | 75 | `git pull --rebase` | Main moved: rebase onto it, resolve the conflicts it names, and push again. `movedBy` names the landing that last changed each conflicting path, with its `author` and `ask`: keep that change as you resolve. |75| `StaleLayer` | Merge | yes | 75 | `__CLI__ status` | Nothing: the answer is checked again. |
7 unmodified lines
83| `IncompleteBrief` | At ask open | no | 65 | `__CLI__ check` | Fill in the fields `missing` names: the ask's kind requires them. |84| `LayerContentInPublicTree` | Maintainers only | no | 65 | `__CLI__ check` | Take the paths it names out: their files stay private and never enter a public tree. |85| `SecretInOutput` | Maintainers only | no | 65 | `__CLI__ check` | Take the write-only value of `item` out of the output or the tree (`where`), then check again. |86| `UnstatedRequirement` | Maintainers only | no | 65 | `__CLI__ check` | State in public what the area's held-back check holds, or take the check out of the suite. |87| `PostureChange` | Decision | no | 65 | `__CLI__ today` | A decider declined the posture change it names (`from`, `to`): take out what changes the posture; `next` lists the decisions. |88| `NotDecider` | Decision | no | 77 | `__CLI__ status` | Only one of the project's deciders may do this: ask one of them. |87| `PostureChange` | Decision | no | 65 | `__CLI__ today` | A maintainer declined the posture change it names (`from`, `to`): take out what changes the posture; `next` lists the decisions. |88| `NotDecider` | Decision | no | 77 | `__CLI__ status` | Only one of the project's maintainers may do this: ask one of them. |89| `DecisionClosed` | Decision | no | 66 | `__CLI__ today` | Nothing to decide: it was taken already, or expired to its default. |90| `ProposalClosed` | Decision | no | 66 | `__CLI__ today` | Nothing more is drafted for it: the proposal was accepted, declined or expired. |91| `DraftInProgress` | Decision | yes | 75 | `__CLI__ proposal <proposal>` | Wait: the platform is drafting this proposal's ask already, and `next` shows when it settles. |92| `UnknownProject` | Lookup | no | 66 | `__CLI__ asks` | Check the project's name: every project is listed in the index. |
31 unmodified lines
124125| Repo | Name | Who reads it | Who pushes to it |126| --- | --- | --- | --- |127| The project's | `<owner>/<name>` | Anyone | No one: `main` moves only by a landing (the project's first push is its initializer's) |128| A claim's fork | `<owner>/<name>--<ask>--<handle>` | Signed-in people | Its claimant while the claim is live, and a decider who finishes the answer |128| A claim's fork | `<owner>/<name>--<ask>--<handle>` | Signed-in people | Its claimant while the claim is live, and a maintainer who finishes the answer |129| A working fork | `<owner>/<name>--me--<handle>` | Signed-in people | Its owner |130131A fork's name spells the handle in lowercase. A fork takes branches only: push your answer with `git push __SLUG__ HEAD:main`. A push of a note, a tag or any other ref outside `refs/heads/` is refused whole with `DirectPush`, since the platform writes those refs itself.132
26 unmodified lines
159160- `AskClosed`: An ask closed, with the landing that answered it.161- `AskOpened`: A new ask opened.162- `Claimed`: Someone claimed an ask.163- `Decided`: A decider took a decision.163- `Decided`: A maintainer took a decision.164- `Judged`: An answer was checked, with the outcome its verdict holds.165- `Landed`: A landing reached `main`, a project's adoption (its first push or its import) among them.166- `Lapsed`: A claim lapsed: no push for too long.167- `LedgerAppended`: The project's public ledger gained an entry.168- `ProposalDrafted`: A proposal's draft settled: ready for a decider, or failed.168- `ProposalDrafted`: A proposal's draft settled: ready for a maintainer, or failed.169- `ProposalOpened`: A proposal opened.170- `Pushed`: A claimant pushed to their fork.171- `Released`: A claim was released.172- `Warned`: A claim was warned that it lapses without a push.
23 unmodified lines
modified:packages/agent-kit/test/golden/platform-skill.txtnot shown

Its text is not shown, modified.

modified:packages/agent-kit/test/golden/project-skill.txtnot shown

Its text is not shown, modified.

modified:packages/config/test/seed-as.test.tsnot shown

Its text is not shown, modified.

modified:packages/config/test/seed.test.tsnot shown

Its text is not shown, modified.

modified:packages/config/test/smoke-loop.test.tsnot shown

Its text is not shown, modified.

modified:packages/drafting/src/drafted.tsnot shown

Its text is not shown, modified.

modified:packages/drafting/src/prompt.tsnot shown

Its text is not shown, modified.

modified:packages/drafting/test/render.test.tsnot shown

Its text is not shown, modified.

modified:packages/gate/src/stages/parse.tsnot shown

Its text is not shown, modified.

modified:packages/gate/src/facts.tsnot shown

Its text is not shown, modified.

modified:packages/gate/test/escapes.test.tsnot shown

Its text is not shown, modified.

modified:packages/gate/test/parse.test.tsnot shown

Its text is not shown, modified.

modified:packages/gate/test/shape.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/src/attention/decisions.tsnot shown

Its text is not shown, modified.

modified:packages/project/src/attention/promote.tsnot shown

Its text is not shown, modified.

modified:packages/project/src/attention/proposals.tsnot shown

Its text is not shown, modified.

modified:packages/project/src/visibility/state.tsnot shown

Its text is not shown, modified.

modified:packages/project/src/deciders.tsnot shown

Its text is not shown, modified.

modified:packages/project/src/landing.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/attention/decisions.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/attention/promote.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/attention/today.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/attention/vouch.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/visibility/env.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/visibility/state.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/deciders.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/draft-settle.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/evidence.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/generated.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/lander-isogit.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/landing.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/project.test.tsnot shown

Its text is not shown, modified.

modified:packages/project/test/ratchets.test.tsnot shown

Its text is not shown, modified.

modified:packages/protocol/src/contracts.tsnot shown

Its text is not shown, modified.

modified:packages/protocol/src/render.tsnot shown

Its text is not shown, modified.

modified:packages/protocol/test/fixtures/domain.jsonnot shown

Its text is not shown, modified.

modified:packages/protocol/test/authenticate.test.tsnot shown

Its text is not shown, modified.

modified:packages/protocol/test/contracts.test.tsnot shown

Its text is not shown, modified.

modified:packages/protocol/test/render.test.tsnot shown

Its text is not shown, modified.

modified:packages/rules/test/example-burrow.test.tsnot shown

Its text is not shown, modified.

modified:packages/rules/test/example-datekit.test.tsnot shown

Its text is not shown, modified.

modified:packages/sdk/src/functions.tsnot shown

Its text is not shown, modified.

modified:packages/sdk/src/kind.tsnot shown

Its text is not shown, modified.

modified:packages/sdk/src/project.tsnot shown

Its text is not shown, modified.

modified:packages/sdk/src/visibility.tsnot shown

Its text is not shown, modified.

modified:packages/testkit/src/scenarios.tsnot shown

Its text is not shown, modified.

modified:packages/testkit/test/scenarios.test.tsnot shown

Its text is not shown, modified.

modified:packages/visibility/src/vault.tsnot shown

Its text is not shown, modified.

modified:packages/visibility/test/vault.test.tsnot shown

Its text is not shown, modified.

modified:scripts/lib/smoke/core-loop.tsnot shown

Its text is not shown, modified.

modified:scripts/lib/seed.tsnot shown

Its text is not shown, modified.

modified:DESIGN.md+10 added-10 removed
230 unmodified lines
231**Creative North Star: "The gate's control room"**232233The web is the console an operator keeps open beside a terminal: on the left, where you are; in the middle, what is waiting; on the right, the typed facts of the thing in your hand. Every screen answers three questions in this order: what state is it in, whose move is it, and what runs next. The answer to the last one is always a command you can copy. A reader selects one thing (a row, with a click or `j`), reads its state and its next command in the inspector, copies the command (`1`), and goes back to the terminal.234235The pages are for operating, not persuading. One page is the exception: the landing at `/`, drawn outside the shell, says what the platform is and leads to the open asks (see "The landing"). Density is set by a decider clearing Today on a phone and a contributor reading a refusal beside a terminal: two-line rows (64 px, 66 px measured with their hairlines), 14 px metadata, a 13 px floor. Colour means state and nothing else, and always sits beside a word and a mark, so a page read in grayscale, by a screen reader or in a terminal says the same thing. In a list the colour sits on the mark and the word stays ink, so the one word that asks for a move is never the quietest thing on the page. One paper ground runs under all three panes; panes are parted by hairlines, never floated, rounded or shadowed. The landing's stamp is the one authored moment.235The pages are for operating, not persuading. One page is the exception: the landing at `/`, drawn outside the shell, says what the platform is and leads to the open asks (see "The landing"). Density is set by a maintainer clearing Today on a phone and a contributor reading a refusal beside a terminal: two-line rows (64 px, 66 px measured with their hairlines), 14 px metadata, a 13 px floor. Colour means state and nothing else, and always sits beside a word and a mark, so a page read in grayscale, by a screen reader or in a terminal says the same thing. In a list the colour sits on the mark and the word stays ink, so the one word that asks for a move is never the quietest thing on the page. One paper ground runs under all three panes; panes are parted by hairlines, never floated, rounded or shadowed. The landing's stamp is the one authored moment.236237Rejected on purpose: the dashboard look (floating rounded panels on a grey ground, cards in a grid, stat tiles, a blue link colour, pill badges, avatar stacks, coloured file icons), its glossy cousin (dark glass, blur, glows, gradients), and the terminal costume (green on black, monospace for everything). Rejected too: a filled pill or a tinted square that carries a state without its word; a ladder of surface steps used as zones on a darker page, which the One Ground Rule forbids; shadows and glows; `outline: none`, which takes keyboard focus from every reader; text at 12 px and greys under 4.5:1 for line numbers and metadata; avatars and activity sparklines, since handles are links in ink and nothing counts a person; a revision ladder, each round a box under the last, where the fan and the round rows do the job on one line; a command box that ellipsises; and a loading bar, spinners and shimmer in content. Monospace appears only where the text is what a terminal prints or takes: commands, refusal transcripts, trailers, SHAs, paths, ids, env keys and code.238239**Key Characteristics:**240241- Three panes on one ground: the rail (15 rem), main, and the inspector (20 rem, 22 rem from 1440 px, wide enough that the command it hands over reads on one line), parted by one-pixel rules, each scrolling on its own from 1120 px.242- State is a mark, then a word, then a colour; red belongs to refusals, violet to sealed things, and nothing else is coloured. In a row the colour is the mark's; the word is ink, except Refused and Landed.243- Every action is a command to copy, its text always in the page. The only web controls that change anything are a decider's choices, proposing an ask (and asking the platform's agent to draft it), and signing in or out.243- Every action is a command to copy, its text always in the page. The only web controls that change anything are a maintainer's choices, proposing an ask (and asking the platform's agent to draft it), and signing in or out.244- Light and dark follow the system setting; there is no toggle, no script and no flash.245- Motion carries state, never decoration: transitions of 120–200 ms, and the landing's stamp.246247## Colors
1 unmodified line
249Cool bond paper and blue-black ink, with five state roles that never appear as decoration. Every state role measures at least 5:1 against paper, against the field surface and against the pressed surface, in both schemes; body ink measures about 16:1.250251### Primary252253- **Blue-black Ink** (`--foreground`; `ink`, `ink-dark`): text, page titles, primary buttons, a decider's non-default choices, the current tab's underline, the focus outline. It is the only accent: the web has no brand colour, and links are ink.253- **Blue-black Ink** (`--foreground`; `ink`, `ink-dark`): text, page titles, primary buttons, a maintainer's non-default choices, the current tab's underline, the focus outline. It is the only accent: the web has no brand colour, and links are ink.254255### State roles256257- **Landed Green** (`--landed`): the change is on main. The landing's stamp and lead word, passed stages, a decision whose choice took effect.
101 unmodified lines
359360### Rail (`Rail`)361362- **Character:** where you are, always in the same place.363- **Shape:** the wordmark row (44 px, linking `/`, the landing); the site's sections, each a 32 px row of a 16 px mark and its word (Home, Asks at `/asks`, Today with the count of decisions waiting for a signed-in decider, Docs, For agents); "Projects" over one 32 px row per project, its posture's mark and one short word at the row's end (`postureWord` in `posture-label.ts`, the same short form the project's head says, such as "Sealed evidence", the platform's full label its title); the current project's sections indented under it (Asks with its open count, Code, Landings, Refs, Policy, Ledger, Env shape); "All projects" opening the switcher after the first eight; the session (handle or Sign in) and a Keys button pinned at the foot.363- **Shape:** the wordmark row (44 px, linking `/`, the landing); the site's sections, each a 32 px row of a 16 px mark and its word (Home, Asks at `/asks`, Today with the count of decisions waiting for a signed-in maintainer, Docs, For agents); "Projects" over one 32 px row per project, its posture's mark and one short word at the row's end (`postureWord` in `posture-label.ts`, the same short form the project's head says, such as "Sealed evidence", the platform's full label its title); the current project's sections indented under it (Asks with its open count, Code, Landings, Refs, Policy, Ledger, Env shape); "All projects" opening the switcher after the first eight; the session (handle or Sign in) and a Keys button pinned at the foot.364- **Current item:** the surface fill, ink at 600, `aria-current`. Never a coloured bar or an accent.365- **Code form:** a route that fills the rail's slot (`staticData.rail`: the tree on tree, blob and why; the changed files on a commit and a finish) folds the site's sections and projects into a Menu button on the wordmark row and the project's sections into a one-line disclosure, and the slot fills the rest.366367### Top bar and bottom bar
3 unmodified lines
371372### Context bar, page head and toolbar373374- **Context bar:** the breadcrumb (project / section / subject, ids in mono, each a link but the last; on a phone only the page's own crumb), and at the right the subject's compact state (mark and lead word) or a list's count ("17 open asks, 3 open to take"), and the page's primary command as a copy button.375- **Page head:** the title; the status line; the meta line (kind · asker · claimant · pushed `2 h ago`, and on a commit `3 files · +42 −7` at its end, the stat in the diff family at 13 px tabular, linking the diff). A project home's head is its name, its posture from its own ledger and its open count, the README's first sentence as a lede, and under it **the one rule sentence**: a 14 px muted line built only from typed facts ("Gate: 7 stages · deciders set for 3 paths · 7 sealed checks in 2 areas · last landed 2 d ago"), the ledger linked from it. It is the one place the project's own pages state how a change lands; the fact blocks beside them carry the gate, the deciders and what is held back as facts, never the posture again.375- **Page head:** the title; the status line; the meta line (kind · asker · claimant · pushed `2 h ago`, and on a commit `3 files · +42 −7` at its end, the stat in the diff family at 13 px tabular, linking the diff). A project home's head is its name, its posture from its own ledger and its open count, the README's first sentence as a lede, and under it **the one rule sentence**: a 14 px muted line built only from typed facts ("Gate: 7 stages · maintainers set for 3 paths · 7 sealed checks in 2 areas · last landed 2 d ago"), the ledger linked from it. It is the one place the project's own pages state how a change lands; the fact blocks beside them carry the gate, the maintainers and what is held back as facts, never the posture again.376- **Toolbar:** filters as text tabs with their counts in label type, the current one ink at 600 with a 2 px ink underline (the one current-tab style of the whole web); view toggles (Unified | Split, Code | Why) as segmented text; on a phone the strip scrolls sideways and fades its last 2 rem.377378### Inspector (`Workspace`'s facts) and fact blocks (`facts.tsx`)379
18 unmodified lines
398- **Command line:** a field-surface box with a hairline border that hugs its command; a muted `$` that selection skips; the command in mono at terminal leading, broken only between words, each of its own lines hanging 6ch so a wrapped line reads as one line going on (a line too short to wrap hangs less, so its box hugging it never breaks a word; `e2e/command-line.e2e.ts` holds it); a ghost Copy button (its word hidden in a narrow column). A numbered command shows its digit before the `$` while the single keys are on, and "Copy (1)" in its title. In the inspector the box takes the bleed form (above): pane-wide, hairlines top and bottom, a 28 px icon-only Copy, a 2ch hang. A command is always shown whole; it never ellipsises.399400### Status line (`StatusLine`) and state badge (`StateBadge`)401402- **Status line:** one sentence, the same under a title, in the State block and (compact) in the context bar: the mark, the lead word in its role at 600, the rest in ink, then whose move in muted, then the next command as a chip. "Open to take", "Claimed by tamsin, no answer pushed yet · tamsin's move", "Checking at the checks stage · the platform's move", "Refused at Shape: OutOfScope", "Waiting on decision dec-000001 · a decider's move", "Waiting for 4 of 6 children to land · the family's move", "Landed as 9b1c3e5" (the SHA links the commit). A refusal's lead and tag come from `headline`, never a paraphrase. `data-tone` and `data-mark` carry it. The status line keeps the coloured lead word on every page; the row's word is ink (the Mark Carries Rule).402- **Status line:** one sentence, the same under a title, in the State block and (compact) in the context bar: the mark, the lead word in its role at 600, the rest in ink, then whose move in muted, then the next command as a chip. "Open to take", "Claimed by tamsin, no answer pushed yet · tamsin's move", "Checking at the checks stage · the platform's move", "Refused at Shape: OutOfScope", "Waiting on decision dec-000001 · a maintainer's move", "Waiting for 4 of 6 children to land · the family's move", "Landed as 9b1c3e5" (the SHA links the commit). A refusal's lead and tag come from `headline`, never a paraphrase. `data-tone` and `data-mark` carry it. The status line keeps the coloured lead word on every page; the row's word is ink (the Mark Carries Rule).403- **State badge:** the one way a state shows as a word: its mark, then its word in the role, at the size of its line. No pill, no fill, no box. Posture, stages, an ask's standing and a decision's default all draw through it; `data-mark` (and `data-posture` on a posture's label) carry it.404405### Marks (`marks.tsx`)406
8 unmodified lines
415416### Outcome (`OutcomeView`), stage strip (`StageStrip`) and refusal (`RefusalView`)417418- **Outcome:** an answer's status line at Title size, the stamp on Landed; a refusal adds `RefusalView` below. `data-outcome` and `data-state` carry it.419- **Rounds:** every push the gate checked is a round, numbered from 1, and a verdict is read only against its round. On an answer with more than one round the first region in main is **Rounds**: one 40 px `Row` per round ("Round 2 of 3" · the head in mono · the state word and its age at the right), the page's round selected, newest first; the round read is in the address (`?head=`). No diff between rounds of an unlanded answer: that is the decider's view.420- **Waiting:** a waiting answer's main pane is not left to the inspector. Under the strip it says the one sentence a contributor needs, from the typed state: "Nothing for you to run. Pushing again starts round 3; this verdict stays as round 2." or "Nothing for you to run. A decider has until Thu 14:00." Never a spinner, never a paraphrase of the status line.419- **Rounds:** every push the gate checked is a round, numbered from 1, and a verdict is read only against its round. On an answer with more than one round the first region in main is **Rounds**: one 40 px `Row` per round ("Round 2 of 3" · the head in mono · the state word and its age at the right), the page's round selected, newest first; the round read is in the address (`?head=`). No diff between rounds of an unlanded answer: that is the maintainer's view.420- **Waiting:** a waiting answer's main pane is not left to the inspector. Under the strip it says the one sentence a contributor needs, from the typed state: "Nothing for you to run. Pushing again starts round 3; this verdict stays as round 2." or "Nothing for you to run. A maintainer has until Thu 14:00." Never a spinner, never a paraphrase of the status line.421- **Landed:** the landing is told as a sentence before it is shown as a hash. The Landing region leads with one `StatusLine` at Title size ("Landed as 9b1c3e5 · asked by ines-v · answered by bram · 2 d ago", the SHA a link), then the credit trailers under "Credit" at Title weight, then the held-back lines with each root shortened (`sha256:7fbe4b…`, the whole value in `title` and on copy; the `Held-back:` trailer itself stays verbatim), and "The landing commit" as the region's onward link, not underlined text at the foot. The page's job is to credit the people; the hashes are its evidence, under them.422- **Stage strip:** the gate's results row, seven ruled cells in cost order (Parse, Shape, Merge, Cheap, Checks, Held-back, Decider), each a mark, its label and a 13 px state word: passed, now, refused, not yet, not needed (a stage the answer never needed, such as no decision). The current cell is on the surface with `aria-current="step"`. Four cells a row on a phone. `data-stage` and `data-state` on each cell.422- **Stage strip:** the gate's results row, seven ruled cells in cost order (Parse, Shape, Merge, Cheap, Checks, Held-back, Maintainer), each a mark, its label and a 13 px state word: passed, now, refused, not yet, not needed (a stage the answer never needed, such as no decision). The current cell is on the surface with `aria-current="step"`. Four cells a row on a phone. `data-stage` and `data-state` on each cell.423- **Refusal:** a 2 px refused top rule, then `headline(refusals)` in mono red with an octagon mark, then one row per refusal parted by hairlines: its `explain` lines verbatim (indentation kept, the tag in red), then its `next` as a command line. A retryable refusal's mark is the ochre turn-back arrow. `data-refusal` and `data-retryable` carry it. The web never rewords a refusal. On a finish or a Waiver diff a refusal sits under the line its `at` names, as an annotation.424425### Credit trailers (`CreditTrailers`, `CompactCredit`) and held-back lines426
24 unmodified lines
451### Ledger, env shape, policy and refs452453- **Ledger:** the head sentence carries the facts ("Open with sealed evidence. export: 7 sealed checks by 3 people; parser: 4 sealed checks by 3 people."); layers as rows (name in sealed-violet mono, readers, writers, disclosure, reason), sealed areas as sealed-violet titles with root and admission, history as typed one-line rows, newest first. No path, check name or file name.454- **Env shape:** the caption "env shape: varlock's `.env.schema` format", linked to varlock; items as definition rows, sensitive first: the key in mono, the sealed lock and "sensitive", "set by ines-v" or "not set", type, required, proxy hosts with paths, a hairline-bordered "Deprecated". Never a value or the placeholder an answer sees.455- **Policy:** deciders by path, vouching as one line per vouch (never a count of vouches), limits in tabular figures, agents, and one line per layer linking the ledger; the commands that change it, numbered, each flag on its own line. A denouncement is the line it is, never a red label beside a name.455- **Policy:** maintainers by path, vouching as one line per vouch (never a count of vouches), limits in tabular figures, agents, and one line per layer linking the ledger; the commands that change it, numbered, each flag on its own line. A denouncement is the line it is, never a red label beside a name.456- **Refs:** main ("moves only by a landing"), tags, and claim forks as one-line rows with their claim's state word.457458### Empty, pending and error states459
65 unmodified lines
modified:GLOSSARY.md+16 added-16 removed
27 unmodified lines
28The fork a claim is made of, at `<owner>/<name>--<ask>--<handle>`, to which the claimant pushes answers.29_Avoid_: branch, feature branch3031**Working fork**:32A person's own fork of a project, at `<owner>/<name>--me--<handle>`, that holds a decider's own changes before they land and a proposer's sealed answers.32A person's own fork of a project, at `<owner>/<name>--me--<handle>`, that holds a maintainer's own changes before they land and a proposer's sealed answers.33_Avoid_: personal fork, scratch repo3435**Check**:36The predicate that judges an answer: the ask's own check plus the project's checks, run by the platform on the exact merged tree.
18 unmodified lines
55One 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.56_Avoid_: rejection, error, failure, CI failure5758**Discussion**:59A public, freeform thread in a project, open to anyone not denounced, that lands nothing itself; a decider may turn it into a proposal.59A public, freeform thread in a project, open to anyone not denounced, that lands nothing itself; a maintainer may turn it into a proposal.60_Avoid_: issue, forum topic, comments6162**Proposal**:63A request to open an ask, or to flag an existing one, from anyone not denounced, or made by a decider from a discussion; it expires unless a decider accepts it.63A request to open an ask, or to flag an existing one, from anyone not denounced, or made by a maintainer from a discussion; it expires unless a maintainer accepts it.64_Avoid_: feature request, suggestion6566**Draft**:67An ask file and its check that the platform's agent wrote for a proposal, run red first before it is put to a decider. It lands only when a decider accepts it.67An ask file and its check that the platform's agent wrote for a proposal, run red first before it is put to a maintainer. It lands only when a maintainer accepts it.68_Avoid_: AI suggestion, auto-ask6970**Sealed answer**:71An answer recorded with a proposal and judged after the ask opens, without the decider reading its diff.71An answer recorded with a proposal and judged after the ask opens, without the maintainer reading its diff.7273**Finish**:74A decider's own commits on a passing answer before it lands, re-checked and credited with Finished-by.74A maintainer's own commits on a passing answer before it lands, re-checked and credited with Finished-by.75_Avoid_: review, nit, suggested change7677## Landing78
9 unmodified lines
88The commit the platform itself last landed on main; the only commit a project's rules are read from.89_Avoid_: HEAD, tip of main9091**Import**:92A project adopted from a public repo: a read-only copy, not run by its maintainers, whose first `main` is the source branch's tip. The source, its address and branch, stays on the project's record and is shown as where it was imported from; by default the project is named after its source namespace (the Run a project guide has the whole rule). It is made from the CLI's `init --import` or the web's `/import`.92A project adopted from a public repo: a read-only copy, not run by its upstream maintainers, whose first `main` is the source branch's tip. The source, its address and branch, stays on the project's record and is shown as where it was imported from; by default the project is named after its source namespace (the Run a project guide has the whole rule). It is made from the CLI's `init --import` or the web's `/import`.93_Avoid_: mirror, fork (of the source), sync9495**Outcome**:96Where an offered answer stands: Checking, Landed, WaitingOnParent, AwaitingFinish, AwaitingDecision or Refused; only Refused carries refusals, and waiting is not a refusal.
6 unmodified lines
103**Weakening**:104An answer's added marker that disables a check (.skip, @ts-ignore, a lint or @effect-diagnostics disable) or raises a ratchet baseline; a marker without a reason is refused, and one with a reason counts against the ratchet.105106**Ratchet**:107A counted budget per territory, recorded at landing and lowered automatically, that answers may lower but never raise; only a decider raises it.107A counted budget per territory, recorded at landing and lowered automatically, that answers may lower but never raise; only a maintainer raises it.108_Avoid_: baseline (alone), suppression file109110**Verdict**:111The record of one check run: base, head, patch id, level and the platform as verifier, kept with the landing.
15 unmodified lines
127**Answerer**:128The accountable human who signs an answer; any agent works through their token.129_Avoid_: contributor (when meaning this role), agent identity130131**Decider**:131**Maintainer**:132A person whose decisions open asks, accept proposals and finish answers for an area; a path may name several, and may ask that more than one of them agree.133_Avoid_: reviewer, approver, owner, delegate133_Avoid_: decider, reviewer, approver, owner, delegate134135**Decision**:136One choice put to a project's deciders, with its evidence and a safe default that is taken if nobody decides before it expires. Where a path asks for more than one decider, the choice takes effect once that many have chosen alike, and waits until then.136One choice put to a project's maintainers, with its evidence and a safe default that is taken if nobody decides before it expires. Where a path asks for more than one maintainer, the choice takes effect once that many have chosen alike, and waits until then.137_Avoid_: approval, vote, review request, quorum138139**Today**:140A decider's daily page of open decisions, ordered by expiry and held to their budget; the overflow waits for a later day.140A maintainer's daily page of open decisions, ordered by expiry and held to their budget; the overflow waits for a later day.141_Avoid_: inbox, queue, dashboard142143**Budget**:144The number of decisions a decider takes per day; a decision past it waits, and one that expires undecided takes its default.144The number of decisions a maintainer takes per day; a decision past it waits, and one that expires undecided takes its default.145146**Vouch**:147A line in the project's vouch file by which a member admits a person to claim and to submit sealed answers; it may carry the member's reason and the landing it followed, and it is read as a line, never counted.148_Avoid_: approval, whitelist, endorsement, trust score
37 unmodified lines
186**Commitment**:187The salted SHA-256 root of a held-back suite, printed on every landing it judged.188189**Posture**:190The label the platform computes from a project's visibility config as it stands now: Open, Open with sealed evidence, Open on schedule, Open core, or Source available. A narrowing stands only once a decider accepts it and its notice runs out. Every page and list shows the posture the ledger shows, said once per page.190The label the platform computes from a project's visibility config as it stands now: Open, Open with sealed evidence, Open on schedule, Open core, or Source available. A narrowing stands only once a maintainer accepts it and its notice runs out. Every page and list shows the posture the ledger shows, said once per page.191_Avoid_: licence (they are different things)192193**Ledger**:194The public, append-only record of a project's layers, counts, commitments, releases and posture changes; the one record a clone does not yet carry.
2 unmodified lines
197The public schema of a project's environment variables: its committed .env.schema file, in the @env-spec format that varlock reads, which the platform parses from the landed SHA and never resolves.198_Avoid_: env.ts, .env.example, secrets file199200**Write-only value**:201A value for one @sensitive env item, set by a decider and stored encrypted by the platform; nobody can read it back, and it reaches only runs of landed code or is swapped in at the network boundary.201A value for one @sensitive env item, set by a maintainer and stored encrypted by the platform; nobody can read it back, and it reaches only runs of landed code or is swapped in at the network boundary.202_Avoid_: secret (alone), vault entry203204**Placeholder**:205The stand-in that unlanded code sees for a write-only value; for a @proxy item the platform swaps it for the real value on matching outbound HTTPS requests.
6 unmodified lines
212_Avoid_: slug, repo name, full name, path213214**Owner**:215The namespace a project is named in: a person's handle, or a source namespace. Owning a namespace is the right to make projects in it and nothing more; deciding stays with the config folder.216_Avoid_: org, account, maintainer, admin216_Avoid_: org, account, maintainer (owning a namespace is not maintaining a project), admin217218**Source namespace**:219An owner that is the host and the account on that host a repo was imported from, such as `github.com/pallets`, so an import's address, `<host>/<account>/<name>`, says where it came from. Here, and only here, account means the host's account, never one on this platform.220_Avoid_: upstream, origin, mirror
23 unmodified lines
modified:PRODUCT.md+14 added-14 removed
10 unmodified lines
11The web is one of four surfaces over one contract: git, the CLI, MCP and the web all serve the same contracts and render the same refusals.1213## Users1415Three kinds of people, and the agents that work for them. The words below are product words; inside the domain a contributor answering an ask is an **answerer** and a maintainer taking decisions is a **decider**.15Three kinds of people, and the agents that work for them. The words below are product words; inside the domain a contributor answering an ask is an **answerer** and a maintainer is anyone the config names to take decisions for a path.16171. **Maintainers** keep a project. Their jobs:18 - say what the project wants, as asks: a file on main with a want, a territory and a check that fails on main, which opens only when the check is red first;19 - set how the project takes changes, as typed code in its config folder on main (deciders, ask kinds, budgets, vouches, ratchets, the run block, visibility), read from the platform's last landing;19 - set how the project takes changes, as typed code in its config folder on main (maintainers, ask kinds, budgets, vouches, ratchets, the run block, visibility), read from the platform's last landing;20 - spend a daily budget of decisions on Today: open or decline a proposal, waive an escape, accept a posture change, finish a passing answer; doing nothing lets nothing in;21 - vouch for the people who may claim, each vouch a line that may say why and name the landing it followed, and denounce those who may not propose; a vouch is read as its line, never counted;22 - keep checks of their own in a layer only they read, and set write-only env values from a terminal;23 - land their own changes through the same gate as anyone else.242. **Contributors** answer asks, often a newcomer looking for a first one. Their jobs:25 - find an ask they may take, on the front page, with `asks` or with `front`, each saying what done means before they start; some asks are held for newcomers, with a mentor named, and such an ask reads as held for them on every page and to every reader, never as closed to them;26 - claim it, which gives them a fork and an exclusive slot kept alive by pushing;27 - answer with plain git in that fork, run the gate's checks locally with `check`, push, and read the verdict where they already look (git's own output, `status`, the verdict note, the answer's page); each push the gate checks is a numbered round, and a verdict stays with its round when the next push comes;28 - propose an ask nobody wrote yet, as a proposal that expires unless a decider accepts it;28 - propose an ask nobody wrote yet, as a proposal that expires unless a maintainer accepts it;29 - own what lands: their name is on the commit, and their record is built from those commits.303. **Their harnesses**, the coding agents a person works through (Claude Code, OpenCode, Amp, pi, others). Their jobs: read the project's AGENTS.md block or skill, an ask as Markdown, `llms.txt` and the MCP tools; act only through their person's token; read refusals as typed JSON and run each one's `next`. An agent holds no account and no credit: the person's claim carries identity, and a landing discloses the agent apart (`Assisted-by`).3132Contributors meet four nouns, and only four: **ask**, **answer**, **check** and **refusal**. Everything else (decider, budget, layer, ledger, posture, ratchet) is maintainer or platform vocabulary.32Contributors meet four nouns, and only four: **ask**, **answer**, **check** and **refusal**. Everything else (budget, layer, ledger, posture, ratchet) is maintainer or platform vocabulary.3334## Product Purpose3536Myr is a git platform where everything a project ships is public, the contribution process is typed code on main, and a change lands only by passing a typed gate. It turns the front door around: the project says what it wants, anyone (a person, or an agent working for one) may answer, an answer that passes its check lands with credit for every person involved, and work nobody asked for has nowhere to go. It is a prototype.3738The terminal and git are where work happens. The web is where people look: at what a project wants, where an answer stands, who is credited for a landing, and what a decider owes today.38The terminal and git are where work happens. The web is where people look: at what a project wants, where an answer stands, who is credited for a landing, and what a maintainer owes today.3940Success: a newcomer goes from the front page to a running `claim` in under a minute; a stock harness with nothing installed claims, is refused, fixes and lands from git's own output; a contributor reads a refusal on the web exactly as git printed it; a decider clears Today on a phone.40Success: a newcomer goes from the front page to a running `claim` in under a minute; a stock harness with nothing installed claims, is refused, fixes and lands from git's own output; a contributor reads a refusal on the web exactly as git printed it; a maintainer clears Today on a phone.4142## Positioning4344The mechanism is the claim, not the feature count. What it promises:4546- **main moves only by a landing.** A landing is the platform's commit of a checked tree; a direct push to main is refused. Deciders' own changes go through the same gate.47- **An answer cannot change what judges it.** The judge is read from the last landing, and its closure (check files, test and lint config, CI and hook configs, scripts, the config folder, `.env.schema`) is out of every answer's reach. An answer that edits them, or adds a disable comment with no reason, is refused; a reasoned one counts against the territory's escapes, and waits for a decider when it would raise them.46- **main moves only by a landing.** A landing is the platform's commit of a checked tree; a direct push to main is refused. Maintainers' own changes go through the same gate.47- **An answer cannot change what judges it.** The judge is read from the last landing, and its closure (check files, test and lint config, CI and hook configs, scripts, the config folder, `.env.schema`) is out of every answer's reach. An answer that edits them, or adds a disable comment with no reason, is refused; a reasoned one counts against the territory's escapes, and waits for a maintainer when it would raise them.48- **Every refusal is a typed value**, from a closed union: a tag, a reason, where it points, the command to run next, and whether retrying can help. It reads the same in `git push` output, the CLI, MCP and the web, and accumulates at the cheap stages, so one push hears every independent problem.49- **Credit is git trailers on the landing commit** (`Asked-by`, `Signed-off-by`, `Decided-by`, `Mentored-by`, `Finished-by`, `Advised-by`). Agents are disclosed, never credited. Trust is a vouch: a public line on main that may carry the member's reason and the landing it followed, read as a line and never as a number.50- **Held-back checks disclose one bit per area.** A layer's files never enter a public tree; a contributor learns which area failed, never a check's name or output, with a few attempts a week. A landing judged by them says "checked against N sealed checks" in its `Held-back:` trailer.51- **Write-only values stay write-only.** A decider sets a sensitive env value from a terminal; nobody reads it back, and an unlanded answer's code sees a placeholder.51- **Write-only values stay write-only.** A maintainer sets a sensitive env value from a terminal; nobody reads it back, and an unlanded answer's code sees a placeholder.52- **Export is `git clone`.** Code, asks and credit trailers leave with a clone; verdict notes take one more fetch of `refs/notes/*`. Said plainly: the ledger and the decisions are the one record not yet in the clone.5354What it declines:5556- **No inbound or two-way sync with another code host.** It would be a second way onto main that skips the gate. Sign-in uses the platform's own accounts, with Google as an option.57- **No model's opinion in the gate.** Checks are commands with exit statuses and counts; an answer is judged by them, and taste is a decider's finish.57- **No model's opinion in the gate.** Checks are commands with exit statuses and counts; an answer is judged by them, and taste is a maintainer's finish.58- **No scores.** A person appears by handle and role; their record serves trust rules only and is never shown as a number, rank or leaderboard.59- **No overclaiming.** Held-back checks are hidden from people and agents, not from the code under test, so they are no security boundary. Myr is a prototype, not a whole forge; it makes no claim about speed or scale beyond measured, dated numbers.60- **No second way to land.** The web adds no form for what git or the CLI does. Its only writes are a decider's choices, proposing an ask (and asking the platform's agent to draft it), and signing in or out. Landed code and each landing's diff are public, as a clone already makes them; an answer that has not landed shows its diff only to the decider finishing it.60- **No second way to land.** The web adds no form for what git or the CLI does. Its only writes are a maintainer's choices, proposing an ask (and asking the platform's agent to draft it), and signing in or out. Landed code and each landing's diff are public, as a clone already makes them; an answer that has not landed shows its diff only to the maintainer finishing it.61- **No stacks of submissions.** A contributor's commits are not ordered into a stack that lands in parts; work is ordered by asks, and a family is the typed dependency, with a delete child that waits. A stack is a second ordering outside the gate.62- **No free labels.** Kinds and territories are typed; a label with no check behind it is work nobody asked for.63- **No discussion on rounds, and no reactions anywhere.** The gate's verdict is the only voice on a round.64- **No mirroring by a second push URL.** It is a second way onto main.
13 unmodified lines
78 - **Answer** (`/$project/answers/$ask`): the outcome, the gate's stages, the rounds, the lanes, held-back results as one line per area, the refusal, and the landing. A waiting answer says the one thing the contributor needs; a landed one is told as a sentence first, then credits its people, and only then shows its sealed roots.79 - **Person** (`/people/$handle`): their credits by role and area, in words, never a number or a score.80 - **Policy** (`/$project/people`): who decides which paths, who is vouched for or denounced, the limits and the agent rules, read from the config folder at the landed commit, with the commands that change them.81 - **Proposals** (`/$project/proposals/new`, `/$project/proposals/$proposal`): a want proposed from the web or the CLI, the platform's agent's draft if one was asked for (the ask file, the check, its red-first runs), and the decision it waits on.82 - **Today** (`/today`): a decider's decisions in sections (due today, within the budget, waiting for tomorrow), each with its evidence, safe default, expiry and one-tap choices whose consequence is written under each, against the budget said as a sentence, with newcomers to welcome and a sample of landings that needed nobody; each decision has its own page (`/$project/decisions/$decision`), where a finish shows the answer's diff with refusals marked at their lines.82 - **Today** (`/today`): a maintainer's decisions in sections (due today, within the budget, waiting for tomorrow), each with its evidence, safe default, expiry and one-tap choices whose consequence is written under each, against the budget said as a sentence, with newcomers to welcome and a sample of landings that needed nobody; each decision has its own page (`/$project/decisions/$decision`), where a finish shows the answer's diff with refusals marked at their lines.83 - **Ledger** (`/$project/ledger`): the posture label, each declared layer with its reason, each sealed area's count, authors, committed root and admission, and every entry, newest first.84 - **Env shape** (`/$project/env`): every item the project's committed `.env.schema` declares, parsed at the landed commit and never resolved; for a sensitive item, who set its value and when. Never a value.85 - **Sign-in** (`/auth/signin`): through the platform's own accounts; the session lives in an HttpOnly cookie the browser cannot read.86 - **For agents** (`/agents`, and `/agents.md`): a reference in the voice of a man page over `/llms.txt`, `/llms-full.txt`, each project's `/$project/llms.txt`, `/.well-known/mcp.json` and the skills under `/.well-known/agent-skills/`.
6 unmodified lines
9394- The web Worker holds no storage binding and no secrets; every read goes through `/rpc` to the platform, and no public-serving Worker can reach the private namespace (AGENTS.md principle 7). It cannot show what the platform does not return.95- Refusal text comes only from `@repo/protocol/render` (`explain`, `headline`), the one renderer for git, the CLI, MCP and the web (principle 3).96- The host that keeps a project's repos is a port behind the gateway's custody: the gateway holds every credential and every rule, and a host is whatever passes the one `RepoHost` contract. A second host is an adapter, not a rewrite.97- The web never: shows an unlanded answer's diff to anyone but the decider finishing it; shows a score, rank or count of a person as a measure of quality; reads a write-only value back, or shows the placeholder an answer sees; names a held-back path, check or case to someone outside its layer.97- The web never: shows an unlanded answer's diff to anyone but the maintainer finishing it; shows a score, rank or count of a person as a measure of quality; reads a write-only value back, or shows the placeholder an answer sees; names a held-back path, check or case to someone outside its layer.9899## Brand Commitments100101- The name lives only in `packages/brand`: code takes it from `Brand.name` and the command from `Brand.cli`. Prose may name it: Myr, said "meer".
11 unmodified lines
1131. **The terminal is the workplace; the web is the window.** Every action shows its command; nothing adds a second way to land.1142. **Render the typed value, not a paraphrase.** Refusals, credits, postures and outcomes read the same on every surface, because one renderer and one component draw each.1153. **Waiting is not refusing.** Checking, waiting on a parent ask, a finish or a decision each read as waiting, never as an error.1164. **Credit people, disclose agents, score no one.**1175. **Decisions fit a phone.** Today's density is set by a decider clearing it in a few minutes on a small screen: one tap a choice, its consequence said under it.1175. **Decisions fit a phone.** Today's density is set by a maintainer clearing it in a few minutes on a small screen: one tap a choice, its consequence said under it.118119## Accessibility & Inclusion120121WCAG 2.2 AA: text contrast at least 4.5:1 (every state colour measures at least 5:1 in both themes), controls and borders at 3:1, nothing set below 13 px, visible focus on every control and a skip link to the page, every state carried by a word and a mark as well as a colour, single-key shortcuts that one switch turns off, `prefers-reduced-motion` honoured, and usable at 360 px wide with no horizontal scroll. `apps/web/e2e/a11y.e2e.ts` runs axe and a keyboard walk over every page in both schemes at 1440 and 390 px.