Skip to content
Myr

held-back-checks.ts

This file

Path

packages/agent-kit/src/docs/held-back-checks.ts

55 lines · 3.6 KiB · TypeScript

Last changed by

Merge redesign into mainoscabrielbefore adoptioncaedd21

History of this file

Take it

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

lines 1–42why, one step back
1import { Brand } from "@repo/brand";
23import { code } from "../text.ts";4import type { DocSource } from "./page.ts";5import { cli } from "./page.ts";67const dir = Brand.configDir;89export const heldBackChecks: DocSource = {10 body: () => [11 "Everything a project ships is public. What a project may keep back is typed: declared in its config folder, counted in a ledger anyone can read, and summed up in a posture every list shows.",12 "",13 "## Layers",14 "",15 "A layer is a separate repo holding one audience's files (the maintainers, a security group, the claimants), laid over `main`'s paths only for the people who may read it. Nothing from a layer ever enters a public tree: the platform lands an answer's own tree, never the tree a layer's reader sees, and a push from a fork cannot carry a layer's paths. Every read of a layer is logged.",16 "",17 `Each layer says what everyone else learns of it, its disclosure: \`public\`, \`sealed\`, \`counted\`, \`declared\`, \`hidden\` or \`writeOnly\`. Layers are declared in ${code(`${dir}/visibility.ts`)}:`,18 "",19 "```ts",20 `import { flows, layer, sealedChecks, visibility } from "${Brand.cliPackage}/rules";`,21 "",22 "export default visibility({",23 " checks: sealedChecks({",24 " admit: { greenOnMainRuns: 3, redOnKnownBadAtLeast: 1 },",25 ' areas: { export: "src/format.ts", parser: "src/parse.ts" },',26 " }),",27 " flows: flows.noWriteDown(),",28 " layers: {",29 ' maintainers: layer({ disclose: "sealed", holds: ["checks"], reason: "Held-back checks for export and parser" }),',30 " },",31 ' notice: { narrowing: "7 days" },',32 "});",33 "```",34 "",35 "## Held-back checks",36 "",37 "A held-back check lives in the maintainers' layer and runs on every answer, after everything else is sealed off: no network, and the snapshot taken before its files are written. The answerer learns one bit per area (this area passed, or it failed) and nothing of the check itself. A new check joins the suite only after it passes `main` several times and fails on a known-bad tree.",38 "",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 "",

Merge build/maintainer-wording into mainoscabrielbefore adoption4c1a571

line 43why, one step back
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.",

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

line 44why, one step back
44 "",

Merge build/1413-docs-and-texts into mainoscabrielbefore adoptionf10338e

line 45why, one step back
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.`,

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

lines 46–48why, one step back
46 "",
47 "## The env shape and write-only values",48 "",

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 49why, one step back
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 Environment on the project's Visibility tab and ${cli("env shape --project <owner>/<name>")} show it, and who set each value, never a value.`,

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

line 50why, one step back
50 "",

Merge build/maintainer-wording into mainoscabrielbefore adoption4c1a571

line 51why, one step back
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.`,

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

lines 52–55why, one step back
52 "",
53 ],54 slug: "held-back-checks",55};