Skip to content
Myr

Merge build/215-protocol-contracts: every operation is one typed contract, served on every surface it belongs on

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

authored by oscabriel · committed by oscabriel · parents 56730f7, 6a3b7b1 · Browse files · 25 files+36421 added−237 removed
This commit

State

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

Diff stats

25 files+36421 added−237 removed

  • tests:+1903 added−143 removed
  • other:+34518 added−94 removed

25 files+36421 added−237 removed

modified:apps/cli/src/surfaces.ts+3 added-3 removed
modified:apps/cli/test/surfaces.test.ts+46 added-8 removed
modified:apps/platform/src/surfaces.ts+20 added-38 removed
1import { Brand } from "@repo/brand";2import { authenticated, bearerToken } from "@repo/protocol/authenticate";2import { Client, Contracts } from "@repo/protocol/contracts";3import { Client, Contracts, surfaced } from "@repo/protocol/contracts";4import { toToolkit } from "@repo/protocol/mcp";4import {5 Authenticated,6 CurrentPrincipal,7 Unauthenticated,8} from "@repo/protocol/principal";5import { Authenticated } from "@repo/protocol/principal";6import { Effect, Layer, Option } from "effect";7import { McpProtocol, McpServer } from "effect/ai";8import {9 Headers,
15 unmodified lines
25export type Services =26 | Rpc.ToHandler<RpcGroup.Rpcs<typeof Contracts>>27 | Sessions;2832/** The token in an `Authorization: Bearer <token>` header. */33const bearer = (authorization: string | undefined) =>34 /^Bearer (?<token>\S+)$/u.exec(authorization ?? "")?.groups?.token;3529/** The person an `Authorization` header names, if any. */37const principalOf = (sessions: Sessions["Service"], authorization?: string) => {38 const token = bearer(authorization);30const principalOf = (sessions: Sessions["Service"], authorization?: string) =>31 Option.match(bearerToken(authorization), {32 onNone: () => Effect.succeedNone,33 onSome: (token) => sessions.verify(token),34 });3540 return token === undefined ? Effect.succeedNone : sessions.verify(token);41};4236/**37 * Every request needs a credential the platform knows; anything else gets a38 * 401 that asks for a bearer token, before any surface sees it.39 */
22 unmodified lines
62 }),63 { global: true }64);6573/** Server side: a call runs as the person its credential names, or not at all. */74const verifyCredential = Layer.effect(75 Authenticated,76 Effect.gen(function* () {77 const sessions = yield* Sessions;7879 return (effect, { headers }) =>80 Effect.gen(function* () {81 const principal = yield* principalOf(sessions, headers.authorization);8283 if (Option.isNone(principal)) {84 return yield* new Unauthenticated();85 }8687 return yield* Effect.provideService(88 effect,89 CurrentPrincipal,90 principal.value91 );92 });93 })66/**67 * Server side: a call runs as the person its credential names. A call with no68 * credential runs as anyone only on a `public` contract; the 401 gate above69 * turns those away until anonymous reads open.70 */71const verifyCredential = authenticated((credential) =>72 Sessions.use(({ verify }) => verify(credential))73);7475/**76 * Client side, for calls made while serving an HTTP request: the call carries
23 unmodified lines
100 );101 })102);103125const projection = toToolkit(Contracts, Effect.service(Client));104const projection = toToolkit(surfaced("mcp"), Effect.service(Client));105127/** The contracts as MCP tools at `/mcp`, each call made as the caller. */106/**107 * The MCP-surfaced contracts as tools at `/mcp`, each call made as the108 * caller.109 */110const mcp = McpServer.toolkit(projection.toolkit).pipe(111 Layer.provideMerge(projection.layer),112 Layer.provide(Layer.effect(Client, RpcTest.makeClient(Contracts))),113 Layer.provide([verifyCredential, forwardCredential]),
23 unmodified lines
modified:apps/platform/src/vacant.ts+54 added-7 removed
1import { Contracts } from "@repo/protocol/contracts";2import { NotClaimed } from "@repo/protocol/refusal";3import { Effect } from "effect";1import { Contracts, EnvSchemaOf } from "@repo/protocol/contracts";2import type { ProjectName } from "@repo/protocol/ids";3import {4 ImportFailed,5 NotDecider,6 UnknownProject,7} from "@repo/protocol/refusal";8import { Effect, Option, Stream } from "effect";910/** Any contract that names a project: there is none to find. */11const noProject = ({ project }: { readonly project: ProjectName }) =>12 Effect.fail(new UnknownProject({ project }));1314/** A contract whose project is optional: none named lists nothing; one named is unknown. */15const ifNamed =16 <A, E>(none: Effect.Effect<A, E>) =>17 ({ project }: { readonly project?: ProjectName }) =>18 Option.match(Option.fromUndefinedOr(project), {19 onNone: () => none,20 onSome: (named) => noProject({ project: named }),21 });2223/**6 * The contracts before any project exists: there are no asks, so nobody holds7 * a claim. The Project Durable Object replaces this.24 * The contracts before any project exists: every listing is empty, every25 * project a call names is unknown, and nobody can make one yet. The Project26 * Durable Object and the front-page projection replace this.27 */28export const Vacant = Contracts.toLayer({10 listAsks: () => Effect.succeed({ asks: [] }),11 submitAnswer: ({ ask }) => Effect.fail(NotClaimed.of(ask)),29 claim: noProject,30 credits: () => Effect.succeed({ credits: [] }),31 decide: noProject,32 // Keyed by the class: lint keeps "shape" out of code names.33 [EnvSchemaOf._tag]: noProject,34 finish: noProject,35 flagAsk: noProject,36 fork: noProject,37 frontPage: () => Effect.succeed({ entries: [] }),38 initProject: () =>39 Effect.fail(40 new ImportFailed({ reason: "no platform behind this surface yet" })41 ),42 land: noProject,43 landing: noProject,44 ledger: noProject,45 listAsks: noProject,46 listProjects: () => Effect.succeed({ projects: [] }),47 openAsk: noProject,48 proposeAsk: noProject,49 release: noProject,50 setEnv: noProject,51 showAsk: noProject,52 status: ifNamed(Effect.succeed({ answers: [], claims: [] })),53 submitAnswer: noProject,54 // Without a project, a caller who decides for none has no Today.55 today: ifNamed(Effect.fail(new NotDecider({}))),56 verdict: noProject,57 vouch: noProject,58 watch: () => Stream.empty,59});
modified:apps/platform/test/harness.ts+40 added-10 removed
16 unmodified lines
17 "io.modelcontextprotocol/clientInfo": { name: "test", version: "0.0.0" },18 "io.modelcontextprotocol/protocolVersion": version,19};2021/** A tools/call over MCP's HTTP transport, as `token`'s bearer if given. */22export const toolCall = (23 name: string,24 args: Readonly<Record<string, string>>,25 token?: string26) => {21/** What an MCP request carries: a tool call names its tool and its arguments. */22interface Params {23 readonly arguments?: Readonly<Record<string, string>>;24 readonly name?: string;25}2627/** One MCP request over the HTTP transport, as `token`'s bearer if given. */28const mcpRequest = (method: string, params: Params, token?: string) => {29 const headers = new Headers({30 accept: "application/json, text/event-stream",31 "content-type": "application/json",30 "mcp-method": "tools/call",31 "mcp-name": name,32 "mcp-method": method,33 "mcp-protocol-version": version,34 });3536 if (params.name !== undefined) {37 headers.set("mcp-name", params.name);38 }3940 if (token !== undefined) {41 headers.set("authorization", `Bearer ${token}`);42 }4344 return new Request(`${origin}/mcp`, {45 body: JSON.stringify({46 id: 1,47 jsonrpc: "2.0",43 method: "tools/call",44 params: { _meta: meta, arguments: args, name },48 method,49 params: { _meta: meta, ...params },50 }),51 headers,52 method: "POST",53 });54};5556/** A tools/call over MCP's HTTP transport, as `token`'s bearer if given. */57export const toolCall = (58 name: string,59 args: Readonly<Record<string, string>>,60 token?: string61) => mcpRequest("tools/call", { arguments: args, name }, token);6263/** A tools/list over MCP's HTTP transport, as `token`'s bearer. */64export const toolList = (token: string) => mcpRequest("tools/list", {}, token);6566/** A tools/call result whose one content block is JSON text. */67const ToolResult = Schema.Struct({68 content: Schema.Tuple([69 Schema.Struct({
19 unmodified lines
89 : text90 )91 );9293const Listed = Schema.fromJsonString(94 Schema.Struct({95 result: Schema.Struct({96 tools: Schema.Array(Schema.Struct({ name: Schema.String })),97 }),98 })99);100101/** The names of the tools a tools/list reply lists, in its order. */102export const toolNames = (response: Response) =>103 lastMessage(response).pipe(104 Effect.flatMap(Schema.decodeEffect(Listed)),105 Effect.map(({ result }) => result.tools.map(({ name }) => name))106 );107108/** A tool call's outcome: whether it failed, and its JSON. */109export const toolResult = (response: Response) =>110 lastMessage(response).pipe(111 Effect.flatMap(Schema.decodeEffect(Reply)),
49 unmodified lines
modified:apps/platform/test/platform.test.ts+2 added-2 removed
16 unmodified lines
17 const { handler } = yield* served(platform(env));1819 const operator = yield* rpcClient(handler, token);2021 expect(yield* operator.listAsks({ project })).toStrictEqual({22 asks: [],21 expect(yield* operator.listProjects({})).toStrictEqual({22 projects: [],23 });24 })25 );26
25 unmodified lines
modified:apps/platform/test/surfaces.test.ts+69 added-34 removed
1import { describe, expect, it } from "@effect/vitest";2import { Contracts } from "@repo/protocol/contracts";3import { AskId, CommitSha, Handle } from "@repo/protocol/ids";2import { Contracts, surfaced } from "@repo/protocol/contracts";3import { Outcome } from "@repo/protocol/domain/outcome";4import {5 AskId,6 CommitSha,7 Handle,8 ProjectName,9 RequestId,10} from "@repo/protocol/ids";11import { CurrentPrincipal, Principal } from "@repo/protocol/principal";12import { NotClaimed } from "@repo/protocol/refusal";13import { Effect, Layer, Ref } from "effect";1415import { MemorySessions } from "../src/sessions/memory.ts";9import { rpcClient, served, toolCall, toolResult } from "./harness.ts";16import { Vacant } from "../src/vacant.ts";17import {18 rpcClient,19 served,20 toolCall,21 toolList,22 toolNames,23 toolResult,24} from "./harness.ts";2526const ask = AskId.make("fix-parser");2728const base = CommitSha.make("1111111111111111111111111111111111111111");2915const main = CommitSha.make("2222222222222222222222222222222222222222");1630const head = CommitSha.make("3333333333333333333333333333333333333333");3132const project = ProjectName.make("datekit");3334const requestId = RequestId.make("answer-0001");3536/** An answer, as a client offers it. */37const args = { ask, base, head, project, requestId };3839/** What the platform answers when it takes the answer in. */40const receipt = {41 ...args,42 outcome: Outcome.cases.Checking.make({ stage: "merge" }),43};4445const sessions = MemorySessions.layer({46 "alice-token": Handle.make("alice"),47 "bob-token": Handle.make("bob"),48});4924/** Contracts where only `holder` holds the ask's claim. */50/** The platform where only `holder` holds the ask's claim. */51const claimHeldBy = (holder: string) =>26 Contracts.toLayer({27 listAsks: () => Effect.succeed({ asks: [] }),28 submitAnswer: (payload) =>52 Layer.mergeAll(53 Vacant,54 Contracts.toLayerHandler("submitAnswer", (payload) =>55 Effect.gen(function* () {56 const holds = Principal.match(yield* CurrentPrincipal, {57 Anonymous: () => false,58 Person: ({ handle }) => handle === holder,
2 unmodified lines
61 if (!holds) {62 return yield* NotClaimed.of(payload.ask);63 }6439 return { main };40 }),41 });65 return receipt;66 })67 )68 );6970describe("the platform's MCP surface", () => {71 it.effect("calls a tool as the principal its bearer token names", () =>72 Effect.gen(function* () {73 const { fetch } = yield* served(74 Layer.mergeAll(claimHeldBy("alice"), sessions)75 );7650 const args = { ask, base, head };5177 const asAlice = yield* toolResult(78 yield* fetch(toolCall("submitAnswer", args, "alice-token"))79 );8081 const asBob = yield* toolResult(82 yield* fetch(toolCall("submitAnswer", args, "bob-token"))83 );8460 expect(asAlice).toStrictEqual({ isError: false, json: { main } });85 expect(asAlice).toStrictEqual({ isError: false, json: receipt });86 expect(asBob.isError).toBeTruthy();87 expect(asBob.json).toHaveProperty("_tag", "NotClaimed");88 })89 );9091 // A stream has no tool form, and a write-only value must never pass92 // through an agent's transcript.93 it.effect("lists the MCP-surfaced contracts only: no watch, no setEnv", () =>94 Effect.gen(function* () {95 const { fetch } = yield* served(Layer.mergeAll(Vacant, sessions));9697 const names = yield* toolNames(yield* fetch(toolList("alice-token")));9899 expect(names).toStrictEqual([...surfaced("mcp").requests.keys()]);100 expect(names).toContain("submitAnswer");101 expect(names).not.toContain("watch");102 expect(names).not.toContain("setEnv");103 })104 );105106 it.effect(107 "turns away a call with no credential, or one it does not know",108 () =>109 Effect.gen(function* () {110 const calls = yield* Ref.make(0);111112 const counted = Effect.andThen(113 Ref.update(calls, (count) => count + 1),114 Effect.die("a turned-away call reached a contract")115 );116117 const { fetch } = yield* served(118 Layer.mergeAll(74 Contracts.toLayer({75 listAsks: () =>76 Ref.update(calls, (count) => count + 1).pipe(77 Effect.as({ asks: [] })78 ),79 submitAnswer: () =>80 Ref.update(calls, (count) => count + 1).pipe(81 Effect.as({ main })82 ),83 }),119 Vacant,120 Contracts.toLayerHandler("listAsks", () => counted),121 Contracts.toLayerHandler("submitAnswer", () => counted),122 sessions123 )124 );12588 const args = { ask, base, head };89126 const responses = [127 yield* fetch(toolCall("submitAnswer", args)),128 yield* fetch(toolCall("submitAnswer", args, "mallory-token")),129 yield* fetch(toolCall("listAsks", { project })),130 yield* fetch(toolCall("listAsks", { project }, "mallory-token")),131 ];132133 expect(134 responses.map((response) => ({135 challenge: response.headers.get("www-authenticate"),136 status: response.status,137 }))100 ).toStrictEqual([101 { challenge: "Bearer", status: 401 },102 { challenge: "Bearer", status: 401 },103 ]);138 ).toStrictEqual(139 responses.map(() => ({ challenge: "Bearer", status: 401 }))140 );141 expect(yield* Ref.get(calls)).toBe(0);142 })143 );144});
4 unmodified lines
149 const { handler } = yield* served(150 Layer.mergeAll(claimHeldBy("alice"), sessions)151 );152116 const args = { ask, base, head };117153 const alice = yield* rpcClient(handler, "alice-token");154 const bob = yield* rpcClient(handler, "bob-token");155121 expect(yield* alice.submitAnswer(args)).toStrictEqual({ main });156 expect(yield* alice.submitAnswer(args)).toStrictEqual(receipt);157 expect(yield* Effect.flip(bob.submitAnswer(args))).toStrictEqual(158 NotClaimed.of(ask)159 );160 })
2 unmodified lines
added:apps/platform/test/vacant.test.ts+160 added
1import { describe, expect, it } from "@effect/vitest";2import {3 AskId,4 CommitSha,5 DecisionId,6 EnvKey,7 Handle,8 ProjectName,9 RepoPath,10 RequestId,11} from "@repo/protocol/ids";12import {13 ImportFailed,14 NotDecider,15 UnknownProject,16} from "@repo/protocol/refusal";17import { Effect, Layer, Redacted, Stream } from "effect";1819import { MemorySessions } from "../src/sessions/memory.ts";20import { Vacant } from "../src/vacant.ts";21import { rpcClient, served } from "./harness.ts";2223const project = ProjectName.make("datekit");2425const ask = AskId.make("iso-week");2627const base = CommitSha.make("1111111111111111111111111111111111111111");2829const head = CommitSha.make("3333333333333333333333333333333333333333");3031const requestId = RequestId.make("answer-0001");3233const unknown = new UnknownProject({ project });3435/** The platform before any project exists, called over `/rpc` as alice. */36const asAlice = Effect.gen(function* () {37 const { handler } = yield* served(38 Layer.mergeAll(39 Vacant,40 MemorySessions.layer({ "alice-token": Handle.make("alice") })41 )42 );4344 return yield* rpcClient(handler, "alice-token");45});4647describe("the platform before any project exists", () => {48 it.effect("lists nothing: no projects, no open asks, no credits", () =>49 Effect.gen(function* () {50 const client = yield* asAlice;5152 expect(yield* client.listProjects({})).toStrictEqual({ projects: [] });53 expect(yield* client.frontPage({})).toStrictEqual({ entries: [] });54 expect(55 yield* client.credits({ handle: Handle.make("alice") })56 ).toStrictEqual({ credits: [] });57 expect(yield* client.status({})).toStrictEqual({58 answers: [],59 claims: [],60 });61 })62 );6364 it.effect("knows no project a read or a write names", () =>65 Effect.gen(function* () {66 const client = yield* asAlice;6768 const refusals = yield* Effect.all([69 Effect.flip(client.listAsks({ project })),70 Effect.flip(client.showAsk({ ask, project })),71 Effect.flip(client.status({ project })),72 Effect.flip(client.verdict({ ask, project })),73 Effect.flip(client.landing({ project, sha: base })),74 Effect.flip(client.today({ project })),75 Effect.flip(client.ledger({ project })),76 Effect.flip(client.envShape({ project })),77 Effect.flip(78 client.openAsk({79 ask,80 files: [81 {82 content: "export default {};\n",83 path: RepoPath.make("config/asks/iso-week.ask.ts"),84 },85 ],86 project,87 })88 ),89 Effect.flip(client.proposeAsk({ project, want: "Parse ISO weeks." })),90 Effect.flip(91 client.flagAsk({ ask, project, reason: "The want names a file." })92 ),93 Effect.flip(94 client.decide({95 choice: "accept",96 decision: DecisionId.make("dec-000001"),97 project,98 })99 ),100 Effect.flip(client.claim({ ask, project })),101 Effect.flip(client.release({ ask, project })),102 Effect.flip(103 client.submitAnswer({ ask, base, head, project, requestId })104 ),105 Effect.flip(client.finish({ ask, base, head, project, requestId })),106 Effect.flip(107 client.land({ base, head, message: "Tidy", project, requestId })108 ),109 Effect.flip(client.fork({ project })),110 Effect.flip(111 client.vouch({112 handle: Handle.make("dave"),113 project,114 verdict: "vouch",115 })116 ),117 Effect.flip(118 client.setEnv({119 key: EnvKey.make("PAYMENTS_KEY"),120 project,121 value: Redacted.make("not-a-real-value-0123456789abcdef"),122 })123 ),124 ]);125126 expect(refusals).toStrictEqual(refusals.map(() => unknown));127 expect(refusals).toHaveLength(20);128 })129 );130131 it.effect("decides nothing for a caller who names no project", () =>132 Effect.gen(function* () {133 const client = yield* asAlice;134135 expect(yield* Effect.flip(client.today({}))).toStrictEqual(136 new NotDecider({})137 );138 })139 );140141 it.effect("can't make a project yet", () =>142 Effect.gen(function* () {143 const client = yield* asAlice;144145 expect(yield* Effect.flip(client.initProject({ project }))).toStrictEqual(146 new ImportFailed({ reason: "no platform behind this surface yet" })147 );148 })149 );150151 it.effect("streams nothing to a watcher", () =>152 Effect.gen(function* () {153 const client = yield* asAlice;154155 expect(yield* Stream.runCollect(client.watch({ project }))).toStrictEqual(156 []157 );158 })159 );160});
modified:docs/reference/cli.md+454 added-3 removed
2 unmodified lines
3# CLI45Each command below is a contract projected onto the `myr` CLI: the payload's fields become flags, or positional arguments where the contract names them. Every command also takes `--json`, which prints the encoded result, or the refusal, as JSON. [commands.json](commands.json) holds the same catalog as data.67## `myr projects`89List every project on the platform, with its posture and how many asks it has open.1011```sh12myr projects13```1415- Contract: `listProjects`16- Reads only: yes17- Idempotent: yes18- Destructive: no19- Needs approval: no20- Surfaces: rpc, mcp, cli, web2122It takes no arguments.2324## `myr front`2526List the open asks across every project, each saying whether the caller may take it; optionally of one kind, or held for newcomers or people.2728```sh29myr front [--kind <kind>] [--reserved <reserved>]30```3132- Contract: `frontPage`33- Reads only: yes34- Idempotent: yes35- Destructive: no36- Needs approval: no37- Surfaces: rpc, mcp, cli, web3839| Argument | Takes | Required |40| --- | --- | --- |41| `--kind` | text | no |42| `--reserved` | "newcomers" \| "people" | no |4344## `myr asks`4546List a project's open asks.47
11 unmodified lines
59| Argument | Takes | Required |60| --- | --- | --- |61| `--project` | text | yes |6263## `myr ask`6465Show one ask in full, with its brief in Markdown for an answerer to read first.6667```sh68myr ask <ask> --project <project>69```7071- Contract: `showAsk`72- Reads only: yes73- Idempotent: yes74- Destructive: no75- Needs approval: no76- Surfaces: rpc, mcp, cli, web7778| Argument | Takes | Required |79| --- | --- | --- |80| `<ask>` | text | yes |81| `--project` | text | yes |8283## `myr status`8485Show the caller's claims and answers, in one project or in every one.8687```sh88myr status [--project <project>]89```9091- Contract: `status`92- Reads only: yes93- Idempotent: yes94- Destructive: no95- Needs approval: no96- Surfaces: rpc, mcp, cli, web9798| Argument | Takes | Required |99| --- | --- | --- |100| `--project` | text | no |101102## `myr verdict`103104Show the verdict on an answer to an ask, for its latest head or the one named; held-back checks show one bit per area.105106```sh107myr verdict --ask <ask> [--head <head>] --project <project>108```109110- Contract: `verdict`111- Reads only: yes112- Idempotent: yes113- Destructive: no114- Needs approval: no115- Surfaces: rpc, mcp, cli, web116117| Argument | Takes | Required |118| --- | --- | --- |119| `--ask` | text | yes |120| `--head` | text | no |121| `--project` | text | yes |122123## `myr landing`124125Show one landing on a project's main: the ask it answered, the people it credits and its verdict.126127```sh128myr landing --project <project> --sha <sha>129```130131- Contract: `landing`132- Reads only: yes133- Idempotent: yes134- Destructive: no135- Needs approval: no136- Surfaces: rpc, mcp, cli, web137138| Argument | Takes | Required |139| --- | --- | --- |140| `--project` | text | yes |141| `--sha` | text | yes |142143## `myr credits`144145Count a person's credits by project, area and role; never a score.146147```sh148myr credits --handle <handle>149```150151- Contract: `credits`152- Reads only: yes153- Idempotent: yes154- Destructive: no155- Needs approval: no156- Surfaces: rpc, mcp, cli, web157158| Argument | Takes | Required |159| --- | --- | --- |160| `--handle` | text | yes |161162## `myr today`163164Show the caller's Today: the decisions to take, held to their budget, each with its evidence and a safe default.165166```sh167myr today [--project <project>]168```169170- Contract: `today`171- Reads only: yes172- Idempotent: yes173- Destructive: no174- Needs approval: no175- Surfaces: rpc, mcp, cli, web176177| Argument | Takes | Required |178| --- | --- | --- |179| `--project` | text | no |180181## `myr ledger`182183Show a project's ledger: its layers, counts, commitments, releases and posture changes.184185```sh186myr ledger --project <project>187```188189- Contract: `ledger`190- Reads only: yes191- Idempotent: yes192- Destructive: no193- Needs approval: no194- Surfaces: rpc, mcp, cli, web195196| Argument | Takes | Required |197| --- | --- | --- |198| `--project` | text | yes |199200## `myr env shape`201202Show a project's env shape: the public schema of its environment variables, and who set each write-only value; never a value.203204```sh205myr env shape --project <project>206```207208- Contract: `envShape`209- Reads only: yes210- Idempotent: yes211- Destructive: no212- Needs approval: no213- Surfaces: rpc, mcp, cli, web214215| Argument | Takes | Required |216| --- | --- | --- |217| `--project` | text | yes |218219## `myr init`220221Make a project, empty or imported from a public git repo, with the caller as its decider.222223```sh224myr init [--import <import>] --project <project>225```226227- Contract: `initProject`228- Reads only: no229- Idempotent: no230- Destructive: no231- Needs approval: yes232- Surfaces: rpc, mcp, cli233234| Argument | Takes | Required |235| --- | --- | --- |236| `--import` | JSON | no |237| `--project` | text | yes |238239## `myr ask open`240241Open an ask by landing its file, once its check fails on main by an assertion, twice in the same way.242243```sh244myr ask open --ask <ask> --files <files> --project <project>245```246247- Contract: `openAsk`248- Reads only: no249- Idempotent: no250- Destructive: no251- Needs approval: yes252- Surfaces: rpc, mcp, cli253254| Argument | Takes | Required |255| --- | --- | --- |256| `--ask` | text | yes |257| `--files` | JSON | yes |258| `--project` | text | yes |259260## `myr propose`261262Propose an ask, optionally with a sealed answer; the proposal expires unless a decider accepts it.263264```sh265myr propose [--files <files>] --project <project> [--sealed <sealed>] [--territory <territory>] --want <want>266```267268- Contract: `proposeAsk`269- Reads only: no270- Idempotent: no271- Destructive: no272- Needs approval: no273- Surfaces: rpc, mcp, cli, web274275| Argument | Takes | Required |276| --- | --- | --- |277| `--files` | JSON | no |278| `--project` | text | yes |279| `--sealed` | JSON | no |280| `--territory` | text | no |281| `--want` | text | yes |282283## `myr ask flag`284285Flag an open ask to its deciders with a reason, as a proposal that expires unless a decider accepts it.286287```sh288myr ask flag --ask <ask> --project <project> --reason <reason>289```290291- Contract: `flagAsk`292- Reads only: no293- Idempotent: no294- Destructive: no295- Needs approval: no296- Surfaces: rpc, mcp, cli297298| Argument | Takes | Required |299| --- | --- | --- |300| `--ask` | text | yes |301| `--project` | text | yes |302| `--reason` | text | yes |303304## `myr decide`305306Take one decision from Today: accept, decline, adopt or revert.307308```sh309myr decide --choice <choice> --decision <decision> [--note <note>] --project <project>310```311312- Contract: `decide`313- Reads only: no314- Idempotent: no315- Destructive: no316- Needs approval: yes317- Surfaces: rpc, mcp, cli, web318319| Argument | Takes | Required |320| --- | --- | --- |321| `--choice` | "accept" \| "decline" \| "adopt" \| "revert" | yes |322| `--decision` | text | yes |323| `--note` | text | no |324| `--project` | text | yes |325326## `myr claim`327328Claim an ask: an exclusive, expiring right to answer it, with a fork to push to; claiming it again returns the same claim.329330```sh331myr claim <ask> --project <project>332```333334- Contract: `claim`335- Reads only: no336- Idempotent: yes337- Destructive: no338- Needs approval: no339- Surfaces: rpc, mcp, cli340341| Argument | Takes | Required |342| --- | --- | --- |343| `<ask>` | text | yes |344| `--project` | text | yes |345346## `myr release`347348Release the caller's claim on an ask, so anyone may claim it again.349350```sh351myr release --ask <ask> --project <project>352```353354- Contract: `release`355- Reads only: no356- Idempotent: yes357- Destructive: no358- Needs approval: no359- Surfaces: rpc, mcp, cli360361| Argument | Takes | Required |362| --- | --- | --- |363| `--ask` | text | yes |364| `--project` | text | yes |365366## `myr submit`36728Offer the commit `head`, built on `base`, as an answer to an ask; once it lands, `main` is the new tip.368Offer the commit `head`, built on `base`, as an answer to a claimed ask; the receipt says it is being checked, and it lands if it passes.369370```sh31myr submit --ask <ask> --base <base> --head <head>371myr submit --ask <ask> --base <base> --head <head> --project <project> --requestId <requestId>372```373374- Contract: `submitAnswer`375- Reads only: no376- Idempotent: yes377- Destructive: no378- Needs approval: no39- Surfaces: rpc, mcp, cli, web379- Surfaces: rpc, mcp, cli380381| Argument | Takes | Required |382| --- | --- | --- |383| `--ask` | text | yes |384| `--base` | text | yes |385| `--head` | text | yes |386| `--project` | text | yes |387| `--requestId` | text | yes |388389## `myr finish`390391Finish a passing answer with a decider's own commits on top; they are checked again, and credited with Finished-by when it lands.392393```sh394myr finish --ask <ask> --base <base> --head <head> --project <project> --requestId <requestId>395```396397- Contract: `finish`398- Reads only: no399- Idempotent: yes400- Destructive: no401- Needs approval: yes402- Surfaces: rpc, mcp, cli403404| Argument | Takes | Required |405| --- | --- | --- |406| `--ask` | text | yes |407| `--base` | text | yes |408| `--head` | text | yes |409| `--project` | text | yes |410| `--requestId` | text | yes |411412## `myr land`413414Land a decider's own change from their working fork, after the same checks an answer passes.415416```sh417myr land --base <base> --head <head> --message <message> --project <project> --requestId <requestId>418```419420- Contract: `land`421- Reads only: no422- Idempotent: yes423- Destructive: no424- Needs approval: yes425- Surfaces: rpc, mcp, cli426427| Argument | Takes | Required |428| --- | --- | --- |429| `--base` | text | yes |430| `--head` | text | yes |431| `--message` | text | yes |432| `--project` | text | yes |433| `--requestId` | text | yes |434435## `myr fork`436437Make the caller's working fork of a project, or return it if it exists.438439```sh440myr fork --project <project>441```442443- Contract: `fork`444- Reads only: no445- Idempotent: yes446- Destructive: no447- Needs approval: no448- Surfaces: rpc, mcp, cli449450| Argument | Takes | Required |451| --- | --- | --- |452| `--project` | text | yes |453454## `myr vouch`455456Vouch for a person, or denounce them, by landing a line in the project's vouch file.457458```sh459myr vouch --handle <handle> [--note <note>] --project <project> --verdict <verdict>460```461462- Contract: `vouch`463- Reads only: no464- Idempotent: no465- Destructive: no466- Needs approval: yes467- Surfaces: rpc, mcp, cli468469| Argument | Takes | Required |470| --- | --- | --- |471| `--handle` | text | yes |472| `--note` | text | no |473| `--project` | text | yes |474| `--verdict` | "vouch" \| "denounce" | yes |475476## `myr env set`477478Set the write-only value of a sensitive env item; nobody can read it back.479480```sh481myr env set [--acknowledgeShort] --key <key> --project <project> --value <value>482```483484- Contract: `setEnv`485- Reads only: no486- Idempotent: yes487- Destructive: no488- Needs approval: yes489- Surfaces: rpc, cli490491| Argument | Takes | Required |492| --- | --- | --- |493| `--acknowledgeShort` | nothing (a switch) | no |494| `--key` | text | yes |495| `--project` | text | yes |496| `--value` | text | yes |
modified:docs/reference/commands.json+1045 added-4 removed
1{2 "commands": [3 {4 "contract": "listProjects",5 "description": "List every project on the platform, with its posture and how many asks it has open.",6 "destructive": false,7 "idempotent": true,8 "name": "projects",9 "needsApproval": false,10 "path": [11 "projects"12 ],13 "payloadSchema": {14 "additionalProperties": false,15 "type": "object"16 },17 "positional": [],18 "readOnly": true,19 "source": "projected",20 "surfaces": [21 "rpc",22 "mcp",23 "cli",24 "web"25 ]26 },27 {28 "contract": "frontPage",29 "description": "List the open asks across every project, each saying whether the caller may take it; optionally of one kind, or held for newcomers or people.",30 "destructive": false,31 "idempotent": true,32 "name": "front",33 "needsApproval": false,34 "path": [35 "front"36 ],37 "payloadSchema": {38 "additionalProperties": true,39 "properties": {40 "kind": {41 "pattern": "^[a-z][a-zA-Z0-9-]*$",42 "type": "string"43 },44 "reserved": {45 "enum": [46 "newcomers",47 "people"48 ],49 "type": "string"50 }51 },52 "type": "object"53 },54 "positional": [],55 "readOnly": true,56 "source": "projected",57 "surfaces": [58 "rpc",59 "mcp",60 "cli",61 "web"62 ]63 },64 {65 "contract": "listAsks",66 "description": "List a project's open asks.",67 "destructive": false,68 "idempotent": true,
25 unmodified lines
94 "web"95 ]96 },97 {98 "contract": "showAsk",99 "description": "Show one ask in full, with its brief in Markdown for an answerer to read first.",100 "destructive": false,101 "idempotent": true,102 "name": "ask",103 "needsApproval": false,104 "path": [105 "ask"106 ],107 "payloadSchema": {108 "additionalProperties": true,109 "properties": {110 "ask": {111 "allOf": [112 {113 "not": {114 "enum": [115 "me",116 "layer"117 ]118 }119 }120 ],121 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",122 "type": "string"123 },124 "project": {125 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",126 "type": "string"127 }128 },129 "required": [130 "ask",131 "project"132 ],133 "type": "object"134 },135 "positional": [136 "ask"137 ],138 "readOnly": true,139 "source": "projected",140 "surfaces": [141 "rpc",142 "mcp",143 "cli",144 "web"145 ]146 },147 {148 "contract": "status",149 "description": "Show the caller's claims and answers, in one project or in every one.",150 "destructive": false,151 "idempotent": true,152 "name": "status",153 "needsApproval": false,154 "path": [155 "status"156 ],157 "payloadSchema": {158 "additionalProperties": true,159 "properties": {160 "project": {161 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",162 "type": "string"163 }164 },165 "type": "object"166 },167 "positional": [],168 "readOnly": true,169 "source": "projected",170 "surfaces": [171 "rpc",172 "mcp",173 "cli",174 "web"175 ]176 },177 {178 "contract": "verdict",179 "description": "Show the verdict on an answer to an ask, for its latest head or the one named; held-back checks show one bit per area.",180 "destructive": false,181 "idempotent": true,182 "name": "verdict",183 "needsApproval": false,184 "path": [185 "verdict"186 ],187 "payloadSchema": {188 "additionalProperties": true,189 "properties": {190 "ask": {191 "allOf": [192 {193 "not": {194 "enum": [195 "me",196 "layer"197 ]198 }199 }200 ],201 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",202 "type": "string"203 },204 "head": {205 "pattern": "^[0-9a-f]{40}$",206 "type": "string"207 },208 "project": {209 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",210 "type": "string"211 }212 },213 "required": [214 "ask",215 "project"216 ],217 "type": "object"218 },219 "positional": [],220 "readOnly": true,221 "source": "projected",222 "surfaces": [223 "rpc",224 "mcp",225 "cli",226 "web"227 ]228 },229 {230 "contract": "landing",231 "description": "Show one landing on a project's main: the ask it answered, the people it credits and its verdict.",232 "destructive": false,233 "idempotent": true,234 "name": "landing",235 "needsApproval": false,236 "path": [237 "landing"238 ],239 "payloadSchema": {240 "additionalProperties": true,241 "properties": {242 "project": {243 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",244 "type": "string"245 },246 "sha": {247 "pattern": "^[0-9a-f]{40}$",248 "type": "string"249 }250 },251 "required": [252 "project",253 "sha"254 ],255 "type": "object"256 },257 "positional": [],258 "readOnly": true,259 "source": "projected",260 "surfaces": [261 "rpc",262 "mcp",263 "cli",264 "web"265 ]266 },267 {268 "contract": "credits",269 "description": "Count a person's credits by project, area and role; never a score.",270 "destructive": false,271 "idempotent": true,272 "name": "credits",273 "needsApproval": false,274 "path": [275 "credits"276 ],277 "payloadSchema": {278 "additionalProperties": true,279 "properties": {280 "handle": {281 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",282 "type": "string"283 }284 },285 "required": [286 "handle"287 ],288 "type": "object"289 },290 "positional": [],291 "readOnly": true,292 "source": "projected",293 "surfaces": [294 "rpc",295 "mcp",296 "cli",297 "web"298 ]299 },300 {301 "contract": "today",302 "description": "Show the caller's Today: the decisions to take, held to their budget, each with its evidence and a safe default.",303 "destructive": false,304 "idempotent": true,305 "name": "today",306 "needsApproval": false,307 "path": [308 "today"309 ],310 "payloadSchema": {311 "additionalProperties": true,312 "properties": {313 "project": {314 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",315 "type": "string"316 }317 },318 "type": "object"319 },320 "positional": [],321 "readOnly": true,322 "source": "projected",323 "surfaces": [324 "rpc",325 "mcp",326 "cli",327 "web"328 ]329 },330 {331 "contract": "ledger",332 "description": "Show a project's ledger: its layers, counts, commitments, releases and posture changes.",333 "destructive": false,334 "idempotent": true,335 "name": "ledger",336 "needsApproval": false,337 "path": [338 "ledger"339 ],340 "payloadSchema": {341 "additionalProperties": true,342 "properties": {343 "project": {344 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",345 "type": "string"346 }347 },348 "required": [349 "project"350 ],351 "type": "object"352 },353 "positional": [],354 "readOnly": true,355 "source": "projected",356 "surfaces": [357 "rpc",358 "mcp",359 "cli",360 "web"361 ]362 },363 {364 "contract": "envShape",365 "description": "Show a project's env shape: the public schema of its environment variables, and who set each write-only value; never a value.",366 "destructive": false,367 "idempotent": true,368 "name": "env shape",369 "needsApproval": false,370 "path": [371 "env",372 "shape"373 ],374 "payloadSchema": {375 "additionalProperties": true,376 "properties": {377 "project": {378 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",379 "type": "string"380 }381 },382 "required": [383 "project"384 ],385 "type": "object"386 },387 "positional": [],388 "readOnly": true,389 "source": "projected",390 "surfaces": [391 "rpc",392 "mcp",393 "cli",394 "web"395 ]396 },397 {398 "contract": "initProject",399 "description": "Make a project, empty or imported from a public git repo, with the caller as its decider.",400 "destructive": false,401 "idempotent": false,402 "name": "init",403 "needsApproval": true,404 "path": [405 "init"406 ],407 "payloadSchema": {408 "additionalProperties": true,409 "properties": {410 "import": {411 "additionalProperties": true,412 "properties": {413 "branch": {414 "minLength": 1,415 "type": "string"416 },417 "url": {418 "pattern": "^https:\\/\\/\\S+$",419 "type": "string"420 }421 },422 "required": [423 "url"424 ],425 "type": "object"426 },427 "project": {428 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",429 "type": "string"430 }431 },432 "required": [433 "project"434 ],435 "type": "object"436 },437 "positional": [],438 "readOnly": false,439 "source": "projected",440 "surfaces": [441 "rpc",442 "mcp",443 "cli"444 ]445 },446 {447 "contract": "openAsk",448 "description": "Open an ask by landing its file, once its check fails on main by an assertion, twice in the same way.",449 "destructive": false,450 "idempotent": false,451 "name": "ask open",452 "needsApproval": true,453 "path": [454 "ask",455 "open"456 ],457 "payloadSchema": {458 "additionalProperties": true,459 "properties": {460 "ask": {461 "allOf": [462 {463 "not": {464 "enum": [465 "me",466 "layer"467 ]468 }469 }470 ],471 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",472 "type": "string"473 },474 "files": {475 "items": {476 "additionalProperties": true,477 "properties": {478 "content": {479 "type": "string"480 },481 "path": {482 "minLength": 1,483 "type": "string"484 }485 },486 "required": [487 "content",488 "path"489 ],490 "type": "object"491 },492 "minItems": 1,493 "prefixItems": [494 {495 "additionalProperties": true,496 "properties": {497 "content": {498 "type": "string"499 },500 "path": {501 "minLength": 1,502 "type": "string"503 }504 },505 "required": [506 "content",507 "path"508 ],509 "type": "object"510 }511 ],512 "type": "array"513 },514 "project": {515 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",516 "type": "string"517 }518 },519 "required": [520 "ask",521 "files",522 "project"523 ],524 "type": "object"525 },526 "positional": [],527 "readOnly": false,528 "source": "projected",529 "surfaces": [530 "rpc",531 "mcp",532 "cli"533 ]534 },535 {536 "contract": "proposeAsk",537 "description": "Propose an ask, optionally with a sealed answer; the proposal expires unless a decider accepts it.",538 "destructive": false,539 "idempotent": false,540 "name": "propose",541 "needsApproval": false,542 "path": [543 "propose"544 ],545 "payloadSchema": {546 "additionalProperties": true,547 "properties": {548 "files": {549 "items": {550 "additionalProperties": true,551 "properties": {552 "content": {553 "type": "string"554 },555 "path": {556 "minLength": 1,557 "type": "string"558 }559 },560 "required": [561 "content",562 "path"563 ],564 "type": "object"565 },566 "minItems": 1,567 "prefixItems": [568 {569 "additionalProperties": true,570 "properties": {571 "content": {572 "type": "string"573 },574 "path": {575 "minLength": 1,576 "type": "string"577 }578 },579 "required": [580 "content",581 "path"582 ],583 "type": "object"584 }585 ],586 "type": "array"587 },588 "project": {589 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",590 "type": "string"591 },592 "sealed": {593 "additionalProperties": true,594 "properties": {595 "head": {596 "pattern": "^[0-9a-f]{40}$",597 "type": "string"598 }599 },600 "required": [601 "head"602 ],603 "type": "object"604 },605 "territory": {606 "minLength": 1,607 "type": "string"608 },609 "want": {610 "minLength": 1,611 "type": "string"612 }613 },614 "required": [615 "project",616 "want"617 ],618 "type": "object"619 },620 "positional": [],621 "readOnly": false,622 "source": "projected",623 "surfaces": [624 "rpc",625 "mcp",626 "cli",627 "web"628 ]629 },630 {631 "contract": "flagAsk",632 "description": "Flag an open ask to its deciders with a reason, as a proposal that expires unless a decider accepts it.",633 "destructive": false,634 "idempotent": false,635 "name": "ask flag",636 "needsApproval": false,637 "path": [638 "ask",639 "flag"640 ],641 "payloadSchema": {642 "additionalProperties": true,643 "properties": {644 "ask": {645 "allOf": [646 {647 "not": {648 "enum": [649 "me",650 "layer"651 ]652 }653 }654 ],655 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",656 "type": "string"657 },658 "project": {659 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",660 "type": "string"661 },662 "reason": {663 "minLength": 1,664 "type": "string"665 }666 },667 "required": [668 "ask",669 "project",670 "reason"671 ],672 "type": "object"673 },674 "positional": [],675 "readOnly": false,676 "source": "projected",677 "surfaces": [678 "rpc",679 "mcp",680 "cli"681 ]682 },683 {684 "contract": "decide",685 "description": "Take one decision from Today: accept, decline, adopt or revert.",686 "destructive": false,687 "idempotent": false,688 "name": "decide",689 "needsApproval": true,690 "path": [691 "decide"692 ],693 "payloadSchema": {694 "additionalProperties": true,695 "properties": {696 "choice": {697 "enum": [698 "accept",699 "decline",700 "adopt",701 "revert"702 ],703 "type": "string"704 },705 "decision": {706 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",707 "type": "string"708 },709 "note": {710 "type": "string"711 },712 "project": {713 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",714 "type": "string"715 }716 },717 "required": [718 "choice",719 "decision",720 "project"721 ],722 "type": "object"723 },724 "positional": [],725 "readOnly": false,726 "source": "projected",727 "surfaces": [728 "rpc",729 "mcp",730 "cli",731 "web"732 ]733 },734 {735 "contract": "claim",736 "description": "Claim an ask: an exclusive, expiring right to answer it, with a fork to push to; claiming it again returns the same claim.",737 "destructive": false,738 "idempotent": true,739 "name": "claim",740 "needsApproval": false,741 "path": [742 "claim"743 ],744 "payloadSchema": {745 "additionalProperties": true,746 "properties": {747 "ask": {748 "allOf": [749 {750 "not": {751 "enum": [752 "me",753 "layer"754 ]755 }756 }757 ],758 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",759 "type": "string"760 },761 "project": {762 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",763 "type": "string"764 }765 },766 "required": [767 "ask",768 "project"769 ],770 "type": "object"771 },772 "positional": [773 "ask"774 ],775 "readOnly": false,776 "source": "projected",777 "surfaces": [778 "rpc",779 "mcp",780 "cli"781 ]782 },783 {784 "contract": "release",785 "description": "Release the caller's claim on an ask, so anyone may claim it again.",786 "destructive": false,787 "idempotent": true,788 "name": "release",789 "needsApproval": false,790 "path": [791 "release"792 ],793 "payloadSchema": {794 "additionalProperties": true,795 "properties": {796 "ask": {797 "allOf": [798 {799 "not": {800 "enum": [801 "me",802 "layer"803 ]804 }805 }806 ],807 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",808 "type": "string"809 },810 "project": {811 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",812 "type": "string"813 }814 },815 "required": [816 "ask",817 "project"818 ],819 "type": "object"820 },821 "positional": [],822 "readOnly": false,823 "source": "projected",824 "surfaces": [825 "rpc",826 "mcp",827 "cli"828 ]829 },830 {831 "contract": "submitAnswer",38 "description": "Offer the commit `head`, built on `base`, as an answer to an ask; once it lands, `main` is the new tip.",832 "description": "Offer the commit `head`, built on `base`, as an answer to a claimed ask; the receipt says it is being checked, and it lands if it passes.",833 "destructive": false,834 "idempotent": true,835 "name": "submit",836 "needsApproval": false,
23 unmodified lines
860 },861 "head": {862 "pattern": "^[0-9a-f]{40}$",863 "type": "string"864 },865 "project": {866 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",867 "type": "string"868 },869 "requestId": {870 "pattern": "^[A-Za-z0-9_-]{8,64}$",871 "type": "string"872 }873 },874 "required": [875 "ask",876 "base",75 "head"877 "head",878 "project",879 "requestId"880 ],881 "type": "object"882 },883 "positional": [],
1 unmodified line
885 "source": "projected",886 "surfaces": [887 "rpc",888 "mcp",85 "cli",86 "web"889 "cli"890 ]891 },892 {893 "contract": "finish",894 "description": "Finish a passing answer with a decider's own commits on top; they are checked again, and credited with Finished-by when it lands.",895 "destructive": false,896 "idempotent": true,897 "name": "finish",898 "needsApproval": true,899 "path": [900 "finish"901 ],902 "payloadSchema": {903 "additionalProperties": true,904 "properties": {905 "ask": {906 "allOf": [907 {908 "not": {909 "enum": [910 "me",911 "layer"912 ]913 }914 }915 ],916 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",917 "type": "string"918 },919 "base": {920 "pattern": "^[0-9a-f]{40}$",921 "type": "string"922 },923 "head": {924 "pattern": "^[0-9a-f]{40}$",925 "type": "string"926 },927 "project": {928 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",929 "type": "string"930 },931 "requestId": {932 "pattern": "^[A-Za-z0-9_-]{8,64}$",933 "type": "string"934 }935 },936 "required": [937 "ask",938 "base",939 "head",940 "project",941 "requestId"942 ],943 "type": "object"944 },945 "positional": [],946 "readOnly": false,947 "source": "projected",948 "surfaces": [949 "rpc",950 "mcp",951 "cli"952 ]953 },954 {955 "contract": "land",956 "description": "Land a decider's own change from their working fork, after the same checks an answer passes.",957 "destructive": false,958 "idempotent": true,959 "name": "land",960 "needsApproval": true,961 "path": [962 "land"963 ],964 "payloadSchema": {965 "additionalProperties": true,966 "properties": {967 "base": {968 "pattern": "^[0-9a-f]{40}$",969 "type": "string"970 },971 "head": {972 "pattern": "^[0-9a-f]{40}$",973 "type": "string"974 },975 "message": {976 "minLength": 1,977 "type": "string"978 },979 "project": {980 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",981 "type": "string"982 },983 "requestId": {984 "pattern": "^[A-Za-z0-9_-]{8,64}$",985 "type": "string"986 }987 },988 "required": [989 "base",990 "head",991 "message",992 "project",993 "requestId"994 ],995 "type": "object"996 },997 "positional": [],998 "readOnly": false,999 "source": "projected",1000 "surfaces": [1001 "rpc",1002 "mcp",1003 "cli"1004 ]1005 },1006 {1007 "contract": "fork",1008 "description": "Make the caller's working fork of a project, or return it if it exists.",1009 "destructive": false,1010 "idempotent": true,1011 "name": "fork",1012 "needsApproval": false,1013 "path": [1014 "fork"1015 ],1016 "payloadSchema": {1017 "additionalProperties": true,1018 "properties": {1019 "project": {1020 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1021 "type": "string"1022 }1023 },1024 "required": [1025 "project"1026 ],1027 "type": "object"1028 },1029 "positional": [],1030 "readOnly": false,1031 "source": "projected",1032 "surfaces": [1033 "rpc",1034 "mcp",1035 "cli"1036 ]1037 },1038 {1039 "contract": "vouch",1040 "description": "Vouch for a person, or denounce them, by landing a line in the project's vouch file.",1041 "destructive": false,1042 "idempotent": false,1043 "name": "vouch",1044 "needsApproval": true,1045 "path": [1046 "vouch"1047 ],1048 "payloadSchema": {1049 "additionalProperties": true,1050 "properties": {1051 "handle": {1052 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",1053 "type": "string"1054 },1055 "note": {1056 "type": "string"1057 },1058 "project": {1059 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1060 "type": "string"1061 },1062 "verdict": {1063 "enum": [1064 "vouch",1065 "denounce"1066 ],1067 "type": "string"1068 }1069 },1070 "required": [1071 "handle",1072 "project",1073 "verdict"1074 ],1075 "type": "object"1076 },1077 "positional": [],1078 "readOnly": false,1079 "source": "projected",1080 "surfaces": [1081 "rpc",1082 "mcp",1083 "cli"1084 ]1085 },1086 {1087 "contract": "setEnv",1088 "description": "Set the write-only value of a sensitive env item; nobody can read it back.",1089 "destructive": false,1090 "idempotent": true,1091 "name": "env set",1092 "needsApproval": true,1093 "path": [1094 "env",1095 "set"1096 ],1097 "payloadSchema": {1098 "additionalProperties": true,1099 "properties": {1100 "acknowledgeShort": {1101 "type": "boolean"1102 },1103 "key": {1104 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",1105 "type": "string"1106 },1107 "project": {1108 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1109 "type": "string"1110 },1111 "value": {1112 "type": "string"1113 }1114 },1115 "required": [1116 "key",1117 "project",1118 "value"1119 ],1120 "type": "object"1121 },1122 "positional": [],1123 "readOnly": false,1124 "source": "projected",1125 "surfaces": [1126 "rpc",1127 "cli"1128 ]1129 }1130 ],1131 "version": 11132}
modified:docs/reference/mcp-tools.md+22843 added-5 removed
1<!-- Generated by `bun run gen` from packages/protocol/src/contracts.ts through `toToolkit` in packages/protocol/src/mcp.ts. Edit the contracts, not this file: `bun run gen:check` fails when they differ. -->23# MCP tools45Each contract is one MCP tool, named by its tag, as `tools/list` shows it over `/mcp` and over stdio from `myr mcp`. A tool's input is the contract's payload and its output is the contract's success. A refusal comes back as the tool's error result: the refusal as JSON, `_tag` and all (see [refusals.md](refusals.md)).5Each contract served on MCP is one tool, named by its tag, as `tools/list` shows it over `/mcp` and over stdio from `myr mcp`. A stream has no tool, and no tool takes a write-only value, which must never pass through an agent's transcript. A tool's input is the contract's payload and its output is the contract's success. A refusal comes back as the tool's error result: the refusal as JSON, `_tag` and all (see [refusals.md](refusals.md)).67The hints come from each contract's own annotations. No tool reaches anything outside the platform, so `openWorldHint` is always false.89## listProjects1011List every project on the platform, with its posture and how many asks it has open.1213| Hint | Value |14| --- | --- |15| `destructiveHint` | `false` |16| `idempotentHint` | `true` |17| `openWorldHint` | `false` |18| `readOnlyHint` | `true` |1920### Input2122```json23{24 "additionalProperties": false,25 "type": "object"26}27```2829### Output3031```json32{33 "additionalProperties": true,34 "properties": {35 "projects": {36 "items": {37 "additionalProperties": true,38 "properties": {39 "landedAt": {40 "type": "string"41 },42 "openAsks": {43 "type": "integer"44 },45 "posture": {46 "enum": [47 "open",48 "openWithSealedEvidence",49 "openOnSchedule",50 "openCore",51 "sourceAvailable"52 ],53 "type": "string"54 },55 "project": {56 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",57 "type": "string"58 }59 },60 "required": [61 "openAsks",62 "posture",63 "project"64 ],65 "type": "object"66 },67 "type": "array"68 }69 },70 "required": [71 "projects"72 ],73 "type": "object"74}75```7677## frontPage7879List the open asks across every project, each saying whether the caller may take it; optionally of one kind, or held for newcomers or people.8081| Hint | Value |82| --- | --- |83| `destructiveHint` | `false` |84| `idempotentHint` | `true` |85| `openWorldHint` | `false` |86| `readOnlyHint` | `true` |8788### Input8990```json91{92 "additionalProperties": true,93 "properties": {94 "kind": {95 "pattern": "^[a-z][a-zA-Z0-9-]*$",96 "type": "string"97 },98 "reserved": {99 "enum": [100 "newcomers",101 "people"102 ],103 "type": "string"104 }105 },106 "type": "object"107}108```109110### Output111112```json113{114 "additionalProperties": true,115 "properties": {116 "entries": {117 "items": {118 "additionalProperties": true,119 "properties": {120 "ask": {121 "additionalProperties": true,122 "properties": {123 "ask": {124 "allOf": [125 {126 "not": {127 "enum": [128 "me",129 "layer"130 ]131 }132 }133 ],134 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",135 "type": "string"136 },137 "blockedBy": {138 "items": {139 "allOf": [140 {141 "not": {142 "enum": [143 "me",144 "layer"145 ]146 }147 }148 ],149 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",150 "type": "string"151 },152 "type": "array"153 },154 "claimed": {155 "type": "boolean"156 },157 "kind": {158 "pattern": "^[a-z][a-zA-Z0-9-]*$",159 "type": "string"160 },161 "reserve": {162 "enum": [163 "newcomers",164 "people"165 ],166 "type": "string"167 },168 "territory": {169 "minLength": 1,170 "type": "string"171 },172 "want": {173 "minLength": 1,174 "type": "string"175 }176 },177 "required": [178 "ask",179 "blockedBy",180 "claimed",181 "kind",182 "territory",183 "want"184 ],185 "type": "object"186 },187 "posture": {188 "enum": [189 "open",190 "openWithSealedEvidence",191 "openOnSchedule",192 "openCore",193 "sourceAvailable"194 ],195 "type": "string"196 },197 "project": {198 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",199 "type": "string"200 },201 "takeable": {202 "type": "boolean"203 }204 },205 "required": [206 "ask",207 "posture",208 "project",209 "takeable"210 ],211 "type": "object"212 },213 "type": "array"214 }215 },216 "required": [217 "entries"218 ],219 "type": "object"220}221```222223## listAsks224225List a project's open asks.226
105 unmodified lines
332 "type": "object"333}334```335336## showAsk337338Show one ask in full, with its brief in Markdown for an answerer to read first.339340| Hint | Value |341| --- | --- |342| `destructiveHint` | `false` |343| `idempotentHint` | `true` |344| `openWorldHint` | `false` |345| `readOnlyHint` | `true` |346347### Input348349```json350{351 "additionalProperties": true,352 "properties": {353 "ask": {354 "allOf": [355 {356 "not": {357 "enum": [358 "me",359 "layer"360 ]361 }362 }363 ],364 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",365 "type": "string"366 },367 "project": {368 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",369 "type": "string"370 }371 },372 "required": [373 "ask",374 "project"375 ],376 "type": "object"377}378```379380### Output381382```json383{384 "additionalProperties": true,385 "properties": {386 "ask": {387 "additionalProperties": true,388 "properties": {389 "askedBy": {390 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",391 "type": "string"392 },393 "blockedBy": {394 "items": {395 "allOf": [396 {397 "not": {398 "enum": [399 "me",400 "layer"401 ]402 }403 }404 ],405 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",406 "type": "string"407 },408 "type": "array"409 },410 "brief": {411 "additionalProperties": true,412 "properties": {413 "context": {414 "items": {415 "minLength": 1,416 "type": "string"417 },418 "type": "array"419 },420 "current": {421 "minLength": 1,422 "type": "string"423 },424 "outOfScope": {425 "items": {426 "minLength": 1,427 "type": "string"428 },429 "minItems": 1,430 "prefixItems": [431 {432 "minLength": 1,433 "type": "string"434 }435 ],436 "type": "array"437 },438 "terms": {439 "items": {440 "minLength": 1,441 "type": "string"442 },443 "type": "array"444 },445 "want": {446 "minLength": 1,447 "type": "string"448 }449 },450 "required": [451 "want"452 ],453 "type": "object"454 },455 "check": {456 "anyOf": [457 {458 "additionalProperties": true,459 "properties": {460 "_tag": {461 "enum": [462 "LintToZero"463 ],464 "type": "string"465 },466 "command": {467 "minLength": 1,468 "type": "string"469 },470 "rule": {471 "minLength": 1,472 "type": "string"473 },474 "territory": {475 "minLength": 1,476 "type": "string"477 }478 },479 "required": [480 "_tag",481 "command",482 "rule"483 ],484 "type": "object"485 },486 {487 "additionalProperties": true,488 "properties": {489 "_tag": {490 "enum": [491 "Migrate"492 ],493 "type": "string"494 },495 "count": {496 "minLength": 1,497 "type": "string"498 },499 "from": {500 "minLength": 1,501 "type": "string"502 },503 "to": {504 "minLength": 1,505 "type": "string"506 }507 },508 "required": [509 "_tag",510 "count",511 "from"512 ],513 "type": "object"514 },515 {516 "additionalProperties": true,517 "properties": {518 "_tag": {519 "enum": [520 "Ratchet"521 ],522 "type": "string"523 },524 "ratchet": {525 "pattern": "^[a-z][a-zA-Z0-9-]*$",526 "type": "string"527 }528 },529 "required": [530 "_tag",531 "ratchet"532 ],533 "type": "object"534 },535 {536 "additionalProperties": true,537 "properties": {538 "_tag": {539 "enum": [540 "RedThenGreen"541 ],542 "type": "string"543 },544 "path": {545 "minLength": 1,546 "type": "string"547 }548 },549 "required": [550 "_tag",551 "path"552 ],553 "type": "object"554 },555 {556 "additionalProperties": true,557 "properties": {558 "_tag": {559 "enum": [560 "SymbolAbsent"561 ],562 "type": "string"563 },564 "count": {565 "minLength": 1,566 "type": "string"567 },568 "symbol": {569 "minLength": 1,570 "type": "string"571 }572 },573 "required": [574 "_tag",575 "count",576 "symbol"577 ],578 "type": "object"579 }580 ]581 },582 "file": {583 "minLength": 1,584 "type": "string"585 },586 "id": {587 "allOf": [588 {589 "not": {590 "enum": [591 "me",592 "layer"593 ]594 }595 }596 ],597 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",598 "type": "string"599 },600 "kind": {601 "pattern": "^[a-z][a-zA-Z0-9-]*$",602 "type": "string"603 },604 "mentor": {605 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",606 "type": "string"607 },608 "openedAt": {609 "type": "string"610 },611 "openedIn": {612 "pattern": "^[0-9a-f]{40}$",613 "type": "string"614 },615 "parent": {616 "allOf": [617 {618 "not": {619 "enum": [620 "me",621 "layer"622 ]623 }624 }625 ],626 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",627 "type": "string"628 },629 "project": {630 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",631 "type": "string"632 },633 "reserve": {634 "enum": [635 "newcomers",636 "people"637 ],638 "type": "string"639 },640 "state": {641 "enum": [642 "open",643 "claimed",644 "waitingOnParent",645 "closed"646 ],647 "type": "string"648 },649 "territory": {650 "additionalProperties": true,651 "properties": {652 "module": {653 "minLength": 1,654 "type": "string"655 },656 "paths": {657 "items": {658 "minLength": 1,659 "type": "string"660 },661 "minItems": 1,662 "prefixItems": [663 {664 "minLength": 1,665 "type": "string"666 }667 ],668 "type": "array"669 },670 "publicFiles": {671 "items": {672 "minLength": 1,673 "type": "string"674 },675 "type": "array"676 }677 },678 "required": [679 "module",680 "paths"681 ],682 "type": "object"683 }684 },685 "required": [686 "askedBy",687 "blockedBy",688 "brief",689 "check",690 "file",691 "id",692 "kind",693 "openedAt",694 "openedIn",695 "project",696 "state",697 "territory"698 ],699 "type": "object"700 },701 "brief": {702 "minLength": 1,703 "type": "string"704 }705 },706 "required": [707 "ask",708 "brief"709 ],710 "type": "object"711}712```713714## status715716Show the caller's claims and answers, in one project or in every one.717718| Hint | Value |719| --- | --- |720| `destructiveHint` | `false` |721| `idempotentHint` | `true` |722| `openWorldHint` | `false` |723| `readOnlyHint` | `true` |724725### Input726727```json728{729 "additionalProperties": true,730 "properties": {731 "project": {732 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",733 "type": "string"734 }735 },736 "type": "object"737}738```739740### Output741742```json743{744 "$defs": {745 "AskBlockedEncoded": {746 "additionalProperties": true,747 "properties": {748 "_tag": {749 "enum": [750 "AskBlocked"751 ],752 "type": "string"753 },754 "ask": {755 "allOf": [756 {757 "not": {758 "enum": [759 "me",760 "layer"761 ]762 }763 }764 ],765 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",766 "type": "string"767 },768 "at": {769 "additionalProperties": true,770 "properties": {771 "line": {772 "minimum": 1,773 "type": "integer"774 },775 "path": {776 "minLength": 1,777 "type": "string"778 }779 },780 "required": [781 "line",782 "path"783 ],784 "type": "object"785 },786 "blockedBy": {787 "items": {788 "allOf": [789 {790 "not": {791 "enum": [792 "me",793 "layer"794 ]795 }796 }797 ],798 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",799 "type": "string"800 },801 "minItems": 1,802 "prefixItems": [803 {804 "allOf": [805 {806 "not": {807 "enum": [808 "me",809 "layer"810 ]811 }812 }813 ],814 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",815 "type": "string"816 }817 ],818 "type": "array"819 },820 "next": {821 "minLength": 1,822 "type": "string"823 },824 "retryable": {825 "enum": [826 true827 ],828 "type": "boolean"829 }830 },831 "required": [832 "_tag",833 "next",834 "retryable",835 "ask",836 "blockedBy"837 ],838 "type": "object"839 },840 "AskFullEncoded": {841 "additionalProperties": true,842 "properties": {843 "_tag": {844 "enum": [845 "AskFull"846 ],847 "type": "string"848 },849 "ask": {850 "allOf": [851 {852 "not": {853 "enum": [854 "me",855 "layer"856 ]857 }858 }859 ],860 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",861 "type": "string"862 },863 "at": {864 "additionalProperties": true,865 "properties": {866 "line": {867 "minimum": 1,868 "type": "integer"869 },870 "path": {871 "minLength": 1,872 "type": "string"873 }874 },875 "required": [876 "line",877 "path"878 ],879 "type": "object"880 },881 "next": {882 "minLength": 1,883 "type": "string"884 },885 "retryable": {886 "enum": [887 true888 ],889 "type": "boolean"890 }891 },892 "required": [893 "_tag",894 "next",895 "retryable",896 "ask"897 ],898 "type": "object"899 },900 "AttemptsExhaustedEncoded": {901 "additionalProperties": true,902 "properties": {903 "_tag": {904 "enum": [905 "AttemptsExhausted"906 ],907 "type": "string"908 },909 "area": {910 "minLength": 1,911 "type": "string"912 },913 "at": {914 "additionalProperties": true,915 "properties": {916 "line": {917 "minimum": 1,918 "type": "integer"919 },920 "path": {921 "minLength": 1,922 "type": "string"923 }924 },925 "required": [926 "line",927 "path"928 ],929 "type": "object"930 },931 "next": {932 "minLength": 1,933 "type": "string"934 },935 "resetsAt": {936 "type": "string"937 },938 "retryable": {939 "enum": [940 true941 ],942 "type": "boolean"943 }944 },945 "required": [946 "_tag",947 "next",948 "retryable",949 "area",950 "resetsAt"951 ],952 "type": "object"953 },954 "CapReachedEncoded": {955 "additionalProperties": true,956 "properties": {957 "_tag": {958 "enum": [959 "CapReached"960 ],961 "type": "string"962 },963 "at": {964 "additionalProperties": true,965 "properties": {966 "line": {967 "minimum": 1,968 "type": "integer"969 },970 "path": {971 "minLength": 1,972 "type": "string"973 }974 },975 "required": [976 "line",977 "path"978 ],979 "type": "object"980 },981 "cap": {982 "type": "integer"983 },984 "next": {985 "minLength": 1,986 "type": "string"987 },988 "retryable": {989 "enum": [990 true991 ],992 "type": "boolean"993 }994 },995 "required": [996 "_tag",997 "next",998 "retryable",999 "cap"1000 ],1001 "type": "object"1002 },1003 "ChecksFailedEncoded": {1004 "additionalProperties": true,1005 "properties": {1006 "_tag": {1007 "enum": [1008 "ChecksFailed"1009 ],1010 "type": "string"1011 },1012 "at": {1013 "additionalProperties": true,1014 "properties": {1015 "line": {1016 "minimum": 1,1017 "type": "integer"1018 },1019 "path": {1020 "minLength": 1,1021 "type": "string"1022 }1023 },1024 "required": [1025 "line",1026 "path"1027 ],1028 "type": "object"1029 },1030 "lane": {1031 "minLength": 1,1032 "type": "string"1033 },1034 "logRef": {1035 "minLength": 1,1036 "type": "string"1037 },1038 "next": {1039 "minLength": 1,1040 "type": "string"1041 },1042 "retryable": {1043 "enum": [1044 false1045 ],1046 "type": "boolean"1047 }1048 },1049 "required": [1050 "_tag",1051 "next",1052 "retryable",1053 "lane",1054 "logRef"1055 ],1056 "type": "object"1057 },1058 "ClaimLapsedEncoded": {1059 "additionalProperties": true,1060 "properties": {1061 "_tag": {1062 "enum": [1063 "ClaimLapsed"1064 ],1065 "type": "string"1066 },1067 "ask": {1068 "allOf": [1069 {1070 "not": {1071 "enum": [1072 "me",1073 "layer"1074 ]1075 }1076 }1077 ],1078 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1079 "type": "string"1080 },1081 "at": {1082 "additionalProperties": true,1083 "properties": {1084 "line": {1085 "minimum": 1,1086 "type": "integer"1087 },1088 "path": {1089 "minLength": 1,1090 "type": "string"1091 }1092 },1093 "required": [1094 "line",1095 "path"1096 ],1097 "type": "object"1098 },1099 "next": {1100 "minLength": 1,1101 "type": "string"1102 },1103 "retryable": {1104 "enum": [1105 true1106 ],1107 "type": "boolean"1108 }1109 },1110 "required": [1111 "_tag",1112 "next",1113 "retryable",1114 "ask"1115 ],1116 "type": "object"1117 },1118 "DecisionClosedEncoded": {1119 "additionalProperties": true,1120 "properties": {1121 "_tag": {1122 "enum": [1123 "DecisionClosed"1124 ],1125 "type": "string"1126 },1127 "at": {1128 "additionalProperties": true,1129 "properties": {1130 "line": {1131 "minimum": 1,1132 "type": "integer"1133 },1134 "path": {1135 "minLength": 1,1136 "type": "string"1137 }1138 },1139 "required": [1140 "line",1141 "path"1142 ],1143 "type": "object"1144 },1145 "decision": {1146 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",1147 "type": "string"1148 },1149 "next": {1150 "minLength": 1,1151 "type": "string"1152 },1153 "retryable": {1154 "enum": [1155 false1156 ],1157 "type": "boolean"1158 }1159 },1160 "required": [1161 "_tag",1162 "next",1163 "retryable",1164 "decision"1165 ],1166 "type": "object"1167 },1168 "DenouncedEncoded": {1169 "additionalProperties": true,1170 "properties": {1171 "_tag": {1172 "enum": [1173 "Denounced"1174 ],1175 "type": "string"1176 },1177 "at": {1178 "additionalProperties": true,1179 "properties": {1180 "line": {1181 "minimum": 1,1182 "type": "integer"1183 },1184 "path": {1185 "minLength": 1,1186 "type": "string"1187 }1188 },1189 "required": [1190 "line",1191 "path"1192 ],1193 "type": "object"1194 },1195 "next": {1196 "minLength": 1,1197 "type": "string"1198 },1199 "retryable": {1200 "enum": [1201 false1202 ],1203 "type": "boolean"1204 }1205 },1206 "required": [1207 "_tag",1208 "next",1209 "retryable"1210 ],1211 "type": "object"1212 },1213 "DirectPushEncoded": {1214 "additionalProperties": true,1215 "properties": {1216 "_tag": {1217 "enum": [1218 "DirectPush"1219 ],1220 "type": "string"1221 },1222 "at": {1223 "additionalProperties": true,1224 "properties": {1225 "line": {1226 "minimum": 1,1227 "type": "integer"1228 },1229 "path": {1230 "minLength": 1,1231 "type": "string"1232 }1233 },1234 "required": [1235 "line",1236 "path"1237 ],1238 "type": "object"1239 },1240 "next": {1241 "minLength": 1,1242 "type": "string"1243 },1244 "ref": {1245 "minLength": 1,1246 "type": "string"1247 },1248 "retryable": {1249 "enum": [1250 false1251 ],1252 "type": "boolean"1253 }1254 },1255 "required": [1256 "_tag",1257 "next",1258 "retryable",1259 "ref"1260 ],1261 "type": "object"1262 },1263 "FlakeEncoded": {1264 "additionalProperties": true,1265 "properties": {1266 "_tag": {1267 "enum": [1268 "Flake"1269 ],1270 "type": "string"1271 },1272 "at": {1273 "additionalProperties": true,1274 "properties": {1275 "line": {1276 "minimum": 1,1277 "type": "integer"1278 },1279 "path": {1280 "minLength": 1,1281 "type": "string"1282 }1283 },1284 "required": [1285 "line",1286 "path"1287 ],1288 "type": "object"1289 },1290 "lane": {1291 "minLength": 1,1292 "type": "string"1293 },1294 "next": {1295 "minLength": 1,1296 "type": "string"1297 },1298 "retryable": {1299 "enum": [1300 true1301 ],1302 "type": "boolean"1303 }1304 },1305 "required": [1306 "_tag",1307 "next",1308 "retryable",1309 "lane"1310 ],1311 "type": "object"1312 },1313 "HeldBackFailedEncoded": {1314 "additionalProperties": true,1315 "properties": {1316 "_tag": {1317 "enum": [1318 "HeldBackFailed"1319 ],1320 "type": "string"1321 },1322 "area": {1323 "minLength": 1,1324 "type": "string"1325 },1326 "at": {1327 "additionalProperties": true,1328 "properties": {1329 "line": {1330 "minimum": 1,1331 "type": "integer"1332 },1333 "path": {1334 "minLength": 1,1335 "type": "string"1336 }1337 },1338 "required": [1339 "line",1340 "path"1341 ],1342 "type": "object"1343 },1344 "next": {1345 "minLength": 1,1346 "type": "string"1347 },1348 "retryable": {1349 "enum": [1350 false1351 ],1352 "type": "boolean"1353 },1354 "suite": {1355 "minLength": 1,1356 "type": "string"1357 }1358 },1359 "required": [1360 "_tag",1361 "next",1362 "retryable",1363 "area",1364 "suite"1365 ],1366 "type": "object"1367 },1368 "ImportFailedEncoded": {1369 "additionalProperties": true,1370 "properties": {1371 "_tag": {1372 "enum": [1373 "ImportFailed"1374 ],1375 "type": "string"1376 },1377 "at": {1378 "additionalProperties": true,1379 "properties": {1380 "line": {1381 "minimum": 1,1382 "type": "integer"1383 },1384 "path": {1385 "minLength": 1,1386 "type": "string"1387 }1388 },1389 "required": [1390 "line",1391 "path"1392 ],1393 "type": "object"1394 },1395 "next": {1396 "minLength": 1,1397 "type": "string"1398 },1399 "reason": {1400 "minLength": 1,1401 "type": "string"1402 },1403 "retryable": {1404 "enum": [1405 true1406 ],1407 "type": "boolean"1408 }1409 },1410 "required": [1411 "_tag",1412 "next",1413 "retryable",1414 "reason"1415 ],1416 "type": "object"1417 },1418 "IncompleteBriefEncoded": {1419 "additionalProperties": true,1420 "properties": {1421 "_tag": {1422 "enum": [1423 "IncompleteBrief"1424 ],1425 "type": "string"1426 },1427 "at": {1428 "additionalProperties": true,1429 "properties": {1430 "line": {1431 "minimum": 1,1432 "type": "integer"1433 },1434 "path": {1435 "minLength": 1,1436 "type": "string"1437 }1438 },1439 "required": [1440 "line",1441 "path"1442 ],1443 "type": "object"1444 },1445 "missing": {1446 "items": {1447 "minLength": 1,1448 "type": "string"1449 },1450 "minItems": 1,1451 "prefixItems": [1452 {1453 "minLength": 1,1454 "type": "string"1455 }1456 ],1457 "type": "array"1458 },1459 "next": {1460 "minLength": 1,1461 "type": "string"1462 },1463 "retryable": {1464 "enum": [1465 false1466 ],1467 "type": "boolean"1468 }1469 },1470 "required": [1471 "_tag",1472 "next",1473 "retryable",1474 "missing"1475 ],1476 "type": "object"1477 },1478 "LayerContentInPublicTreeEncoded": {1479 "additionalProperties": true,1480 "properties": {1481 "_tag": {1482 "enum": [1483 "LayerContentInPublicTree"1484 ],1485 "type": "string"1486 },1487 "at": {1488 "additionalProperties": true,1489 "properties": {1490 "line": {1491 "minimum": 1,1492 "type": "integer"1493 },1494 "path": {1495 "minLength": 1,1496 "type": "string"1497 }1498 },1499 "required": [1500 "line",1501 "path"1502 ],1503 "type": "object"1504 },1505 "next": {1506 "minLength": 1,1507 "type": "string"1508 },1509 "paths": {1510 "items": {1511 "minLength": 1,1512 "type": "string"1513 },1514 "minItems": 1,1515 "prefixItems": [1516 {1517 "minLength": 1,1518 "type": "string"1519 }1520 ],1521 "type": "array"1522 },1523 "retryable": {1524 "enum": [1525 false1526 ],1527 "type": "boolean"1528 }1529 },1530 "required": [1531 "_tag",1532 "next",1533 "retryable",1534 "paths"1535 ],1536 "type": "object"1537 },1538 "NoAskEncoded": {1539 "additionalProperties": true,1540 "properties": {1541 "_tag": {1542 "enum": [1543 "NoAsk"1544 ],1545 "type": "string"1546 },1547 "at": {1548 "additionalProperties": true,1549 "properties": {1550 "line": {1551 "minimum": 1,1552 "type": "integer"1553 },1554 "path": {1555 "minLength": 1,1556 "type": "string"1557 }1558 },1559 "required": [1560 "line",1561 "path"1562 ],1563 "type": "object"1564 },1565 "next": {1566 "minLength": 1,1567 "type": "string"1568 },1569 "retryable": {1570 "enum": [1571 false1572 ],1573 "type": "boolean"1574 }1575 },1576 "required": [1577 "_tag",1578 "next",1579 "retryable"1580 ],1581 "type": "object"1582 },1583 "NotClaimedEncoded": {1584 "additionalProperties": true,1585 "properties": {1586 "_tag": {1587 "enum": [1588 "NotClaimed"1589 ],1590 "type": "string"1591 },1592 "ask": {1593 "allOf": [1594 {1595 "not": {1596 "enum": [1597 "me",1598 "layer"1599 ]1600 }1601 }1602 ],1603 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",1604 "type": "string"1605 },1606 "at": {1607 "additionalProperties": true,1608 "properties": {1609 "line": {1610 "minimum": 1,1611 "type": "integer"1612 },1613 "path": {1614 "minLength": 1,1615 "type": "string"1616 }1617 },1618 "required": [1619 "line",1620 "path"1621 ],1622 "type": "object"1623 },1624 "next": {1625 "minLength": 1,1626 "type": "string"1627 },1628 "retryable": {1629 "enum": [1630 true1631 ],1632 "type": "boolean"1633 }1634 },1635 "required": [1636 "_tag",1637 "next",1638 "retryable",1639 "ask"1640 ],1641 "type": "object"1642 },1643 "NotDeciderEncoded": {1644 "additionalProperties": true,1645 "properties": {1646 "_tag": {1647 "enum": [1648 "NotDecider"1649 ],1650 "type": "string"1651 },1652 "at": {1653 "additionalProperties": true,1654 "properties": {1655 "line": {1656 "minimum": 1,1657 "type": "integer"1658 },1659 "path": {1660 "minLength": 1,1661 "type": "string"1662 }1663 },1664 "required": [1665 "line",1666 "path"1667 ],1668 "type": "object"1669 },1670 "next": {1671 "minLength": 1,1672 "type": "string"1673 },1674 "retryable": {1675 "enum": [1676 false1677 ],1678 "type": "boolean"1679 }1680 },1681 "required": [1682 "_tag",1683 "next",1684 "retryable"1685 ],1686 "type": "object"1687 },1688 "NotRedFirstEncoded": {1689 "additionalProperties": true,1690 "properties": {1691 "_tag": {1692 "enum": [1693 "NotRedFirst"1694 ],1695 "type": "string"1696 },1697 "at": {1698 "additionalProperties": true,1699 "properties": {1700 "line": {1701 "minimum": 1,1702 "type": "integer"1703 },1704 "path": {1705 "minLength": 1,1706 "type": "string"1707 }1708 },1709 "required": [1710 "line",1711 "path"1712 ],1713 "type": "object"1714 },1715 "next": {1716 "minLength": 1,1717 "type": "string"1718 },1719 "retryable": {1720 "enum": [1721 false1722 ],1723 "type": "boolean"1724 }1725 },1726 "required": [1727 "_tag",1728 "next",1729 "retryable"1730 ],1731 "type": "object"1732 },1733 "NotSensitiveEncoded": {1734 "additionalProperties": true,1735 "properties": {1736 "_tag": {1737 "enum": [1738 "NotSensitive"1739 ],1740 "type": "string"1741 },1742 "at": {1743 "additionalProperties": true,1744 "properties": {1745 "line": {1746 "minimum": 1,1747 "type": "integer"1748 },1749 "path": {1750 "minLength": 1,1751 "type": "string"1752 }1753 },1754 "required": [1755 "line",1756 "path"1757 ],1758 "type": "object"1759 },1760 "key": {1761 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",1762 "type": "string"1763 },1764 "next": {1765 "minLength": 1,1766 "type": "string"1767 },1768 "retryable": {1769 "enum": [1770 false1771 ],1772 "type": "boolean"1773 }1774 },1775 "required": [1776 "_tag",1777 "next",1778 "retryable",1779 "key"1780 ],1781 "type": "object"1782 },1783 "NotVouchedEncoded": {1784 "additionalProperties": true,1785 "properties": {1786 "_tag": {1787 "enum": [1788 "NotVouched"1789 ],1790 "type": "string"1791 },1792 "at": {1793 "additionalProperties": true,1794 "properties": {1795 "line": {1796 "minimum": 1,1797 "type": "integer"1798 },1799 "path": {1800 "minLength": 1,1801 "type": "string"1802 }1803 },1804 "required": [1805 "line",1806 "path"1807 ],1808 "type": "object"1809 },1810 "next": {1811 "minLength": 1,1812 "type": "string"1813 },1814 "retryable": {1815 "enum": [1816 false1817 ],1818 "type": "boolean"1819 }1820 },1821 "required": [1822 "_tag",1823 "next",1824 "retryable"1825 ],1826 "type": "object"1827 },1828 "OutOfScopeEncoded": {1829 "additionalProperties": true,1830 "properties": {1831 "_tag": {1832 "enum": [1833 "OutOfScope"1834 ],1835 "type": "string"1836 },1837 "at": {1838 "additionalProperties": true,1839 "properties": {1840 "line": {1841 "minimum": 1,1842 "type": "integer"1843 },1844 "path": {1845 "minLength": 1,1846 "type": "string"1847 }1848 },1849 "required": [1850 "line",1851 "path"1852 ],1853 "type": "object"1854 },1855 "next": {1856 "minLength": 1,1857 "type": "string"1858 },1859 "paths": {1860 "items": {1861 "minLength": 1,1862 "type": "string"1863 },1864 "minItems": 1,1865 "prefixItems": [1866 {1867 "minLength": 1,1868 "type": "string"1869 }1870 ],1871 "type": "array"1872 },1873 "retryable": {1874 "enum": [1875 false1876 ],1877 "type": "boolean"1878 }1879 },1880 "required": [1881 "_tag",1882 "next",1883 "retryable",1884 "paths"1885 ],1886 "type": "object"1887 },1888 "PostureChangeEncoded": {1889 "additionalProperties": true,1890 "properties": {1891 "_tag": {1892 "enum": [1893 "PostureChange"1894 ],1895 "type": "string"1896 },1897 "at": {1898 "additionalProperties": true,1899 "properties": {1900 "line": {1901 "minimum": 1,1902 "type": "integer"1903 },1904 "path": {1905 "minLength": 1,1906 "type": "string"1907 }1908 },1909 "required": [1910 "line",1911 "path"1912 ],1913 "type": "object"1914 },1915 "from": {1916 "enum": [1917 "open",1918 "openWithSealedEvidence",1919 "openOnSchedule",1920 "openCore",1921 "sourceAvailable"1922 ],1923 "type": "string"1924 },1925 "next": {1926 "minLength": 1,1927 "type": "string"1928 },1929 "retryable": {1930 "enum": [1931 false1932 ],1933 "type": "boolean"1934 },1935 "to": {1936 "enum": [1937 "open",1938 "openWithSealedEvidence",1939 "openOnSchedule",1940 "openCore",1941 "sourceAvailable"1942 ],1943 "type": "string"1944 }1945 },1946 "required": [1947 "_tag",1948 "next",1949 "retryable",1950 "from",1951 "to"1952 ],1953 "type": "object"1954 },1955 "PrivatePathInPublicTreeEncoded": {1956 "additionalProperties": true,1957 "properties": {1958 "_tag": {1959 "enum": [1960 "PrivatePathInPublicTree"1961 ],1962 "type": "string"1963 },1964 "at": {1965 "additionalProperties": true,1966 "properties": {1967 "line": {1968 "minimum": 1,1969 "type": "integer"1970 },1971 "path": {1972 "minLength": 1,1973 "type": "string"1974 }1975 },1976 "required": [1977 "line",1978 "path"1979 ],1980 "type": "object"1981 },1982 "next": {1983 "minLength": 1,1984 "type": "string"1985 },1986 "paths": {1987 "items": {1988 "minLength": 1,1989 "type": "string"1990 },1991 "minItems": 1,1992 "prefixItems": [1993 {1994 "minLength": 1,1995 "type": "string"1996 }1997 ],1998 "type": "array"1999 },2000 "retryable": {2001 "enum": [2002 false2003 ],2004 "type": "boolean"2005 }2006 },2007 "required": [2008 "_tag",2009 "next",2010 "retryable",2011 "paths"2012 ],2013 "type": "object"2014 },2015 "ProjectExistsEncoded": {2016 "additionalProperties": true,2017 "properties": {2018 "_tag": {2019 "enum": [2020 "ProjectExists"2021 ],2022 "type": "string"2023 },2024 "at": {2025 "additionalProperties": true,2026 "properties": {2027 "line": {2028 "minimum": 1,2029 "type": "integer"2030 },2031 "path": {2032 "minLength": 1,2033 "type": "string"2034 }2035 },2036 "required": [2037 "line",2038 "path"2039 ],2040 "type": "object"2041 },2042 "next": {2043 "minLength": 1,2044 "type": "string"2045 },2046 "project": {2047 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2048 "type": "string"2049 },2050 "retryable": {2051 "enum": [2052 false2053 ],2054 "type": "boolean"2055 }2056 },2057 "required": [2058 "_tag",2059 "next",2060 "retryable",2061 "project"2062 ],2063 "type": "object"2064 },2065 "ReachedInternalsEncoded": {2066 "additionalProperties": true,2067 "properties": {2068 "_tag": {2069 "enum": [2070 "ReachedInternals"2071 ],2072 "type": "string"2073 },2074 "at": {2075 "additionalProperties": true,2076 "properties": {2077 "line": {2078 "minimum": 1,2079 "type": "integer"2080 },2081 "path": {2082 "minLength": 1,2083 "type": "string"2084 }2085 },2086 "required": [2087 "line",2088 "path"2089 ],2090 "type": "object"2091 },2092 "from": {2093 "minLength": 1,2094 "type": "string"2095 },2096 "next": {2097 "minLength": 1,2098 "type": "string"2099 },2100 "retryable": {2101 "enum": [2102 false2103 ],2104 "type": "boolean"2105 },2106 "to": {2107 "minLength": 1,2108 "type": "string"2109 }2110 },2111 "required": [2112 "_tag",2113 "next",2114 "retryable",2115 "from",2116 "to"2117 ],2118 "type": "object"2119 },2120 "RepoBusyEncoded": {2121 "additionalProperties": true,2122 "properties": {2123 "_tag": {2124 "enum": [2125 "RepoBusy"2126 ],2127 "type": "string"2128 },2129 "at": {2130 "additionalProperties": true,2131 "properties": {2132 "line": {2133 "minimum": 1,2134 "type": "integer"2135 },2136 "path": {2137 "minLength": 1,2138 "type": "string"2139 }2140 },2141 "required": [2142 "line",2143 "path"2144 ],2145 "type": "object"2146 },2147 "next": {2148 "minLength": 1,2149 "type": "string"2150 },2151 "retryable": {2152 "enum": [2153 true2154 ],2155 "type": "boolean"2156 }2157 },2158 "required": [2159 "_tag",2160 "next",2161 "retryable"2162 ],2163 "type": "object"2164 },2165 "SecretInOutputEncoded": {2166 "additionalProperties": true,2167 "properties": {2168 "_tag": {2169 "enum": [2170 "SecretInOutput"2171 ],2172 "type": "string"2173 },2174 "at": {2175 "additionalProperties": true,2176 "properties": {2177 "line": {2178 "minimum": 1,2179 "type": "integer"2180 },2181 "path": {2182 "minLength": 1,2183 "type": "string"2184 }2185 },2186 "required": [2187 "line",2188 "path"2189 ],2190 "type": "object"2191 },2192 "item": {2193 "minLength": 1,2194 "type": "string"2195 },2196 "next": {2197 "minLength": 1,2198 "type": "string"2199 },2200 "retryable": {2201 "enum": [2202 false2203 ],2204 "type": "boolean"2205 },2206 "where": {2207 "enum": [2208 "output",2209 "tree"2210 ],2211 "type": "string"2212 }2213 },2214 "required": [2215 "_tag",2216 "next",2217 "retryable",2218 "item",2219 "where"2220 ],2221 "type": "object"2222 },2223 "StaleBaseEncoded": {2224 "additionalProperties": true,2225 "properties": {2226 "_tag": {2227 "enum": [2228 "StaleBase"2229 ],2230 "type": "string"2231 },2232 "at": {2233 "additionalProperties": true,2234 "properties": {2235 "line": {2236 "minimum": 1,2237 "type": "integer"2238 },2239 "path": {2240 "minLength": 1,2241 "type": "string"2242 }2243 },2244 "required": [2245 "line",2246 "path"2247 ],2248 "type": "object"2249 },2250 "base": {2251 "pattern": "^[0-9a-f]{40}$",2252 "type": "string"2253 },2254 "conflicts": {2255 "items": {2256 "minLength": 1,2257 "type": "string"2258 },2259 "type": "array"2260 },2261 "main": {2262 "pattern": "^[0-9a-f]{40}$",2263 "type": "string"2264 },2265 "next": {2266 "minLength": 1,2267 "type": "string"2268 },2269 "retryable": {2270 "enum": [2271 true2272 ],2273 "type": "boolean"2274 }2275 },2276 "required": [2277 "_tag",2278 "next",2279 "retryable",2280 "base",2281 "conflicts",2282 "main"2283 ],2284 "type": "object"2285 },2286 "StaleLayerEncoded": {2287 "additionalProperties": true,2288 "properties": {2289 "_tag": {2290 "enum": [2291 "StaleLayer"2292 ],2293 "type": "string"2294 },2295 "at": {2296 "additionalProperties": true,2297 "properties": {2298 "line": {2299 "minimum": 1,2300 "type": "integer"2301 },2302 "path": {2303 "minLength": 1,2304 "type": "string"2305 }2306 },2307 "required": [2308 "line",2309 "path"2310 ],2311 "type": "object"2312 },2313 "layer": {2314 "minLength": 1,2315 "type": "string"2316 },2317 "next": {2318 "minLength": 1,2319 "type": "string"2320 },2321 "retryable": {2322 "enum": [2323 true2324 ],2325 "type": "boolean"2326 }2327 },2328 "required": [2329 "_tag",2330 "next",2331 "retryable",2332 "layer"2333 ],2334 "type": "object"2335 },2336 "TouchedJudgeEncoded": {2337 "additionalProperties": true,2338 "properties": {2339 "_tag": {2340 "enum": [2341 "TouchedJudge"2342 ],2343 "type": "string"2344 },2345 "at": {2346 "additionalProperties": true,2347 "properties": {2348 "line": {2349 "minimum": 1,2350 "type": "integer"2351 },2352 "path": {2353 "minLength": 1,2354 "type": "string"2355 }2356 },2357 "required": [2358 "line",2359 "path"2360 ],2361 "type": "object"2362 },2363 "next": {2364 "minLength": 1,2365 "type": "string"2366 },2367 "paths": {2368 "items": {2369 "minLength": 1,2370 "type": "string"2371 },2372 "minItems": 1,2373 "prefixItems": [2374 {2375 "minLength": 1,2376 "type": "string"2377 }2378 ],2379 "type": "array"2380 },2381 "retryable": {2382 "enum": [2383 false2384 ],2385 "type": "boolean"2386 }2387 },2388 "required": [2389 "_tag",2390 "next",2391 "retryable",2392 "paths"2393 ],2394 "type": "object"2395 },2396 "UnknownAskEncoded": {2397 "additionalProperties": true,2398 "properties": {2399 "_tag": {2400 "enum": [2401 "UnknownAsk"2402 ],2403 "type": "string"2404 },2405 "ask": {2406 "allOf": [2407 {2408 "not": {2409 "enum": [2410 "me",2411 "layer"2412 ]2413 }2414 }2415 ],2416 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2417 "type": "string"2418 },2419 "at": {2420 "additionalProperties": true,2421 "properties": {2422 "line": {2423 "minimum": 1,2424 "type": "integer"2425 },2426 "path": {2427 "minLength": 1,2428 "type": "string"2429 }2430 },2431 "required": [2432 "line",2433 "path"2434 ],2435 "type": "object"2436 },2437 "next": {2438 "minLength": 1,2439 "type": "string"2440 },2441 "retryable": {2442 "enum": [2443 false2444 ],2445 "type": "boolean"2446 }2447 },2448 "required": [2449 "_tag",2450 "next",2451 "retryable",2452 "ask"2453 ],2454 "type": "object"2455 },2456 "UnknownCommitEncoded": {2457 "additionalProperties": true,2458 "properties": {2459 "_tag": {2460 "enum": [2461 "UnknownCommit"2462 ],2463 "type": "string"2464 },2465 "at": {2466 "additionalProperties": true,2467 "properties": {2468 "line": {2469 "minimum": 1,2470 "type": "integer"2471 },2472 "path": {2473 "minLength": 1,2474 "type": "string"2475 }2476 },2477 "required": [2478 "line",2479 "path"2480 ],2481 "type": "object"2482 },2483 "next": {2484 "minLength": 1,2485 "type": "string"2486 },2487 "retryable": {2488 "enum": [2489 false2490 ],2491 "type": "boolean"2492 },2493 "sha": {2494 "pattern": "^[0-9a-f]{40}$",2495 "type": "string"2496 }2497 },2498 "required": [2499 "_tag",2500 "next",2501 "retryable",2502 "sha"2503 ],2504 "type": "object"2505 },2506 "UnknownDecisionEncoded": {2507 "additionalProperties": true,2508 "properties": {2509 "_tag": {2510 "enum": [2511 "UnknownDecision"2512 ],2513 "type": "string"2514 },2515 "at": {2516 "additionalProperties": true,2517 "properties": {2518 "line": {2519 "minimum": 1,2520 "type": "integer"2521 },2522 "path": {2523 "minLength": 1,2524 "type": "string"2525 }2526 },2527 "required": [2528 "line",2529 "path"2530 ],2531 "type": "object"2532 },2533 "decision": {2534 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",2535 "type": "string"2536 },2537 "next": {2538 "minLength": 1,2539 "type": "string"2540 },2541 "retryable": {2542 "enum": [2543 false2544 ],2545 "type": "boolean"2546 }2547 },2548 "required": [2549 "_tag",2550 "next",2551 "retryable",2552 "decision"2553 ],2554 "type": "object"2555 },2556 "UnknownEnvItemEncoded": {2557 "additionalProperties": true,2558 "properties": {2559 "_tag": {2560 "enum": [2561 "UnknownEnvItem"2562 ],2563 "type": "string"2564 },2565 "at": {2566 "additionalProperties": true,2567 "properties": {2568 "line": {2569 "minimum": 1,2570 "type": "integer"2571 },2572 "path": {2573 "minLength": 1,2574 "type": "string"2575 }2576 },2577 "required": [2578 "line",2579 "path"2580 ],2581 "type": "object"2582 },2583 "key": {2584 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",2585 "type": "string"2586 },2587 "next": {2588 "minLength": 1,2589 "type": "string"2590 },2591 "retryable": {2592 "enum": [2593 false2594 ],2595 "type": "boolean"2596 }2597 },2598 "required": [2599 "_tag",2600 "next",2601 "retryable",2602 "key"2603 ],2604 "type": "object"2605 },2606 "UnknownProjectEncoded": {2607 "additionalProperties": true,2608 "properties": {2609 "_tag": {2610 "enum": [2611 "UnknownProject"2612 ],2613 "type": "string"2614 },2615 "at": {2616 "additionalProperties": true,2617 "properties": {2618 "line": {2619 "minimum": 1,2620 "type": "integer"2621 },2622 "path": {2623 "minLength": 1,2624 "type": "string"2625 }2626 },2627 "required": [2628 "line",2629 "path"2630 ],2631 "type": "object"2632 },2633 "next": {2634 "minLength": 1,2635 "type": "string"2636 },2637 "project": {2638 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2639 "type": "string"2640 },2641 "retryable": {2642 "enum": [2643 false2644 ],2645 "type": "boolean"2646 }2647 },2648 "required": [2649 "_tag",2650 "next",2651 "retryable",2652 "project"2653 ],2654 "type": "object"2655 },2656 "UnstatedRequirementEncoded": {2657 "additionalProperties": true,2658 "properties": {2659 "_tag": {2660 "enum": [2661 "UnstatedRequirement"2662 ],2663 "type": "string"2664 },2665 "area": {2666 "minLength": 1,2667 "type": "string"2668 },2669 "at": {2670 "additionalProperties": true,2671 "properties": {2672 "line": {2673 "minimum": 1,2674 "type": "integer"2675 },2676 "path": {2677 "minLength": 1,2678 "type": "string"2679 }2680 },2681 "required": [2682 "line",2683 "path"2684 ],2685 "type": "object"2686 },2687 "next": {2688 "minLength": 1,2689 "type": "string"2690 },2691 "retryable": {2692 "enum": [2693 false2694 ],2695 "type": "boolean"2696 }2697 },2698 "required": [2699 "_tag",2700 "next",2701 "retryable",2702 "area"2703 ],2704 "type": "object"2705 },2706 "ValueTooShortEncoded": {2707 "additionalProperties": true,2708 "properties": {2709 "_tag": {2710 "enum": [2711 "ValueTooShort"2712 ],2713 "type": "string"2714 },2715 "at": {2716 "additionalProperties": true,2717 "properties": {2718 "line": {2719 "minimum": 1,2720 "type": "integer"2721 },2722 "path": {2723 "minLength": 1,2724 "type": "string"2725 }2726 },2727 "required": [2728 "line",2729 "path"2730 ],2731 "type": "object"2732 },2733 "key": {2734 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",2735 "type": "string"2736 },2737 "minimum": {2738 "type": "integer"2739 },2740 "next": {2741 "minLength": 1,2742 "type": "string"2743 },2744 "retryable": {2745 "enum": [2746 false2747 ],2748 "type": "boolean"2749 }2750 },2751 "required": [2752 "_tag",2753 "next",2754 "retryable",2755 "key",2756 "minimum"2757 ],2758 "type": "object"2759 },2760 "VerifierBlockedEncoded": {2761 "additionalProperties": true,2762 "properties": {2763 "_tag": {2764 "enum": [2765 "VerifierBlocked"2766 ],2767 "type": "string"2768 },2769 "at": {2770 "additionalProperties": true,2771 "properties": {2772 "line": {2773 "minimum": 1,2774 "type": "integer"2775 },2776 "path": {2777 "minLength": 1,2778 "type": "string"2779 }2780 },2781 "required": [2782 "line",2783 "path"2784 ],2785 "type": "object"2786 },2787 "next": {2788 "minLength": 1,2789 "type": "string"2790 },2791 "retryable": {2792 "enum": [2793 true2794 ],2795 "type": "boolean"2796 }2797 },2798 "required": [2799 "_tag",2800 "next",2801 "retryable"2802 ],2803 "type": "object"2804 },2805 "WeakCheckEncoded": {2806 "additionalProperties": true,2807 "properties": {2808 "_tag": {2809 "enum": [2810 "WeakCheck"2811 ],2812 "type": "string"2813 },2814 "at": {2815 "additionalProperties": true,2816 "properties": {2817 "line": {2818 "minimum": 1,2819 "type": "integer"2820 },2821 "path": {2822 "minLength": 1,2823 "type": "string"2824 }2825 },2826 "required": [2827 "line",2828 "path"2829 ],2830 "type": "object"2831 },2832 "next": {2833 "minLength": 1,2834 "type": "string"2835 },2836 "retryable": {2837 "enum": [2838 false2839 ],2840 "type": "boolean"2841 },2842 "weakness": {2843 "minLength": 1,2844 "type": "string"2845 }2846 },2847 "required": [2848 "_tag",2849 "next",2850 "retryable",2851 "weakness"2852 ],2853 "type": "object"2854 },2855 "WeakenedEncoded": {2856 "additionalProperties": true,2857 "properties": {2858 "_tag": {2859 "enum": [2860 "Weakened"2861 ],2862 "type": "string"2863 },2864 "at": {2865 "additionalProperties": true,2866 "properties": {2867 "line": {2868 "minimum": 1,2869 "type": "integer"2870 },2871 "path": {2872 "minLength": 1,2873 "type": "string"2874 }2875 },2876 "required": [2877 "line",2878 "path"2879 ],2880 "type": "object"2881 },2882 "next": {2883 "minLength": 1,2884 "type": "string"2885 },2886 "retryable": {2887 "enum": [2888 false2889 ],2890 "type": "boolean"2891 },2892 "weakening": {2893 "anyOf": [2894 {2895 "additionalProperties": true,2896 "properties": {2897 "marker": {2898 "minLength": 1,2899 "type": "string"2900 },2901 "reason": {2902 "minLength": 1,2903 "type": "string"2904 }2905 },2906 "required": [2907 "marker"2908 ],2909 "type": "object"2910 },2911 {2912 "additionalProperties": true,2913 "properties": {2914 "after": {2915 "type": "integer"2916 },2917 "before": {2918 "type": "integer"2919 },2920 "ratchet": {2921 "minLength": 1,2922 "type": "string"2923 },2924 "territory": {2925 "minLength": 1,2926 "type": "string"2927 }2928 },2929 "required": [2930 "after",2931 "before",2932 "ratchet",2933 "territory"2934 ],2935 "type": "object"2936 }2937 ]2938 }2939 },2940 "required": [2941 "_tag",2942 "next",2943 "retryable",2944 "weakening"2945 ],2946 "type": "object"2947 }2948 },2949 "additionalProperties": true,2950 "properties": {2951 "answers": {2952 "items": {2953 "additionalProperties": true,2954 "properties": {2955 "ask": {2956 "allOf": [2957 {2958 "not": {2959 "enum": [2960 "me",2961 "layer"2962 ]2963 }2964 }2965 ],2966 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2967 "type": "string"2968 },2969 "at": {2970 "type": "string"2971 },2972 "head": {2973 "pattern": "^[0-9a-f]{40}$",2974 "type": "string"2975 },2976 "outcome": {2977 "anyOf": [2978 {2979 "additionalProperties": true,2980 "properties": {2981 "_tag": {2982 "enum": [2983 "AwaitingDecision"2984 ],2985 "type": "string"2986 },2987 "decision": {2988 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",2989 "type": "string"2990 }2991 },2992 "required": [2993 "_tag",2994 "decision"2995 ],2996 "type": "object"2997 },2998 {2999 "additionalProperties": true,3000 "properties": {3001 "_tag": {3002 "enum": [3003 "AwaitingFinish"3004 ],3005 "type": "string"3006 },3007 "decider": {3008 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",3009 "type": "string"3010 }3011 },3012 "required": [3013 "_tag"3014 ],3015 "type": "object"3016 },3017 {3018 "additionalProperties": true,3019 "properties": {3020 "_tag": {3021 "enum": [3022 "Checking"3023 ],3024 "type": "string"3025 },3026 "stage": {3027 "enum": [3028 "parse",3029 "shape",3030 "merge",3031 "cheap",3032 "checks",3033 "heldBack",3034 "human"3035 ],3036 "type": "string"3037 }3038 },3039 "required": [3040 "_tag",3041 "stage"3042 ],3043 "type": "object"3044 },3045 {3046 "additionalProperties": true,3047 "properties": {3048 "_tag": {3049 "enum": [3050 "Landed"3051 ],3052 "type": "string"3053 },3054 "sha": {3055 "pattern": "^[0-9a-f]{40}$",3056 "type": "string"3057 }3058 },3059 "required": [3060 "_tag",3061 "sha"3062 ],3063 "type": "object"3064 },3065 {3066 "additionalProperties": true,3067 "properties": {3068 "_tag": {3069 "enum": [3070 "Refused"3071 ],3072 "type": "string"3073 },3074 "refusals": {3075 "items": {3076 "anyOf": [3077 {3078 "$ref": "#/$defs/NotClaimedEncoded"3079 },3080 {3081 "$ref": "#/$defs/ClaimLapsedEncoded"3082 },3083 {3084 "$ref": "#/$defs/NotVouchedEncoded"3085 },3086 {3087 "$ref": "#/$defs/CapReachedEncoded"3088 },3089 {3090 "$ref": "#/$defs/AskFullEncoded"3091 },3092 {3093 "$ref": "#/$defs/NoAskEncoded"3094 },3095 {3096 "$ref": "#/$defs/RepoBusyEncoded"3097 },3098 {3099 "$ref": "#/$defs/DirectPushEncoded"3100 },3101 {3102 "$ref": "#/$defs/AskBlockedEncoded"3103 },3104 {3105 "$ref": "#/$defs/DenouncedEncoded"3106 },3107 {3108 "$ref": "#/$defs/OutOfScopeEncoded"3109 },3110 {3111 "$ref": "#/$defs/TouchedJudgeEncoded"3112 },3113 {3114 "$ref": "#/$defs/WeakenedEncoded"3115 },3116 {3117 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"3118 },3119 {3120 "$ref": "#/$defs/ReachedInternalsEncoded"3121 },3122 {3123 "$ref": "#/$defs/StaleBaseEncoded"3124 },3125 {3126 "$ref": "#/$defs/StaleLayerEncoded"3127 },3128 {3129 "$ref": "#/$defs/ChecksFailedEncoded"3130 },3131 {3132 "$ref": "#/$defs/HeldBackFailedEncoded"3133 },3134 {3135 "$ref": "#/$defs/AttemptsExhaustedEncoded"3136 },3137 {3138 "$ref": "#/$defs/FlakeEncoded"3139 },3140 {3141 "$ref": "#/$defs/VerifierBlockedEncoded"3142 },3143 {3144 "$ref": "#/$defs/NotRedFirstEncoded"3145 },3146 {3147 "$ref": "#/$defs/WeakCheckEncoded"3148 },3149 {3150 "$ref": "#/$defs/IncompleteBriefEncoded"3151 },3152 {3153 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"3154 },3155 {3156 "$ref": "#/$defs/SecretInOutputEncoded"3157 },3158 {3159 "$ref": "#/$defs/UnstatedRequirementEncoded"3160 },3161 {3162 "$ref": "#/$defs/PostureChangeEncoded"3163 },3164 {3165 "$ref": "#/$defs/NotDeciderEncoded"3166 },3167 {3168 "$ref": "#/$defs/DecisionClosedEncoded"3169 },3170 {3171 "$ref": "#/$defs/UnknownProjectEncoded"3172 },3173 {3174 "$ref": "#/$defs/UnknownAskEncoded"3175 },3176 {3177 "$ref": "#/$defs/UnknownCommitEncoded"3178 },3179 {3180 "$ref": "#/$defs/UnknownDecisionEncoded"3181 },3182 {3183 "$ref": "#/$defs/ProjectExistsEncoded"3184 },3185 {3186 "$ref": "#/$defs/ImportFailedEncoded"3187 },3188 {3189 "$ref": "#/$defs/UnknownEnvItemEncoded"3190 },3191 {3192 "$ref": "#/$defs/NotSensitiveEncoded"3193 },3194 {3195 "$ref": "#/$defs/ValueTooShortEncoded"3196 }3197 ]3198 },3199 "minItems": 1,3200 "prefixItems": [3201 {3202 "anyOf": [3203 {3204 "$ref": "#/$defs/NotClaimedEncoded"3205 },3206 {3207 "$ref": "#/$defs/ClaimLapsedEncoded"3208 },3209 {3210 "$ref": "#/$defs/NotVouchedEncoded"3211 },3212 {3213 "$ref": "#/$defs/CapReachedEncoded"3214 },3215 {3216 "$ref": "#/$defs/AskFullEncoded"3217 },3218 {3219 "$ref": "#/$defs/NoAskEncoded"3220 },3221 {3222 "$ref": "#/$defs/RepoBusyEncoded"3223 },3224 {3225 "$ref": "#/$defs/DirectPushEncoded"3226 },3227 {3228 "$ref": "#/$defs/AskBlockedEncoded"3229 },3230 {3231 "$ref": "#/$defs/DenouncedEncoded"3232 },3233 {3234 "$ref": "#/$defs/OutOfScopeEncoded"3235 },3236 {3237 "$ref": "#/$defs/TouchedJudgeEncoded"3238 },3239 {3240 "$ref": "#/$defs/WeakenedEncoded"3241 },3242 {3243 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"3244 },3245 {3246 "$ref": "#/$defs/ReachedInternalsEncoded"3247 },3248 {3249 "$ref": "#/$defs/StaleBaseEncoded"3250 },3251 {3252 "$ref": "#/$defs/StaleLayerEncoded"3253 },3254 {3255 "$ref": "#/$defs/ChecksFailedEncoded"3256 },3257 {3258 "$ref": "#/$defs/HeldBackFailedEncoded"3259 },3260 {3261 "$ref": "#/$defs/AttemptsExhaustedEncoded"3262 },3263 {3264 "$ref": "#/$defs/FlakeEncoded"3265 },3266 {3267 "$ref": "#/$defs/VerifierBlockedEncoded"3268 },3269 {3270 "$ref": "#/$defs/NotRedFirstEncoded"3271 },3272 {3273 "$ref": "#/$defs/WeakCheckEncoded"3274 },3275 {3276 "$ref": "#/$defs/IncompleteBriefEncoded"3277 },3278 {3279 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"3280 },3281 {3282 "$ref": "#/$defs/SecretInOutputEncoded"3283 },3284 {3285 "$ref": "#/$defs/UnstatedRequirementEncoded"3286 },3287 {3288 "$ref": "#/$defs/PostureChangeEncoded"3289 },3290 {3291 "$ref": "#/$defs/NotDeciderEncoded"3292 },3293 {3294 "$ref": "#/$defs/DecisionClosedEncoded"3295 },3296 {3297 "$ref": "#/$defs/UnknownProjectEncoded"3298 },3299 {3300 "$ref": "#/$defs/UnknownAskEncoded"3301 },3302 {3303 "$ref": "#/$defs/UnknownCommitEncoded"3304 },3305 {3306 "$ref": "#/$defs/UnknownDecisionEncoded"3307 },3308 {3309 "$ref": "#/$defs/ProjectExistsEncoded"3310 },3311 {3312 "$ref": "#/$defs/ImportFailedEncoded"3313 },3314 {3315 "$ref": "#/$defs/UnknownEnvItemEncoded"3316 },3317 {3318 "$ref": "#/$defs/NotSensitiveEncoded"3319 },3320 {3321 "$ref": "#/$defs/ValueTooShortEncoded"3322 }3323 ]3324 }3325 ],3326 "type": "array"3327 }3328 },3329 "required": [3330 "_tag",3331 "refusals"3332 ],3333 "type": "object"3334 },3335 {3336 "additionalProperties": true,3337 "properties": {3338 "_tag": {3339 "enum": [3340 "WaitingOnParent"3341 ],3342 "type": "string"3343 },3344 "ask": {3345 "allOf": [3346 {3347 "not": {3348 "enum": [3349 "me",3350 "layer"3351 ]3352 }3353 }3354 ],3355 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3356 "type": "string"3357 }3358 },3359 "required": [3360 "_tag",3361 "ask"3362 ],3363 "type": "object"3364 }3365 ]3366 },3367 "requestId": {3368 "pattern": "^[A-Za-z0-9_-]{8,64}$",3369 "type": "string"3370 }3371 },3372 "required": [3373 "ask",3374 "at",3375 "head",3376 "outcome",3377 "requestId"3378 ],3379 "type": "object"3380 },3381 "type": "array"3382 },3383 "claims": {3384 "items": {3385 "additionalProperties": true,3386 "properties": {3387 "ask": {3388 "allOf": [3389 {3390 "not": {3391 "enum": [3392 "me",3393 "layer"3394 ]3395 }3396 }3397 ],3398 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3399 "type": "string"3400 },3401 "base": {3402 "pattern": "^[0-9a-f]{40}$",3403 "type": "string"3404 },3405 "checkCommand": {3406 "minLength": 1,3407 "type": "string"3408 },3409 "claimant": {3410 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",3411 "type": "string"3412 },3413 "fork": {3414 "pattern": "^[A-Za-z0-9._-]+$",3415 "type": "string"3416 },3417 "lapsesAt": {3418 "type": "string"3419 },3420 "lastPushAt": {3421 "type": "string"3422 },3423 "openedAt": {3424 "type": "string"3425 },3426 "project": {3427 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3428 "type": "string"3429 },3430 "remote": {3431 "minLength": 1,3432 "type": "string"3433 },3434 "state": {3435 "enum": [3436 "live",3437 "warned",3438 "lapsed",3439 "released",3440 "answered"3441 ],3442 "type": "string"3443 },3444 "suite": {3445 "pattern": "^sha256:[0-9a-f]{64}$",3446 "type": "string"3447 },3448 "warnsAt": {3449 "type": "string"3450 }3451 },3452 "required": [3453 "ask",3454 "base",3455 "checkCommand",3456 "claimant",3457 "fork",3458 "lapsesAt",3459 "openedAt",3460 "project",3461 "remote",3462 "state",3463 "warnsAt"3464 ],3465 "type": "object"3466 },3467 "type": "array"3468 }3469 },3470 "required": [3471 "answers",3472 "claims"3473 ],3474 "type": "object"3475}3476```34773478## verdict34793480Show the verdict on an answer to an ask, for its latest head or the one named; held-back checks show one bit per area.34813482| Hint | Value |3483| --- | --- |3484| `destructiveHint` | `false` |3485| `idempotentHint` | `true` |3486| `openWorldHint` | `false` |3487| `readOnlyHint` | `true` |34883489### Input34903491```json3492{3493 "additionalProperties": true,3494 "properties": {3495 "ask": {3496 "allOf": [3497 {3498 "not": {3499 "enum": [3500 "me",3501 "layer"3502 ]3503 }3504 }3505 ],3506 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3507 "type": "string"3508 },3509 "head": {3510 "pattern": "^[0-9a-f]{40}$",3511 "type": "string"3512 },3513 "project": {3514 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3515 "type": "string"3516 }3517 },3518 "required": [3519 "ask",3520 "project"3521 ],3522 "type": "object"3523}3524```35253526### Output35273528```json3529{3530 "$defs": {3531 "AskBlockedEncoded": {3532 "additionalProperties": true,3533 "properties": {3534 "_tag": {3535 "enum": [3536 "AskBlocked"3537 ],3538 "type": "string"3539 },3540 "ask": {3541 "allOf": [3542 {3543 "not": {3544 "enum": [3545 "me",3546 "layer"3547 ]3548 }3549 }3550 ],3551 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3552 "type": "string"3553 },3554 "at": {3555 "additionalProperties": true,3556 "properties": {3557 "line": {3558 "minimum": 1,3559 "type": "integer"3560 },3561 "path": {3562 "minLength": 1,3563 "type": "string"3564 }3565 },3566 "required": [3567 "line",3568 "path"3569 ],3570 "type": "object"3571 },3572 "blockedBy": {3573 "items": {3574 "allOf": [3575 {3576 "not": {3577 "enum": [3578 "me",3579 "layer"3580 ]3581 }3582 }3583 ],3584 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3585 "type": "string"3586 },3587 "minItems": 1,3588 "prefixItems": [3589 {3590 "allOf": [3591 {3592 "not": {3593 "enum": [3594 "me",3595 "layer"3596 ]3597 }3598 }3599 ],3600 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3601 "type": "string"3602 }3603 ],3604 "type": "array"3605 },3606 "next": {3607 "minLength": 1,3608 "type": "string"3609 },3610 "retryable": {3611 "enum": [3612 true3613 ],3614 "type": "boolean"3615 }3616 },3617 "required": [3618 "_tag",3619 "next",3620 "retryable",3621 "ask",3622 "blockedBy"3623 ],3624 "type": "object"3625 },3626 "AskFullEncoded": {3627 "additionalProperties": true,3628 "properties": {3629 "_tag": {3630 "enum": [3631 "AskFull"3632 ],3633 "type": "string"3634 },3635 "ask": {3636 "allOf": [3637 {3638 "not": {3639 "enum": [3640 "me",3641 "layer"3642 ]3643 }3644 }3645 ],3646 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3647 "type": "string"3648 },3649 "at": {3650 "additionalProperties": true,3651 "properties": {3652 "line": {3653 "minimum": 1,3654 "type": "integer"3655 },3656 "path": {3657 "minLength": 1,3658 "type": "string"3659 }3660 },3661 "required": [3662 "line",3663 "path"3664 ],3665 "type": "object"3666 },3667 "next": {3668 "minLength": 1,3669 "type": "string"3670 },3671 "retryable": {3672 "enum": [3673 true3674 ],3675 "type": "boolean"3676 }3677 },3678 "required": [3679 "_tag",3680 "next",3681 "retryable",3682 "ask"3683 ],3684 "type": "object"3685 },3686 "AttemptsExhaustedEncoded": {3687 "additionalProperties": true,3688 "properties": {3689 "_tag": {3690 "enum": [3691 "AttemptsExhausted"3692 ],3693 "type": "string"3694 },3695 "area": {3696 "minLength": 1,3697 "type": "string"3698 },3699 "at": {3700 "additionalProperties": true,3701 "properties": {3702 "line": {3703 "minimum": 1,3704 "type": "integer"3705 },3706 "path": {3707 "minLength": 1,3708 "type": "string"3709 }3710 },3711 "required": [3712 "line",3713 "path"3714 ],3715 "type": "object"3716 },3717 "next": {3718 "minLength": 1,3719 "type": "string"3720 },3721 "resetsAt": {3722 "type": "string"3723 },3724 "retryable": {3725 "enum": [3726 true3727 ],3728 "type": "boolean"3729 }3730 },3731 "required": [3732 "_tag",3733 "next",3734 "retryable",3735 "area",3736 "resetsAt"3737 ],3738 "type": "object"3739 },3740 "CapReachedEncoded": {3741 "additionalProperties": true,3742 "properties": {3743 "_tag": {3744 "enum": [3745 "CapReached"3746 ],3747 "type": "string"3748 },3749 "at": {3750 "additionalProperties": true,3751 "properties": {3752 "line": {3753 "minimum": 1,3754 "type": "integer"3755 },3756 "path": {3757 "minLength": 1,3758 "type": "string"3759 }3760 },3761 "required": [3762 "line",3763 "path"3764 ],3765 "type": "object"3766 },3767 "cap": {3768 "type": "integer"3769 },3770 "next": {3771 "minLength": 1,3772 "type": "string"3773 },3774 "retryable": {3775 "enum": [3776 true3777 ],3778 "type": "boolean"3779 }3780 },3781 "required": [3782 "_tag",3783 "next",3784 "retryable",3785 "cap"3786 ],3787 "type": "object"3788 },3789 "ChecksFailedEncoded": {3790 "additionalProperties": true,3791 "properties": {3792 "_tag": {3793 "enum": [3794 "ChecksFailed"3795 ],3796 "type": "string"3797 },3798 "at": {3799 "additionalProperties": true,3800 "properties": {3801 "line": {3802 "minimum": 1,3803 "type": "integer"3804 },3805 "path": {3806 "minLength": 1,3807 "type": "string"3808 }3809 },3810 "required": [3811 "line",3812 "path"3813 ],3814 "type": "object"3815 },3816 "lane": {3817 "minLength": 1,3818 "type": "string"3819 },3820 "logRef": {3821 "minLength": 1,3822 "type": "string"3823 },3824 "next": {3825 "minLength": 1,3826 "type": "string"3827 },3828 "retryable": {3829 "enum": [3830 false3831 ],3832 "type": "boolean"3833 }3834 },3835 "required": [3836 "_tag",3837 "next",3838 "retryable",3839 "lane",3840 "logRef"3841 ],3842 "type": "object"3843 },3844 "ClaimLapsedEncoded": {3845 "additionalProperties": true,3846 "properties": {3847 "_tag": {3848 "enum": [3849 "ClaimLapsed"3850 ],3851 "type": "string"3852 },3853 "ask": {3854 "allOf": [3855 {3856 "not": {3857 "enum": [3858 "me",3859 "layer"3860 ]3861 }3862 }3863 ],3864 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3865 "type": "string"3866 },3867 "at": {3868 "additionalProperties": true,3869 "properties": {3870 "line": {3871 "minimum": 1,3872 "type": "integer"3873 },3874 "path": {3875 "minLength": 1,3876 "type": "string"3877 }3878 },3879 "required": [3880 "line",3881 "path"3882 ],3883 "type": "object"3884 },3885 "next": {3886 "minLength": 1,3887 "type": "string"3888 },3889 "retryable": {3890 "enum": [3891 true3892 ],3893 "type": "boolean"3894 }3895 },3896 "required": [3897 "_tag",3898 "next",3899 "retryable",3900 "ask"3901 ],3902 "type": "object"3903 },3904 "DecisionClosedEncoded": {3905 "additionalProperties": true,3906 "properties": {3907 "_tag": {3908 "enum": [3909 "DecisionClosed"3910 ],3911 "type": "string"3912 },3913 "at": {3914 "additionalProperties": true,3915 "properties": {3916 "line": {3917 "minimum": 1,3918 "type": "integer"3919 },3920 "path": {3921 "minLength": 1,3922 "type": "string"3923 }3924 },3925 "required": [3926 "line",3927 "path"3928 ],3929 "type": "object"3930 },3931 "decision": {3932 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",3933 "type": "string"3934 },3935 "next": {3936 "minLength": 1,3937 "type": "string"3938 },3939 "retryable": {3940 "enum": [3941 false3942 ],3943 "type": "boolean"3944 }3945 },3946 "required": [3947 "_tag",3948 "next",3949 "retryable",3950 "decision"3951 ],3952 "type": "object"3953 },3954 "DenouncedEncoded": {3955 "additionalProperties": true,3956 "properties": {3957 "_tag": {3958 "enum": [3959 "Denounced"3960 ],3961 "type": "string"3962 },3963 "at": {3964 "additionalProperties": true,3965 "properties": {3966 "line": {3967 "minimum": 1,3968 "type": "integer"3969 },3970 "path": {3971 "minLength": 1,3972 "type": "string"3973 }3974 },3975 "required": [3976 "line",3977 "path"3978 ],3979 "type": "object"3980 },3981 "next": {3982 "minLength": 1,3983 "type": "string"3984 },3985 "retryable": {3986 "enum": [3987 false3988 ],3989 "type": "boolean"3990 }3991 },3992 "required": [3993 "_tag",3994 "next",3995 "retryable"3996 ],3997 "type": "object"3998 },3999 "DirectPushEncoded": {4000 "additionalProperties": true,4001 "properties": {4002 "_tag": {4003 "enum": [4004 "DirectPush"4005 ],4006 "type": "string"4007 },4008 "at": {4009 "additionalProperties": true,4010 "properties": {4011 "line": {4012 "minimum": 1,4013 "type": "integer"4014 },4015 "path": {4016 "minLength": 1,4017 "type": "string"4018 }4019 },4020 "required": [4021 "line",4022 "path"4023 ],4024 "type": "object"4025 },4026 "next": {4027 "minLength": 1,4028 "type": "string"4029 },4030 "ref": {4031 "minLength": 1,4032 "type": "string"4033 },4034 "retryable": {4035 "enum": [4036 false4037 ],4038 "type": "boolean"4039 }4040 },4041 "required": [4042 "_tag",4043 "next",4044 "retryable",4045 "ref"4046 ],4047 "type": "object"4048 },4049 "FlakeEncoded": {4050 "additionalProperties": true,4051 "properties": {4052 "_tag": {4053 "enum": [4054 "Flake"4055 ],4056 "type": "string"4057 },4058 "at": {4059 "additionalProperties": true,4060 "properties": {4061 "line": {4062 "minimum": 1,4063 "type": "integer"4064 },4065 "path": {4066 "minLength": 1,4067 "type": "string"4068 }4069 },4070 "required": [4071 "line",4072 "path"4073 ],4074 "type": "object"4075 },4076 "lane": {4077 "minLength": 1,4078 "type": "string"4079 },4080 "next": {4081 "minLength": 1,4082 "type": "string"4083 },4084 "retryable": {4085 "enum": [4086 true4087 ],4088 "type": "boolean"4089 }4090 },4091 "required": [4092 "_tag",4093 "next",4094 "retryable",4095 "lane"4096 ],4097 "type": "object"4098 },4099 "HeldBackFailedEncoded": {4100 "additionalProperties": true,4101 "properties": {4102 "_tag": {4103 "enum": [4104 "HeldBackFailed"4105 ],4106 "type": "string"4107 },4108 "area": {4109 "minLength": 1,4110 "type": "string"4111 },4112 "at": {4113 "additionalProperties": true,4114 "properties": {4115 "line": {4116 "minimum": 1,4117 "type": "integer"4118 },4119 "path": {4120 "minLength": 1,4121 "type": "string"4122 }4123 },4124 "required": [4125 "line",4126 "path"4127 ],4128 "type": "object"4129 },4130 "next": {4131 "minLength": 1,4132 "type": "string"4133 },4134 "retryable": {4135 "enum": [4136 false4137 ],4138 "type": "boolean"4139 },4140 "suite": {4141 "minLength": 1,4142 "type": "string"4143 }4144 },4145 "required": [4146 "_tag",4147 "next",4148 "retryable",4149 "area",4150 "suite"4151 ],4152 "type": "object"4153 },4154 "ImportFailedEncoded": {4155 "additionalProperties": true,4156 "properties": {4157 "_tag": {4158 "enum": [4159 "ImportFailed"4160 ],4161 "type": "string"4162 },4163 "at": {4164 "additionalProperties": true,4165 "properties": {4166 "line": {4167 "minimum": 1,4168 "type": "integer"4169 },4170 "path": {4171 "minLength": 1,4172 "type": "string"4173 }4174 },4175 "required": [4176 "line",4177 "path"4178 ],4179 "type": "object"4180 },4181 "next": {4182 "minLength": 1,4183 "type": "string"4184 },4185 "reason": {4186 "minLength": 1,4187 "type": "string"4188 },4189 "retryable": {4190 "enum": [4191 true4192 ],4193 "type": "boolean"4194 }4195 },4196 "required": [4197 "_tag",4198 "next",4199 "retryable",4200 "reason"4201 ],4202 "type": "object"4203 },4204 "IncompleteBriefEncoded": {4205 "additionalProperties": true,4206 "properties": {4207 "_tag": {4208 "enum": [4209 "IncompleteBrief"4210 ],4211 "type": "string"4212 },4213 "at": {4214 "additionalProperties": true,4215 "properties": {4216 "line": {4217 "minimum": 1,4218 "type": "integer"4219 },4220 "path": {4221 "minLength": 1,4222 "type": "string"4223 }4224 },4225 "required": [4226 "line",4227 "path"4228 ],4229 "type": "object"4230 },4231 "missing": {4232 "items": {4233 "minLength": 1,4234 "type": "string"4235 },4236 "minItems": 1,4237 "prefixItems": [4238 {4239 "minLength": 1,4240 "type": "string"4241 }4242 ],4243 "type": "array"4244 },4245 "next": {4246 "minLength": 1,4247 "type": "string"4248 },4249 "retryable": {4250 "enum": [4251 false4252 ],4253 "type": "boolean"4254 }4255 },4256 "required": [4257 "_tag",4258 "next",4259 "retryable",4260 "missing"4261 ],4262 "type": "object"4263 },4264 "LayerContentInPublicTreeEncoded": {4265 "additionalProperties": true,4266 "properties": {4267 "_tag": {4268 "enum": [4269 "LayerContentInPublicTree"4270 ],4271 "type": "string"4272 },4273 "at": {4274 "additionalProperties": true,4275 "properties": {4276 "line": {4277 "minimum": 1,4278 "type": "integer"4279 },4280 "path": {4281 "minLength": 1,4282 "type": "string"4283 }4284 },4285 "required": [4286 "line",4287 "path"4288 ],4289 "type": "object"4290 },4291 "next": {4292 "minLength": 1,4293 "type": "string"4294 },4295 "paths": {4296 "items": {4297 "minLength": 1,4298 "type": "string"4299 },4300 "minItems": 1,4301 "prefixItems": [4302 {4303 "minLength": 1,4304 "type": "string"4305 }4306 ],4307 "type": "array"4308 },4309 "retryable": {4310 "enum": [4311 false4312 ],4313 "type": "boolean"4314 }4315 },4316 "required": [4317 "_tag",4318 "next",4319 "retryable",4320 "paths"4321 ],4322 "type": "object"4323 },4324 "NoAskEncoded": {4325 "additionalProperties": true,4326 "properties": {4327 "_tag": {4328 "enum": [4329 "NoAsk"4330 ],4331 "type": "string"4332 },4333 "at": {4334 "additionalProperties": true,4335 "properties": {4336 "line": {4337 "minimum": 1,4338 "type": "integer"4339 },4340 "path": {4341 "minLength": 1,4342 "type": "string"4343 }4344 },4345 "required": [4346 "line",4347 "path"4348 ],4349 "type": "object"4350 },4351 "next": {4352 "minLength": 1,4353 "type": "string"4354 },4355 "retryable": {4356 "enum": [4357 false4358 ],4359 "type": "boolean"4360 }4361 },4362 "required": [4363 "_tag",4364 "next",4365 "retryable"4366 ],4367 "type": "object"4368 },4369 "NotClaimedEncoded": {4370 "additionalProperties": true,4371 "properties": {4372 "_tag": {4373 "enum": [4374 "NotClaimed"4375 ],4376 "type": "string"4377 },4378 "ask": {4379 "allOf": [4380 {4381 "not": {4382 "enum": [4383 "me",4384 "layer"4385 ]4386 }4387 }4388 ],4389 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4390 "type": "string"4391 },4392 "at": {4393 "additionalProperties": true,4394 "properties": {4395 "line": {4396 "minimum": 1,4397 "type": "integer"4398 },4399 "path": {4400 "minLength": 1,4401 "type": "string"4402 }4403 },4404 "required": [4405 "line",4406 "path"4407 ],4408 "type": "object"4409 },4410 "next": {4411 "minLength": 1,4412 "type": "string"4413 },4414 "retryable": {4415 "enum": [4416 true4417 ],4418 "type": "boolean"4419 }4420 },4421 "required": [4422 "_tag",4423 "next",4424 "retryable",4425 "ask"4426 ],4427 "type": "object"4428 },4429 "NotDeciderEncoded": {4430 "additionalProperties": true,4431 "properties": {4432 "_tag": {4433 "enum": [4434 "NotDecider"4435 ],4436 "type": "string"4437 },4438 "at": {4439 "additionalProperties": true,4440 "properties": {4441 "line": {4442 "minimum": 1,4443 "type": "integer"4444 },4445 "path": {4446 "minLength": 1,4447 "type": "string"4448 }4449 },4450 "required": [4451 "line",4452 "path"4453 ],4454 "type": "object"4455 },4456 "next": {4457 "minLength": 1,4458 "type": "string"4459 },4460 "retryable": {4461 "enum": [4462 false4463 ],4464 "type": "boolean"4465 }4466 },4467 "required": [4468 "_tag",4469 "next",4470 "retryable"4471 ],4472 "type": "object"4473 },4474 "NotRedFirstEncoded": {4475 "additionalProperties": true,4476 "properties": {4477 "_tag": {4478 "enum": [4479 "NotRedFirst"4480 ],4481 "type": "string"4482 },4483 "at": {4484 "additionalProperties": true,4485 "properties": {4486 "line": {4487 "minimum": 1,4488 "type": "integer"4489 },4490 "path": {4491 "minLength": 1,4492 "type": "string"4493 }4494 },4495 "required": [4496 "line",4497 "path"4498 ],4499 "type": "object"4500 },4501 "next": {4502 "minLength": 1,4503 "type": "string"4504 },4505 "retryable": {4506 "enum": [4507 false4508 ],4509 "type": "boolean"4510 }4511 },4512 "required": [4513 "_tag",4514 "next",4515 "retryable"4516 ],4517 "type": "object"4518 },4519 "NotSensitiveEncoded": {4520 "additionalProperties": true,4521 "properties": {4522 "_tag": {4523 "enum": [4524 "NotSensitive"4525 ],4526 "type": "string"4527 },4528 "at": {4529 "additionalProperties": true,4530 "properties": {4531 "line": {4532 "minimum": 1,4533 "type": "integer"4534 },4535 "path": {4536 "minLength": 1,4537 "type": "string"4538 }4539 },4540 "required": [4541 "line",4542 "path"4543 ],4544 "type": "object"4545 },4546 "key": {4547 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",4548 "type": "string"4549 },4550 "next": {4551 "minLength": 1,4552 "type": "string"4553 },4554 "retryable": {4555 "enum": [4556 false4557 ],4558 "type": "boolean"4559 }4560 },4561 "required": [4562 "_tag",4563 "next",4564 "retryable",4565 "key"4566 ],4567 "type": "object"4568 },4569 "NotVouchedEncoded": {4570 "additionalProperties": true,4571 "properties": {4572 "_tag": {4573 "enum": [4574 "NotVouched"4575 ],4576 "type": "string"4577 },4578 "at": {4579 "additionalProperties": true,4580 "properties": {4581 "line": {4582 "minimum": 1,4583 "type": "integer"4584 },4585 "path": {4586 "minLength": 1,4587 "type": "string"4588 }4589 },4590 "required": [4591 "line",4592 "path"4593 ],4594 "type": "object"4595 },4596 "next": {4597 "minLength": 1,4598 "type": "string"4599 },4600 "retryable": {4601 "enum": [4602 false4603 ],4604 "type": "boolean"4605 }4606 },4607 "required": [4608 "_tag",4609 "next",4610 "retryable"4611 ],4612 "type": "object"4613 },4614 "OutOfScopeEncoded": {4615 "additionalProperties": true,4616 "properties": {4617 "_tag": {4618 "enum": [4619 "OutOfScope"4620 ],4621 "type": "string"4622 },4623 "at": {4624 "additionalProperties": true,4625 "properties": {4626 "line": {4627 "minimum": 1,4628 "type": "integer"4629 },4630 "path": {4631 "minLength": 1,4632 "type": "string"4633 }4634 },4635 "required": [4636 "line",4637 "path"4638 ],4639 "type": "object"4640 },4641 "next": {4642 "minLength": 1,4643 "type": "string"4644 },4645 "paths": {4646 "items": {4647 "minLength": 1,4648 "type": "string"4649 },4650 "minItems": 1,4651 "prefixItems": [4652 {4653 "minLength": 1,4654 "type": "string"4655 }4656 ],4657 "type": "array"4658 },4659 "retryable": {4660 "enum": [4661 false4662 ],4663 "type": "boolean"4664 }4665 },4666 "required": [4667 "_tag",4668 "next",4669 "retryable",4670 "paths"4671 ],4672 "type": "object"4673 },4674 "PostureChangeEncoded": {4675 "additionalProperties": true,4676 "properties": {4677 "_tag": {4678 "enum": [4679 "PostureChange"4680 ],4681 "type": "string"4682 },4683 "at": {4684 "additionalProperties": true,4685 "properties": {4686 "line": {4687 "minimum": 1,4688 "type": "integer"4689 },4690 "path": {4691 "minLength": 1,4692 "type": "string"4693 }4694 },4695 "required": [4696 "line",4697 "path"4698 ],4699 "type": "object"4700 },4701 "from": {4702 "enum": [4703 "open",4704 "openWithSealedEvidence",4705 "openOnSchedule",4706 "openCore",4707 "sourceAvailable"4708 ],4709 "type": "string"4710 },4711 "next": {4712 "minLength": 1,4713 "type": "string"4714 },4715 "retryable": {4716 "enum": [4717 false4718 ],4719 "type": "boolean"4720 },4721 "to": {4722 "enum": [4723 "open",4724 "openWithSealedEvidence",4725 "openOnSchedule",4726 "openCore",4727 "sourceAvailable"4728 ],4729 "type": "string"4730 }4731 },4732 "required": [4733 "_tag",4734 "next",4735 "retryable",4736 "from",4737 "to"4738 ],4739 "type": "object"4740 },4741 "PrivatePathInPublicTreeEncoded": {4742 "additionalProperties": true,4743 "properties": {4744 "_tag": {4745 "enum": [4746 "PrivatePathInPublicTree"4747 ],4748 "type": "string"4749 },4750 "at": {4751 "additionalProperties": true,4752 "properties": {4753 "line": {4754 "minimum": 1,4755 "type": "integer"4756 },4757 "path": {4758 "minLength": 1,4759 "type": "string"4760 }4761 },4762 "required": [4763 "line",4764 "path"4765 ],4766 "type": "object"4767 },4768 "next": {4769 "minLength": 1,4770 "type": "string"4771 },4772 "paths": {4773 "items": {4774 "minLength": 1,4775 "type": "string"4776 },4777 "minItems": 1,4778 "prefixItems": [4779 {4780 "minLength": 1,4781 "type": "string"4782 }4783 ],4784 "type": "array"4785 },4786 "retryable": {4787 "enum": [4788 false4789 ],4790 "type": "boolean"4791 }4792 },4793 "required": [4794 "_tag",4795 "next",4796 "retryable",4797 "paths"4798 ],4799 "type": "object"4800 },4801 "ProjectExistsEncoded": {4802 "additionalProperties": true,4803 "properties": {4804 "_tag": {4805 "enum": [4806 "ProjectExists"4807 ],4808 "type": "string"4809 },4810 "at": {4811 "additionalProperties": true,4812 "properties": {4813 "line": {4814 "minimum": 1,4815 "type": "integer"4816 },4817 "path": {4818 "minLength": 1,4819 "type": "string"4820 }4821 },4822 "required": [4823 "line",4824 "path"4825 ],4826 "type": "object"4827 },4828 "next": {4829 "minLength": 1,4830 "type": "string"4831 },4832 "project": {4833 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4834 "type": "string"4835 },4836 "retryable": {4837 "enum": [4838 false4839 ],4840 "type": "boolean"4841 }4842 },4843 "required": [4844 "_tag",4845 "next",4846 "retryable",4847 "project"4848 ],4849 "type": "object"4850 },4851 "ReachedInternalsEncoded": {4852 "additionalProperties": true,4853 "properties": {4854 "_tag": {4855 "enum": [4856 "ReachedInternals"4857 ],4858 "type": "string"4859 },4860 "at": {4861 "additionalProperties": true,4862 "properties": {4863 "line": {4864 "minimum": 1,4865 "type": "integer"4866 },4867 "path": {4868 "minLength": 1,4869 "type": "string"4870 }4871 },4872 "required": [4873 "line",4874 "path"4875 ],4876 "type": "object"4877 },4878 "from": {4879 "minLength": 1,4880 "type": "string"4881 },4882 "next": {4883 "minLength": 1,4884 "type": "string"4885 },4886 "retryable": {4887 "enum": [4888 false4889 ],4890 "type": "boolean"4891 },4892 "to": {4893 "minLength": 1,4894 "type": "string"4895 }4896 },4897 "required": [4898 "_tag",4899 "next",4900 "retryable",4901 "from",4902 "to"4903 ],4904 "type": "object"4905 },4906 "RepoBusyEncoded": {4907 "additionalProperties": true,4908 "properties": {4909 "_tag": {4910 "enum": [4911 "RepoBusy"4912 ],4913 "type": "string"4914 },4915 "at": {4916 "additionalProperties": true,4917 "properties": {4918 "line": {4919 "minimum": 1,4920 "type": "integer"4921 },4922 "path": {4923 "minLength": 1,4924 "type": "string"4925 }4926 },4927 "required": [4928 "line",4929 "path"4930 ],4931 "type": "object"4932 },4933 "next": {4934 "minLength": 1,4935 "type": "string"4936 },4937 "retryable": {4938 "enum": [4939 true4940 ],4941 "type": "boolean"4942 }4943 },4944 "required": [4945 "_tag",4946 "next",4947 "retryable"4948 ],4949 "type": "object"4950 },4951 "SecretInOutputEncoded": {4952 "additionalProperties": true,4953 "properties": {4954 "_tag": {4955 "enum": [4956 "SecretInOutput"4957 ],4958 "type": "string"4959 },4960 "at": {4961 "additionalProperties": true,4962 "properties": {4963 "line": {4964 "minimum": 1,4965 "type": "integer"4966 },4967 "path": {4968 "minLength": 1,4969 "type": "string"4970 }4971 },4972 "required": [4973 "line",4974 "path"4975 ],4976 "type": "object"4977 },4978 "item": {4979 "minLength": 1,4980 "type": "string"4981 },4982 "next": {4983 "minLength": 1,4984 "type": "string"4985 },4986 "retryable": {4987 "enum": [4988 false4989 ],4990 "type": "boolean"4991 },4992 "where": {4993 "enum": [4994 "output",4995 "tree"4996 ],4997 "type": "string"4998 }4999 },5000 "required": [5001 "_tag",5002 "next",5003 "retryable",5004 "item",5005 "where"5006 ],5007 "type": "object"5008 },5009 "StaleBaseEncoded": {5010 "additionalProperties": true,5011 "properties": {5012 "_tag": {5013 "enum": [5014 "StaleBase"5015 ],5016 "type": "string"5017 },5018 "at": {5019 "additionalProperties": true,5020 "properties": {5021 "line": {5022 "minimum": 1,5023 "type": "integer"5024 },5025 "path": {5026 "minLength": 1,5027 "type": "string"5028 }5029 },5030 "required": [5031 "line",5032 "path"5033 ],5034 "type": "object"5035 },5036 "base": {5037 "pattern": "^[0-9a-f]{40}$",5038 "type": "string"5039 },5040 "conflicts": {5041 "items": {5042 "minLength": 1,5043 "type": "string"5044 },5045 "type": "array"5046 },5047 "main": {5048 "pattern": "^[0-9a-f]{40}$",5049 "type": "string"5050 },5051 "next": {5052 "minLength": 1,5053 "type": "string"5054 },5055 "retryable": {5056 "enum": [5057 true5058 ],5059 "type": "boolean"5060 }5061 },5062 "required": [5063 "_tag",5064 "next",5065 "retryable",5066 "base",5067 "conflicts",5068 "main"5069 ],5070 "type": "object"5071 },5072 "StaleLayerEncoded": {5073 "additionalProperties": true,5074 "properties": {5075 "_tag": {5076 "enum": [5077 "StaleLayer"5078 ],5079 "type": "string"5080 },5081 "at": {5082 "additionalProperties": true,5083 "properties": {5084 "line": {5085 "minimum": 1,5086 "type": "integer"5087 },5088 "path": {5089 "minLength": 1,5090 "type": "string"5091 }5092 },5093 "required": [5094 "line",5095 "path"5096 ],5097 "type": "object"5098 },5099 "layer": {5100 "minLength": 1,5101 "type": "string"5102 },5103 "next": {5104 "minLength": 1,5105 "type": "string"5106 },5107 "retryable": {5108 "enum": [5109 true5110 ],5111 "type": "boolean"5112 }5113 },5114 "required": [5115 "_tag",5116 "next",5117 "retryable",5118 "layer"5119 ],5120 "type": "object"5121 },5122 "TouchedJudgeEncoded": {5123 "additionalProperties": true,5124 "properties": {5125 "_tag": {5126 "enum": [5127 "TouchedJudge"5128 ],5129 "type": "string"5130 },5131 "at": {5132 "additionalProperties": true,5133 "properties": {5134 "line": {5135 "minimum": 1,5136 "type": "integer"5137 },5138 "path": {5139 "minLength": 1,5140 "type": "string"5141 }5142 },5143 "required": [5144 "line",5145 "path"5146 ],5147 "type": "object"5148 },5149 "next": {5150 "minLength": 1,5151 "type": "string"5152 },5153 "paths": {5154 "items": {5155 "minLength": 1,5156 "type": "string"5157 },5158 "minItems": 1,5159 "prefixItems": [5160 {5161 "minLength": 1,5162 "type": "string"5163 }5164 ],5165 "type": "array"5166 },5167 "retryable": {5168 "enum": [5169 false5170 ],5171 "type": "boolean"5172 }5173 },5174 "required": [5175 "_tag",5176 "next",5177 "retryable",5178 "paths"5179 ],5180 "type": "object"5181 },5182 "UnknownAskEncoded": {5183 "additionalProperties": true,5184 "properties": {5185 "_tag": {5186 "enum": [5187 "UnknownAsk"5188 ],5189 "type": "string"5190 },5191 "ask": {5192 "allOf": [5193 {5194 "not": {5195 "enum": [5196 "me",5197 "layer"5198 ]5199 }5200 }5201 ],5202 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5203 "type": "string"5204 },5205 "at": {5206 "additionalProperties": true,5207 "properties": {5208 "line": {5209 "minimum": 1,5210 "type": "integer"5211 },5212 "path": {5213 "minLength": 1,5214 "type": "string"5215 }5216 },5217 "required": [5218 "line",5219 "path"5220 ],5221 "type": "object"5222 },5223 "next": {5224 "minLength": 1,5225 "type": "string"5226 },5227 "retryable": {5228 "enum": [5229 false5230 ],5231 "type": "boolean"5232 }5233 },5234 "required": [5235 "_tag",5236 "next",5237 "retryable",5238 "ask"5239 ],5240 "type": "object"5241 },5242 "UnknownCommitEncoded": {5243 "additionalProperties": true,5244 "properties": {5245 "_tag": {5246 "enum": [5247 "UnknownCommit"5248 ],5249 "type": "string"5250 },5251 "at": {5252 "additionalProperties": true,5253 "properties": {5254 "line": {5255 "minimum": 1,5256 "type": "integer"5257 },5258 "path": {5259 "minLength": 1,5260 "type": "string"5261 }5262 },5263 "required": [5264 "line",5265 "path"5266 ],5267 "type": "object"5268 },5269 "next": {5270 "minLength": 1,5271 "type": "string"5272 },5273 "retryable": {5274 "enum": [5275 false5276 ],5277 "type": "boolean"5278 },5279 "sha": {5280 "pattern": "^[0-9a-f]{40}$",5281 "type": "string"5282 }5283 },5284 "required": [5285 "_tag",5286 "next",5287 "retryable",5288 "sha"5289 ],5290 "type": "object"5291 },5292 "UnknownDecisionEncoded": {5293 "additionalProperties": true,5294 "properties": {5295 "_tag": {5296 "enum": [5297 "UnknownDecision"5298 ],5299 "type": "string"5300 },5301 "at": {5302 "additionalProperties": true,5303 "properties": {5304 "line": {5305 "minimum": 1,5306 "type": "integer"5307 },5308 "path": {5309 "minLength": 1,5310 "type": "string"5311 }5312 },5313 "required": [5314 "line",5315 "path"5316 ],5317 "type": "object"5318 },5319 "decision": {5320 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",5321 "type": "string"5322 },5323 "next": {5324 "minLength": 1,5325 "type": "string"5326 },5327 "retryable": {5328 "enum": [5329 false5330 ],5331 "type": "boolean"5332 }5333 },5334 "required": [5335 "_tag",5336 "next",5337 "retryable",5338 "decision"5339 ],5340 "type": "object"5341 },5342 "UnknownEnvItemEncoded": {5343 "additionalProperties": true,5344 "properties": {5345 "_tag": {5346 "enum": [5347 "UnknownEnvItem"5348 ],5349 "type": "string"5350 },5351 "at": {5352 "additionalProperties": true,5353 "properties": {5354 "line": {5355 "minimum": 1,5356 "type": "integer"5357 },5358 "path": {5359 "minLength": 1,5360 "type": "string"5361 }5362 },5363 "required": [5364 "line",5365 "path"5366 ],5367 "type": "object"5368 },5369 "key": {5370 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",5371 "type": "string"5372 },5373 "next": {5374 "minLength": 1,5375 "type": "string"5376 },5377 "retryable": {5378 "enum": [5379 false5380 ],5381 "type": "boolean"5382 }5383 },5384 "required": [5385 "_tag",5386 "next",5387 "retryable",5388 "key"5389 ],5390 "type": "object"5391 },5392 "UnknownProjectEncoded": {5393 "additionalProperties": true,5394 "properties": {5395 "_tag": {5396 "enum": [5397 "UnknownProject"5398 ],5399 "type": "string"5400 },5401 "at": {5402 "additionalProperties": true,5403 "properties": {5404 "line": {5405 "minimum": 1,5406 "type": "integer"5407 },5408 "path": {5409 "minLength": 1,5410 "type": "string"5411 }5412 },5413 "required": [5414 "line",5415 "path"5416 ],5417 "type": "object"5418 },5419 "next": {5420 "minLength": 1,5421 "type": "string"5422 },5423 "project": {5424 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5425 "type": "string"5426 },5427 "retryable": {5428 "enum": [5429 false5430 ],5431 "type": "boolean"5432 }5433 },5434 "required": [5435 "_tag",5436 "next",5437 "retryable",5438 "project"5439 ],5440 "type": "object"5441 },5442 "UnstatedRequirementEncoded": {5443 "additionalProperties": true,5444 "properties": {5445 "_tag": {5446 "enum": [5447 "UnstatedRequirement"5448 ],5449 "type": "string"5450 },5451 "area": {5452 "minLength": 1,5453 "type": "string"5454 },5455 "at": {5456 "additionalProperties": true,5457 "properties": {5458 "line": {5459 "minimum": 1,5460 "type": "integer"5461 },5462 "path": {5463 "minLength": 1,5464 "type": "string"5465 }5466 },5467 "required": [5468 "line",5469 "path"5470 ],5471 "type": "object"5472 },5473 "next": {5474 "minLength": 1,5475 "type": "string"5476 },5477 "retryable": {5478 "enum": [5479 false5480 ],5481 "type": "boolean"5482 }5483 },5484 "required": [5485 "_tag",5486 "next",5487 "retryable",5488 "area"5489 ],5490 "type": "object"5491 },5492 "ValueTooShortEncoded": {5493 "additionalProperties": true,5494 "properties": {5495 "_tag": {5496 "enum": [5497 "ValueTooShort"5498 ],5499 "type": "string"5500 },5501 "at": {5502 "additionalProperties": true,5503 "properties": {5504 "line": {5505 "minimum": 1,5506 "type": "integer"5507 },5508 "path": {5509 "minLength": 1,5510 "type": "string"5511 }5512 },5513 "required": [5514 "line",5515 "path"5516 ],5517 "type": "object"5518 },5519 "key": {5520 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",5521 "type": "string"5522 },5523 "minimum": {5524 "type": "integer"5525 },5526 "next": {5527 "minLength": 1,5528 "type": "string"5529 },5530 "retryable": {5531 "enum": [5532 false5533 ],5534 "type": "boolean"5535 }5536 },5537 "required": [5538 "_tag",5539 "next",5540 "retryable",5541 "key",5542 "minimum"5543 ],5544 "type": "object"5545 },5546 "VerifierBlockedEncoded": {5547 "additionalProperties": true,5548 "properties": {5549 "_tag": {5550 "enum": [5551 "VerifierBlocked"5552 ],5553 "type": "string"5554 },5555 "at": {5556 "additionalProperties": true,5557 "properties": {5558 "line": {5559 "minimum": 1,5560 "type": "integer"5561 },5562 "path": {5563 "minLength": 1,5564 "type": "string"5565 }5566 },5567 "required": [5568 "line",5569 "path"5570 ],5571 "type": "object"5572 },5573 "next": {5574 "minLength": 1,5575 "type": "string"5576 },5577 "retryable": {5578 "enum": [5579 true5580 ],5581 "type": "boolean"5582 }5583 },5584 "required": [5585 "_tag",5586 "next",5587 "retryable"5588 ],5589 "type": "object"5590 },5591 "WeakCheckEncoded": {5592 "additionalProperties": true,5593 "properties": {5594 "_tag": {5595 "enum": [5596 "WeakCheck"5597 ],5598 "type": "string"5599 },5600 "at": {5601 "additionalProperties": true,5602 "properties": {5603 "line": {5604 "minimum": 1,5605 "type": "integer"5606 },5607 "path": {5608 "minLength": 1,5609 "type": "string"5610 }5611 },5612 "required": [5613 "line",5614 "path"5615 ],5616 "type": "object"5617 },5618 "next": {5619 "minLength": 1,5620 "type": "string"5621 },5622 "retryable": {5623 "enum": [5624 false5625 ],5626 "type": "boolean"5627 },5628 "weakness": {5629 "minLength": 1,5630 "type": "string"5631 }5632 },5633 "required": [5634 "_tag",5635 "next",5636 "retryable",5637 "weakness"5638 ],5639 "type": "object"5640 },5641 "WeakenedEncoded": {5642 "additionalProperties": true,5643 "properties": {5644 "_tag": {5645 "enum": [5646 "Weakened"5647 ],5648 "type": "string"5649 },5650 "at": {5651 "additionalProperties": true,5652 "properties": {5653 "line": {5654 "minimum": 1,5655 "type": "integer"5656 },5657 "path": {5658 "minLength": 1,5659 "type": "string"5660 }5661 },5662 "required": [5663 "line",5664 "path"5665 ],5666 "type": "object"5667 },5668 "next": {5669 "minLength": 1,5670 "type": "string"5671 },5672 "retryable": {5673 "enum": [5674 false5675 ],5676 "type": "boolean"5677 },5678 "weakening": {5679 "anyOf": [5680 {5681 "additionalProperties": true,5682 "properties": {5683 "marker": {5684 "minLength": 1,5685 "type": "string"5686 },5687 "reason": {5688 "minLength": 1,5689 "type": "string"5690 }5691 },5692 "required": [5693 "marker"5694 ],5695 "type": "object"5696 },5697 {5698 "additionalProperties": true,5699 "properties": {5700 "after": {5701 "type": "integer"5702 },5703 "before": {5704 "type": "integer"5705 },5706 "ratchet": {5707 "minLength": 1,5708 "type": "string"5709 },5710 "territory": {5711 "minLength": 1,5712 "type": "string"5713 }5714 },5715 "required": [5716 "after",5717 "before",5718 "ratchet",5719 "territory"5720 ],5721 "type": "object"5722 }5723 ]5724 }5725 },5726 "required": [5727 "_tag",5728 "next",5729 "retryable",5730 "weakening"5731 ],5732 "type": "object"5733 }5734 },5735 "additionalProperties": true,5736 "properties": {5737 "verdict": {5738 "additionalProperties": true,5739 "properties": {5740 "ask": {5741 "allOf": [5742 {5743 "not": {5744 "enum": [5745 "me",5746 "layer"5747 ]5748 }5749 }5750 ],5751 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5752 "type": "string"5753 },5754 "at": {5755 "type": "string"5756 },5757 "base": {5758 "pattern": "^[0-9a-f]{40}$",5759 "type": "string"5760 },5761 "checkVersion": {5762 "minLength": 1,5763 "type": "string"5764 },5765 "head": {5766 "pattern": "^[0-9a-f]{40}$",5767 "type": "string"5768 },5769 "heldBack": {5770 "items": {5771 "additionalProperties": true,5772 "properties": {5773 "area": {5774 "pattern": "^[a-z][a-zA-Z0-9-]*$",5775 "type": "string"5776 },5777 "passed": {5778 "type": "integer"5779 },5780 "suite": {5781 "pattern": "^sha256:[0-9a-f]{64}$",5782 "type": "string"5783 },5784 "total": {5785 "type": "integer"5786 }5787 },5788 "required": [5789 "area",5790 "passed",5791 "suite",5792 "total"5793 ],5794 "type": "object"5795 },5796 "type": "array"5797 },5798 "lanes": {5799 "items": {5800 "additionalProperties": true,5801 "properties": {5802 "command": {5803 "minLength": 1,5804 "type": "string"5805 },5806 "durationMs": {5807 "type": "integer"5808 },5809 "lane": {5810 "pattern": "^[a-z][a-zA-Z0-9-]*$",5811 "type": "string"5812 },5813 "logRef": {5814 "minLength": 1,5815 "type": "string"5816 },5817 "result": {5818 "enum": [5819 "passed",5820 "failed",5821 "loadError",5822 "flaked",5823 "blocked"5824 ],5825 "type": "string"5826 }5827 },5828 "required": [5829 "command",5830 "durationMs",5831 "lane",5832 "result"5833 ],5834 "type": "object"5835 },5836 "type": "array"5837 },5838 "outcome": {5839 "anyOf": [5840 {5841 "additionalProperties": true,5842 "properties": {5843 "_tag": {5844 "enum": [5845 "AwaitingDecision"5846 ],5847 "type": "string"5848 },5849 "decision": {5850 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",5851 "type": "string"5852 }5853 },5854 "required": [5855 "_tag",5856 "decision"5857 ],5858 "type": "object"5859 },5860 {5861 "additionalProperties": true,5862 "properties": {5863 "_tag": {5864 "enum": [5865 "AwaitingFinish"5866 ],5867 "type": "string"5868 },5869 "decider": {5870 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",5871 "type": "string"5872 }5873 },5874 "required": [5875 "_tag"5876 ],5877 "type": "object"5878 },5879 {5880 "additionalProperties": true,5881 "properties": {5882 "_tag": {5883 "enum": [5884 "Checking"5885 ],5886 "type": "string"5887 },5888 "stage": {5889 "enum": [5890 "parse",5891 "shape",5892 "merge",5893 "cheap",5894 "checks",5895 "heldBack",5896 "human"5897 ],5898 "type": "string"5899 }5900 },5901 "required": [5902 "_tag",5903 "stage"5904 ],5905 "type": "object"5906 },5907 {5908 "additionalProperties": true,5909 "properties": {5910 "_tag": {5911 "enum": [5912 "Landed"5913 ],5914 "type": "string"5915 },5916 "sha": {5917 "pattern": "^[0-9a-f]{40}$",5918 "type": "string"5919 }5920 },5921 "required": [5922 "_tag",5923 "sha"5924 ],5925 "type": "object"5926 },5927 {5928 "additionalProperties": true,5929 "properties": {5930 "_tag": {5931 "enum": [5932 "Refused"5933 ],5934 "type": "string"5935 },5936 "refusals": {5937 "items": {5938 "anyOf": [5939 {5940 "$ref": "#/$defs/NotClaimedEncoded"5941 },5942 {5943 "$ref": "#/$defs/ClaimLapsedEncoded"5944 },5945 {5946 "$ref": "#/$defs/NotVouchedEncoded"5947 },5948 {5949 "$ref": "#/$defs/CapReachedEncoded"5950 },5951 {5952 "$ref": "#/$defs/AskFullEncoded"5953 },5954 {5955 "$ref": "#/$defs/NoAskEncoded"5956 },5957 {5958 "$ref": "#/$defs/RepoBusyEncoded"5959 },5960 {5961 "$ref": "#/$defs/DirectPushEncoded"5962 },5963 {5964 "$ref": "#/$defs/AskBlockedEncoded"5965 },5966 {5967 "$ref": "#/$defs/DenouncedEncoded"5968 },5969 {5970 "$ref": "#/$defs/OutOfScopeEncoded"5971 },5972 {5973 "$ref": "#/$defs/TouchedJudgeEncoded"5974 },5975 {5976 "$ref": "#/$defs/WeakenedEncoded"5977 },5978 {5979 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"5980 },5981 {5982 "$ref": "#/$defs/ReachedInternalsEncoded"5983 },5984 {5985 "$ref": "#/$defs/StaleBaseEncoded"5986 },5987 {5988 "$ref": "#/$defs/StaleLayerEncoded"5989 },5990 {5991 "$ref": "#/$defs/ChecksFailedEncoded"5992 },5993 {5994 "$ref": "#/$defs/HeldBackFailedEncoded"5995 },5996 {5997 "$ref": "#/$defs/AttemptsExhaustedEncoded"5998 },5999 {6000 "$ref": "#/$defs/FlakeEncoded"6001 },6002 {6003 "$ref": "#/$defs/VerifierBlockedEncoded"6004 },6005 {6006 "$ref": "#/$defs/NotRedFirstEncoded"6007 },6008 {6009 "$ref": "#/$defs/WeakCheckEncoded"6010 },6011 {6012 "$ref": "#/$defs/IncompleteBriefEncoded"6013 },6014 {6015 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"6016 },6017 {6018 "$ref": "#/$defs/SecretInOutputEncoded"6019 },6020 {6021 "$ref": "#/$defs/UnstatedRequirementEncoded"6022 },6023 {6024 "$ref": "#/$defs/PostureChangeEncoded"6025 },6026 {6027 "$ref": "#/$defs/NotDeciderEncoded"6028 },6029 {6030 "$ref": "#/$defs/DecisionClosedEncoded"6031 },6032 {6033 "$ref": "#/$defs/UnknownProjectEncoded"6034 },6035 {6036 "$ref": "#/$defs/UnknownAskEncoded"6037 },6038 {6039 "$ref": "#/$defs/UnknownCommitEncoded"6040 },6041 {6042 "$ref": "#/$defs/UnknownDecisionEncoded"6043 },6044 {6045 "$ref": "#/$defs/ProjectExistsEncoded"6046 },6047 {6048 "$ref": "#/$defs/ImportFailedEncoded"6049 },6050 {6051 "$ref": "#/$defs/UnknownEnvItemEncoded"6052 },6053 {6054 "$ref": "#/$defs/NotSensitiveEncoded"6055 },6056 {6057 "$ref": "#/$defs/ValueTooShortEncoded"6058 }6059 ]6060 },6061 "minItems": 1,6062 "prefixItems": [6063 {6064 "anyOf": [6065 {6066 "$ref": "#/$defs/NotClaimedEncoded"6067 },6068 {6069 "$ref": "#/$defs/ClaimLapsedEncoded"6070 },6071 {6072 "$ref": "#/$defs/NotVouchedEncoded"6073 },6074 {6075 "$ref": "#/$defs/CapReachedEncoded"6076 },6077 {6078 "$ref": "#/$defs/AskFullEncoded"6079 },6080 {6081 "$ref": "#/$defs/NoAskEncoded"6082 },6083 {6084 "$ref": "#/$defs/RepoBusyEncoded"6085 },6086 {6087 "$ref": "#/$defs/DirectPushEncoded"6088 },6089 {6090 "$ref": "#/$defs/AskBlockedEncoded"6091 },6092 {6093 "$ref": "#/$defs/DenouncedEncoded"6094 },6095 {6096 "$ref": "#/$defs/OutOfScopeEncoded"6097 },6098 {6099 "$ref": "#/$defs/TouchedJudgeEncoded"6100 },6101 {6102 "$ref": "#/$defs/WeakenedEncoded"6103 },6104 {6105 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"6106 },6107 {6108 "$ref": "#/$defs/ReachedInternalsEncoded"6109 },6110 {6111 "$ref": "#/$defs/StaleBaseEncoded"6112 },6113 {6114 "$ref": "#/$defs/StaleLayerEncoded"6115 },6116 {6117 "$ref": "#/$defs/ChecksFailedEncoded"6118 },6119 {6120 "$ref": "#/$defs/HeldBackFailedEncoded"6121 },6122 {6123 "$ref": "#/$defs/AttemptsExhaustedEncoded"6124 },6125 {6126 "$ref": "#/$defs/FlakeEncoded"6127 },6128 {6129 "$ref": "#/$defs/VerifierBlockedEncoded"6130 },6131 {6132 "$ref": "#/$defs/NotRedFirstEncoded"6133 },6134 {6135 "$ref": "#/$defs/WeakCheckEncoded"6136 },6137 {6138 "$ref": "#/$defs/IncompleteBriefEncoded"6139 },6140 {6141 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"6142 },6143 {6144 "$ref": "#/$defs/SecretInOutputEncoded"6145 },6146 {6147 "$ref": "#/$defs/UnstatedRequirementEncoded"6148 },6149 {6150 "$ref": "#/$defs/PostureChangeEncoded"6151 },6152 {6153 "$ref": "#/$defs/NotDeciderEncoded"6154 },6155 {6156 "$ref": "#/$defs/DecisionClosedEncoded"6157 },6158 {6159 "$ref": "#/$defs/UnknownProjectEncoded"6160 },6161 {6162 "$ref": "#/$defs/UnknownAskEncoded"6163 },6164 {6165 "$ref": "#/$defs/UnknownCommitEncoded"6166 },6167 {6168 "$ref": "#/$defs/UnknownDecisionEncoded"6169 },6170 {6171 "$ref": "#/$defs/ProjectExistsEncoded"6172 },6173 {6174 "$ref": "#/$defs/ImportFailedEncoded"6175 },6176 {6177 "$ref": "#/$defs/UnknownEnvItemEncoded"6178 },6179 {6180 "$ref": "#/$defs/NotSensitiveEncoded"6181 },6182 {6183 "$ref": "#/$defs/ValueTooShortEncoded"6184 }6185 ]6186 }6187 ],6188 "type": "array"6189 }6190 },6191 "required": [6192 "_tag",6193 "refusals"6194 ],6195 "type": "object"6196 },6197 {6198 "additionalProperties": true,6199 "properties": {6200 "_tag": {6201 "enum": [6202 "WaitingOnParent"6203 ],6204 "type": "string"6205 },6206 "ask": {6207 "allOf": [6208 {6209 "not": {6210 "enum": [6211 "me",6212 "layer"6213 ]6214 }6215 }6216 ],6217 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6218 "type": "string"6219 }6220 },6221 "required": [6222 "_tag",6223 "ask"6224 ],6225 "type": "object"6226 }6227 ]6228 },6229 "patchId": {6230 "pattern": "^[0-9a-f]{64}$",6231 "type": "string"6232 },6233 "project": {6234 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6235 "type": "string"6236 },6237 "stage": {6238 "enum": [6239 "parse",6240 "shape",6241 "merge",6242 "cheap",6243 "checks",6244 "heldBack",6245 "human"6246 ],6247 "type": "string"6248 },6249 "tree": {6250 "pattern": "^[0-9a-f]{40}$",6251 "type": "string"6252 },6253 "verifier": {6254 "enum": [6255 "platform"6256 ],6257 "type": "string"6258 }6259 },6260 "required": [6261 "ask",6262 "at",6263 "base",6264 "checkVersion",6265 "head",6266 "heldBack",6267 "lanes",6268 "outcome",6269 "patchId",6270 "project",6271 "stage",6272 "tree",6273 "verifier"6274 ],6275 "type": "object"6276 }6277 },6278 "type": "object"6279}6280```62816282## landing62836284Show one landing on a project's main: the ask it answered, the people it credits and its verdict.62856286| Hint | Value |6287| --- | --- |6288| `destructiveHint` | `false` |6289| `idempotentHint` | `true` |6290| `openWorldHint` | `false` |6291| `readOnlyHint` | `true` |62926293### Input62946295```json6296{6297 "additionalProperties": true,6298 "properties": {6299 "project": {6300 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6301 "type": "string"6302 },6303 "sha": {6304 "pattern": "^[0-9a-f]{40}$",6305 "type": "string"6306 }6307 },6308 "required": [6309 "project",6310 "sha"6311 ],6312 "type": "object"6313}6314```63156316### Output63176318```json6319{6320 "$defs": {6321 "AskBlockedEncoded": {6322 "additionalProperties": true,6323 "properties": {6324 "_tag": {6325 "enum": [6326 "AskBlocked"6327 ],6328 "type": "string"6329 },6330 "ask": {6331 "allOf": [6332 {6333 "not": {6334 "enum": [6335 "me",6336 "layer"6337 ]6338 }6339 }6340 ],6341 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6342 "type": "string"6343 },6344 "at": {6345 "additionalProperties": true,6346 "properties": {6347 "line": {6348 "minimum": 1,6349 "type": "integer"6350 },6351 "path": {6352 "minLength": 1,6353 "type": "string"6354 }6355 },6356 "required": [6357 "line",6358 "path"6359 ],6360 "type": "object"6361 },6362 "blockedBy": {6363 "items": {6364 "allOf": [6365 {6366 "not": {6367 "enum": [6368 "me",6369 "layer"6370 ]6371 }6372 }6373 ],6374 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6375 "type": "string"6376 },6377 "minItems": 1,6378 "prefixItems": [6379 {6380 "allOf": [6381 {6382 "not": {6383 "enum": [6384 "me",6385 "layer"6386 ]6387 }6388 }6389 ],6390 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6391 "type": "string"6392 }6393 ],6394 "type": "array"6395 },6396 "next": {6397 "minLength": 1,6398 "type": "string"6399 },6400 "retryable": {6401 "enum": [6402 true6403 ],6404 "type": "boolean"6405 }6406 },6407 "required": [6408 "_tag",6409 "next",6410 "retryable",6411 "ask",6412 "blockedBy"6413 ],6414 "type": "object"6415 },6416 "AskFullEncoded": {6417 "additionalProperties": true,6418 "properties": {6419 "_tag": {6420 "enum": [6421 "AskFull"6422 ],6423 "type": "string"6424 },6425 "ask": {6426 "allOf": [6427 {6428 "not": {6429 "enum": [6430 "me",6431 "layer"6432 ]6433 }6434 }6435 ],6436 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6437 "type": "string"6438 },6439 "at": {6440 "additionalProperties": true,6441 "properties": {6442 "line": {6443 "minimum": 1,6444 "type": "integer"6445 },6446 "path": {6447 "minLength": 1,6448 "type": "string"6449 }6450 },6451 "required": [6452 "line",6453 "path"6454 ],6455 "type": "object"6456 },6457 "next": {6458 "minLength": 1,6459 "type": "string"6460 },6461 "retryable": {6462 "enum": [6463 true6464 ],6465 "type": "boolean"6466 }6467 },6468 "required": [6469 "_tag",6470 "next",6471 "retryable",6472 "ask"6473 ],6474 "type": "object"6475 },6476 "AttemptsExhaustedEncoded": {6477 "additionalProperties": true,6478 "properties": {6479 "_tag": {6480 "enum": [6481 "AttemptsExhausted"6482 ],6483 "type": "string"6484 },6485 "area": {6486 "minLength": 1,6487 "type": "string"6488 },6489 "at": {6490 "additionalProperties": true,6491 "properties": {6492 "line": {6493 "minimum": 1,6494 "type": "integer"6495 },6496 "path": {6497 "minLength": 1,6498 "type": "string"6499 }6500 },6501 "required": [6502 "line",6503 "path"6504 ],6505 "type": "object"6506 },6507 "next": {6508 "minLength": 1,6509 "type": "string"6510 },6511 "resetsAt": {6512 "type": "string"6513 },6514 "retryable": {6515 "enum": [6516 true6517 ],6518 "type": "boolean"6519 }6520 },6521 "required": [6522 "_tag",6523 "next",6524 "retryable",6525 "area",6526 "resetsAt"6527 ],6528 "type": "object"6529 },6530 "CapReachedEncoded": {6531 "additionalProperties": true,6532 "properties": {6533 "_tag": {6534 "enum": [6535 "CapReached"6536 ],6537 "type": "string"6538 },6539 "at": {6540 "additionalProperties": true,6541 "properties": {6542 "line": {6543 "minimum": 1,6544 "type": "integer"6545 },6546 "path": {6547 "minLength": 1,6548 "type": "string"6549 }6550 },6551 "required": [6552 "line",6553 "path"6554 ],6555 "type": "object"6556 },6557 "cap": {6558 "type": "integer"6559 },6560 "next": {6561 "minLength": 1,6562 "type": "string"6563 },6564 "retryable": {6565 "enum": [6566 true6567 ],6568 "type": "boolean"6569 }6570 },6571 "required": [6572 "_tag",6573 "next",6574 "retryable",6575 "cap"6576 ],6577 "type": "object"6578 },6579 "ChecksFailedEncoded": {6580 "additionalProperties": true,6581 "properties": {6582 "_tag": {6583 "enum": [6584 "ChecksFailed"6585 ],6586 "type": "string"6587 },6588 "at": {6589 "additionalProperties": true,6590 "properties": {6591 "line": {6592 "minimum": 1,6593 "type": "integer"6594 },6595 "path": {6596 "minLength": 1,6597 "type": "string"6598 }6599 },6600 "required": [6601 "line",6602 "path"6603 ],6604 "type": "object"6605 },6606 "lane": {6607 "minLength": 1,6608 "type": "string"6609 },6610 "logRef": {6611 "minLength": 1,6612 "type": "string"6613 },6614 "next": {6615 "minLength": 1,6616 "type": "string"6617 },6618 "retryable": {6619 "enum": [6620 false6621 ],6622 "type": "boolean"6623 }6624 },6625 "required": [6626 "_tag",6627 "next",6628 "retryable",6629 "lane",6630 "logRef"6631 ],6632 "type": "object"6633 },6634 "ClaimLapsedEncoded": {6635 "additionalProperties": true,6636 "properties": {6637 "_tag": {6638 "enum": [6639 "ClaimLapsed"6640 ],6641 "type": "string"6642 },6643 "ask": {6644 "allOf": [6645 {6646 "not": {6647 "enum": [6648 "me",6649 "layer"6650 ]6651 }6652 }6653 ],6654 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6655 "type": "string"6656 },6657 "at": {6658 "additionalProperties": true,6659 "properties": {6660 "line": {6661 "minimum": 1,6662 "type": "integer"6663 },6664 "path": {6665 "minLength": 1,6666 "type": "string"6667 }6668 },6669 "required": [6670 "line",6671 "path"6672 ],6673 "type": "object"6674 },6675 "next": {6676 "minLength": 1,6677 "type": "string"6678 },6679 "retryable": {6680 "enum": [6681 true6682 ],6683 "type": "boolean"6684 }6685 },6686 "required": [6687 "_tag",6688 "next",6689 "retryable",6690 "ask"6691 ],6692 "type": "object"6693 },6694 "DecisionClosedEncoded": {6695 "additionalProperties": true,6696 "properties": {6697 "_tag": {6698 "enum": [6699 "DecisionClosed"6700 ],6701 "type": "string"6702 },6703 "at": {6704 "additionalProperties": true,6705 "properties": {6706 "line": {6707 "minimum": 1,6708 "type": "integer"6709 },6710 "path": {6711 "minLength": 1,6712 "type": "string"6713 }6714 },6715 "required": [6716 "line",6717 "path"6718 ],6719 "type": "object"6720 },6721 "decision": {6722 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",6723 "type": "string"6724 },6725 "next": {6726 "minLength": 1,6727 "type": "string"6728 },6729 "retryable": {6730 "enum": [6731 false6732 ],6733 "type": "boolean"6734 }6735 },6736 "required": [6737 "_tag",6738 "next",6739 "retryable",6740 "decision"6741 ],6742 "type": "object"6743 },6744 "DenouncedEncoded": {6745 "additionalProperties": true,6746 "properties": {6747 "_tag": {6748 "enum": [6749 "Denounced"6750 ],6751 "type": "string"6752 },6753 "at": {6754 "additionalProperties": true,6755 "properties": {6756 "line": {6757 "minimum": 1,6758 "type": "integer"6759 },6760 "path": {6761 "minLength": 1,6762 "type": "string"6763 }6764 },6765 "required": [6766 "line",6767 "path"6768 ],6769 "type": "object"6770 },6771 "next": {6772 "minLength": 1,6773 "type": "string"6774 },6775 "retryable": {6776 "enum": [6777 false6778 ],6779 "type": "boolean"6780 }6781 },6782 "required": [6783 "_tag",6784 "next",6785 "retryable"6786 ],6787 "type": "object"6788 },6789 "DirectPushEncoded": {6790 "additionalProperties": true,6791 "properties": {6792 "_tag": {6793 "enum": [6794 "DirectPush"6795 ],6796 "type": "string"6797 },6798 "at": {6799 "additionalProperties": true,6800 "properties": {6801 "line": {6802 "minimum": 1,6803 "type": "integer"6804 },6805 "path": {6806 "minLength": 1,6807 "type": "string"6808 }6809 },6810 "required": [6811 "line",6812 "path"6813 ],6814 "type": "object"6815 },6816 "next": {6817 "minLength": 1,6818 "type": "string"6819 },6820 "ref": {6821 "minLength": 1,6822 "type": "string"6823 },6824 "retryable": {6825 "enum": [6826 false6827 ],6828 "type": "boolean"6829 }6830 },6831 "required": [6832 "_tag",6833 "next",6834 "retryable",6835 "ref"6836 ],6837 "type": "object"6838 },6839 "FlakeEncoded": {6840 "additionalProperties": true,6841 "properties": {6842 "_tag": {6843 "enum": [6844 "Flake"6845 ],6846 "type": "string"6847 },6848 "at": {6849 "additionalProperties": true,6850 "properties": {6851 "line": {6852 "minimum": 1,6853 "type": "integer"6854 },6855 "path": {6856 "minLength": 1,6857 "type": "string"6858 }6859 },6860 "required": [6861 "line",6862 "path"6863 ],6864 "type": "object"6865 },6866 "lane": {6867 "minLength": 1,6868 "type": "string"6869 },6870 "next": {6871 "minLength": 1,6872 "type": "string"6873 },6874 "retryable": {6875 "enum": [6876 true6877 ],6878 "type": "boolean"6879 }6880 },6881 "required": [6882 "_tag",6883 "next",6884 "retryable",6885 "lane"6886 ],6887 "type": "object"6888 },6889 "HeldBackFailedEncoded": {6890 "additionalProperties": true,6891 "properties": {6892 "_tag": {6893 "enum": [6894 "HeldBackFailed"6895 ],6896 "type": "string"6897 },6898 "area": {6899 "minLength": 1,6900 "type": "string"6901 },6902 "at": {6903 "additionalProperties": true,6904 "properties": {6905 "line": {6906 "minimum": 1,6907 "type": "integer"6908 },6909 "path": {6910 "minLength": 1,6911 "type": "string"6912 }6913 },6914 "required": [6915 "line",6916 "path"6917 ],6918 "type": "object"6919 },6920 "next": {6921 "minLength": 1,6922 "type": "string"6923 },6924 "retryable": {6925 "enum": [6926 false6927 ],6928 "type": "boolean"6929 },6930 "suite": {6931 "minLength": 1,6932 "type": "string"6933 }6934 },6935 "required": [6936 "_tag",6937 "next",6938 "retryable",6939 "area",6940 "suite"6941 ],6942 "type": "object"6943 },6944 "ImportFailedEncoded": {6945 "additionalProperties": true,6946 "properties": {6947 "_tag": {6948 "enum": [6949 "ImportFailed"6950 ],6951 "type": "string"6952 },6953 "at": {6954 "additionalProperties": true,6955 "properties": {6956 "line": {6957 "minimum": 1,6958 "type": "integer"6959 },6960 "path": {6961 "minLength": 1,6962 "type": "string"6963 }6964 },6965 "required": [6966 "line",6967 "path"6968 ],6969 "type": "object"6970 },6971 "next": {6972 "minLength": 1,6973 "type": "string"6974 },6975 "reason": {6976 "minLength": 1,6977 "type": "string"6978 },6979 "retryable": {6980 "enum": [6981 true6982 ],6983 "type": "boolean"6984 }6985 },6986 "required": [6987 "_tag",6988 "next",6989 "retryable",6990 "reason"6991 ],6992 "type": "object"6993 },6994 "IncompleteBriefEncoded": {6995 "additionalProperties": true,6996 "properties": {6997 "_tag": {6998 "enum": [6999 "IncompleteBrief"7000 ],7001 "type": "string"7002 },7003 "at": {7004 "additionalProperties": true,7005 "properties": {7006 "line": {7007 "minimum": 1,7008 "type": "integer"7009 },7010 "path": {7011 "minLength": 1,7012 "type": "string"7013 }7014 },7015 "required": [7016 "line",7017 "path"7018 ],7019 "type": "object"7020 },7021 "missing": {7022 "items": {7023 "minLength": 1,7024 "type": "string"7025 },7026 "minItems": 1,7027 "prefixItems": [7028 {7029 "minLength": 1,7030 "type": "string"7031 }7032 ],7033 "type": "array"7034 },7035 "next": {7036 "minLength": 1,7037 "type": "string"7038 },7039 "retryable": {7040 "enum": [7041 false7042 ],7043 "type": "boolean"7044 }7045 },7046 "required": [7047 "_tag",7048 "next",7049 "retryable",7050 "missing"7051 ],7052 "type": "object"7053 },7054 "LayerContentInPublicTreeEncoded": {7055 "additionalProperties": true,7056 "properties": {7057 "_tag": {7058 "enum": [7059 "LayerContentInPublicTree"7060 ],7061 "type": "string"7062 },7063 "at": {7064 "additionalProperties": true,7065 "properties": {7066 "line": {7067 "minimum": 1,7068 "type": "integer"7069 },7070 "path": {7071 "minLength": 1,7072 "type": "string"7073 }7074 },7075 "required": [7076 "line",7077 "path"7078 ],7079 "type": "object"7080 },7081 "next": {7082 "minLength": 1,7083 "type": "string"7084 },7085 "paths": {7086 "items": {7087 "minLength": 1,7088 "type": "string"7089 },7090 "minItems": 1,7091 "prefixItems": [7092 {7093 "minLength": 1,7094 "type": "string"7095 }7096 ],7097 "type": "array"7098 },7099 "retryable": {7100 "enum": [7101 false7102 ],7103 "type": "boolean"7104 }7105 },7106 "required": [7107 "_tag",7108 "next",7109 "retryable",7110 "paths"7111 ],7112 "type": "object"7113 },7114 "NoAskEncoded": {7115 "additionalProperties": true,7116 "properties": {7117 "_tag": {7118 "enum": [7119 "NoAsk"7120 ],7121 "type": "string"7122 },7123 "at": {7124 "additionalProperties": true,7125 "properties": {7126 "line": {7127 "minimum": 1,7128 "type": "integer"7129 },7130 "path": {7131 "minLength": 1,7132 "type": "string"7133 }7134 },7135 "required": [7136 "line",7137 "path"7138 ],7139 "type": "object"7140 },7141 "next": {7142 "minLength": 1,7143 "type": "string"7144 },7145 "retryable": {7146 "enum": [7147 false7148 ],7149 "type": "boolean"7150 }7151 },7152 "required": [7153 "_tag",7154 "next",7155 "retryable"7156 ],7157 "type": "object"7158 },7159 "NotClaimedEncoded": {7160 "additionalProperties": true,7161 "properties": {7162 "_tag": {7163 "enum": [7164 "NotClaimed"7165 ],7166 "type": "string"7167 },7168 "ask": {7169 "allOf": [7170 {7171 "not": {7172 "enum": [7173 "me",7174 "layer"7175 ]7176 }7177 }7178 ],7179 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7180 "type": "string"7181 },7182 "at": {7183 "additionalProperties": true,7184 "properties": {7185 "line": {7186 "minimum": 1,7187 "type": "integer"7188 },7189 "path": {7190 "minLength": 1,7191 "type": "string"7192 }7193 },7194 "required": [7195 "line",7196 "path"7197 ],7198 "type": "object"7199 },7200 "next": {7201 "minLength": 1,7202 "type": "string"7203 },7204 "retryable": {7205 "enum": [7206 true7207 ],7208 "type": "boolean"7209 }7210 },7211 "required": [7212 "_tag",7213 "next",7214 "retryable",7215 "ask"7216 ],7217 "type": "object"7218 },7219 "NotDeciderEncoded": {7220 "additionalProperties": true,7221 "properties": {7222 "_tag": {7223 "enum": [7224 "NotDecider"7225 ],7226 "type": "string"7227 },7228 "at": {7229 "additionalProperties": true,7230 "properties": {7231 "line": {7232 "minimum": 1,7233 "type": "integer"7234 },7235 "path": {7236 "minLength": 1,7237 "type": "string"7238 }7239 },7240 "required": [7241 "line",7242 "path"7243 ],7244 "type": "object"7245 },7246 "next": {7247 "minLength": 1,7248 "type": "string"7249 },7250 "retryable": {7251 "enum": [7252 false7253 ],7254 "type": "boolean"7255 }7256 },7257 "required": [7258 "_tag",7259 "next",7260 "retryable"7261 ],7262 "type": "object"7263 },7264 "NotRedFirstEncoded": {7265 "additionalProperties": true,7266 "properties": {7267 "_tag": {7268 "enum": [7269 "NotRedFirst"7270 ],7271 "type": "string"7272 },7273 "at": {7274 "additionalProperties": true,7275 "properties": {7276 "line": {7277 "minimum": 1,7278 "type": "integer"7279 },7280 "path": {7281 "minLength": 1,7282 "type": "string"7283 }7284 },7285 "required": [7286 "line",7287 "path"7288 ],7289 "type": "object"7290 },7291 "next": {7292 "minLength": 1,7293 "type": "string"7294 },7295 "retryable": {7296 "enum": [7297 false7298 ],7299 "type": "boolean"7300 }7301 },7302 "required": [7303 "_tag",7304 "next",7305 "retryable"7306 ],7307 "type": "object"7308 },7309 "NotSensitiveEncoded": {7310 "additionalProperties": true,7311 "properties": {7312 "_tag": {7313 "enum": [7314 "NotSensitive"7315 ],7316 "type": "string"7317 },7318 "at": {7319 "additionalProperties": true,7320 "properties": {7321 "line": {7322 "minimum": 1,7323 "type": "integer"7324 },7325 "path": {7326 "minLength": 1,7327 "type": "string"7328 }7329 },7330 "required": [7331 "line",7332 "path"7333 ],7334 "type": "object"7335 },7336 "key": {7337 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",7338 "type": "string"7339 },7340 "next": {7341 "minLength": 1,7342 "type": "string"7343 },7344 "retryable": {7345 "enum": [7346 false7347 ],7348 "type": "boolean"7349 }7350 },7351 "required": [7352 "_tag",7353 "next",7354 "retryable",7355 "key"7356 ],7357 "type": "object"7358 },7359 "NotVouchedEncoded": {7360 "additionalProperties": true,7361 "properties": {7362 "_tag": {7363 "enum": [7364 "NotVouched"7365 ],7366 "type": "string"7367 },7368 "at": {7369 "additionalProperties": true,7370 "properties": {7371 "line": {7372 "minimum": 1,7373 "type": "integer"7374 },7375 "path": {7376 "minLength": 1,7377 "type": "string"7378 }7379 },7380 "required": [7381 "line",7382 "path"7383 ],7384 "type": "object"7385 },7386 "next": {7387 "minLength": 1,7388 "type": "string"7389 },7390 "retryable": {7391 "enum": [7392 false7393 ],7394 "type": "boolean"7395 }7396 },7397 "required": [7398 "_tag",7399 "next",7400 "retryable"7401 ],7402 "type": "object"7403 },7404 "OutOfScopeEncoded": {7405 "additionalProperties": true,7406 "properties": {7407 "_tag": {7408 "enum": [7409 "OutOfScope"7410 ],7411 "type": "string"7412 },7413 "at": {7414 "additionalProperties": true,7415 "properties": {7416 "line": {7417 "minimum": 1,7418 "type": "integer"7419 },7420 "path": {7421 "minLength": 1,7422 "type": "string"7423 }7424 },7425 "required": [7426 "line",7427 "path"7428 ],7429 "type": "object"7430 },7431 "next": {7432 "minLength": 1,7433 "type": "string"7434 },7435 "paths": {7436 "items": {7437 "minLength": 1,7438 "type": "string"7439 },7440 "minItems": 1,7441 "prefixItems": [7442 {7443 "minLength": 1,7444 "type": "string"7445 }7446 ],7447 "type": "array"7448 },7449 "retryable": {7450 "enum": [7451 false7452 ],7453 "type": "boolean"7454 }7455 },7456 "required": [7457 "_tag",7458 "next",7459 "retryable",7460 "paths"7461 ],7462 "type": "object"7463 },7464 "PostureChangeEncoded": {7465 "additionalProperties": true,7466 "properties": {7467 "_tag": {7468 "enum": [7469 "PostureChange"7470 ],7471 "type": "string"7472 },7473 "at": {7474 "additionalProperties": true,7475 "properties": {7476 "line": {7477 "minimum": 1,7478 "type": "integer"7479 },7480 "path": {7481 "minLength": 1,7482 "type": "string"7483 }7484 },7485 "required": [7486 "line",7487 "path"7488 ],7489 "type": "object"7490 },7491 "from": {7492 "enum": [7493 "open",7494 "openWithSealedEvidence",7495 "openOnSchedule",7496 "openCore",7497 "sourceAvailable"7498 ],7499 "type": "string"7500 },7501 "next": {7502 "minLength": 1,7503 "type": "string"7504 },7505 "retryable": {7506 "enum": [7507 false7508 ],7509 "type": "boolean"7510 },7511 "to": {7512 "enum": [7513 "open",7514 "openWithSealedEvidence",7515 "openOnSchedule",7516 "openCore",7517 "sourceAvailable"7518 ],7519 "type": "string"7520 }7521 },7522 "required": [7523 "_tag",7524 "next",7525 "retryable",7526 "from",7527 "to"7528 ],7529 "type": "object"7530 },7531 "PrivatePathInPublicTreeEncoded": {7532 "additionalProperties": true,7533 "properties": {7534 "_tag": {7535 "enum": [7536 "PrivatePathInPublicTree"7537 ],7538 "type": "string"7539 },7540 "at": {7541 "additionalProperties": true,7542 "properties": {7543 "line": {7544 "minimum": 1,7545 "type": "integer"7546 },7547 "path": {7548 "minLength": 1,7549 "type": "string"7550 }7551 },7552 "required": [7553 "line",7554 "path"7555 ],7556 "type": "object"7557 },7558 "next": {7559 "minLength": 1,7560 "type": "string"7561 },7562 "paths": {7563 "items": {7564 "minLength": 1,7565 "type": "string"7566 },7567 "minItems": 1,7568 "prefixItems": [7569 {7570 "minLength": 1,7571 "type": "string"7572 }7573 ],7574 "type": "array"7575 },7576 "retryable": {7577 "enum": [7578 false7579 ],7580 "type": "boolean"7581 }7582 },7583 "required": [7584 "_tag",7585 "next",7586 "retryable",7587 "paths"7588 ],7589 "type": "object"7590 },7591 "ProjectExistsEncoded": {7592 "additionalProperties": true,7593 "properties": {7594 "_tag": {7595 "enum": [7596 "ProjectExists"7597 ],7598 "type": "string"7599 },7600 "at": {7601 "additionalProperties": true,7602 "properties": {7603 "line": {7604 "minimum": 1,7605 "type": "integer"7606 },7607 "path": {7608 "minLength": 1,7609 "type": "string"7610 }7611 },7612 "required": [7613 "line",7614 "path"7615 ],7616 "type": "object"7617 },7618 "next": {7619 "minLength": 1,7620 "type": "string"7621 },7622 "project": {7623 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7624 "type": "string"7625 },7626 "retryable": {7627 "enum": [7628 false7629 ],7630 "type": "boolean"7631 }7632 },7633 "required": [7634 "_tag",7635 "next",7636 "retryable",7637 "project"7638 ],7639 "type": "object"7640 },7641 "ReachedInternalsEncoded": {7642 "additionalProperties": true,7643 "properties": {7644 "_tag": {7645 "enum": [7646 "ReachedInternals"7647 ],7648 "type": "string"7649 },7650 "at": {7651 "additionalProperties": true,7652 "properties": {7653 "line": {7654 "minimum": 1,7655 "type": "integer"7656 },7657 "path": {7658 "minLength": 1,7659 "type": "string"7660 }7661 },7662 "required": [7663 "line",7664 "path"7665 ],7666 "type": "object"7667 },7668 "from": {7669 "minLength": 1,7670 "type": "string"7671 },7672 "next": {7673 "minLength": 1,7674 "type": "string"7675 },7676 "retryable": {7677 "enum": [7678 false7679 ],7680 "type": "boolean"7681 },7682 "to": {7683 "minLength": 1,7684 "type": "string"7685 }7686 },7687 "required": [7688 "_tag",7689 "next",7690 "retryable",7691 "from",7692 "to"7693 ],7694 "type": "object"7695 },7696 "RepoBusyEncoded": {7697 "additionalProperties": true,7698 "properties": {7699 "_tag": {7700 "enum": [7701 "RepoBusy"7702 ],7703 "type": "string"7704 },7705 "at": {7706 "additionalProperties": true,7707 "properties": {7708 "line": {7709 "minimum": 1,7710 "type": "integer"7711 },7712 "path": {7713 "minLength": 1,7714 "type": "string"7715 }7716 },7717 "required": [7718 "line",7719 "path"7720 ],7721 "type": "object"7722 },7723 "next": {7724 "minLength": 1,7725 "type": "string"7726 },7727 "retryable": {7728 "enum": [7729 true7730 ],7731 "type": "boolean"7732 }7733 },7734 "required": [7735 "_tag",7736 "next",7737 "retryable"7738 ],7739 "type": "object"7740 },7741 "SecretInOutputEncoded": {7742 "additionalProperties": true,7743 "properties": {7744 "_tag": {7745 "enum": [7746 "SecretInOutput"7747 ],7748 "type": "string"7749 },7750 "at": {7751 "additionalProperties": true,7752 "properties": {7753 "line": {7754 "minimum": 1,7755 "type": "integer"7756 },7757 "path": {7758 "minLength": 1,7759 "type": "string"7760 }7761 },7762 "required": [7763 "line",7764 "path"7765 ],7766 "type": "object"7767 },7768 "item": {7769 "minLength": 1,7770 "type": "string"7771 },7772 "next": {7773 "minLength": 1,7774 "type": "string"7775 },7776 "retryable": {7777 "enum": [7778 false7779 ],7780 "type": "boolean"7781 },7782 "where": {7783 "enum": [7784 "output",7785 "tree"7786 ],7787 "type": "string"7788 }7789 },7790 "required": [7791 "_tag",7792 "next",7793 "retryable",7794 "item",7795 "where"7796 ],7797 "type": "object"7798 },7799 "StaleBaseEncoded": {7800 "additionalProperties": true,7801 "properties": {7802 "_tag": {7803 "enum": [7804 "StaleBase"7805 ],7806 "type": "string"7807 },7808 "at": {7809 "additionalProperties": true,7810 "properties": {7811 "line": {7812 "minimum": 1,7813 "type": "integer"7814 },7815 "path": {7816 "minLength": 1,7817 "type": "string"7818 }7819 },7820 "required": [7821 "line",7822 "path"7823 ],7824 "type": "object"7825 },7826 "base": {7827 "pattern": "^[0-9a-f]{40}$",7828 "type": "string"7829 },7830 "conflicts": {7831 "items": {7832 "minLength": 1,7833 "type": "string"7834 },7835 "type": "array"7836 },7837 "main": {7838 "pattern": "^[0-9a-f]{40}$",7839 "type": "string"7840 },7841 "next": {7842 "minLength": 1,7843 "type": "string"7844 },7845 "retryable": {7846 "enum": [7847 true7848 ],7849 "type": "boolean"7850 }7851 },7852 "required": [7853 "_tag",7854 "next",7855 "retryable",7856 "base",7857 "conflicts",7858 "main"7859 ],7860 "type": "object"7861 },7862 "StaleLayerEncoded": {7863 "additionalProperties": true,7864 "properties": {7865 "_tag": {7866 "enum": [7867 "StaleLayer"7868 ],7869 "type": "string"7870 },7871 "at": {7872 "additionalProperties": true,7873 "properties": {7874 "line": {7875 "minimum": 1,7876 "type": "integer"7877 },7878 "path": {7879 "minLength": 1,7880 "type": "string"7881 }7882 },7883 "required": [7884 "line",7885 "path"7886 ],7887 "type": "object"7888 },7889 "layer": {7890 "minLength": 1,7891 "type": "string"7892 },7893 "next": {7894 "minLength": 1,7895 "type": "string"7896 },7897 "retryable": {7898 "enum": [7899 true7900 ],7901 "type": "boolean"7902 }7903 },7904 "required": [7905 "_tag",7906 "next",7907 "retryable",7908 "layer"7909 ],7910 "type": "object"7911 },7912 "TouchedJudgeEncoded": {7913 "additionalProperties": true,7914 "properties": {7915 "_tag": {7916 "enum": [7917 "TouchedJudge"7918 ],7919 "type": "string"7920 },7921 "at": {7922 "additionalProperties": true,7923 "properties": {7924 "line": {7925 "minimum": 1,7926 "type": "integer"7927 },7928 "path": {7929 "minLength": 1,7930 "type": "string"7931 }7932 },7933 "required": [7934 "line",7935 "path"7936 ],7937 "type": "object"7938 },7939 "next": {7940 "minLength": 1,7941 "type": "string"7942 },7943 "paths": {7944 "items": {7945 "minLength": 1,7946 "type": "string"7947 },7948 "minItems": 1,7949 "prefixItems": [7950 {7951 "minLength": 1,7952 "type": "string"7953 }7954 ],7955 "type": "array"7956 },7957 "retryable": {7958 "enum": [7959 false7960 ],7961 "type": "boolean"7962 }7963 },7964 "required": [7965 "_tag",7966 "next",7967 "retryable",7968 "paths"7969 ],7970 "type": "object"7971 },7972 "UnknownAskEncoded": {7973 "additionalProperties": true,7974 "properties": {7975 "_tag": {7976 "enum": [7977 "UnknownAsk"7978 ],7979 "type": "string"7980 },7981 "ask": {7982 "allOf": [7983 {7984 "not": {7985 "enum": [7986 "me",7987 "layer"7988 ]7989 }7990 }7991 ],7992 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7993 "type": "string"7994 },7995 "at": {7996 "additionalProperties": true,7997 "properties": {7998 "line": {7999 "minimum": 1,8000 "type": "integer"8001 },8002 "path": {8003 "minLength": 1,8004 "type": "string"8005 }8006 },8007 "required": [8008 "line",8009 "path"8010 ],8011 "type": "object"8012 },8013 "next": {8014 "minLength": 1,8015 "type": "string"8016 },8017 "retryable": {8018 "enum": [8019 false8020 ],8021 "type": "boolean"8022 }8023 },8024 "required": [8025 "_tag",8026 "next",8027 "retryable",8028 "ask"8029 ],8030 "type": "object"8031 },8032 "UnknownCommitEncoded": {8033 "additionalProperties": true,8034 "properties": {8035 "_tag": {8036 "enum": [8037 "UnknownCommit"8038 ],8039 "type": "string"8040 },8041 "at": {8042 "additionalProperties": true,8043 "properties": {8044 "line": {8045 "minimum": 1,8046 "type": "integer"8047 },8048 "path": {8049 "minLength": 1,8050 "type": "string"8051 }8052 },8053 "required": [8054 "line",8055 "path"8056 ],8057 "type": "object"8058 },8059 "next": {8060 "minLength": 1,8061 "type": "string"8062 },8063 "retryable": {8064 "enum": [8065 false8066 ],8067 "type": "boolean"8068 },8069 "sha": {8070 "pattern": "^[0-9a-f]{40}$",8071 "type": "string"8072 }8073 },8074 "required": [8075 "_tag",8076 "next",8077 "retryable",8078 "sha"8079 ],8080 "type": "object"8081 },8082 "UnknownDecisionEncoded": {8083 "additionalProperties": true,8084 "properties": {8085 "_tag": {8086 "enum": [8087 "UnknownDecision"8088 ],8089 "type": "string"8090 },8091 "at": {8092 "additionalProperties": true,8093 "properties": {8094 "line": {8095 "minimum": 1,8096 "type": "integer"8097 },8098 "path": {8099 "minLength": 1,8100 "type": "string"8101 }8102 },8103 "required": [8104 "line",8105 "path"8106 ],8107 "type": "object"8108 },8109 "decision": {8110 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",8111 "type": "string"8112 },8113 "next": {8114 "minLength": 1,8115 "type": "string"8116 },8117 "retryable": {8118 "enum": [8119 false8120 ],8121 "type": "boolean"8122 }8123 },8124 "required": [8125 "_tag",8126 "next",8127 "retryable",8128 "decision"8129 ],8130 "type": "object"8131 },8132 "UnknownEnvItemEncoded": {8133 "additionalProperties": true,8134 "properties": {8135 "_tag": {8136 "enum": [8137 "UnknownEnvItem"8138 ],8139 "type": "string"8140 },8141 "at": {8142 "additionalProperties": true,8143 "properties": {8144 "line": {8145 "minimum": 1,8146 "type": "integer"8147 },8148 "path": {8149 "minLength": 1,8150 "type": "string"8151 }8152 },8153 "required": [8154 "line",8155 "path"8156 ],8157 "type": "object"8158 },8159 "key": {8160 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",8161 "type": "string"8162 },8163 "next": {8164 "minLength": 1,8165 "type": "string"8166 },8167 "retryable": {8168 "enum": [8169 false8170 ],8171 "type": "boolean"8172 }8173 },8174 "required": [8175 "_tag",8176 "next",8177 "retryable",8178 "key"8179 ],8180 "type": "object"8181 },8182 "UnknownProjectEncoded": {8183 "additionalProperties": true,8184 "properties": {8185 "_tag": {8186 "enum": [8187 "UnknownProject"8188 ],8189 "type": "string"8190 },8191 "at": {8192 "additionalProperties": true,8193 "properties": {8194 "line": {8195 "minimum": 1,8196 "type": "integer"8197 },8198 "path": {8199 "minLength": 1,8200 "type": "string"8201 }8202 },8203 "required": [8204 "line",8205 "path"8206 ],8207 "type": "object"8208 },8209 "next": {8210 "minLength": 1,8211 "type": "string"8212 },8213 "project": {8214 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8215 "type": "string"8216 },8217 "retryable": {8218 "enum": [8219 false8220 ],8221 "type": "boolean"8222 }8223 },8224 "required": [8225 "_tag",8226 "next",8227 "retryable",8228 "project"8229 ],8230 "type": "object"8231 },8232 "UnstatedRequirementEncoded": {8233 "additionalProperties": true,8234 "properties": {8235 "_tag": {8236 "enum": [8237 "UnstatedRequirement"8238 ],8239 "type": "string"8240 },8241 "area": {8242 "minLength": 1,8243 "type": "string"8244 },8245 "at": {8246 "additionalProperties": true,8247 "properties": {8248 "line": {8249 "minimum": 1,8250 "type": "integer"8251 },8252 "path": {8253 "minLength": 1,8254 "type": "string"8255 }8256 },8257 "required": [8258 "line",8259 "path"8260 ],8261 "type": "object"8262 },8263 "next": {8264 "minLength": 1,8265 "type": "string"8266 },8267 "retryable": {8268 "enum": [8269 false8270 ],8271 "type": "boolean"8272 }8273 },8274 "required": [8275 "_tag",8276 "next",8277 "retryable",8278 "area"8279 ],8280 "type": "object"8281 },8282 "ValueTooShortEncoded": {8283 "additionalProperties": true,8284 "properties": {8285 "_tag": {8286 "enum": [8287 "ValueTooShort"8288 ],8289 "type": "string"8290 },8291 "at": {8292 "additionalProperties": true,8293 "properties": {8294 "line": {8295 "minimum": 1,8296 "type": "integer"8297 },8298 "path": {8299 "minLength": 1,8300 "type": "string"8301 }8302 },8303 "required": [8304 "line",8305 "path"8306 ],8307 "type": "object"8308 },8309 "key": {8310 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",8311 "type": "string"8312 },8313 "minimum": {8314 "type": "integer"8315 },8316 "next": {8317 "minLength": 1,8318 "type": "string"8319 },8320 "retryable": {8321 "enum": [8322 false8323 ],8324 "type": "boolean"8325 }8326 },8327 "required": [8328 "_tag",8329 "next",8330 "retryable",8331 "key",8332 "minimum"8333 ],8334 "type": "object"8335 },8336 "VerifierBlockedEncoded": {8337 "additionalProperties": true,8338 "properties": {8339 "_tag": {8340 "enum": [8341 "VerifierBlocked"8342 ],8343 "type": "string"8344 },8345 "at": {8346 "additionalProperties": true,8347 "properties": {8348 "line": {8349 "minimum": 1,8350 "type": "integer"8351 },8352 "path": {8353 "minLength": 1,8354 "type": "string"8355 }8356 },8357 "required": [8358 "line",8359 "path"8360 ],8361 "type": "object"8362 },8363 "next": {8364 "minLength": 1,8365 "type": "string"8366 },8367 "retryable": {8368 "enum": [8369 true8370 ],8371 "type": "boolean"8372 }8373 },8374 "required": [8375 "_tag",8376 "next",8377 "retryable"8378 ],8379 "type": "object"8380 },8381 "WeakCheckEncoded": {8382 "additionalProperties": true,8383 "properties": {8384 "_tag": {8385 "enum": [8386 "WeakCheck"8387 ],8388 "type": "string"8389 },8390 "at": {8391 "additionalProperties": true,8392 "properties": {8393 "line": {8394 "minimum": 1,8395 "type": "integer"8396 },8397 "path": {8398 "minLength": 1,8399 "type": "string"8400 }8401 },8402 "required": [8403 "line",8404 "path"8405 ],8406 "type": "object"8407 },8408 "next": {8409 "minLength": 1,8410 "type": "string"8411 },8412 "retryable": {8413 "enum": [8414 false8415 ],8416 "type": "boolean"8417 },8418 "weakness": {8419 "minLength": 1,8420 "type": "string"8421 }8422 },8423 "required": [8424 "_tag",8425 "next",8426 "retryable",8427 "weakness"8428 ],8429 "type": "object"8430 },8431 "WeakenedEncoded": {8432 "additionalProperties": true,8433 "properties": {8434 "_tag": {8435 "enum": [8436 "Weakened"8437 ],8438 "type": "string"8439 },8440 "at": {8441 "additionalProperties": true,8442 "properties": {8443 "line": {8444 "minimum": 1,8445 "type": "integer"8446 },8447 "path": {8448 "minLength": 1,8449 "type": "string"8450 }8451 },8452 "required": [8453 "line",8454 "path"8455 ],8456 "type": "object"8457 },8458 "next": {8459 "minLength": 1,8460 "type": "string"8461 },8462 "retryable": {8463 "enum": [8464 false8465 ],8466 "type": "boolean"8467 },8468 "weakening": {8469 "anyOf": [8470 {8471 "additionalProperties": true,8472 "properties": {8473 "marker": {8474 "minLength": 1,8475 "type": "string"8476 },8477 "reason": {8478 "minLength": 1,8479 "type": "string"8480 }8481 },8482 "required": [8483 "marker"8484 ],8485 "type": "object"8486 },8487 {8488 "additionalProperties": true,8489 "properties": {8490 "after": {8491 "type": "integer"8492 },8493 "before": {8494 "type": "integer"8495 },8496 "ratchet": {8497 "minLength": 1,8498 "type": "string"8499 },8500 "territory": {8501 "minLength": 1,8502 "type": "string"8503 }8504 },8505 "required": [8506 "after",8507 "before",8508 "ratchet",8509 "territory"8510 ],8511 "type": "object"8512 }8513 ]8514 }8515 },8516 "required": [8517 "_tag",8518 "next",8519 "retryable",8520 "weakening"8521 ],8522 "type": "object"8523 }8524 },8525 "additionalProperties": true,8526 "properties": {8527 "landing": {8528 "additionalProperties": true,8529 "properties": {8530 "ask": {8531 "allOf": [8532 {8533 "not": {8534 "enum": [8535 "me",8536 "layer"8537 ]8538 }8539 }8540 ],8541 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8542 "type": "string"8543 },8544 "assisted": {8545 "items": {8546 "additionalProperties": true,8547 "properties": {8548 "harness": {8549 "minLength": 1,8550 "type": "string"8551 },8552 "model": {8553 "minLength": 1,8554 "type": "string"8555 },8556 "verified": {8557 "type": "boolean"8558 }8559 },8560 "required": [8561 "harness",8562 "verified"8563 ],8564 "type": "object"8565 },8566 "type": "array"8567 },8568 "author": {8569 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8570 "type": "string"8571 },8572 "credits": {8573 "items": {8574 "additionalProperties": true,8575 "properties": {8576 "handle": {8577 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8578 "type": "string"8579 },8580 "role": {8581 "enum": [8582 "Asked-by",8583 "Signed-off-by",8584 "Decided-by",8585 "Mentored-by",8586 "Finished-by",8587 "Advised-by",8588 "Released-by"8589 ],8590 "type": "string"8591 }8592 },8593 "required": [8594 "handle",8595 "role"8596 ],8597 "type": "object"8598 },8599 "type": "array"8600 },8601 "heldBackTrailer": {8602 "minLength": 1,8603 "type": "string"8604 },8605 "landedAt": {8606 "type": "string"8607 },8608 "parent": {8609 "pattern": "^[0-9a-f]{40}$",8610 "type": "string"8611 },8612 "project": {8613 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8614 "type": "string"8615 },8616 "requestId": {8617 "pattern": "^[A-Za-z0-9_-]{8,64}$",8618 "type": "string"8619 },8620 "sha": {8621 "pattern": "^[0-9a-f]{40}$",8622 "type": "string"8623 },8624 "verdict": {8625 "additionalProperties": true,8626 "properties": {8627 "ask": {8628 "allOf": [8629 {8630 "not": {8631 "enum": [8632 "me",8633 "layer"8634 ]8635 }8636 }8637 ],8638 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8639 "type": "string"8640 },8641 "at": {8642 "type": "string"8643 },8644 "base": {8645 "pattern": "^[0-9a-f]{40}$",8646 "type": "string"8647 },8648 "checkVersion": {8649 "minLength": 1,8650 "type": "string"8651 },8652 "head": {8653 "pattern": "^[0-9a-f]{40}$",8654 "type": "string"8655 },8656 "heldBack": {8657 "items": {8658 "additionalProperties": true,8659 "properties": {8660 "area": {8661 "pattern": "^[a-z][a-zA-Z0-9-]*$",8662 "type": "string"8663 },8664 "passed": {8665 "type": "integer"8666 },8667 "suite": {8668 "pattern": "^sha256:[0-9a-f]{64}$",8669 "type": "string"8670 },8671 "total": {8672 "type": "integer"8673 }8674 },8675 "required": [8676 "area",8677 "passed",8678 "suite",8679 "total"8680 ],8681 "type": "object"8682 },8683 "type": "array"8684 },8685 "lanes": {8686 "items": {8687 "additionalProperties": true,8688 "properties": {8689 "command": {8690 "minLength": 1,8691 "type": "string"8692 },8693 "durationMs": {8694 "type": "integer"8695 },8696 "lane": {8697 "pattern": "^[a-z][a-zA-Z0-9-]*$",8698 "type": "string"8699 },8700 "logRef": {8701 "minLength": 1,8702 "type": "string"8703 },8704 "result": {8705 "enum": [8706 "passed",8707 "failed",8708 "loadError",8709 "flaked",8710 "blocked"8711 ],8712 "type": "string"8713 }8714 },8715 "required": [8716 "command",8717 "durationMs",8718 "lane",8719 "result"8720 ],8721 "type": "object"8722 },8723 "type": "array"8724 },8725 "outcome": {8726 "anyOf": [8727 {8728 "additionalProperties": true,8729 "properties": {8730 "_tag": {8731 "enum": [8732 "AwaitingDecision"8733 ],8734 "type": "string"8735 },8736 "decision": {8737 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",8738 "type": "string"8739 }8740 },8741 "required": [8742 "_tag",8743 "decision"8744 ],8745 "type": "object"8746 },8747 {8748 "additionalProperties": true,8749 "properties": {8750 "_tag": {8751 "enum": [8752 "AwaitingFinish"8753 ],8754 "type": "string"8755 },8756 "decider": {8757 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8758 "type": "string"8759 }8760 },8761 "required": [8762 "_tag"8763 ],8764 "type": "object"8765 },8766 {8767 "additionalProperties": true,8768 "properties": {8769 "_tag": {8770 "enum": [8771 "Checking"8772 ],8773 "type": "string"8774 },8775 "stage": {8776 "enum": [8777 "parse",8778 "shape",8779 "merge",8780 "cheap",8781 "checks",8782 "heldBack",8783 "human"8784 ],8785 "type": "string"8786 }8787 },8788 "required": [8789 "_tag",8790 "stage"8791 ],8792 "type": "object"8793 },8794 {8795 "additionalProperties": true,8796 "properties": {8797 "_tag": {8798 "enum": [8799 "Landed"8800 ],8801 "type": "string"8802 },8803 "sha": {8804 "pattern": "^[0-9a-f]{40}$",8805 "type": "string"8806 }8807 },8808 "required": [8809 "_tag",8810 "sha"8811 ],8812 "type": "object"8813 },8814 {8815 "additionalProperties": true,8816 "properties": {8817 "_tag": {8818 "enum": [8819 "Refused"8820 ],8821 "type": "string"8822 },8823 "refusals": {8824 "items": {8825 "anyOf": [8826 {8827 "$ref": "#/$defs/NotClaimedEncoded"8828 },8829 {8830 "$ref": "#/$defs/ClaimLapsedEncoded"8831 },8832 {8833 "$ref": "#/$defs/NotVouchedEncoded"8834 },8835 {8836 "$ref": "#/$defs/CapReachedEncoded"8837 },8838 {8839 "$ref": "#/$defs/AskFullEncoded"8840 },8841 {8842 "$ref": "#/$defs/NoAskEncoded"8843 },8844 {8845 "$ref": "#/$defs/RepoBusyEncoded"8846 },8847 {8848 "$ref": "#/$defs/DirectPushEncoded"8849 },8850 {8851 "$ref": "#/$defs/AskBlockedEncoded"8852 },8853 {8854 "$ref": "#/$defs/DenouncedEncoded"8855 },8856 {8857 "$ref": "#/$defs/OutOfScopeEncoded"8858 },8859 {8860 "$ref": "#/$defs/TouchedJudgeEncoded"8861 },8862 {8863 "$ref": "#/$defs/WeakenedEncoded"8864 },8865 {8866 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"8867 },8868 {8869 "$ref": "#/$defs/ReachedInternalsEncoded"8870 },8871 {8872 "$ref": "#/$defs/StaleBaseEncoded"8873 },8874 {8875 "$ref": "#/$defs/StaleLayerEncoded"8876 },8877 {8878 "$ref": "#/$defs/ChecksFailedEncoded"8879 },8880 {8881 "$ref": "#/$defs/HeldBackFailedEncoded"8882 },8883 {8884 "$ref": "#/$defs/AttemptsExhaustedEncoded"8885 },8886 {8887 "$ref": "#/$defs/FlakeEncoded"8888 },8889 {8890 "$ref": "#/$defs/VerifierBlockedEncoded"8891 },8892 {8893 "$ref": "#/$defs/NotRedFirstEncoded"8894 },8895 {8896 "$ref": "#/$defs/WeakCheckEncoded"8897 },8898 {8899 "$ref": "#/$defs/IncompleteBriefEncoded"8900 },8901 {8902 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"8903 },8904 {8905 "$ref": "#/$defs/SecretInOutputEncoded"8906 },8907 {8908 "$ref": "#/$defs/UnstatedRequirementEncoded"8909 },8910 {8911 "$ref": "#/$defs/PostureChangeEncoded"8912 },8913 {8914 "$ref": "#/$defs/NotDeciderEncoded"8915 },8916 {8917 "$ref": "#/$defs/DecisionClosedEncoded"8918 },8919 {8920 "$ref": "#/$defs/UnknownProjectEncoded"8921 },8922 {8923 "$ref": "#/$defs/UnknownAskEncoded"8924 },8925 {8926 "$ref": "#/$defs/UnknownCommitEncoded"8927 },8928 {8929 "$ref": "#/$defs/UnknownDecisionEncoded"8930 },8931 {8932 "$ref": "#/$defs/ProjectExistsEncoded"8933 },8934 {8935 "$ref": "#/$defs/ImportFailedEncoded"8936 },8937 {8938 "$ref": "#/$defs/UnknownEnvItemEncoded"8939 },8940 {8941 "$ref": "#/$defs/NotSensitiveEncoded"8942 },8943 {8944 "$ref": "#/$defs/ValueTooShortEncoded"8945 }8946 ]8947 },8948 "minItems": 1,8949 "prefixItems": [8950 {8951 "anyOf": [8952 {8953 "$ref": "#/$defs/NotClaimedEncoded"8954 },8955 {8956 "$ref": "#/$defs/ClaimLapsedEncoded"8957 },8958 {8959 "$ref": "#/$defs/NotVouchedEncoded"8960 },8961 {8962 "$ref": "#/$defs/CapReachedEncoded"8963 },8964 {8965 "$ref": "#/$defs/AskFullEncoded"8966 },8967 {8968 "$ref": "#/$defs/NoAskEncoded"8969 },8970 {8971 "$ref": "#/$defs/RepoBusyEncoded"8972 },8973 {8974 "$ref": "#/$defs/DirectPushEncoded"8975 },8976 {8977 "$ref": "#/$defs/AskBlockedEncoded"8978 },8979 {8980 "$ref": "#/$defs/DenouncedEncoded"8981 },8982 {8983 "$ref": "#/$defs/OutOfScopeEncoded"8984 },8985 {8986 "$ref": "#/$defs/TouchedJudgeEncoded"8987 },8988 {8989 "$ref": "#/$defs/WeakenedEncoded"8990 },8991 {8992 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"8993 },8994 {8995 "$ref": "#/$defs/ReachedInternalsEncoded"8996 },8997 {8998 "$ref": "#/$defs/StaleBaseEncoded"8999 },9000 {9001 "$ref": "#/$defs/StaleLayerEncoded"9002 },9003 {9004 "$ref": "#/$defs/ChecksFailedEncoded"9005 },9006 {9007 "$ref": "#/$defs/HeldBackFailedEncoded"9008 },9009 {9010 "$ref": "#/$defs/AttemptsExhaustedEncoded"9011 },9012 {9013 "$ref": "#/$defs/FlakeEncoded"9014 },9015 {9016 "$ref": "#/$defs/VerifierBlockedEncoded"9017 },9018 {9019 "$ref": "#/$defs/NotRedFirstEncoded"9020 },9021 {9022 "$ref": "#/$defs/WeakCheckEncoded"9023 },9024 {9025 "$ref": "#/$defs/IncompleteBriefEncoded"9026 },9027 {9028 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"9029 },9030 {9031 "$ref": "#/$defs/SecretInOutputEncoded"9032 },9033 {9034 "$ref": "#/$defs/UnstatedRequirementEncoded"9035 },9036 {9037 "$ref": "#/$defs/PostureChangeEncoded"9038 },9039 {9040 "$ref": "#/$defs/NotDeciderEncoded"9041 },9042 {9043 "$ref": "#/$defs/DecisionClosedEncoded"9044 },9045 {9046 "$ref": "#/$defs/UnknownProjectEncoded"9047 },9048 {9049 "$ref": "#/$defs/UnknownAskEncoded"9050 },9051 {9052 "$ref": "#/$defs/UnknownCommitEncoded"9053 },9054 {9055 "$ref": "#/$defs/UnknownDecisionEncoded"9056 },9057 {9058 "$ref": "#/$defs/ProjectExistsEncoded"9059 },9060 {9061 "$ref": "#/$defs/ImportFailedEncoded"9062 },9063 {9064 "$ref": "#/$defs/UnknownEnvItemEncoded"9065 },9066 {9067 "$ref": "#/$defs/NotSensitiveEncoded"9068 },9069 {9070 "$ref": "#/$defs/ValueTooShortEncoded"9071 }9072 ]9073 }9074 ],9075 "type": "array"9076 }9077 },9078 "required": [9079 "_tag",9080 "refusals"9081 ],9082 "type": "object"9083 },9084 {9085 "additionalProperties": true,9086 "properties": {9087 "_tag": {9088 "enum": [9089 "WaitingOnParent"9090 ],9091 "type": "string"9092 },9093 "ask": {9094 "allOf": [9095 {9096 "not": {9097 "enum": [9098 "me",9099 "layer"9100 ]9101 }9102 }9103 ],9104 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9105 "type": "string"9106 }9107 },9108 "required": [9109 "_tag",9110 "ask"9111 ],9112 "type": "object"9113 }9114 ]9115 },9116 "patchId": {9117 "pattern": "^[0-9a-f]{64}$",9118 "type": "string"9119 },9120 "project": {9121 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9122 "type": "string"9123 },9124 "stage": {9125 "enum": [9126 "parse",9127 "shape",9128 "merge",9129 "cheap",9130 "checks",9131 "heldBack",9132 "human"9133 ],9134 "type": "string"9135 },9136 "tree": {9137 "pattern": "^[0-9a-f]{40}$",9138 "type": "string"9139 },9140 "verifier": {9141 "enum": [9142 "platform"9143 ],9144 "type": "string"9145 }9146 },9147 "required": [9148 "ask",9149 "at",9150 "base",9151 "checkVersion",9152 "head",9153 "heldBack",9154 "lanes",9155 "outcome",9156 "patchId",9157 "project",9158 "stage",9159 "tree",9160 "verifier"9161 ],9162 "type": "object"9163 }9164 },9165 "required": [9166 "assisted",9167 "author",9168 "credits",9169 "landedAt",9170 "parent",9171 "project",9172 "sha"9173 ],9174 "type": "object"9175 }9176 },9177 "required": [9178 "landing"9179 ],9180 "type": "object"9181}9182```91839184## credits91859186Count a person's credits by project, area and role; never a score.91879188| Hint | Value |9189| --- | --- |9190| `destructiveHint` | `false` |9191| `idempotentHint` | `true` |9192| `openWorldHint` | `false` |9193| `readOnlyHint` | `true` |91949195### Input91969197```json9198{9199 "additionalProperties": true,9200 "properties": {9201 "handle": {9202 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",9203 "type": "string"9204 }9205 },9206 "required": [9207 "handle"9208 ],9209 "type": "object"9210}9211```92129213### Output92149215```json9216{9217 "additionalProperties": true,9218 "properties": {9219 "credits": {9220 "items": {9221 "additionalProperties": true,9222 "properties": {9223 "area": {9224 "minLength": 1,9225 "type": "string"9226 },9227 "count": {9228 "type": "integer"9229 },9230 "project": {9231 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9232 "type": "string"9233 },9234 "role": {9235 "enum": [9236 "Asked-by",9237 "Signed-off-by",9238 "Decided-by",9239 "Mentored-by",9240 "Finished-by",9241 "Advised-by",9242 "Released-by"9243 ],9244 "type": "string"9245 }9246 },9247 "required": [9248 "area",9249 "count",9250 "project",9251 "role"9252 ],9253 "type": "object"9254 },9255 "type": "array"9256 }9257 },9258 "required": [9259 "credits"9260 ],9261 "type": "object"9262}9263```92649265## today92669267Show the caller's Today: the decisions to take, held to their budget, each with its evidence and a safe default.92689269| Hint | Value |9270| --- | --- |9271| `destructiveHint` | `false` |9272| `idempotentHint` | `true` |9273| `openWorldHint` | `false` |9274| `readOnlyHint` | `true` |92759276### Input92779278```json9279{9280 "additionalProperties": true,9281 "properties": {9282 "project": {9283 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9284 "type": "string"9285 }9286 },9287 "type": "object"9288}9289```92909291### Output92929293```json9294{9295 "$defs": {9296 "AskBlockedEncoded": {9297 "additionalProperties": true,9298 "properties": {9299 "_tag": {9300 "enum": [9301 "AskBlocked"9302 ],9303 "type": "string"9304 },9305 "ask": {9306 "allOf": [9307 {9308 "not": {9309 "enum": [9310 "me",9311 "layer"9312 ]9313 }9314 }9315 ],9316 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9317 "type": "string"9318 },9319 "at": {9320 "additionalProperties": true,9321 "properties": {9322 "line": {9323 "minimum": 1,9324 "type": "integer"9325 },9326 "path": {9327 "minLength": 1,9328 "type": "string"9329 }9330 },9331 "required": [9332 "line",9333 "path"9334 ],9335 "type": "object"9336 },9337 "blockedBy": {9338 "items": {9339 "allOf": [9340 {9341 "not": {9342 "enum": [9343 "me",9344 "layer"9345 ]9346 }9347 }9348 ],9349 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9350 "type": "string"9351 },9352 "minItems": 1,9353 "prefixItems": [9354 {9355 "allOf": [9356 {9357 "not": {9358 "enum": [9359 "me",9360 "layer"9361 ]9362 }9363 }9364 ],9365 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9366 "type": "string"9367 }9368 ],9369 "type": "array"9370 },9371 "next": {9372 "minLength": 1,9373 "type": "string"9374 },9375 "retryable": {9376 "enum": [9377 true9378 ],9379 "type": "boolean"9380 }9381 },9382 "required": [9383 "_tag",9384 "next",9385 "retryable",9386 "ask",9387 "blockedBy"9388 ],9389 "type": "object"9390 },9391 "AskFullEncoded": {9392 "additionalProperties": true,9393 "properties": {9394 "_tag": {9395 "enum": [9396 "AskFull"9397 ],9398 "type": "string"9399 },9400 "ask": {9401 "allOf": [9402 {9403 "not": {9404 "enum": [9405 "me",9406 "layer"9407 ]9408 }9409 }9410 ],9411 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9412 "type": "string"9413 },9414 "at": {9415 "additionalProperties": true,9416 "properties": {9417 "line": {9418 "minimum": 1,9419 "type": "integer"9420 },9421 "path": {9422 "minLength": 1,9423 "type": "string"9424 }9425 },9426 "required": [9427 "line",9428 "path"9429 ],9430 "type": "object"9431 },9432 "next": {9433 "minLength": 1,9434 "type": "string"9435 },9436 "retryable": {9437 "enum": [9438 true9439 ],9440 "type": "boolean"9441 }9442 },9443 "required": [9444 "_tag",9445 "next",9446 "retryable",9447 "ask"9448 ],9449 "type": "object"9450 },9451 "AttemptsExhaustedEncoded": {9452 "additionalProperties": true,9453 "properties": {9454 "_tag": {9455 "enum": [9456 "AttemptsExhausted"9457 ],9458 "type": "string"9459 },9460 "area": {9461 "minLength": 1,9462 "type": "string"9463 },9464 "at": {9465 "additionalProperties": true,9466 "properties": {9467 "line": {9468 "minimum": 1,9469 "type": "integer"9470 },9471 "path": {9472 "minLength": 1,9473 "type": "string"9474 }9475 },9476 "required": [9477 "line",9478 "path"9479 ],9480 "type": "object"9481 },9482 "next": {9483 "minLength": 1,9484 "type": "string"9485 },9486 "resetsAt": {9487 "type": "string"9488 },9489 "retryable": {9490 "enum": [9491 true9492 ],9493 "type": "boolean"9494 }9495 },9496 "required": [9497 "_tag",9498 "next",9499 "retryable",9500 "area",9501 "resetsAt"9502 ],9503 "type": "object"9504 },9505 "CapReachedEncoded": {9506 "additionalProperties": true,9507 "properties": {9508 "_tag": {9509 "enum": [9510 "CapReached"9511 ],9512 "type": "string"9513 },9514 "at": {9515 "additionalProperties": true,9516 "properties": {9517 "line": {9518 "minimum": 1,9519 "type": "integer"9520 },9521 "path": {9522 "minLength": 1,9523 "type": "string"9524 }9525 },9526 "required": [9527 "line",9528 "path"9529 ],9530 "type": "object"9531 },9532 "cap": {9533 "type": "integer"9534 },9535 "next": {9536 "minLength": 1,9537 "type": "string"9538 },9539 "retryable": {9540 "enum": [9541 true9542 ],9543 "type": "boolean"9544 }9545 },9546 "required": [9547 "_tag",9548 "next",9549 "retryable",9550 "cap"9551 ],9552 "type": "object"9553 },9554 "ChecksFailedEncoded": {9555 "additionalProperties": true,9556 "properties": {9557 "_tag": {9558 "enum": [9559 "ChecksFailed"9560 ],9561 "type": "string"9562 },9563 "at": {9564 "additionalProperties": true,9565 "properties": {9566 "line": {9567 "minimum": 1,9568 "type": "integer"9569 },9570 "path": {9571 "minLength": 1,9572 "type": "string"9573 }9574 },9575 "required": [9576 "line",9577 "path"9578 ],9579 "type": "object"9580 },9581 "lane": {9582 "minLength": 1,9583 "type": "string"9584 },9585 "logRef": {9586 "minLength": 1,9587 "type": "string"9588 },9589 "next": {9590 "minLength": 1,9591 "type": "string"9592 },9593 "retryable": {9594 "enum": [9595 false9596 ],9597 "type": "boolean"9598 }9599 },9600 "required": [9601 "_tag",9602 "next",9603 "retryable",9604 "lane",9605 "logRef"9606 ],9607 "type": "object"9608 },9609 "ClaimLapsedEncoded": {9610 "additionalProperties": true,9611 "properties": {9612 "_tag": {9613 "enum": [9614 "ClaimLapsed"9615 ],9616 "type": "string"9617 },9618 "ask": {9619 "allOf": [9620 {9621 "not": {9622 "enum": [9623 "me",9624 "layer"9625 ]9626 }9627 }9628 ],9629 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9630 "type": "string"9631 },9632 "at": {9633 "additionalProperties": true,9634 "properties": {9635 "line": {9636 "minimum": 1,9637 "type": "integer"9638 },9639 "path": {9640 "minLength": 1,9641 "type": "string"9642 }9643 },9644 "required": [9645 "line",9646 "path"9647 ],9648 "type": "object"9649 },9650 "next": {9651 "minLength": 1,9652 "type": "string"9653 },9654 "retryable": {9655 "enum": [9656 true9657 ],9658 "type": "boolean"9659 }9660 },9661 "required": [9662 "_tag",9663 "next",9664 "retryable",9665 "ask"9666 ],9667 "type": "object"9668 },9669 "DecisionClosedEncoded": {9670 "additionalProperties": true,9671 "properties": {9672 "_tag": {9673 "enum": [9674 "DecisionClosed"9675 ],9676 "type": "string"9677 },9678 "at": {9679 "additionalProperties": true,9680 "properties": {9681 "line": {9682 "minimum": 1,9683 "type": "integer"9684 },9685 "path": {9686 "minLength": 1,9687 "type": "string"9688 }9689 },9690 "required": [9691 "line",9692 "path"9693 ],9694 "type": "object"9695 },9696 "decision": {9697 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",9698 "type": "string"9699 },9700 "next": {9701 "minLength": 1,9702 "type": "string"9703 },9704 "retryable": {9705 "enum": [9706 false9707 ],9708 "type": "boolean"9709 }9710 },9711 "required": [9712 "_tag",9713 "next",9714 "retryable",9715 "decision"9716 ],9717 "type": "object"9718 },9719 "DenouncedEncoded": {9720 "additionalProperties": true,9721 "properties": {9722 "_tag": {9723 "enum": [9724 "Denounced"9725 ],9726 "type": "string"9727 },9728 "at": {9729 "additionalProperties": true,9730 "properties": {9731 "line": {9732 "minimum": 1,9733 "type": "integer"9734 },9735 "path": {9736 "minLength": 1,9737 "type": "string"9738 }9739 },9740 "required": [9741 "line",9742 "path"9743 ],9744 "type": "object"9745 },9746 "next": {9747 "minLength": 1,9748 "type": "string"9749 },9750 "retryable": {9751 "enum": [9752 false9753 ],9754 "type": "boolean"9755 }9756 },9757 "required": [9758 "_tag",9759 "next",9760 "retryable"9761 ],9762 "type": "object"9763 },9764 "DirectPushEncoded": {9765 "additionalProperties": true,9766 "properties": {9767 "_tag": {9768 "enum": [9769 "DirectPush"9770 ],9771 "type": "string"9772 },9773 "at": {9774 "additionalProperties": true,9775 "properties": {9776 "line": {9777 "minimum": 1,9778 "type": "integer"9779 },9780 "path": {9781 "minLength": 1,9782 "type": "string"9783 }9784 },9785 "required": [9786 "line",9787 "path"9788 ],9789 "type": "object"9790 },9791 "next": {9792 "minLength": 1,9793 "type": "string"9794 },9795 "ref": {9796 "minLength": 1,9797 "type": "string"9798 },9799 "retryable": {9800 "enum": [9801 false9802 ],9803 "type": "boolean"9804 }9805 },9806 "required": [9807 "_tag",9808 "next",9809 "retryable",9810 "ref"9811 ],9812 "type": "object"9813 },9814 "FlakeEncoded": {9815 "additionalProperties": true,9816 "properties": {9817 "_tag": {9818 "enum": [9819 "Flake"9820 ],9821 "type": "string"9822 },9823 "at": {9824 "additionalProperties": true,9825 "properties": {9826 "line": {9827 "minimum": 1,9828 "type": "integer"9829 },9830 "path": {9831 "minLength": 1,9832 "type": "string"9833 }9834 },9835 "required": [9836 "line",9837 "path"9838 ],9839 "type": "object"9840 },9841 "lane": {9842 "minLength": 1,9843 "type": "string"9844 },9845 "next": {9846 "minLength": 1,9847 "type": "string"9848 },9849 "retryable": {9850 "enum": [9851 true9852 ],9853 "type": "boolean"9854 }9855 },9856 "required": [9857 "_tag",9858 "next",9859 "retryable",9860 "lane"9861 ],9862 "type": "object"9863 },9864 "HeldBackFailedEncoded": {9865 "additionalProperties": true,9866 "properties": {9867 "_tag": {9868 "enum": [9869 "HeldBackFailed"9870 ],9871 "type": "string"9872 },9873 "area": {9874 "minLength": 1,9875 "type": "string"9876 },9877 "at": {9878 "additionalProperties": true,9879 "properties": {9880 "line": {9881 "minimum": 1,9882 "type": "integer"9883 },9884 "path": {9885 "minLength": 1,9886 "type": "string"9887 }9888 },9889 "required": [9890 "line",9891 "path"9892 ],9893 "type": "object"9894 },9895 "next": {9896 "minLength": 1,9897 "type": "string"9898 },9899 "retryable": {9900 "enum": [9901 false9902 ],9903 "type": "boolean"9904 },9905 "suite": {9906 "minLength": 1,9907 "type": "string"9908 }9909 },9910 "required": [9911 "_tag",9912 "next",9913 "retryable",9914 "area",9915 "suite"9916 ],9917 "type": "object"9918 },9919 "ImportFailedEncoded": {9920 "additionalProperties": true,9921 "properties": {9922 "_tag": {9923 "enum": [9924 "ImportFailed"9925 ],9926 "type": "string"9927 },9928 "at": {9929 "additionalProperties": true,9930 "properties": {9931 "line": {9932 "minimum": 1,9933 "type": "integer"9934 },9935 "path": {9936 "minLength": 1,9937 "type": "string"9938 }9939 },9940 "required": [9941 "line",9942 "path"9943 ],9944 "type": "object"9945 },9946 "next": {9947 "minLength": 1,9948 "type": "string"9949 },9950 "reason": {9951 "minLength": 1,9952 "type": "string"9953 },9954 "retryable": {9955 "enum": [9956 true9957 ],9958 "type": "boolean"9959 }9960 },9961 "required": [9962 "_tag",9963 "next",9964 "retryable",9965 "reason"9966 ],9967 "type": "object"9968 },9969 "IncompleteBriefEncoded": {9970 "additionalProperties": true,9971 "properties": {9972 "_tag": {9973 "enum": [9974 "IncompleteBrief"9975 ],9976 "type": "string"9977 },9978 "at": {9979 "additionalProperties": true,9980 "properties": {9981 "line": {9982 "minimum": 1,9983 "type": "integer"9984 },9985 "path": {9986 "minLength": 1,9987 "type": "string"9988 }9989 },9990 "required": [9991 "line",9992 "path"9993 ],9994 "type": "object"9995 },9996 "missing": {9997 "items": {9998 "minLength": 1,9999 "type": "string"10000 },10001 "minItems": 1,10002 "prefixItems": [10003 {10004 "minLength": 1,10005 "type": "string"10006 }10007 ],10008 "type": "array"10009 },10010 "next": {10011 "minLength": 1,10012 "type": "string"10013 },10014 "retryable": {10015 "enum": [10016 false10017 ],10018 "type": "boolean"10019 }10020 },10021 "required": [10022 "_tag",10023 "next",10024 "retryable",10025 "missing"10026 ],10027 "type": "object"10028 },10029 "LayerContentInPublicTreeEncoded": {10030 "additionalProperties": true,10031 "properties": {10032 "_tag": {10033 "enum": [10034 "LayerContentInPublicTree"10035 ],10036 "type": "string"10037 },10038 "at": {10039 "additionalProperties": true,10040 "properties": {10041 "line": {10042 "minimum": 1,10043 "type": "integer"10044 },10045 "path": {10046 "minLength": 1,10047 "type": "string"10048 }10049 },10050 "required": [10051 "line",10052 "path"10053 ],10054 "type": "object"10055 },10056 "next": {10057 "minLength": 1,10058 "type": "string"10059 },10060 "paths": {10061 "items": {10062 "minLength": 1,10063 "type": "string"10064 },10065 "minItems": 1,10066 "prefixItems": [10067 {10068 "minLength": 1,10069 "type": "string"10070 }10071 ],10072 "type": "array"10073 },10074 "retryable": {10075 "enum": [10076 false10077 ],10078 "type": "boolean"10079 }10080 },10081 "required": [10082 "_tag",10083 "next",10084 "retryable",10085 "paths"10086 ],10087 "type": "object"10088 },10089 "NoAskEncoded": {10090 "additionalProperties": true,10091 "properties": {10092 "_tag": {10093 "enum": [10094 "NoAsk"10095 ],10096 "type": "string"10097 },10098 "at": {10099 "additionalProperties": true,10100 "properties": {10101 "line": {10102 "minimum": 1,10103 "type": "integer"10104 },10105 "path": {10106 "minLength": 1,10107 "type": "string"10108 }10109 },10110 "required": [10111 "line",10112 "path"10113 ],10114 "type": "object"10115 },10116 "next": {10117 "minLength": 1,10118 "type": "string"10119 },10120 "retryable": {10121 "enum": [10122 false10123 ],10124 "type": "boolean"10125 }10126 },10127 "required": [10128 "_tag",10129 "next",10130 "retryable"10131 ],10132 "type": "object"10133 },10134 "NotClaimedEncoded": {10135 "additionalProperties": true,10136 "properties": {10137 "_tag": {10138 "enum": [10139 "NotClaimed"10140 ],10141 "type": "string"10142 },10143 "ask": {10144 "allOf": [10145 {10146 "not": {10147 "enum": [10148 "me",10149 "layer"10150 ]10151 }10152 }10153 ],10154 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10155 "type": "string"10156 },10157 "at": {10158 "additionalProperties": true,10159 "properties": {10160 "line": {10161 "minimum": 1,10162 "type": "integer"10163 },10164 "path": {10165 "minLength": 1,10166 "type": "string"10167 }10168 },10169 "required": [10170 "line",10171 "path"10172 ],10173 "type": "object"10174 },10175 "next": {10176 "minLength": 1,10177 "type": "string"10178 },10179 "retryable": {10180 "enum": [10181 true10182 ],10183 "type": "boolean"10184 }10185 },10186 "required": [10187 "_tag",10188 "next",10189 "retryable",10190 "ask"10191 ],10192 "type": "object"10193 },10194 "NotDeciderEncoded": {10195 "additionalProperties": true,10196 "properties": {10197 "_tag": {10198 "enum": [10199 "NotDecider"10200 ],10201 "type": "string"10202 },10203 "at": {10204 "additionalProperties": true,10205 "properties": {10206 "line": {10207 "minimum": 1,10208 "type": "integer"10209 },10210 "path": {10211 "minLength": 1,10212 "type": "string"10213 }10214 },10215 "required": [10216 "line",10217 "path"10218 ],10219 "type": "object"10220 },10221 "next": {10222 "minLength": 1,10223 "type": "string"10224 },10225 "retryable": {10226 "enum": [10227 false10228 ],10229 "type": "boolean"10230 }10231 },10232 "required": [10233 "_tag",10234 "next",10235 "retryable"10236 ],10237 "type": "object"10238 },10239 "NotRedFirstEncoded": {10240 "additionalProperties": true,10241 "properties": {10242 "_tag": {10243 "enum": [10244 "NotRedFirst"10245 ],10246 "type": "string"10247 },10248 "at": {10249 "additionalProperties": true,10250 "properties": {10251 "line": {10252 "minimum": 1,10253 "type": "integer"10254 },10255 "path": {10256 "minLength": 1,10257 "type": "string"10258 }10259 },10260 "required": [10261 "line",10262 "path"10263 ],10264 "type": "object"10265 },10266 "next": {10267 "minLength": 1,10268 "type": "string"10269 },10270 "retryable": {10271 "enum": [10272 false10273 ],10274 "type": "boolean"10275 }10276 },10277 "required": [10278 "_tag",10279 "next",10280 "retryable"10281 ],10282 "type": "object"10283 },10284 "NotSensitiveEncoded": {10285 "additionalProperties": true,10286 "properties": {10287 "_tag": {10288 "enum": [10289 "NotSensitive"10290 ],10291 "type": "string"10292 },10293 "at": {10294 "additionalProperties": true,10295 "properties": {10296 "line": {10297 "minimum": 1,10298 "type": "integer"10299 },10300 "path": {10301 "minLength": 1,10302 "type": "string"10303 }10304 },10305 "required": [10306 "line",10307 "path"10308 ],10309 "type": "object"10310 },10311 "key": {10312 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",10313 "type": "string"10314 },10315 "next": {10316 "minLength": 1,10317 "type": "string"10318 },10319 "retryable": {10320 "enum": [10321 false10322 ],10323 "type": "boolean"10324 }10325 },10326 "required": [10327 "_tag",10328 "next",10329 "retryable",10330 "key"10331 ],10332 "type": "object"10333 },10334 "NotVouchedEncoded": {10335 "additionalProperties": true,10336 "properties": {10337 "_tag": {10338 "enum": [10339 "NotVouched"10340 ],10341 "type": "string"10342 },10343 "at": {10344 "additionalProperties": true,10345 "properties": {10346 "line": {10347 "minimum": 1,10348 "type": "integer"10349 },10350 "path": {10351 "minLength": 1,10352 "type": "string"10353 }10354 },10355 "required": [10356 "line",10357 "path"10358 ],10359 "type": "object"10360 },10361 "next": {10362 "minLength": 1,10363 "type": "string"10364 },10365 "retryable": {10366 "enum": [10367 false10368 ],10369 "type": "boolean"10370 }10371 },10372 "required": [10373 "_tag",10374 "next",10375 "retryable"10376 ],10377 "type": "object"10378 },10379 "OutOfScopeEncoded": {10380 "additionalProperties": true,10381 "properties": {10382 "_tag": {10383 "enum": [10384 "OutOfScope"10385 ],10386 "type": "string"10387 },10388 "at": {10389 "additionalProperties": true,10390 "properties": {10391 "line": {10392 "minimum": 1,10393 "type": "integer"10394 },10395 "path": {10396 "minLength": 1,10397 "type": "string"10398 }10399 },10400 "required": [10401 "line",10402 "path"10403 ],10404 "type": "object"10405 },10406 "next": {10407 "minLength": 1,10408 "type": "string"10409 },10410 "paths": {10411 "items": {10412 "minLength": 1,10413 "type": "string"10414 },10415 "minItems": 1,10416 "prefixItems": [10417 {10418 "minLength": 1,10419 "type": "string"10420 }10421 ],10422 "type": "array"10423 },10424 "retryable": {10425 "enum": [10426 false10427 ],10428 "type": "boolean"10429 }10430 },10431 "required": [10432 "_tag",10433 "next",10434 "retryable",10435 "paths"10436 ],10437 "type": "object"10438 },10439 "PostureChangeEncoded": {10440 "additionalProperties": true,10441 "properties": {10442 "_tag": {10443 "enum": [10444 "PostureChange"10445 ],10446 "type": "string"10447 },10448 "at": {10449 "additionalProperties": true,10450 "properties": {10451 "line": {10452 "minimum": 1,10453 "type": "integer"10454 },10455 "path": {10456 "minLength": 1,10457 "type": "string"10458 }10459 },10460 "required": [10461 "line",10462 "path"10463 ],10464 "type": "object"10465 },10466 "from": {10467 "enum": [10468 "open",10469 "openWithSealedEvidence",10470 "openOnSchedule",10471 "openCore",10472 "sourceAvailable"10473 ],10474 "type": "string"10475 },10476 "next": {10477 "minLength": 1,10478 "type": "string"10479 },10480 "retryable": {10481 "enum": [10482 false10483 ],10484 "type": "boolean"10485 },10486 "to": {10487 "enum": [10488 "open",10489 "openWithSealedEvidence",10490 "openOnSchedule",10491 "openCore",10492 "sourceAvailable"10493 ],10494 "type": "string"10495 }10496 },10497 "required": [10498 "_tag",10499 "next",10500 "retryable",10501 "from",10502 "to"10503 ],10504 "type": "object"10505 },10506 "PrivatePathInPublicTreeEncoded": {10507 "additionalProperties": true,10508 "properties": {10509 "_tag": {10510 "enum": [10511 "PrivatePathInPublicTree"10512 ],10513 "type": "string"10514 },10515 "at": {10516 "additionalProperties": true,10517 "properties": {10518 "line": {10519 "minimum": 1,10520 "type": "integer"10521 },10522 "path": {10523 "minLength": 1,10524 "type": "string"10525 }10526 },10527 "required": [10528 "line",10529 "path"10530 ],10531 "type": "object"10532 },10533 "next": {10534 "minLength": 1,10535 "type": "string"10536 },10537 "paths": {10538 "items": {10539 "minLength": 1,10540 "type": "string"10541 },10542 "minItems": 1,10543 "prefixItems": [10544 {10545 "minLength": 1,10546 "type": "string"10547 }10548 ],10549 "type": "array"10550 },10551 "retryable": {10552 "enum": [10553 false10554 ],10555 "type": "boolean"10556 }10557 },10558 "required": [10559 "_tag",10560 "next",10561 "retryable",10562 "paths"10563 ],10564 "type": "object"10565 },10566 "ProjectExistsEncoded": {10567 "additionalProperties": true,10568 "properties": {10569 "_tag": {10570 "enum": [10571 "ProjectExists"10572 ],10573 "type": "string"10574 },10575 "at": {10576 "additionalProperties": true,10577 "properties": {10578 "line": {10579 "minimum": 1,10580 "type": "integer"10581 },10582 "path": {10583 "minLength": 1,10584 "type": "string"10585 }10586 },10587 "required": [10588 "line",10589 "path"10590 ],10591 "type": "object"10592 },10593 "next": {10594 "minLength": 1,10595 "type": "string"10596 },10597 "project": {10598 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10599 "type": "string"10600 },10601 "retryable": {10602 "enum": [10603 false10604 ],10605 "type": "boolean"10606 }10607 },10608 "required": [10609 "_tag",10610 "next",10611 "retryable",10612 "project"10613 ],10614 "type": "object"10615 },10616 "ReachedInternalsEncoded": {10617 "additionalProperties": true,10618 "properties": {10619 "_tag": {10620 "enum": [10621 "ReachedInternals"10622 ],10623 "type": "string"10624 },10625 "at": {10626 "additionalProperties": true,10627 "properties": {10628 "line": {10629 "minimum": 1,10630 "type": "integer"10631 },10632 "path": {10633 "minLength": 1,10634 "type": "string"10635 }10636 },10637 "required": [10638 "line",10639 "path"10640 ],10641 "type": "object"10642 },10643 "from": {10644 "minLength": 1,10645 "type": "string"10646 },10647 "next": {10648 "minLength": 1,10649 "type": "string"10650 },10651 "retryable": {10652 "enum": [10653 false10654 ],10655 "type": "boolean"10656 },10657 "to": {10658 "minLength": 1,10659 "type": "string"10660 }10661 },10662 "required": [10663 "_tag",10664 "next",10665 "retryable",10666 "from",10667 "to"10668 ],10669 "type": "object"10670 },10671 "RepoBusyEncoded": {10672 "additionalProperties": true,10673 "properties": {10674 "_tag": {10675 "enum": [10676 "RepoBusy"10677 ],10678 "type": "string"10679 },10680 "at": {10681 "additionalProperties": true,10682 "properties": {10683 "line": {10684 "minimum": 1,10685 "type": "integer"10686 },10687 "path": {10688 "minLength": 1,10689 "type": "string"10690 }10691 },10692 "required": [10693 "line",10694 "path"10695 ],10696 "type": "object"10697 },10698 "next": {10699 "minLength": 1,10700 "type": "string"10701 },10702 "retryable": {10703 "enum": [10704 true10705 ],10706 "type": "boolean"10707 }10708 },10709 "required": [10710 "_tag",10711 "next",10712 "retryable"10713 ],10714 "type": "object"10715 },10716 "SecretInOutputEncoded": {10717 "additionalProperties": true,10718 "properties": {10719 "_tag": {10720 "enum": [10721 "SecretInOutput"10722 ],10723 "type": "string"10724 },10725 "at": {10726 "additionalProperties": true,10727 "properties": {10728 "line": {10729 "minimum": 1,10730 "type": "integer"10731 },10732 "path": {10733 "minLength": 1,10734 "type": "string"10735 }10736 },10737 "required": [10738 "line",10739 "path"10740 ],10741 "type": "object"10742 },10743 "item": {10744 "minLength": 1,10745 "type": "string"10746 },10747 "next": {10748 "minLength": 1,10749 "type": "string"10750 },10751 "retryable": {10752 "enum": [10753 false10754 ],10755 "type": "boolean"10756 },10757 "where": {10758 "enum": [10759 "output",10760 "tree"10761 ],10762 "type": "string"10763 }10764 },10765 "required": [10766 "_tag",10767 "next",10768 "retryable",10769 "item",10770 "where"10771 ],10772 "type": "object"10773 },10774 "StaleBaseEncoded": {10775 "additionalProperties": true,10776 "properties": {10777 "_tag": {10778 "enum": [10779 "StaleBase"10780 ],10781 "type": "string"10782 },10783 "at": {10784 "additionalProperties": true,10785 "properties": {10786 "line": {10787 "minimum": 1,10788 "type": "integer"10789 },10790 "path": {10791 "minLength": 1,10792 "type": "string"10793 }10794 },10795 "required": [10796 "line",10797 "path"10798 ],10799 "type": "object"10800 },10801 "base": {10802 "pattern": "^[0-9a-f]{40}$",10803 "type": "string"10804 },10805 "conflicts": {10806 "items": {10807 "minLength": 1,10808 "type": "string"10809 },10810 "type": "array"10811 },10812 "main": {10813 "pattern": "^[0-9a-f]{40}$",10814 "type": "string"10815 },10816 "next": {10817 "minLength": 1,10818 "type": "string"10819 },10820 "retryable": {10821 "enum": [10822 true10823 ],10824 "type": "boolean"10825 }10826 },10827 "required": [10828 "_tag",10829 "next",10830 "retryable",10831 "base",10832 "conflicts",10833 "main"10834 ],10835 "type": "object"10836 },10837 "StaleLayerEncoded": {10838 "additionalProperties": true,10839 "properties": {10840 "_tag": {10841 "enum": [10842 "StaleLayer"10843 ],10844 "type": "string"10845 },10846 "at": {10847 "additionalProperties": true,10848 "properties": {10849 "line": {10850 "minimum": 1,10851 "type": "integer"10852 },10853 "path": {10854 "minLength": 1,10855 "type": "string"10856 }10857 },10858 "required": [10859 "line",10860 "path"10861 ],10862 "type": "object"10863 },10864 "layer": {10865 "minLength": 1,10866 "type": "string"10867 },10868 "next": {10869 "minLength": 1,10870 "type": "string"10871 },10872 "retryable": {10873 "enum": [10874 true10875 ],10876 "type": "boolean"10877 }10878 },10879 "required": [10880 "_tag",10881 "next",10882 "retryable",10883 "layer"10884 ],10885 "type": "object"10886 },10887 "TouchedJudgeEncoded": {10888 "additionalProperties": true,10889 "properties": {10890 "_tag": {10891 "enum": [10892 "TouchedJudge"10893 ],10894 "type": "string"10895 },10896 "at": {10897 "additionalProperties": true,10898 "properties": {10899 "line": {10900 "minimum": 1,10901 "type": "integer"10902 },10903 "path": {10904 "minLength": 1,10905 "type": "string"10906 }10907 },10908 "required": [10909 "line",10910 "path"10911 ],10912 "type": "object"10913 },10914 "next": {10915 "minLength": 1,10916 "type": "string"10917 },10918 "paths": {10919 "items": {10920 "minLength": 1,10921 "type": "string"10922 },10923 "minItems": 1,10924 "prefixItems": [10925 {10926 "minLength": 1,10927 "type": "string"10928 }10929 ],10930 "type": "array"10931 },10932 "retryable": {10933 "enum": [10934 false10935 ],10936 "type": "boolean"10937 }10938 },10939 "required": [10940 "_tag",10941 "next",10942 "retryable",10943 "paths"10944 ],10945 "type": "object"10946 },10947 "UnknownAskEncoded": {10948 "additionalProperties": true,10949 "properties": {10950 "_tag": {10951 "enum": [10952 "UnknownAsk"10953 ],10954 "type": "string"10955 },10956 "ask": {10957 "allOf": [10958 {10959 "not": {10960 "enum": [10961 "me",10962 "layer"10963 ]10964 }10965 }10966 ],10967 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10968 "type": "string"10969 },10970 "at": {10971 "additionalProperties": true,10972 "properties": {10973 "line": {10974 "minimum": 1,10975 "type": "integer"10976 },10977 "path": {10978 "minLength": 1,10979 "type": "string"10980 }10981 },10982 "required": [10983 "line",10984 "path"10985 ],10986 "type": "object"10987 },10988 "next": {10989 "minLength": 1,10990 "type": "string"10991 },10992 "retryable": {10993 "enum": [10994 false10995 ],10996 "type": "boolean"10997 }10998 },10999 "required": [11000 "_tag",11001 "next",11002 "retryable",11003 "ask"11004 ],11005 "type": "object"11006 },11007 "UnknownCommitEncoded": {11008 "additionalProperties": true,11009 "properties": {11010 "_tag": {11011 "enum": [11012 "UnknownCommit"11013 ],11014 "type": "string"11015 },11016 "at": {11017 "additionalProperties": true,11018 "properties": {11019 "line": {11020 "minimum": 1,11021 "type": "integer"11022 },11023 "path": {11024 "minLength": 1,11025 "type": "string"11026 }11027 },11028 "required": [11029 "line",11030 "path"11031 ],11032 "type": "object"11033 },11034 "next": {11035 "minLength": 1,11036 "type": "string"11037 },11038 "retryable": {11039 "enum": [11040 false11041 ],11042 "type": "boolean"11043 },11044 "sha": {11045 "pattern": "^[0-9a-f]{40}$",11046 "type": "string"11047 }11048 },11049 "required": [11050 "_tag",11051 "next",11052 "retryable",11053 "sha"11054 ],11055 "type": "object"11056 },11057 "UnknownDecisionEncoded": {11058 "additionalProperties": true,11059 "properties": {11060 "_tag": {11061 "enum": [11062 "UnknownDecision"11063 ],11064 "type": "string"11065 },11066 "at": {11067 "additionalProperties": true,11068 "properties": {11069 "line": {11070 "minimum": 1,11071 "type": "integer"11072 },11073 "path": {11074 "minLength": 1,11075 "type": "string"11076 }11077 },11078 "required": [11079 "line",11080 "path"11081 ],11082 "type": "object"11083 },11084 "decision": {11085 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",11086 "type": "string"11087 },11088 "next": {11089 "minLength": 1,11090 "type": "string"11091 },11092 "retryable": {11093 "enum": [11094 false11095 ],11096 "type": "boolean"11097 }11098 },11099 "required": [11100 "_tag",11101 "next",11102 "retryable",11103 "decision"11104 ],11105 "type": "object"11106 },11107 "UnknownEnvItemEncoded": {11108 "additionalProperties": true,11109 "properties": {11110 "_tag": {11111 "enum": [11112 "UnknownEnvItem"11113 ],11114 "type": "string"11115 },11116 "at": {11117 "additionalProperties": true,11118 "properties": {11119 "line": {11120 "minimum": 1,11121 "type": "integer"11122 },11123 "path": {11124 "minLength": 1,11125 "type": "string"11126 }11127 },11128 "required": [11129 "line",11130 "path"11131 ],11132 "type": "object"11133 },11134 "key": {11135 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",11136 "type": "string"11137 },11138 "next": {11139 "minLength": 1,11140 "type": "string"11141 },11142 "retryable": {11143 "enum": [11144 false11145 ],11146 "type": "boolean"11147 }11148 },11149 "required": [11150 "_tag",11151 "next",11152 "retryable",11153 "key"11154 ],11155 "type": "object"11156 },11157 "UnknownProjectEncoded": {11158 "additionalProperties": true,11159 "properties": {11160 "_tag": {11161 "enum": [11162 "UnknownProject"11163 ],11164 "type": "string"11165 },11166 "at": {11167 "additionalProperties": true,11168 "properties": {11169 "line": {11170 "minimum": 1,11171 "type": "integer"11172 },11173 "path": {11174 "minLength": 1,11175 "type": "string"11176 }11177 },11178 "required": [11179 "line",11180 "path"11181 ],11182 "type": "object"11183 },11184 "next": {11185 "minLength": 1,11186 "type": "string"11187 },11188 "project": {11189 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11190 "type": "string"11191 },11192 "retryable": {11193 "enum": [11194 false11195 ],11196 "type": "boolean"11197 }11198 },11199 "required": [11200 "_tag",11201 "next",11202 "retryable",11203 "project"11204 ],11205 "type": "object"11206 },11207 "UnstatedRequirementEncoded": {11208 "additionalProperties": true,11209 "properties": {11210 "_tag": {11211 "enum": [11212 "UnstatedRequirement"11213 ],11214 "type": "string"11215 },11216 "area": {11217 "minLength": 1,11218 "type": "string"11219 },11220 "at": {11221 "additionalProperties": true,11222 "properties": {11223 "line": {11224 "minimum": 1,11225 "type": "integer"11226 },11227 "path": {11228 "minLength": 1,11229 "type": "string"11230 }11231 },11232 "required": [11233 "line",11234 "path"11235 ],11236 "type": "object"11237 },11238 "next": {11239 "minLength": 1,11240 "type": "string"11241 },11242 "retryable": {11243 "enum": [11244 false11245 ],11246 "type": "boolean"11247 }11248 },11249 "required": [11250 "_tag",11251 "next",11252 "retryable",11253 "area"11254 ],11255 "type": "object"11256 },11257 "ValueTooShortEncoded": {11258 "additionalProperties": true,11259 "properties": {11260 "_tag": {11261 "enum": [11262 "ValueTooShort"11263 ],11264 "type": "string"11265 },11266 "at": {11267 "additionalProperties": true,11268 "properties": {11269 "line": {11270 "minimum": 1,11271 "type": "integer"11272 },11273 "path": {11274 "minLength": 1,11275 "type": "string"11276 }11277 },11278 "required": [11279 "line",11280 "path"11281 ],11282 "type": "object"11283 },11284 "key": {11285 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",11286 "type": "string"11287 },11288 "minimum": {11289 "type": "integer"11290 },11291 "next": {11292 "minLength": 1,11293 "type": "string"11294 },11295 "retryable": {11296 "enum": [11297 false11298 ],11299 "type": "boolean"11300 }11301 },11302 "required": [11303 "_tag",11304 "next",11305 "retryable",11306 "key",11307 "minimum"11308 ],11309 "type": "object"11310 },11311 "VerifierBlockedEncoded": {11312 "additionalProperties": true,11313 "properties": {11314 "_tag": {11315 "enum": [11316 "VerifierBlocked"11317 ],11318 "type": "string"11319 },11320 "at": {11321 "additionalProperties": true,11322 "properties": {11323 "line": {11324 "minimum": 1,11325 "type": "integer"11326 },11327 "path": {11328 "minLength": 1,11329 "type": "string"11330 }11331 },11332 "required": [11333 "line",11334 "path"11335 ],11336 "type": "object"11337 },11338 "next": {11339 "minLength": 1,11340 "type": "string"11341 },11342 "retryable": {11343 "enum": [11344 true11345 ],11346 "type": "boolean"11347 }11348 },11349 "required": [11350 "_tag",11351 "next",11352 "retryable"11353 ],11354 "type": "object"11355 },11356 "WeakCheckEncoded": {11357 "additionalProperties": true,11358 "properties": {11359 "_tag": {11360 "enum": [11361 "WeakCheck"11362 ],11363 "type": "string"11364 },11365 "at": {11366 "additionalProperties": true,11367 "properties": {11368 "line": {11369 "minimum": 1,11370 "type": "integer"11371 },11372 "path": {11373 "minLength": 1,11374 "type": "string"11375 }11376 },11377 "required": [11378 "line",11379 "path"11380 ],11381 "type": "object"11382 },11383 "next": {11384 "minLength": 1,11385 "type": "string"11386 },11387 "retryable": {11388 "enum": [11389 false11390 ],11391 "type": "boolean"11392 },11393 "weakness": {11394 "minLength": 1,11395 "type": "string"11396 }11397 },11398 "required": [11399 "_tag",11400 "next",11401 "retryable",11402 "weakness"11403 ],11404 "type": "object"11405 },11406 "WeakenedEncoded": {11407 "additionalProperties": true,11408 "properties": {11409 "_tag": {11410 "enum": [11411 "Weakened"11412 ],11413 "type": "string"11414 },11415 "at": {11416 "additionalProperties": true,11417 "properties": {11418 "line": {11419 "minimum": 1,11420 "type": "integer"11421 },11422 "path": {11423 "minLength": 1,11424 "type": "string"11425 }11426 },11427 "required": [11428 "line",11429 "path"11430 ],11431 "type": "object"11432 },11433 "next": {11434 "minLength": 1,11435 "type": "string"11436 },11437 "retryable": {11438 "enum": [11439 false11440 ],11441 "type": "boolean"11442 },11443 "weakening": {11444 "anyOf": [11445 {11446 "additionalProperties": true,11447 "properties": {11448 "marker": {11449 "minLength": 1,11450 "type": "string"11451 },11452 "reason": {11453 "minLength": 1,11454 "type": "string"11455 }11456 },11457 "required": [11458 "marker"11459 ],11460 "type": "object"11461 },11462 {11463 "additionalProperties": true,11464 "properties": {11465 "after": {11466 "type": "integer"11467 },11468 "before": {11469 "type": "integer"11470 },11471 "ratchet": {11472 "minLength": 1,11473 "type": "string"11474 },11475 "territory": {11476 "minLength": 1,11477 "type": "string"11478 }11479 },11480 "required": [11481 "after",11482 "before",11483 "ratchet",11484 "territory"11485 ],11486 "type": "object"11487 }11488 ]11489 }11490 },11491 "required": [11492 "_tag",11493 "next",11494 "retryable",11495 "weakening"11496 ],11497 "type": "object"11498 }11499 },11500 "additionalProperties": true,11501 "properties": {11502 "budget": {11503 "additionalProperties": true,11504 "properties": {11505 "finishes": {11506 "type": "integer"11507 },11508 "total": {11509 "type": "integer"11510 },11511 "used": {11512 "type": "integer"11513 }11514 },11515 "required": [11516 "finishes",11517 "total",11518 "used"11519 ],11520 "type": "object"11521 },11522 "decider": {11523 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11524 "type": "string"11525 },11526 "decisions": {11527 "items": {11528 "additionalProperties": true,11529 "properties": {11530 "decided": {11531 "additionalProperties": true,11532 "properties": {11533 "at": {11534 "type": "string"11535 },11536 "by": {11537 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11538 "type": "string"11539 },11540 "choice": {11541 "enum": [11542 "accept",11543 "decline",11544 "adopt",11545 "revert"11546 ],11547 "type": "string"11548 },11549 "note": {11550 "type": "string"11551 }11552 },11553 "required": [11554 "at",11555 "by",11556 "choice"11557 ],11558 "type": "object"11559 },11560 "deciders": {11561 "items": {11562 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11563 "type": "string"11564 },11565 "minItems": 1,11566 "prefixItems": [11567 {11568 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11569 "type": "string"11570 }11571 ],11572 "type": "array"11573 },11574 "default": {11575 "enum": [11576 "accept",11577 "decline",11578 "adopt",11579 "revert"11580 ],11581 "type": "string"11582 },11583 "evidence": {11584 "items": {11585 "additionalProperties": true,11586 "properties": {11587 "href": {11588 "minLength": 1,11589 "type": "string"11590 },11591 "label": {11592 "minLength": 1,11593 "type": "string"11594 },11595 "value": {11596 "type": "string"11597 }11598 },11599 "required": [11600 "label",11601 "value"11602 ],11603 "type": "object"11604 },11605 "type": "array"11606 },11607 "expiresAt": {11608 "type": "string"11609 },11610 "id": {11611 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",11612 "type": "string"11613 },11614 "openedAt": {11615 "type": "string"11616 },11617 "project": {11618 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11619 "type": "string"11620 },11621 "subject": {11622 "anyOf": [11623 {11624 "additionalProperties": true,11625 "properties": {11626 "_tag": {11627 "enum": [11628 "Finish"11629 ],11630 "type": "string"11631 },11632 "ask": {11633 "allOf": [11634 {11635 "not": {11636 "enum": [11637 "me",11638 "layer"11639 ]11640 }11641 }11642 ],11643 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11644 "type": "string"11645 },11646 "head": {11647 "pattern": "^[0-9a-f]{40}$",11648 "type": "string"11649 }11650 },11651 "required": [11652 "_tag",11653 "ask",11654 "head"11655 ],11656 "type": "object"11657 },11658 {11659 "additionalProperties": true,11660 "properties": {11661 "_tag": {11662 "enum": [11663 "OpenProposal"11664 ],11665 "type": "string"11666 },11667 "proposal": {11668 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",11669 "type": "string"11670 }11671 },11672 "required": [11673 "_tag",11674 "proposal"11675 ],11676 "type": "object"11677 },11678 {11679 "additionalProperties": true,11680 "properties": {11681 "_tag": {11682 "enum": [11683 "PostureChange"11684 ],11685 "type": "string"11686 },11687 "from": {11688 "enum": [11689 "open",11690 "openWithSealedEvidence",11691 "openOnSchedule",11692 "openCore",11693 "sourceAvailable"11694 ],11695 "type": "string"11696 },11697 "to": {11698 "enum": [11699 "open",11700 "openWithSealedEvidence",11701 "openOnSchedule",11702 "openCore",11703 "sourceAvailable"11704 ],11705 "type": "string"11706 }11707 },11708 "required": [11709 "_tag",11710 "from",11711 "to"11712 ],11713 "type": "object"11714 },11715 {11716 "additionalProperties": true,11717 "properties": {11718 "_tag": {11719 "enum": [11720 "ProxyWidened"11721 ],11722 "type": "string"11723 },11724 "hosts": {11725 "items": {11726 "pattern": "^(?:\\*\\.)?[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*$",11727 "type": "string"11728 },11729 "type": "array"11730 },11731 "item": {11732 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",11733 "type": "string"11734 }11735 },11736 "required": [11737 "_tag",11738 "hosts",11739 "item"11740 ],11741 "type": "object"11742 },11743 {11744 "additionalProperties": true,11745 "properties": {11746 "_tag": {11747 "enum": [11748 "RaiseRatchet"11749 ],11750 "type": "string"11751 },11752 "after": {11753 "type": "integer"11754 },11755 "ask": {11756 "allOf": [11757 {11758 "not": {11759 "enum": [11760 "me",11761 "layer"11762 ]11763 }11764 }11765 ],11766 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11767 "type": "string"11768 },11769 "before": {11770 "type": "integer"11771 },11772 "ratchet": {11773 "pattern": "^[a-z][a-zA-Z0-9-]*$",11774 "type": "string"11775 },11776 "territory": {11777 "minLength": 1,11778 "type": "string"11779 }11780 },11781 "required": [11782 "_tag",11783 "after",11784 "ask",11785 "before",11786 "ratchet",11787 "territory"11788 ],11789 "type": "object"11790 },11791 {11792 "additionalProperties": true,11793 "properties": {11794 "_tag": {11795 "enum": [11796 "SecretInTree"11797 ],11798 "type": "string"11799 },11800 "ask": {11801 "allOf": [11802 {11803 "not": {11804 "enum": [11805 "me",11806 "layer"11807 ]11808 }11809 }11810 ],11811 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11812 "type": "string"11813 },11814 "item": {11815 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",11816 "type": "string"11817 }11818 },11819 "required": [11820 "_tag",11821 "ask",11822 "item"11823 ],11824 "type": "object"11825 },11826 {11827 "additionalProperties": true,11828 "properties": {11829 "_tag": {11830 "enum": [11831 "StrayPush"11832 ],11833 "type": "string"11834 },11835 "after": {11836 "pattern": "^[0-9a-f]{40}$",11837 "type": "string"11838 },11839 "before": {11840 "pattern": "^[0-9a-f]{40}$",11841 "type": "string"11842 },11843 "ref": {11844 "pattern": "^refs\\/(?!.*\\.\\.)[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)+$",11845 "type": "string"11846 }11847 },11848 "required": [11849 "_tag",11850 "after",11851 "before",11852 "ref"11853 ],11854 "type": "object"11855 },11856 {11857 "additionalProperties": true,11858 "properties": {11859 "_tag": {11860 "enum": [11861 "Vouch"11862 ],11863 "type": "string"11864 },11865 "handle": {11866 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11867 "type": "string"11868 }11869 },11870 "required": [11871 "_tag",11872 "handle"11873 ],11874 "type": "object"11875 },11876 {11877 "additionalProperties": true,11878 "properties": {11879 "_tag": {11880 "enum": [11881 "Waiver"11882 ],11883 "type": "string"11884 },11885 "ask": {11886 "allOf": [11887 {11888 "not": {11889 "enum": [11890 "me",11891 "layer"11892 ]11893 }11894 }11895 ],11896 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11897 "type": "string"11898 },11899 "at": {11900 "additionalProperties": true,11901 "properties": {11902 "line": {11903 "minimum": 1,11904 "type": "integer"11905 },11906 "path": {11907 "minLength": 1,11908 "type": "string"11909 }11910 },11911 "required": [11912 "line",11913 "path"11914 ],11915 "type": "object"11916 },11917 "marker": {11918 "minLength": 1,11919 "type": "string"11920 },11921 "reason": {11922 "minLength": 1,11923 "type": "string"11924 }11925 },11926 "required": [11927 "_tag",11928 "ask",11929 "at",11930 "marker",11931 "reason"11932 ],11933 "type": "object"11934 }11935 ]11936 }11937 },11938 "required": [11939 "deciders",11940 "default",11941 "evidence",11942 "expiresAt",11943 "id",11944 "openedAt",11945 "project",11946 "subject"11947 ],11948 "type": "object"11949 },11950 "type": "array"11951 },11952 "expiringSoon": {11953 "items": {11954 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",11955 "type": "string"11956 },11957 "type": "array"11958 },11959 "newcomers": {11960 "items": {11961 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11962 "type": "string"11963 },11964 "type": "array"11965 },11966 "overflow": {11967 "type": "integer"11968 },11969 "unattended": {11970 "items": {11971 "additionalProperties": true,11972 "properties": {11973 "ask": {11974 "allOf": [11975 {11976 "not": {11977 "enum": [11978 "me",11979 "layer"11980 ]11981 }11982 }11983 ],11984 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11985 "type": "string"11986 },11987 "assisted": {11988 "items": {11989 "additionalProperties": true,11990 "properties": {11991 "harness": {11992 "minLength": 1,11993 "type": "string"11994 },11995 "model": {11996 "minLength": 1,11997 "type": "string"11998 },11999 "verified": {12000 "type": "boolean"12001 }12002 },12003 "required": [12004 "harness",12005 "verified"12006 ],12007 "type": "object"12008 },12009 "type": "array"12010 },12011 "author": {12012 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",12013 "type": "string"12014 },12015 "credits": {12016 "items": {12017 "additionalProperties": true,12018 "properties": {12019 "handle": {12020 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",12021 "type": "string"12022 },12023 "role": {12024 "enum": [12025 "Asked-by",12026 "Signed-off-by",12027 "Decided-by",12028 "Mentored-by",12029 "Finished-by",12030 "Advised-by",12031 "Released-by"12032 ],12033 "type": "string"12034 }12035 },12036 "required": [12037 "handle",12038 "role"12039 ],12040 "type": "object"12041 },12042 "type": "array"12043 },12044 "heldBackTrailer": {12045 "minLength": 1,12046 "type": "string"12047 },12048 "landedAt": {12049 "type": "string"12050 },12051 "parent": {12052 "pattern": "^[0-9a-f]{40}$",12053 "type": "string"12054 },12055 "project": {12056 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",12057 "type": "string"12058 },12059 "requestId": {12060 "pattern": "^[A-Za-z0-9_-]{8,64}$",12061 "type": "string"12062 },12063 "sha": {12064 "pattern": "^[0-9a-f]{40}$",12065 "type": "string"12066 },12067 "verdict": {12068 "additionalProperties": true,12069 "properties": {12070 "ask": {12071 "allOf": [12072 {12073 "not": {12074 "enum": [12075 "me",12076 "layer"12077 ]12078 }12079 }12080 ],12081 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",12082 "type": "string"12083 },12084 "at": {12085 "type": "string"12086 },12087 "base": {12088 "pattern": "^[0-9a-f]{40}$",12089 "type": "string"12090 },12091 "checkVersion": {12092 "minLength": 1,12093 "type": "string"12094 },12095 "head": {12096 "pattern": "^[0-9a-f]{40}$",12097 "type": "string"12098 },12099 "heldBack": {12100 "items": {12101 "additionalProperties": true,12102 "properties": {12103 "area": {12104 "pattern": "^[a-z][a-zA-Z0-9-]*$",12105 "type": "string"12106 },12107 "passed": {12108 "type": "integer"12109 },12110 "suite": {12111 "pattern": "^sha256:[0-9a-f]{64}$",12112 "type": "string"12113 },12114 "total": {12115 "type": "integer"12116 }12117 },12118 "required": [12119 "area",12120 "passed",12121 "suite",12122 "total"12123 ],12124 "type": "object"12125 },12126 "type": "array"12127 },12128 "lanes": {12129 "items": {12130 "additionalProperties": true,12131 "properties": {12132 "command": {12133 "minLength": 1,12134 "type": "string"12135 },12136 "durationMs": {12137 "type": "integer"12138 },12139 "lane": {12140 "pattern": "^[a-z][a-zA-Z0-9-]*$",12141 "type": "string"12142 },12143 "logRef": {12144 "minLength": 1,12145 "type": "string"12146 },12147 "result": {12148 "enum": [12149 "passed",12150 "failed",12151 "loadError",12152 "flaked",12153 "blocked"12154 ],12155 "type": "string"12156 }12157 },12158 "required": [12159 "command",12160 "durationMs",12161 "lane",12162 "result"12163 ],12164 "type": "object"12165 },12166 "type": "array"12167 },12168 "outcome": {12169 "anyOf": [12170 {12171 "additionalProperties": true,12172 "properties": {12173 "_tag": {12174 "enum": [12175 "AwaitingDecision"12176 ],12177 "type": "string"12178 },12179 "decision": {12180 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",12181 "type": "string"12182 }12183 },12184 "required": [12185 "_tag",12186 "decision"12187 ],12188 "type": "object"12189 },12190 {12191 "additionalProperties": true,12192 "properties": {12193 "_tag": {12194 "enum": [12195 "AwaitingFinish"12196 ],12197 "type": "string"12198 },12199 "decider": {12200 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",12201 "type": "string"12202 }12203 },12204 "required": [12205 "_tag"12206 ],12207 "type": "object"12208 },12209 {12210 "additionalProperties": true,12211 "properties": {12212 "_tag": {12213 "enum": [12214 "Checking"12215 ],12216 "type": "string"12217 },12218 "stage": {12219 "enum": [12220 "parse",12221 "shape",12222 "merge",12223 "cheap",12224 "checks",12225 "heldBack",12226 "human"12227 ],12228 "type": "string"12229 }12230 },12231 "required": [12232 "_tag",12233 "stage"12234 ],12235 "type": "object"12236 },12237 {12238 "additionalProperties": true,12239 "properties": {12240 "_tag": {12241 "enum": [12242 "Landed"12243 ],12244 "type": "string"12245 },12246 "sha": {12247 "pattern": "^[0-9a-f]{40}$",12248 "type": "string"12249 }12250 },12251 "required": [12252 "_tag",12253 "sha"12254 ],12255 "type": "object"12256 },12257 {12258 "additionalProperties": true,12259 "properties": {12260 "_tag": {12261 "enum": [12262 "Refused"12263 ],12264 "type": "string"12265 },12266 "refusals": {12267 "items": {12268 "anyOf": [12269 {12270 "$ref": "#/$defs/NotClaimedEncoded"12271 },12272 {12273 "$ref": "#/$defs/ClaimLapsedEncoded"12274 },12275 {12276 "$ref": "#/$defs/NotVouchedEncoded"12277 },12278 {12279 "$ref": "#/$defs/CapReachedEncoded"12280 },12281 {12282 "$ref": "#/$defs/AskFullEncoded"12283 },12284 {12285 "$ref": "#/$defs/NoAskEncoded"12286 },12287 {12288 "$ref": "#/$defs/RepoBusyEncoded"12289 },12290 {12291 "$ref": "#/$defs/DirectPushEncoded"12292 },12293 {12294 "$ref": "#/$defs/AskBlockedEncoded"12295 },12296 {12297 "$ref": "#/$defs/DenouncedEncoded"12298 },12299 {12300 "$ref": "#/$defs/OutOfScopeEncoded"12301 },12302 {12303 "$ref": "#/$defs/TouchedJudgeEncoded"12304 },12305 {12306 "$ref": "#/$defs/WeakenedEncoded"12307 },12308 {12309 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"12310 },12311 {12312 "$ref": "#/$defs/ReachedInternalsEncoded"12313 },12314 {12315 "$ref": "#/$defs/StaleBaseEncoded"12316 },12317 {12318 "$ref": "#/$defs/StaleLayerEncoded"12319 },12320 {12321 "$ref": "#/$defs/ChecksFailedEncoded"12322 },12323 {12324 "$ref": "#/$defs/HeldBackFailedEncoded"12325 },12326 {12327 "$ref": "#/$defs/AttemptsExhaustedEncoded"12328 },12329 {12330 "$ref": "#/$defs/FlakeEncoded"12331 },12332 {12333 "$ref": "#/$defs/VerifierBlockedEncoded"12334 },12335 {12336 "$ref": "#/$defs/NotRedFirstEncoded"12337 },12338 {12339 "$ref": "#/$defs/WeakCheckEncoded"12340 },12341 {12342 "$ref": "#/$defs/IncompleteBriefEncoded"12343 },12344 {12345 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"12346 },12347 {12348 "$ref": "#/$defs/SecretInOutputEncoded"12349 },12350 {12351 "$ref": "#/$defs/UnstatedRequirementEncoded"12352 },12353 {12354 "$ref": "#/$defs/PostureChangeEncoded"12355 },12356 {12357 "$ref": "#/$defs/NotDeciderEncoded"12358 },12359 {12360 "$ref": "#/$defs/DecisionClosedEncoded"12361 },12362 {12363 "$ref": "#/$defs/UnknownProjectEncoded"12364 },12365 {12366 "$ref": "#/$defs/UnknownAskEncoded"12367 },12368 {12369 "$ref": "#/$defs/UnknownCommitEncoded"12370 },12371 {12372 "$ref": "#/$defs/UnknownDecisionEncoded"12373 },12374 {12375 "$ref": "#/$defs/ProjectExistsEncoded"12376 },12377 {12378 "$ref": "#/$defs/ImportFailedEncoded"12379 },12380 {12381 "$ref": "#/$defs/UnknownEnvItemEncoded"12382 },12383 {12384 "$ref": "#/$defs/NotSensitiveEncoded"12385 },12386 {12387 "$ref": "#/$defs/ValueTooShortEncoded"12388 }12389 ]12390 },12391 "minItems": 1,12392 "prefixItems": [12393 {12394 "anyOf": [12395 {12396 "$ref": "#/$defs/NotClaimedEncoded"12397 },12398 {12399 "$ref": "#/$defs/ClaimLapsedEncoded"12400 },12401 {12402 "$ref": "#/$defs/NotVouchedEncoded"12403 },12404 {12405 "$ref": "#/$defs/CapReachedEncoded"12406 },12407 {12408 "$ref": "#/$defs/AskFullEncoded"12409 },12410 {12411 "$ref": "#/$defs/NoAskEncoded"12412 },12413 {12414 "$ref": "#/$defs/RepoBusyEncoded"12415 },12416 {12417 "$ref": "#/$defs/DirectPushEncoded"12418 },12419 {12420 "$ref": "#/$defs/AskBlockedEncoded"12421 },12422 {12423 "$ref": "#/$defs/DenouncedEncoded"12424 },12425 {12426 "$ref": "#/$defs/OutOfScopeEncoded"12427 },12428 {12429 "$ref": "#/$defs/TouchedJudgeEncoded"12430 },12431 {12432 "$ref": "#/$defs/WeakenedEncoded"12433 },12434 {12435 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"12436 },12437 {12438 "$ref": "#/$defs/ReachedInternalsEncoded"12439 },12440 {12441 "$ref": "#/$defs/StaleBaseEncoded"12442 },12443 {12444 "$ref": "#/$defs/StaleLayerEncoded"12445 },12446 {12447 "$ref": "#/$defs/ChecksFailedEncoded"12448 },12449 {12450 "$ref": "#/$defs/HeldBackFailedEncoded"12451 },12452 {12453 "$ref": "#/$defs/AttemptsExhaustedEncoded"12454 },12455 {12456 "$ref": "#/$defs/FlakeEncoded"12457 },12458 {12459 "$ref": "#/$defs/VerifierBlockedEncoded"12460 },12461 {12462 "$ref": "#/$defs/NotRedFirstEncoded"12463 },12464 {12465 "$ref": "#/$defs/WeakCheckEncoded"12466 },12467 {12468 "$ref": "#/$defs/IncompleteBriefEncoded"12469 },12470 {12471 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"12472 },12473 {12474 "$ref": "#/$defs/SecretInOutputEncoded"12475 },12476 {12477 "$ref": "#/$defs/UnstatedRequirementEncoded"12478 },12479 {12480 "$ref": "#/$defs/PostureChangeEncoded"12481 },12482 {12483 "$ref": "#/$defs/NotDeciderEncoded"12484 },12485 {12486 "$ref": "#/$defs/DecisionClosedEncoded"12487 },12488 {12489 "$ref": "#/$defs/UnknownProjectEncoded"12490 },12491 {12492 "$ref": "#/$defs/UnknownAskEncoded"12493 },12494 {12495 "$ref": "#/$defs/UnknownCommitEncoded"12496 },12497 {12498 "$ref": "#/$defs/UnknownDecisionEncoded"12499 },12500 {12501 "$ref": "#/$defs/ProjectExistsEncoded"12502 },12503 {12504 "$ref": "#/$defs/ImportFailedEncoded"12505 },12506 {12507 "$ref": "#/$defs/UnknownEnvItemEncoded"12508 },12509 {12510 "$ref": "#/$defs/NotSensitiveEncoded"12511 },12512 {12513 "$ref": "#/$defs/ValueTooShortEncoded"12514 }12515 ]12516 }12517 ],12518 "type": "array"12519 }12520 },12521 "required": [12522 "_tag",12523 "refusals"12524 ],12525 "type": "object"12526 },12527 {12528 "additionalProperties": true,12529 "properties": {12530 "_tag": {12531 "enum": [12532 "WaitingOnParent"12533 ],12534 "type": "string"12535 },12536 "ask": {12537 "allOf": [12538 {12539 "not": {12540 "enum": [12541 "me",12542 "layer"12543 ]12544 }12545 }12546 ],12547 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",12548 "type": "string"12549 }12550 },12551 "required": [12552 "_tag",12553 "ask"12554 ],12555 "type": "object"12556 }12557 ]12558 },12559 "patchId": {12560 "pattern": "^[0-9a-f]{64}$",12561 "type": "string"12562 },12563 "project": {12564 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",12565 "type": "string"12566 },12567 "stage": {12568 "enum": [12569 "parse",12570 "shape",12571 "merge",12572 "cheap",12573 "checks",12574 "heldBack",12575 "human"12576 ],12577 "type": "string"12578 },12579 "tree": {12580 "pattern": "^[0-9a-f]{40}$",12581 "type": "string"12582 },12583 "verifier": {12584 "enum": [12585 "platform"12586 ],12587 "type": "string"12588 }12589 },12590 "required": [12591 "ask",12592 "at",12593 "base",12594 "checkVersion",12595 "head",12596 "heldBack",12597 "lanes",12598 "outcome",12599 "patchId",12600 "project",12601 "stage",12602 "tree",12603 "verifier"12604 ],12605 "type": "object"12606 }12607 },12608 "required": [12609 "assisted",12610 "author",12611 "credits",12612 "landedAt",12613 "parent",12614 "project",12615 "sha"12616 ],12617 "type": "object"12618 },12619 "type": "array"12620 }12621 },12622 "required": [12623 "budget",12624 "decider",12625 "decisions",12626 "expiringSoon",12627 "newcomers",12628 "overflow",12629 "unattended"12630 ],12631 "type": "object"12632}12633```1263412635## ledger1263612637Show a project's ledger: its layers, counts, commitments, releases and posture changes.1263812639| Hint | Value |12640| --- | --- |12641| `destructiveHint` | `false` |12642| `idempotentHint` | `true` |12643| `openWorldHint` | `false` |12644| `readOnlyHint` | `true` |1264512646### Input1264712648```json12649{12650 "additionalProperties": true,12651 "properties": {12652 "project": {12653 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",12654 "type": "string"12655 }12656 },12657 "required": [12658 "project"12659 ],12660 "type": "object"12661}12662```1266312664### Output1266512666```json12667{12668 "additionalProperties": true,12669 "properties": {12670 "entries": {12671 "items": {12672 "anyOf": [12673 {12674 "additionalProperties": true,12675 "properties": {12676 "_tag": {12677 "enum": [12678 "Admitted"12679 ],12680 "type": "string"12681 },12682 "area": {12683 "pattern": "^[a-z][a-zA-Z0-9-]*$",12684 "type": "string"12685 },12686 "at": {12687 "type": "string"12688 },12689 "knownBadCaught": {12690 "type": "integer"12691 },12692 "mainRuns": {12693 "type": "integer"12694 },12695 "seq": {12696 "type": "integer"12697 },12698 "suite": {12699 "pattern": "^sha256:[0-9a-f]{64}$",12700 "type": "string"12701 }12702 },12703 "required": [12704 "_tag",12705 "area",12706 "at",12707 "knownBadCaught",12708 "mainRuns",12709 "seq",12710 "suite"12711 ],12712 "type": "object"12713 },12714 {12715 "additionalProperties": true,12716 "properties": {12717 "_tag": {12718 "enum": [12719 "CommitmentPublished"12720 ],12721 "type": "string"12722 },12723 "area": {12724 "pattern": "^[a-z][a-zA-Z0-9-]*$",12725 "type": "string"12726 },12727 "at": {12728 "type": "string"12729 },12730 "authors": {12731 "type": "integer"12732 },12733 "checks": {12734 "type": "integer"12735 },12736 "seq": {12737 "type": "integer"12738 },12739 "suite": {12740 "pattern": "^sha256:[0-9a-f]{64}$",12741 "type": "string"12742 }12743 },12744 "required": [12745 "_tag",12746 "area",12747 "at",12748 "authors",12749 "checks",12750 "seq",12751 "suite"12752 ],12753 "type": "object"12754 },12755 {12756 "additionalProperties": true,12757 "properties": {12758 "_tag": {12759 "enum": [12760 "CountChanged"12761 ],12762 "type": "string"12763 },12764 "area": {12765 "pattern": "^[a-z][a-zA-Z0-9-]*$",12766 "type": "string"12767 },12768 "at": {12769 "type": "string"12770 },12771 "count": {12772 "type": "integer"12773 },12774 "layer": {12775 "pattern": "^[a-z][a-zA-Z0-9-]*$",12776 "type": "string"12777 },12778 "seq": {12779 "type": "integer"12780 }12781 },12782 "required": [12783 "_tag",12784 "area",12785 "at",12786 "count",12787 "layer",12788 "seq"12789 ],12790 "type": "object"12791 },12792 {12793 "additionalProperties": true,12794 "properties": {12795 "_tag": {12796 "enum": [12797 "LayerDeclared"12798 ],12799 "type": "string"12800 },12801 "at": {12802 "type": "string"12803 },12804 "disclose": {12805 "enum": [12806 "public",12807 "sealed",12808 "counted",12809 "declared",12810 "hidden",12811 "writeOnly"12812 ],12813 "type": "string"12814 },12815 "kinds": {12816 "items": {12817 "enum": [12818 "checks",12819 "agent-config",12820 "env",12821 "experiment",12822 "notes",12823 "fix",12824 "session",12825 "personal",12826 "attachment",12827 "source"12828 ],12829 "type": "string"12830 },12831 "minItems": 1,12832 "prefixItems": [12833 {12834 "enum": [12835 "checks",12836 "agent-config",12837 "env",12838 "experiment",12839 "notes",12840 "fix",12841 "session",12842 "personal",12843 "attachment",12844 "source"12845 ],12846 "type": "string"12847 }12848 ],12849 "type": "array"12850 },12851 "layer": {12852 "pattern": "^[a-z][a-zA-Z0-9-]*$",12853 "type": "string"12854 },12855 "seq": {12856 "type": "integer"12857 }12858 },12859 "required": [12860 "_tag",12861 "at",12862 "disclose",12863 "kinds",12864 "layer",12865 "seq"12866 ],12867 "type": "object"12868 },12869 {12870 "additionalProperties": true,12871 "properties": {12872 "_tag": {12873 "enum": [12874 "PostureChanged"12875 ],12876 "type": "string"12877 },12878 "at": {12879 "type": "string"12880 },12881 "decision": {12882 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",12883 "type": "string"12884 },12885 "from": {12886 "enum": [12887 "open",12888 "openWithSealedEvidence",12889 "openOnSchedule",12890 "openCore",12891 "sourceAvailable"12892 ],12893 "type": "string"12894 },12895 "seq": {12896 "type": "integer"12897 },12898 "to": {12899 "enum": [12900 "open",12901 "openWithSealedEvidence",12902 "openOnSchedule",12903 "openCore",12904 "sourceAvailable"12905 ],12906 "type": "string"12907 }12908 },12909 "required": [12910 "_tag",12911 "at",12912 "decision",12913 "from",12914 "seq",12915 "to"12916 ],12917 "type": "object"12918 },12919 {12920 "additionalProperties": true,12921 "properties": {12922 "_tag": {12923 "enum": [12924 "Released"12925 ],12926 "type": "string"12927 },12928 "at": {12929 "type": "string"12930 },12931 "by": {12932 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",12933 "type": "string"12934 },12935 "landing": {12936 "pattern": "^[0-9a-f]{40}$",12937 "type": "string"12938 },12939 "layer": {12940 "pattern": "^[a-z][a-zA-Z0-9-]*$",12941 "type": "string"12942 },12943 "paths": {12944 "type": "integer"12945 },12946 "seq": {12947 "type": "integer"12948 }12949 },12950 "required": [12951 "_tag",12952 "at",12953 "by",12954 "landing",12955 "layer",12956 "paths",12957 "seq"12958 ],12959 "type": "object"12960 },12961 {12962 "additionalProperties": true,12963 "properties": {12964 "_tag": {12965 "enum": [12966 "ValueSet"12967 ],12968 "type": "string"12969 },12970 "at": {12971 "type": "string"12972 },12973 "by": {12974 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",12975 "type": "string"12976 },12977 "key": {12978 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",12979 "type": "string"12980 },12981 "seq": {12982 "type": "integer"12983 }12984 },12985 "required": [12986 "_tag",12987 "at",12988 "by",12989 "key",12990 "seq"12991 ],12992 "type": "object"12993 }12994 ]12995 },12996 "type": "array"12997 },12998 "layers": {12999 "items": {13000 "additionalProperties": true,13001 "properties": {13002 "audience": {13003 "enum": [13004 "public",13005 "contributors",13006 "claimants",13007 "maintainers",13008 "team",13009 "security",13010 "sponsors",13011 "personal",13012 "platform"13013 ],13014 "type": "string"13015 },13016 "disclose": {13017 "enum": [13018 "public",13019 "sealed",13020 "counted",13021 "declared",13022 "hidden",13023 "writeOnly"13024 ],13025 "type": "string"13026 },13027 "holds": {13028 "items": {13029 "enum": [13030 "checks",13031 "agent-config",13032 "env",13033 "experiment",13034 "notes",13035 "fix",13036 "session",13037 "personal",13038 "attachment",13039 "source"13040 ],13041 "type": "string"13042 },13043 "minItems": 1,13044 "prefixItems": [13045 {13046 "enum": [13047 "checks",13048 "agent-config",13049 "env",13050 "experiment",13051 "notes",13052 "fix",13053 "session",13054 "personal",13055 "attachment",13056 "source"13057 ],13058 "type": "string"13059 }13060 ],13061 "type": "array"13062 },13063 "maxDays": {13064 "type": "integer"13065 },13066 "name": {13067 "pattern": "^[a-z][a-zA-Z0-9-]*$",13068 "type": "string"13069 },13070 "reason": {13071 "minLength": 1,13072 "type": "string"13073 },13074 "repo": {13075 "pattern": "^[A-Za-z0-9._-]+$",13076 "type": "string"13077 },13078 "sunsetDays": {13079 "type": "integer"13080 }13081 },13082 "required": [13083 "audience",13084 "disclose",13085 "holds",13086 "name",13087 "reason"13088 ],13089 "type": "object"13090 },13091 "type": "array"13092 },13093 "posture": {13094 "enum": [13095 "open",13096 "openWithSealedEvidence",13097 "openOnSchedule",13098 "openCore",13099 "sourceAvailable"13100 ],13101 "type": "string"13102 },13103 "postureLabel": {13104 "minLength": 1,13105 "type": "string"13106 },13107 "project": {13108 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13109 "type": "string"13110 }13111 },13112 "required": [13113 "entries",13114 "layers",13115 "posture",13116 "postureLabel",13117 "project"13118 ],13119 "type": "object"13120}13121```1312213123## envShape1312413125Show a project's env shape: the public schema of its environment variables, and who set each write-only value; never a value.1312613127| Hint | Value |13128| --- | --- |13129| `destructiveHint` | `false` |13130| `idempotentHint` | `true` |13131| `openWorldHint` | `false` |13132| `readOnlyHint` | `true` |1313313134### Input1313513136```json13137{13138 "additionalProperties": true,13139 "properties": {13140 "project": {13141 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13142 "type": "string"13143 }13144 },13145 "required": [13146 "project"13147 ],13148 "type": "object"13149}13150```1315113152### Output1315313154```json13155{13156 "additionalProperties": true,13157 "properties": {13158 "at": {13159 "pattern": "^[0-9a-f]{40}$",13160 "type": "string"13161 },13162 "currentEnvKey": {13163 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",13164 "type": "string"13165 },13166 "file": {13167 "minLength": 1,13168 "type": "string"13169 },13170 "imports": {13171 "items": {13172 "type": "string"13173 },13174 "type": "array"13175 },13176 "items": {13177 "items": {13178 "additionalProperties": true,13179 "properties": {13180 "deprecated": {13181 "type": "boolean"13182 },13183 "description": {13184 "type": "string"13185 },13186 "docs": {13187 "type": "string"13188 },13189 "key": {13190 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",13191 "type": "string"13192 },13193 "placeholder": {13194 "type": "string"13195 },13196 "proxy": {13197 "additionalProperties": true,13198 "properties": {13199 "block": {13200 "type": "boolean"13201 },13202 "domains": {13203 "items": {13204 "minLength": 1,13205 "type": "string"13206 },13207 "minItems": 1,13208 "prefixItems": [13209 {13210 "minLength": 1,13211 "type": "string"13212 }13213 ],13214 "type": "array"13215 },13216 "method": {13217 "type": "string"13218 },13219 "path": {13220 "type": "string"13221 }13222 },13223 "required": [13224 "domains"13225 ],13226 "type": "object"13227 },13228 "required": {13229 "anyOf": [13230 {13231 "type": "boolean"13232 },13233 {13234 "enum": [13235 "depends"13236 ],13237 "type": "string"13238 }13239 ]13240 },13241 "sensitive": {13242 "type": "boolean"13243 },13244 "tags": {13245 "items": {13246 "minLength": 1,13247 "type": "string"13248 },13249 "type": "array"13250 },13251 "type": {13252 "minLength": 1,13253 "type": "string"13254 },13255 "value": {13256 "additionalProperties": true,13257 "properties": {13258 "setAt": {13259 "type": "string"13260 },13261 "setBy": {13262 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",13263 "type": "string"13264 }13265 },13266 "required": [13267 "setAt",13268 "setBy"13269 ],13270 "type": "object"13271 }13272 },13273 "required": [13274 "key",13275 "required",13276 "sensitive",13277 "tags"13278 ],13279 "type": "object"13280 },13281 "type": "array"13282 },13283 "project": {13284 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13285 "type": "string"13286 }13287 },13288 "required": [13289 "at",13290 "file",13291 "imports",13292 "items",13293 "project"13294 ],13295 "type": "object"13296}13297```1329813299## initProject1330013301Make a project, empty or imported from a public git repo, with the caller as its decider. Asks a person first.1330213303| Hint | Value |13304| --- | --- |13305| `destructiveHint` | `false` |13306| `idempotentHint` | `false` |13307| `openWorldHint` | `false` |13308| `readOnlyHint` | `false` |1330913310### Input1331113312```json13313{13314 "additionalProperties": true,13315 "properties": {13316 "import": {13317 "additionalProperties": true,13318 "properties": {13319 "branch": {13320 "minLength": 1,13321 "type": "string"13322 },13323 "url": {13324 "pattern": "^https:\\/\\/\\S+$",13325 "type": "string"13326 }13327 },13328 "required": [13329 "url"13330 ],13331 "type": "object"13332 },13333 "project": {13334 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13335 "type": "string"13336 }13337 },13338 "required": [13339 "project"13340 ],13341 "type": "object"13342}13343```1334413345### Output1334613347```json13348{13349 "additionalProperties": true,13350 "properties": {13351 "landed": {13352 "pattern": "^[0-9a-f]{40}$",13353 "type": "string"13354 },13355 "project": {13356 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13357 "type": "string"13358 },13359 "remote": {13360 "minLength": 1,13361 "type": "string"13362 }13363 },13364 "required": [13365 "project",13366 "remote"13367 ],13368 "type": "object"13369}13370```1337113372## openAsk1337313374Open an ask by landing its file, once its check fails on main by an assertion, twice in the same way. Asks a person first.1337513376| Hint | Value |13377| --- | --- |13378| `destructiveHint` | `false` |13379| `idempotentHint` | `false` |13380| `openWorldHint` | `false` |13381| `readOnlyHint` | `false` |1338213383### Input1338413385```json13386{13387 "additionalProperties": true,13388 "properties": {13389 "ask": {13390 "allOf": [13391 {13392 "not": {13393 "enum": [13394 "me",13395 "layer"13396 ]13397 }13398 }13399 ],13400 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13401 "type": "string"13402 },13403 "files": {13404 "items": {13405 "additionalProperties": true,13406 "properties": {13407 "content": {13408 "type": "string"13409 },13410 "path": {13411 "minLength": 1,13412 "type": "string"13413 }13414 },13415 "required": [13416 "content",13417 "path"13418 ],13419 "type": "object"13420 },13421 "minItems": 1,13422 "prefixItems": [13423 {13424 "additionalProperties": true,13425 "properties": {13426 "content": {13427 "type": "string"13428 },13429 "path": {13430 "minLength": 1,13431 "type": "string"13432 }13433 },13434 "required": [13435 "content",13436 "path"13437 ],13438 "type": "object"13439 }13440 ],13441 "type": "array"13442 },13443 "project": {13444 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13445 "type": "string"13446 }13447 },13448 "required": [13449 "ask",13450 "files",13451 "project"13452 ],13453 "type": "object"13454}13455```1345613457### Output1345813459```json13460{13461 "additionalProperties": true,13462 "properties": {13463 "ask": {13464 "additionalProperties": true,13465 "properties": {13466 "askedBy": {13467 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",13468 "type": "string"13469 },13470 "blockedBy": {13471 "items": {13472 "allOf": [13473 {13474 "not": {13475 "enum": [13476 "me",13477 "layer"13478 ]13479 }13480 }13481 ],13482 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13483 "type": "string"13484 },13485 "type": "array"13486 },13487 "brief": {13488 "additionalProperties": true,13489 "properties": {13490 "context": {13491 "items": {13492 "minLength": 1,13493 "type": "string"13494 },13495 "type": "array"13496 },13497 "current": {13498 "minLength": 1,13499 "type": "string"13500 },13501 "outOfScope": {13502 "items": {13503 "minLength": 1,13504 "type": "string"13505 },13506 "minItems": 1,13507 "prefixItems": [13508 {13509 "minLength": 1,13510 "type": "string"13511 }13512 ],13513 "type": "array"13514 },13515 "terms": {13516 "items": {13517 "minLength": 1,13518 "type": "string"13519 },13520 "type": "array"13521 },13522 "want": {13523 "minLength": 1,13524 "type": "string"13525 }13526 },13527 "required": [13528 "want"13529 ],13530 "type": "object"13531 },13532 "check": {13533 "anyOf": [13534 {13535 "additionalProperties": true,13536 "properties": {13537 "_tag": {13538 "enum": [13539 "LintToZero"13540 ],13541 "type": "string"13542 },13543 "command": {13544 "minLength": 1,13545 "type": "string"13546 },13547 "rule": {13548 "minLength": 1,13549 "type": "string"13550 },13551 "territory": {13552 "minLength": 1,13553 "type": "string"13554 }13555 },13556 "required": [13557 "_tag",13558 "command",13559 "rule"13560 ],13561 "type": "object"13562 },13563 {13564 "additionalProperties": true,13565 "properties": {13566 "_tag": {13567 "enum": [13568 "Migrate"13569 ],13570 "type": "string"13571 },13572 "count": {13573 "minLength": 1,13574 "type": "string"13575 },13576 "from": {13577 "minLength": 1,13578 "type": "string"13579 },13580 "to": {13581 "minLength": 1,13582 "type": "string"13583 }13584 },13585 "required": [13586 "_tag",13587 "count",13588 "from"13589 ],13590 "type": "object"13591 },13592 {13593 "additionalProperties": true,13594 "properties": {13595 "_tag": {13596 "enum": [13597 "Ratchet"13598 ],13599 "type": "string"13600 },13601 "ratchet": {13602 "pattern": "^[a-z][a-zA-Z0-9-]*$",13603 "type": "string"13604 }13605 },13606 "required": [13607 "_tag",13608 "ratchet"13609 ],13610 "type": "object"13611 },13612 {13613 "additionalProperties": true,13614 "properties": {13615 "_tag": {13616 "enum": [13617 "RedThenGreen"13618 ],13619 "type": "string"13620 },13621 "path": {13622 "minLength": 1,13623 "type": "string"13624 }13625 },13626 "required": [13627 "_tag",13628 "path"13629 ],13630 "type": "object"13631 },13632 {13633 "additionalProperties": true,13634 "properties": {13635 "_tag": {13636 "enum": [13637 "SymbolAbsent"13638 ],13639 "type": "string"13640 },13641 "count": {13642 "minLength": 1,13643 "type": "string"13644 },13645 "symbol": {13646 "minLength": 1,13647 "type": "string"13648 }13649 },13650 "required": [13651 "_tag",13652 "count",13653 "symbol"13654 ],13655 "type": "object"13656 }13657 ]13658 },13659 "file": {13660 "minLength": 1,13661 "type": "string"13662 },13663 "id": {13664 "allOf": [13665 {13666 "not": {13667 "enum": [13668 "me",13669 "layer"13670 ]13671 }13672 }13673 ],13674 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13675 "type": "string"13676 },13677 "kind": {13678 "pattern": "^[a-z][a-zA-Z0-9-]*$",13679 "type": "string"13680 },13681 "mentor": {13682 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",13683 "type": "string"13684 },13685 "openedAt": {13686 "type": "string"13687 },13688 "openedIn": {13689 "pattern": "^[0-9a-f]{40}$",13690 "type": "string"13691 },13692 "parent": {13693 "allOf": [13694 {13695 "not": {13696 "enum": [13697 "me",13698 "layer"13699 ]13700 }13701 }13702 ],13703 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13704 "type": "string"13705 },13706 "project": {13707 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13708 "type": "string"13709 },13710 "reserve": {13711 "enum": [13712 "newcomers",13713 "people"13714 ],13715 "type": "string"13716 },13717 "state": {13718 "enum": [13719 "open",13720 "claimed",13721 "waitingOnParent",13722 "closed"13723 ],13724 "type": "string"13725 },13726 "territory": {13727 "additionalProperties": true,13728 "properties": {13729 "module": {13730 "minLength": 1,13731 "type": "string"13732 },13733 "paths": {13734 "items": {13735 "minLength": 1,13736 "type": "string"13737 },13738 "minItems": 1,13739 "prefixItems": [13740 {13741 "minLength": 1,13742 "type": "string"13743 }13744 ],13745 "type": "array"13746 },13747 "publicFiles": {13748 "items": {13749 "minLength": 1,13750 "type": "string"13751 },13752 "type": "array"13753 }13754 },13755 "required": [13756 "module",13757 "paths"13758 ],13759 "type": "object"13760 }13761 },13762 "required": [13763 "askedBy",13764 "blockedBy",13765 "brief",13766 "check",13767 "file",13768 "id",13769 "kind",13770 "openedAt",13771 "openedIn",13772 "project",13773 "state",13774 "territory"13775 ],13776 "type": "object"13777 },13778 "landed": {13779 "pattern": "^[0-9a-f]{40}$",13780 "type": "string"13781 }13782 },13783 "required": [13784 "ask",13785 "landed"13786 ],13787 "type": "object"13788}13789```1379013791## proposeAsk1379213793Propose an ask, optionally with a sealed answer; the proposal expires unless a decider accepts it.1379413795| Hint | Value |13796| --- | --- |13797| `destructiveHint` | `false` |13798| `idempotentHint` | `false` |13799| `openWorldHint` | `false` |13800| `readOnlyHint` | `false` |1380113802### Input1380313804```json13805{13806 "additionalProperties": true,13807 "properties": {13808 "files": {13809 "items": {13810 "additionalProperties": true,13811 "properties": {13812 "content": {13813 "type": "string"13814 },13815 "path": {13816 "minLength": 1,13817 "type": "string"13818 }13819 },13820 "required": [13821 "content",13822 "path"13823 ],13824 "type": "object"13825 },13826 "minItems": 1,13827 "prefixItems": [13828 {13829 "additionalProperties": true,13830 "properties": {13831 "content": {13832 "type": "string"13833 },13834 "path": {13835 "minLength": 1,13836 "type": "string"13837 }13838 },13839 "required": [13840 "content",13841 "path"13842 ],13843 "type": "object"13844 }13845 ],13846 "type": "array"13847 },13848 "project": {13849 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13850 "type": "string"13851 },13852 "sealed": {13853 "additionalProperties": true,13854 "properties": {13855 "head": {13856 "pattern": "^[0-9a-f]{40}$",13857 "type": "string"13858 }13859 },13860 "required": [13861 "head"13862 ],13863 "type": "object"13864 },13865 "territory": {13866 "minLength": 1,13867 "type": "string"13868 },13869 "want": {13870 "minLength": 1,13871 "type": "string"13872 }13873 },13874 "required": [13875 "project",13876 "want"13877 ],13878 "type": "object"13879}13880```1388113882### Output1388313884```json13885{13886 "additionalProperties": true,13887 "properties": {13888 "proposal": {13889 "additionalProperties": true,13890 "properties": {13891 "expiresAt": {13892 "type": "string"13893 },13894 "files": {13895 "items": {13896 "minLength": 1,13897 "type": "string"13898 },13899 "type": "array"13900 },13901 "flags": {13902 "allOf": [13903 {13904 "not": {13905 "enum": [13906 "me",13907 "layer"13908 ]13909 }13910 }13911 ],13912 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13913 "type": "string"13914 },13915 "id": {13916 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",13917 "type": "string"13918 },13919 "openedAt": {13920 "type": "string"13921 },13922 "project": {13923 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",13924 "type": "string"13925 },13926 "proposer": {13927 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",13928 "type": "string"13929 },13930 "sealed": {13931 "additionalProperties": true,13932 "properties": {13933 "fork": {13934 "pattern": "^[A-Za-z0-9._-]+$",13935 "type": "string"13936 },13937 "head": {13938 "pattern": "^[0-9a-f]{40}$",13939 "type": "string"13940 }13941 },13942 "required": [13943 "fork",13944 "head"13945 ],13946 "type": "object"13947 },13948 "state": {13949 "enum": [13950 "open",13951 "accepted",13952 "declined",13953 "expired"13954 ],13955 "type": "string"13956 },13957 "territory": {13958 "minLength": 1,13959 "type": "string"13960 },13961 "want": {13962 "minLength": 1,13963 "type": "string"13964 }13965 },13966 "required": [13967 "expiresAt",13968 "files",13969 "id",13970 "openedAt",13971 "project",13972 "proposer",13973 "state",13974 "want"13975 ],13976 "type": "object"13977 }13978 },13979 "required": [13980 "proposal"13981 ],13982 "type": "object"13983}13984```1398513986## flagAsk1398713988Flag an open ask to its deciders with a reason, as a proposal that expires unless a decider accepts it.1398913990| Hint | Value |13991| --- | --- |13992| `destructiveHint` | `false` |13993| `idempotentHint` | `false` |13994| `openWorldHint` | `false` |13995| `readOnlyHint` | `false` |1399613997### Input1399813999```json14000{14001 "additionalProperties": true,14002 "properties": {14003 "ask": {14004 "allOf": [14005 {14006 "not": {14007 "enum": [14008 "me",14009 "layer"14010 ]14011 }14012 }14013 ],14014 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14015 "type": "string"14016 },14017 "project": {14018 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14019 "type": "string"14020 },14021 "reason": {14022 "minLength": 1,14023 "type": "string"14024 }14025 },14026 "required": [14027 "ask",14028 "project",14029 "reason"14030 ],14031 "type": "object"14032}14033```1403414035### Output1403614037```json14038{14039 "additionalProperties": true,14040 "properties": {14041 "proposal": {14042 "additionalProperties": true,14043 "properties": {14044 "expiresAt": {14045 "type": "string"14046 },14047 "files": {14048 "items": {14049 "minLength": 1,14050 "type": "string"14051 },14052 "type": "array"14053 },14054 "flags": {14055 "allOf": [14056 {14057 "not": {14058 "enum": [14059 "me",14060 "layer"14061 ]14062 }14063 }14064 ],14065 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14066 "type": "string"14067 },14068 "id": {14069 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",14070 "type": "string"14071 },14072 "openedAt": {14073 "type": "string"14074 },14075 "project": {14076 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14077 "type": "string"14078 },14079 "proposer": {14080 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",14081 "type": "string"14082 },14083 "sealed": {14084 "additionalProperties": true,14085 "properties": {14086 "fork": {14087 "pattern": "^[A-Za-z0-9._-]+$",14088 "type": "string"14089 },14090 "head": {14091 "pattern": "^[0-9a-f]{40}$",14092 "type": "string"14093 }14094 },14095 "required": [14096 "fork",14097 "head"14098 ],14099 "type": "object"14100 },14101 "state": {14102 "enum": [14103 "open",14104 "accepted",14105 "declined",14106 "expired"14107 ],14108 "type": "string"14109 },14110 "territory": {14111 "minLength": 1,14112 "type": "string"14113 },14114 "want": {14115 "minLength": 1,14116 "type": "string"14117 }14118 },14119 "required": [14120 "expiresAt",14121 "files",14122 "id",14123 "openedAt",14124 "project",14125 "proposer",14126 "state",14127 "want"14128 ],14129 "type": "object"14130 }14131 },14132 "required": [14133 "proposal"14134 ],14135 "type": "object"14136}14137```1413814139## decide1414014141Take one decision from Today: accept, decline, adopt or revert. Asks a person first.1414214143| Hint | Value |14144| --- | --- |14145| `destructiveHint` | `false` |14146| `idempotentHint` | `false` |14147| `openWorldHint` | `false` |14148| `readOnlyHint` | `false` |1414914150### Input1415114152```json14153{14154 "additionalProperties": true,14155 "properties": {14156 "choice": {14157 "enum": [14158 "accept",14159 "decline",14160 "adopt",14161 "revert"14162 ],14163 "type": "string"14164 },14165 "decision": {14166 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",14167 "type": "string"14168 },14169 "note": {14170 "type": "string"14171 },14172 "project": {14173 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14174 "type": "string"14175 }14176 },14177 "required": [14178 "choice",14179 "decision",14180 "project"14181 ],14182 "type": "object"14183}14184```1418514186### Output1418714188```json14189{14190 "additionalProperties": true,14191 "properties": {14192 "decision": {14193 "additionalProperties": true,14194 "properties": {14195 "decided": {14196 "additionalProperties": true,14197 "properties": {14198 "at": {14199 "type": "string"14200 },14201 "by": {14202 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",14203 "type": "string"14204 },14205 "choice": {14206 "enum": [14207 "accept",14208 "decline",14209 "adopt",14210 "revert"14211 ],14212 "type": "string"14213 },14214 "note": {14215 "type": "string"14216 }14217 },14218 "required": [14219 "at",14220 "by",14221 "choice"14222 ],14223 "type": "object"14224 },14225 "deciders": {14226 "items": {14227 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",14228 "type": "string"14229 },14230 "minItems": 1,14231 "prefixItems": [14232 {14233 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",14234 "type": "string"14235 }14236 ],14237 "type": "array"14238 },14239 "default": {14240 "enum": [14241 "accept",14242 "decline",14243 "adopt",14244 "revert"14245 ],14246 "type": "string"14247 },14248 "evidence": {14249 "items": {14250 "additionalProperties": true,14251 "properties": {14252 "href": {14253 "minLength": 1,14254 "type": "string"14255 },14256 "label": {14257 "minLength": 1,14258 "type": "string"14259 },14260 "value": {14261 "type": "string"14262 }14263 },14264 "required": [14265 "label",14266 "value"14267 ],14268 "type": "object"14269 },14270 "type": "array"14271 },14272 "expiresAt": {14273 "type": "string"14274 },14275 "id": {14276 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",14277 "type": "string"14278 },14279 "openedAt": {14280 "type": "string"14281 },14282 "project": {14283 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14284 "type": "string"14285 },14286 "subject": {14287 "anyOf": [14288 {14289 "additionalProperties": true,14290 "properties": {14291 "_tag": {14292 "enum": [14293 "Finish"14294 ],14295 "type": "string"14296 },14297 "ask": {14298 "allOf": [14299 {14300 "not": {14301 "enum": [14302 "me",14303 "layer"14304 ]14305 }14306 }14307 ],14308 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14309 "type": "string"14310 },14311 "head": {14312 "pattern": "^[0-9a-f]{40}$",14313 "type": "string"14314 }14315 },14316 "required": [14317 "_tag",14318 "ask",14319 "head"14320 ],14321 "type": "object"14322 },14323 {14324 "additionalProperties": true,14325 "properties": {14326 "_tag": {14327 "enum": [14328 "OpenProposal"14329 ],14330 "type": "string"14331 },14332 "proposal": {14333 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",14334 "type": "string"14335 }14336 },14337 "required": [14338 "_tag",14339 "proposal"14340 ],14341 "type": "object"14342 },14343 {14344 "additionalProperties": true,14345 "properties": {14346 "_tag": {14347 "enum": [14348 "PostureChange"14349 ],14350 "type": "string"14351 },14352 "from": {14353 "enum": [14354 "open",14355 "openWithSealedEvidence",14356 "openOnSchedule",14357 "openCore",14358 "sourceAvailable"14359 ],14360 "type": "string"14361 },14362 "to": {14363 "enum": [14364 "open",14365 "openWithSealedEvidence",14366 "openOnSchedule",14367 "openCore",14368 "sourceAvailable"14369 ],14370 "type": "string"14371 }14372 },14373 "required": [14374 "_tag",14375 "from",14376 "to"14377 ],14378 "type": "object"14379 },14380 {14381 "additionalProperties": true,14382 "properties": {14383 "_tag": {14384 "enum": [14385 "ProxyWidened"14386 ],14387 "type": "string"14388 },14389 "hosts": {14390 "items": {14391 "pattern": "^(?:\\*\\.)?[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*$",14392 "type": "string"14393 },14394 "type": "array"14395 },14396 "item": {14397 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",14398 "type": "string"14399 }14400 },14401 "required": [14402 "_tag",14403 "hosts",14404 "item"14405 ],14406 "type": "object"14407 },14408 {14409 "additionalProperties": true,14410 "properties": {14411 "_tag": {14412 "enum": [14413 "RaiseRatchet"14414 ],14415 "type": "string"14416 },14417 "after": {14418 "type": "integer"14419 },14420 "ask": {14421 "allOf": [14422 {14423 "not": {14424 "enum": [14425 "me",14426 "layer"14427 ]14428 }14429 }14430 ],14431 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14432 "type": "string"14433 },14434 "before": {14435 "type": "integer"14436 },14437 "ratchet": {14438 "pattern": "^[a-z][a-zA-Z0-9-]*$",14439 "type": "string"14440 },14441 "territory": {14442 "minLength": 1,14443 "type": "string"14444 }14445 },14446 "required": [14447 "_tag",14448 "after",14449 "ask",14450 "before",14451 "ratchet",14452 "territory"14453 ],14454 "type": "object"14455 },14456 {14457 "additionalProperties": true,14458 "properties": {14459 "_tag": {14460 "enum": [14461 "SecretInTree"14462 ],14463 "type": "string"14464 },14465 "ask": {14466 "allOf": [14467 {14468 "not": {14469 "enum": [14470 "me",14471 "layer"14472 ]14473 }14474 }14475 ],14476 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14477 "type": "string"14478 },14479 "item": {14480 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",14481 "type": "string"14482 }14483 },14484 "required": [14485 "_tag",14486 "ask",14487 "item"14488 ],14489 "type": "object"14490 },14491 {14492 "additionalProperties": true,14493 "properties": {14494 "_tag": {14495 "enum": [14496 "StrayPush"14497 ],14498 "type": "string"14499 },14500 "after": {14501 "pattern": "^[0-9a-f]{40}$",14502 "type": "string"14503 },14504 "before": {14505 "pattern": "^[0-9a-f]{40}$",14506 "type": "string"14507 },14508 "ref": {14509 "pattern": "^refs\\/(?!.*\\.\\.)[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)+$",14510 "type": "string"14511 }14512 },14513 "required": [14514 "_tag",14515 "after",14516 "before",14517 "ref"14518 ],14519 "type": "object"14520 },14521 {14522 "additionalProperties": true,14523 "properties": {14524 "_tag": {14525 "enum": [14526 "Vouch"14527 ],14528 "type": "string"14529 },14530 "handle": {14531 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",14532 "type": "string"14533 }14534 },14535 "required": [14536 "_tag",14537 "handle"14538 ],14539 "type": "object"14540 },14541 {14542 "additionalProperties": true,14543 "properties": {14544 "_tag": {14545 "enum": [14546 "Waiver"14547 ],14548 "type": "string"14549 },14550 "ask": {14551 "allOf": [14552 {14553 "not": {14554 "enum": [14555 "me",14556 "layer"14557 ]14558 }14559 }14560 ],14561 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14562 "type": "string"14563 },14564 "at": {14565 "additionalProperties": true,14566 "properties": {14567 "line": {14568 "minimum": 1,14569 "type": "integer"14570 },14571 "path": {14572 "minLength": 1,14573 "type": "string"14574 }14575 },14576 "required": [14577 "line",14578 "path"14579 ],14580 "type": "object"14581 },14582 "marker": {14583 "minLength": 1,14584 "type": "string"14585 },14586 "reason": {14587 "minLength": 1,14588 "type": "string"14589 }14590 },14591 "required": [14592 "_tag",14593 "ask",14594 "at",14595 "marker",14596 "reason"14597 ],14598 "type": "object"14599 }14600 ]14601 }14602 },14603 "required": [14604 "deciders",14605 "default",14606 "evidence",14607 "expiresAt",14608 "id",14609 "openedAt",14610 "project",14611 "subject"14612 ],14613 "type": "object"14614 }14615 },14616 "required": [14617 "decision"14618 ],14619 "type": "object"14620}14621```1462214623## claim1462414625Claim an ask: an exclusive, expiring right to answer it, with a fork to push to; claiming it again returns the same claim.1462614627| Hint | Value |14628| --- | --- |14629| `destructiveHint` | `false` |14630| `idempotentHint` | `true` |14631| `openWorldHint` | `false` |14632| `readOnlyHint` | `false` |1463314634### Input1463514636```json14637{14638 "additionalProperties": true,14639 "properties": {14640 "ask": {14641 "allOf": [14642 {14643 "not": {14644 "enum": [14645 "me",14646 "layer"14647 ]14648 }14649 }14650 ],14651 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14652 "type": "string"14653 },14654 "project": {14655 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14656 "type": "string"14657 }14658 },14659 "required": [14660 "ask",14661 "project"14662 ],14663 "type": "object"14664}14665```1466614667### Output1466814669```json14670{14671 "additionalProperties": true,14672 "properties": {14673 "claim": {14674 "additionalProperties": true,14675 "properties": {14676 "ask": {14677 "allOf": [14678 {14679 "not": {14680 "enum": [14681 "me",14682 "layer"14683 ]14684 }14685 }14686 ],14687 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14688 "type": "string"14689 },14690 "base": {14691 "pattern": "^[0-9a-f]{40}$",14692 "type": "string"14693 },14694 "checkCommand": {14695 "minLength": 1,14696 "type": "string"14697 },14698 "claimant": {14699 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",14700 "type": "string"14701 },14702 "fork": {14703 "pattern": "^[A-Za-z0-9._-]+$",14704 "type": "string"14705 },14706 "lapsesAt": {14707 "type": "string"14708 },14709 "lastPushAt": {14710 "type": "string"14711 },14712 "openedAt": {14713 "type": "string"14714 },14715 "project": {14716 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14717 "type": "string"14718 },14719 "remote": {14720 "minLength": 1,14721 "type": "string"14722 },14723 "state": {14724 "enum": [14725 "live",14726 "warned",14727 "lapsed",14728 "released",14729 "answered"14730 ],14731 "type": "string"14732 },14733 "suite": {14734 "pattern": "^sha256:[0-9a-f]{64}$",14735 "type": "string"14736 },14737 "warnsAt": {14738 "type": "string"14739 }14740 },14741 "required": [14742 "ask",14743 "base",14744 "checkCommand",14745 "claimant",14746 "fork",14747 "lapsesAt",14748 "openedAt",14749 "project",14750 "remote",14751 "state",14752 "warnsAt"14753 ],14754 "type": "object"14755 }14756 },14757 "required": [14758 "claim"14759 ],14760 "type": "object"14761}14762```1476314764## release1476514766Release the caller's claim on an ask, so anyone may claim it again.1476714768| Hint | Value |14769| --- | --- |14770| `destructiveHint` | `false` |14771| `idempotentHint` | `true` |14772| `openWorldHint` | `false` |14773| `readOnlyHint` | `false` |1477414775### Input1477614777```json14778{14779 "additionalProperties": true,14780 "properties": {14781 "ask": {14782 "allOf": [14783 {14784 "not": {14785 "enum": [14786 "me",14787 "layer"14788 ]14789 }14790 }14791 ],14792 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14793 "type": "string"14794 },14795 "project": {14796 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14797 "type": "string"14798 }14799 },14800 "required": [14801 "ask",14802 "project"14803 ],14804 "type": "object"14805}14806```1480714808### Output1480914810```json14811{14812 "additionalProperties": true,14813 "properties": {14814 "released": {14815 "type": "boolean"14816 }14817 },14818 "required": [14819 "released"14820 ],14821 "type": "object"14822}14823```1482414825## submitAnswer14826124Offer the commit `head`, built on `base`, as an answer to an ask; once it lands, `main` is the new tip.14827Offer the commit `head`, built on `base`, as an answer to a claimed ask; the receipt says it is being checked, and it lands if it passes.1482814829| Hint | Value |14830| --- | --- |14831| `destructiveHint` | `false` |
27 unmodified lines
14859 },14860 "head": {14861 "pattern": "^[0-9a-f]{40}$",14862 "type": "string"14863 },14864 "project": {14865 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14866 "type": "string"14867 },14868 "requestId": {14869 "pattern": "^[A-Za-z0-9_-]{8,64}$",14870 "type": "string"14871 }14872 },14873 "required": [14874 "ask",14875 "base",165 "head"14876 "head",14877 "project",14878 "requestId"14879 ],14880 "type": "object"14881}14882```
1 unmodified line
14884### Output1488514886```json14887{14888 "$defs": {14889 "AskBlockedEncoded": {14890 "additionalProperties": true,14891 "properties": {14892 "_tag": {14893 "enum": [14894 "AskBlocked"14895 ],14896 "type": "string"14897 },14898 "ask": {14899 "allOf": [14900 {14901 "not": {14902 "enum": [14903 "me",14904 "layer"14905 ]14906 }14907 }14908 ],14909 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14910 "type": "string"14911 },14912 "at": {14913 "additionalProperties": true,14914 "properties": {14915 "line": {14916 "minimum": 1,14917 "type": "integer"14918 },14919 "path": {14920 "minLength": 1,14921 "type": "string"14922 }14923 },14924 "required": [14925 "line",14926 "path"14927 ],14928 "type": "object"14929 },14930 "blockedBy": {14931 "items": {14932 "allOf": [14933 {14934 "not": {14935 "enum": [14936 "me",14937 "layer"14938 ]14939 }14940 }14941 ],14942 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14943 "type": "string"14944 },14945 "minItems": 1,14946 "prefixItems": [14947 {14948 "allOf": [14949 {14950 "not": {14951 "enum": [14952 "me",14953 "layer"14954 ]14955 }14956 }14957 ],14958 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",14959 "type": "string"14960 }14961 ],14962 "type": "array"14963 },14964 "next": {14965 "minLength": 1,14966 "type": "string"14967 },14968 "retryable": {14969 "enum": [14970 true14971 ],14972 "type": "boolean"14973 }14974 },14975 "required": [14976 "_tag",14977 "next",14978 "retryable",14979 "ask",14980 "blockedBy"14981 ],14982 "type": "object"14983 },14984 "AskFullEncoded": {14985 "additionalProperties": true,14986 "properties": {14987 "_tag": {14988 "enum": [14989 "AskFull"14990 ],14991 "type": "string"14992 },14993 "ask": {14994 "allOf": [14995 {14996 "not": {14997 "enum": [14998 "me",14999 "layer"15000 ]15001 }15002 }15003 ],15004 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15005 "type": "string"15006 },15007 "at": {15008 "additionalProperties": true,15009 "properties": {15010 "line": {15011 "minimum": 1,15012 "type": "integer"15013 },15014 "path": {15015 "minLength": 1,15016 "type": "string"15017 }15018 },15019 "required": [15020 "line",15021 "path"15022 ],15023 "type": "object"15024 },15025 "next": {15026 "minLength": 1,15027 "type": "string"15028 },15029 "retryable": {15030 "enum": [15031 true15032 ],15033 "type": "boolean"15034 }15035 },15036 "required": [15037 "_tag",15038 "next",15039 "retryable",15040 "ask"15041 ],15042 "type": "object"15043 },15044 "AttemptsExhaustedEncoded": {15045 "additionalProperties": true,15046 "properties": {15047 "_tag": {15048 "enum": [15049 "AttemptsExhausted"15050 ],15051 "type": "string"15052 },15053 "area": {15054 "minLength": 1,15055 "type": "string"15056 },15057 "at": {15058 "additionalProperties": true,15059 "properties": {15060 "line": {15061 "minimum": 1,15062 "type": "integer"15063 },15064 "path": {15065 "minLength": 1,15066 "type": "string"15067 }15068 },15069 "required": [15070 "line",15071 "path"15072 ],15073 "type": "object"15074 },15075 "next": {15076 "minLength": 1,15077 "type": "string"15078 },15079 "resetsAt": {15080 "type": "string"15081 },15082 "retryable": {15083 "enum": [15084 true15085 ],15086 "type": "boolean"15087 }15088 },15089 "required": [15090 "_tag",15091 "next",15092 "retryable",15093 "area",15094 "resetsAt"15095 ],15096 "type": "object"15097 },15098 "CapReachedEncoded": {15099 "additionalProperties": true,15100 "properties": {15101 "_tag": {15102 "enum": [15103 "CapReached"15104 ],15105 "type": "string"15106 },15107 "at": {15108 "additionalProperties": true,15109 "properties": {15110 "line": {15111 "minimum": 1,15112 "type": "integer"15113 },15114 "path": {15115 "minLength": 1,15116 "type": "string"15117 }15118 },15119 "required": [15120 "line",15121 "path"15122 ],15123 "type": "object"15124 },15125 "cap": {15126 "type": "integer"15127 },15128 "next": {15129 "minLength": 1,15130 "type": "string"15131 },15132 "retryable": {15133 "enum": [15134 true15135 ],15136 "type": "boolean"15137 }15138 },15139 "required": [15140 "_tag",15141 "next",15142 "retryable",15143 "cap"15144 ],15145 "type": "object"15146 },15147 "ChecksFailedEncoded": {15148 "additionalProperties": true,15149 "properties": {15150 "_tag": {15151 "enum": [15152 "ChecksFailed"15153 ],15154 "type": "string"15155 },15156 "at": {15157 "additionalProperties": true,15158 "properties": {15159 "line": {15160 "minimum": 1,15161 "type": "integer"15162 },15163 "path": {15164 "minLength": 1,15165 "type": "string"15166 }15167 },15168 "required": [15169 "line",15170 "path"15171 ],15172 "type": "object"15173 },15174 "lane": {15175 "minLength": 1,15176 "type": "string"15177 },15178 "logRef": {15179 "minLength": 1,15180 "type": "string"15181 },15182 "next": {15183 "minLength": 1,15184 "type": "string"15185 },15186 "retryable": {15187 "enum": [15188 false15189 ],15190 "type": "boolean"15191 }15192 },15193 "required": [15194 "_tag",15195 "next",15196 "retryable",15197 "lane",15198 "logRef"15199 ],15200 "type": "object"15201 },15202 "ClaimLapsedEncoded": {15203 "additionalProperties": true,15204 "properties": {15205 "_tag": {15206 "enum": [15207 "ClaimLapsed"15208 ],15209 "type": "string"15210 },15211 "ask": {15212 "allOf": [15213 {15214 "not": {15215 "enum": [15216 "me",15217 "layer"15218 ]15219 }15220 }15221 ],15222 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15223 "type": "string"15224 },15225 "at": {15226 "additionalProperties": true,15227 "properties": {15228 "line": {15229 "minimum": 1,15230 "type": "integer"15231 },15232 "path": {15233 "minLength": 1,15234 "type": "string"15235 }15236 },15237 "required": [15238 "line",15239 "path"15240 ],15241 "type": "object"15242 },15243 "next": {15244 "minLength": 1,15245 "type": "string"15246 },15247 "retryable": {15248 "enum": [15249 true15250 ],15251 "type": "boolean"15252 }15253 },15254 "required": [15255 "_tag",15256 "next",15257 "retryable",15258 "ask"15259 ],15260 "type": "object"15261 },15262 "DecisionClosedEncoded": {15263 "additionalProperties": true,15264 "properties": {15265 "_tag": {15266 "enum": [15267 "DecisionClosed"15268 ],15269 "type": "string"15270 },15271 "at": {15272 "additionalProperties": true,15273 "properties": {15274 "line": {15275 "minimum": 1,15276 "type": "integer"15277 },15278 "path": {15279 "minLength": 1,15280 "type": "string"15281 }15282 },15283 "required": [15284 "line",15285 "path"15286 ],15287 "type": "object"15288 },15289 "decision": {15290 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",15291 "type": "string"15292 },15293 "next": {15294 "minLength": 1,15295 "type": "string"15296 },15297 "retryable": {15298 "enum": [15299 false15300 ],15301 "type": "boolean"15302 }15303 },15304 "required": [15305 "_tag",15306 "next",15307 "retryable",15308 "decision"15309 ],15310 "type": "object"15311 },15312 "DenouncedEncoded": {15313 "additionalProperties": true,15314 "properties": {15315 "_tag": {15316 "enum": [15317 "Denounced"15318 ],15319 "type": "string"15320 },15321 "at": {15322 "additionalProperties": true,15323 "properties": {15324 "line": {15325 "minimum": 1,15326 "type": "integer"15327 },15328 "path": {15329 "minLength": 1,15330 "type": "string"15331 }15332 },15333 "required": [15334 "line",15335 "path"15336 ],15337 "type": "object"15338 },15339 "next": {15340 "minLength": 1,15341 "type": "string"15342 },15343 "retryable": {15344 "enum": [15345 false15346 ],15347 "type": "boolean"15348 }15349 },15350 "required": [15351 "_tag",15352 "next",15353 "retryable"15354 ],15355 "type": "object"15356 },15357 "DirectPushEncoded": {15358 "additionalProperties": true,15359 "properties": {15360 "_tag": {15361 "enum": [15362 "DirectPush"15363 ],15364 "type": "string"15365 },15366 "at": {15367 "additionalProperties": true,15368 "properties": {15369 "line": {15370 "minimum": 1,15371 "type": "integer"15372 },15373 "path": {15374 "minLength": 1,15375 "type": "string"15376 }15377 },15378 "required": [15379 "line",15380 "path"15381 ],15382 "type": "object"15383 },15384 "next": {15385 "minLength": 1,15386 "type": "string"15387 },15388 "ref": {15389 "minLength": 1,15390 "type": "string"15391 },15392 "retryable": {15393 "enum": [15394 false15395 ],15396 "type": "boolean"15397 }15398 },15399 "required": [15400 "_tag",15401 "next",15402 "retryable",15403 "ref"15404 ],15405 "type": "object"15406 },15407 "FlakeEncoded": {15408 "additionalProperties": true,15409 "properties": {15410 "_tag": {15411 "enum": [15412 "Flake"15413 ],15414 "type": "string"15415 },15416 "at": {15417 "additionalProperties": true,15418 "properties": {15419 "line": {15420 "minimum": 1,15421 "type": "integer"15422 },15423 "path": {15424 "minLength": 1,15425 "type": "string"15426 }15427 },15428 "required": [15429 "line",15430 "path"15431 ],15432 "type": "object"15433 },15434 "lane": {15435 "minLength": 1,15436 "type": "string"15437 },15438 "next": {15439 "minLength": 1,15440 "type": "string"15441 },15442 "retryable": {15443 "enum": [15444 true15445 ],15446 "type": "boolean"15447 }15448 },15449 "required": [15450 "_tag",15451 "next",15452 "retryable",15453 "lane"15454 ],15455 "type": "object"15456 },15457 "HeldBackFailedEncoded": {15458 "additionalProperties": true,15459 "properties": {15460 "_tag": {15461 "enum": [15462 "HeldBackFailed"15463 ],15464 "type": "string"15465 },15466 "area": {15467 "minLength": 1,15468 "type": "string"15469 },15470 "at": {15471 "additionalProperties": true,15472 "properties": {15473 "line": {15474 "minimum": 1,15475 "type": "integer"15476 },15477 "path": {15478 "minLength": 1,15479 "type": "string"15480 }15481 },15482 "required": [15483 "line",15484 "path"15485 ],15486 "type": "object"15487 },15488 "next": {15489 "minLength": 1,15490 "type": "string"15491 },15492 "retryable": {15493 "enum": [15494 false15495 ],15496 "type": "boolean"15497 },15498 "suite": {15499 "minLength": 1,15500 "type": "string"15501 }15502 },15503 "required": [15504 "_tag",15505 "next",15506 "retryable",15507 "area",15508 "suite"15509 ],15510 "type": "object"15511 },15512 "ImportFailedEncoded": {15513 "additionalProperties": true,15514 "properties": {15515 "_tag": {15516 "enum": [15517 "ImportFailed"15518 ],15519 "type": "string"15520 },15521 "at": {15522 "additionalProperties": true,15523 "properties": {15524 "line": {15525 "minimum": 1,15526 "type": "integer"15527 },15528 "path": {15529 "minLength": 1,15530 "type": "string"15531 }15532 },15533 "required": [15534 "line",15535 "path"15536 ],15537 "type": "object"15538 },15539 "next": {15540 "minLength": 1,15541 "type": "string"15542 },15543 "reason": {15544 "minLength": 1,15545 "type": "string"15546 },15547 "retryable": {15548 "enum": [15549 true15550 ],15551 "type": "boolean"15552 }15553 },15554 "required": [15555 "_tag",15556 "next",15557 "retryable",15558 "reason"15559 ],15560 "type": "object"15561 },15562 "IncompleteBriefEncoded": {15563 "additionalProperties": true,15564 "properties": {15565 "_tag": {15566 "enum": [15567 "IncompleteBrief"15568 ],15569 "type": "string"15570 },15571 "at": {15572 "additionalProperties": true,15573 "properties": {15574 "line": {15575 "minimum": 1,15576 "type": "integer"15577 },15578 "path": {15579 "minLength": 1,15580 "type": "string"15581 }15582 },15583 "required": [15584 "line",15585 "path"15586 ],15587 "type": "object"15588 },15589 "missing": {15590 "items": {15591 "minLength": 1,15592 "type": "string"15593 },15594 "minItems": 1,15595 "prefixItems": [15596 {15597 "minLength": 1,15598 "type": "string"15599 }15600 ],15601 "type": "array"15602 },15603 "next": {15604 "minLength": 1,15605 "type": "string"15606 },15607 "retryable": {15608 "enum": [15609 false15610 ],15611 "type": "boolean"15612 }15613 },15614 "required": [15615 "_tag",15616 "next",15617 "retryable",15618 "missing"15619 ],15620 "type": "object"15621 },15622 "LayerContentInPublicTreeEncoded": {15623 "additionalProperties": true,15624 "properties": {15625 "_tag": {15626 "enum": [15627 "LayerContentInPublicTree"15628 ],15629 "type": "string"15630 },15631 "at": {15632 "additionalProperties": true,15633 "properties": {15634 "line": {15635 "minimum": 1,15636 "type": "integer"15637 },15638 "path": {15639 "minLength": 1,15640 "type": "string"15641 }15642 },15643 "required": [15644 "line",15645 "path"15646 ],15647 "type": "object"15648 },15649 "next": {15650 "minLength": 1,15651 "type": "string"15652 },15653 "paths": {15654 "items": {15655 "minLength": 1,15656 "type": "string"15657 },15658 "minItems": 1,15659 "prefixItems": [15660 {15661 "minLength": 1,15662 "type": "string"15663 }15664 ],15665 "type": "array"15666 },15667 "retryable": {15668 "enum": [15669 false15670 ],15671 "type": "boolean"15672 }15673 },15674 "required": [15675 "_tag",15676 "next",15677 "retryable",15678 "paths"15679 ],15680 "type": "object"15681 },15682 "NoAskEncoded": {15683 "additionalProperties": true,15684 "properties": {15685 "_tag": {15686 "enum": [15687 "NoAsk"15688 ],15689 "type": "string"15690 },15691 "at": {15692 "additionalProperties": true,15693 "properties": {15694 "line": {15695 "minimum": 1,15696 "type": "integer"15697 },15698 "path": {15699 "minLength": 1,15700 "type": "string"15701 }15702 },15703 "required": [15704 "line",15705 "path"15706 ],15707 "type": "object"15708 },15709 "next": {15710 "minLength": 1,15711 "type": "string"15712 },15713 "retryable": {15714 "enum": [15715 false15716 ],15717 "type": "boolean"15718 }15719 },15720 "required": [15721 "_tag",15722 "next",15723 "retryable"15724 ],15725 "type": "object"15726 },15727 "NotClaimedEncoded": {15728 "additionalProperties": true,15729 "properties": {15730 "_tag": {15731 "enum": [15732 "NotClaimed"15733 ],15734 "type": "string"15735 },15736 "ask": {15737 "allOf": [15738 {15739 "not": {15740 "enum": [15741 "me",15742 "layer"15743 ]15744 }15745 }15746 ],15747 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",15748 "type": "string"15749 },15750 "at": {15751 "additionalProperties": true,15752 "properties": {15753 "line": {15754 "minimum": 1,15755 "type": "integer"15756 },15757 "path": {15758 "minLength": 1,15759 "type": "string"15760 }15761 },15762 "required": [15763 "line",15764 "path"15765 ],15766 "type": "object"15767 },15768 "next": {15769 "minLength": 1,15770 "type": "string"15771 },15772 "retryable": {15773 "enum": [15774 true15775 ],15776 "type": "boolean"15777 }15778 },15779 "required": [15780 "_tag",15781 "next",15782 "retryable",15783 "ask"15784 ],15785 "type": "object"15786 },15787 "NotDeciderEncoded": {15788 "additionalProperties": true,15789 "properties": {15790 "_tag": {15791 "enum": [15792 "NotDecider"15793 ],15794 "type": "string"15795 },15796 "at": {15797 "additionalProperties": true,15798 "properties": {15799 "line": {15800 "minimum": 1,15801 "type": "integer"15802 },15803 "path": {15804 "minLength": 1,15805 "type": "string"15806 }15807 },15808 "required": [15809 "line",15810 "path"15811 ],15812 "type": "object"15813 },15814 "next": {15815 "minLength": 1,15816 "type": "string"15817 },15818 "retryable": {15819 "enum": [15820 false15821 ],15822 "type": "boolean"15823 }15824 },15825 "required": [15826 "_tag",15827 "next",15828 "retryable"15829 ],15830 "type": "object"15831 },15832 "NotRedFirstEncoded": {15833 "additionalProperties": true,15834 "properties": {15835 "_tag": {15836 "enum": [15837 "NotRedFirst"15838 ],15839 "type": "string"15840 },15841 "at": {15842 "additionalProperties": true,15843 "properties": {15844 "line": {15845 "minimum": 1,15846 "type": "integer"15847 },15848 "path": {15849 "minLength": 1,15850 "type": "string"15851 }15852 },15853 "required": [15854 "line",15855 "path"15856 ],15857 "type": "object"15858 },15859 "next": {15860 "minLength": 1,15861 "type": "string"15862 },15863 "retryable": {15864 "enum": [15865 false15866 ],15867 "type": "boolean"15868 }15869 },15870 "required": [15871 "_tag",15872 "next",15873 "retryable"15874 ],15875 "type": "object"15876 },15877 "NotSensitiveEncoded": {15878 "additionalProperties": true,15879 "properties": {15880 "_tag": {15881 "enum": [15882 "NotSensitive"15883 ],15884 "type": "string"15885 },15886 "at": {15887 "additionalProperties": true,15888 "properties": {15889 "line": {15890 "minimum": 1,15891 "type": "integer"15892 },15893 "path": {15894 "minLength": 1,15895 "type": "string"15896 }15897 },15898 "required": [15899 "line",15900 "path"15901 ],15902 "type": "object"15903 },15904 "key": {15905 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",15906 "type": "string"15907 },15908 "next": {15909 "minLength": 1,15910 "type": "string"15911 },15912 "retryable": {15913 "enum": [15914 false15915 ],15916 "type": "boolean"15917 }15918 },15919 "required": [15920 "_tag",15921 "next",15922 "retryable",15923 "key"15924 ],15925 "type": "object"15926 },15927 "NotVouchedEncoded": {15928 "additionalProperties": true,15929 "properties": {15930 "_tag": {15931 "enum": [15932 "NotVouched"15933 ],15934 "type": "string"15935 },15936 "at": {15937 "additionalProperties": true,15938 "properties": {15939 "line": {15940 "minimum": 1,15941 "type": "integer"15942 },15943 "path": {15944 "minLength": 1,15945 "type": "string"15946 }15947 },15948 "required": [15949 "line",15950 "path"15951 ],15952 "type": "object"15953 },15954 "next": {15955 "minLength": 1,15956 "type": "string"15957 },15958 "retryable": {15959 "enum": [15960 false15961 ],15962 "type": "boolean"15963 }15964 },15965 "required": [15966 "_tag",15967 "next",15968 "retryable"15969 ],15970 "type": "object"15971 },15972 "OutOfScopeEncoded": {15973 "additionalProperties": true,15974 "properties": {15975 "_tag": {15976 "enum": [15977 "OutOfScope"15978 ],15979 "type": "string"15980 },15981 "at": {15982 "additionalProperties": true,15983 "properties": {15984 "line": {15985 "minimum": 1,15986 "type": "integer"15987 },15988 "path": {15989 "minLength": 1,15990 "type": "string"15991 }15992 },15993 "required": [15994 "line",15995 "path"15996 ],15997 "type": "object"15998 },15999 "next": {16000 "minLength": 1,16001 "type": "string"16002 },16003 "paths": {16004 "items": {16005 "minLength": 1,16006 "type": "string"16007 },16008 "minItems": 1,16009 "prefixItems": [16010 {16011 "minLength": 1,16012 "type": "string"16013 }16014 ],16015 "type": "array"16016 },16017 "retryable": {16018 "enum": [16019 false16020 ],16021 "type": "boolean"16022 }16023 },16024 "required": [16025 "_tag",16026 "next",16027 "retryable",16028 "paths"16029 ],16030 "type": "object"16031 },16032 "PostureChangeEncoded": {16033 "additionalProperties": true,16034 "properties": {16035 "_tag": {16036 "enum": [16037 "PostureChange"16038 ],16039 "type": "string"16040 },16041 "at": {16042 "additionalProperties": true,16043 "properties": {16044 "line": {16045 "minimum": 1,16046 "type": "integer"16047 },16048 "path": {16049 "minLength": 1,16050 "type": "string"16051 }16052 },16053 "required": [16054 "line",16055 "path"16056 ],16057 "type": "object"16058 },16059 "from": {16060 "enum": [16061 "open",16062 "openWithSealedEvidence",16063 "openOnSchedule",16064 "openCore",16065 "sourceAvailable"16066 ],16067 "type": "string"16068 },16069 "next": {16070 "minLength": 1,16071 "type": "string"16072 },16073 "retryable": {16074 "enum": [16075 false16076 ],16077 "type": "boolean"16078 },16079 "to": {16080 "enum": [16081 "open",16082 "openWithSealedEvidence",16083 "openOnSchedule",16084 "openCore",16085 "sourceAvailable"16086 ],16087 "type": "string"16088 }16089 },16090 "required": [16091 "_tag",16092 "next",16093 "retryable",16094 "from",16095 "to"16096 ],16097 "type": "object"16098 },16099 "PrivatePathInPublicTreeEncoded": {16100 "additionalProperties": true,16101 "properties": {16102 "_tag": {16103 "enum": [16104 "PrivatePathInPublicTree"16105 ],16106 "type": "string"16107 },16108 "at": {16109 "additionalProperties": true,16110 "properties": {16111 "line": {16112 "minimum": 1,16113 "type": "integer"16114 },16115 "path": {16116 "minLength": 1,16117 "type": "string"16118 }16119 },16120 "required": [16121 "line",16122 "path"16123 ],16124 "type": "object"16125 },16126 "next": {16127 "minLength": 1,16128 "type": "string"16129 },16130 "paths": {16131 "items": {16132 "minLength": 1,16133 "type": "string"16134 },16135 "minItems": 1,16136 "prefixItems": [16137 {16138 "minLength": 1,16139 "type": "string"16140 }16141 ],16142 "type": "array"16143 },16144 "retryable": {16145 "enum": [16146 false16147 ],16148 "type": "boolean"16149 }16150 },16151 "required": [16152 "_tag",16153 "next",16154 "retryable",16155 "paths"16156 ],16157 "type": "object"16158 },16159 "ProjectExistsEncoded": {16160 "additionalProperties": true,16161 "properties": {16162 "_tag": {16163 "enum": [16164 "ProjectExists"16165 ],16166 "type": "string"16167 },16168 "at": {16169 "additionalProperties": true,16170 "properties": {16171 "line": {16172 "minimum": 1,16173 "type": "integer"16174 },16175 "path": {16176 "minLength": 1,16177 "type": "string"16178 }16179 },16180 "required": [16181 "line",16182 "path"16183 ],16184 "type": "object"16185 },16186 "next": {16187 "minLength": 1,16188 "type": "string"16189 },16190 "project": {16191 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",16192 "type": "string"16193 },16194 "retryable": {16195 "enum": [16196 false16197 ],16198 "type": "boolean"16199 }16200 },16201 "required": [16202 "_tag",16203 "next",16204 "retryable",16205 "project"16206 ],16207 "type": "object"16208 },16209 "ReachedInternalsEncoded": {16210 "additionalProperties": true,16211 "properties": {16212 "_tag": {16213 "enum": [16214 "ReachedInternals"16215 ],16216 "type": "string"16217 },16218 "at": {16219 "additionalProperties": true,16220 "properties": {16221 "line": {16222 "minimum": 1,16223 "type": "integer"16224 },16225 "path": {16226 "minLength": 1,16227 "type": "string"16228 }16229 },16230 "required": [16231 "line",16232 "path"16233 ],16234 "type": "object"16235 },16236 "from": {16237 "minLength": 1,16238 "type": "string"16239 },16240 "next": {16241 "minLength": 1,16242 "type": "string"16243 },16244 "retryable": {16245 "enum": [16246 false16247 ],16248 "type": "boolean"16249 },16250 "to": {16251 "minLength": 1,16252 "type": "string"16253 }16254 },16255 "required": [16256 "_tag",16257 "next",16258 "retryable",16259 "from",16260 "to"16261 ],16262 "type": "object"16263 },16264 "RepoBusyEncoded": {16265 "additionalProperties": true,16266 "properties": {16267 "_tag": {16268 "enum": [16269 "RepoBusy"16270 ],16271 "type": "string"16272 },16273 "at": {16274 "additionalProperties": true,16275 "properties": {16276 "line": {16277 "minimum": 1,16278 "type": "integer"16279 },16280 "path": {16281 "minLength": 1,16282 "type": "string"16283 }16284 },16285 "required": [16286 "line",16287 "path"16288 ],16289 "type": "object"16290 },16291 "next": {16292 "minLength": 1,16293 "type": "string"16294 },16295 "retryable": {16296 "enum": [16297 true16298 ],16299 "type": "boolean"16300 }16301 },16302 "required": [16303 "_tag",16304 "next",16305 "retryable"16306 ],16307 "type": "object"16308 },16309 "SecretInOutputEncoded": {16310 "additionalProperties": true,16311 "properties": {16312 "_tag": {16313 "enum": [16314 "SecretInOutput"16315 ],16316 "type": "string"16317 },16318 "at": {16319 "additionalProperties": true,16320 "properties": {16321 "line": {16322 "minimum": 1,16323 "type": "integer"16324 },16325 "path": {16326 "minLength": 1,16327 "type": "string"16328 }16329 },16330 "required": [16331 "line",16332 "path"16333 ],16334 "type": "object"16335 },16336 "item": {16337 "minLength": 1,16338 "type": "string"16339 },16340 "next": {16341 "minLength": 1,16342 "type": "string"16343 },16344 "retryable": {16345 "enum": [16346 false16347 ],16348 "type": "boolean"16349 },16350 "where": {16351 "enum": [16352 "output",16353 "tree"16354 ],16355 "type": "string"16356 }16357 },16358 "required": [16359 "_tag",16360 "next",16361 "retryable",16362 "item",16363 "where"16364 ],16365 "type": "object"16366 },16367 "StaleBaseEncoded": {16368 "additionalProperties": true,16369 "properties": {16370 "_tag": {16371 "enum": [16372 "StaleBase"16373 ],16374 "type": "string"16375 },16376 "at": {16377 "additionalProperties": true,16378 "properties": {16379 "line": {16380 "minimum": 1,16381 "type": "integer"16382 },16383 "path": {16384 "minLength": 1,16385 "type": "string"16386 }16387 },16388 "required": [16389 "line",16390 "path"16391 ],16392 "type": "object"16393 },16394 "base": {16395 "pattern": "^[0-9a-f]{40}$",16396 "type": "string"16397 },16398 "conflicts": {16399 "items": {16400 "minLength": 1,16401 "type": "string"16402 },16403 "type": "array"16404 },16405 "main": {16406 "pattern": "^[0-9a-f]{40}$",16407 "type": "string"16408 },16409 "next": {16410 "minLength": 1,16411 "type": "string"16412 },16413 "retryable": {16414 "enum": [16415 true16416 ],16417 "type": "boolean"16418 }16419 },16420 "required": [16421 "_tag",16422 "next",16423 "retryable",16424 "base",16425 "conflicts",16426 "main"16427 ],16428 "type": "object"16429 },16430 "StaleLayerEncoded": {16431 "additionalProperties": true,16432 "properties": {16433 "_tag": {16434 "enum": [16435 "StaleLayer"16436 ],16437 "type": "string"16438 },16439 "at": {16440 "additionalProperties": true,16441 "properties": {16442 "line": {16443 "minimum": 1,16444 "type": "integer"16445 },16446 "path": {16447 "minLength": 1,16448 "type": "string"16449 }16450 },16451 "required": [16452 "line",16453 "path"16454 ],16455 "type": "object"16456 },16457 "layer": {16458 "minLength": 1,16459 "type": "string"16460 },16461 "next": {16462 "minLength": 1,16463 "type": "string"16464 },16465 "retryable": {16466 "enum": [16467 true16468 ],16469 "type": "boolean"16470 }16471 },16472 "required": [16473 "_tag",16474 "next",16475 "retryable",16476 "layer"16477 ],16478 "type": "object"16479 },16480 "TouchedJudgeEncoded": {16481 "additionalProperties": true,16482 "properties": {16483 "_tag": {16484 "enum": [16485 "TouchedJudge"16486 ],16487 "type": "string"16488 },16489 "at": {16490 "additionalProperties": true,16491 "properties": {16492 "line": {16493 "minimum": 1,16494 "type": "integer"16495 },16496 "path": {16497 "minLength": 1,16498 "type": "string"16499 }16500 },16501 "required": [16502 "line",16503 "path"16504 ],16505 "type": "object"16506 },16507 "next": {16508 "minLength": 1,16509 "type": "string"16510 },16511 "paths": {16512 "items": {16513 "minLength": 1,16514 "type": "string"16515 },16516 "minItems": 1,16517 "prefixItems": [16518 {16519 "minLength": 1,16520 "type": "string"16521 }16522 ],16523 "type": "array"16524 },16525 "retryable": {16526 "enum": [16527 false16528 ],16529 "type": "boolean"16530 }16531 },16532 "required": [16533 "_tag",16534 "next",16535 "retryable",16536 "paths"16537 ],16538 "type": "object"16539 },16540 "UnknownAskEncoded": {16541 "additionalProperties": true,16542 "properties": {16543 "_tag": {16544 "enum": [16545 "UnknownAsk"16546 ],16547 "type": "string"16548 },16549 "ask": {16550 "allOf": [16551 {16552 "not": {16553 "enum": [16554 "me",16555 "layer"16556 ]16557 }16558 }16559 ],16560 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",16561 "type": "string"16562 },16563 "at": {16564 "additionalProperties": true,16565 "properties": {16566 "line": {16567 "minimum": 1,16568 "type": "integer"16569 },16570 "path": {16571 "minLength": 1,16572 "type": "string"16573 }16574 },16575 "required": [16576 "line",16577 "path"16578 ],16579 "type": "object"16580 },16581 "next": {16582 "minLength": 1,16583 "type": "string"16584 },16585 "retryable": {16586 "enum": [16587 false16588 ],16589 "type": "boolean"16590 }16591 },16592 "required": [16593 "_tag",16594 "next",16595 "retryable",16596 "ask"16597 ],16598 "type": "object"16599 },16600 "UnknownCommitEncoded": {16601 "additionalProperties": true,16602 "properties": {16603 "_tag": {16604 "enum": [16605 "UnknownCommit"16606 ],16607 "type": "string"16608 },16609 "at": {16610 "additionalProperties": true,16611 "properties": {16612 "line": {16613 "minimum": 1,16614 "type": "integer"16615 },16616 "path": {16617 "minLength": 1,16618 "type": "string"16619 }16620 },16621 "required": [16622 "line",16623 "path"16624 ],16625 "type": "object"16626 },16627 "next": {16628 "minLength": 1,16629 "type": "string"16630 },16631 "retryable": {16632 "enum": [16633 false16634 ],16635 "type": "boolean"16636 },16637 "sha": {16638 "pattern": "^[0-9a-f]{40}$",16639 "type": "string"16640 }16641 },16642 "required": [16643 "_tag",16644 "next",16645 "retryable",16646 "sha"16647 ],16648 "type": "object"16649 },16650 "UnknownDecisionEncoded": {16651 "additionalProperties": true,16652 "properties": {16653 "_tag": {16654 "enum": [16655 "UnknownDecision"16656 ],16657 "type": "string"16658 },16659 "at": {16660 "additionalProperties": true,16661 "properties": {16662 "line": {16663 "minimum": 1,16664 "type": "integer"16665 },16666 "path": {16667 "minLength": 1,16668 "type": "string"16669 }16670 },16671 "required": [16672 "line",16673 "path"16674 ],16675 "type": "object"16676 },16677 "decision": {16678 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",16679 "type": "string"16680 },16681 "next": {16682 "minLength": 1,16683 "type": "string"16684 },16685 "retryable": {16686 "enum": [16687 false16688 ],16689 "type": "boolean"16690 }16691 },16692 "required": [16693 "_tag",16694 "next",16695 "retryable",16696 "decision"16697 ],16698 "type": "object"16699 },16700 "UnknownEnvItemEncoded": {16701 "additionalProperties": true,16702 "properties": {16703 "_tag": {16704 "enum": [16705 "UnknownEnvItem"16706 ],16707 "type": "string"16708 },16709 "at": {16710 "additionalProperties": true,16711 "properties": {16712 "line": {16713 "minimum": 1,16714 "type": "integer"16715 },16716 "path": {16717 "minLength": 1,16718 "type": "string"16719 }16720 },16721 "required": [16722 "line",16723 "path"16724 ],16725 "type": "object"16726 },16727 "key": {16728 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",16729 "type": "string"16730 },16731 "next": {16732 "minLength": 1,16733 "type": "string"16734 },16735 "retryable": {16736 "enum": [16737 false16738 ],16739 "type": "boolean"16740 }16741 },16742 "required": [16743 "_tag",16744 "next",16745 "retryable",16746 "key"16747 ],16748 "type": "object"16749 },16750 "UnknownProjectEncoded": {16751 "additionalProperties": true,16752 "properties": {16753 "_tag": {16754 "enum": [16755 "UnknownProject"16756 ],16757 "type": "string"16758 },16759 "at": {16760 "additionalProperties": true,16761 "properties": {16762 "line": {16763 "minimum": 1,16764 "type": "integer"16765 },16766 "path": {16767 "minLength": 1,16768 "type": "string"16769 }16770 },16771 "required": [16772 "line",16773 "path"16774 ],16775 "type": "object"16776 },16777 "next": {16778 "minLength": 1,16779 "type": "string"16780 },16781 "project": {16782 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",16783 "type": "string"16784 },16785 "retryable": {16786 "enum": [16787 false16788 ],16789 "type": "boolean"16790 }16791 },16792 "required": [16793 "_tag",16794 "next",16795 "retryable",16796 "project"16797 ],16798 "type": "object"16799 },16800 "UnstatedRequirementEncoded": {16801 "additionalProperties": true,16802 "properties": {16803 "_tag": {16804 "enum": [16805 "UnstatedRequirement"16806 ],16807 "type": "string"16808 },16809 "area": {16810 "minLength": 1,16811 "type": "string"16812 },16813 "at": {16814 "additionalProperties": true,16815 "properties": {16816 "line": {16817 "minimum": 1,16818 "type": "integer"16819 },16820 "path": {16821 "minLength": 1,16822 "type": "string"16823 }16824 },16825 "required": [16826 "line",16827 "path"16828 ],16829 "type": "object"16830 },16831 "next": {16832 "minLength": 1,16833 "type": "string"16834 },16835 "retryable": {16836 "enum": [16837 false16838 ],16839 "type": "boolean"16840 }16841 },16842 "required": [16843 "_tag",16844 "next",16845 "retryable",16846 "area"16847 ],16848 "type": "object"16849 },16850 "ValueTooShortEncoded": {16851 "additionalProperties": true,16852 "properties": {16853 "_tag": {16854 "enum": [16855 "ValueTooShort"16856 ],16857 "type": "string"16858 },16859 "at": {16860 "additionalProperties": true,16861 "properties": {16862 "line": {16863 "minimum": 1,16864 "type": "integer"16865 },16866 "path": {16867 "minLength": 1,16868 "type": "string"16869 }16870 },16871 "required": [16872 "line",16873 "path"16874 ],16875 "type": "object"16876 },16877 "key": {16878 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",16879 "type": "string"16880 },16881 "minimum": {16882 "type": "integer"16883 },16884 "next": {16885 "minLength": 1,16886 "type": "string"16887 },16888 "retryable": {16889 "enum": [16890 false16891 ],16892 "type": "boolean"16893 }16894 },16895 "required": [16896 "_tag",16897 "next",16898 "retryable",16899 "key",16900 "minimum"16901 ],16902 "type": "object"16903 },16904 "VerifierBlockedEncoded": {16905 "additionalProperties": true,16906 "properties": {16907 "_tag": {16908 "enum": [16909 "VerifierBlocked"16910 ],16911 "type": "string"16912 },16913 "at": {16914 "additionalProperties": true,16915 "properties": {16916 "line": {16917 "minimum": 1,16918 "type": "integer"16919 },16920 "path": {16921 "minLength": 1,16922 "type": "string"16923 }16924 },16925 "required": [16926 "line",16927 "path"16928 ],16929 "type": "object"16930 },16931 "next": {16932 "minLength": 1,16933 "type": "string"16934 },16935 "retryable": {16936 "enum": [16937 true16938 ],16939 "type": "boolean"16940 }16941 },16942 "required": [16943 "_tag",16944 "next",16945 "retryable"16946 ],16947 "type": "object"16948 },16949 "WeakCheckEncoded": {16950 "additionalProperties": true,16951 "properties": {16952 "_tag": {16953 "enum": [16954 "WeakCheck"16955 ],16956 "type": "string"16957 },16958 "at": {16959 "additionalProperties": true,16960 "properties": {16961 "line": {16962 "minimum": 1,16963 "type": "integer"16964 },16965 "path": {16966 "minLength": 1,16967 "type": "string"16968 }16969 },16970 "required": [16971 "line",16972 "path"16973 ],16974 "type": "object"16975 },16976 "next": {16977 "minLength": 1,16978 "type": "string"16979 },16980 "retryable": {16981 "enum": [16982 false16983 ],16984 "type": "boolean"16985 },16986 "weakness": {16987 "minLength": 1,16988 "type": "string"16989 }16990 },16991 "required": [16992 "_tag",16993 "next",16994 "retryable",16995 "weakness"16996 ],16997 "type": "object"16998 },16999 "WeakenedEncoded": {17000 "additionalProperties": true,17001 "properties": {17002 "_tag": {17003 "enum": [17004 "Weakened"17005 ],17006 "type": "string"17007 },17008 "at": {17009 "additionalProperties": true,17010 "properties": {17011 "line": {17012 "minimum": 1,17013 "type": "integer"17014 },17015 "path": {17016 "minLength": 1,17017 "type": "string"17018 }17019 },17020 "required": [17021 "line",17022 "path"17023 ],17024 "type": "object"17025 },17026 "next": {17027 "minLength": 1,17028 "type": "string"17029 },17030 "retryable": {17031 "enum": [17032 false17033 ],17034 "type": "boolean"17035 },17036 "weakening": {17037 "anyOf": [17038 {17039 "additionalProperties": true,17040 "properties": {17041 "marker": {17042 "minLength": 1,17043 "type": "string"17044 },17045 "reason": {17046 "minLength": 1,17047 "type": "string"17048 }17049 },17050 "required": [17051 "marker"17052 ],17053 "type": "object"17054 },17055 {17056 "additionalProperties": true,17057 "properties": {17058 "after": {17059 "type": "integer"17060 },17061 "before": {17062 "type": "integer"17063 },17064 "ratchet": {17065 "minLength": 1,17066 "type": "string"17067 },17068 "territory": {17069 "minLength": 1,17070 "type": "string"17071 }17072 },17073 "required": [17074 "after",17075 "before",17076 "ratchet",17077 "territory"17078 ],17079 "type": "object"17080 }17081 ]17082 }17083 },17084 "required": [17085 "_tag",17086 "next",17087 "retryable",17088 "weakening"17089 ],17090 "type": "object"17091 }17092 },17093 "additionalProperties": true,17094 "properties": {177 "main": {17095 "ask": {17096 "allOf": [17097 {17098 "not": {17099 "enum": [17100 "me",17101 "layer"17102 ]17103 }17104 }17105 ],17106 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17107 "type": "string"17108 },17109 "base": {17110 "pattern": "^[0-9a-f]{40}$",17111 "type": "string"17112 },17113 "head": {17114 "pattern": "^[0-9a-f]{40}$",17115 "type": "string"17116 },17117 "outcome": {17118 "anyOf": [17119 {17120 "additionalProperties": true,17121 "properties": {17122 "_tag": {17123 "enum": [17124 "AwaitingDecision"17125 ],17126 "type": "string"17127 },17128 "decision": {17129 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",17130 "type": "string"17131 }17132 },17133 "required": [17134 "_tag",17135 "decision"17136 ],17137 "type": "object"17138 },17139 {17140 "additionalProperties": true,17141 "properties": {17142 "_tag": {17143 "enum": [17144 "AwaitingFinish"17145 ],17146 "type": "string"17147 },17148 "decider": {17149 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",17150 "type": "string"17151 }17152 },17153 "required": [17154 "_tag"17155 ],17156 "type": "object"17157 },17158 {17159 "additionalProperties": true,17160 "properties": {17161 "_tag": {17162 "enum": [17163 "Checking"17164 ],17165 "type": "string"17166 },17167 "stage": {17168 "enum": [17169 "parse",17170 "shape",17171 "merge",17172 "cheap",17173 "checks",17174 "heldBack",17175 "human"17176 ],17177 "type": "string"17178 }17179 },17180 "required": [17181 "_tag",17182 "stage"17183 ],17184 "type": "object"17185 },17186 {17187 "additionalProperties": true,17188 "properties": {17189 "_tag": {17190 "enum": [17191 "Landed"17192 ],17193 "type": "string"17194 },17195 "sha": {17196 "pattern": "^[0-9a-f]{40}$",17197 "type": "string"17198 }17199 },17200 "required": [17201 "_tag",17202 "sha"17203 ],17204 "type": "object"17205 },17206 {17207 "additionalProperties": true,17208 "properties": {17209 "_tag": {17210 "enum": [17211 "Refused"17212 ],17213 "type": "string"17214 },17215 "refusals": {17216 "items": {17217 "anyOf": [17218 {17219 "$ref": "#/$defs/NotClaimedEncoded"17220 },17221 {17222 "$ref": "#/$defs/ClaimLapsedEncoded"17223 },17224 {17225 "$ref": "#/$defs/NotVouchedEncoded"17226 },17227 {17228 "$ref": "#/$defs/CapReachedEncoded"17229 },17230 {17231 "$ref": "#/$defs/AskFullEncoded"17232 },17233 {17234 "$ref": "#/$defs/NoAskEncoded"17235 },17236 {17237 "$ref": "#/$defs/RepoBusyEncoded"17238 },17239 {17240 "$ref": "#/$defs/DirectPushEncoded"17241 },17242 {17243 "$ref": "#/$defs/AskBlockedEncoded"17244 },17245 {17246 "$ref": "#/$defs/DenouncedEncoded"17247 },17248 {17249 "$ref": "#/$defs/OutOfScopeEncoded"17250 },17251 {17252 "$ref": "#/$defs/TouchedJudgeEncoded"17253 },17254 {17255 "$ref": "#/$defs/WeakenedEncoded"17256 },17257 {17258 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"17259 },17260 {17261 "$ref": "#/$defs/ReachedInternalsEncoded"17262 },17263 {17264 "$ref": "#/$defs/StaleBaseEncoded"17265 },17266 {17267 "$ref": "#/$defs/StaleLayerEncoded"17268 },17269 {17270 "$ref": "#/$defs/ChecksFailedEncoded"17271 },17272 {17273 "$ref": "#/$defs/HeldBackFailedEncoded"17274 },17275 {17276 "$ref": "#/$defs/AttemptsExhaustedEncoded"17277 },17278 {17279 "$ref": "#/$defs/FlakeEncoded"17280 },17281 {17282 "$ref": "#/$defs/VerifierBlockedEncoded"17283 },17284 {17285 "$ref": "#/$defs/NotRedFirstEncoded"17286 },17287 {17288 "$ref": "#/$defs/WeakCheckEncoded"17289 },17290 {17291 "$ref": "#/$defs/IncompleteBriefEncoded"17292 },17293 {17294 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"17295 },17296 {17297 "$ref": "#/$defs/SecretInOutputEncoded"17298 },17299 {17300 "$ref": "#/$defs/UnstatedRequirementEncoded"17301 },17302 {17303 "$ref": "#/$defs/PostureChangeEncoded"17304 },17305 {17306 "$ref": "#/$defs/NotDeciderEncoded"17307 },17308 {17309 "$ref": "#/$defs/DecisionClosedEncoded"17310 },17311 {17312 "$ref": "#/$defs/UnknownProjectEncoded"17313 },17314 {17315 "$ref": "#/$defs/UnknownAskEncoded"17316 },17317 {17318 "$ref": "#/$defs/UnknownCommitEncoded"17319 },17320 {17321 "$ref": "#/$defs/UnknownDecisionEncoded"17322 },17323 {17324 "$ref": "#/$defs/ProjectExistsEncoded"17325 },17326 {17327 "$ref": "#/$defs/ImportFailedEncoded"17328 },17329 {17330 "$ref": "#/$defs/UnknownEnvItemEncoded"17331 },17332 {17333 "$ref": "#/$defs/NotSensitiveEncoded"17334 },17335 {17336 "$ref": "#/$defs/ValueTooShortEncoded"17337 }17338 ]17339 },17340 "minItems": 1,17341 "prefixItems": [17342 {17343 "anyOf": [17344 {17345 "$ref": "#/$defs/NotClaimedEncoded"17346 },17347 {17348 "$ref": "#/$defs/ClaimLapsedEncoded"17349 },17350 {17351 "$ref": "#/$defs/NotVouchedEncoded"17352 },17353 {17354 "$ref": "#/$defs/CapReachedEncoded"17355 },17356 {17357 "$ref": "#/$defs/AskFullEncoded"17358 },17359 {17360 "$ref": "#/$defs/NoAskEncoded"17361 },17362 {17363 "$ref": "#/$defs/RepoBusyEncoded"17364 },17365 {17366 "$ref": "#/$defs/DirectPushEncoded"17367 },17368 {17369 "$ref": "#/$defs/AskBlockedEncoded"17370 },17371 {17372 "$ref": "#/$defs/DenouncedEncoded"17373 },17374 {17375 "$ref": "#/$defs/OutOfScopeEncoded"17376 },17377 {17378 "$ref": "#/$defs/TouchedJudgeEncoded"17379 },17380 {17381 "$ref": "#/$defs/WeakenedEncoded"17382 },17383 {17384 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"17385 },17386 {17387 "$ref": "#/$defs/ReachedInternalsEncoded"17388 },17389 {17390 "$ref": "#/$defs/StaleBaseEncoded"17391 },17392 {17393 "$ref": "#/$defs/StaleLayerEncoded"17394 },17395 {17396 "$ref": "#/$defs/ChecksFailedEncoded"17397 },17398 {17399 "$ref": "#/$defs/HeldBackFailedEncoded"17400 },17401 {17402 "$ref": "#/$defs/AttemptsExhaustedEncoded"17403 },17404 {17405 "$ref": "#/$defs/FlakeEncoded"17406 },17407 {17408 "$ref": "#/$defs/VerifierBlockedEncoded"17409 },17410 {17411 "$ref": "#/$defs/NotRedFirstEncoded"17412 },17413 {17414 "$ref": "#/$defs/WeakCheckEncoded"17415 },17416 {17417 "$ref": "#/$defs/IncompleteBriefEncoded"17418 },17419 {17420 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"17421 },17422 {17423 "$ref": "#/$defs/SecretInOutputEncoded"17424 },17425 {17426 "$ref": "#/$defs/UnstatedRequirementEncoded"17427 },17428 {17429 "$ref": "#/$defs/PostureChangeEncoded"17430 },17431 {17432 "$ref": "#/$defs/NotDeciderEncoded"17433 },17434 {17435 "$ref": "#/$defs/DecisionClosedEncoded"17436 },17437 {17438 "$ref": "#/$defs/UnknownProjectEncoded"17439 },17440 {17441 "$ref": "#/$defs/UnknownAskEncoded"17442 },17443 {17444 "$ref": "#/$defs/UnknownCommitEncoded"17445 },17446 {17447 "$ref": "#/$defs/UnknownDecisionEncoded"17448 },17449 {17450 "$ref": "#/$defs/ProjectExistsEncoded"17451 },17452 {17453 "$ref": "#/$defs/ImportFailedEncoded"17454 },17455 {17456 "$ref": "#/$defs/UnknownEnvItemEncoded"17457 },17458 {17459 "$ref": "#/$defs/NotSensitiveEncoded"17460 },17461 {17462 "$ref": "#/$defs/ValueTooShortEncoded"17463 }17464 ]17465 }17466 ],17467 "type": "array"17468 }17469 },17470 "required": [17471 "_tag",17472 "refusals"17473 ],17474 "type": "object"17475 },17476 {17477 "additionalProperties": true,17478 "properties": {17479 "_tag": {17480 "enum": [17481 "WaitingOnParent"17482 ],17483 "type": "string"17484 },17485 "ask": {17486 "allOf": [17487 {17488 "not": {17489 "enum": [17490 "me",17491 "layer"17492 ]17493 }17494 }17495 ],17496 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17497 "type": "string"17498 }17499 },17500 "required": [17501 "_tag",17502 "ask"17503 ],17504 "type": "object"17505 }17506 ]17507 },17508 "project": {17509 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17510 "type": "string"17511 },17512 "requestId": {17513 "pattern": "^[A-Za-z0-9_-]{8,64}$",17514 "type": "string"17515 }17516 },17517 "required": [183 "main"17518 "ask",17519 "base",17520 "head",17521 "outcome",17522 "project",17523 "requestId"17524 ],17525 "type": "object"17526}17527```1752817529## finish1753017531Finish a passing answer with a decider's own commits on top; they are checked again, and credited with Finished-by when it lands. Asks a person first.1753217533| Hint | Value |17534| --- | --- |17535| `destructiveHint` | `false` |17536| `idempotentHint` | `true` |17537| `openWorldHint` | `false` |17538| `readOnlyHint` | `false` |1753917540### Input1754117542```json17543{17544 "additionalProperties": true,17545 "properties": {17546 "ask": {17547 "allOf": [17548 {17549 "not": {17550 "enum": [17551 "me",17552 "layer"17553 ]17554 }17555 }17556 ],17557 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17558 "type": "string"17559 },17560 "base": {17561 "pattern": "^[0-9a-f]{40}$",17562 "type": "string"17563 },17564 "head": {17565 "pattern": "^[0-9a-f]{40}$",17566 "type": "string"17567 },17568 "project": {17569 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17570 "type": "string"17571 },17572 "requestId": {17573 "pattern": "^[A-Za-z0-9_-]{8,64}$",17574 "type": "string"17575 }17576 },17577 "required": [17578 "ask",17579 "base",17580 "head",17581 "project",17582 "requestId"17583 ],17584 "type": "object"17585}17586```1758717588### Output1758917590```json17591{17592 "$defs": {17593 "AskBlockedEncoded": {17594 "additionalProperties": true,17595 "properties": {17596 "_tag": {17597 "enum": [17598 "AskBlocked"17599 ],17600 "type": "string"17601 },17602 "ask": {17603 "allOf": [17604 {17605 "not": {17606 "enum": [17607 "me",17608 "layer"17609 ]17610 }17611 }17612 ],17613 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17614 "type": "string"17615 },17616 "at": {17617 "additionalProperties": true,17618 "properties": {17619 "line": {17620 "minimum": 1,17621 "type": "integer"17622 },17623 "path": {17624 "minLength": 1,17625 "type": "string"17626 }17627 },17628 "required": [17629 "line",17630 "path"17631 ],17632 "type": "object"17633 },17634 "blockedBy": {17635 "items": {17636 "allOf": [17637 {17638 "not": {17639 "enum": [17640 "me",17641 "layer"17642 ]17643 }17644 }17645 ],17646 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17647 "type": "string"17648 },17649 "minItems": 1,17650 "prefixItems": [17651 {17652 "allOf": [17653 {17654 "not": {17655 "enum": [17656 "me",17657 "layer"17658 ]17659 }17660 }17661 ],17662 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17663 "type": "string"17664 }17665 ],17666 "type": "array"17667 },17668 "next": {17669 "minLength": 1,17670 "type": "string"17671 },17672 "retryable": {17673 "enum": [17674 true17675 ],17676 "type": "boolean"17677 }17678 },17679 "required": [17680 "_tag",17681 "next",17682 "retryable",17683 "ask",17684 "blockedBy"17685 ],17686 "type": "object"17687 },17688 "AskFullEncoded": {17689 "additionalProperties": true,17690 "properties": {17691 "_tag": {17692 "enum": [17693 "AskFull"17694 ],17695 "type": "string"17696 },17697 "ask": {17698 "allOf": [17699 {17700 "not": {17701 "enum": [17702 "me",17703 "layer"17704 ]17705 }17706 }17707 ],17708 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17709 "type": "string"17710 },17711 "at": {17712 "additionalProperties": true,17713 "properties": {17714 "line": {17715 "minimum": 1,17716 "type": "integer"17717 },17718 "path": {17719 "minLength": 1,17720 "type": "string"17721 }17722 },17723 "required": [17724 "line",17725 "path"17726 ],17727 "type": "object"17728 },17729 "next": {17730 "minLength": 1,17731 "type": "string"17732 },17733 "retryable": {17734 "enum": [17735 true17736 ],17737 "type": "boolean"17738 }17739 },17740 "required": [17741 "_tag",17742 "next",17743 "retryable",17744 "ask"17745 ],17746 "type": "object"17747 },17748 "AttemptsExhaustedEncoded": {17749 "additionalProperties": true,17750 "properties": {17751 "_tag": {17752 "enum": [17753 "AttemptsExhausted"17754 ],17755 "type": "string"17756 },17757 "area": {17758 "minLength": 1,17759 "type": "string"17760 },17761 "at": {17762 "additionalProperties": true,17763 "properties": {17764 "line": {17765 "minimum": 1,17766 "type": "integer"17767 },17768 "path": {17769 "minLength": 1,17770 "type": "string"17771 }17772 },17773 "required": [17774 "line",17775 "path"17776 ],17777 "type": "object"17778 },17779 "next": {17780 "minLength": 1,17781 "type": "string"17782 },17783 "resetsAt": {17784 "type": "string"17785 },17786 "retryable": {17787 "enum": [17788 true17789 ],17790 "type": "boolean"17791 }17792 },17793 "required": [17794 "_tag",17795 "next",17796 "retryable",17797 "area",17798 "resetsAt"17799 ],17800 "type": "object"17801 },17802 "CapReachedEncoded": {17803 "additionalProperties": true,17804 "properties": {17805 "_tag": {17806 "enum": [17807 "CapReached"17808 ],17809 "type": "string"17810 },17811 "at": {17812 "additionalProperties": true,17813 "properties": {17814 "line": {17815 "minimum": 1,17816 "type": "integer"17817 },17818 "path": {17819 "minLength": 1,17820 "type": "string"17821 }17822 },17823 "required": [17824 "line",17825 "path"17826 ],17827 "type": "object"17828 },17829 "cap": {17830 "type": "integer"17831 },17832 "next": {17833 "minLength": 1,17834 "type": "string"17835 },17836 "retryable": {17837 "enum": [17838 true17839 ],17840 "type": "boolean"17841 }17842 },17843 "required": [17844 "_tag",17845 "next",17846 "retryable",17847 "cap"17848 ],17849 "type": "object"17850 },17851 "ChecksFailedEncoded": {17852 "additionalProperties": true,17853 "properties": {17854 "_tag": {17855 "enum": [17856 "ChecksFailed"17857 ],17858 "type": "string"17859 },17860 "at": {17861 "additionalProperties": true,17862 "properties": {17863 "line": {17864 "minimum": 1,17865 "type": "integer"17866 },17867 "path": {17868 "minLength": 1,17869 "type": "string"17870 }17871 },17872 "required": [17873 "line",17874 "path"17875 ],17876 "type": "object"17877 },17878 "lane": {17879 "minLength": 1,17880 "type": "string"17881 },17882 "logRef": {17883 "minLength": 1,17884 "type": "string"17885 },17886 "next": {17887 "minLength": 1,17888 "type": "string"17889 },17890 "retryable": {17891 "enum": [17892 false17893 ],17894 "type": "boolean"17895 }17896 },17897 "required": [17898 "_tag",17899 "next",17900 "retryable",17901 "lane",17902 "logRef"17903 ],17904 "type": "object"17905 },17906 "ClaimLapsedEncoded": {17907 "additionalProperties": true,17908 "properties": {17909 "_tag": {17910 "enum": [17911 "ClaimLapsed"17912 ],17913 "type": "string"17914 },17915 "ask": {17916 "allOf": [17917 {17918 "not": {17919 "enum": [17920 "me",17921 "layer"17922 ]17923 }17924 }17925 ],17926 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",17927 "type": "string"17928 },17929 "at": {17930 "additionalProperties": true,17931 "properties": {17932 "line": {17933 "minimum": 1,17934 "type": "integer"17935 },17936 "path": {17937 "minLength": 1,17938 "type": "string"17939 }17940 },17941 "required": [17942 "line",17943 "path"17944 ],17945 "type": "object"17946 },17947 "next": {17948 "minLength": 1,17949 "type": "string"17950 },17951 "retryable": {17952 "enum": [17953 true17954 ],17955 "type": "boolean"17956 }17957 },17958 "required": [17959 "_tag",17960 "next",17961 "retryable",17962 "ask"17963 ],17964 "type": "object"17965 },17966 "DecisionClosedEncoded": {17967 "additionalProperties": true,17968 "properties": {17969 "_tag": {17970 "enum": [17971 "DecisionClosed"17972 ],17973 "type": "string"17974 },17975 "at": {17976 "additionalProperties": true,17977 "properties": {17978 "line": {17979 "minimum": 1,17980 "type": "integer"17981 },17982 "path": {17983 "minLength": 1,17984 "type": "string"17985 }17986 },17987 "required": [17988 "line",17989 "path"17990 ],17991 "type": "object"17992 },17993 "decision": {17994 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",17995 "type": "string"17996 },17997 "next": {17998 "minLength": 1,17999 "type": "string"18000 },18001 "retryable": {18002 "enum": [18003 false18004 ],18005 "type": "boolean"18006 }18007 },18008 "required": [18009 "_tag",18010 "next",18011 "retryable",18012 "decision"18013 ],18014 "type": "object"18015 },18016 "DenouncedEncoded": {18017 "additionalProperties": true,18018 "properties": {18019 "_tag": {18020 "enum": [18021 "Denounced"18022 ],18023 "type": "string"18024 },18025 "at": {18026 "additionalProperties": true,18027 "properties": {18028 "line": {18029 "minimum": 1,18030 "type": "integer"18031 },18032 "path": {18033 "minLength": 1,18034 "type": "string"18035 }18036 },18037 "required": [18038 "line",18039 "path"18040 ],18041 "type": "object"18042 },18043 "next": {18044 "minLength": 1,18045 "type": "string"18046 },18047 "retryable": {18048 "enum": [18049 false18050 ],18051 "type": "boolean"18052 }18053 },18054 "required": [18055 "_tag",18056 "next",18057 "retryable"18058 ],18059 "type": "object"18060 },18061 "DirectPushEncoded": {18062 "additionalProperties": true,18063 "properties": {18064 "_tag": {18065 "enum": [18066 "DirectPush"18067 ],18068 "type": "string"18069 },18070 "at": {18071 "additionalProperties": true,18072 "properties": {18073 "line": {18074 "minimum": 1,18075 "type": "integer"18076 },18077 "path": {18078 "minLength": 1,18079 "type": "string"18080 }18081 },18082 "required": [18083 "line",18084 "path"18085 ],18086 "type": "object"18087 },18088 "next": {18089 "minLength": 1,18090 "type": "string"18091 },18092 "ref": {18093 "minLength": 1,18094 "type": "string"18095 },18096 "retryable": {18097 "enum": [18098 false18099 ],18100 "type": "boolean"18101 }18102 },18103 "required": [18104 "_tag",18105 "next",18106 "retryable",18107 "ref"18108 ],18109 "type": "object"18110 },18111 "FlakeEncoded": {18112 "additionalProperties": true,18113 "properties": {18114 "_tag": {18115 "enum": [18116 "Flake"18117 ],18118 "type": "string"18119 },18120 "at": {18121 "additionalProperties": true,18122 "properties": {18123 "line": {18124 "minimum": 1,18125 "type": "integer"18126 },18127 "path": {18128 "minLength": 1,18129 "type": "string"18130 }18131 },18132 "required": [18133 "line",18134 "path"18135 ],18136 "type": "object"18137 },18138 "lane": {18139 "minLength": 1,18140 "type": "string"18141 },18142 "next": {18143 "minLength": 1,18144 "type": "string"18145 },18146 "retryable": {18147 "enum": [18148 true18149 ],18150 "type": "boolean"18151 }18152 },18153 "required": [18154 "_tag",18155 "next",18156 "retryable",18157 "lane"18158 ],18159 "type": "object"18160 },18161 "HeldBackFailedEncoded": {18162 "additionalProperties": true,18163 "properties": {18164 "_tag": {18165 "enum": [18166 "HeldBackFailed"18167 ],18168 "type": "string"18169 },18170 "area": {18171 "minLength": 1,18172 "type": "string"18173 },18174 "at": {18175 "additionalProperties": true,18176 "properties": {18177 "line": {18178 "minimum": 1,18179 "type": "integer"18180 },18181 "path": {18182 "minLength": 1,18183 "type": "string"18184 }18185 },18186 "required": [18187 "line",18188 "path"18189 ],18190 "type": "object"18191 },18192 "next": {18193 "minLength": 1,18194 "type": "string"18195 },18196 "retryable": {18197 "enum": [18198 false18199 ],18200 "type": "boolean"18201 },18202 "suite": {18203 "minLength": 1,18204 "type": "string"18205 }18206 },18207 "required": [18208 "_tag",18209 "next",18210 "retryable",18211 "area",18212 "suite"18213 ],18214 "type": "object"18215 },18216 "ImportFailedEncoded": {18217 "additionalProperties": true,18218 "properties": {18219 "_tag": {18220 "enum": [18221 "ImportFailed"18222 ],18223 "type": "string"18224 },18225 "at": {18226 "additionalProperties": true,18227 "properties": {18228 "line": {18229 "minimum": 1,18230 "type": "integer"18231 },18232 "path": {18233 "minLength": 1,18234 "type": "string"18235 }18236 },18237 "required": [18238 "line",18239 "path"18240 ],18241 "type": "object"18242 },18243 "next": {18244 "minLength": 1,18245 "type": "string"18246 },18247 "reason": {18248 "minLength": 1,18249 "type": "string"18250 },18251 "retryable": {18252 "enum": [18253 true18254 ],18255 "type": "boolean"18256 }18257 },18258 "required": [18259 "_tag",18260 "next",18261 "retryable",18262 "reason"18263 ],18264 "type": "object"18265 },18266 "IncompleteBriefEncoded": {18267 "additionalProperties": true,18268 "properties": {18269 "_tag": {18270 "enum": [18271 "IncompleteBrief"18272 ],18273 "type": "string"18274 },18275 "at": {18276 "additionalProperties": true,18277 "properties": {18278 "line": {18279 "minimum": 1,18280 "type": "integer"18281 },18282 "path": {18283 "minLength": 1,18284 "type": "string"18285 }18286 },18287 "required": [18288 "line",18289 "path"18290 ],18291 "type": "object"18292 },18293 "missing": {18294 "items": {18295 "minLength": 1,18296 "type": "string"18297 },18298 "minItems": 1,18299 "prefixItems": [18300 {18301 "minLength": 1,18302 "type": "string"18303 }18304 ],18305 "type": "array"18306 },18307 "next": {18308 "minLength": 1,18309 "type": "string"18310 },18311 "retryable": {18312 "enum": [18313 false18314 ],18315 "type": "boolean"18316 }18317 },18318 "required": [18319 "_tag",18320 "next",18321 "retryable",18322 "missing"18323 ],18324 "type": "object"18325 },18326 "LayerContentInPublicTreeEncoded": {18327 "additionalProperties": true,18328 "properties": {18329 "_tag": {18330 "enum": [18331 "LayerContentInPublicTree"18332 ],18333 "type": "string"18334 },18335 "at": {18336 "additionalProperties": true,18337 "properties": {18338 "line": {18339 "minimum": 1,18340 "type": "integer"18341 },18342 "path": {18343 "minLength": 1,18344 "type": "string"18345 }18346 },18347 "required": [18348 "line",18349 "path"18350 ],18351 "type": "object"18352 },18353 "next": {18354 "minLength": 1,18355 "type": "string"18356 },18357 "paths": {18358 "items": {18359 "minLength": 1,18360 "type": "string"18361 },18362 "minItems": 1,18363 "prefixItems": [18364 {18365 "minLength": 1,18366 "type": "string"18367 }18368 ],18369 "type": "array"18370 },18371 "retryable": {18372 "enum": [18373 false18374 ],18375 "type": "boolean"18376 }18377 },18378 "required": [18379 "_tag",18380 "next",18381 "retryable",18382 "paths"18383 ],18384 "type": "object"18385 },18386 "NoAskEncoded": {18387 "additionalProperties": true,18388 "properties": {18389 "_tag": {18390 "enum": [18391 "NoAsk"18392 ],18393 "type": "string"18394 },18395 "at": {18396 "additionalProperties": true,18397 "properties": {18398 "line": {18399 "minimum": 1,18400 "type": "integer"18401 },18402 "path": {18403 "minLength": 1,18404 "type": "string"18405 }18406 },18407 "required": [18408 "line",18409 "path"18410 ],18411 "type": "object"18412 },18413 "next": {18414 "minLength": 1,18415 "type": "string"18416 },18417 "retryable": {18418 "enum": [18419 false18420 ],18421 "type": "boolean"18422 }18423 },18424 "required": [18425 "_tag",18426 "next",18427 "retryable"18428 ],18429 "type": "object"18430 },18431 "NotClaimedEncoded": {18432 "additionalProperties": true,18433 "properties": {18434 "_tag": {18435 "enum": [18436 "NotClaimed"18437 ],18438 "type": "string"18439 },18440 "ask": {18441 "allOf": [18442 {18443 "not": {18444 "enum": [18445 "me",18446 "layer"18447 ]18448 }18449 }18450 ],18451 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",18452 "type": "string"18453 },18454 "at": {18455 "additionalProperties": true,18456 "properties": {18457 "line": {18458 "minimum": 1,18459 "type": "integer"18460 },18461 "path": {18462 "minLength": 1,18463 "type": "string"18464 }18465 },18466 "required": [18467 "line",18468 "path"18469 ],18470 "type": "object"18471 },18472 "next": {18473 "minLength": 1,18474 "type": "string"18475 },18476 "retryable": {18477 "enum": [18478 true18479 ],18480 "type": "boolean"18481 }18482 },18483 "required": [18484 "_tag",18485 "next",18486 "retryable",18487 "ask"18488 ],18489 "type": "object"18490 },18491 "NotDeciderEncoded": {18492 "additionalProperties": true,18493 "properties": {18494 "_tag": {18495 "enum": [18496 "NotDecider"18497 ],18498 "type": "string"18499 },18500 "at": {18501 "additionalProperties": true,18502 "properties": {18503 "line": {18504 "minimum": 1,18505 "type": "integer"18506 },18507 "path": {18508 "minLength": 1,18509 "type": "string"18510 }18511 },18512 "required": [18513 "line",18514 "path"18515 ],18516 "type": "object"18517 },18518 "next": {18519 "minLength": 1,18520 "type": "string"18521 },18522 "retryable": {18523 "enum": [18524 false18525 ],18526 "type": "boolean"18527 }18528 },18529 "required": [18530 "_tag",18531 "next",18532 "retryable"18533 ],18534 "type": "object"18535 },18536 "NotRedFirstEncoded": {18537 "additionalProperties": true,18538 "properties": {18539 "_tag": {18540 "enum": [18541 "NotRedFirst"18542 ],18543 "type": "string"18544 },18545 "at": {18546 "additionalProperties": true,18547 "properties": {18548 "line": {18549 "minimum": 1,18550 "type": "integer"18551 },18552 "path": {18553 "minLength": 1,18554 "type": "string"18555 }18556 },18557 "required": [18558 "line",18559 "path"18560 ],18561 "type": "object"18562 },18563 "next": {18564 "minLength": 1,18565 "type": "string"18566 },18567 "retryable": {18568 "enum": [18569 false18570 ],18571 "type": "boolean"18572 }18573 },18574 "required": [18575 "_tag",18576 "next",18577 "retryable"18578 ],18579 "type": "object"18580 },18581 "NotSensitiveEncoded": {18582 "additionalProperties": true,18583 "properties": {18584 "_tag": {18585 "enum": [18586 "NotSensitive"18587 ],18588 "type": "string"18589 },18590 "at": {18591 "additionalProperties": true,18592 "properties": {18593 "line": {18594 "minimum": 1,18595 "type": "integer"18596 },18597 "path": {18598 "minLength": 1,18599 "type": "string"18600 }18601 },18602 "required": [18603 "line",18604 "path"18605 ],18606 "type": "object"18607 },18608 "key": {18609 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",18610 "type": "string"18611 },18612 "next": {18613 "minLength": 1,18614 "type": "string"18615 },18616 "retryable": {18617 "enum": [18618 false18619 ],18620 "type": "boolean"18621 }18622 },18623 "required": [18624 "_tag",18625 "next",18626 "retryable",18627 "key"18628 ],18629 "type": "object"18630 },18631 "NotVouchedEncoded": {18632 "additionalProperties": true,18633 "properties": {18634 "_tag": {18635 "enum": [18636 "NotVouched"18637 ],18638 "type": "string"18639 },18640 "at": {18641 "additionalProperties": true,18642 "properties": {18643 "line": {18644 "minimum": 1,18645 "type": "integer"18646 },18647 "path": {18648 "minLength": 1,18649 "type": "string"18650 }18651 },18652 "required": [18653 "line",18654 "path"18655 ],18656 "type": "object"18657 },18658 "next": {18659 "minLength": 1,18660 "type": "string"18661 },18662 "retryable": {18663 "enum": [18664 false18665 ],18666 "type": "boolean"18667 }18668 },18669 "required": [18670 "_tag",18671 "next",18672 "retryable"18673 ],18674 "type": "object"18675 },18676 "OutOfScopeEncoded": {18677 "additionalProperties": true,18678 "properties": {18679 "_tag": {18680 "enum": [18681 "OutOfScope"18682 ],18683 "type": "string"18684 },18685 "at": {18686 "additionalProperties": true,18687 "properties": {18688 "line": {18689 "minimum": 1,18690 "type": "integer"18691 },18692 "path": {18693 "minLength": 1,18694 "type": "string"18695 }18696 },18697 "required": [18698 "line",18699 "path"18700 ],18701 "type": "object"18702 },18703 "next": {18704 "minLength": 1,18705 "type": "string"18706 },18707 "paths": {18708 "items": {18709 "minLength": 1,18710 "type": "string"18711 },18712 "minItems": 1,18713 "prefixItems": [18714 {18715 "minLength": 1,18716 "type": "string"18717 }18718 ],18719 "type": "array"18720 },18721 "retryable": {18722 "enum": [18723 false18724 ],18725 "type": "boolean"18726 }18727 },18728 "required": [18729 "_tag",18730 "next",18731 "retryable",18732 "paths"18733 ],18734 "type": "object"18735 },18736 "PostureChangeEncoded": {18737 "additionalProperties": true,18738 "properties": {18739 "_tag": {18740 "enum": [18741 "PostureChange"18742 ],18743 "type": "string"18744 },18745 "at": {18746 "additionalProperties": true,18747 "properties": {18748 "line": {18749 "minimum": 1,18750 "type": "integer"18751 },18752 "path": {18753 "minLength": 1,18754 "type": "string"18755 }18756 },18757 "required": [18758 "line",18759 "path"18760 ],18761 "type": "object"18762 },18763 "from": {18764 "enum": [18765 "open",18766 "openWithSealedEvidence",18767 "openOnSchedule",18768 "openCore",18769 "sourceAvailable"18770 ],18771 "type": "string"18772 },18773 "next": {18774 "minLength": 1,18775 "type": "string"18776 },18777 "retryable": {18778 "enum": [18779 false18780 ],18781 "type": "boolean"18782 },18783 "to": {18784 "enum": [18785 "open",18786 "openWithSealedEvidence",18787 "openOnSchedule",18788 "openCore",18789 "sourceAvailable"18790 ],18791 "type": "string"18792 }18793 },18794 "required": [18795 "_tag",18796 "next",18797 "retryable",18798 "from",18799 "to"18800 ],18801 "type": "object"18802 },18803 "PrivatePathInPublicTreeEncoded": {18804 "additionalProperties": true,18805 "properties": {18806 "_tag": {18807 "enum": [18808 "PrivatePathInPublicTree"18809 ],18810 "type": "string"18811 },18812 "at": {18813 "additionalProperties": true,18814 "properties": {18815 "line": {18816 "minimum": 1,18817 "type": "integer"18818 },18819 "path": {18820 "minLength": 1,18821 "type": "string"18822 }18823 },18824 "required": [18825 "line",18826 "path"18827 ],18828 "type": "object"18829 },18830 "next": {18831 "minLength": 1,18832 "type": "string"18833 },18834 "paths": {18835 "items": {18836 "minLength": 1,18837 "type": "string"18838 },18839 "minItems": 1,18840 "prefixItems": [18841 {18842 "minLength": 1,18843 "type": "string"18844 }18845 ],18846 "type": "array"18847 },18848 "retryable": {18849 "enum": [18850 false18851 ],18852 "type": "boolean"18853 }18854 },18855 "required": [18856 "_tag",18857 "next",18858 "retryable",18859 "paths"18860 ],18861 "type": "object"18862 },18863 "ProjectExistsEncoded": {18864 "additionalProperties": true,18865 "properties": {18866 "_tag": {18867 "enum": [18868 "ProjectExists"18869 ],18870 "type": "string"18871 },18872 "at": {18873 "additionalProperties": true,18874 "properties": {18875 "line": {18876 "minimum": 1,18877 "type": "integer"18878 },18879 "path": {18880 "minLength": 1,18881 "type": "string"18882 }18883 },18884 "required": [18885 "line",18886 "path"18887 ],18888 "type": "object"18889 },18890 "next": {18891 "minLength": 1,18892 "type": "string"18893 },18894 "project": {18895 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",18896 "type": "string"18897 },18898 "retryable": {18899 "enum": [18900 false18901 ],18902 "type": "boolean"18903 }18904 },18905 "required": [18906 "_tag",18907 "next",18908 "retryable",18909 "project"18910 ],18911 "type": "object"18912 },18913 "ReachedInternalsEncoded": {18914 "additionalProperties": true,18915 "properties": {18916 "_tag": {18917 "enum": [18918 "ReachedInternals"18919 ],18920 "type": "string"18921 },18922 "at": {18923 "additionalProperties": true,18924 "properties": {18925 "line": {18926 "minimum": 1,18927 "type": "integer"18928 },18929 "path": {18930 "minLength": 1,18931 "type": "string"18932 }18933 },18934 "required": [18935 "line",18936 "path"18937 ],18938 "type": "object"18939 },18940 "from": {18941 "minLength": 1,18942 "type": "string"18943 },18944 "next": {18945 "minLength": 1,18946 "type": "string"18947 },18948 "retryable": {18949 "enum": [18950 false18951 ],18952 "type": "boolean"18953 },18954 "to": {18955 "minLength": 1,18956 "type": "string"18957 }18958 },18959 "required": [18960 "_tag",18961 "next",18962 "retryable",18963 "from",18964 "to"18965 ],18966 "type": "object"18967 },18968 "RepoBusyEncoded": {18969 "additionalProperties": true,18970 "properties": {18971 "_tag": {18972 "enum": [18973 "RepoBusy"18974 ],18975 "type": "string"18976 },18977 "at": {18978 "additionalProperties": true,18979 "properties": {18980 "line": {18981 "minimum": 1,18982 "type": "integer"18983 },18984 "path": {18985 "minLength": 1,18986 "type": "string"18987 }18988 },18989 "required": [18990 "line",18991 "path"18992 ],18993 "type": "object"18994 },18995 "next": {18996 "minLength": 1,18997 "type": "string"18998 },18999 "retryable": {19000 "enum": [19001 true19002 ],19003 "type": "boolean"19004 }19005 },19006 "required": [19007 "_tag",19008 "next",19009 "retryable"19010 ],19011 "type": "object"19012 },19013 "SecretInOutputEncoded": {19014 "additionalProperties": true,19015 "properties": {19016 "_tag": {19017 "enum": [19018 "SecretInOutput"19019 ],19020 "type": "string"19021 },19022 "at": {19023 "additionalProperties": true,19024 "properties": {19025 "line": {19026 "minimum": 1,19027 "type": "integer"19028 },19029 "path": {19030 "minLength": 1,19031 "type": "string"19032 }19033 },19034 "required": [19035 "line",19036 "path"19037 ],19038 "type": "object"19039 },19040 "item": {19041 "minLength": 1,19042 "type": "string"19043 },19044 "next": {19045 "minLength": 1,19046 "type": "string"19047 },19048 "retryable": {19049 "enum": [19050 false19051 ],19052 "type": "boolean"19053 },19054 "where": {19055 "enum": [19056 "output",19057 "tree"19058 ],19059 "type": "string"19060 }19061 },19062 "required": [19063 "_tag",19064 "next",19065 "retryable",19066 "item",19067 "where"19068 ],19069 "type": "object"19070 },19071 "StaleBaseEncoded": {19072 "additionalProperties": true,19073 "properties": {19074 "_tag": {19075 "enum": [19076 "StaleBase"19077 ],19078 "type": "string"19079 },19080 "at": {19081 "additionalProperties": true,19082 "properties": {19083 "line": {19084 "minimum": 1,19085 "type": "integer"19086 },19087 "path": {19088 "minLength": 1,19089 "type": "string"19090 }19091 },19092 "required": [19093 "line",19094 "path"19095 ],19096 "type": "object"19097 },19098 "base": {19099 "pattern": "^[0-9a-f]{40}$",19100 "type": "string"19101 },19102 "conflicts": {19103 "items": {19104 "minLength": 1,19105 "type": "string"19106 },19107 "type": "array"19108 },19109 "main": {19110 "pattern": "^[0-9a-f]{40}$",19111 "type": "string"19112 },19113 "next": {19114 "minLength": 1,19115 "type": "string"19116 },19117 "retryable": {19118 "enum": [19119 true19120 ],19121 "type": "boolean"19122 }19123 },19124 "required": [19125 "_tag",19126 "next",19127 "retryable",19128 "base",19129 "conflicts",19130 "main"19131 ],19132 "type": "object"19133 },19134 "StaleLayerEncoded": {19135 "additionalProperties": true,19136 "properties": {19137 "_tag": {19138 "enum": [19139 "StaleLayer"19140 ],19141 "type": "string"19142 },19143 "at": {19144 "additionalProperties": true,19145 "properties": {19146 "line": {19147 "minimum": 1,19148 "type": "integer"19149 },19150 "path": {19151 "minLength": 1,19152 "type": "string"19153 }19154 },19155 "required": [19156 "line",19157 "path"19158 ],19159 "type": "object"19160 },19161 "layer": {19162 "minLength": 1,19163 "type": "string"19164 },19165 "next": {19166 "minLength": 1,19167 "type": "string"19168 },19169 "retryable": {19170 "enum": [19171 true19172 ],19173 "type": "boolean"19174 }19175 },19176 "required": [19177 "_tag",19178 "next",19179 "retryable",19180 "layer"19181 ],19182 "type": "object"19183 },19184 "TouchedJudgeEncoded": {19185 "additionalProperties": true,19186 "properties": {19187 "_tag": {19188 "enum": [19189 "TouchedJudge"19190 ],19191 "type": "string"19192 },19193 "at": {19194 "additionalProperties": true,19195 "properties": {19196 "line": {19197 "minimum": 1,19198 "type": "integer"19199 },19200 "path": {19201 "minLength": 1,19202 "type": "string"19203 }19204 },19205 "required": [19206 "line",19207 "path"19208 ],19209 "type": "object"19210 },19211 "next": {19212 "minLength": 1,19213 "type": "string"19214 },19215 "paths": {19216 "items": {19217 "minLength": 1,19218 "type": "string"19219 },19220 "minItems": 1,19221 "prefixItems": [19222 {19223 "minLength": 1,19224 "type": "string"19225 }19226 ],19227 "type": "array"19228 },19229 "retryable": {19230 "enum": [19231 false19232 ],19233 "type": "boolean"19234 }19235 },19236 "required": [19237 "_tag",19238 "next",19239 "retryable",19240 "paths"19241 ],19242 "type": "object"19243 },19244 "UnknownAskEncoded": {19245 "additionalProperties": true,19246 "properties": {19247 "_tag": {19248 "enum": [19249 "UnknownAsk"19250 ],19251 "type": "string"19252 },19253 "ask": {19254 "allOf": [19255 {19256 "not": {19257 "enum": [19258 "me",19259 "layer"19260 ]19261 }19262 }19263 ],19264 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",19265 "type": "string"19266 },19267 "at": {19268 "additionalProperties": true,19269 "properties": {19270 "line": {19271 "minimum": 1,19272 "type": "integer"19273 },19274 "path": {19275 "minLength": 1,19276 "type": "string"19277 }19278 },19279 "required": [19280 "line",19281 "path"19282 ],19283 "type": "object"19284 },19285 "next": {19286 "minLength": 1,19287 "type": "string"19288 },19289 "retryable": {19290 "enum": [19291 false19292 ],19293 "type": "boolean"19294 }19295 },19296 "required": [19297 "_tag",19298 "next",19299 "retryable",19300 "ask"19301 ],19302 "type": "object"19303 },19304 "UnknownCommitEncoded": {19305 "additionalProperties": true,19306 "properties": {19307 "_tag": {19308 "enum": [19309 "UnknownCommit"19310 ],19311 "type": "string"19312 },19313 "at": {19314 "additionalProperties": true,19315 "properties": {19316 "line": {19317 "minimum": 1,19318 "type": "integer"19319 },19320 "path": {19321 "minLength": 1,19322 "type": "string"19323 }19324 },19325 "required": [19326 "line",19327 "path"19328 ],19329 "type": "object"19330 },19331 "next": {19332 "minLength": 1,19333 "type": "string"19334 },19335 "retryable": {19336 "enum": [19337 false19338 ],19339 "type": "boolean"19340 },19341 "sha": {19342 "pattern": "^[0-9a-f]{40}$",19343 "type": "string"19344 }19345 },19346 "required": [19347 "_tag",19348 "next",19349 "retryable",19350 "sha"19351 ],19352 "type": "object"19353 },19354 "UnknownDecisionEncoded": {19355 "additionalProperties": true,19356 "properties": {19357 "_tag": {19358 "enum": [19359 "UnknownDecision"19360 ],19361 "type": "string"19362 },19363 "at": {19364 "additionalProperties": true,19365 "properties": {19366 "line": {19367 "minimum": 1,19368 "type": "integer"19369 },19370 "path": {19371 "minLength": 1,19372 "type": "string"19373 }19374 },19375 "required": [19376 "line",19377 "path"19378 ],19379 "type": "object"19380 },19381 "decision": {19382 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",19383 "type": "string"19384 },19385 "next": {19386 "minLength": 1,19387 "type": "string"19388 },19389 "retryable": {19390 "enum": [19391 false19392 ],19393 "type": "boolean"19394 }19395 },19396 "required": [19397 "_tag",19398 "next",19399 "retryable",19400 "decision"19401 ],19402 "type": "object"19403 },19404 "UnknownEnvItemEncoded": {19405 "additionalProperties": true,19406 "properties": {19407 "_tag": {19408 "enum": [19409 "UnknownEnvItem"19410 ],19411 "type": "string"19412 },19413 "at": {19414 "additionalProperties": true,19415 "properties": {19416 "line": {19417 "minimum": 1,19418 "type": "integer"19419 },19420 "path": {19421 "minLength": 1,19422 "type": "string"19423 }19424 },19425 "required": [19426 "line",19427 "path"19428 ],19429 "type": "object"19430 },19431 "key": {19432 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",19433 "type": "string"19434 },19435 "next": {19436 "minLength": 1,19437 "type": "string"19438 },19439 "retryable": {19440 "enum": [19441 false19442 ],19443 "type": "boolean"19444 }19445 },19446 "required": [19447 "_tag",19448 "next",19449 "retryable",19450 "key"19451 ],19452 "type": "object"19453 },19454 "UnknownProjectEncoded": {19455 "additionalProperties": true,19456 "properties": {19457 "_tag": {19458 "enum": [19459 "UnknownProject"19460 ],19461 "type": "string"19462 },19463 "at": {19464 "additionalProperties": true,19465 "properties": {19466 "line": {19467 "minimum": 1,19468 "type": "integer"19469 },19470 "path": {19471 "minLength": 1,19472 "type": "string"19473 }19474 },19475 "required": [19476 "line",19477 "path"19478 ],19479 "type": "object"19480 },19481 "next": {19482 "minLength": 1,19483 "type": "string"19484 },19485 "project": {19486 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",19487 "type": "string"19488 },19489 "retryable": {19490 "enum": [19491 false19492 ],19493 "type": "boolean"19494 }19495 },19496 "required": [19497 "_tag",19498 "next",19499 "retryable",19500 "project"19501 ],19502 "type": "object"19503 },19504 "UnstatedRequirementEncoded": {19505 "additionalProperties": true,19506 "properties": {19507 "_tag": {19508 "enum": [19509 "UnstatedRequirement"19510 ],19511 "type": "string"19512 },19513 "area": {19514 "minLength": 1,19515 "type": "string"19516 },19517 "at": {19518 "additionalProperties": true,19519 "properties": {19520 "line": {19521 "minimum": 1,19522 "type": "integer"19523 },19524 "path": {19525 "minLength": 1,19526 "type": "string"19527 }19528 },19529 "required": [19530 "line",19531 "path"19532 ],19533 "type": "object"19534 },19535 "next": {19536 "minLength": 1,19537 "type": "string"19538 },19539 "retryable": {19540 "enum": [19541 false19542 ],19543 "type": "boolean"19544 }19545 },19546 "required": [19547 "_tag",19548 "next",19549 "retryable",19550 "area"19551 ],19552 "type": "object"19553 },19554 "ValueTooShortEncoded": {19555 "additionalProperties": true,19556 "properties": {19557 "_tag": {19558 "enum": [19559 "ValueTooShort"19560 ],19561 "type": "string"19562 },19563 "at": {19564 "additionalProperties": true,19565 "properties": {19566 "line": {19567 "minimum": 1,19568 "type": "integer"19569 },19570 "path": {19571 "minLength": 1,19572 "type": "string"19573 }19574 },19575 "required": [19576 "line",19577 "path"19578 ],19579 "type": "object"19580 },19581 "key": {19582 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",19583 "type": "string"19584 },19585 "minimum": {19586 "type": "integer"19587 },19588 "next": {19589 "minLength": 1,19590 "type": "string"19591 },19592 "retryable": {19593 "enum": [19594 false19595 ],19596 "type": "boolean"19597 }19598 },19599 "required": [19600 "_tag",19601 "next",19602 "retryable",19603 "key",19604 "minimum"19605 ],19606 "type": "object"19607 },19608 "VerifierBlockedEncoded": {19609 "additionalProperties": true,19610 "properties": {19611 "_tag": {19612 "enum": [19613 "VerifierBlocked"19614 ],19615 "type": "string"19616 },19617 "at": {19618 "additionalProperties": true,19619 "properties": {19620 "line": {19621 "minimum": 1,19622 "type": "integer"19623 },19624 "path": {19625 "minLength": 1,19626 "type": "string"19627 }19628 },19629 "required": [19630 "line",19631 "path"19632 ],19633 "type": "object"19634 },19635 "next": {19636 "minLength": 1,19637 "type": "string"19638 },19639 "retryable": {19640 "enum": [19641 true19642 ],19643 "type": "boolean"19644 }19645 },19646 "required": [19647 "_tag",19648 "next",19649 "retryable"19650 ],19651 "type": "object"19652 },19653 "WeakCheckEncoded": {19654 "additionalProperties": true,19655 "properties": {19656 "_tag": {19657 "enum": [19658 "WeakCheck"19659 ],19660 "type": "string"19661 },19662 "at": {19663 "additionalProperties": true,19664 "properties": {19665 "line": {19666 "minimum": 1,19667 "type": "integer"19668 },19669 "path": {19670 "minLength": 1,19671 "type": "string"19672 }19673 },19674 "required": [19675 "line",19676 "path"19677 ],19678 "type": "object"19679 },19680 "next": {19681 "minLength": 1,19682 "type": "string"19683 },19684 "retryable": {19685 "enum": [19686 false19687 ],19688 "type": "boolean"19689 },19690 "weakness": {19691 "minLength": 1,19692 "type": "string"19693 }19694 },19695 "required": [19696 "_tag",19697 "next",19698 "retryable",19699 "weakness"19700 ],19701 "type": "object"19702 },19703 "WeakenedEncoded": {19704 "additionalProperties": true,19705 "properties": {19706 "_tag": {19707 "enum": [19708 "Weakened"19709 ],19710 "type": "string"19711 },19712 "at": {19713 "additionalProperties": true,19714 "properties": {19715 "line": {19716 "minimum": 1,19717 "type": "integer"19718 },19719 "path": {19720 "minLength": 1,19721 "type": "string"19722 }19723 },19724 "required": [19725 "line",19726 "path"19727 ],19728 "type": "object"19729 },19730 "next": {19731 "minLength": 1,19732 "type": "string"19733 },19734 "retryable": {19735 "enum": [19736 false19737 ],19738 "type": "boolean"19739 },19740 "weakening": {19741 "anyOf": [19742 {19743 "additionalProperties": true,19744 "properties": {19745 "marker": {19746 "minLength": 1,19747 "type": "string"19748 },19749 "reason": {19750 "minLength": 1,19751 "type": "string"19752 }19753 },19754 "required": [19755 "marker"19756 ],19757 "type": "object"19758 },19759 {19760 "additionalProperties": true,19761 "properties": {19762 "after": {19763 "type": "integer"19764 },19765 "before": {19766 "type": "integer"19767 },19768 "ratchet": {19769 "minLength": 1,19770 "type": "string"19771 },19772 "territory": {19773 "minLength": 1,19774 "type": "string"19775 }19776 },19777 "required": [19778 "after",19779 "before",19780 "ratchet",19781 "territory"19782 ],19783 "type": "object"19784 }19785 ]19786 }19787 },19788 "required": [19789 "_tag",19790 "next",19791 "retryable",19792 "weakening"19793 ],19794 "type": "object"19795 }19796 },19797 "additionalProperties": true,19798 "properties": {19799 "ask": {19800 "allOf": [19801 {19802 "not": {19803 "enum": [19804 "me",19805 "layer"19806 ]19807 }19808 }19809 ],19810 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",19811 "type": "string"19812 },19813 "base": {19814 "pattern": "^[0-9a-f]{40}$",19815 "type": "string"19816 },19817 "head": {19818 "pattern": "^[0-9a-f]{40}$",19819 "type": "string"19820 },19821 "outcome": {19822 "anyOf": [19823 {19824 "additionalProperties": true,19825 "properties": {19826 "_tag": {19827 "enum": [19828 "AwaitingDecision"19829 ],19830 "type": "string"19831 },19832 "decision": {19833 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",19834 "type": "string"19835 }19836 },19837 "required": [19838 "_tag",19839 "decision"19840 ],19841 "type": "object"19842 },19843 {19844 "additionalProperties": true,19845 "properties": {19846 "_tag": {19847 "enum": [19848 "AwaitingFinish"19849 ],19850 "type": "string"19851 },19852 "decider": {19853 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",19854 "type": "string"19855 }19856 },19857 "required": [19858 "_tag"19859 ],19860 "type": "object"19861 },19862 {19863 "additionalProperties": true,19864 "properties": {19865 "_tag": {19866 "enum": [19867 "Checking"19868 ],19869 "type": "string"19870 },19871 "stage": {19872 "enum": [19873 "parse",19874 "shape",19875 "merge",19876 "cheap",19877 "checks",19878 "heldBack",19879 "human"19880 ],19881 "type": "string"19882 }19883 },19884 "required": [19885 "_tag",19886 "stage"19887 ],19888 "type": "object"19889 },19890 {19891 "additionalProperties": true,19892 "properties": {19893 "_tag": {19894 "enum": [19895 "Landed"19896 ],19897 "type": "string"19898 },19899 "sha": {19900 "pattern": "^[0-9a-f]{40}$",19901 "type": "string"19902 }19903 },19904 "required": [19905 "_tag",19906 "sha"19907 ],19908 "type": "object"19909 },19910 {19911 "additionalProperties": true,19912 "properties": {19913 "_tag": {19914 "enum": [19915 "Refused"19916 ],19917 "type": "string"19918 },19919 "refusals": {19920 "items": {19921 "anyOf": [19922 {19923 "$ref": "#/$defs/NotClaimedEncoded"19924 },19925 {19926 "$ref": "#/$defs/ClaimLapsedEncoded"19927 },19928 {19929 "$ref": "#/$defs/NotVouchedEncoded"19930 },19931 {19932 "$ref": "#/$defs/CapReachedEncoded"19933 },19934 {19935 "$ref": "#/$defs/AskFullEncoded"19936 },19937 {19938 "$ref": "#/$defs/NoAskEncoded"19939 },19940 {19941 "$ref": "#/$defs/RepoBusyEncoded"19942 },19943 {19944 "$ref": "#/$defs/DirectPushEncoded"19945 },19946 {19947 "$ref": "#/$defs/AskBlockedEncoded"19948 },19949 {19950 "$ref": "#/$defs/DenouncedEncoded"19951 },19952 {19953 "$ref": "#/$defs/OutOfScopeEncoded"19954 },19955 {19956 "$ref": "#/$defs/TouchedJudgeEncoded"19957 },19958 {19959 "$ref": "#/$defs/WeakenedEncoded"19960 },19961 {19962 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"19963 },19964 {19965 "$ref": "#/$defs/ReachedInternalsEncoded"19966 },19967 {19968 "$ref": "#/$defs/StaleBaseEncoded"19969 },19970 {19971 "$ref": "#/$defs/StaleLayerEncoded"19972 },19973 {19974 "$ref": "#/$defs/ChecksFailedEncoded"19975 },19976 {19977 "$ref": "#/$defs/HeldBackFailedEncoded"19978 },19979 {19980 "$ref": "#/$defs/AttemptsExhaustedEncoded"19981 },19982 {19983 "$ref": "#/$defs/FlakeEncoded"19984 },19985 {19986 "$ref": "#/$defs/VerifierBlockedEncoded"19987 },19988 {19989 "$ref": "#/$defs/NotRedFirstEncoded"19990 },19991 {19992 "$ref": "#/$defs/WeakCheckEncoded"19993 },19994 {19995 "$ref": "#/$defs/IncompleteBriefEncoded"19996 },19997 {19998 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"19999 },20000 {20001 "$ref": "#/$defs/SecretInOutputEncoded"20002 },20003 {20004 "$ref": "#/$defs/UnstatedRequirementEncoded"20005 },20006 {20007 "$ref": "#/$defs/PostureChangeEncoded"20008 },20009 {20010 "$ref": "#/$defs/NotDeciderEncoded"20011 },20012 {20013 "$ref": "#/$defs/DecisionClosedEncoded"20014 },20015 {20016 "$ref": "#/$defs/UnknownProjectEncoded"20017 },20018 {20019 "$ref": "#/$defs/UnknownAskEncoded"20020 },20021 {20022 "$ref": "#/$defs/UnknownCommitEncoded"20023 },20024 {20025 "$ref": "#/$defs/UnknownDecisionEncoded"20026 },20027 {20028 "$ref": "#/$defs/ProjectExistsEncoded"20029 },20030 {20031 "$ref": "#/$defs/ImportFailedEncoded"20032 },20033 {20034 "$ref": "#/$defs/UnknownEnvItemEncoded"20035 },20036 {20037 "$ref": "#/$defs/NotSensitiveEncoded"20038 },20039 {20040 "$ref": "#/$defs/ValueTooShortEncoded"20041 }20042 ]20043 },20044 "minItems": 1,20045 "prefixItems": [20046 {20047 "anyOf": [20048 {20049 "$ref": "#/$defs/NotClaimedEncoded"20050 },20051 {20052 "$ref": "#/$defs/ClaimLapsedEncoded"20053 },20054 {20055 "$ref": "#/$defs/NotVouchedEncoded"20056 },20057 {20058 "$ref": "#/$defs/CapReachedEncoded"20059 },20060 {20061 "$ref": "#/$defs/AskFullEncoded"20062 },20063 {20064 "$ref": "#/$defs/NoAskEncoded"20065 },20066 {20067 "$ref": "#/$defs/RepoBusyEncoded"20068 },20069 {20070 "$ref": "#/$defs/DirectPushEncoded"20071 },20072 {20073 "$ref": "#/$defs/AskBlockedEncoded"20074 },20075 {20076 "$ref": "#/$defs/DenouncedEncoded"20077 },20078 {20079 "$ref": "#/$defs/OutOfScopeEncoded"20080 },20081 {20082 "$ref": "#/$defs/TouchedJudgeEncoded"20083 },20084 {20085 "$ref": "#/$defs/WeakenedEncoded"20086 },20087 {20088 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"20089 },20090 {20091 "$ref": "#/$defs/ReachedInternalsEncoded"20092 },20093 {20094 "$ref": "#/$defs/StaleBaseEncoded"20095 },20096 {20097 "$ref": "#/$defs/StaleLayerEncoded"20098 },20099 {20100 "$ref": "#/$defs/ChecksFailedEncoded"20101 },20102 {20103 "$ref": "#/$defs/HeldBackFailedEncoded"20104 },20105 {20106 "$ref": "#/$defs/AttemptsExhaustedEncoded"20107 },20108 {20109 "$ref": "#/$defs/FlakeEncoded"20110 },20111 {20112 "$ref": "#/$defs/VerifierBlockedEncoded"20113 },20114 {20115 "$ref": "#/$defs/NotRedFirstEncoded"20116 },20117 {20118 "$ref": "#/$defs/WeakCheckEncoded"20119 },20120 {20121 "$ref": "#/$defs/IncompleteBriefEncoded"20122 },20123 {20124 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"20125 },20126 {20127 "$ref": "#/$defs/SecretInOutputEncoded"20128 },20129 {20130 "$ref": "#/$defs/UnstatedRequirementEncoded"20131 },20132 {20133 "$ref": "#/$defs/PostureChangeEncoded"20134 },20135 {20136 "$ref": "#/$defs/NotDeciderEncoded"20137 },20138 {20139 "$ref": "#/$defs/DecisionClosedEncoded"20140 },20141 {20142 "$ref": "#/$defs/UnknownProjectEncoded"20143 },20144 {20145 "$ref": "#/$defs/UnknownAskEncoded"20146 },20147 {20148 "$ref": "#/$defs/UnknownCommitEncoded"20149 },20150 {20151 "$ref": "#/$defs/UnknownDecisionEncoded"20152 },20153 {20154 "$ref": "#/$defs/ProjectExistsEncoded"20155 },20156 {20157 "$ref": "#/$defs/ImportFailedEncoded"20158 },20159 {20160 "$ref": "#/$defs/UnknownEnvItemEncoded"20161 },20162 {20163 "$ref": "#/$defs/NotSensitiveEncoded"20164 },20165 {20166 "$ref": "#/$defs/ValueTooShortEncoded"20167 }20168 ]20169 }20170 ],20171 "type": "array"20172 }20173 },20174 "required": [20175 "_tag",20176 "refusals"20177 ],20178 "type": "object"20179 },20180 {20181 "additionalProperties": true,20182 "properties": {20183 "_tag": {20184 "enum": [20185 "WaitingOnParent"20186 ],20187 "type": "string"20188 },20189 "ask": {20190 "allOf": [20191 {20192 "not": {20193 "enum": [20194 "me",20195 "layer"20196 ]20197 }20198 }20199 ],20200 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20201 "type": "string"20202 }20203 },20204 "required": [20205 "_tag",20206 "ask"20207 ],20208 "type": "object"20209 }20210 ]20211 },20212 "project": {20213 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20214 "type": "string"20215 },20216 "requestId": {20217 "pattern": "^[A-Za-z0-9_-]{8,64}$",20218 "type": "string"20219 }20220 },20221 "required": [20222 "ask",20223 "base",20224 "head",20225 "outcome",20226 "project",20227 "requestId"20228 ],20229 "type": "object"20230}20231```2023220233## land2023420235Land a decider's own change from their working fork, after the same checks an answer passes. Asks a person first.2023620237| Hint | Value |20238| --- | --- |20239| `destructiveHint` | `false` |20240| `idempotentHint` | `true` |20241| `openWorldHint` | `false` |20242| `readOnlyHint` | `false` |2024320244### Input2024520246```json20247{20248 "additionalProperties": true,20249 "properties": {20250 "base": {20251 "pattern": "^[0-9a-f]{40}$",20252 "type": "string"20253 },20254 "head": {20255 "pattern": "^[0-9a-f]{40}$",20256 "type": "string"20257 },20258 "message": {20259 "minLength": 1,20260 "type": "string"20261 },20262 "project": {20263 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20264 "type": "string"20265 },20266 "requestId": {20267 "pattern": "^[A-Za-z0-9_-]{8,64}$",20268 "type": "string"20269 }20270 },20271 "required": [20272 "base",20273 "head",20274 "message",20275 "project",20276 "requestId"20277 ],20278 "type": "object"20279}20280```2028120282### Output2028320284```json20285{20286 "$defs": {20287 "AskBlockedEncoded": {20288 "additionalProperties": true,20289 "properties": {20290 "_tag": {20291 "enum": [20292 "AskBlocked"20293 ],20294 "type": "string"20295 },20296 "ask": {20297 "allOf": [20298 {20299 "not": {20300 "enum": [20301 "me",20302 "layer"20303 ]20304 }20305 }20306 ],20307 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20308 "type": "string"20309 },20310 "at": {20311 "additionalProperties": true,20312 "properties": {20313 "line": {20314 "minimum": 1,20315 "type": "integer"20316 },20317 "path": {20318 "minLength": 1,20319 "type": "string"20320 }20321 },20322 "required": [20323 "line",20324 "path"20325 ],20326 "type": "object"20327 },20328 "blockedBy": {20329 "items": {20330 "allOf": [20331 {20332 "not": {20333 "enum": [20334 "me",20335 "layer"20336 ]20337 }20338 }20339 ],20340 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20341 "type": "string"20342 },20343 "minItems": 1,20344 "prefixItems": [20345 {20346 "allOf": [20347 {20348 "not": {20349 "enum": [20350 "me",20351 "layer"20352 ]20353 }20354 }20355 ],20356 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20357 "type": "string"20358 }20359 ],20360 "type": "array"20361 },20362 "next": {20363 "minLength": 1,20364 "type": "string"20365 },20366 "retryable": {20367 "enum": [20368 true20369 ],20370 "type": "boolean"20371 }20372 },20373 "required": [20374 "_tag",20375 "next",20376 "retryable",20377 "ask",20378 "blockedBy"20379 ],20380 "type": "object"20381 },20382 "AskFullEncoded": {20383 "additionalProperties": true,20384 "properties": {20385 "_tag": {20386 "enum": [20387 "AskFull"20388 ],20389 "type": "string"20390 },20391 "ask": {20392 "allOf": [20393 {20394 "not": {20395 "enum": [20396 "me",20397 "layer"20398 ]20399 }20400 }20401 ],20402 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20403 "type": "string"20404 },20405 "at": {20406 "additionalProperties": true,20407 "properties": {20408 "line": {20409 "minimum": 1,20410 "type": "integer"20411 },20412 "path": {20413 "minLength": 1,20414 "type": "string"20415 }20416 },20417 "required": [20418 "line",20419 "path"20420 ],20421 "type": "object"20422 },20423 "next": {20424 "minLength": 1,20425 "type": "string"20426 },20427 "retryable": {20428 "enum": [20429 true20430 ],20431 "type": "boolean"20432 }20433 },20434 "required": [20435 "_tag",20436 "next",20437 "retryable",20438 "ask"20439 ],20440 "type": "object"20441 },20442 "AttemptsExhaustedEncoded": {20443 "additionalProperties": true,20444 "properties": {20445 "_tag": {20446 "enum": [20447 "AttemptsExhausted"20448 ],20449 "type": "string"20450 },20451 "area": {20452 "minLength": 1,20453 "type": "string"20454 },20455 "at": {20456 "additionalProperties": true,20457 "properties": {20458 "line": {20459 "minimum": 1,20460 "type": "integer"20461 },20462 "path": {20463 "minLength": 1,20464 "type": "string"20465 }20466 },20467 "required": [20468 "line",20469 "path"20470 ],20471 "type": "object"20472 },20473 "next": {20474 "minLength": 1,20475 "type": "string"20476 },20477 "resetsAt": {20478 "type": "string"20479 },20480 "retryable": {20481 "enum": [20482 true20483 ],20484 "type": "boolean"20485 }20486 },20487 "required": [20488 "_tag",20489 "next",20490 "retryable",20491 "area",20492 "resetsAt"20493 ],20494 "type": "object"20495 },20496 "CapReachedEncoded": {20497 "additionalProperties": true,20498 "properties": {20499 "_tag": {20500 "enum": [20501 "CapReached"20502 ],20503 "type": "string"20504 },20505 "at": {20506 "additionalProperties": true,20507 "properties": {20508 "line": {20509 "minimum": 1,20510 "type": "integer"20511 },20512 "path": {20513 "minLength": 1,20514 "type": "string"20515 }20516 },20517 "required": [20518 "line",20519 "path"20520 ],20521 "type": "object"20522 },20523 "cap": {20524 "type": "integer"20525 },20526 "next": {20527 "minLength": 1,20528 "type": "string"20529 },20530 "retryable": {20531 "enum": [20532 true20533 ],20534 "type": "boolean"20535 }20536 },20537 "required": [20538 "_tag",20539 "next",20540 "retryable",20541 "cap"20542 ],20543 "type": "object"20544 },20545 "ChecksFailedEncoded": {20546 "additionalProperties": true,20547 "properties": {20548 "_tag": {20549 "enum": [20550 "ChecksFailed"20551 ],20552 "type": "string"20553 },20554 "at": {20555 "additionalProperties": true,20556 "properties": {20557 "line": {20558 "minimum": 1,20559 "type": "integer"20560 },20561 "path": {20562 "minLength": 1,20563 "type": "string"20564 }20565 },20566 "required": [20567 "line",20568 "path"20569 ],20570 "type": "object"20571 },20572 "lane": {20573 "minLength": 1,20574 "type": "string"20575 },20576 "logRef": {20577 "minLength": 1,20578 "type": "string"20579 },20580 "next": {20581 "minLength": 1,20582 "type": "string"20583 },20584 "retryable": {20585 "enum": [20586 false20587 ],20588 "type": "boolean"20589 }20590 },20591 "required": [20592 "_tag",20593 "next",20594 "retryable",20595 "lane",20596 "logRef"20597 ],20598 "type": "object"20599 },20600 "ClaimLapsedEncoded": {20601 "additionalProperties": true,20602 "properties": {20603 "_tag": {20604 "enum": [20605 "ClaimLapsed"20606 ],20607 "type": "string"20608 },20609 "ask": {20610 "allOf": [20611 {20612 "not": {20613 "enum": [20614 "me",20615 "layer"20616 ]20617 }20618 }20619 ],20620 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",20621 "type": "string"20622 },20623 "at": {20624 "additionalProperties": true,20625 "properties": {20626 "line": {20627 "minimum": 1,20628 "type": "integer"20629 },20630 "path": {20631 "minLength": 1,20632 "type": "string"20633 }20634 },20635 "required": [20636 "line",20637 "path"20638 ],20639 "type": "object"20640 },20641 "next": {20642 "minLength": 1,20643 "type": "string"20644 },20645 "retryable": {20646 "enum": [20647 true20648 ],20649 "type": "boolean"20650 }20651 },20652 "required": [20653 "_tag",20654 "next",20655 "retryable",20656 "ask"20657 ],20658 "type": "object"20659 },20660 "DecisionClosedEncoded": {20661 "additionalProperties": true,20662 "properties": {20663 "_tag": {20664 "enum": [20665 "DecisionClosed"20666 ],20667 "type": "string"20668 },20669 "at": {20670 "additionalProperties": true,20671 "properties": {20672 "line": {20673 "minimum": 1,20674 "type": "integer"20675 },20676 "path": {20677 "minLength": 1,20678 "type": "string"20679 }20680 },20681 "required": [20682 "line",20683 "path"20684 ],20685 "type": "object"20686 },20687 "decision": {20688 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",20689 "type": "string"20690 },20691 "next": {20692 "minLength": 1,20693 "type": "string"20694 },20695 "retryable": {20696 "enum": [20697 false20698 ],20699 "type": "boolean"20700 }20701 },20702 "required": [20703 "_tag",20704 "next",20705 "retryable",20706 "decision"20707 ],20708 "type": "object"20709 },20710 "DenouncedEncoded": {20711 "additionalProperties": true,20712 "properties": {20713 "_tag": {20714 "enum": [20715 "Denounced"20716 ],20717 "type": "string"20718 },20719 "at": {20720 "additionalProperties": true,20721 "properties": {20722 "line": {20723 "minimum": 1,20724 "type": "integer"20725 },20726 "path": {20727 "minLength": 1,20728 "type": "string"20729 }20730 },20731 "required": [20732 "line",20733 "path"20734 ],20735 "type": "object"20736 },20737 "next": {20738 "minLength": 1,20739 "type": "string"20740 },20741 "retryable": {20742 "enum": [20743 false20744 ],20745 "type": "boolean"20746 }20747 },20748 "required": [20749 "_tag",20750 "next",20751 "retryable"20752 ],20753 "type": "object"20754 },20755 "DirectPushEncoded": {20756 "additionalProperties": true,20757 "properties": {20758 "_tag": {20759 "enum": [20760 "DirectPush"20761 ],20762 "type": "string"20763 },20764 "at": {20765 "additionalProperties": true,20766 "properties": {20767 "line": {20768 "minimum": 1,20769 "type": "integer"20770 },20771 "path": {20772 "minLength": 1,20773 "type": "string"20774 }20775 },20776 "required": [20777 "line",20778 "path"20779 ],20780 "type": "object"20781 },20782 "next": {20783 "minLength": 1,20784 "type": "string"20785 },20786 "ref": {20787 "minLength": 1,20788 "type": "string"20789 },20790 "retryable": {20791 "enum": [20792 false20793 ],20794 "type": "boolean"20795 }20796 },20797 "required": [20798 "_tag",20799 "next",20800 "retryable",20801 "ref"20802 ],20803 "type": "object"20804 },20805 "FlakeEncoded": {20806 "additionalProperties": true,20807 "properties": {20808 "_tag": {20809 "enum": [20810 "Flake"20811 ],20812 "type": "string"20813 },20814 "at": {20815 "additionalProperties": true,20816 "properties": {20817 "line": {20818 "minimum": 1,20819 "type": "integer"20820 },20821 "path": {20822 "minLength": 1,20823 "type": "string"20824 }20825 },20826 "required": [20827 "line",20828 "path"20829 ],20830 "type": "object"20831 },20832 "lane": {20833 "minLength": 1,20834 "type": "string"20835 },20836 "next": {20837 "minLength": 1,20838 "type": "string"20839 },20840 "retryable": {20841 "enum": [20842 true20843 ],20844 "type": "boolean"20845 }20846 },20847 "required": [20848 "_tag",20849 "next",20850 "retryable",20851 "lane"20852 ],20853 "type": "object"20854 },20855 "HeldBackFailedEncoded": {20856 "additionalProperties": true,20857 "properties": {20858 "_tag": {20859 "enum": [20860 "HeldBackFailed"20861 ],20862 "type": "string"20863 },20864 "area": {20865 "minLength": 1,20866 "type": "string"20867 },20868 "at": {20869 "additionalProperties": true,20870 "properties": {20871 "line": {20872 "minimum": 1,20873 "type": "integer"20874 },20875 "path": {20876 "minLength": 1,20877 "type": "string"20878 }20879 },20880 "required": [20881 "line",20882 "path"20883 ],20884 "type": "object"20885 },20886 "next": {20887 "minLength": 1,20888 "type": "string"20889 },20890 "retryable": {20891 "enum": [20892 false20893 ],20894 "type": "boolean"20895 },20896 "suite": {20897 "minLength": 1,20898 "type": "string"20899 }20900 },20901 "required": [20902 "_tag",20903 "next",20904 "retryable",20905 "area",20906 "suite"20907 ],20908 "type": "object"20909 },20910 "ImportFailedEncoded": {20911 "additionalProperties": true,20912 "properties": {20913 "_tag": {20914 "enum": [20915 "ImportFailed"20916 ],20917 "type": "string"20918 },20919 "at": {20920 "additionalProperties": true,20921 "properties": {20922 "line": {20923 "minimum": 1,20924 "type": "integer"20925 },20926 "path": {20927 "minLength": 1,20928 "type": "string"20929 }20930 },20931 "required": [20932 "line",20933 "path"20934 ],20935 "type": "object"20936 },20937 "next": {20938 "minLength": 1,20939 "type": "string"20940 },20941 "reason": {20942 "minLength": 1,20943 "type": "string"20944 },20945 "retryable": {20946 "enum": [20947 true20948 ],20949 "type": "boolean"20950 }20951 },20952 "required": [20953 "_tag",20954 "next",20955 "retryable",20956 "reason"20957 ],20958 "type": "object"20959 },20960 "IncompleteBriefEncoded": {20961 "additionalProperties": true,20962 "properties": {20963 "_tag": {20964 "enum": [20965 "IncompleteBrief"20966 ],20967 "type": "string"20968 },20969 "at": {20970 "additionalProperties": true,20971 "properties": {20972 "line": {20973 "minimum": 1,20974 "type": "integer"20975 },20976 "path": {20977 "minLength": 1,20978 "type": "string"20979 }20980 },20981 "required": [20982 "line",20983 "path"20984 ],20985 "type": "object"20986 },20987 "missing": {20988 "items": {20989 "minLength": 1,20990 "type": "string"20991 },20992 "minItems": 1,20993 "prefixItems": [20994 {20995 "minLength": 1,20996 "type": "string"20997 }20998 ],20999 "type": "array"21000 },21001 "next": {21002 "minLength": 1,21003 "type": "string"21004 },21005 "retryable": {21006 "enum": [21007 false21008 ],21009 "type": "boolean"21010 }21011 },21012 "required": [21013 "_tag",21014 "next",21015 "retryable",21016 "missing"21017 ],21018 "type": "object"21019 },21020 "LayerContentInPublicTreeEncoded": {21021 "additionalProperties": true,21022 "properties": {21023 "_tag": {21024 "enum": [21025 "LayerContentInPublicTree"21026 ],21027 "type": "string"21028 },21029 "at": {21030 "additionalProperties": true,21031 "properties": {21032 "line": {21033 "minimum": 1,21034 "type": "integer"21035 },21036 "path": {21037 "minLength": 1,21038 "type": "string"21039 }21040 },21041 "required": [21042 "line",21043 "path"21044 ],21045 "type": "object"21046 },21047 "next": {21048 "minLength": 1,21049 "type": "string"21050 },21051 "paths": {21052 "items": {21053 "minLength": 1,21054 "type": "string"21055 },21056 "minItems": 1,21057 "prefixItems": [21058 {21059 "minLength": 1,21060 "type": "string"21061 }21062 ],21063 "type": "array"21064 },21065 "retryable": {21066 "enum": [21067 false21068 ],21069 "type": "boolean"21070 }21071 },21072 "required": [21073 "_tag",21074 "next",21075 "retryable",21076 "paths"21077 ],21078 "type": "object"21079 },21080 "NoAskEncoded": {21081 "additionalProperties": true,21082 "properties": {21083 "_tag": {21084 "enum": [21085 "NoAsk"21086 ],21087 "type": "string"21088 },21089 "at": {21090 "additionalProperties": true,21091 "properties": {21092 "line": {21093 "minimum": 1,21094 "type": "integer"21095 },21096 "path": {21097 "minLength": 1,21098 "type": "string"21099 }21100 },21101 "required": [21102 "line",21103 "path"21104 ],21105 "type": "object"21106 },21107 "next": {21108 "minLength": 1,21109 "type": "string"21110 },21111 "retryable": {21112 "enum": [21113 false21114 ],21115 "type": "boolean"21116 }21117 },21118 "required": [21119 "_tag",21120 "next",21121 "retryable"21122 ],21123 "type": "object"21124 },21125 "NotClaimedEncoded": {21126 "additionalProperties": true,21127 "properties": {21128 "_tag": {21129 "enum": [21130 "NotClaimed"21131 ],21132 "type": "string"21133 },21134 "ask": {21135 "allOf": [21136 {21137 "not": {21138 "enum": [21139 "me",21140 "layer"21141 ]21142 }21143 }21144 ],21145 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",21146 "type": "string"21147 },21148 "at": {21149 "additionalProperties": true,21150 "properties": {21151 "line": {21152 "minimum": 1,21153 "type": "integer"21154 },21155 "path": {21156 "minLength": 1,21157 "type": "string"21158 }21159 },21160 "required": [21161 "line",21162 "path"21163 ],21164 "type": "object"21165 },21166 "next": {21167 "minLength": 1,21168 "type": "string"21169 },21170 "retryable": {21171 "enum": [21172 true21173 ],21174 "type": "boolean"21175 }21176 },21177 "required": [21178 "_tag",21179 "next",21180 "retryable",21181 "ask"21182 ],21183 "type": "object"21184 },21185 "NotDeciderEncoded": {21186 "additionalProperties": true,21187 "properties": {21188 "_tag": {21189 "enum": [21190 "NotDecider"21191 ],21192 "type": "string"21193 },21194 "at": {21195 "additionalProperties": true,21196 "properties": {21197 "line": {21198 "minimum": 1,21199 "type": "integer"21200 },21201 "path": {21202 "minLength": 1,21203 "type": "string"21204 }21205 },21206 "required": [21207 "line",21208 "path"21209 ],21210 "type": "object"21211 },21212 "next": {21213 "minLength": 1,21214 "type": "string"21215 },21216 "retryable": {21217 "enum": [21218 false21219 ],21220 "type": "boolean"21221 }21222 },21223 "required": [21224 "_tag",21225 "next",21226 "retryable"21227 ],21228 "type": "object"21229 },21230 "NotRedFirstEncoded": {21231 "additionalProperties": true,21232 "properties": {21233 "_tag": {21234 "enum": [21235 "NotRedFirst"21236 ],21237 "type": "string"21238 },21239 "at": {21240 "additionalProperties": true,21241 "properties": {21242 "line": {21243 "minimum": 1,21244 "type": "integer"21245 },21246 "path": {21247 "minLength": 1,21248 "type": "string"21249 }21250 },21251 "required": [21252 "line",21253 "path"21254 ],21255 "type": "object"21256 },21257 "next": {21258 "minLength": 1,21259 "type": "string"21260 },21261 "retryable": {21262 "enum": [21263 false21264 ],21265 "type": "boolean"21266 }21267 },21268 "required": [21269 "_tag",21270 "next",21271 "retryable"21272 ],21273 "type": "object"21274 },21275 "NotSensitiveEncoded": {21276 "additionalProperties": true,21277 "properties": {21278 "_tag": {21279 "enum": [21280 "NotSensitive"21281 ],21282 "type": "string"21283 },21284 "at": {21285 "additionalProperties": true,21286 "properties": {21287 "line": {21288 "minimum": 1,21289 "type": "integer"21290 },21291 "path": {21292 "minLength": 1,21293 "type": "string"21294 }21295 },21296 "required": [21297 "line",21298 "path"21299 ],21300 "type": "object"21301 },21302 "key": {21303 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",21304 "type": "string"21305 },21306 "next": {21307 "minLength": 1,21308 "type": "string"21309 },21310 "retryable": {21311 "enum": [21312 false21313 ],21314 "type": "boolean"21315 }21316 },21317 "required": [21318 "_tag",21319 "next",21320 "retryable",21321 "key"21322 ],21323 "type": "object"21324 },21325 "NotVouchedEncoded": {21326 "additionalProperties": true,21327 "properties": {21328 "_tag": {21329 "enum": [21330 "NotVouched"21331 ],21332 "type": "string"21333 },21334 "at": {21335 "additionalProperties": true,21336 "properties": {21337 "line": {21338 "minimum": 1,21339 "type": "integer"21340 },21341 "path": {21342 "minLength": 1,21343 "type": "string"21344 }21345 },21346 "required": [21347 "line",21348 "path"21349 ],21350 "type": "object"21351 },21352 "next": {21353 "minLength": 1,21354 "type": "string"21355 },21356 "retryable": {21357 "enum": [21358 false21359 ],21360 "type": "boolean"21361 }21362 },21363 "required": [21364 "_tag",21365 "next",21366 "retryable"21367 ],21368 "type": "object"21369 },21370 "OutOfScopeEncoded": {21371 "additionalProperties": true,21372 "properties": {21373 "_tag": {21374 "enum": [21375 "OutOfScope"21376 ],21377 "type": "string"21378 },21379 "at": {21380 "additionalProperties": true,21381 "properties": {21382 "line": {21383 "minimum": 1,21384 "type": "integer"21385 },21386 "path": {21387 "minLength": 1,21388 "type": "string"21389 }21390 },21391 "required": [21392 "line",21393 "path"21394 ],21395 "type": "object"21396 },21397 "next": {21398 "minLength": 1,21399 "type": "string"21400 },21401 "paths": {21402 "items": {21403 "minLength": 1,21404 "type": "string"21405 },21406 "minItems": 1,21407 "prefixItems": [21408 {21409 "minLength": 1,21410 "type": "string"21411 }21412 ],21413 "type": "array"21414 },21415 "retryable": {21416 "enum": [21417 false21418 ],21419 "type": "boolean"21420 }21421 },21422 "required": [21423 "_tag",21424 "next",21425 "retryable",21426 "paths"21427 ],21428 "type": "object"21429 },21430 "PostureChangeEncoded": {21431 "additionalProperties": true,21432 "properties": {21433 "_tag": {21434 "enum": [21435 "PostureChange"21436 ],21437 "type": "string"21438 },21439 "at": {21440 "additionalProperties": true,21441 "properties": {21442 "line": {21443 "minimum": 1,21444 "type": "integer"21445 },21446 "path": {21447 "minLength": 1,21448 "type": "string"21449 }21450 },21451 "required": [21452 "line",21453 "path"21454 ],21455 "type": "object"21456 },21457 "from": {21458 "enum": [21459 "open",21460 "openWithSealedEvidence",21461 "openOnSchedule",21462 "openCore",21463 "sourceAvailable"21464 ],21465 "type": "string"21466 },21467 "next": {21468 "minLength": 1,21469 "type": "string"21470 },21471 "retryable": {21472 "enum": [21473 false21474 ],21475 "type": "boolean"21476 },21477 "to": {21478 "enum": [21479 "open",21480 "openWithSealedEvidence",21481 "openOnSchedule",21482 "openCore",21483 "sourceAvailable"21484 ],21485 "type": "string"21486 }21487 },21488 "required": [21489 "_tag",21490 "next",21491 "retryable",21492 "from",21493 "to"21494 ],21495 "type": "object"21496 },21497 "PrivatePathInPublicTreeEncoded": {21498 "additionalProperties": true,21499 "properties": {21500 "_tag": {21501 "enum": [21502 "PrivatePathInPublicTree"21503 ],21504 "type": "string"21505 },21506 "at": {21507 "additionalProperties": true,21508 "properties": {21509 "line": {21510 "minimum": 1,21511 "type": "integer"21512 },21513 "path": {21514 "minLength": 1,21515 "type": "string"21516 }21517 },21518 "required": [21519 "line",21520 "path"21521 ],21522 "type": "object"21523 },21524 "next": {21525 "minLength": 1,21526 "type": "string"21527 },21528 "paths": {21529 "items": {21530 "minLength": 1,21531 "type": "string"21532 },21533 "minItems": 1,21534 "prefixItems": [21535 {21536 "minLength": 1,21537 "type": "string"21538 }21539 ],21540 "type": "array"21541 },21542 "retryable": {21543 "enum": [21544 false21545 ],21546 "type": "boolean"21547 }21548 },21549 "required": [21550 "_tag",21551 "next",21552 "retryable",21553 "paths"21554 ],21555 "type": "object"21556 },21557 "ProjectExistsEncoded": {21558 "additionalProperties": true,21559 "properties": {21560 "_tag": {21561 "enum": [21562 "ProjectExists"21563 ],21564 "type": "string"21565 },21566 "at": {21567 "additionalProperties": true,21568 "properties": {21569 "line": {21570 "minimum": 1,21571 "type": "integer"21572 },21573 "path": {21574 "minLength": 1,21575 "type": "string"21576 }21577 },21578 "required": [21579 "line",21580 "path"21581 ],21582 "type": "object"21583 },21584 "next": {21585 "minLength": 1,21586 "type": "string"21587 },21588 "project": {21589 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",21590 "type": "string"21591 },21592 "retryable": {21593 "enum": [21594 false21595 ],21596 "type": "boolean"21597 }21598 },21599 "required": [21600 "_tag",21601 "next",21602 "retryable",21603 "project"21604 ],21605 "type": "object"21606 },21607 "ReachedInternalsEncoded": {21608 "additionalProperties": true,21609 "properties": {21610 "_tag": {21611 "enum": [21612 "ReachedInternals"21613 ],21614 "type": "string"21615 },21616 "at": {21617 "additionalProperties": true,21618 "properties": {21619 "line": {21620 "minimum": 1,21621 "type": "integer"21622 },21623 "path": {21624 "minLength": 1,21625 "type": "string"21626 }21627 },21628 "required": [21629 "line",21630 "path"21631 ],21632 "type": "object"21633 },21634 "from": {21635 "minLength": 1,21636 "type": "string"21637 },21638 "next": {21639 "minLength": 1,21640 "type": "string"21641 },21642 "retryable": {21643 "enum": [21644 false21645 ],21646 "type": "boolean"21647 },21648 "to": {21649 "minLength": 1,21650 "type": "string"21651 }21652 },21653 "required": [21654 "_tag",21655 "next",21656 "retryable",21657 "from",21658 "to"21659 ],21660 "type": "object"21661 },21662 "RepoBusyEncoded": {21663 "additionalProperties": true,21664 "properties": {21665 "_tag": {21666 "enum": [21667 "RepoBusy"21668 ],21669 "type": "string"21670 },21671 "at": {21672 "additionalProperties": true,21673 "properties": {21674 "line": {21675 "minimum": 1,21676 "type": "integer"21677 },21678 "path": {21679 "minLength": 1,21680 "type": "string"21681 }21682 },21683 "required": [21684 "line",21685 "path"21686 ],21687 "type": "object"21688 },21689 "next": {21690 "minLength": 1,21691 "type": "string"21692 },21693 "retryable": {21694 "enum": [21695 true21696 ],21697 "type": "boolean"21698 }21699 },21700 "required": [21701 "_tag",21702 "next",21703 "retryable"21704 ],21705 "type": "object"21706 },21707 "SecretInOutputEncoded": {21708 "additionalProperties": true,21709 "properties": {21710 "_tag": {21711 "enum": [21712 "SecretInOutput"21713 ],21714 "type": "string"21715 },21716 "at": {21717 "additionalProperties": true,21718 "properties": {21719 "line": {21720 "minimum": 1,21721 "type": "integer"21722 },21723 "path": {21724 "minLength": 1,21725 "type": "string"21726 }21727 },21728 "required": [21729 "line",21730 "path"21731 ],21732 "type": "object"21733 },21734 "item": {21735 "minLength": 1,21736 "type": "string"21737 },21738 "next": {21739 "minLength": 1,21740 "type": "string"21741 },21742 "retryable": {21743 "enum": [21744 false21745 ],21746 "type": "boolean"21747 },21748 "where": {21749 "enum": [21750 "output",21751 "tree"21752 ],21753 "type": "string"21754 }21755 },21756 "required": [21757 "_tag",21758 "next",21759 "retryable",21760 "item",21761 "where"21762 ],21763 "type": "object"21764 },21765 "StaleBaseEncoded": {21766 "additionalProperties": true,21767 "properties": {21768 "_tag": {21769 "enum": [21770 "StaleBase"21771 ],21772 "type": "string"21773 },21774 "at": {21775 "additionalProperties": true,21776 "properties": {21777 "line": {21778 "minimum": 1,21779 "type": "integer"21780 },21781 "path": {21782 "minLength": 1,21783 "type": "string"21784 }21785 },21786 "required": [21787 "line",21788 "path"21789 ],21790 "type": "object"21791 },21792 "base": {21793 "pattern": "^[0-9a-f]{40}$",21794 "type": "string"21795 },21796 "conflicts": {21797 "items": {21798 "minLength": 1,21799 "type": "string"21800 },21801 "type": "array"21802 },21803 "main": {21804 "pattern": "^[0-9a-f]{40}$",21805 "type": "string"21806 },21807 "next": {21808 "minLength": 1,21809 "type": "string"21810 },21811 "retryable": {21812 "enum": [21813 true21814 ],21815 "type": "boolean"21816 }21817 },21818 "required": [21819 "_tag",21820 "next",21821 "retryable",21822 "base",21823 "conflicts",21824 "main"21825 ],21826 "type": "object"21827 },21828 "StaleLayerEncoded": {21829 "additionalProperties": true,21830 "properties": {21831 "_tag": {21832 "enum": [21833 "StaleLayer"21834 ],21835 "type": "string"21836 },21837 "at": {21838 "additionalProperties": true,21839 "properties": {21840 "line": {21841 "minimum": 1,21842 "type": "integer"21843 },21844 "path": {21845 "minLength": 1,21846 "type": "string"21847 }21848 },21849 "required": [21850 "line",21851 "path"21852 ],21853 "type": "object"21854 },21855 "layer": {21856 "minLength": 1,21857 "type": "string"21858 },21859 "next": {21860 "minLength": 1,21861 "type": "string"21862 },21863 "retryable": {21864 "enum": [21865 true21866 ],21867 "type": "boolean"21868 }21869 },21870 "required": [21871 "_tag",21872 "next",21873 "retryable",21874 "layer"21875 ],21876 "type": "object"21877 },21878 "TouchedJudgeEncoded": {21879 "additionalProperties": true,21880 "properties": {21881 "_tag": {21882 "enum": [21883 "TouchedJudge"21884 ],21885 "type": "string"21886 },21887 "at": {21888 "additionalProperties": true,21889 "properties": {21890 "line": {21891 "minimum": 1,21892 "type": "integer"21893 },21894 "path": {21895 "minLength": 1,21896 "type": "string"21897 }21898 },21899 "required": [21900 "line",21901 "path"21902 ],21903 "type": "object"21904 },21905 "next": {21906 "minLength": 1,21907 "type": "string"21908 },21909 "paths": {21910 "items": {21911 "minLength": 1,21912 "type": "string"21913 },21914 "minItems": 1,21915 "prefixItems": [21916 {21917 "minLength": 1,21918 "type": "string"21919 }21920 ],21921 "type": "array"21922 },21923 "retryable": {21924 "enum": [21925 false21926 ],21927 "type": "boolean"21928 }21929 },21930 "required": [21931 "_tag",21932 "next",21933 "retryable",21934 "paths"21935 ],21936 "type": "object"21937 },21938 "UnknownAskEncoded": {21939 "additionalProperties": true,21940 "properties": {21941 "_tag": {21942 "enum": [21943 "UnknownAsk"21944 ],21945 "type": "string"21946 },21947 "ask": {21948 "allOf": [21949 {21950 "not": {21951 "enum": [21952 "me",21953 "layer"21954 ]21955 }21956 }21957 ],21958 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",21959 "type": "string"21960 },21961 "at": {21962 "additionalProperties": true,21963 "properties": {21964 "line": {21965 "minimum": 1,21966 "type": "integer"21967 },21968 "path": {21969 "minLength": 1,21970 "type": "string"21971 }21972 },21973 "required": [21974 "line",21975 "path"21976 ],21977 "type": "object"21978 },21979 "next": {21980 "minLength": 1,21981 "type": "string"21982 },21983 "retryable": {21984 "enum": [21985 false21986 ],21987 "type": "boolean"21988 }21989 },21990 "required": [21991 "_tag",21992 "next",21993 "retryable",21994 "ask"21995 ],21996 "type": "object"21997 },21998 "UnknownCommitEncoded": {21999 "additionalProperties": true,22000 "properties": {22001 "_tag": {22002 "enum": [22003 "UnknownCommit"22004 ],22005 "type": "string"22006 },22007 "at": {22008 "additionalProperties": true,22009 "properties": {22010 "line": {22011 "minimum": 1,22012 "type": "integer"22013 },22014 "path": {22015 "minLength": 1,22016 "type": "string"22017 }22018 },22019 "required": [22020 "line",22021 "path"22022 ],22023 "type": "object"22024 },22025 "next": {22026 "minLength": 1,22027 "type": "string"22028 },22029 "retryable": {22030 "enum": [22031 false22032 ],22033 "type": "boolean"22034 },22035 "sha": {22036 "pattern": "^[0-9a-f]{40}$",22037 "type": "string"22038 }22039 },22040 "required": [22041 "_tag",22042 "next",22043 "retryable",22044 "sha"22045 ],22046 "type": "object"22047 },22048 "UnknownDecisionEncoded": {22049 "additionalProperties": true,22050 "properties": {22051 "_tag": {22052 "enum": [22053 "UnknownDecision"22054 ],22055 "type": "string"22056 },22057 "at": {22058 "additionalProperties": true,22059 "properties": {22060 "line": {22061 "minimum": 1,22062 "type": "integer"22063 },22064 "path": {22065 "minLength": 1,22066 "type": "string"22067 }22068 },22069 "required": [22070 "line",22071 "path"22072 ],22073 "type": "object"22074 },22075 "decision": {22076 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",22077 "type": "string"22078 },22079 "next": {22080 "minLength": 1,22081 "type": "string"22082 },22083 "retryable": {22084 "enum": [22085 false22086 ],22087 "type": "boolean"22088 }22089 },22090 "required": [22091 "_tag",22092 "next",22093 "retryable",22094 "decision"22095 ],22096 "type": "object"22097 },22098 "UnknownEnvItemEncoded": {22099 "additionalProperties": true,22100 "properties": {22101 "_tag": {22102 "enum": [22103 "UnknownEnvItem"22104 ],22105 "type": "string"22106 },22107 "at": {22108 "additionalProperties": true,22109 "properties": {22110 "line": {22111 "minimum": 1,22112 "type": "integer"22113 },22114 "path": {22115 "minLength": 1,22116 "type": "string"22117 }22118 },22119 "required": [22120 "line",22121 "path"22122 ],22123 "type": "object"22124 },22125 "key": {22126 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",22127 "type": "string"22128 },22129 "next": {22130 "minLength": 1,22131 "type": "string"22132 },22133 "retryable": {22134 "enum": [22135 false22136 ],22137 "type": "boolean"22138 }22139 },22140 "required": [22141 "_tag",22142 "next",22143 "retryable",22144 "key"22145 ],22146 "type": "object"22147 },22148 "UnknownProjectEncoded": {22149 "additionalProperties": true,22150 "properties": {22151 "_tag": {22152 "enum": [22153 "UnknownProject"22154 ],22155 "type": "string"22156 },22157 "at": {22158 "additionalProperties": true,22159 "properties": {22160 "line": {22161 "minimum": 1,22162 "type": "integer"22163 },22164 "path": {22165 "minLength": 1,22166 "type": "string"22167 }22168 },22169 "required": [22170 "line",22171 "path"22172 ],22173 "type": "object"22174 },22175 "next": {22176 "minLength": 1,22177 "type": "string"22178 },22179 "project": {22180 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",22181 "type": "string"22182 },22183 "retryable": {22184 "enum": [22185 false22186 ],22187 "type": "boolean"22188 }22189 },22190 "required": [22191 "_tag",22192 "next",22193 "retryable",22194 "project"22195 ],22196 "type": "object"22197 },22198 "UnstatedRequirementEncoded": {22199 "additionalProperties": true,22200 "properties": {22201 "_tag": {22202 "enum": [22203 "UnstatedRequirement"22204 ],22205 "type": "string"22206 },22207 "area": {22208 "minLength": 1,22209 "type": "string"22210 },22211 "at": {22212 "additionalProperties": true,22213 "properties": {22214 "line": {22215 "minimum": 1,22216 "type": "integer"22217 },22218 "path": {22219 "minLength": 1,22220 "type": "string"22221 }22222 },22223 "required": [22224 "line",22225 "path"22226 ],22227 "type": "object"22228 },22229 "next": {22230 "minLength": 1,22231 "type": "string"22232 },22233 "retryable": {22234 "enum": [22235 false22236 ],22237 "type": "boolean"22238 }22239 },22240 "required": [22241 "_tag",22242 "next",22243 "retryable",22244 "area"22245 ],22246 "type": "object"22247 },22248 "ValueTooShortEncoded": {22249 "additionalProperties": true,22250 "properties": {22251 "_tag": {22252 "enum": [22253 "ValueTooShort"22254 ],22255 "type": "string"22256 },22257 "at": {22258 "additionalProperties": true,22259 "properties": {22260 "line": {22261 "minimum": 1,22262 "type": "integer"22263 },22264 "path": {22265 "minLength": 1,22266 "type": "string"22267 }22268 },22269 "required": [22270 "line",22271 "path"22272 ],22273 "type": "object"22274 },22275 "key": {22276 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",22277 "type": "string"22278 },22279 "minimum": {22280 "type": "integer"22281 },22282 "next": {22283 "minLength": 1,22284 "type": "string"22285 },22286 "retryable": {22287 "enum": [22288 false22289 ],22290 "type": "boolean"22291 }22292 },22293 "required": [22294 "_tag",22295 "next",22296 "retryable",22297 "key",22298 "minimum"22299 ],22300 "type": "object"22301 },22302 "VerifierBlockedEncoded": {22303 "additionalProperties": true,22304 "properties": {22305 "_tag": {22306 "enum": [22307 "VerifierBlocked"22308 ],22309 "type": "string"22310 },22311 "at": {22312 "additionalProperties": true,22313 "properties": {22314 "line": {22315 "minimum": 1,22316 "type": "integer"22317 },22318 "path": {22319 "minLength": 1,22320 "type": "string"22321 }22322 },22323 "required": [22324 "line",22325 "path"22326 ],22327 "type": "object"22328 },22329 "next": {22330 "minLength": 1,22331 "type": "string"22332 },22333 "retryable": {22334 "enum": [22335 true22336 ],22337 "type": "boolean"22338 }22339 },22340 "required": [22341 "_tag",22342 "next",22343 "retryable"22344 ],22345 "type": "object"22346 },22347 "WeakCheckEncoded": {22348 "additionalProperties": true,22349 "properties": {22350 "_tag": {22351 "enum": [22352 "WeakCheck"22353 ],22354 "type": "string"22355 },22356 "at": {22357 "additionalProperties": true,22358 "properties": {22359 "line": {22360 "minimum": 1,22361 "type": "integer"22362 },22363 "path": {22364 "minLength": 1,22365 "type": "string"22366 }22367 },22368 "required": [22369 "line",22370 "path"22371 ],22372 "type": "object"22373 },22374 "next": {22375 "minLength": 1,22376 "type": "string"22377 },22378 "retryable": {22379 "enum": [22380 false22381 ],22382 "type": "boolean"22383 },22384 "weakness": {22385 "minLength": 1,22386 "type": "string"22387 }22388 },22389 "required": [22390 "_tag",22391 "next",22392 "retryable",22393 "weakness"22394 ],22395 "type": "object"22396 },22397 "WeakenedEncoded": {22398 "additionalProperties": true,22399 "properties": {22400 "_tag": {22401 "enum": [22402 "Weakened"22403 ],22404 "type": "string"22405 },22406 "at": {22407 "additionalProperties": true,22408 "properties": {22409 "line": {22410 "minimum": 1,22411 "type": "integer"22412 },22413 "path": {22414 "minLength": 1,22415 "type": "string"22416 }22417 },22418 "required": [22419 "line",22420 "path"22421 ],22422 "type": "object"22423 },22424 "next": {22425 "minLength": 1,22426 "type": "string"22427 },22428 "retryable": {22429 "enum": [22430 false22431 ],22432 "type": "boolean"22433 },22434 "weakening": {22435 "anyOf": [22436 {22437 "additionalProperties": true,22438 "properties": {22439 "marker": {22440 "minLength": 1,22441 "type": "string"22442 },22443 "reason": {22444 "minLength": 1,22445 "type": "string"22446 }22447 },22448 "required": [22449 "marker"22450 ],22451 "type": "object"22452 },22453 {22454 "additionalProperties": true,22455 "properties": {22456 "after": {22457 "type": "integer"22458 },22459 "before": {22460 "type": "integer"22461 },22462 "ratchet": {22463 "minLength": 1,22464 "type": "string"22465 },22466 "territory": {22467 "minLength": 1,22468 "type": "string"22469 }22470 },22471 "required": [22472 "after",22473 "before",22474 "ratchet",22475 "territory"22476 ],22477 "type": "object"22478 }22479 ]22480 }22481 },22482 "required": [22483 "_tag",22484 "next",22485 "retryable",22486 "weakening"22487 ],22488 "type": "object"22489 }22490 },22491 "additionalProperties": true,22492 "properties": {22493 "base": {22494 "pattern": "^[0-9a-f]{40}$",22495 "type": "string"22496 },22497 "head": {22498 "pattern": "^[0-9a-f]{40}$",22499 "type": "string"22500 },22501 "outcome": {22502 "anyOf": [22503 {22504 "additionalProperties": true,22505 "properties": {22506 "_tag": {22507 "enum": [22508 "AwaitingDecision"22509 ],22510 "type": "string"22511 },22512 "decision": {22513 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",22514 "type": "string"22515 }22516 },22517 "required": [22518 "_tag",22519 "decision"22520 ],22521 "type": "object"22522 },22523 {22524 "additionalProperties": true,22525 "properties": {22526 "_tag": {22527 "enum": [22528 "AwaitingFinish"22529 ],22530 "type": "string"22531 },22532 "decider": {22533 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",22534 "type": "string"22535 }22536 },22537 "required": [22538 "_tag"22539 ],22540 "type": "object"22541 },22542 {22543 "additionalProperties": true,22544 "properties": {22545 "_tag": {22546 "enum": [22547 "Checking"22548 ],22549 "type": "string"22550 },22551 "stage": {22552 "enum": [22553 "parse",22554 "shape",22555 "merge",22556 "cheap",22557 "checks",22558 "heldBack",22559 "human"22560 ],22561 "type": "string"22562 }22563 },22564 "required": [22565 "_tag",22566 "stage"22567 ],22568 "type": "object"22569 },22570 {22571 "additionalProperties": true,22572 "properties": {22573 "_tag": {22574 "enum": [22575 "Landed"22576 ],22577 "type": "string"22578 },22579 "sha": {22580 "pattern": "^[0-9a-f]{40}$",22581 "type": "string"22582 }22583 },22584 "required": [22585 "_tag",22586 "sha"22587 ],22588 "type": "object"22589 },22590 {22591 "additionalProperties": true,22592 "properties": {22593 "_tag": {22594 "enum": [22595 "Refused"22596 ],22597 "type": "string"22598 },22599 "refusals": {22600 "items": {22601 "anyOf": [22602 {22603 "$ref": "#/$defs/NotClaimedEncoded"22604 },22605 {22606 "$ref": "#/$defs/ClaimLapsedEncoded"22607 },22608 {22609 "$ref": "#/$defs/NotVouchedEncoded"22610 },22611 {22612 "$ref": "#/$defs/CapReachedEncoded"22613 },22614 {22615 "$ref": "#/$defs/AskFullEncoded"22616 },22617 {22618 "$ref": "#/$defs/NoAskEncoded"22619 },22620 {22621 "$ref": "#/$defs/RepoBusyEncoded"22622 },22623 {22624 "$ref": "#/$defs/DirectPushEncoded"22625 },22626 {22627 "$ref": "#/$defs/AskBlockedEncoded"22628 },22629 {22630 "$ref": "#/$defs/DenouncedEncoded"22631 },22632 {22633 "$ref": "#/$defs/OutOfScopeEncoded"22634 },22635 {22636 "$ref": "#/$defs/TouchedJudgeEncoded"22637 },22638 {22639 "$ref": "#/$defs/WeakenedEncoded"22640 },22641 {22642 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"22643 },22644 {22645 "$ref": "#/$defs/ReachedInternalsEncoded"22646 },22647 {22648 "$ref": "#/$defs/StaleBaseEncoded"22649 },22650 {22651 "$ref": "#/$defs/StaleLayerEncoded"22652 },22653 {22654 "$ref": "#/$defs/ChecksFailedEncoded"22655 },22656 {22657 "$ref": "#/$defs/HeldBackFailedEncoded"22658 },22659 {22660 "$ref": "#/$defs/AttemptsExhaustedEncoded"22661 },22662 {22663 "$ref": "#/$defs/FlakeEncoded"22664 },22665 {22666 "$ref": "#/$defs/VerifierBlockedEncoded"22667 },22668 {22669 "$ref": "#/$defs/NotRedFirstEncoded"22670 },22671 {22672 "$ref": "#/$defs/WeakCheckEncoded"22673 },22674 {22675 "$ref": "#/$defs/IncompleteBriefEncoded"22676 },22677 {22678 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"22679 },22680 {22681 "$ref": "#/$defs/SecretInOutputEncoded"22682 },22683 {22684 "$ref": "#/$defs/UnstatedRequirementEncoded"22685 },22686 {22687 "$ref": "#/$defs/PostureChangeEncoded"22688 },22689 {22690 "$ref": "#/$defs/NotDeciderEncoded"22691 },22692 {22693 "$ref": "#/$defs/DecisionClosedEncoded"22694 },22695 {22696 "$ref": "#/$defs/UnknownProjectEncoded"22697 },22698 {22699 "$ref": "#/$defs/UnknownAskEncoded"22700 },22701 {22702 "$ref": "#/$defs/UnknownCommitEncoded"22703 },22704 {22705 "$ref": "#/$defs/UnknownDecisionEncoded"22706 },22707 {22708 "$ref": "#/$defs/ProjectExistsEncoded"22709 },22710 {22711 "$ref": "#/$defs/ImportFailedEncoded"22712 },22713 {22714 "$ref": "#/$defs/UnknownEnvItemEncoded"22715 },22716 {22717 "$ref": "#/$defs/NotSensitiveEncoded"22718 },22719 {22720 "$ref": "#/$defs/ValueTooShortEncoded"22721 }22722 ]22723 },22724 "minItems": 1,22725 "prefixItems": [22726 {22727 "anyOf": [22728 {22729 "$ref": "#/$defs/NotClaimedEncoded"22730 },22731 {22732 "$ref": "#/$defs/ClaimLapsedEncoded"22733 },22734 {22735 "$ref": "#/$defs/NotVouchedEncoded"22736 },22737 {22738 "$ref": "#/$defs/CapReachedEncoded"22739 },22740 {22741 "$ref": "#/$defs/AskFullEncoded"22742 },22743 {22744 "$ref": "#/$defs/NoAskEncoded"22745 },22746 {22747 "$ref": "#/$defs/RepoBusyEncoded"22748 },22749 {22750 "$ref": "#/$defs/DirectPushEncoded"22751 },22752 {22753 "$ref": "#/$defs/AskBlockedEncoded"22754 },22755 {22756 "$ref": "#/$defs/DenouncedEncoded"22757 },22758 {22759 "$ref": "#/$defs/OutOfScopeEncoded"22760 },22761 {22762 "$ref": "#/$defs/TouchedJudgeEncoded"22763 },22764 {22765 "$ref": "#/$defs/WeakenedEncoded"22766 },22767 {22768 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"22769 },22770 {22771 "$ref": "#/$defs/ReachedInternalsEncoded"22772 },22773 {22774 "$ref": "#/$defs/StaleBaseEncoded"22775 },22776 {22777 "$ref": "#/$defs/StaleLayerEncoded"22778 },22779 {22780 "$ref": "#/$defs/ChecksFailedEncoded"22781 },22782 {22783 "$ref": "#/$defs/HeldBackFailedEncoded"22784 },22785 {22786 "$ref": "#/$defs/AttemptsExhaustedEncoded"22787 },22788 {22789 "$ref": "#/$defs/FlakeEncoded"22790 },22791 {22792 "$ref": "#/$defs/VerifierBlockedEncoded"22793 },22794 {22795 "$ref": "#/$defs/NotRedFirstEncoded"22796 },22797 {22798 "$ref": "#/$defs/WeakCheckEncoded"22799 },22800 {22801 "$ref": "#/$defs/IncompleteBriefEncoded"22802 },22803 {22804 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"22805 },22806 {22807 "$ref": "#/$defs/SecretInOutputEncoded"22808 },22809 {22810 "$ref": "#/$defs/UnstatedRequirementEncoded"22811 },22812 {22813 "$ref": "#/$defs/PostureChangeEncoded"22814 },22815 {22816 "$ref": "#/$defs/NotDeciderEncoded"22817 },22818 {22819 "$ref": "#/$defs/DecisionClosedEncoded"22820 },22821 {22822 "$ref": "#/$defs/UnknownProjectEncoded"22823 },22824 {22825 "$ref": "#/$defs/UnknownAskEncoded"22826 },22827 {22828 "$ref": "#/$defs/UnknownCommitEncoded"22829 },22830 {22831 "$ref": "#/$defs/UnknownDecisionEncoded"22832 },22833 {22834 "$ref": "#/$defs/ProjectExistsEncoded"22835 },22836 {22837 "$ref": "#/$defs/ImportFailedEncoded"22838 },22839 {22840 "$ref": "#/$defs/UnknownEnvItemEncoded"22841 },22842 {22843 "$ref": "#/$defs/NotSensitiveEncoded"22844 },22845 {22846 "$ref": "#/$defs/ValueTooShortEncoded"22847 }22848 ]22849 }22850 ],22851 "type": "array"22852 }22853 },22854 "required": [22855 "_tag",22856 "refusals"22857 ],22858 "type": "object"22859 },22860 {22861 "additionalProperties": true,22862 "properties": {22863 "_tag": {22864 "enum": [22865 "WaitingOnParent"22866 ],22867 "type": "string"22868 },22869 "ask": {22870 "allOf": [22871 {22872 "not": {22873 "enum": [22874 "me",22875 "layer"22876 ]22877 }22878 }22879 ],22880 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",22881 "type": "string"22882 }22883 },22884 "required": [22885 "_tag",22886 "ask"22887 ],22888 "type": "object"22889 }22890 ]22891 },22892 "project": {22893 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",22894 "type": "string"22895 },22896 "requestId": {22897 "pattern": "^[A-Za-z0-9_-]{8,64}$",22898 "type": "string"22899 }22900 },22901 "required": [22902 "base",22903 "head",22904 "outcome",22905 "project",22906 "requestId"22907 ],22908 "type": "object"22909}22910```2291122912## fork2291322914Make the caller's working fork of a project, or return it if it exists.2291522916| Hint | Value |22917| --- | --- |22918| `destructiveHint` | `false` |22919| `idempotentHint` | `true` |22920| `openWorldHint` | `false` |22921| `readOnlyHint` | `false` |2292222923### Input2292422925```json22926{22927 "additionalProperties": true,22928 "properties": {22929 "project": {22930 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",22931 "type": "string"22932 }22933 },22934 "required": [22935 "project"22936 ],22937 "type": "object"22938}22939```2294022941### Output2294222943```json22944{22945 "additionalProperties": true,22946 "properties": {22947 "fork": {22948 "pattern": "^[A-Za-z0-9._-]+$",22949 "type": "string"22950 },22951 "remote": {22952 "minLength": 1,22953 "type": "string"22954 }22955 },22956 "required": [22957 "fork",22958 "remote"22959 ],22960 "type": "object"22961}22962```2296322964## vouch2296522966Vouch for a person, or denounce them, by landing a line in the project's vouch file. Asks a person first.2296722968| Hint | Value |22969| --- | --- |22970| `destructiveHint` | `false` |22971| `idempotentHint` | `false` |22972| `openWorldHint` | `false` |22973| `readOnlyHint` | `false` |2297422975### Input2297622977```json22978{22979 "additionalProperties": true,22980 "properties": {22981 "handle": {22982 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",22983 "type": "string"22984 },22985 "note": {22986 "type": "string"22987 },22988 "project": {22989 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",22990 "type": "string"22991 },22992 "verdict": {22993 "enum": [22994 "vouch",22995 "denounce"22996 ],22997 "type": "string"22998 }22999 },23000 "required": [23001 "handle",23002 "project",23003 "verdict"23004 ],23005 "type": "object"23006}23007```2300823009### Output2301023011```json23012{23013 "additionalProperties": true,23014 "properties": {23015 "landed": {23016 "pattern": "^[0-9a-f]{40}$",23017 "type": "string"23018 }23019 },23020 "required": [23021 "landed"23022 ],23023 "type": "object"23024}23025```
modified:docs/reference/protocol.schema.json+9167 added-4 removed
2326 unmodified lines
2327 "weakening"2328 ],2329 "type": "object"2330 },2331 "listAsks.error": {2331 "claim.error": {2332 "anyOf": [2333 {2334 "$ref": "#/$defs/UnknownProjectEncoded"2335 },2336 {2337 "$ref": "#/$defs/UnknownAskEncoded"2338 },2339 {2340 "$ref": "#/$defs/AskFullEncoded"2341 },2342 {2343 "$ref": "#/$defs/AskBlockedEncoded"2344 },2345 {2346 "$ref": "#/$defs/CapReachedEncoded"2347 },2348 {2349 "$ref": "#/$defs/NotVouchedEncoded"2350 },2351 {2352 "$ref": "#/$defs/DenouncedEncoded"2353 }2354 ]2355 },2356 "claim.payload": {2357 "additionalProperties": true,2358 "properties": {2359 "ask": {2360 "allOf": [2361 {2362 "not": {2363 "enum": [2364 "me",2365 "layer"2366 ]2367 }2368 }2369 ],2370 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2371 "type": "string"2372 },2373 "project": {2374 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2375 "type": "string"2376 }2377 },2378 "required": [2379 "ask",2380 "project"2381 ],2382 "type": "object"2383 },2384 "claim.success": {2385 "additionalProperties": true,2386 "properties": {2387 "claim": {2388 "additionalProperties": true,2389 "properties": {2390 "ask": {2391 "allOf": [2392 {2393 "not": {2394 "enum": [2395 "me",2396 "layer"2397 ]2398 }2399 }2400 ],2401 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2402 "type": "string"2403 },2404 "base": {2405 "pattern": "^[0-9a-f]{40}$",2406 "type": "string"2407 },2408 "checkCommand": {2409 "minLength": 1,2410 "type": "string"2411 },2412 "claimant": {2413 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",2414 "type": "string"2415 },2416 "fork": {2417 "pattern": "^[A-Za-z0-9._-]+$",2418 "type": "string"2419 },2420 "lapsesAt": {2421 "type": "string"2422 },2423 "lastPushAt": {2424 "type": "string"2425 },2426 "openedAt": {2427 "type": "string"2428 },2429 "project": {2430 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2431 "type": "string"2432 },2433 "remote": {2434 "minLength": 1,2435 "type": "string"2436 },2437 "state": {2438 "enum": [2439 "live",2440 "warned",2441 "lapsed",2442 "released",2443 "answered"2444 ],2445 "type": "string"2446 },2447 "suite": {2448 "pattern": "^sha256:[0-9a-f]{64}$",2449 "type": "string"2450 },2451 "warnsAt": {2452 "type": "string"2453 }2454 },2455 "required": [2456 "ask",2457 "base",2458 "checkCommand",2459 "claimant",2460 "fork",2461 "lapsesAt",2462 "openedAt",2463 "project",2464 "remote",2465 "state",2466 "warnsAt"2467 ],2468 "type": "object"2469 }2470 },2471 "required": [2472 "claim"2473 ],2474 "type": "object"2475 },2476 "credits.error": {2477 "not": {}2478 },2479 "credits.payload": {2480 "additionalProperties": true,2481 "properties": {2482 "handle": {2483 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",2484 "type": "string"2485 }2486 },2487 "required": [2488 "handle"2489 ],2490 "type": "object"2491 },2492 "credits.success": {2493 "additionalProperties": true,2494 "properties": {2495 "credits": {2496 "items": {2497 "additionalProperties": true,2498 "properties": {2499 "area": {2500 "minLength": 1,2501 "type": "string"2502 },2503 "count": {2504 "type": "integer"2505 },2506 "project": {2507 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2508 "type": "string"2509 },2510 "role": {2511 "enum": [2512 "Asked-by",2513 "Signed-off-by",2514 "Decided-by",2515 "Mentored-by",2516 "Finished-by",2517 "Advised-by",2518 "Released-by"2519 ],2520 "type": "string"2521 }2522 },2523 "required": [2524 "area",2525 "count",2526 "project",2527 "role"2528 ],2529 "type": "object"2530 },2531 "type": "array"2532 }2533 },2534 "required": [2535 "credits"2536 ],2537 "type": "object"2538 },2539 "decide.error": {2540 "anyOf": [2541 {2542 "$ref": "#/$defs/UnknownProjectEncoded"2543 },2544 {2545 "$ref": "#/$defs/UnknownDecisionEncoded"2546 },2547 {2548 "$ref": "#/$defs/DecisionClosedEncoded"2549 },2550 {2551 "$ref": "#/$defs/NotDeciderEncoded"2552 }2553 ]2554 },2555 "decide.payload": {2556 "additionalProperties": true,2557 "properties": {2558 "choice": {2559 "enum": [2560 "accept",2561 "decline",2562 "adopt",2563 "revert"2564 ],2565 "type": "string"2566 },2567 "decision": {2568 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",2569 "type": "string"2570 },2571 "note": {2572 "type": "string"2573 },2574 "project": {2575 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2576 "type": "string"2577 }2578 },2579 "required": [2580 "choice",2581 "decision",2582 "project"2583 ],2584 "type": "object"2585 },2586 "decide.success": {2587 "additionalProperties": true,2588 "properties": {2589 "decision": {2590 "additionalProperties": true,2591 "properties": {2592 "decided": {2593 "additionalProperties": true,2594 "properties": {2595 "at": {2596 "type": "string"2597 },2598 "by": {2599 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",2600 "type": "string"2601 },2602 "choice": {2603 "enum": [2604 "accept",2605 "decline",2606 "adopt",2607 "revert"2608 ],2609 "type": "string"2610 },2611 "note": {2612 "type": "string"2613 }2614 },2615 "required": [2616 "at",2617 "by",2618 "choice"2619 ],2620 "type": "object"2621 },2622 "deciders": {2623 "items": {2624 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",2625 "type": "string"2626 },2627 "minItems": 1,2628 "prefixItems": [2629 {2630 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",2631 "type": "string"2632 }2633 ],2634 "type": "array"2635 },2636 "default": {2637 "enum": [2638 "accept",2639 "decline",2640 "adopt",2641 "revert"2642 ],2643 "type": "string"2644 },2645 "evidence": {2646 "items": {2647 "additionalProperties": true,2648 "properties": {2649 "href": {2650 "minLength": 1,2651 "type": "string"2652 },2653 "label": {2654 "minLength": 1,2655 "type": "string"2656 },2657 "value": {2658 "type": "string"2659 }2660 },2661 "required": [2662 "label",2663 "value"2664 ],2665 "type": "object"2666 },2667 "type": "array"2668 },2669 "expiresAt": {2670 "type": "string"2671 },2672 "id": {2673 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",2674 "type": "string"2675 },2676 "openedAt": {2677 "type": "string"2678 },2679 "project": {2680 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2681 "type": "string"2682 },2683 "subject": {2684 "anyOf": [2685 {2686 "additionalProperties": true,2687 "properties": {2688 "_tag": {2689 "enum": [2690 "Finish"2691 ],2692 "type": "string"2693 },2694 "ask": {2695 "allOf": [2696 {2697 "not": {2698 "enum": [2699 "me",2700 "layer"2701 ]2702 }2703 }2704 ],2705 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2706 "type": "string"2707 },2708 "head": {2709 "pattern": "^[0-9a-f]{40}$",2710 "type": "string"2711 }2712 },2713 "required": [2714 "_tag",2715 "ask",2716 "head"2717 ],2718 "type": "object"2719 },2720 {2721 "additionalProperties": true,2722 "properties": {2723 "_tag": {2724 "enum": [2725 "OpenProposal"2726 ],2727 "type": "string"2728 },2729 "proposal": {2730 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",2731 "type": "string"2732 }2733 },2734 "required": [2735 "_tag",2736 "proposal"2737 ],2738 "type": "object"2739 },2740 {2741 "additionalProperties": true,2742 "properties": {2743 "_tag": {2744 "enum": [2745 "PostureChange"2746 ],2747 "type": "string"2748 },2749 "from": {2750 "enum": [2751 "open",2752 "openWithSealedEvidence",2753 "openOnSchedule",2754 "openCore",2755 "sourceAvailable"2756 ],2757 "type": "string"2758 },2759 "to": {2760 "enum": [2761 "open",2762 "openWithSealedEvidence",2763 "openOnSchedule",2764 "openCore",2765 "sourceAvailable"2766 ],2767 "type": "string"2768 }2769 },2770 "required": [2771 "_tag",2772 "from",2773 "to"2774 ],2775 "type": "object"2776 },2777 {2778 "additionalProperties": true,2779 "properties": {2780 "_tag": {2781 "enum": [2782 "ProxyWidened"2783 ],2784 "type": "string"2785 },2786 "hosts": {2787 "items": {2788 "pattern": "^(?:\\*\\.)?[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*$",2789 "type": "string"2790 },2791 "type": "array"2792 },2793 "item": {2794 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",2795 "type": "string"2796 }2797 },2798 "required": [2799 "_tag",2800 "hosts",2801 "item"2802 ],2803 "type": "object"2804 },2805 {2806 "additionalProperties": true,2807 "properties": {2808 "_tag": {2809 "enum": [2810 "RaiseRatchet"2811 ],2812 "type": "string"2813 },2814 "after": {2815 "type": "integer"2816 },2817 "ask": {2818 "allOf": [2819 {2820 "not": {2821 "enum": [2822 "me",2823 "layer"2824 ]2825 }2826 }2827 ],2828 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2829 "type": "string"2830 },2831 "before": {2832 "type": "integer"2833 },2834 "ratchet": {2835 "pattern": "^[a-z][a-zA-Z0-9-]*$",2836 "type": "string"2837 },2838 "territory": {2839 "minLength": 1,2840 "type": "string"2841 }2842 },2843 "required": [2844 "_tag",2845 "after",2846 "ask",2847 "before",2848 "ratchet",2849 "territory"2850 ],2851 "type": "object"2852 },2853 {2854 "additionalProperties": true,2855 "properties": {2856 "_tag": {2857 "enum": [2858 "SecretInTree"2859 ],2860 "type": "string"2861 },2862 "ask": {2863 "allOf": [2864 {2865 "not": {2866 "enum": [2867 "me",2868 "layer"2869 ]2870 }2871 }2872 ],2873 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2874 "type": "string"2875 },2876 "item": {2877 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",2878 "type": "string"2879 }2880 },2881 "required": [2882 "_tag",2883 "ask",2884 "item"2885 ],2886 "type": "object"2887 },2888 {2889 "additionalProperties": true,2890 "properties": {2891 "_tag": {2892 "enum": [2893 "StrayPush"2894 ],2895 "type": "string"2896 },2897 "after": {2898 "pattern": "^[0-9a-f]{40}$",2899 "type": "string"2900 },2901 "before": {2902 "pattern": "^[0-9a-f]{40}$",2903 "type": "string"2904 },2905 "ref": {2906 "pattern": "^refs\\/(?!.*\\.\\.)[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)+$",2907 "type": "string"2908 }2909 },2910 "required": [2911 "_tag",2912 "after",2913 "before",2914 "ref"2915 ],2916 "type": "object"2917 },2918 {2919 "additionalProperties": true,2920 "properties": {2921 "_tag": {2922 "enum": [2923 "Vouch"2924 ],2925 "type": "string"2926 },2927 "handle": {2928 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",2929 "type": "string"2930 }2931 },2932 "required": [2933 "_tag",2934 "handle"2935 ],2936 "type": "object"2937 },2938 {2939 "additionalProperties": true,2940 "properties": {2941 "_tag": {2942 "enum": [2943 "Waiver"2944 ],2945 "type": "string"2946 },2947 "ask": {2948 "allOf": [2949 {2950 "not": {2951 "enum": [2952 "me",2953 "layer"2954 ]2955 }2956 }2957 ],2958 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",2959 "type": "string"2960 },2961 "at": {2962 "additionalProperties": true,2963 "properties": {2964 "line": {2965 "minimum": 1,2966 "type": "integer"2967 },2968 "path": {2969 "minLength": 1,2970 "type": "string"2971 }2972 },2973 "required": [2974 "line",2975 "path"2976 ],2977 "type": "object"2978 },2979 "marker": {2980 "minLength": 1,2981 "type": "string"2982 },2983 "reason": {2984 "minLength": 1,2985 "type": "string"2986 }2987 },2988 "required": [2989 "_tag",2990 "ask",2991 "at",2992 "marker",2993 "reason"2994 ],2995 "type": "object"2996 }2997 ]2998 }2999 },3000 "required": [3001 "deciders",3002 "default",3003 "evidence",3004 "expiresAt",3005 "id",3006 "openedAt",3007 "project",3008 "subject"3009 ],3010 "type": "object"3011 }3012 },3013 "required": [3014 "decision"3015 ],3016 "type": "object"3017 },3018 "envShape.error": {3019 "$ref": "#/$defs/UnknownProjectEncoded"3020 },3021 "envShape.payload": {3022 "additionalProperties": true,3023 "properties": {3024 "project": {3025 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3026 "type": "string"3027 }3028 },3029 "required": [3030 "project"3031 ],3032 "type": "object"3033 },3034 "envShape.success": {3035 "additionalProperties": true,3036 "properties": {3037 "at": {3038 "pattern": "^[0-9a-f]{40}$",3039 "type": "string"3040 },3041 "currentEnvKey": {3042 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",3043 "type": "string"3044 },3045 "file": {3046 "minLength": 1,3047 "type": "string"3048 },3049 "imports": {3050 "items": {3051 "type": "string"3052 },3053 "type": "array"3054 },3055 "items": {3056 "items": {3057 "additionalProperties": true,3058 "properties": {3059 "deprecated": {3060 "type": "boolean"3061 },3062 "description": {3063 "type": "string"3064 },3065 "docs": {3066 "type": "string"3067 },3068 "key": {3069 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",3070 "type": "string"3071 },3072 "placeholder": {3073 "type": "string"3074 },3075 "proxy": {3076 "additionalProperties": true,3077 "properties": {3078 "block": {3079 "type": "boolean"3080 },3081 "domains": {3082 "items": {3083 "minLength": 1,3084 "type": "string"3085 },3086 "minItems": 1,3087 "prefixItems": [3088 {3089 "minLength": 1,3090 "type": "string"3091 }3092 ],3093 "type": "array"3094 },3095 "method": {3096 "type": "string"3097 },3098 "path": {3099 "type": "string"3100 }3101 },3102 "required": [3103 "domains"3104 ],3105 "type": "object"3106 },3107 "required": {3108 "anyOf": [3109 {3110 "type": "boolean"3111 },3112 {3113 "enum": [3114 "depends"3115 ],3116 "type": "string"3117 }3118 ]3119 },3120 "sensitive": {3121 "type": "boolean"3122 },3123 "tags": {3124 "items": {3125 "minLength": 1,3126 "type": "string"3127 },3128 "type": "array"3129 },3130 "type": {3131 "minLength": 1,3132 "type": "string"3133 },3134 "value": {3135 "additionalProperties": true,3136 "properties": {3137 "setAt": {3138 "type": "string"3139 },3140 "setBy": {3141 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",3142 "type": "string"3143 }3144 },3145 "required": [3146 "setAt",3147 "setBy"3148 ],3149 "type": "object"3150 }3151 },3152 "required": [3153 "key",3154 "required",3155 "sensitive",3156 "tags"3157 ],3158 "type": "object"3159 },3160 "type": "array"3161 },3162 "project": {3163 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3164 "type": "string"3165 }3166 },3167 "required": [3168 "at",3169 "file",3170 "imports",3171 "items",3172 "project"3173 ],3174 "type": "object"3175 },3176 "finish.error": {3177 "anyOf": [3178 {3179 "$ref": "#/$defs/UnknownProjectEncoded"3180 },3181 {3182 "$ref": "#/$defs/NotDeciderEncoded"3183 },3184 {3185 "$ref": "#/$defs/StaleBaseEncoded"3186 },3187 {3188 "$ref": "#/$defs/RepoBusyEncoded"3189 },3190 {3191 "$ref": "#/$defs/TouchedJudgeEncoded"3192 }3193 ]3194 },3195 "finish.payload": {3196 "additionalProperties": true,3197 "properties": {3198 "ask": {3199 "allOf": [3200 {3201 "not": {3202 "enum": [3203 "me",3204 "layer"3205 ]3206 }3207 }3208 ],3209 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3210 "type": "string"3211 },3212 "base": {3213 "pattern": "^[0-9a-f]{40}$",3214 "type": "string"3215 },3216 "head": {3217 "pattern": "^[0-9a-f]{40}$",3218 "type": "string"3219 },3220 "project": {3221 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3222 "type": "string"3223 },3224 "requestId": {3225 "pattern": "^[A-Za-z0-9_-]{8,64}$",3226 "type": "string"3227 }3228 },3229 "required": [3230 "ask",3231 "base",3232 "head",3233 "project",3234 "requestId"3235 ],3236 "type": "object"3237 },3238 "finish.success": {3239 "additionalProperties": true,3240 "properties": {3241 "ask": {3242 "allOf": [3243 {3244 "not": {3245 "enum": [3246 "me",3247 "layer"3248 ]3249 }3250 }3251 ],3252 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3253 "type": "string"3254 },3255 "base": {3256 "pattern": "^[0-9a-f]{40}$",3257 "type": "string"3258 },3259 "head": {3260 "pattern": "^[0-9a-f]{40}$",3261 "type": "string"3262 },3263 "outcome": {3264 "anyOf": [3265 {3266 "additionalProperties": true,3267 "properties": {3268 "_tag": {3269 "enum": [3270 "AwaitingDecision"3271 ],3272 "type": "string"3273 },3274 "decision": {3275 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",3276 "type": "string"3277 }3278 },3279 "required": [3280 "_tag",3281 "decision"3282 ],3283 "type": "object"3284 },3285 {3286 "additionalProperties": true,3287 "properties": {3288 "_tag": {3289 "enum": [3290 "AwaitingFinish"3291 ],3292 "type": "string"3293 },3294 "decider": {3295 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",3296 "type": "string"3297 }3298 },3299 "required": [3300 "_tag"3301 ],3302 "type": "object"3303 },3304 {3305 "additionalProperties": true,3306 "properties": {3307 "_tag": {3308 "enum": [3309 "Checking"3310 ],3311 "type": "string"3312 },3313 "stage": {3314 "enum": [3315 "parse",3316 "shape",3317 "merge",3318 "cheap",3319 "checks",3320 "heldBack",3321 "human"3322 ],3323 "type": "string"3324 }3325 },3326 "required": [3327 "_tag",3328 "stage"3329 ],3330 "type": "object"3331 },3332 {3333 "additionalProperties": true,3334 "properties": {3335 "_tag": {3336 "enum": [3337 "Landed"3338 ],3339 "type": "string"3340 },3341 "sha": {3342 "pattern": "^[0-9a-f]{40}$",3343 "type": "string"3344 }3345 },3346 "required": [3347 "_tag",3348 "sha"3349 ],3350 "type": "object"3351 },3352 {3353 "additionalProperties": true,3354 "properties": {3355 "_tag": {3356 "enum": [3357 "Refused"3358 ],3359 "type": "string"3360 },3361 "refusals": {3362 "items": {3363 "anyOf": [3364 {3365 "$ref": "#/$defs/NotClaimedEncoded"3366 },3367 {3368 "$ref": "#/$defs/ClaimLapsedEncoded"3369 },3370 {3371 "$ref": "#/$defs/NotVouchedEncoded"3372 },3373 {3374 "$ref": "#/$defs/CapReachedEncoded"3375 },3376 {3377 "$ref": "#/$defs/AskFullEncoded"3378 },3379 {3380 "$ref": "#/$defs/NoAskEncoded"3381 },3382 {3383 "$ref": "#/$defs/RepoBusyEncoded"3384 },3385 {3386 "$ref": "#/$defs/DirectPushEncoded"3387 },3388 {3389 "$ref": "#/$defs/AskBlockedEncoded"3390 },3391 {3392 "$ref": "#/$defs/DenouncedEncoded"3393 },3394 {3395 "$ref": "#/$defs/OutOfScopeEncoded"3396 },3397 {3398 "$ref": "#/$defs/TouchedJudgeEncoded"3399 },3400 {3401 "$ref": "#/$defs/WeakenedEncoded"3402 },3403 {3404 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"3405 },3406 {3407 "$ref": "#/$defs/ReachedInternalsEncoded"3408 },3409 {3410 "$ref": "#/$defs/StaleBaseEncoded"3411 },3412 {3413 "$ref": "#/$defs/StaleLayerEncoded"3414 },3415 {3416 "$ref": "#/$defs/ChecksFailedEncoded"3417 },3418 {3419 "$ref": "#/$defs/HeldBackFailedEncoded"3420 },3421 {3422 "$ref": "#/$defs/AttemptsExhaustedEncoded"3423 },3424 {3425 "$ref": "#/$defs/FlakeEncoded"3426 },3427 {3428 "$ref": "#/$defs/VerifierBlockedEncoded"3429 },3430 {3431 "$ref": "#/$defs/NotRedFirstEncoded"3432 },3433 {3434 "$ref": "#/$defs/WeakCheckEncoded"3435 },3436 {3437 "$ref": "#/$defs/IncompleteBriefEncoded"3438 },3439 {3440 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"3441 },3442 {3443 "$ref": "#/$defs/SecretInOutputEncoded"3444 },3445 {3446 "$ref": "#/$defs/UnstatedRequirementEncoded"3447 },3448 {3449 "$ref": "#/$defs/PostureChangeEncoded"3450 },3451 {3452 "$ref": "#/$defs/NotDeciderEncoded"3453 },3454 {3455 "$ref": "#/$defs/DecisionClosedEncoded"3456 },3457 {3458 "$ref": "#/$defs/UnknownProjectEncoded"3459 },3460 {3461 "$ref": "#/$defs/UnknownAskEncoded"3462 },3463 {3464 "$ref": "#/$defs/UnknownCommitEncoded"3465 },3466 {3467 "$ref": "#/$defs/UnknownDecisionEncoded"3468 },3469 {3470 "$ref": "#/$defs/ProjectExistsEncoded"3471 },3472 {3473 "$ref": "#/$defs/ImportFailedEncoded"3474 },3475 {3476 "$ref": "#/$defs/UnknownEnvItemEncoded"3477 },3478 {3479 "$ref": "#/$defs/NotSensitiveEncoded"3480 },3481 {3482 "$ref": "#/$defs/ValueTooShortEncoded"3483 }3484 ]3485 },3486 "minItems": 1,3487 "prefixItems": [3488 {3489 "anyOf": [3490 {3491 "$ref": "#/$defs/NotClaimedEncoded"3492 },3493 {3494 "$ref": "#/$defs/ClaimLapsedEncoded"3495 },3496 {3497 "$ref": "#/$defs/NotVouchedEncoded"3498 },3499 {3500 "$ref": "#/$defs/CapReachedEncoded"3501 },3502 {3503 "$ref": "#/$defs/AskFullEncoded"3504 },3505 {3506 "$ref": "#/$defs/NoAskEncoded"3507 },3508 {3509 "$ref": "#/$defs/RepoBusyEncoded"3510 },3511 {3512 "$ref": "#/$defs/DirectPushEncoded"3513 },3514 {3515 "$ref": "#/$defs/AskBlockedEncoded"3516 },3517 {3518 "$ref": "#/$defs/DenouncedEncoded"3519 },3520 {3521 "$ref": "#/$defs/OutOfScopeEncoded"3522 },3523 {3524 "$ref": "#/$defs/TouchedJudgeEncoded"3525 },3526 {3527 "$ref": "#/$defs/WeakenedEncoded"3528 },3529 {3530 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"3531 },3532 {3533 "$ref": "#/$defs/ReachedInternalsEncoded"3534 },3535 {3536 "$ref": "#/$defs/StaleBaseEncoded"3537 },3538 {3539 "$ref": "#/$defs/StaleLayerEncoded"3540 },3541 {3542 "$ref": "#/$defs/ChecksFailedEncoded"3543 },3544 {3545 "$ref": "#/$defs/HeldBackFailedEncoded"3546 },3547 {3548 "$ref": "#/$defs/AttemptsExhaustedEncoded"3549 },3550 {3551 "$ref": "#/$defs/FlakeEncoded"3552 },3553 {3554 "$ref": "#/$defs/VerifierBlockedEncoded"3555 },3556 {3557 "$ref": "#/$defs/NotRedFirstEncoded"3558 },3559 {3560 "$ref": "#/$defs/WeakCheckEncoded"3561 },3562 {3563 "$ref": "#/$defs/IncompleteBriefEncoded"3564 },3565 {3566 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"3567 },3568 {3569 "$ref": "#/$defs/SecretInOutputEncoded"3570 },3571 {3572 "$ref": "#/$defs/UnstatedRequirementEncoded"3573 },3574 {3575 "$ref": "#/$defs/PostureChangeEncoded"3576 },3577 {3578 "$ref": "#/$defs/NotDeciderEncoded"3579 },3580 {3581 "$ref": "#/$defs/DecisionClosedEncoded"3582 },3583 {3584 "$ref": "#/$defs/UnknownProjectEncoded"3585 },3586 {3587 "$ref": "#/$defs/UnknownAskEncoded"3588 },3589 {3590 "$ref": "#/$defs/UnknownCommitEncoded"3591 },3592 {3593 "$ref": "#/$defs/UnknownDecisionEncoded"3594 },3595 {3596 "$ref": "#/$defs/ProjectExistsEncoded"3597 },3598 {3599 "$ref": "#/$defs/ImportFailedEncoded"3600 },3601 {3602 "$ref": "#/$defs/UnknownEnvItemEncoded"3603 },3604 {3605 "$ref": "#/$defs/NotSensitiveEncoded"3606 },3607 {3608 "$ref": "#/$defs/ValueTooShortEncoded"3609 }3610 ]3611 }3612 ],3613 "type": "array"3614 }3615 },3616 "required": [3617 "_tag",3618 "refusals"3619 ],3620 "type": "object"3621 },3622 {3623 "additionalProperties": true,3624 "properties": {3625 "_tag": {3626 "enum": [3627 "WaitingOnParent"3628 ],3629 "type": "string"3630 },3631 "ask": {3632 "allOf": [3633 {3634 "not": {3635 "enum": [3636 "me",3637 "layer"3638 ]3639 }3640 }3641 ],3642 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3643 "type": "string"3644 }3645 },3646 "required": [3647 "_tag",3648 "ask"3649 ],3650 "type": "object"3651 }3652 ]3653 },3654 "project": {3655 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3656 "type": "string"3657 },3658 "requestId": {3659 "pattern": "^[A-Za-z0-9_-]{8,64}$",3660 "type": "string"3661 }3662 },3663 "required": [3664 "ask",3665 "base",3666 "head",3667 "outcome",3668 "project",3669 "requestId"3670 ],3671 "type": "object"3672 },3673 "flagAsk.error": {3674 "anyOf": [3675 {3676 "$ref": "#/$defs/UnknownProjectEncoded"3677 },3678 {3679 "$ref": "#/$defs/UnknownAskEncoded"3680 },3681 {3682 "$ref": "#/$defs/DenouncedEncoded"3683 },3684 {3685 "$ref": "#/$defs/CapReachedEncoded"3686 }3687 ]3688 },3689 "flagAsk.payload": {3690 "additionalProperties": true,3691 "properties": {3692 "ask": {3693 "allOf": [3694 {3695 "not": {3696 "enum": [3697 "me",3698 "layer"3699 ]3700 }3701 }3702 ],3703 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3704 "type": "string"3705 },3706 "project": {3707 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3708 "type": "string"3709 },3710 "reason": {3711 "minLength": 1,3712 "type": "string"3713 }3714 },3715 "required": [3716 "ask",3717 "project",3718 "reason"3719 ],3720 "type": "object"3721 },3722 "flagAsk.success": {3723 "additionalProperties": true,3724 "properties": {3725 "proposal": {3726 "additionalProperties": true,3727 "properties": {3728 "expiresAt": {3729 "type": "string"3730 },3731 "files": {3732 "items": {3733 "minLength": 1,3734 "type": "string"3735 },3736 "type": "array"3737 },3738 "flags": {3739 "allOf": [3740 {3741 "not": {3742 "enum": [3743 "me",3744 "layer"3745 ]3746 }3747 }3748 ],3749 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3750 "type": "string"3751 },3752 "id": {3753 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",3754 "type": "string"3755 },3756 "openedAt": {3757 "type": "string"3758 },3759 "project": {3760 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3761 "type": "string"3762 },3763 "proposer": {3764 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",3765 "type": "string"3766 },3767 "sealed": {3768 "additionalProperties": true,3769 "properties": {3770 "fork": {3771 "pattern": "^[A-Za-z0-9._-]+$",3772 "type": "string"3773 },3774 "head": {3775 "pattern": "^[0-9a-f]{40}$",3776 "type": "string"3777 }3778 },3779 "required": [3780 "fork",3781 "head"3782 ],3783 "type": "object"3784 },3785 "state": {3786 "enum": [3787 "open",3788 "accepted",3789 "declined",3790 "expired"3791 ],3792 "type": "string"3793 },3794 "territory": {3795 "minLength": 1,3796 "type": "string"3797 },3798 "want": {3799 "minLength": 1,3800 "type": "string"3801 }3802 },3803 "required": [3804 "expiresAt",3805 "files",3806 "id",3807 "openedAt",3808 "project",3809 "proposer",3810 "state",3811 "want"3812 ],3813 "type": "object"3814 }3815 },3816 "required": [3817 "proposal"3818 ],3819 "type": "object"3820 },3821 "fork.error": {3822 "anyOf": [3823 {3824 "$ref": "#/$defs/UnknownProjectEncoded"3825 },3826 {3827 "$ref": "#/$defs/NotVouchedEncoded"3828 },3829 {3830 "$ref": "#/$defs/DenouncedEncoded"3831 }3832 ]3833 },3834 "fork.payload": {3835 "additionalProperties": true,3836 "properties": {3837 "project": {3838 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3839 "type": "string"3840 }3841 },3842 "required": [3843 "project"3844 ],3845 "type": "object"3846 },3847 "fork.success": {3848 "additionalProperties": true,3849 "properties": {3850 "fork": {3851 "pattern": "^[A-Za-z0-9._-]+$",3852 "type": "string"3853 },3854 "remote": {3855 "minLength": 1,3856 "type": "string"3857 }3858 },3859 "required": [3860 "fork",3861 "remote"3862 ],3863 "type": "object"3864 },3865 "frontPage.error": {3866 "not": {}3867 },3868 "frontPage.payload": {3869 "additionalProperties": true,3870 "properties": {3871 "kind": {3872 "pattern": "^[a-z][a-zA-Z0-9-]*$",3873 "type": "string"3874 },3875 "reserved": {3876 "enum": [3877 "newcomers",3878 "people"3879 ],3880 "type": "string"3881 }3882 },3883 "type": "object"3884 },3885 "frontPage.success": {3886 "additionalProperties": true,3887 "properties": {3888 "entries": {3889 "items": {3890 "additionalProperties": true,3891 "properties": {3892 "ask": {3893 "additionalProperties": true,3894 "properties": {3895 "ask": {3896 "allOf": [3897 {3898 "not": {3899 "enum": [3900 "me",3901 "layer"3902 ]3903 }3904 }3905 ],3906 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3907 "type": "string"3908 },3909 "blockedBy": {3910 "items": {3911 "allOf": [3912 {3913 "not": {3914 "enum": [3915 "me",3916 "layer"3917 ]3918 }3919 }3920 ],3921 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3922 "type": "string"3923 },3924 "type": "array"3925 },3926 "claimed": {3927 "type": "boolean"3928 },3929 "kind": {3930 "pattern": "^[a-z][a-zA-Z0-9-]*$",3931 "type": "string"3932 },3933 "reserve": {3934 "enum": [3935 "newcomers",3936 "people"3937 ],3938 "type": "string"3939 },3940 "territory": {3941 "minLength": 1,3942 "type": "string"3943 },3944 "want": {3945 "minLength": 1,3946 "type": "string"3947 }3948 },3949 "required": [3950 "ask",3951 "blockedBy",3952 "claimed",3953 "kind",3954 "territory",3955 "want"3956 ],3957 "type": "object"3958 },3959 "posture": {3960 "enum": [3961 "open",3962 "openWithSealedEvidence",3963 "openOnSchedule",3964 "openCore",3965 "sourceAvailable"3966 ],3967 "type": "string"3968 },3969 "project": {3970 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",3971 "type": "string"3972 },3973 "takeable": {3974 "type": "boolean"3975 }3976 },3977 "required": [3978 "ask",3979 "posture",3980 "project",3981 "takeable"3982 ],3983 "type": "object"3984 },3985 "type": "array"3986 }3987 },3988 "required": [3989 "entries"3990 ],3991 "type": "object"3992 },3993 "initProject.error": {3994 "anyOf": [3995 {3996 "$ref": "#/$defs/ProjectExistsEncoded"3997 },3998 {3999 "$ref": "#/$defs/ImportFailedEncoded"4000 }4001 ]4002 },4003 "initProject.payload": {4004 "additionalProperties": true,4005 "properties": {4006 "import": {4007 "additionalProperties": true,4008 "properties": {4009 "branch": {4010 "minLength": 1,4011 "type": "string"4012 },4013 "url": {4014 "pattern": "^https:\\/\\/\\S+$",4015 "type": "string"4016 }4017 },4018 "required": [4019 "url"4020 ],4021 "type": "object"4022 },4023 "project": {4024 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4025 "type": "string"4026 }4027 },4028 "required": [4029 "project"4030 ],4031 "type": "object"4032 },4033 "initProject.success": {4034 "additionalProperties": true,4035 "properties": {4036 "landed": {4037 "pattern": "^[0-9a-f]{40}$",4038 "type": "string"4039 },4040 "project": {4041 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4042 "type": "string"4043 },4044 "remote": {4045 "minLength": 1,4046 "type": "string"4047 }4048 },4049 "required": [4050 "project",4051 "remote"4052 ],4053 "type": "object"4054 },4055 "land.error": {4056 "anyOf": [4057 {4058 "$ref": "#/$defs/UnknownProjectEncoded"4059 },4060 {4061 "$ref": "#/$defs/NotDeciderEncoded"4062 },4063 {4064 "$ref": "#/$defs/StaleBaseEncoded"4065 },4066 {4067 "$ref": "#/$defs/RepoBusyEncoded"4068 }4069 ]4070 },4071 "land.payload": {4072 "additionalProperties": true,4073 "properties": {4074 "base": {4075 "pattern": "^[0-9a-f]{40}$",4076 "type": "string"4077 },4078 "head": {4079 "pattern": "^[0-9a-f]{40}$",4080 "type": "string"4081 },4082 "message": {4083 "minLength": 1,4084 "type": "string"4085 },4086 "project": {4087 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4088 "type": "string"4089 },4090 "requestId": {4091 "pattern": "^[A-Za-z0-9_-]{8,64}$",4092 "type": "string"4093 }4094 },4095 "required": [4096 "base",4097 "head",4098 "message",4099 "project",4100 "requestId"4101 ],4102 "type": "object"4103 },4104 "land.success": {4105 "additionalProperties": true,4106 "properties": {4107 "base": {4108 "pattern": "^[0-9a-f]{40}$",4109 "type": "string"4110 },4111 "head": {4112 "pattern": "^[0-9a-f]{40}$",4113 "type": "string"4114 },4115 "outcome": {4116 "anyOf": [4117 {4118 "additionalProperties": true,4119 "properties": {4120 "_tag": {4121 "enum": [4122 "AwaitingDecision"4123 ],4124 "type": "string"4125 },4126 "decision": {4127 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",4128 "type": "string"4129 }4130 },4131 "required": [4132 "_tag",4133 "decision"4134 ],4135 "type": "object"4136 },4137 {4138 "additionalProperties": true,4139 "properties": {4140 "_tag": {4141 "enum": [4142 "AwaitingFinish"4143 ],4144 "type": "string"4145 },4146 "decider": {4147 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",4148 "type": "string"4149 }4150 },4151 "required": [4152 "_tag"4153 ],4154 "type": "object"4155 },4156 {4157 "additionalProperties": true,4158 "properties": {4159 "_tag": {4160 "enum": [4161 "Checking"4162 ],4163 "type": "string"4164 },4165 "stage": {4166 "enum": [4167 "parse",4168 "shape",4169 "merge",4170 "cheap",4171 "checks",4172 "heldBack",4173 "human"4174 ],4175 "type": "string"4176 }4177 },4178 "required": [4179 "_tag",4180 "stage"4181 ],4182 "type": "object"4183 },4184 {4185 "additionalProperties": true,4186 "properties": {4187 "_tag": {4188 "enum": [4189 "Landed"4190 ],4191 "type": "string"4192 },4193 "sha": {4194 "pattern": "^[0-9a-f]{40}$",4195 "type": "string"4196 }4197 },4198 "required": [4199 "_tag",4200 "sha"4201 ],4202 "type": "object"4203 },4204 {4205 "additionalProperties": true,4206 "properties": {4207 "_tag": {4208 "enum": [4209 "Refused"4210 ],4211 "type": "string"4212 },4213 "refusals": {4214 "items": {4215 "anyOf": [4216 {4217 "$ref": "#/$defs/NotClaimedEncoded"4218 },4219 {4220 "$ref": "#/$defs/ClaimLapsedEncoded"4221 },4222 {4223 "$ref": "#/$defs/NotVouchedEncoded"4224 },4225 {4226 "$ref": "#/$defs/CapReachedEncoded"4227 },4228 {4229 "$ref": "#/$defs/AskFullEncoded"4230 },4231 {4232 "$ref": "#/$defs/NoAskEncoded"4233 },4234 {4235 "$ref": "#/$defs/RepoBusyEncoded"4236 },4237 {4238 "$ref": "#/$defs/DirectPushEncoded"4239 },4240 {4241 "$ref": "#/$defs/AskBlockedEncoded"4242 },4243 {4244 "$ref": "#/$defs/DenouncedEncoded"4245 },4246 {4247 "$ref": "#/$defs/OutOfScopeEncoded"4248 },4249 {4250 "$ref": "#/$defs/TouchedJudgeEncoded"4251 },4252 {4253 "$ref": "#/$defs/WeakenedEncoded"4254 },4255 {4256 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"4257 },4258 {4259 "$ref": "#/$defs/ReachedInternalsEncoded"4260 },4261 {4262 "$ref": "#/$defs/StaleBaseEncoded"4263 },4264 {4265 "$ref": "#/$defs/StaleLayerEncoded"4266 },4267 {4268 "$ref": "#/$defs/ChecksFailedEncoded"4269 },4270 {4271 "$ref": "#/$defs/HeldBackFailedEncoded"4272 },4273 {4274 "$ref": "#/$defs/AttemptsExhaustedEncoded"4275 },4276 {4277 "$ref": "#/$defs/FlakeEncoded"4278 },4279 {4280 "$ref": "#/$defs/VerifierBlockedEncoded"4281 },4282 {4283 "$ref": "#/$defs/NotRedFirstEncoded"4284 },4285 {4286 "$ref": "#/$defs/WeakCheckEncoded"4287 },4288 {4289 "$ref": "#/$defs/IncompleteBriefEncoded"4290 },4291 {4292 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"4293 },4294 {4295 "$ref": "#/$defs/SecretInOutputEncoded"4296 },4297 {4298 "$ref": "#/$defs/UnstatedRequirementEncoded"4299 },4300 {4301 "$ref": "#/$defs/PostureChangeEncoded"4302 },4303 {4304 "$ref": "#/$defs/NotDeciderEncoded"4305 },4306 {4307 "$ref": "#/$defs/DecisionClosedEncoded"4308 },4309 {4310 "$ref": "#/$defs/UnknownProjectEncoded"4311 },4312 {4313 "$ref": "#/$defs/UnknownAskEncoded"4314 },4315 {4316 "$ref": "#/$defs/UnknownCommitEncoded"4317 },4318 {4319 "$ref": "#/$defs/UnknownDecisionEncoded"4320 },4321 {4322 "$ref": "#/$defs/ProjectExistsEncoded"4323 },4324 {4325 "$ref": "#/$defs/ImportFailedEncoded"4326 },4327 {4328 "$ref": "#/$defs/UnknownEnvItemEncoded"4329 },4330 {4331 "$ref": "#/$defs/NotSensitiveEncoded"4332 },4333 {4334 "$ref": "#/$defs/ValueTooShortEncoded"4335 }4336 ]4337 },4338 "minItems": 1,4339 "prefixItems": [4340 {4341 "anyOf": [4342 {4343 "$ref": "#/$defs/NotClaimedEncoded"4344 },4345 {4346 "$ref": "#/$defs/ClaimLapsedEncoded"4347 },4348 {4349 "$ref": "#/$defs/NotVouchedEncoded"4350 },4351 {4352 "$ref": "#/$defs/CapReachedEncoded"4353 },4354 {4355 "$ref": "#/$defs/AskFullEncoded"4356 },4357 {4358 "$ref": "#/$defs/NoAskEncoded"4359 },4360 {4361 "$ref": "#/$defs/RepoBusyEncoded"4362 },4363 {4364 "$ref": "#/$defs/DirectPushEncoded"4365 },4366 {4367 "$ref": "#/$defs/AskBlockedEncoded"4368 },4369 {4370 "$ref": "#/$defs/DenouncedEncoded"4371 },4372 {4373 "$ref": "#/$defs/OutOfScopeEncoded"4374 },4375 {4376 "$ref": "#/$defs/TouchedJudgeEncoded"4377 },4378 {4379 "$ref": "#/$defs/WeakenedEncoded"4380 },4381 {4382 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"4383 },4384 {4385 "$ref": "#/$defs/ReachedInternalsEncoded"4386 },4387 {4388 "$ref": "#/$defs/StaleBaseEncoded"4389 },4390 {4391 "$ref": "#/$defs/StaleLayerEncoded"4392 },4393 {4394 "$ref": "#/$defs/ChecksFailedEncoded"4395 },4396 {4397 "$ref": "#/$defs/HeldBackFailedEncoded"4398 },4399 {4400 "$ref": "#/$defs/AttemptsExhaustedEncoded"4401 },4402 {4403 "$ref": "#/$defs/FlakeEncoded"4404 },4405 {4406 "$ref": "#/$defs/VerifierBlockedEncoded"4407 },4408 {4409 "$ref": "#/$defs/NotRedFirstEncoded"4410 },4411 {4412 "$ref": "#/$defs/WeakCheckEncoded"4413 },4414 {4415 "$ref": "#/$defs/IncompleteBriefEncoded"4416 },4417 {4418 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"4419 },4420 {4421 "$ref": "#/$defs/SecretInOutputEncoded"4422 },4423 {4424 "$ref": "#/$defs/UnstatedRequirementEncoded"4425 },4426 {4427 "$ref": "#/$defs/PostureChangeEncoded"4428 },4429 {4430 "$ref": "#/$defs/NotDeciderEncoded"4431 },4432 {4433 "$ref": "#/$defs/DecisionClosedEncoded"4434 },4435 {4436 "$ref": "#/$defs/UnknownProjectEncoded"4437 },4438 {4439 "$ref": "#/$defs/UnknownAskEncoded"4440 },4441 {4442 "$ref": "#/$defs/UnknownCommitEncoded"4443 },4444 {4445 "$ref": "#/$defs/UnknownDecisionEncoded"4446 },4447 {4448 "$ref": "#/$defs/ProjectExistsEncoded"4449 },4450 {4451 "$ref": "#/$defs/ImportFailedEncoded"4452 },4453 {4454 "$ref": "#/$defs/UnknownEnvItemEncoded"4455 },4456 {4457 "$ref": "#/$defs/NotSensitiveEncoded"4458 },4459 {4460 "$ref": "#/$defs/ValueTooShortEncoded"4461 }4462 ]4463 }4464 ],4465 "type": "array"4466 }4467 },4468 "required": [4469 "_tag",4470 "refusals"4471 ],4472 "type": "object"4473 },4474 {4475 "additionalProperties": true,4476 "properties": {4477 "_tag": {4478 "enum": [4479 "WaitingOnParent"4480 ],4481 "type": "string"4482 },4483 "ask": {4484 "allOf": [4485 {4486 "not": {4487 "enum": [4488 "me",4489 "layer"4490 ]4491 }4492 }4493 ],4494 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4495 "type": "string"4496 }4497 },4498 "required": [4499 "_tag",4500 "ask"4501 ],4502 "type": "object"4503 }4504 ]4505 },4506 "project": {4507 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4508 "type": "string"4509 },4510 "requestId": {4511 "pattern": "^[A-Za-z0-9_-]{8,64}$",4512 "type": "string"4513 }4514 },4515 "required": [4516 "base",4517 "head",4518 "outcome",4519 "project",4520 "requestId"4521 ],4522 "type": "object"4523 },4524 "landing.error": {4525 "anyOf": [4526 {4527 "$ref": "#/$defs/UnknownProjectEncoded"4528 },4529 {4530 "$ref": "#/$defs/UnknownCommitEncoded"4531 }4532 ]4533 },4534 "landing.payload": {4535 "additionalProperties": true,4536 "properties": {4537 "project": {4538 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4539 "type": "string"4540 },4541 "sha": {4542 "pattern": "^[0-9a-f]{40}$",4543 "type": "string"4544 }4545 },4546 "required": [4547 "project",4548 "sha"4549 ],4550 "type": "object"4551 },4552 "landing.success": {4553 "additionalProperties": true,4554 "properties": {4555 "landing": {4556 "additionalProperties": true,4557 "properties": {4558 "ask": {4559 "allOf": [4560 {4561 "not": {4562 "enum": [4563 "me",4564 "layer"4565 ]4566 }4567 }4568 ],4569 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4570 "type": "string"4571 },4572 "assisted": {4573 "items": {4574 "additionalProperties": true,4575 "properties": {4576 "harness": {4577 "minLength": 1,4578 "type": "string"4579 },4580 "model": {4581 "minLength": 1,4582 "type": "string"4583 },4584 "verified": {4585 "type": "boolean"4586 }4587 },4588 "required": [4589 "harness",4590 "verified"4591 ],4592 "type": "object"4593 },4594 "type": "array"4595 },4596 "author": {4597 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",4598 "type": "string"4599 },4600 "credits": {4601 "items": {4602 "additionalProperties": true,4603 "properties": {4604 "handle": {4605 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",4606 "type": "string"4607 },4608 "role": {4609 "enum": [4610 "Asked-by",4611 "Signed-off-by",4612 "Decided-by",4613 "Mentored-by",4614 "Finished-by",4615 "Advised-by",4616 "Released-by"4617 ],4618 "type": "string"4619 }4620 },4621 "required": [4622 "handle",4623 "role"4624 ],4625 "type": "object"4626 },4627 "type": "array"4628 },4629 "heldBackTrailer": {4630 "minLength": 1,4631 "type": "string"4632 },4633 "landedAt": {4634 "type": "string"4635 },4636 "parent": {4637 "pattern": "^[0-9a-f]{40}$",4638 "type": "string"4639 },4640 "project": {4641 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4642 "type": "string"4643 },4644 "requestId": {4645 "pattern": "^[A-Za-z0-9_-]{8,64}$",4646 "type": "string"4647 },4648 "sha": {4649 "pattern": "^[0-9a-f]{40}$",4650 "type": "string"4651 },4652 "verdict": {4653 "additionalProperties": true,4654 "properties": {4655 "ask": {4656 "allOf": [4657 {4658 "not": {4659 "enum": [4660 "me",4661 "layer"4662 ]4663 }4664 }4665 ],4666 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",4667 "type": "string"4668 },4669 "at": {4670 "type": "string"4671 },4672 "base": {4673 "pattern": "^[0-9a-f]{40}$",4674 "type": "string"4675 },4676 "checkVersion": {4677 "minLength": 1,4678 "type": "string"4679 },4680 "head": {4681 "pattern": "^[0-9a-f]{40}$",4682 "type": "string"4683 },4684 "heldBack": {4685 "items": {4686 "additionalProperties": true,4687 "properties": {4688 "area": {4689 "pattern": "^[a-z][a-zA-Z0-9-]*$",4690 "type": "string"4691 },4692 "passed": {4693 "type": "integer"4694 },4695 "suite": {4696 "pattern": "^sha256:[0-9a-f]{64}$",4697 "type": "string"4698 },4699 "total": {4700 "type": "integer"4701 }4702 },4703 "required": [4704 "area",4705 "passed",4706 "suite",4707 "total"4708 ],4709 "type": "object"4710 },4711 "type": "array"4712 },4713 "lanes": {4714 "items": {4715 "additionalProperties": true,4716 "properties": {4717 "command": {4718 "minLength": 1,4719 "type": "string"4720 },4721 "durationMs": {4722 "type": "integer"4723 },4724 "lane": {4725 "pattern": "^[a-z][a-zA-Z0-9-]*$",4726 "type": "string"4727 },4728 "logRef": {4729 "minLength": 1,4730 "type": "string"4731 },4732 "result": {4733 "enum": [4734 "passed",4735 "failed",4736 "loadError",4737 "flaked",4738 "blocked"4739 ],4740 "type": "string"4741 }4742 },4743 "required": [4744 "command",4745 "durationMs",4746 "lane",4747 "result"4748 ],4749 "type": "object"4750 },4751 "type": "array"4752 },4753 "outcome": {4754 "anyOf": [4755 {4756 "additionalProperties": true,4757 "properties": {4758 "_tag": {4759 "enum": [4760 "AwaitingDecision"4761 ],4762 "type": "string"4763 },4764 "decision": {4765 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",4766 "type": "string"4767 }4768 },4769 "required": [4770 "_tag",4771 "decision"4772 ],4773 "type": "object"4774 },4775 {4776 "additionalProperties": true,4777 "properties": {4778 "_tag": {4779 "enum": [4780 "AwaitingFinish"4781 ],4782 "type": "string"4783 },4784 "decider": {4785 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",4786 "type": "string"4787 }4788 },4789 "required": [4790 "_tag"4791 ],4792 "type": "object"4793 },4794 {4795 "additionalProperties": true,4796 "properties": {4797 "_tag": {4798 "enum": [4799 "Checking"4800 ],4801 "type": "string"4802 },4803 "stage": {4804 "enum": [4805 "parse",4806 "shape",4807 "merge",4808 "cheap",4809 "checks",4810 "heldBack",4811 "human"4812 ],4813 "type": "string"4814 }4815 },4816 "required": [4817 "_tag",4818 "stage"4819 ],4820 "type": "object"4821 },4822 {4823 "additionalProperties": true,4824 "properties": {4825 "_tag": {4826 "enum": [4827 "Landed"4828 ],4829 "type": "string"4830 },4831 "sha": {4832 "pattern": "^[0-9a-f]{40}$",4833 "type": "string"4834 }4835 },4836 "required": [4837 "_tag",4838 "sha"4839 ],4840 "type": "object"4841 },4842 {4843 "additionalProperties": true,4844 "properties": {4845 "_tag": {4846 "enum": [4847 "Refused"4848 ],4849 "type": "string"4850 },4851 "refusals": {4852 "items": {4853 "anyOf": [4854 {4855 "$ref": "#/$defs/NotClaimedEncoded"4856 },4857 {4858 "$ref": "#/$defs/ClaimLapsedEncoded"4859 },4860 {4861 "$ref": "#/$defs/NotVouchedEncoded"4862 },4863 {4864 "$ref": "#/$defs/CapReachedEncoded"4865 },4866 {4867 "$ref": "#/$defs/AskFullEncoded"4868 },4869 {4870 "$ref": "#/$defs/NoAskEncoded"4871 },4872 {4873 "$ref": "#/$defs/RepoBusyEncoded"4874 },4875 {4876 "$ref": "#/$defs/DirectPushEncoded"4877 },4878 {4879 "$ref": "#/$defs/AskBlockedEncoded"4880 },4881 {4882 "$ref": "#/$defs/DenouncedEncoded"4883 },4884 {4885 "$ref": "#/$defs/OutOfScopeEncoded"4886 },4887 {4888 "$ref": "#/$defs/TouchedJudgeEncoded"4889 },4890 {4891 "$ref": "#/$defs/WeakenedEncoded"4892 },4893 {4894 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"4895 },4896 {4897 "$ref": "#/$defs/ReachedInternalsEncoded"4898 },4899 {4900 "$ref": "#/$defs/StaleBaseEncoded"4901 },4902 {4903 "$ref": "#/$defs/StaleLayerEncoded"4904 },4905 {4906 "$ref": "#/$defs/ChecksFailedEncoded"4907 },4908 {4909 "$ref": "#/$defs/HeldBackFailedEncoded"4910 },4911 {4912 "$ref": "#/$defs/AttemptsExhaustedEncoded"4913 },4914 {4915 "$ref": "#/$defs/FlakeEncoded"4916 },4917 {4918 "$ref": "#/$defs/VerifierBlockedEncoded"4919 },4920 {4921 "$ref": "#/$defs/NotRedFirstEncoded"4922 },4923 {4924 "$ref": "#/$defs/WeakCheckEncoded"4925 },4926 {4927 "$ref": "#/$defs/IncompleteBriefEncoded"4928 },4929 {4930 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"4931 },4932 {4933 "$ref": "#/$defs/SecretInOutputEncoded"4934 },4935 {4936 "$ref": "#/$defs/UnstatedRequirementEncoded"4937 },4938 {4939 "$ref": "#/$defs/PostureChangeEncoded"4940 },4941 {4942 "$ref": "#/$defs/NotDeciderEncoded"4943 },4944 {4945 "$ref": "#/$defs/DecisionClosedEncoded"4946 },4947 {4948 "$ref": "#/$defs/UnknownProjectEncoded"4949 },4950 {4951 "$ref": "#/$defs/UnknownAskEncoded"4952 },4953 {4954 "$ref": "#/$defs/UnknownCommitEncoded"4955 },4956 {4957 "$ref": "#/$defs/UnknownDecisionEncoded"4958 },4959 {4960 "$ref": "#/$defs/ProjectExistsEncoded"4961 },4962 {4963 "$ref": "#/$defs/ImportFailedEncoded"4964 },4965 {4966 "$ref": "#/$defs/UnknownEnvItemEncoded"4967 },4968 {4969 "$ref": "#/$defs/NotSensitiveEncoded"4970 },4971 {4972 "$ref": "#/$defs/ValueTooShortEncoded"4973 }4974 ]4975 },4976 "minItems": 1,4977 "prefixItems": [4978 {4979 "anyOf": [4980 {4981 "$ref": "#/$defs/NotClaimedEncoded"4982 },4983 {4984 "$ref": "#/$defs/ClaimLapsedEncoded"4985 },4986 {4987 "$ref": "#/$defs/NotVouchedEncoded"4988 },4989 {4990 "$ref": "#/$defs/CapReachedEncoded"4991 },4992 {4993 "$ref": "#/$defs/AskFullEncoded"4994 },4995 {4996 "$ref": "#/$defs/NoAskEncoded"4997 },4998 {4999 "$ref": "#/$defs/RepoBusyEncoded"5000 },5001 {5002 "$ref": "#/$defs/DirectPushEncoded"5003 },5004 {5005 "$ref": "#/$defs/AskBlockedEncoded"5006 },5007 {5008 "$ref": "#/$defs/DenouncedEncoded"5009 },5010 {5011 "$ref": "#/$defs/OutOfScopeEncoded"5012 },5013 {5014 "$ref": "#/$defs/TouchedJudgeEncoded"5015 },5016 {5017 "$ref": "#/$defs/WeakenedEncoded"5018 },5019 {5020 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"5021 },5022 {5023 "$ref": "#/$defs/ReachedInternalsEncoded"5024 },5025 {5026 "$ref": "#/$defs/StaleBaseEncoded"5027 },5028 {5029 "$ref": "#/$defs/StaleLayerEncoded"5030 },5031 {5032 "$ref": "#/$defs/ChecksFailedEncoded"5033 },5034 {5035 "$ref": "#/$defs/HeldBackFailedEncoded"5036 },5037 {5038 "$ref": "#/$defs/AttemptsExhaustedEncoded"5039 },5040 {5041 "$ref": "#/$defs/FlakeEncoded"5042 },5043 {5044 "$ref": "#/$defs/VerifierBlockedEncoded"5045 },5046 {5047 "$ref": "#/$defs/NotRedFirstEncoded"5048 },5049 {5050 "$ref": "#/$defs/WeakCheckEncoded"5051 },5052 {5053 "$ref": "#/$defs/IncompleteBriefEncoded"5054 },5055 {5056 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"5057 },5058 {5059 "$ref": "#/$defs/SecretInOutputEncoded"5060 },5061 {5062 "$ref": "#/$defs/UnstatedRequirementEncoded"5063 },5064 {5065 "$ref": "#/$defs/PostureChangeEncoded"5066 },5067 {5068 "$ref": "#/$defs/NotDeciderEncoded"5069 },5070 {5071 "$ref": "#/$defs/DecisionClosedEncoded"5072 },5073 {5074 "$ref": "#/$defs/UnknownProjectEncoded"5075 },5076 {5077 "$ref": "#/$defs/UnknownAskEncoded"5078 },5079 {5080 "$ref": "#/$defs/UnknownCommitEncoded"5081 },5082 {5083 "$ref": "#/$defs/UnknownDecisionEncoded"5084 },5085 {5086 "$ref": "#/$defs/ProjectExistsEncoded"5087 },5088 {5089 "$ref": "#/$defs/ImportFailedEncoded"5090 },5091 {5092 "$ref": "#/$defs/UnknownEnvItemEncoded"5093 },5094 {5095 "$ref": "#/$defs/NotSensitiveEncoded"5096 },5097 {5098 "$ref": "#/$defs/ValueTooShortEncoded"5099 }5100 ]5101 }5102 ],5103 "type": "array"5104 }5105 },5106 "required": [5107 "_tag",5108 "refusals"5109 ],5110 "type": "object"5111 },5112 {5113 "additionalProperties": true,5114 "properties": {5115 "_tag": {5116 "enum": [5117 "WaitingOnParent"5118 ],5119 "type": "string"5120 },5121 "ask": {5122 "allOf": [5123 {5124 "not": {5125 "enum": [5126 "me",5127 "layer"5128 ]5129 }5130 }5131 ],5132 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5133 "type": "string"5134 }5135 },5136 "required": [5137 "_tag",5138 "ask"5139 ],5140 "type": "object"5141 }5142 ]5143 },5144 "patchId": {5145 "pattern": "^[0-9a-f]{64}$",5146 "type": "string"5147 },5148 "project": {5149 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5150 "type": "string"5151 },5152 "stage": {5153 "enum": [5154 "parse",5155 "shape",5156 "merge",5157 "cheap",5158 "checks",5159 "heldBack",5160 "human"5161 ],5162 "type": "string"5163 },5164 "tree": {5165 "pattern": "^[0-9a-f]{40}$",5166 "type": "string"5167 },5168 "verifier": {5169 "enum": [5170 "platform"5171 ],5172 "type": "string"5173 }5174 },5175 "required": [5176 "ask",5177 "at",5178 "base",5179 "checkVersion",5180 "head",5181 "heldBack",5182 "lanes",5183 "outcome",5184 "patchId",5185 "project",5186 "stage",5187 "tree",5188 "verifier"5189 ],5190 "type": "object"5191 }5192 },5193 "required": [5194 "assisted",5195 "author",5196 "credits",5197 "landedAt",5198 "parent",5199 "project",5200 "sha"5201 ],5202 "type": "object"5203 }5204 },5205 "required": [5206 "landing"5207 ],5208 "type": "object"5209 },5210 "ledger.error": {5211 "$ref": "#/$defs/UnknownProjectEncoded"5212 },5213 "ledger.payload": {5214 "additionalProperties": true,5215 "properties": {5216 "project": {5217 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5218 "type": "string"5219 }5220 },5221 "required": [5222 "project"5223 ],5224 "type": "object"5225 },5226 "ledger.success": {5227 "additionalProperties": true,5228 "properties": {5229 "entries": {5230 "items": {5231 "anyOf": [5232 {5233 "additionalProperties": true,5234 "properties": {5235 "_tag": {5236 "enum": [5237 "Admitted"5238 ],5239 "type": "string"5240 },5241 "area": {5242 "pattern": "^[a-z][a-zA-Z0-9-]*$",5243 "type": "string"5244 },5245 "at": {5246 "type": "string"5247 },5248 "knownBadCaught": {5249 "type": "integer"5250 },5251 "mainRuns": {5252 "type": "integer"5253 },5254 "seq": {5255 "type": "integer"5256 },5257 "suite": {5258 "pattern": "^sha256:[0-9a-f]{64}$",5259 "type": "string"5260 }5261 },5262 "required": [5263 "_tag",5264 "area",5265 "at",5266 "knownBadCaught",5267 "mainRuns",5268 "seq",5269 "suite"5270 ],5271 "type": "object"5272 },5273 {5274 "additionalProperties": true,5275 "properties": {5276 "_tag": {5277 "enum": [5278 "CommitmentPublished"5279 ],5280 "type": "string"5281 },5282 "area": {5283 "pattern": "^[a-z][a-zA-Z0-9-]*$",5284 "type": "string"5285 },5286 "at": {5287 "type": "string"5288 },5289 "authors": {5290 "type": "integer"5291 },5292 "checks": {5293 "type": "integer"5294 },5295 "seq": {5296 "type": "integer"5297 },5298 "suite": {5299 "pattern": "^sha256:[0-9a-f]{64}$",5300 "type": "string"5301 }5302 },5303 "required": [5304 "_tag",5305 "area",5306 "at",5307 "authors",5308 "checks",5309 "seq",5310 "suite"5311 ],5312 "type": "object"5313 },5314 {5315 "additionalProperties": true,5316 "properties": {5317 "_tag": {5318 "enum": [5319 "CountChanged"5320 ],5321 "type": "string"5322 },5323 "area": {5324 "pattern": "^[a-z][a-zA-Z0-9-]*$",5325 "type": "string"5326 },5327 "at": {5328 "type": "string"5329 },5330 "count": {5331 "type": "integer"5332 },5333 "layer": {5334 "pattern": "^[a-z][a-zA-Z0-9-]*$",5335 "type": "string"5336 },5337 "seq": {5338 "type": "integer"5339 }5340 },5341 "required": [5342 "_tag",5343 "area",5344 "at",5345 "count",5346 "layer",5347 "seq"5348 ],5349 "type": "object"5350 },5351 {5352 "additionalProperties": true,5353 "properties": {5354 "_tag": {5355 "enum": [5356 "LayerDeclared"5357 ],5358 "type": "string"5359 },5360 "at": {5361 "type": "string"5362 },5363 "disclose": {5364 "enum": [5365 "public",5366 "sealed",5367 "counted",5368 "declared",5369 "hidden",5370 "writeOnly"5371 ],5372 "type": "string"5373 },5374 "kinds": {5375 "items": {5376 "enum": [5377 "checks",5378 "agent-config",5379 "env",5380 "experiment",5381 "notes",5382 "fix",5383 "session",5384 "personal",5385 "attachment",5386 "source"5387 ],5388 "type": "string"5389 },5390 "minItems": 1,5391 "prefixItems": [5392 {5393 "enum": [5394 "checks",5395 "agent-config",5396 "env",5397 "experiment",5398 "notes",5399 "fix",5400 "session",5401 "personal",5402 "attachment",5403 "source"5404 ],5405 "type": "string"5406 }5407 ],5408 "type": "array"5409 },5410 "layer": {5411 "pattern": "^[a-z][a-zA-Z0-9-]*$",5412 "type": "string"5413 },5414 "seq": {5415 "type": "integer"5416 }5417 },5418 "required": [5419 "_tag",5420 "at",5421 "disclose",5422 "kinds",5423 "layer",5424 "seq"5425 ],5426 "type": "object"5427 },5428 {5429 "additionalProperties": true,5430 "properties": {5431 "_tag": {5432 "enum": [5433 "PostureChanged"5434 ],5435 "type": "string"5436 },5437 "at": {5438 "type": "string"5439 },5440 "decision": {5441 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",5442 "type": "string"5443 },5444 "from": {5445 "enum": [5446 "open",5447 "openWithSealedEvidence",5448 "openOnSchedule",5449 "openCore",5450 "sourceAvailable"5451 ],5452 "type": "string"5453 },5454 "seq": {5455 "type": "integer"5456 },5457 "to": {5458 "enum": [5459 "open",5460 "openWithSealedEvidence",5461 "openOnSchedule",5462 "openCore",5463 "sourceAvailable"5464 ],5465 "type": "string"5466 }5467 },5468 "required": [5469 "_tag",5470 "at",5471 "decision",5472 "from",5473 "seq",5474 "to"5475 ],5476 "type": "object"5477 },5478 {5479 "additionalProperties": true,5480 "properties": {5481 "_tag": {5482 "enum": [5483 "Released"5484 ],5485 "type": "string"5486 },5487 "at": {5488 "type": "string"5489 },5490 "by": {5491 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",5492 "type": "string"5493 },5494 "landing": {5495 "pattern": "^[0-9a-f]{40}$",5496 "type": "string"5497 },5498 "layer": {5499 "pattern": "^[a-z][a-zA-Z0-9-]*$",5500 "type": "string"5501 },5502 "paths": {5503 "type": "integer"5504 },5505 "seq": {5506 "type": "integer"5507 }5508 },5509 "required": [5510 "_tag",5511 "at",5512 "by",5513 "landing",5514 "layer",5515 "paths",5516 "seq"5517 ],5518 "type": "object"5519 },5520 {5521 "additionalProperties": true,5522 "properties": {5523 "_tag": {5524 "enum": [5525 "ValueSet"5526 ],5527 "type": "string"5528 },5529 "at": {5530 "type": "string"5531 },5532 "by": {5533 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",5534 "type": "string"5535 },5536 "key": {5537 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",5538 "type": "string"5539 },5540 "seq": {5541 "type": "integer"5542 }5543 },5544 "required": [5545 "_tag",5546 "at",5547 "by",5548 "key",5549 "seq"5550 ],5551 "type": "object"5552 }5553 ]5554 },5555 "type": "array"5556 },5557 "layers": {5558 "items": {5559 "additionalProperties": true,5560 "properties": {5561 "audience": {5562 "enum": [5563 "public",5564 "contributors",5565 "claimants",5566 "maintainers",5567 "team",5568 "security",5569 "sponsors",5570 "personal",5571 "platform"5572 ],5573 "type": "string"5574 },5575 "disclose": {5576 "enum": [5577 "public",5578 "sealed",5579 "counted",5580 "declared",5581 "hidden",5582 "writeOnly"5583 ],5584 "type": "string"5585 },5586 "holds": {5587 "items": {5588 "enum": [5589 "checks",5590 "agent-config",5591 "env",5592 "experiment",5593 "notes",5594 "fix",5595 "session",5596 "personal",5597 "attachment",5598 "source"5599 ],5600 "type": "string"5601 },5602 "minItems": 1,5603 "prefixItems": [5604 {5605 "enum": [5606 "checks",5607 "agent-config",5608 "env",5609 "experiment",5610 "notes",5611 "fix",5612 "session",5613 "personal",5614 "attachment",5615 "source"5616 ],5617 "type": "string"5618 }5619 ],5620 "type": "array"5621 },5622 "maxDays": {5623 "type": "integer"5624 },5625 "name": {5626 "pattern": "^[a-z][a-zA-Z0-9-]*$",5627 "type": "string"5628 },5629 "reason": {5630 "minLength": 1,5631 "type": "string"5632 },5633 "repo": {5634 "pattern": "^[A-Za-z0-9._-]+$",5635 "type": "string"5636 },5637 "sunsetDays": {5638 "type": "integer"5639 }5640 },5641 "required": [5642 "audience",5643 "disclose",5644 "holds",5645 "name",5646 "reason"5647 ],5648 "type": "object"5649 },5650 "type": "array"5651 },5652 "posture": {5653 "enum": [5654 "open",5655 "openWithSealedEvidence",5656 "openOnSchedule",5657 "openCore",5658 "sourceAvailable"5659 ],5660 "type": "string"5661 },5662 "postureLabel": {5663 "minLength": 1,5664 "type": "string"5665 },5666 "project": {5667 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5668 "type": "string"5669 }5670 },5671 "required": [5672 "entries",5673 "layers",5674 "posture",5675 "postureLabel",5676 "project"5677 ],5678 "type": "object"5679 },5680 "listAsks.error": {5681 "$ref": "#/$defs/UnknownProjectEncoded"5682 },5683 "listAsks.payload": {5684 "additionalProperties": true,5685 "properties": {5686 "project": {
84 unmodified lines
5771 "asks"5772 ],5773 "type": "object"5774 },5775 "listProjects.error": {5776 "not": {}5777 },5778 "listProjects.payload": {5779 "additionalProperties": false,5780 "type": "object"5781 },5782 "listProjects.success": {5783 "additionalProperties": true,5784 "properties": {5785 "projects": {5786 "items": {5787 "additionalProperties": true,5788 "properties": {5789 "landedAt": {5790 "type": "string"5791 },5792 "openAsks": {5793 "type": "integer"5794 },5795 "posture": {5796 "enum": [5797 "open",5798 "openWithSealedEvidence",5799 "openOnSchedule",5800 "openCore",5801 "sourceAvailable"5802 ],5803 "type": "string"5804 },5805 "project": {5806 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5807 "type": "string"5808 }5809 },5810 "required": [5811 "openAsks",5812 "posture",5813 "project"5814 ],5815 "type": "object"5816 },5817 "type": "array"5818 }5819 },5820 "required": [5821 "projects"5822 ],5823 "type": "object"5824 },5825 "openAsk.error": {5826 "anyOf": [5827 {5828 "$ref": "#/$defs/UnknownProjectEncoded"5829 },5830 {5831 "$ref": "#/$defs/NotDeciderEncoded"5832 },5833 {5834 "$ref": "#/$defs/NotRedFirstEncoded"5835 },5836 {5837 "$ref": "#/$defs/WeakCheckEncoded"5838 },5839 {5840 "$ref": "#/$defs/IncompleteBriefEncoded"5841 },5842 {5843 "$ref": "#/$defs/TouchedJudgeEncoded"5844 },5845 {5846 "$ref": "#/$defs/VerifierBlockedEncoded"5847 },5848 {5849 "$ref": "#/$defs/StaleBaseEncoded"5850 }5851 ]5852 },5853 "openAsk.payload": {5854 "additionalProperties": true,5855 "properties": {5856 "ask": {5857 "allOf": [5858 {5859 "not": {5860 "enum": [5861 "me",5862 "layer"5863 ]5864 }5865 }5866 ],5867 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5868 "type": "string"5869 },5870 "files": {5871 "items": {5872 "additionalProperties": true,5873 "properties": {5874 "content": {5875 "type": "string"5876 },5877 "path": {5878 "minLength": 1,5879 "type": "string"5880 }5881 },5882 "required": [5883 "content",5884 "path"5885 ],5886 "type": "object"5887 },5888 "minItems": 1,5889 "prefixItems": [5890 {5891 "additionalProperties": true,5892 "properties": {5893 "content": {5894 "type": "string"5895 },5896 "path": {5897 "minLength": 1,5898 "type": "string"5899 }5900 },5901 "required": [5902 "content",5903 "path"5904 ],5905 "type": "object"5906 }5907 ],5908 "type": "array"5909 },5910 "project": {5911 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5912 "type": "string"5913 }5914 },5915 "required": [5916 "ask",5917 "files",5918 "project"5919 ],5920 "type": "object"5921 },5922 "openAsk.success": {5923 "additionalProperties": true,5924 "properties": {5925 "ask": {5926 "additionalProperties": true,5927 "properties": {5928 "askedBy": {5929 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",5930 "type": "string"5931 },5932 "blockedBy": {5933 "items": {5934 "allOf": [5935 {5936 "not": {5937 "enum": [5938 "me",5939 "layer"5940 ]5941 }5942 }5943 ],5944 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",5945 "type": "string"5946 },5947 "type": "array"5948 },5949 "brief": {5950 "additionalProperties": true,5951 "properties": {5952 "context": {5953 "items": {5954 "minLength": 1,5955 "type": "string"5956 },5957 "type": "array"5958 },5959 "current": {5960 "minLength": 1,5961 "type": "string"5962 },5963 "outOfScope": {5964 "items": {5965 "minLength": 1,5966 "type": "string"5967 },5968 "minItems": 1,5969 "prefixItems": [5970 {5971 "minLength": 1,5972 "type": "string"5973 }5974 ],5975 "type": "array"5976 },5977 "terms": {5978 "items": {5979 "minLength": 1,5980 "type": "string"5981 },5982 "type": "array"5983 },5984 "want": {5985 "minLength": 1,5986 "type": "string"5987 }5988 },5989 "required": [5990 "want"5991 ],5992 "type": "object"5993 },5994 "check": {5995 "anyOf": [5996 {5997 "additionalProperties": true,5998 "properties": {5999 "_tag": {6000 "enum": [6001 "LintToZero"6002 ],6003 "type": "string"6004 },6005 "command": {6006 "minLength": 1,6007 "type": "string"6008 },6009 "rule": {6010 "minLength": 1,6011 "type": "string"6012 },6013 "territory": {6014 "minLength": 1,6015 "type": "string"6016 }6017 },6018 "required": [6019 "_tag",6020 "command",6021 "rule"6022 ],6023 "type": "object"6024 },6025 {6026 "additionalProperties": true,6027 "properties": {6028 "_tag": {6029 "enum": [6030 "Migrate"6031 ],6032 "type": "string"6033 },6034 "count": {6035 "minLength": 1,6036 "type": "string"6037 },6038 "from": {6039 "minLength": 1,6040 "type": "string"6041 },6042 "to": {6043 "minLength": 1,6044 "type": "string"6045 }6046 },6047 "required": [6048 "_tag",6049 "count",6050 "from"6051 ],6052 "type": "object"6053 },6054 {6055 "additionalProperties": true,6056 "properties": {6057 "_tag": {6058 "enum": [6059 "Ratchet"6060 ],6061 "type": "string"6062 },6063 "ratchet": {6064 "pattern": "^[a-z][a-zA-Z0-9-]*$",6065 "type": "string"6066 }6067 },6068 "required": [6069 "_tag",6070 "ratchet"6071 ],6072 "type": "object"6073 },6074 {6075 "additionalProperties": true,6076 "properties": {6077 "_tag": {6078 "enum": [6079 "RedThenGreen"6080 ],6081 "type": "string"6082 },6083 "path": {6084 "minLength": 1,6085 "type": "string"6086 }6087 },6088 "required": [6089 "_tag",6090 "path"6091 ],6092 "type": "object"6093 },6094 {6095 "additionalProperties": true,6096 "properties": {6097 "_tag": {6098 "enum": [6099 "SymbolAbsent"6100 ],6101 "type": "string"6102 },6103 "count": {6104 "minLength": 1,6105 "type": "string"6106 },6107 "symbol": {6108 "minLength": 1,6109 "type": "string"6110 }6111 },6112 "required": [6113 "_tag",6114 "count",6115 "symbol"6116 ],6117 "type": "object"6118 }6119 ]6120 },6121 "file": {6122 "minLength": 1,6123 "type": "string"6124 },6125 "id": {6126 "allOf": [6127 {6128 "not": {6129 "enum": [6130 "me",6131 "layer"6132 ]6133 }6134 }6135 ],6136 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6137 "type": "string"6138 },6139 "kind": {6140 "pattern": "^[a-z][a-zA-Z0-9-]*$",6141 "type": "string"6142 },6143 "mentor": {6144 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",6145 "type": "string"6146 },6147 "openedAt": {6148 "type": "string"6149 },6150 "openedIn": {6151 "pattern": "^[0-9a-f]{40}$",6152 "type": "string"6153 },6154 "parent": {6155 "allOf": [6156 {6157 "not": {6158 "enum": [6159 "me",6160 "layer"6161 ]6162 }6163 }6164 ],6165 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6166 "type": "string"6167 },6168 "project": {6169 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6170 "type": "string"6171 },6172 "reserve": {6173 "enum": [6174 "newcomers",6175 "people"6176 ],6177 "type": "string"6178 },6179 "state": {6180 "enum": [6181 "open",6182 "claimed",6183 "waitingOnParent",6184 "closed"6185 ],6186 "type": "string"6187 },6188 "territory": {6189 "additionalProperties": true,6190 "properties": {6191 "module": {6192 "minLength": 1,6193 "type": "string"6194 },6195 "paths": {6196 "items": {6197 "minLength": 1,6198 "type": "string"6199 },6200 "minItems": 1,6201 "prefixItems": [6202 {6203 "minLength": 1,6204 "type": "string"6205 }6206 ],6207 "type": "array"6208 },6209 "publicFiles": {6210 "items": {6211 "minLength": 1,6212 "type": "string"6213 },6214 "type": "array"6215 }6216 },6217 "required": [6218 "module",6219 "paths"6220 ],6221 "type": "object"6222 }6223 },6224 "required": [6225 "askedBy",6226 "blockedBy",6227 "brief",6228 "check",6229 "file",6230 "id",6231 "kind",6232 "openedAt",6233 "openedIn",6234 "project",6235 "state",6236 "territory"6237 ],6238 "type": "object"6239 },6240 "landed": {6241 "pattern": "^[0-9a-f]{40}$",6242 "type": "string"6243 }6244 },6245 "required": [6246 "ask",6247 "landed"6248 ],6249 "type": "object"6250 },6251 "proposeAsk.error": {6252 "anyOf": [6253 {6254 "$ref": "#/$defs/UnknownProjectEncoded"6255 },6256 {6257 "$ref": "#/$defs/DenouncedEncoded"6258 },6259 {6260 "$ref": "#/$defs/CapReachedEncoded"6261 }6262 ]6263 },6264 "proposeAsk.payload": {6265 "additionalProperties": true,6266 "properties": {6267 "files": {6268 "items": {6269 "additionalProperties": true,6270 "properties": {6271 "content": {6272 "type": "string"6273 },6274 "path": {6275 "minLength": 1,6276 "type": "string"6277 }6278 },6279 "required": [6280 "content",6281 "path"6282 ],6283 "type": "object"6284 },6285 "minItems": 1,6286 "prefixItems": [6287 {6288 "additionalProperties": true,6289 "properties": {6290 "content": {6291 "type": "string"6292 },6293 "path": {6294 "minLength": 1,6295 "type": "string"6296 }6297 },6298 "required": [6299 "content",6300 "path"6301 ],6302 "type": "object"6303 }6304 ],6305 "type": "array"6306 },6307 "project": {6308 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6309 "type": "string"6310 },6311 "sealed": {6312 "additionalProperties": true,6313 "properties": {6314 "head": {6315 "pattern": "^[0-9a-f]{40}$",6316 "type": "string"6317 }6318 },6319 "required": [6320 "head"6321 ],6322 "type": "object"6323 },6324 "territory": {6325 "minLength": 1,6326 "type": "string"6327 },6328 "want": {6329 "minLength": 1,6330 "type": "string"6331 }6332 },6333 "required": [6334 "project",6335 "want"6336 ],6337 "type": "object"6338 },6339 "proposeAsk.success": {6340 "additionalProperties": true,6341 "properties": {6342 "proposal": {6343 "additionalProperties": true,6344 "properties": {6345 "expiresAt": {6346 "type": "string"6347 },6348 "files": {6349 "items": {6350 "minLength": 1,6351 "type": "string"6352 },6353 "type": "array"6354 },6355 "flags": {6356 "allOf": [6357 {6358 "not": {6359 "enum": [6360 "me",6361 "layer"6362 ]6363 }6364 }6365 ],6366 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6367 "type": "string"6368 },6369 "id": {6370 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",6371 "type": "string"6372 },6373 "openedAt": {6374 "type": "string"6375 },6376 "project": {6377 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6378 "type": "string"6379 },6380 "proposer": {6381 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",6382 "type": "string"6383 },6384 "sealed": {6385 "additionalProperties": true,6386 "properties": {6387 "fork": {6388 "pattern": "^[A-Za-z0-9._-]+$",6389 "type": "string"6390 },6391 "head": {6392 "pattern": "^[0-9a-f]{40}$",6393 "type": "string"6394 }6395 },6396 "required": [6397 "fork",6398 "head"6399 ],6400 "type": "object"6401 },6402 "state": {6403 "enum": [6404 "open",6405 "accepted",6406 "declined",6407 "expired"6408 ],6409 "type": "string"6410 },6411 "territory": {6412 "minLength": 1,6413 "type": "string"6414 },6415 "want": {6416 "minLength": 1,6417 "type": "string"6418 }6419 },6420 "required": [6421 "expiresAt",6422 "files",6423 "id",6424 "openedAt",6425 "project",6426 "proposer",6427 "state",6428 "want"6429 ],6430 "type": "object"6431 }6432 },6433 "required": [6434 "proposal"6435 ],6436 "type": "object"6437 },6438 "release.error": {6439 "anyOf": [6440 {6441 "$ref": "#/$defs/UnknownProjectEncoded"6442 },6443 {6444 "$ref": "#/$defs/NotClaimedEncoded"6445 }6446 ]6447 },6448 "release.payload": {6449 "additionalProperties": true,6450 "properties": {6451 "ask": {6452 "allOf": [6453 {6454 "not": {6455 "enum": [6456 "me",6457 "layer"6458 ]6459 }6460 }6461 ],6462 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6463 "type": "string"6464 },6465 "project": {6466 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6467 "type": "string"6468 }6469 },6470 "required": [6471 "ask",6472 "project"6473 ],6474 "type": "object"6475 },6476 "release.success": {6477 "additionalProperties": true,6478 "properties": {6479 "released": {6480 "type": "boolean"6481 }6482 },6483 "required": [6484 "released"6485 ],6486 "type": "object"6487 },6488 "setEnv.error": {6489 "anyOf": [6490 {6491 "$ref": "#/$defs/UnknownProjectEncoded"6492 },6493 {6494 "$ref": "#/$defs/NotDeciderEncoded"6495 },6496 {6497 "$ref": "#/$defs/UnknownEnvItemEncoded"6498 },6499 {6500 "$ref": "#/$defs/NotSensitiveEncoded"6501 },6502 {6503 "$ref": "#/$defs/ValueTooShortEncoded"6504 }6505 ]6506 },6507 "setEnv.payload": {6508 "additionalProperties": true,6509 "properties": {6510 "acknowledgeShort": {6511 "type": "boolean"6512 },6513 "key": {6514 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",6515 "type": "string"6516 },6517 "project": {6518 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6519 "type": "string"6520 },6521 "value": {6522 "type": "string"6523 }6524 },6525 "required": [6526 "key",6527 "project",6528 "value"6529 ],6530 "type": "object"6531 },6532 "setEnv.success": {6533 "additionalProperties": true,6534 "properties": {6535 "key": {6536 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",6537 "type": "string"6538 },6539 "setAt": {6540 "type": "string"6541 },6542 "setBy": {6543 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",6544 "type": "string"6545 }6546 },6547 "required": [6548 "key",6549 "setAt",6550 "setBy"6551 ],6552 "type": "object"6553 },6554 "showAsk.error": {6555 "anyOf": [6556 {6557 "$ref": "#/$defs/UnknownProjectEncoded"6558 },6559 {6560 "$ref": "#/$defs/UnknownAskEncoded"6561 }6562 ]6563 },6564 "showAsk.payload": {6565 "additionalProperties": true,6566 "properties": {6567 "ask": {6568 "allOf": [6569 {6570 "not": {6571 "enum": [6572 "me",6573 "layer"6574 ]6575 }6576 }6577 ],6578 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6579 "type": "string"6580 },6581 "project": {6582 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6583 "type": "string"6584 }6585 },6586 "required": [6587 "ask",6588 "project"6589 ],6590 "type": "object"6591 },6592 "showAsk.success": {6593 "additionalProperties": true,6594 "properties": {6595 "ask": {6596 "additionalProperties": true,6597 "properties": {6598 "askedBy": {6599 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",6600 "type": "string"6601 },6602 "blockedBy": {6603 "items": {6604 "allOf": [6605 {6606 "not": {6607 "enum": [6608 "me",6609 "layer"6610 ]6611 }6612 }6613 ],6614 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6615 "type": "string"6616 },6617 "type": "array"6618 },6619 "brief": {6620 "additionalProperties": true,6621 "properties": {6622 "context": {6623 "items": {6624 "minLength": 1,6625 "type": "string"6626 },6627 "type": "array"6628 },6629 "current": {6630 "minLength": 1,6631 "type": "string"6632 },6633 "outOfScope": {6634 "items": {6635 "minLength": 1,6636 "type": "string"6637 },6638 "minItems": 1,6639 "prefixItems": [6640 {6641 "minLength": 1,6642 "type": "string"6643 }6644 ],6645 "type": "array"6646 },6647 "terms": {6648 "items": {6649 "minLength": 1,6650 "type": "string"6651 },6652 "type": "array"6653 },6654 "want": {6655 "minLength": 1,6656 "type": "string"6657 }6658 },6659 "required": [6660 "want"6661 ],6662 "type": "object"6663 },6664 "check": {6665 "anyOf": [6666 {6667 "additionalProperties": true,6668 "properties": {6669 "_tag": {6670 "enum": [6671 "LintToZero"6672 ],6673 "type": "string"6674 },6675 "command": {6676 "minLength": 1,6677 "type": "string"6678 },6679 "rule": {6680 "minLength": 1,6681 "type": "string"6682 },6683 "territory": {6684 "minLength": 1,6685 "type": "string"6686 }6687 },6688 "required": [6689 "_tag",6690 "command",6691 "rule"6692 ],6693 "type": "object"6694 },6695 {6696 "additionalProperties": true,6697 "properties": {6698 "_tag": {6699 "enum": [6700 "Migrate"6701 ],6702 "type": "string"6703 },6704 "count": {6705 "minLength": 1,6706 "type": "string"6707 },6708 "from": {6709 "minLength": 1,6710 "type": "string"6711 },6712 "to": {6713 "minLength": 1,6714 "type": "string"6715 }6716 },6717 "required": [6718 "_tag",6719 "count",6720 "from"6721 ],6722 "type": "object"6723 },6724 {6725 "additionalProperties": true,6726 "properties": {6727 "_tag": {6728 "enum": [6729 "Ratchet"6730 ],6731 "type": "string"6732 },6733 "ratchet": {6734 "pattern": "^[a-z][a-zA-Z0-9-]*$",6735 "type": "string"6736 }6737 },6738 "required": [6739 "_tag",6740 "ratchet"6741 ],6742 "type": "object"6743 },6744 {6745 "additionalProperties": true,6746 "properties": {6747 "_tag": {6748 "enum": [6749 "RedThenGreen"6750 ],6751 "type": "string"6752 },6753 "path": {6754 "minLength": 1,6755 "type": "string"6756 }6757 },6758 "required": [6759 "_tag",6760 "path"6761 ],6762 "type": "object"6763 },6764 {6765 "additionalProperties": true,6766 "properties": {6767 "_tag": {6768 "enum": [6769 "SymbolAbsent"6770 ],6771 "type": "string"6772 },6773 "count": {6774 "minLength": 1,6775 "type": "string"6776 },6777 "symbol": {6778 "minLength": 1,6779 "type": "string"6780 }6781 },6782 "required": [6783 "_tag",6784 "count",6785 "symbol"6786 ],6787 "type": "object"6788 }6789 ]6790 },6791 "file": {6792 "minLength": 1,6793 "type": "string"6794 },6795 "id": {6796 "allOf": [6797 {6798 "not": {6799 "enum": [6800 "me",6801 "layer"6802 ]6803 }6804 }6805 ],6806 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6807 "type": "string"6808 },6809 "kind": {6810 "pattern": "^[a-z][a-zA-Z0-9-]*$",6811 "type": "string"6812 },6813 "mentor": {6814 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",6815 "type": "string"6816 },6817 "openedAt": {6818 "type": "string"6819 },6820 "openedIn": {6821 "pattern": "^[0-9a-f]{40}$",6822 "type": "string"6823 },6824 "parent": {6825 "allOf": [6826 {6827 "not": {6828 "enum": [6829 "me",6830 "layer"6831 ]6832 }6833 }6834 ],6835 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6836 "type": "string"6837 },6838 "project": {6839 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6840 "type": "string"6841 },6842 "reserve": {6843 "enum": [6844 "newcomers",6845 "people"6846 ],6847 "type": "string"6848 },6849 "state": {6850 "enum": [6851 "open",6852 "claimed",6853 "waitingOnParent",6854 "closed"6855 ],6856 "type": "string"6857 },6858 "territory": {6859 "additionalProperties": true,6860 "properties": {6861 "module": {6862 "minLength": 1,6863 "type": "string"6864 },6865 "paths": {6866 "items": {6867 "minLength": 1,6868 "type": "string"6869 },6870 "minItems": 1,6871 "prefixItems": [6872 {6873 "minLength": 1,6874 "type": "string"6875 }6876 ],6877 "type": "array"6878 },6879 "publicFiles": {6880 "items": {6881 "minLength": 1,6882 "type": "string"6883 },6884 "type": "array"6885 }6886 },6887 "required": [6888 "module",6889 "paths"6890 ],6891 "type": "object"6892 }6893 },6894 "required": [6895 "askedBy",6896 "blockedBy",6897 "brief",6898 "check",6899 "file",6900 "id",6901 "kind",6902 "openedAt",6903 "openedIn",6904 "project",6905 "state",6906 "territory"6907 ],6908 "type": "object"6909 },6910 "brief": {6911 "minLength": 1,6912 "type": "string"6913 }6914 },6915 "required": [6916 "ask",6917 "brief"6918 ],6919 "type": "object"6920 },6921 "status.error": {6922 "$ref": "#/$defs/UnknownProjectEncoded"6923 },6924 "status.payload": {6925 "additionalProperties": true,6926 "properties": {6927 "project": {6928 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6929 "type": "string"6930 }6931 },6932 "type": "object"6933 },6934 "status.success": {6935 "additionalProperties": true,6936 "properties": {6937 "answers": {6938 "items": {6939 "additionalProperties": true,6940 "properties": {6941 "ask": {6942 "allOf": [6943 {6944 "not": {6945 "enum": [6946 "me",6947 "layer"6948 ]6949 }6950 }6951 ],6952 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",6953 "type": "string"6954 },6955 "at": {6956 "type": "string"6957 },6958 "head": {6959 "pattern": "^[0-9a-f]{40}$",6960 "type": "string"6961 },6962 "outcome": {6963 "anyOf": [6964 {6965 "additionalProperties": true,6966 "properties": {6967 "_tag": {6968 "enum": [6969 "AwaitingDecision"6970 ],6971 "type": "string"6972 },6973 "decision": {6974 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",6975 "type": "string"6976 }6977 },6978 "required": [6979 "_tag",6980 "decision"6981 ],6982 "type": "object"6983 },6984 {6985 "additionalProperties": true,6986 "properties": {6987 "_tag": {6988 "enum": [6989 "AwaitingFinish"6990 ],6991 "type": "string"6992 },6993 "decider": {6994 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",6995 "type": "string"6996 }6997 },6998 "required": [6999 "_tag"7000 ],7001 "type": "object"7002 },7003 {7004 "additionalProperties": true,7005 "properties": {7006 "_tag": {7007 "enum": [7008 "Checking"7009 ],7010 "type": "string"7011 },7012 "stage": {7013 "enum": [7014 "parse",7015 "shape",7016 "merge",7017 "cheap",7018 "checks",7019 "heldBack",7020 "human"7021 ],7022 "type": "string"7023 }7024 },7025 "required": [7026 "_tag",7027 "stage"7028 ],7029 "type": "object"7030 },7031 {7032 "additionalProperties": true,7033 "properties": {7034 "_tag": {7035 "enum": [7036 "Landed"7037 ],7038 "type": "string"7039 },7040 "sha": {7041 "pattern": "^[0-9a-f]{40}$",7042 "type": "string"7043 }7044 },7045 "required": [7046 "_tag",7047 "sha"7048 ],7049 "type": "object"7050 },7051 {7052 "additionalProperties": true,7053 "properties": {7054 "_tag": {7055 "enum": [7056 "Refused"7057 ],7058 "type": "string"7059 },7060 "refusals": {7061 "items": {7062 "anyOf": [7063 {7064 "$ref": "#/$defs/NotClaimedEncoded"7065 },7066 {7067 "$ref": "#/$defs/ClaimLapsedEncoded"7068 },7069 {7070 "$ref": "#/$defs/NotVouchedEncoded"7071 },7072 {7073 "$ref": "#/$defs/CapReachedEncoded"7074 },7075 {7076 "$ref": "#/$defs/AskFullEncoded"7077 },7078 {7079 "$ref": "#/$defs/NoAskEncoded"7080 },7081 {7082 "$ref": "#/$defs/RepoBusyEncoded"7083 },7084 {7085 "$ref": "#/$defs/DirectPushEncoded"7086 },7087 {7088 "$ref": "#/$defs/AskBlockedEncoded"7089 },7090 {7091 "$ref": "#/$defs/DenouncedEncoded"7092 },7093 {7094 "$ref": "#/$defs/OutOfScopeEncoded"7095 },7096 {7097 "$ref": "#/$defs/TouchedJudgeEncoded"7098 },7099 {7100 "$ref": "#/$defs/WeakenedEncoded"7101 },7102 {7103 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"7104 },7105 {7106 "$ref": "#/$defs/ReachedInternalsEncoded"7107 },7108 {7109 "$ref": "#/$defs/StaleBaseEncoded"7110 },7111 {7112 "$ref": "#/$defs/StaleLayerEncoded"7113 },7114 {7115 "$ref": "#/$defs/ChecksFailedEncoded"7116 },7117 {7118 "$ref": "#/$defs/HeldBackFailedEncoded"7119 },7120 {7121 "$ref": "#/$defs/AttemptsExhaustedEncoded"7122 },7123 {7124 "$ref": "#/$defs/FlakeEncoded"7125 },7126 {7127 "$ref": "#/$defs/VerifierBlockedEncoded"7128 },7129 {7130 "$ref": "#/$defs/NotRedFirstEncoded"7131 },7132 {7133 "$ref": "#/$defs/WeakCheckEncoded"7134 },7135 {7136 "$ref": "#/$defs/IncompleteBriefEncoded"7137 },7138 {7139 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"7140 },7141 {7142 "$ref": "#/$defs/SecretInOutputEncoded"7143 },7144 {7145 "$ref": "#/$defs/UnstatedRequirementEncoded"7146 },7147 {7148 "$ref": "#/$defs/PostureChangeEncoded"7149 },7150 {7151 "$ref": "#/$defs/NotDeciderEncoded"7152 },7153 {7154 "$ref": "#/$defs/DecisionClosedEncoded"7155 },7156 {7157 "$ref": "#/$defs/UnknownProjectEncoded"7158 },7159 {7160 "$ref": "#/$defs/UnknownAskEncoded"7161 },7162 {7163 "$ref": "#/$defs/UnknownCommitEncoded"7164 },7165 {7166 "$ref": "#/$defs/UnknownDecisionEncoded"7167 },7168 {7169 "$ref": "#/$defs/ProjectExistsEncoded"7170 },7171 {7172 "$ref": "#/$defs/ImportFailedEncoded"7173 },7174 {7175 "$ref": "#/$defs/UnknownEnvItemEncoded"7176 },7177 {7178 "$ref": "#/$defs/NotSensitiveEncoded"7179 },7180 {7181 "$ref": "#/$defs/ValueTooShortEncoded"7182 }7183 ]7184 },7185 "minItems": 1,7186 "prefixItems": [7187 {7188 "anyOf": [7189 {7190 "$ref": "#/$defs/NotClaimedEncoded"7191 },7192 {7193 "$ref": "#/$defs/ClaimLapsedEncoded"7194 },7195 {7196 "$ref": "#/$defs/NotVouchedEncoded"7197 },7198 {7199 "$ref": "#/$defs/CapReachedEncoded"7200 },7201 {7202 "$ref": "#/$defs/AskFullEncoded"7203 },7204 {7205 "$ref": "#/$defs/NoAskEncoded"7206 },7207 {7208 "$ref": "#/$defs/RepoBusyEncoded"7209 },7210 {7211 "$ref": "#/$defs/DirectPushEncoded"7212 },7213 {7214 "$ref": "#/$defs/AskBlockedEncoded"7215 },7216 {7217 "$ref": "#/$defs/DenouncedEncoded"7218 },7219 {7220 "$ref": "#/$defs/OutOfScopeEncoded"7221 },7222 {7223 "$ref": "#/$defs/TouchedJudgeEncoded"7224 },7225 {7226 "$ref": "#/$defs/WeakenedEncoded"7227 },7228 {7229 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"7230 },7231 {7232 "$ref": "#/$defs/ReachedInternalsEncoded"7233 },7234 {7235 "$ref": "#/$defs/StaleBaseEncoded"7236 },7237 {7238 "$ref": "#/$defs/StaleLayerEncoded"7239 },7240 {7241 "$ref": "#/$defs/ChecksFailedEncoded"7242 },7243 {7244 "$ref": "#/$defs/HeldBackFailedEncoded"7245 },7246 {7247 "$ref": "#/$defs/AttemptsExhaustedEncoded"7248 },7249 {7250 "$ref": "#/$defs/FlakeEncoded"7251 },7252 {7253 "$ref": "#/$defs/VerifierBlockedEncoded"7254 },7255 {7256 "$ref": "#/$defs/NotRedFirstEncoded"7257 },7258 {7259 "$ref": "#/$defs/WeakCheckEncoded"7260 },7261 {7262 "$ref": "#/$defs/IncompleteBriefEncoded"7263 },7264 {7265 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"7266 },7267 {7268 "$ref": "#/$defs/SecretInOutputEncoded"7269 },7270 {7271 "$ref": "#/$defs/UnstatedRequirementEncoded"7272 },7273 {7274 "$ref": "#/$defs/PostureChangeEncoded"7275 },7276 {7277 "$ref": "#/$defs/NotDeciderEncoded"7278 },7279 {7280 "$ref": "#/$defs/DecisionClosedEncoded"7281 },7282 {7283 "$ref": "#/$defs/UnknownProjectEncoded"7284 },7285 {7286 "$ref": "#/$defs/UnknownAskEncoded"7287 },7288 {7289 "$ref": "#/$defs/UnknownCommitEncoded"7290 },7291 {7292 "$ref": "#/$defs/UnknownDecisionEncoded"7293 },7294 {7295 "$ref": "#/$defs/ProjectExistsEncoded"7296 },7297 {7298 "$ref": "#/$defs/ImportFailedEncoded"7299 },7300 {7301 "$ref": "#/$defs/UnknownEnvItemEncoded"7302 },7303 {7304 "$ref": "#/$defs/NotSensitiveEncoded"7305 },7306 {7307 "$ref": "#/$defs/ValueTooShortEncoded"7308 }7309 ]7310 }7311 ],7312 "type": "array"7313 }7314 },7315 "required": [7316 "_tag",7317 "refusals"7318 ],7319 "type": "object"7320 },7321 {7322 "additionalProperties": true,7323 "properties": {7324 "_tag": {7325 "enum": [7326 "WaitingOnParent"7327 ],7328 "type": "string"7329 },7330 "ask": {7331 "allOf": [7332 {7333 "not": {7334 "enum": [7335 "me",7336 "layer"7337 ]7338 }7339 }7340 ],7341 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7342 "type": "string"7343 }7344 },7345 "required": [7346 "_tag",7347 "ask"7348 ],7349 "type": "object"7350 }7351 ]7352 },7353 "requestId": {7354 "pattern": "^[A-Za-z0-9_-]{8,64}$",7355 "type": "string"7356 }7357 },7358 "required": [7359 "ask",7360 "at",7361 "head",7362 "outcome",7363 "requestId"7364 ],7365 "type": "object"7366 },7367 "type": "array"7368 },7369 "claims": {7370 "items": {7371 "additionalProperties": true,7372 "properties": {7373 "ask": {7374 "allOf": [7375 {7376 "not": {7377 "enum": [7378 "me",7379 "layer"7380 ]7381 }7382 }7383 ],7384 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7385 "type": "string"7386 },7387 "base": {7388 "pattern": "^[0-9a-f]{40}$",7389 "type": "string"7390 },7391 "checkCommand": {7392 "minLength": 1,7393 "type": "string"7394 },7395 "claimant": {7396 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",7397 "type": "string"7398 },7399 "fork": {7400 "pattern": "^[A-Za-z0-9._-]+$",7401 "type": "string"7402 },7403 "lapsesAt": {7404 "type": "string"7405 },7406 "lastPushAt": {7407 "type": "string"7408 },7409 "openedAt": {7410 "type": "string"7411 },7412 "project": {7413 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7414 "type": "string"7415 },7416 "remote": {7417 "minLength": 1,7418 "type": "string"7419 },7420 "state": {7421 "enum": [7422 "live",7423 "warned",7424 "lapsed",7425 "released",7426 "answered"7427 ],7428 "type": "string"7429 },7430 "suite": {7431 "pattern": "^sha256:[0-9a-f]{64}$",7432 "type": "string"7433 },7434 "warnsAt": {7435 "type": "string"7436 }7437 },7438 "required": [7439 "ask",7440 "base",7441 "checkCommand",7442 "claimant",7443 "fork",7444 "lapsesAt",7445 "openedAt",7446 "project",7447 "remote",7448 "state",7449 "warnsAt"7450 ],7451 "type": "object"7452 },7453 "type": "array"7454 }7455 },7456 "required": [7457 "answers",7458 "claims"7459 ],7460 "type": "object"7461 },7462 "submitAnswer.error": {7463 "anyOf": [7464 {7465 "$ref": "#/$defs/UnknownProjectEncoded"7466 },7467 {7468 "$ref": "#/$defs/NotClaimedEncoded"7469 },7470 {7471 "$ref": "#/$defs/ClaimLapsedEncoded"
2 unmodified lines
7474 "$ref": "#/$defs/StaleBaseEncoded"7475 },7476 {7477 "$ref": "#/$defs/RepoBusyEncoded"7478 },7479 {7480 "$ref": "#/$defs/OutOfScopeEncoded"7481 },7482 {7483 "$ref": "#/$defs/TouchedJudgeEncoded"7484 },7485 {7486 "$ref": "#/$defs/WeakenedEncoded"7487 },7488 {7489 "$ref": "#/$defs/ReachedInternalsEncoded"7490 },7491 {7492 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"7493 }7494 ]7495 },7496 "submitAnswer.payload": {
19 unmodified lines
7516 },7517 "head": {7518 "pattern": "^[0-9a-f]{40}$",7519 "type": "string"7520 },7521 "project": {7522 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7523 "type": "string"7524 },7525 "requestId": {7526 "pattern": "^[A-Za-z0-9_-]{8,64}$",7527 "type": "string"7528 }7529 },7530 "required": [7531 "ask",7532 "base",2471 "head"7533 "head",7534 "project",7535 "requestId"7536 ],7537 "type": "object"7538 },7539 "submitAnswer.success": {7540 "additionalProperties": true,7541 "properties": {2478 "main": {7542 "ask": {7543 "allOf": [7544 {7545 "not": {7546 "enum": [7547 "me",7548 "layer"7549 ]7550 }7551 }7552 ],7553 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7554 "type": "string"7555 },7556 "base": {7557 "pattern": "^[0-9a-f]{40}$",7558 "type": "string"7559 },7560 "head": {7561 "pattern": "^[0-9a-f]{40}$",7562 "type": "string"7563 },7564 "outcome": {7565 "anyOf": [7566 {7567 "additionalProperties": true,7568 "properties": {7569 "_tag": {7570 "enum": [7571 "AwaitingDecision"7572 ],7573 "type": "string"7574 },7575 "decision": {7576 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",7577 "type": "string"7578 }7579 },7580 "required": [7581 "_tag",7582 "decision"7583 ],7584 "type": "object"7585 },7586 {7587 "additionalProperties": true,7588 "properties": {7589 "_tag": {7590 "enum": [7591 "AwaitingFinish"7592 ],7593 "type": "string"7594 },7595 "decider": {7596 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",7597 "type": "string"7598 }7599 },7600 "required": [7601 "_tag"7602 ],7603 "type": "object"7604 },7605 {7606 "additionalProperties": true,7607 "properties": {7608 "_tag": {7609 "enum": [7610 "Checking"7611 ],7612 "type": "string"7613 },7614 "stage": {7615 "enum": [7616 "parse",7617 "shape",7618 "merge",7619 "cheap",7620 "checks",7621 "heldBack",7622 "human"7623 ],7624 "type": "string"7625 }7626 },7627 "required": [7628 "_tag",7629 "stage"7630 ],7631 "type": "object"7632 },7633 {7634 "additionalProperties": true,7635 "properties": {7636 "_tag": {7637 "enum": [7638 "Landed"7639 ],7640 "type": "string"7641 },7642 "sha": {7643 "pattern": "^[0-9a-f]{40}$",7644 "type": "string"7645 }7646 },7647 "required": [7648 "_tag",7649 "sha"7650 ],7651 "type": "object"7652 },7653 {7654 "additionalProperties": true,7655 "properties": {7656 "_tag": {7657 "enum": [7658 "Refused"7659 ],7660 "type": "string"7661 },7662 "refusals": {7663 "items": {7664 "anyOf": [7665 {7666 "$ref": "#/$defs/NotClaimedEncoded"7667 },7668 {7669 "$ref": "#/$defs/ClaimLapsedEncoded"7670 },7671 {7672 "$ref": "#/$defs/NotVouchedEncoded"7673 },7674 {7675 "$ref": "#/$defs/CapReachedEncoded"7676 },7677 {7678 "$ref": "#/$defs/AskFullEncoded"7679 },7680 {7681 "$ref": "#/$defs/NoAskEncoded"7682 },7683 {7684 "$ref": "#/$defs/RepoBusyEncoded"7685 },7686 {7687 "$ref": "#/$defs/DirectPushEncoded"7688 },7689 {7690 "$ref": "#/$defs/AskBlockedEncoded"7691 },7692 {7693 "$ref": "#/$defs/DenouncedEncoded"7694 },7695 {7696 "$ref": "#/$defs/OutOfScopeEncoded"7697 },7698 {7699 "$ref": "#/$defs/TouchedJudgeEncoded"7700 },7701 {7702 "$ref": "#/$defs/WeakenedEncoded"7703 },7704 {7705 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"7706 },7707 {7708 "$ref": "#/$defs/ReachedInternalsEncoded"7709 },7710 {7711 "$ref": "#/$defs/StaleBaseEncoded"7712 },7713 {7714 "$ref": "#/$defs/StaleLayerEncoded"7715 },7716 {7717 "$ref": "#/$defs/ChecksFailedEncoded"7718 },7719 {7720 "$ref": "#/$defs/HeldBackFailedEncoded"7721 },7722 {7723 "$ref": "#/$defs/AttemptsExhaustedEncoded"7724 },7725 {7726 "$ref": "#/$defs/FlakeEncoded"7727 },7728 {7729 "$ref": "#/$defs/VerifierBlockedEncoded"7730 },7731 {7732 "$ref": "#/$defs/NotRedFirstEncoded"7733 },7734 {7735 "$ref": "#/$defs/WeakCheckEncoded"7736 },7737 {7738 "$ref": "#/$defs/IncompleteBriefEncoded"7739 },7740 {7741 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"7742 },7743 {7744 "$ref": "#/$defs/SecretInOutputEncoded"7745 },7746 {7747 "$ref": "#/$defs/UnstatedRequirementEncoded"7748 },7749 {7750 "$ref": "#/$defs/PostureChangeEncoded"7751 },7752 {7753 "$ref": "#/$defs/NotDeciderEncoded"7754 },7755 {7756 "$ref": "#/$defs/DecisionClosedEncoded"7757 },7758 {7759 "$ref": "#/$defs/UnknownProjectEncoded"7760 },7761 {7762 "$ref": "#/$defs/UnknownAskEncoded"7763 },7764 {7765 "$ref": "#/$defs/UnknownCommitEncoded"7766 },7767 {7768 "$ref": "#/$defs/UnknownDecisionEncoded"7769 },7770 {7771 "$ref": "#/$defs/ProjectExistsEncoded"7772 },7773 {7774 "$ref": "#/$defs/ImportFailedEncoded"7775 },7776 {7777 "$ref": "#/$defs/UnknownEnvItemEncoded"7778 },7779 {7780 "$ref": "#/$defs/NotSensitiveEncoded"7781 },7782 {7783 "$ref": "#/$defs/ValueTooShortEncoded"7784 }7785 ]7786 },7787 "minItems": 1,7788 "prefixItems": [7789 {7790 "anyOf": [7791 {7792 "$ref": "#/$defs/NotClaimedEncoded"7793 },7794 {7795 "$ref": "#/$defs/ClaimLapsedEncoded"7796 },7797 {7798 "$ref": "#/$defs/NotVouchedEncoded"7799 },7800 {7801 "$ref": "#/$defs/CapReachedEncoded"7802 },7803 {7804 "$ref": "#/$defs/AskFullEncoded"7805 },7806 {7807 "$ref": "#/$defs/NoAskEncoded"7808 },7809 {7810 "$ref": "#/$defs/RepoBusyEncoded"7811 },7812 {7813 "$ref": "#/$defs/DirectPushEncoded"7814 },7815 {7816 "$ref": "#/$defs/AskBlockedEncoded"7817 },7818 {7819 "$ref": "#/$defs/DenouncedEncoded"7820 },7821 {7822 "$ref": "#/$defs/OutOfScopeEncoded"7823 },7824 {7825 "$ref": "#/$defs/TouchedJudgeEncoded"7826 },7827 {7828 "$ref": "#/$defs/WeakenedEncoded"7829 },7830 {7831 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"7832 },7833 {7834 "$ref": "#/$defs/ReachedInternalsEncoded"7835 },7836 {7837 "$ref": "#/$defs/StaleBaseEncoded"7838 },7839 {7840 "$ref": "#/$defs/StaleLayerEncoded"7841 },7842 {7843 "$ref": "#/$defs/ChecksFailedEncoded"7844 },7845 {7846 "$ref": "#/$defs/HeldBackFailedEncoded"7847 },7848 {7849 "$ref": "#/$defs/AttemptsExhaustedEncoded"7850 },7851 {7852 "$ref": "#/$defs/FlakeEncoded"7853 },7854 {7855 "$ref": "#/$defs/VerifierBlockedEncoded"7856 },7857 {7858 "$ref": "#/$defs/NotRedFirstEncoded"7859 },7860 {7861 "$ref": "#/$defs/WeakCheckEncoded"7862 },7863 {7864 "$ref": "#/$defs/IncompleteBriefEncoded"7865 },7866 {7867 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"7868 },7869 {7870 "$ref": "#/$defs/SecretInOutputEncoded"7871 },7872 {7873 "$ref": "#/$defs/UnstatedRequirementEncoded"7874 },7875 {7876 "$ref": "#/$defs/PostureChangeEncoded"7877 },7878 {7879 "$ref": "#/$defs/NotDeciderEncoded"7880 },7881 {7882 "$ref": "#/$defs/DecisionClosedEncoded"7883 },7884 {7885 "$ref": "#/$defs/UnknownProjectEncoded"7886 },7887 {7888 "$ref": "#/$defs/UnknownAskEncoded"7889 },7890 {7891 "$ref": "#/$defs/UnknownCommitEncoded"7892 },7893 {7894 "$ref": "#/$defs/UnknownDecisionEncoded"7895 },7896 {7897 "$ref": "#/$defs/ProjectExistsEncoded"7898 },7899 {7900 "$ref": "#/$defs/ImportFailedEncoded"7901 },7902 {7903 "$ref": "#/$defs/UnknownEnvItemEncoded"7904 },7905 {7906 "$ref": "#/$defs/NotSensitiveEncoded"7907 },7908 {7909 "$ref": "#/$defs/ValueTooShortEncoded"7910 }7911 ]7912 }7913 ],7914 "type": "array"7915 }7916 },7917 "required": [7918 "_tag",7919 "refusals"7920 ],7921 "type": "object"7922 },7923 {7924 "additionalProperties": true,7925 "properties": {7926 "_tag": {7927 "enum": [7928 "WaitingOnParent"7929 ],7930 "type": "string"7931 },7932 "ask": {7933 "allOf": [7934 {7935 "not": {7936 "enum": [7937 "me",7938 "layer"7939 ]7940 }7941 }7942 ],7943 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7944 "type": "string"7945 }7946 },7947 "required": [7948 "_tag",7949 "ask"7950 ],7951 "type": "object"7952 }7953 ]7954 },7955 "project": {7956 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7957 "type": "string"7958 },7959 "requestId": {7960 "pattern": "^[A-Za-z0-9_-]{8,64}$",7961 "type": "string"7962 }7963 },7964 "required": [2484 "main"7965 "ask",7966 "base",7967 "head",7968 "outcome",7969 "project",7970 "requestId"7971 ],7972 "type": "object"7973 },7974 "today.error": {7975 "anyOf": [7976 {7977 "$ref": "#/$defs/NotDeciderEncoded"7978 },7979 {7980 "$ref": "#/$defs/UnknownProjectEncoded"7981 }7982 ]7983 },7984 "today.payload": {7985 "additionalProperties": true,7986 "properties": {7987 "project": {7988 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",7989 "type": "string"7990 }7991 },7992 "type": "object"7993 },7994 "today.success": {7995 "additionalProperties": true,7996 "properties": {7997 "budget": {7998 "additionalProperties": true,7999 "properties": {8000 "finishes": {8001 "type": "integer"8002 },8003 "total": {8004 "type": "integer"8005 },8006 "used": {8007 "type": "integer"8008 }8009 },8010 "required": [8011 "finishes",8012 "total",8013 "used"8014 ],8015 "type": "object"8016 },8017 "decider": {8018 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8019 "type": "string"8020 },8021 "decisions": {8022 "items": {8023 "additionalProperties": true,8024 "properties": {8025 "decided": {8026 "additionalProperties": true,8027 "properties": {8028 "at": {8029 "type": "string"8030 },8031 "by": {8032 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8033 "type": "string"8034 },8035 "choice": {8036 "enum": [8037 "accept",8038 "decline",8039 "adopt",8040 "revert"8041 ],8042 "type": "string"8043 },8044 "note": {8045 "type": "string"8046 }8047 },8048 "required": [8049 "at",8050 "by",8051 "choice"8052 ],8053 "type": "object"8054 },8055 "deciders": {8056 "items": {8057 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8058 "type": "string"8059 },8060 "minItems": 1,8061 "prefixItems": [8062 {8063 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8064 "type": "string"8065 }8066 ],8067 "type": "array"8068 },8069 "default": {8070 "enum": [8071 "accept",8072 "decline",8073 "adopt",8074 "revert"8075 ],8076 "type": "string"8077 },8078 "evidence": {8079 "items": {8080 "additionalProperties": true,8081 "properties": {8082 "href": {8083 "minLength": 1,8084 "type": "string"8085 },8086 "label": {8087 "minLength": 1,8088 "type": "string"8089 },8090 "value": {8091 "type": "string"8092 }8093 },8094 "required": [8095 "label",8096 "value"8097 ],8098 "type": "object"8099 },8100 "type": "array"8101 },8102 "expiresAt": {8103 "type": "string"8104 },8105 "id": {8106 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",8107 "type": "string"8108 },8109 "openedAt": {8110 "type": "string"8111 },8112 "project": {8113 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8114 "type": "string"8115 },8116 "subject": {8117 "anyOf": [8118 {8119 "additionalProperties": true,8120 "properties": {8121 "_tag": {8122 "enum": [8123 "Finish"8124 ],8125 "type": "string"8126 },8127 "ask": {8128 "allOf": [8129 {8130 "not": {8131 "enum": [8132 "me",8133 "layer"8134 ]8135 }8136 }8137 ],8138 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8139 "type": "string"8140 },8141 "head": {8142 "pattern": "^[0-9a-f]{40}$",8143 "type": "string"8144 }8145 },8146 "required": [8147 "_tag",8148 "ask",8149 "head"8150 ],8151 "type": "object"8152 },8153 {8154 "additionalProperties": true,8155 "properties": {8156 "_tag": {8157 "enum": [8158 "OpenProposal"8159 ],8160 "type": "string"8161 },8162 "proposal": {8163 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",8164 "type": "string"8165 }8166 },8167 "required": [8168 "_tag",8169 "proposal"8170 ],8171 "type": "object"8172 },8173 {8174 "additionalProperties": true,8175 "properties": {8176 "_tag": {8177 "enum": [8178 "PostureChange"8179 ],8180 "type": "string"8181 },8182 "from": {8183 "enum": [8184 "open",8185 "openWithSealedEvidence",8186 "openOnSchedule",8187 "openCore",8188 "sourceAvailable"8189 ],8190 "type": "string"8191 },8192 "to": {8193 "enum": [8194 "open",8195 "openWithSealedEvidence",8196 "openOnSchedule",8197 "openCore",8198 "sourceAvailable"8199 ],8200 "type": "string"8201 }8202 },8203 "required": [8204 "_tag",8205 "from",8206 "to"8207 ],8208 "type": "object"8209 },8210 {8211 "additionalProperties": true,8212 "properties": {8213 "_tag": {8214 "enum": [8215 "ProxyWidened"8216 ],8217 "type": "string"8218 },8219 "hosts": {8220 "items": {8221 "pattern": "^(?:\\*\\.)?[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*$",8222 "type": "string"8223 },8224 "type": "array"8225 },8226 "item": {8227 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",8228 "type": "string"8229 }8230 },8231 "required": [8232 "_tag",8233 "hosts",8234 "item"8235 ],8236 "type": "object"8237 },8238 {8239 "additionalProperties": true,8240 "properties": {8241 "_tag": {8242 "enum": [8243 "RaiseRatchet"8244 ],8245 "type": "string"8246 },8247 "after": {8248 "type": "integer"8249 },8250 "ask": {8251 "allOf": [8252 {8253 "not": {8254 "enum": [8255 "me",8256 "layer"8257 ]8258 }8259 }8260 ],8261 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8262 "type": "string"8263 },8264 "before": {8265 "type": "integer"8266 },8267 "ratchet": {8268 "pattern": "^[a-z][a-zA-Z0-9-]*$",8269 "type": "string"8270 },8271 "territory": {8272 "minLength": 1,8273 "type": "string"8274 }8275 },8276 "required": [8277 "_tag",8278 "after",8279 "ask",8280 "before",8281 "ratchet",8282 "territory"8283 ],8284 "type": "object"8285 },8286 {8287 "additionalProperties": true,8288 "properties": {8289 "_tag": {8290 "enum": [8291 "SecretInTree"8292 ],8293 "type": "string"8294 },8295 "ask": {8296 "allOf": [8297 {8298 "not": {8299 "enum": [8300 "me",8301 "layer"8302 ]8303 }8304 }8305 ],8306 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8307 "type": "string"8308 },8309 "item": {8310 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",8311 "type": "string"8312 }8313 },8314 "required": [8315 "_tag",8316 "ask",8317 "item"8318 ],8319 "type": "object"8320 },8321 {8322 "additionalProperties": true,8323 "properties": {8324 "_tag": {8325 "enum": [8326 "StrayPush"8327 ],8328 "type": "string"8329 },8330 "after": {8331 "pattern": "^[0-9a-f]{40}$",8332 "type": "string"8333 },8334 "before": {8335 "pattern": "^[0-9a-f]{40}$",8336 "type": "string"8337 },8338 "ref": {8339 "pattern": "^refs\\/(?!.*\\.\\.)[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)+$",8340 "type": "string"8341 }8342 },8343 "required": [8344 "_tag",8345 "after",8346 "before",8347 "ref"8348 ],8349 "type": "object"8350 },8351 {8352 "additionalProperties": true,8353 "properties": {8354 "_tag": {8355 "enum": [8356 "Vouch"8357 ],8358 "type": "string"8359 },8360 "handle": {8361 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8362 "type": "string"8363 }8364 },8365 "required": [8366 "_tag",8367 "handle"8368 ],8369 "type": "object"8370 },8371 {8372 "additionalProperties": true,8373 "properties": {8374 "_tag": {8375 "enum": [8376 "Waiver"8377 ],8378 "type": "string"8379 },8380 "ask": {8381 "allOf": [8382 {8383 "not": {8384 "enum": [8385 "me",8386 "layer"8387 ]8388 }8389 }8390 ],8391 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8392 "type": "string"8393 },8394 "at": {8395 "additionalProperties": true,8396 "properties": {8397 "line": {8398 "minimum": 1,8399 "type": "integer"8400 },8401 "path": {8402 "minLength": 1,8403 "type": "string"8404 }8405 },8406 "required": [8407 "line",8408 "path"8409 ],8410 "type": "object"8411 },8412 "marker": {8413 "minLength": 1,8414 "type": "string"8415 },8416 "reason": {8417 "minLength": 1,8418 "type": "string"8419 }8420 },8421 "required": [8422 "_tag",8423 "ask",8424 "at",8425 "marker",8426 "reason"8427 ],8428 "type": "object"8429 }8430 ]8431 }8432 },8433 "required": [8434 "deciders",8435 "default",8436 "evidence",8437 "expiresAt",8438 "id",8439 "openedAt",8440 "project",8441 "subject"8442 ],8443 "type": "object"8444 },8445 "type": "array"8446 },8447 "expiringSoon": {8448 "items": {8449 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",8450 "type": "string"8451 },8452 "type": "array"8453 },8454 "newcomers": {8455 "items": {8456 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8457 "type": "string"8458 },8459 "type": "array"8460 },8461 "overflow": {8462 "type": "integer"8463 },8464 "unattended": {8465 "items": {8466 "additionalProperties": true,8467 "properties": {8468 "ask": {8469 "allOf": [8470 {8471 "not": {8472 "enum": [8473 "me",8474 "layer"8475 ]8476 }8477 }8478 ],8479 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8480 "type": "string"8481 },8482 "assisted": {8483 "items": {8484 "additionalProperties": true,8485 "properties": {8486 "harness": {8487 "minLength": 1,8488 "type": "string"8489 },8490 "model": {8491 "minLength": 1,8492 "type": "string"8493 },8494 "verified": {8495 "type": "boolean"8496 }8497 },8498 "required": [8499 "harness",8500 "verified"8501 ],8502 "type": "object"8503 },8504 "type": "array"8505 },8506 "author": {8507 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8508 "type": "string"8509 },8510 "credits": {8511 "items": {8512 "additionalProperties": true,8513 "properties": {8514 "handle": {8515 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8516 "type": "string"8517 },8518 "role": {8519 "enum": [8520 "Asked-by",8521 "Signed-off-by",8522 "Decided-by",8523 "Mentored-by",8524 "Finished-by",8525 "Advised-by",8526 "Released-by"8527 ],8528 "type": "string"8529 }8530 },8531 "required": [8532 "handle",8533 "role"8534 ],8535 "type": "object"8536 },8537 "type": "array"8538 },8539 "heldBackTrailer": {8540 "minLength": 1,8541 "type": "string"8542 },8543 "landedAt": {8544 "type": "string"8545 },8546 "parent": {8547 "pattern": "^[0-9a-f]{40}$",8548 "type": "string"8549 },8550 "project": {8551 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8552 "type": "string"8553 },8554 "requestId": {8555 "pattern": "^[A-Za-z0-9_-]{8,64}$",8556 "type": "string"8557 },8558 "sha": {8559 "pattern": "^[0-9a-f]{40}$",8560 "type": "string"8561 },8562 "verdict": {8563 "additionalProperties": true,8564 "properties": {8565 "ask": {8566 "allOf": [8567 {8568 "not": {8569 "enum": [8570 "me",8571 "layer"8572 ]8573 }8574 }8575 ],8576 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",8577 "type": "string"8578 },8579 "at": {8580 "type": "string"8581 },8582 "base": {8583 "pattern": "^[0-9a-f]{40}$",8584 "type": "string"8585 },8586 "checkVersion": {8587 "minLength": 1,8588 "type": "string"8589 },8590 "head": {8591 "pattern": "^[0-9a-f]{40}$",8592 "type": "string"8593 },8594 "heldBack": {8595 "items": {8596 "additionalProperties": true,8597 "properties": {8598 "area": {8599 "pattern": "^[a-z][a-zA-Z0-9-]*$",8600 "type": "string"8601 },8602 "passed": {8603 "type": "integer"8604 },8605 "suite": {8606 "pattern": "^sha256:[0-9a-f]{64}$",8607 "type": "string"8608 },8609 "total": {8610 "type": "integer"8611 }8612 },8613 "required": [8614 "area",8615 "passed",8616 "suite",8617 "total"8618 ],8619 "type": "object"8620 },8621 "type": "array"8622 },8623 "lanes": {8624 "items": {8625 "additionalProperties": true,8626 "properties": {8627 "command": {8628 "minLength": 1,8629 "type": "string"8630 },8631 "durationMs": {8632 "type": "integer"8633 },8634 "lane": {8635 "pattern": "^[a-z][a-zA-Z0-9-]*$",8636 "type": "string"8637 },8638 "logRef": {8639 "minLength": 1,8640 "type": "string"8641 },8642 "result": {8643 "enum": [8644 "passed",8645 "failed",8646 "loadError",8647 "flaked",8648 "blocked"8649 ],8650 "type": "string"8651 }8652 },8653 "required": [8654 "command",8655 "durationMs",8656 "lane",8657 "result"8658 ],8659 "type": "object"8660 },8661 "type": "array"8662 },8663 "outcome": {8664 "anyOf": [8665 {8666 "additionalProperties": true,8667 "properties": {8668 "_tag": {8669 "enum": [8670 "AwaitingDecision"8671 ],8672 "type": "string"8673 },8674 "decision": {8675 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",8676 "type": "string"8677 }8678 },8679 "required": [8680 "_tag",8681 "decision"8682 ],8683 "type": "object"8684 },8685 {8686 "additionalProperties": true,8687 "properties": {8688 "_tag": {8689 "enum": [8690 "AwaitingFinish"8691 ],8692 "type": "string"8693 },8694 "decider": {8695 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",8696 "type": "string"8697 }8698 },8699 "required": [8700 "_tag"8701 ],8702 "type": "object"8703 },8704 {8705 "additionalProperties": true,8706 "properties": {8707 "_tag": {8708 "enum": [8709 "Checking"8710 ],8711 "type": "string"8712 },8713 "stage": {8714 "enum": [8715 "parse",8716 "shape",8717 "merge",8718 "cheap",8719 "checks",8720 "heldBack",8721 "human"8722 ],8723 "type": "string"8724 }8725 },8726 "required": [8727 "_tag",8728 "stage"8729 ],8730 "type": "object"8731 },8732 {8733 "additionalProperties": true,8734 "properties": {8735 "_tag": {8736 "enum": [8737 "Landed"8738 ],8739 "type": "string"8740 },8741 "sha": {8742 "pattern": "^[0-9a-f]{40}$",8743 "type": "string"8744 }8745 },8746 "required": [8747 "_tag",8748 "sha"8749 ],8750 "type": "object"8751 },8752 {8753 "additionalProperties": true,8754 "properties": {8755 "_tag": {8756 "enum": [8757 "Refused"8758 ],8759 "type": "string"8760 },8761 "refusals": {8762 "items": {8763 "anyOf": [8764 {8765 "$ref": "#/$defs/NotClaimedEncoded"8766 },8767 {8768 "$ref": "#/$defs/ClaimLapsedEncoded"8769 },8770 {8771 "$ref": "#/$defs/NotVouchedEncoded"8772 },8773 {8774 "$ref": "#/$defs/CapReachedEncoded"8775 },8776 {8777 "$ref": "#/$defs/AskFullEncoded"8778 },8779 {8780 "$ref": "#/$defs/NoAskEncoded"8781 },8782 {8783 "$ref": "#/$defs/RepoBusyEncoded"8784 },8785 {8786 "$ref": "#/$defs/DirectPushEncoded"8787 },8788 {8789 "$ref": "#/$defs/AskBlockedEncoded"8790 },8791 {8792 "$ref": "#/$defs/DenouncedEncoded"8793 },8794 {8795 "$ref": "#/$defs/OutOfScopeEncoded"8796 },8797 {8798 "$ref": "#/$defs/TouchedJudgeEncoded"8799 },8800 {8801 "$ref": "#/$defs/WeakenedEncoded"8802 },8803 {8804 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"8805 },8806 {8807 "$ref": "#/$defs/ReachedInternalsEncoded"8808 },8809 {8810 "$ref": "#/$defs/StaleBaseEncoded"8811 },8812 {8813 "$ref": "#/$defs/StaleLayerEncoded"8814 },8815 {8816 "$ref": "#/$defs/ChecksFailedEncoded"8817 },8818 {8819 "$ref": "#/$defs/HeldBackFailedEncoded"8820 },8821 {8822 "$ref": "#/$defs/AttemptsExhaustedEncoded"8823 },8824 {8825 "$ref": "#/$defs/FlakeEncoded"8826 },8827 {8828 "$ref": "#/$defs/VerifierBlockedEncoded"8829 },8830 {8831 "$ref": "#/$defs/NotRedFirstEncoded"8832 },8833 {8834 "$ref": "#/$defs/WeakCheckEncoded"8835 },8836 {8837 "$ref": "#/$defs/IncompleteBriefEncoded"8838 },8839 {8840 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"8841 },8842 {8843 "$ref": "#/$defs/SecretInOutputEncoded"8844 },8845 {8846 "$ref": "#/$defs/UnstatedRequirementEncoded"8847 },8848 {8849 "$ref": "#/$defs/PostureChangeEncoded"8850 },8851 {8852 "$ref": "#/$defs/NotDeciderEncoded"8853 },8854 {8855 "$ref": "#/$defs/DecisionClosedEncoded"8856 },8857 {8858 "$ref": "#/$defs/UnknownProjectEncoded"8859 },8860 {8861 "$ref": "#/$defs/UnknownAskEncoded"8862 },8863 {8864 "$ref": "#/$defs/UnknownCommitEncoded"8865 },8866 {8867 "$ref": "#/$defs/UnknownDecisionEncoded"8868 },8869 {8870 "$ref": "#/$defs/ProjectExistsEncoded"8871 },8872 {8873 "$ref": "#/$defs/ImportFailedEncoded"8874 },8875 {8876 "$ref": "#/$defs/UnknownEnvItemEncoded"8877 },8878 {8879 "$ref": "#/$defs/NotSensitiveEncoded"8880 },8881 {8882 "$ref": "#/$defs/ValueTooShortEncoded"8883 }8884 ]8885 },8886 "minItems": 1,8887 "prefixItems": [8888 {8889 "anyOf": [8890 {8891 "$ref": "#/$defs/NotClaimedEncoded"8892 },8893 {8894 "$ref": "#/$defs/ClaimLapsedEncoded"8895 },8896 {8897 "$ref": "#/$defs/NotVouchedEncoded"8898 },8899 {8900 "$ref": "#/$defs/CapReachedEncoded"8901 },8902 {8903 "$ref": "#/$defs/AskFullEncoded"8904 },8905 {8906 "$ref": "#/$defs/NoAskEncoded"8907 },8908 {8909 "$ref": "#/$defs/RepoBusyEncoded"8910 },8911 {8912 "$ref": "#/$defs/DirectPushEncoded"8913 },8914 {8915 "$ref": "#/$defs/AskBlockedEncoded"8916 },8917 {8918 "$ref": "#/$defs/DenouncedEncoded"8919 },8920 {8921 "$ref": "#/$defs/OutOfScopeEncoded"8922 },8923 {8924 "$ref": "#/$defs/TouchedJudgeEncoded"8925 },8926 {8927 "$ref": "#/$defs/WeakenedEncoded"8928 },8929 {8930 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"8931 },8932 {8933 "$ref": "#/$defs/ReachedInternalsEncoded"8934 },8935 {8936 "$ref": "#/$defs/StaleBaseEncoded"8937 },8938 {8939 "$ref": "#/$defs/StaleLayerEncoded"8940 },8941 {8942 "$ref": "#/$defs/ChecksFailedEncoded"8943 },8944 {8945 "$ref": "#/$defs/HeldBackFailedEncoded"8946 },8947 {8948 "$ref": "#/$defs/AttemptsExhaustedEncoded"8949 },8950 {8951 "$ref": "#/$defs/FlakeEncoded"8952 },8953 {8954 "$ref": "#/$defs/VerifierBlockedEncoded"8955 },8956 {8957 "$ref": "#/$defs/NotRedFirstEncoded"8958 },8959 {8960 "$ref": "#/$defs/WeakCheckEncoded"8961 },8962 {8963 "$ref": "#/$defs/IncompleteBriefEncoded"8964 },8965 {8966 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"8967 },8968 {8969 "$ref": "#/$defs/SecretInOutputEncoded"8970 },8971 {8972 "$ref": "#/$defs/UnstatedRequirementEncoded"8973 },8974 {8975 "$ref": "#/$defs/PostureChangeEncoded"8976 },8977 {8978 "$ref": "#/$defs/NotDeciderEncoded"8979 },8980 {8981 "$ref": "#/$defs/DecisionClosedEncoded"8982 },8983 {8984 "$ref": "#/$defs/UnknownProjectEncoded"8985 },8986 {8987 "$ref": "#/$defs/UnknownAskEncoded"8988 },8989 {8990 "$ref": "#/$defs/UnknownCommitEncoded"8991 },8992 {8993 "$ref": "#/$defs/UnknownDecisionEncoded"8994 },8995 {8996 "$ref": "#/$defs/ProjectExistsEncoded"8997 },8998 {8999 "$ref": "#/$defs/ImportFailedEncoded"9000 },9001 {9002 "$ref": "#/$defs/UnknownEnvItemEncoded"9003 },9004 {9005 "$ref": "#/$defs/NotSensitiveEncoded"9006 },9007 {9008 "$ref": "#/$defs/ValueTooShortEncoded"9009 }9010 ]9011 }9012 ],9013 "type": "array"9014 }9015 },9016 "required": [9017 "_tag",9018 "refusals"9019 ],9020 "type": "object"9021 },9022 {9023 "additionalProperties": true,9024 "properties": {9025 "_tag": {9026 "enum": [9027 "WaitingOnParent"9028 ],9029 "type": "string"9030 },9031 "ask": {9032 "allOf": [9033 {9034 "not": {9035 "enum": [9036 "me",9037 "layer"9038 ]9039 }9040 }9041 ],9042 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9043 "type": "string"9044 }9045 },9046 "required": [9047 "_tag",9048 "ask"9049 ],9050 "type": "object"9051 }9052 ]9053 },9054 "patchId": {9055 "pattern": "^[0-9a-f]{64}$",9056 "type": "string"9057 },9058 "project": {9059 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9060 "type": "string"9061 },9062 "stage": {9063 "enum": [9064 "parse",9065 "shape",9066 "merge",9067 "cheap",9068 "checks",9069 "heldBack",9070 "human"9071 ],9072 "type": "string"9073 },9074 "tree": {9075 "pattern": "^[0-9a-f]{40}$",9076 "type": "string"9077 },9078 "verifier": {9079 "enum": [9080 "platform"9081 ],9082 "type": "string"9083 }9084 },9085 "required": [9086 "ask",9087 "at",9088 "base",9089 "checkVersion",9090 "head",9091 "heldBack",9092 "lanes",9093 "outcome",9094 "patchId",9095 "project",9096 "stage",9097 "tree",9098 "verifier"9099 ],9100 "type": "object"9101 }9102 },9103 "required": [9104 "assisted",9105 "author",9106 "credits",9107 "landedAt",9108 "parent",9109 "project",9110 "sha"9111 ],9112 "type": "object"9113 },9114 "type": "array"9115 }9116 },9117 "required": [9118 "budget",9119 "decider",9120 "decisions",9121 "expiringSoon",9122 "newcomers",9123 "overflow",9124 "unattended"9125 ],9126 "type": "object"9127 },9128 "verdict.error": {9129 "anyOf": [9130 {9131 "$ref": "#/$defs/UnknownProjectEncoded"9132 },9133 {9134 "$ref": "#/$defs/UnknownAskEncoded"9135 }9136 ]9137 },9138 "verdict.payload": {9139 "additionalProperties": true,9140 "properties": {9141 "ask": {9142 "allOf": [9143 {9144 "not": {9145 "enum": [9146 "me",9147 "layer"9148 ]9149 }9150 }9151 ],9152 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9153 "type": "string"9154 },9155 "head": {9156 "pattern": "^[0-9a-f]{40}$",9157 "type": "string"9158 },9159 "project": {9160 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9161 "type": "string"9162 }9163 },9164 "required": [9165 "ask",9166 "project"9167 ],9168 "type": "object"9169 },9170 "verdict.success": {9171 "additionalProperties": true,9172 "properties": {9173 "verdict": {9174 "additionalProperties": true,9175 "properties": {9176 "ask": {9177 "allOf": [9178 {9179 "not": {9180 "enum": [9181 "me",9182 "layer"9183 ]9184 }9185 }9186 ],9187 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9188 "type": "string"9189 },9190 "at": {9191 "type": "string"9192 },9193 "base": {9194 "pattern": "^[0-9a-f]{40}$",9195 "type": "string"9196 },9197 "checkVersion": {9198 "minLength": 1,9199 "type": "string"9200 },9201 "head": {9202 "pattern": "^[0-9a-f]{40}$",9203 "type": "string"9204 },9205 "heldBack": {9206 "items": {9207 "additionalProperties": true,9208 "properties": {9209 "area": {9210 "pattern": "^[a-z][a-zA-Z0-9-]*$",9211 "type": "string"9212 },9213 "passed": {9214 "type": "integer"9215 },9216 "suite": {9217 "pattern": "^sha256:[0-9a-f]{64}$",9218 "type": "string"9219 },9220 "total": {9221 "type": "integer"9222 }9223 },9224 "required": [9225 "area",9226 "passed",9227 "suite",9228 "total"9229 ],9230 "type": "object"9231 },9232 "type": "array"9233 },9234 "lanes": {9235 "items": {9236 "additionalProperties": true,9237 "properties": {9238 "command": {9239 "minLength": 1,9240 "type": "string"9241 },9242 "durationMs": {9243 "type": "integer"9244 },9245 "lane": {9246 "pattern": "^[a-z][a-zA-Z0-9-]*$",9247 "type": "string"9248 },9249 "logRef": {9250 "minLength": 1,9251 "type": "string"9252 },9253 "result": {9254 "enum": [9255 "passed",9256 "failed",9257 "loadError",9258 "flaked",9259 "blocked"9260 ],9261 "type": "string"9262 }9263 },9264 "required": [9265 "command",9266 "durationMs",9267 "lane",9268 "result"9269 ],9270 "type": "object"9271 },9272 "type": "array"9273 },9274 "outcome": {9275 "anyOf": [9276 {9277 "additionalProperties": true,9278 "properties": {9279 "_tag": {9280 "enum": [9281 "AwaitingDecision"9282 ],9283 "type": "string"9284 },9285 "decision": {9286 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",9287 "type": "string"9288 }9289 },9290 "required": [9291 "_tag",9292 "decision"9293 ],9294 "type": "object"9295 },9296 {9297 "additionalProperties": true,9298 "properties": {9299 "_tag": {9300 "enum": [9301 "AwaitingFinish"9302 ],9303 "type": "string"9304 },9305 "decider": {9306 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",9307 "type": "string"9308 }9309 },9310 "required": [9311 "_tag"9312 ],9313 "type": "object"9314 },9315 {9316 "additionalProperties": true,9317 "properties": {9318 "_tag": {9319 "enum": [9320 "Checking"9321 ],9322 "type": "string"9323 },9324 "stage": {9325 "enum": [9326 "parse",9327 "shape",9328 "merge",9329 "cheap",9330 "checks",9331 "heldBack",9332 "human"9333 ],9334 "type": "string"9335 }9336 },9337 "required": [9338 "_tag",9339 "stage"9340 ],9341 "type": "object"9342 },9343 {9344 "additionalProperties": true,9345 "properties": {9346 "_tag": {9347 "enum": [9348 "Landed"9349 ],9350 "type": "string"9351 },9352 "sha": {9353 "pattern": "^[0-9a-f]{40}$",9354 "type": "string"9355 }9356 },9357 "required": [9358 "_tag",9359 "sha"9360 ],9361 "type": "object"9362 },9363 {9364 "additionalProperties": true,9365 "properties": {9366 "_tag": {9367 "enum": [9368 "Refused"9369 ],9370 "type": "string"9371 },9372 "refusals": {9373 "items": {9374 "anyOf": [9375 {9376 "$ref": "#/$defs/NotClaimedEncoded"9377 },9378 {9379 "$ref": "#/$defs/ClaimLapsedEncoded"9380 },9381 {9382 "$ref": "#/$defs/NotVouchedEncoded"9383 },9384 {9385 "$ref": "#/$defs/CapReachedEncoded"9386 },9387 {9388 "$ref": "#/$defs/AskFullEncoded"9389 },9390 {9391 "$ref": "#/$defs/NoAskEncoded"9392 },9393 {9394 "$ref": "#/$defs/RepoBusyEncoded"9395 },9396 {9397 "$ref": "#/$defs/DirectPushEncoded"9398 },9399 {9400 "$ref": "#/$defs/AskBlockedEncoded"9401 },9402 {9403 "$ref": "#/$defs/DenouncedEncoded"9404 },9405 {9406 "$ref": "#/$defs/OutOfScopeEncoded"9407 },9408 {9409 "$ref": "#/$defs/TouchedJudgeEncoded"9410 },9411 {9412 "$ref": "#/$defs/WeakenedEncoded"9413 },9414 {9415 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"9416 },9417 {9418 "$ref": "#/$defs/ReachedInternalsEncoded"9419 },9420 {9421 "$ref": "#/$defs/StaleBaseEncoded"9422 },9423 {9424 "$ref": "#/$defs/StaleLayerEncoded"9425 },9426 {9427 "$ref": "#/$defs/ChecksFailedEncoded"9428 },9429 {9430 "$ref": "#/$defs/HeldBackFailedEncoded"9431 },9432 {9433 "$ref": "#/$defs/AttemptsExhaustedEncoded"9434 },9435 {9436 "$ref": "#/$defs/FlakeEncoded"9437 },9438 {9439 "$ref": "#/$defs/VerifierBlockedEncoded"9440 },9441 {9442 "$ref": "#/$defs/NotRedFirstEncoded"9443 },9444 {9445 "$ref": "#/$defs/WeakCheckEncoded"9446 },9447 {9448 "$ref": "#/$defs/IncompleteBriefEncoded"9449 },9450 {9451 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"9452 },9453 {9454 "$ref": "#/$defs/SecretInOutputEncoded"9455 },9456 {9457 "$ref": "#/$defs/UnstatedRequirementEncoded"9458 },9459 {9460 "$ref": "#/$defs/PostureChangeEncoded"9461 },9462 {9463 "$ref": "#/$defs/NotDeciderEncoded"9464 },9465 {9466 "$ref": "#/$defs/DecisionClosedEncoded"9467 },9468 {9469 "$ref": "#/$defs/UnknownProjectEncoded"9470 },9471 {9472 "$ref": "#/$defs/UnknownAskEncoded"9473 },9474 {9475 "$ref": "#/$defs/UnknownCommitEncoded"9476 },9477 {9478 "$ref": "#/$defs/UnknownDecisionEncoded"9479 },9480 {9481 "$ref": "#/$defs/ProjectExistsEncoded"9482 },9483 {9484 "$ref": "#/$defs/ImportFailedEncoded"9485 },9486 {9487 "$ref": "#/$defs/UnknownEnvItemEncoded"9488 },9489 {9490 "$ref": "#/$defs/NotSensitiveEncoded"9491 },9492 {9493 "$ref": "#/$defs/ValueTooShortEncoded"9494 }9495 ]9496 },9497 "minItems": 1,9498 "prefixItems": [9499 {9500 "anyOf": [9501 {9502 "$ref": "#/$defs/NotClaimedEncoded"9503 },9504 {9505 "$ref": "#/$defs/ClaimLapsedEncoded"9506 },9507 {9508 "$ref": "#/$defs/NotVouchedEncoded"9509 },9510 {9511 "$ref": "#/$defs/CapReachedEncoded"9512 },9513 {9514 "$ref": "#/$defs/AskFullEncoded"9515 },9516 {9517 "$ref": "#/$defs/NoAskEncoded"9518 },9519 {9520 "$ref": "#/$defs/RepoBusyEncoded"9521 },9522 {9523 "$ref": "#/$defs/DirectPushEncoded"9524 },9525 {9526 "$ref": "#/$defs/AskBlockedEncoded"9527 },9528 {9529 "$ref": "#/$defs/DenouncedEncoded"9530 },9531 {9532 "$ref": "#/$defs/OutOfScopeEncoded"9533 },9534 {9535 "$ref": "#/$defs/TouchedJudgeEncoded"9536 },9537 {9538 "$ref": "#/$defs/WeakenedEncoded"9539 },9540 {9541 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"9542 },9543 {9544 "$ref": "#/$defs/ReachedInternalsEncoded"9545 },9546 {9547 "$ref": "#/$defs/StaleBaseEncoded"9548 },9549 {9550 "$ref": "#/$defs/StaleLayerEncoded"9551 },9552 {9553 "$ref": "#/$defs/ChecksFailedEncoded"9554 },9555 {9556 "$ref": "#/$defs/HeldBackFailedEncoded"9557 },9558 {9559 "$ref": "#/$defs/AttemptsExhaustedEncoded"9560 },9561 {9562 "$ref": "#/$defs/FlakeEncoded"9563 },9564 {9565 "$ref": "#/$defs/VerifierBlockedEncoded"9566 },9567 {9568 "$ref": "#/$defs/NotRedFirstEncoded"9569 },9570 {9571 "$ref": "#/$defs/WeakCheckEncoded"9572 },9573 {9574 "$ref": "#/$defs/IncompleteBriefEncoded"9575 },9576 {9577 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"9578 },9579 {9580 "$ref": "#/$defs/SecretInOutputEncoded"9581 },9582 {9583 "$ref": "#/$defs/UnstatedRequirementEncoded"9584 },9585 {9586 "$ref": "#/$defs/PostureChangeEncoded"9587 },9588 {9589 "$ref": "#/$defs/NotDeciderEncoded"9590 },9591 {9592 "$ref": "#/$defs/DecisionClosedEncoded"9593 },9594 {9595 "$ref": "#/$defs/UnknownProjectEncoded"9596 },9597 {9598 "$ref": "#/$defs/UnknownAskEncoded"9599 },9600 {9601 "$ref": "#/$defs/UnknownCommitEncoded"9602 },9603 {9604 "$ref": "#/$defs/UnknownDecisionEncoded"9605 },9606 {9607 "$ref": "#/$defs/ProjectExistsEncoded"9608 },9609 {9610 "$ref": "#/$defs/ImportFailedEncoded"9611 },9612 {9613 "$ref": "#/$defs/UnknownEnvItemEncoded"9614 },9615 {9616 "$ref": "#/$defs/NotSensitiveEncoded"9617 },9618 {9619 "$ref": "#/$defs/ValueTooShortEncoded"9620 }9621 ]9622 }9623 ],9624 "type": "array"9625 }9626 },9627 "required": [9628 "_tag",9629 "refusals"9630 ],9631 "type": "object"9632 },9633 {9634 "additionalProperties": true,9635 "properties": {9636 "_tag": {9637 "enum": [9638 "WaitingOnParent"9639 ],9640 "type": "string"9641 },9642 "ask": {9643 "allOf": [9644 {9645 "not": {9646 "enum": [9647 "me",9648 "layer"9649 ]9650 }9651 }9652 ],9653 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9654 "type": "string"9655 }9656 },9657 "required": [9658 "_tag",9659 "ask"9660 ],9661 "type": "object"9662 }9663 ]9664 },9665 "patchId": {9666 "pattern": "^[0-9a-f]{64}$",9667 "type": "string"9668 },9669 "project": {9670 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9671 "type": "string"9672 },9673 "stage": {9674 "enum": [9675 "parse",9676 "shape",9677 "merge",9678 "cheap",9679 "checks",9680 "heldBack",9681 "human"9682 ],9683 "type": "string"9684 },9685 "tree": {9686 "pattern": "^[0-9a-f]{40}$",9687 "type": "string"9688 },9689 "verifier": {9690 "enum": [9691 "platform"9692 ],9693 "type": "string"9694 }9695 },9696 "required": [9697 "ask",9698 "at",9699 "base",9700 "checkVersion",9701 "head",9702 "heldBack",9703 "lanes",9704 "outcome",9705 "patchId",9706 "project",9707 "stage",9708 "tree",9709 "verifier"9710 ],9711 "type": "object"9712 }9713 },9714 "type": "object"9715 },9716 "vouch.error": {9717 "anyOf": [9718 {9719 "$ref": "#/$defs/UnknownProjectEncoded"9720 },9721 {9722 "$ref": "#/$defs/NotDeciderEncoded"9723 },9724 {9725 "$ref": "#/$defs/StaleBaseEncoded"9726 }9727 ]9728 },9729 "vouch.payload": {9730 "additionalProperties": true,9731 "properties": {9732 "handle": {9733 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",9734 "type": "string"9735 },9736 "note": {9737 "type": "string"9738 },9739 "project": {9740 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9741 "type": "string"9742 },9743 "verdict": {9744 "enum": [9745 "vouch",9746 "denounce"9747 ],9748 "type": "string"9749 }9750 },9751 "required": [9752 "handle",9753 "project",9754 "verdict"9755 ],9756 "type": "object"9757 },9758 "vouch.success": {9759 "additionalProperties": true,9760 "properties": {9761 "landed": {9762 "pattern": "^[0-9a-f]{40}$",9763 "type": "string"9764 }9765 },9766 "required": [9767 "landed"9768 ],9769 "type": "object"9770 },9771 "watch.error": {9772 "$ref": "#/$defs/UnknownProjectEncoded"9773 },9774 "watch.payload": {9775 "additionalProperties": true,9776 "properties": {9777 "project": {9778 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9779 "type": "string"9780 },9781 "since": {9782 "type": "integer"9783 }9784 },9785 "required": [9786 "project"9787 ],9788 "type": "object"9789 },9790 "watch.success": {9791 "anyOf": [9792 {9793 "additionalProperties": true,9794 "properties": {9795 "_tag": {9796 "enum": [9797 "AskClosed"9798 ],9799 "type": "string"9800 },9801 "ask": {9802 "allOf": [9803 {9804 "not": {9805 "enum": [9806 "me",9807 "layer"9808 ]9809 }9810 }9811 ],9812 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9813 "type": "string"9814 },9815 "at": {9816 "type": "string"9817 },9818 "landing": {9819 "pattern": "^[0-9a-f]{40}$",9820 "type": "string"9821 },9822 "seq": {9823 "type": "integer"9824 }9825 },9826 "required": [9827 "_tag",9828 "at",9829 "seq",9830 "ask",9831 "landing"9832 ],9833 "type": "object"9834 },9835 {9836 "additionalProperties": true,9837 "properties": {9838 "_tag": {9839 "enum": [9840 "AskOpened"9841 ],9842 "type": "string"9843 },9844 "ask": {9845 "additionalProperties": true,9846 "properties": {9847 "ask": {9848 "allOf": [9849 {9850 "not": {9851 "enum": [9852 "me",9853 "layer"9854 ]9855 }9856 }9857 ],9858 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9859 "type": "string"9860 },9861 "blockedBy": {9862 "items": {9863 "allOf": [9864 {9865 "not": {9866 "enum": [9867 "me",9868 "layer"9869 ]9870 }9871 }9872 ],9873 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9874 "type": "string"9875 },9876 "type": "array"9877 },9878 "claimed": {9879 "type": "boolean"9880 },9881 "kind": {9882 "pattern": "^[a-z][a-zA-Z0-9-]*$",9883 "type": "string"9884 },9885 "reserve": {9886 "enum": [9887 "newcomers",9888 "people"9889 ],9890 "type": "string"9891 },9892 "territory": {9893 "minLength": 1,9894 "type": "string"9895 },9896 "want": {9897 "minLength": 1,9898 "type": "string"9899 }9900 },9901 "required": [9902 "ask",9903 "blockedBy",9904 "claimed",9905 "kind",9906 "territory",9907 "want"9908 ],9909 "type": "object"9910 },9911 "at": {9912 "type": "string"9913 },9914 "seq": {9915 "type": "integer"9916 }9917 },9918 "required": [9919 "_tag",9920 "at",9921 "seq",9922 "ask"9923 ],9924 "type": "object"9925 },9926 {9927 "additionalProperties": true,9928 "properties": {9929 "_tag": {9930 "enum": [9931 "Claimed"9932 ],9933 "type": "string"9934 },9935 "ask": {9936 "allOf": [9937 {9938 "not": {9939 "enum": [9940 "me",9941 "layer"9942 ]9943 }9944 }9945 ],9946 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",9947 "type": "string"9948 },9949 "at": {9950 "type": "string"9951 },9952 "claimant": {9953 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",9954 "type": "string"9955 },9956 "seq": {9957 "type": "integer"9958 }9959 },9960 "required": [9961 "_tag",9962 "at",9963 "seq",9964 "ask",9965 "claimant"9966 ],9967 "type": "object"9968 },9969 {9970 "additionalProperties": true,9971 "properties": {9972 "_tag": {9973 "enum": [9974 "Decided"9975 ],9976 "type": "string"9977 },9978 "at": {9979 "type": "string"9980 },9981 "choice": {9982 "enum": [9983 "accept",9984 "decline",9985 "adopt",9986 "revert"9987 ],9988 "type": "string"9989 },9990 "decision": {9991 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",9992 "type": "string"9993 },9994 "seq": {9995 "type": "integer"9996 }9997 },9998 "required": [9999 "_tag",10000 "at",10001 "seq",10002 "choice",10003 "decision"10004 ],10005 "type": "object"10006 },10007 {10008 "additionalProperties": true,10009 "properties": {10010 "_tag": {10011 "enum": [10012 "Judged"10013 ],10014 "type": "string"10015 },10016 "ask": {10017 "allOf": [10018 {10019 "not": {10020 "enum": [10021 "me",10022 "layer"10023 ]10024 }10025 }10026 ],10027 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10028 "type": "string"10029 },10030 "at": {10031 "type": "string"10032 },10033 "head": {10034 "pattern": "^[0-9a-f]{40}$",10035 "type": "string"10036 },10037 "outcome": {10038 "anyOf": [10039 {10040 "additionalProperties": true,10041 "properties": {10042 "_tag": {10043 "enum": [10044 "AwaitingDecision"10045 ],10046 "type": "string"10047 },10048 "decision": {10049 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",10050 "type": "string"10051 }10052 },10053 "required": [10054 "_tag",10055 "decision"10056 ],10057 "type": "object"10058 },10059 {10060 "additionalProperties": true,10061 "properties": {10062 "_tag": {10063 "enum": [10064 "AwaitingFinish"10065 ],10066 "type": "string"10067 },10068 "decider": {10069 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",10070 "type": "string"10071 }10072 },10073 "required": [10074 "_tag"10075 ],10076 "type": "object"10077 },10078 {10079 "additionalProperties": true,10080 "properties": {10081 "_tag": {10082 "enum": [10083 "Checking"10084 ],10085 "type": "string"10086 },10087 "stage": {10088 "enum": [10089 "parse",10090 "shape",10091 "merge",10092 "cheap",10093 "checks",10094 "heldBack",10095 "human"10096 ],10097 "type": "string"10098 }10099 },10100 "required": [10101 "_tag",10102 "stage"10103 ],10104 "type": "object"10105 },10106 {10107 "additionalProperties": true,10108 "properties": {10109 "_tag": {10110 "enum": [10111 "Landed"10112 ],10113 "type": "string"10114 },10115 "sha": {10116 "pattern": "^[0-9a-f]{40}$",10117 "type": "string"10118 }10119 },10120 "required": [10121 "_tag",10122 "sha"10123 ],10124 "type": "object"10125 },10126 {10127 "additionalProperties": true,10128 "properties": {10129 "_tag": {10130 "enum": [10131 "Refused"10132 ],10133 "type": "string"10134 },10135 "refusals": {10136 "items": {10137 "anyOf": [10138 {10139 "$ref": "#/$defs/NotClaimedEncoded"10140 },10141 {10142 "$ref": "#/$defs/ClaimLapsedEncoded"10143 },10144 {10145 "$ref": "#/$defs/NotVouchedEncoded"10146 },10147 {10148 "$ref": "#/$defs/CapReachedEncoded"10149 },10150 {10151 "$ref": "#/$defs/AskFullEncoded"10152 },10153 {10154 "$ref": "#/$defs/NoAskEncoded"10155 },10156 {10157 "$ref": "#/$defs/RepoBusyEncoded"10158 },10159 {10160 "$ref": "#/$defs/DirectPushEncoded"10161 },10162 {10163 "$ref": "#/$defs/AskBlockedEncoded"10164 },10165 {10166 "$ref": "#/$defs/DenouncedEncoded"10167 },10168 {10169 "$ref": "#/$defs/OutOfScopeEncoded"10170 },10171 {10172 "$ref": "#/$defs/TouchedJudgeEncoded"10173 },10174 {10175 "$ref": "#/$defs/WeakenedEncoded"10176 },10177 {10178 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"10179 },10180 {10181 "$ref": "#/$defs/ReachedInternalsEncoded"10182 },10183 {10184 "$ref": "#/$defs/StaleBaseEncoded"10185 },10186 {10187 "$ref": "#/$defs/StaleLayerEncoded"10188 },10189 {10190 "$ref": "#/$defs/ChecksFailedEncoded"10191 },10192 {10193 "$ref": "#/$defs/HeldBackFailedEncoded"10194 },10195 {10196 "$ref": "#/$defs/AttemptsExhaustedEncoded"10197 },10198 {10199 "$ref": "#/$defs/FlakeEncoded"10200 },10201 {10202 "$ref": "#/$defs/VerifierBlockedEncoded"10203 },10204 {10205 "$ref": "#/$defs/NotRedFirstEncoded"10206 },10207 {10208 "$ref": "#/$defs/WeakCheckEncoded"10209 },10210 {10211 "$ref": "#/$defs/IncompleteBriefEncoded"10212 },10213 {10214 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"10215 },10216 {10217 "$ref": "#/$defs/SecretInOutputEncoded"10218 },10219 {10220 "$ref": "#/$defs/UnstatedRequirementEncoded"10221 },10222 {10223 "$ref": "#/$defs/PostureChangeEncoded"10224 },10225 {10226 "$ref": "#/$defs/NotDeciderEncoded"10227 },10228 {10229 "$ref": "#/$defs/DecisionClosedEncoded"10230 },10231 {10232 "$ref": "#/$defs/UnknownProjectEncoded"10233 },10234 {10235 "$ref": "#/$defs/UnknownAskEncoded"10236 },10237 {10238 "$ref": "#/$defs/UnknownCommitEncoded"10239 },10240 {10241 "$ref": "#/$defs/UnknownDecisionEncoded"10242 },10243 {10244 "$ref": "#/$defs/ProjectExistsEncoded"10245 },10246 {10247 "$ref": "#/$defs/ImportFailedEncoded"10248 },10249 {10250 "$ref": "#/$defs/UnknownEnvItemEncoded"10251 },10252 {10253 "$ref": "#/$defs/NotSensitiveEncoded"10254 },10255 {10256 "$ref": "#/$defs/ValueTooShortEncoded"10257 }10258 ]10259 },10260 "minItems": 1,10261 "prefixItems": [10262 {10263 "anyOf": [10264 {10265 "$ref": "#/$defs/NotClaimedEncoded"10266 },10267 {10268 "$ref": "#/$defs/ClaimLapsedEncoded"10269 },10270 {10271 "$ref": "#/$defs/NotVouchedEncoded"10272 },10273 {10274 "$ref": "#/$defs/CapReachedEncoded"10275 },10276 {10277 "$ref": "#/$defs/AskFullEncoded"10278 },10279 {10280 "$ref": "#/$defs/NoAskEncoded"10281 },10282 {10283 "$ref": "#/$defs/RepoBusyEncoded"10284 },10285 {10286 "$ref": "#/$defs/DirectPushEncoded"10287 },10288 {10289 "$ref": "#/$defs/AskBlockedEncoded"10290 },10291 {10292 "$ref": "#/$defs/DenouncedEncoded"10293 },10294 {10295 "$ref": "#/$defs/OutOfScopeEncoded"10296 },10297 {10298 "$ref": "#/$defs/TouchedJudgeEncoded"10299 },10300 {10301 "$ref": "#/$defs/WeakenedEncoded"10302 },10303 {10304 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"10305 },10306 {10307 "$ref": "#/$defs/ReachedInternalsEncoded"10308 },10309 {10310 "$ref": "#/$defs/StaleBaseEncoded"10311 },10312 {10313 "$ref": "#/$defs/StaleLayerEncoded"10314 },10315 {10316 "$ref": "#/$defs/ChecksFailedEncoded"10317 },10318 {10319 "$ref": "#/$defs/HeldBackFailedEncoded"10320 },10321 {10322 "$ref": "#/$defs/AttemptsExhaustedEncoded"10323 },10324 {10325 "$ref": "#/$defs/FlakeEncoded"10326 },10327 {10328 "$ref": "#/$defs/VerifierBlockedEncoded"10329 },10330 {10331 "$ref": "#/$defs/NotRedFirstEncoded"10332 },10333 {10334 "$ref": "#/$defs/WeakCheckEncoded"10335 },10336 {10337 "$ref": "#/$defs/IncompleteBriefEncoded"10338 },10339 {10340 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"10341 },10342 {10343 "$ref": "#/$defs/SecretInOutputEncoded"10344 },10345 {10346 "$ref": "#/$defs/UnstatedRequirementEncoded"10347 },10348 {10349 "$ref": "#/$defs/PostureChangeEncoded"10350 },10351 {10352 "$ref": "#/$defs/NotDeciderEncoded"10353 },10354 {10355 "$ref": "#/$defs/DecisionClosedEncoded"10356 },10357 {10358 "$ref": "#/$defs/UnknownProjectEncoded"10359 },10360 {10361 "$ref": "#/$defs/UnknownAskEncoded"10362 },10363 {10364 "$ref": "#/$defs/UnknownCommitEncoded"10365 },10366 {10367 "$ref": "#/$defs/UnknownDecisionEncoded"10368 },10369 {10370 "$ref": "#/$defs/ProjectExistsEncoded"10371 },10372 {10373 "$ref": "#/$defs/ImportFailedEncoded"10374 },10375 {10376 "$ref": "#/$defs/UnknownEnvItemEncoded"10377 },10378 {10379 "$ref": "#/$defs/NotSensitiveEncoded"10380 },10381 {10382 "$ref": "#/$defs/ValueTooShortEncoded"10383 }10384 ]10385 }10386 ],10387 "type": "array"10388 }10389 },10390 "required": [10391 "_tag",10392 "refusals"10393 ],10394 "type": "object"10395 },10396 {10397 "additionalProperties": true,10398 "properties": {10399 "_tag": {10400 "enum": [10401 "WaitingOnParent"10402 ],10403 "type": "string"10404 },10405 "ask": {10406 "allOf": [10407 {10408 "not": {10409 "enum": [10410 "me",10411 "layer"10412 ]10413 }10414 }10415 ],10416 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10417 "type": "string"10418 }10419 },10420 "required": [10421 "_tag",10422 "ask"10423 ],10424 "type": "object"10425 }10426 ]10427 },10428 "seq": {10429 "type": "integer"10430 }10431 },10432 "required": [10433 "_tag",10434 "at",10435 "seq",10436 "ask",10437 "head",10438 "outcome"10439 ],10440 "type": "object"10441 },10442 {10443 "additionalProperties": true,10444 "properties": {10445 "_tag": {10446 "enum": [10447 "Landed"10448 ],10449 "type": "string"10450 },10451 "at": {10452 "type": "string"10453 },10454 "landing": {10455 "additionalProperties": true,10456 "properties": {10457 "ask": {10458 "allOf": [10459 {10460 "not": {10461 "enum": [10462 "me",10463 "layer"10464 ]10465 }10466 }10467 ],10468 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10469 "type": "string"10470 },10471 "assisted": {10472 "items": {10473 "additionalProperties": true,10474 "properties": {10475 "harness": {10476 "minLength": 1,10477 "type": "string"10478 },10479 "model": {10480 "minLength": 1,10481 "type": "string"10482 },10483 "verified": {10484 "type": "boolean"10485 }10486 },10487 "required": [10488 "harness",10489 "verified"10490 ],10491 "type": "object"10492 },10493 "type": "array"10494 },10495 "author": {10496 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",10497 "type": "string"10498 },10499 "credits": {10500 "items": {10501 "additionalProperties": true,10502 "properties": {10503 "handle": {10504 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",10505 "type": "string"10506 },10507 "role": {10508 "enum": [10509 "Asked-by",10510 "Signed-off-by",10511 "Decided-by",10512 "Mentored-by",10513 "Finished-by",10514 "Advised-by",10515 "Released-by"10516 ],10517 "type": "string"10518 }10519 },10520 "required": [10521 "handle",10522 "role"10523 ],10524 "type": "object"10525 },10526 "type": "array"10527 },10528 "heldBackTrailer": {10529 "minLength": 1,10530 "type": "string"10531 },10532 "landedAt": {10533 "type": "string"10534 },10535 "parent": {10536 "pattern": "^[0-9a-f]{40}$",10537 "type": "string"10538 },10539 "project": {10540 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10541 "type": "string"10542 },10543 "requestId": {10544 "pattern": "^[A-Za-z0-9_-]{8,64}$",10545 "type": "string"10546 },10547 "sha": {10548 "pattern": "^[0-9a-f]{40}$",10549 "type": "string"10550 },10551 "verdict": {10552 "additionalProperties": true,10553 "properties": {10554 "ask": {10555 "allOf": [10556 {10557 "not": {10558 "enum": [10559 "me",10560 "layer"10561 ]10562 }10563 }10564 ],10565 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",10566 "type": "string"10567 },10568 "at": {10569 "type": "string"10570 },10571 "base": {10572 "pattern": "^[0-9a-f]{40}$",10573 "type": "string"10574 },10575 "checkVersion": {10576 "minLength": 1,10577 "type": "string"10578 },10579 "head": {10580 "pattern": "^[0-9a-f]{40}$",10581 "type": "string"10582 },10583 "heldBack": {10584 "items": {10585 "additionalProperties": true,10586 "properties": {10587 "area": {10588 "pattern": "^[a-z][a-zA-Z0-9-]*$",10589 "type": "string"10590 },10591 "passed": {10592 "type": "integer"10593 },10594 "suite": {10595 "pattern": "^sha256:[0-9a-f]{64}$",10596 "type": "string"10597 },10598 "total": {10599 "type": "integer"10600 }10601 },10602 "required": [10603 "area",10604 "passed",10605 "suite",10606 "total"10607 ],10608 "type": "object"10609 },10610 "type": "array"10611 },10612 "lanes": {10613 "items": {10614 "additionalProperties": true,10615 "properties": {10616 "command": {10617 "minLength": 1,10618 "type": "string"10619 },10620 "durationMs": {10621 "type": "integer"10622 },10623 "lane": {10624 "pattern": "^[a-z][a-zA-Z0-9-]*$",10625 "type": "string"10626 },10627 "logRef": {10628 "minLength": 1,10629 "type": "string"10630 },10631 "result": {10632 "enum": [10633 "passed",10634 "failed",10635 "loadError",10636 "flaked",10637 "blocked"10638 ],10639 "type": "string"10640 }10641 },10642 "required": [10643 "command",10644 "durationMs",10645 "lane",10646 "result"10647 ],10648 "type": "object"10649 },10650 "type": "array"10651 },10652 "outcome": {10653 "anyOf": [10654 {10655 "additionalProperties": true,10656 "properties": {10657 "_tag": {10658 "enum": [10659 "AwaitingDecision"10660 ],10661 "type": "string"10662 },10663 "decision": {10664 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",10665 "type": "string"10666 }10667 },10668 "required": [10669 "_tag",10670 "decision"10671 ],10672 "type": "object"10673 },10674 {10675 "additionalProperties": true,10676 "properties": {10677 "_tag": {10678 "enum": [10679 "AwaitingFinish"10680 ],10681 "type": "string"10682 },10683 "decider": {10684 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",10685 "type": "string"10686 }10687 },10688 "required": [10689 "_tag"10690 ],10691 "type": "object"10692 },10693 {10694 "additionalProperties": true,10695 "properties": {10696 "_tag": {10697 "enum": [10698 "Checking"10699 ],10700 "type": "string"10701 },10702 "stage": {10703 "enum": [10704 "parse",10705 "shape",10706 "merge",10707 "cheap",10708 "checks",10709 "heldBack",10710 "human"10711 ],10712 "type": "string"10713 }10714 },10715 "required": [10716 "_tag",10717 "stage"10718 ],10719 "type": "object"10720 },10721 {10722 "additionalProperties": true,10723 "properties": {10724 "_tag": {10725 "enum": [10726 "Landed"10727 ],10728 "type": "string"10729 },10730 "sha": {10731 "pattern": "^[0-9a-f]{40}$",10732 "type": "string"10733 }10734 },10735 "required": [10736 "_tag",10737 "sha"10738 ],10739 "type": "object"10740 },10741 {10742 "additionalProperties": true,10743 "properties": {10744 "_tag": {10745 "enum": [10746 "Refused"10747 ],10748 "type": "string"10749 },10750 "refusals": {10751 "items": {10752 "anyOf": [10753 {10754 "$ref": "#/$defs/NotClaimedEncoded"10755 },10756 {10757 "$ref": "#/$defs/ClaimLapsedEncoded"10758 },10759 {10760 "$ref": "#/$defs/NotVouchedEncoded"10761 },10762 {10763 "$ref": "#/$defs/CapReachedEncoded"10764 },10765 {10766 "$ref": "#/$defs/AskFullEncoded"10767 },10768 {10769 "$ref": "#/$defs/NoAskEncoded"10770 },10771 {10772 "$ref": "#/$defs/RepoBusyEncoded"10773 },10774 {10775 "$ref": "#/$defs/DirectPushEncoded"10776 },10777 {10778 "$ref": "#/$defs/AskBlockedEncoded"10779 },10780 {10781 "$ref": "#/$defs/DenouncedEncoded"10782 },10783 {10784 "$ref": "#/$defs/OutOfScopeEncoded"10785 },10786 {10787 "$ref": "#/$defs/TouchedJudgeEncoded"10788 },10789 {10790 "$ref": "#/$defs/WeakenedEncoded"10791 },10792 {10793 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"10794 },10795 {10796 "$ref": "#/$defs/ReachedInternalsEncoded"10797 },10798 {10799 "$ref": "#/$defs/StaleBaseEncoded"10800 },10801 {10802 "$ref": "#/$defs/StaleLayerEncoded"10803 },10804 {10805 "$ref": "#/$defs/ChecksFailedEncoded"10806 },10807 {10808 "$ref": "#/$defs/HeldBackFailedEncoded"10809 },10810 {10811 "$ref": "#/$defs/AttemptsExhaustedEncoded"10812 },10813 {10814 "$ref": "#/$defs/FlakeEncoded"10815 },10816 {10817 "$ref": "#/$defs/VerifierBlockedEncoded"10818 },10819 {10820 "$ref": "#/$defs/NotRedFirstEncoded"10821 },10822 {10823 "$ref": "#/$defs/WeakCheckEncoded"10824 },10825 {10826 "$ref": "#/$defs/IncompleteBriefEncoded"10827 },10828 {10829 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"10830 },10831 {10832 "$ref": "#/$defs/SecretInOutputEncoded"10833 },10834 {10835 "$ref": "#/$defs/UnstatedRequirementEncoded"10836 },10837 {10838 "$ref": "#/$defs/PostureChangeEncoded"10839 },10840 {10841 "$ref": "#/$defs/NotDeciderEncoded"10842 },10843 {10844 "$ref": "#/$defs/DecisionClosedEncoded"10845 },10846 {10847 "$ref": "#/$defs/UnknownProjectEncoded"10848 },10849 {10850 "$ref": "#/$defs/UnknownAskEncoded"10851 },10852 {10853 "$ref": "#/$defs/UnknownCommitEncoded"10854 },10855 {10856 "$ref": "#/$defs/UnknownDecisionEncoded"10857 },10858 {10859 "$ref": "#/$defs/ProjectExistsEncoded"10860 },10861 {10862 "$ref": "#/$defs/ImportFailedEncoded"10863 },10864 {10865 "$ref": "#/$defs/UnknownEnvItemEncoded"10866 },10867 {10868 "$ref": "#/$defs/NotSensitiveEncoded"10869 },10870 {10871 "$ref": "#/$defs/ValueTooShortEncoded"10872 }10873 ]10874 },10875 "minItems": 1,10876 "prefixItems": [10877 {10878 "anyOf": [10879 {10880 "$ref": "#/$defs/NotClaimedEncoded"10881 },10882 {10883 "$ref": "#/$defs/ClaimLapsedEncoded"10884 },10885 {10886 "$ref": "#/$defs/NotVouchedEncoded"10887 },10888 {10889 "$ref": "#/$defs/CapReachedEncoded"10890 },10891 {10892 "$ref": "#/$defs/AskFullEncoded"10893 },10894 {10895 "$ref": "#/$defs/NoAskEncoded"10896 },10897 {10898 "$ref": "#/$defs/RepoBusyEncoded"10899 },10900 {10901 "$ref": "#/$defs/DirectPushEncoded"10902 },10903 {10904 "$ref": "#/$defs/AskBlockedEncoded"10905 },10906 {10907 "$ref": "#/$defs/DenouncedEncoded"10908 },10909 {10910 "$ref": "#/$defs/OutOfScopeEncoded"10911 },10912 {10913 "$ref": "#/$defs/TouchedJudgeEncoded"10914 },10915 {10916 "$ref": "#/$defs/WeakenedEncoded"10917 },10918 {10919 "$ref": "#/$defs/PrivatePathInPublicTreeEncoded"10920 },10921 {10922 "$ref": "#/$defs/ReachedInternalsEncoded"10923 },10924 {10925 "$ref": "#/$defs/StaleBaseEncoded"10926 },10927 {10928 "$ref": "#/$defs/StaleLayerEncoded"10929 },10930 {10931 "$ref": "#/$defs/ChecksFailedEncoded"10932 },10933 {10934 "$ref": "#/$defs/HeldBackFailedEncoded"10935 },10936 {10937 "$ref": "#/$defs/AttemptsExhaustedEncoded"10938 },10939 {10940 "$ref": "#/$defs/FlakeEncoded"10941 },10942 {10943 "$ref": "#/$defs/VerifierBlockedEncoded"10944 },10945 {10946 "$ref": "#/$defs/NotRedFirstEncoded"10947 },10948 {10949 "$ref": "#/$defs/WeakCheckEncoded"10950 },10951 {10952 "$ref": "#/$defs/IncompleteBriefEncoded"10953 },10954 {10955 "$ref": "#/$defs/LayerContentInPublicTreeEncoded"10956 },10957 {10958 "$ref": "#/$defs/SecretInOutputEncoded"10959 },10960 {10961 "$ref": "#/$defs/UnstatedRequirementEncoded"10962 },10963 {10964 "$ref": "#/$defs/PostureChangeEncoded"10965 },10966 {10967 "$ref": "#/$defs/NotDeciderEncoded"10968 },10969 {10970 "$ref": "#/$defs/DecisionClosedEncoded"10971 },10972 {10973 "$ref": "#/$defs/UnknownProjectEncoded"10974 },10975 {10976 "$ref": "#/$defs/UnknownAskEncoded"10977 },10978 {10979 "$ref": "#/$defs/UnknownCommitEncoded"10980 },10981 {10982 "$ref": "#/$defs/UnknownDecisionEncoded"10983 },10984 {10985 "$ref": "#/$defs/ProjectExistsEncoded"10986 },10987 {10988 "$ref": "#/$defs/ImportFailedEncoded"10989 },10990 {10991 "$ref": "#/$defs/UnknownEnvItemEncoded"10992 },10993 {10994 "$ref": "#/$defs/NotSensitiveEncoded"10995 },10996 {10997 "$ref": "#/$defs/ValueTooShortEncoded"10998 }10999 ]11000 }11001 ],11002 "type": "array"11003 }11004 },11005 "required": [11006 "_tag",11007 "refusals"11008 ],11009 "type": "object"11010 },11011 {11012 "additionalProperties": true,11013 "properties": {11014 "_tag": {11015 "enum": [11016 "WaitingOnParent"11017 ],11018 "type": "string"11019 },11020 "ask": {11021 "allOf": [11022 {11023 "not": {11024 "enum": [11025 "me",11026 "layer"11027 ]11028 }11029 }11030 ],11031 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11032 "type": "string"11033 }11034 },11035 "required": [11036 "_tag",11037 "ask"11038 ],11039 "type": "object"11040 }11041 ]11042 },11043 "patchId": {11044 "pattern": "^[0-9a-f]{64}$",11045 "type": "string"11046 },11047 "project": {11048 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11049 "type": "string"11050 },11051 "stage": {11052 "enum": [11053 "parse",11054 "shape",11055 "merge",11056 "cheap",11057 "checks",11058 "heldBack",11059 "human"11060 ],11061 "type": "string"11062 },11063 "tree": {11064 "pattern": "^[0-9a-f]{40}$",11065 "type": "string"11066 },11067 "verifier": {11068 "enum": [11069 "platform"11070 ],11071 "type": "string"11072 }11073 },11074 "required": [11075 "ask",11076 "at",11077 "base",11078 "checkVersion",11079 "head",11080 "heldBack",11081 "lanes",11082 "outcome",11083 "patchId",11084 "project",11085 "stage",11086 "tree",11087 "verifier"11088 ],11089 "type": "object"11090 }11091 },11092 "required": [11093 "assisted",11094 "author",11095 "credits",11096 "landedAt",11097 "parent",11098 "project",11099 "sha"11100 ],11101 "type": "object"11102 },11103 "seq": {11104 "type": "integer"11105 }11106 },11107 "required": [11108 "_tag",11109 "at",11110 "seq",11111 "landing"11112 ],11113 "type": "object"11114 },11115 {11116 "additionalProperties": true,11117 "properties": {11118 "_tag": {11119 "enum": [11120 "Lapsed"11121 ],11122 "type": "string"11123 },11124 "ask": {11125 "allOf": [11126 {11127 "not": {11128 "enum": [11129 "me",11130 "layer"11131 ]11132 }11133 }11134 ],11135 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11136 "type": "string"11137 },11138 "at": {11139 "type": "string"11140 },11141 "seq": {11142 "type": "integer"11143 }11144 },11145 "required": [11146 "_tag",11147 "at",11148 "seq",11149 "ask"11150 ],11151 "type": "object"11152 },11153 {11154 "additionalProperties": true,11155 "properties": {11156 "_tag": {11157 "enum": [11158 "LedgerAppended"11159 ],11160 "type": "string"11161 },11162 "at": {11163 "type": "string"11164 },11165 "entry": {11166 "anyOf": [11167 {11168 "additionalProperties": true,11169 "properties": {11170 "_tag": {11171 "enum": [11172 "Admitted"11173 ],11174 "type": "string"11175 },11176 "area": {11177 "pattern": "^[a-z][a-zA-Z0-9-]*$",11178 "type": "string"11179 },11180 "at": {11181 "type": "string"11182 },11183 "knownBadCaught": {11184 "type": "integer"11185 },11186 "mainRuns": {11187 "type": "integer"11188 },11189 "seq": {11190 "type": "integer"11191 },11192 "suite": {11193 "pattern": "^sha256:[0-9a-f]{64}$",11194 "type": "string"11195 }11196 },11197 "required": [11198 "_tag",11199 "area",11200 "at",11201 "knownBadCaught",11202 "mainRuns",11203 "seq",11204 "suite"11205 ],11206 "type": "object"11207 },11208 {11209 "additionalProperties": true,11210 "properties": {11211 "_tag": {11212 "enum": [11213 "CommitmentPublished"11214 ],11215 "type": "string"11216 },11217 "area": {11218 "pattern": "^[a-z][a-zA-Z0-9-]*$",11219 "type": "string"11220 },11221 "at": {11222 "type": "string"11223 },11224 "authors": {11225 "type": "integer"11226 },11227 "checks": {11228 "type": "integer"11229 },11230 "seq": {11231 "type": "integer"11232 },11233 "suite": {11234 "pattern": "^sha256:[0-9a-f]{64}$",11235 "type": "string"11236 }11237 },11238 "required": [11239 "_tag",11240 "area",11241 "at",11242 "authors",11243 "checks",11244 "seq",11245 "suite"11246 ],11247 "type": "object"11248 },11249 {11250 "additionalProperties": true,11251 "properties": {11252 "_tag": {11253 "enum": [11254 "CountChanged"11255 ],11256 "type": "string"11257 },11258 "area": {11259 "pattern": "^[a-z][a-zA-Z0-9-]*$",11260 "type": "string"11261 },11262 "at": {11263 "type": "string"11264 },11265 "count": {11266 "type": "integer"11267 },11268 "layer": {11269 "pattern": "^[a-z][a-zA-Z0-9-]*$",11270 "type": "string"11271 },11272 "seq": {11273 "type": "integer"11274 }11275 },11276 "required": [11277 "_tag",11278 "area",11279 "at",11280 "count",11281 "layer",11282 "seq"11283 ],11284 "type": "object"11285 },11286 {11287 "additionalProperties": true,11288 "properties": {11289 "_tag": {11290 "enum": [11291 "LayerDeclared"11292 ],11293 "type": "string"11294 },11295 "at": {11296 "type": "string"11297 },11298 "disclose": {11299 "enum": [11300 "public",11301 "sealed",11302 "counted",11303 "declared",11304 "hidden",11305 "writeOnly"11306 ],11307 "type": "string"11308 },11309 "kinds": {11310 "items": {11311 "enum": [11312 "checks",11313 "agent-config",11314 "env",11315 "experiment",11316 "notes",11317 "fix",11318 "session",11319 "personal",11320 "attachment",11321 "source"11322 ],11323 "type": "string"11324 },11325 "minItems": 1,11326 "prefixItems": [11327 {11328 "enum": [11329 "checks",11330 "agent-config",11331 "env",11332 "experiment",11333 "notes",11334 "fix",11335 "session",11336 "personal",11337 "attachment",11338 "source"11339 ],11340 "type": "string"11341 }11342 ],11343 "type": "array"11344 },11345 "layer": {11346 "pattern": "^[a-z][a-zA-Z0-9-]*$",11347 "type": "string"11348 },11349 "seq": {11350 "type": "integer"11351 }11352 },11353 "required": [11354 "_tag",11355 "at",11356 "disclose",11357 "kinds",11358 "layer",11359 "seq"11360 ],11361 "type": "object"11362 },11363 {11364 "additionalProperties": true,11365 "properties": {11366 "_tag": {11367 "enum": [11368 "PostureChanged"11369 ],11370 "type": "string"11371 },11372 "at": {11373 "type": "string"11374 },11375 "decision": {11376 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",11377 "type": "string"11378 },11379 "from": {11380 "enum": [11381 "open",11382 "openWithSealedEvidence",11383 "openOnSchedule",11384 "openCore",11385 "sourceAvailable"11386 ],11387 "type": "string"11388 },11389 "seq": {11390 "type": "integer"11391 },11392 "to": {11393 "enum": [11394 "open",11395 "openWithSealedEvidence",11396 "openOnSchedule",11397 "openCore",11398 "sourceAvailable"11399 ],11400 "type": "string"11401 }11402 },11403 "required": [11404 "_tag",11405 "at",11406 "decision",11407 "from",11408 "seq",11409 "to"11410 ],11411 "type": "object"11412 },11413 {11414 "additionalProperties": true,11415 "properties": {11416 "_tag": {11417 "enum": [11418 "Released"11419 ],11420 "type": "string"11421 },11422 "at": {11423 "type": "string"11424 },11425 "by": {11426 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11427 "type": "string"11428 },11429 "landing": {11430 "pattern": "^[0-9a-f]{40}$",11431 "type": "string"11432 },11433 "layer": {11434 "pattern": "^[a-z][a-zA-Z0-9-]*$",11435 "type": "string"11436 },11437 "paths": {11438 "type": "integer"11439 },11440 "seq": {11441 "type": "integer"11442 }11443 },11444 "required": [11445 "_tag",11446 "at",11447 "by",11448 "landing",11449 "layer",11450 "paths",11451 "seq"11452 ],11453 "type": "object"11454 },11455 {11456 "additionalProperties": true,11457 "properties": {11458 "_tag": {11459 "enum": [11460 "ValueSet"11461 ],11462 "type": "string"11463 },11464 "at": {11465 "type": "string"11466 },11467 "by": {11468 "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$",11469 "type": "string"11470 },11471 "key": {11472 "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",11473 "type": "string"11474 },11475 "seq": {11476 "type": "integer"11477 }11478 },11479 "required": [11480 "_tag",11481 "at",11482 "by",11483 "key",11484 "seq"11485 ],11486 "type": "object"11487 }11488 ]11489 },11490 "seq": {11491 "type": "integer"11492 }11493 },11494 "required": [11495 "_tag",11496 "at",11497 "seq",11498 "entry"11499 ],11500 "type": "object"11501 },11502 {11503 "additionalProperties": true,11504 "properties": {11505 "_tag": {11506 "enum": [11507 "ProposalOpened"11508 ],11509 "type": "string"11510 },11511 "at": {11512 "type": "string"11513 },11514 "proposal": {11515 "pattern": "^[a-z]+-[0-9a-z]{6,26}$",11516 "type": "string"11517 },11518 "seq": {11519 "type": "integer"11520 }11521 },11522 "required": [11523 "_tag",11524 "at",11525 "seq",11526 "proposal"11527 ],11528 "type": "object"11529 },11530 {11531 "additionalProperties": true,11532 "properties": {11533 "_tag": {11534 "enum": [11535 "Pushed"11536 ],11537 "type": "string"11538 },11539 "ask": {11540 "allOf": [11541 {11542 "not": {11543 "enum": [11544 "me",11545 "layer"11546 ]11547 }11548 }11549 ],11550 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11551 "type": "string"11552 },11553 "at": {11554 "type": "string"11555 },11556 "head": {11557 "pattern": "^[0-9a-f]{40}$",11558 "type": "string"11559 },11560 "seq": {11561 "type": "integer"11562 }11563 },11564 "required": [11565 "_tag",11566 "at",11567 "seq",11568 "ask",11569 "head"11570 ],11571 "type": "object"11572 },11573 {11574 "additionalProperties": true,11575 "properties": {11576 "_tag": {11577 "enum": [11578 "Released"11579 ],11580 "type": "string"11581 },11582 "ask": {11583 "allOf": [11584 {11585 "not": {11586 "enum": [11587 "me",11588 "layer"11589 ]11590 }11591 }11592 ],11593 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11594 "type": "string"11595 },11596 "at": {11597 "type": "string"11598 },11599 "seq": {11600 "type": "integer"11601 }11602 },11603 "required": [11604 "_tag",11605 "at",11606 "seq",11607 "ask"11608 ],11609 "type": "object"11610 },11611 {11612 "additionalProperties": true,11613 "properties": {11614 "_tag": {11615 "enum": [11616 "Warned"11617 ],11618 "type": "string"11619 },11620 "ask": {11621 "allOf": [11622 {11623 "not": {11624 "enum": [11625 "me",11626 "layer"11627 ]11628 }11629 }11630 ],11631 "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",11632 "type": "string"11633 },11634 "at": {11635 "type": "string"11636 },11637 "seq": {11638 "type": "integer"11639 }11640 },11641 "required": [11642 "_tag",11643 "at",11644 "seq",11645 "ask"11646 ],11647 "type": "object"11648 }11649 ]11650 }11651 },11652 "$schema": "https://json-schema.org/draft/2020-12/schema",11653 "title": "The Myr protocol"
1 unmodified line
modified:packages/config/test/gen.test.ts+59 added-4 removed
3 unmodified lines
4import {5 CommandCatalog,6 Contracts,7 generate,8 partsOf,9 Refusal,10} from "../../../scripts/lib/gen.ts";1112const NON_FINITE = new Set(["Infinity", "-Infinity", "NaN"]);
104 unmodified lines
117 Schema.decodeSync(Schema.fromJsonString(CommandCatalog))(118 content("docs/reference/commands.json")119 );120120/** The fields a command's payload schema names. */121/** The fields a command's payload schema names; a command may take none. */122const payloadFields = Schema.decodeUnknownSync(122 Schema.Struct({ properties: Schema.Record(Schema.String, Schema.Json) })123 Schema.Struct({124 properties: Schema.optionalKey(Schema.Record(Schema.String, Schema.Json)),125 })126);127128/** A union of pointers, as a contract's error is written. */129const decodeUnion = Schema.decodeUnknownSync(
99 unmodified lines
229 it("says a contract with no refusals of its own can't fail that way", () => {230 const $defs = definitions();231232 const infallible = contracts.flatMap((rpc) =>230 SchemaAST.isNever(rpc.errorSchema.ast) ? [rpc._tag] : []233 SchemaAST.isNever(partsOf(rpc).error.ast) ? [rpc._tag] : []234 );235236 expect(infallible).not.toHaveLength(0);237 expect(infallible.map((tag) => $defs[`${tag}.error`])).toStrictEqual(238 infallible.map(() => ({ not: {} }))239 );240 });241242 // `watch` streams: what it sends is a run of project events, and it can243 // still be refused before the first one.244 it("defines a stream's success as one of its elements, and its error as the stream's", () => {245 const $defs = definitions();246247 expect(JSON.stringify($defs["watch.success"])).toContain('"AskOpened"');248 expect($defs["watch.error"]).toStrictEqual(ref("UnknownProject"));249 });250251 it("admits no non-finite number string and no null under an optional key", () => {252 expect(253 leaks(parseJson(content("docs/reference/protocol.schema.json")))254 ).toStrictEqual([]);255 });256257 // A stream has no tool form, and a write-only value must never pass258 // through an agent's transcript.259 it("lists only the tools MCP serves: no watch, no setEnv", () => {260 const tools = [...sections(content("docs/reference/mcp-tools.md")).keys()];261262 expect(tools).toContain("listProjects");263 expect(tools).toContain("submitAnswer");264 expect(tools).not.toContain("watch");265 expect(tools).not.toContain("setEnv");266 expect(tools).toHaveLength(contracts.length - 2);267 });268269 it("gives every MCP tool's input and output schema, with no leak in either", () => {270 const reference = content("docs/reference/mcp-tools.md");271 const schemas = jsonBlocks(reference);272
50 unmodified lines
323 const unrendered = commands.flatMap((command) => {324 const path = command.path.join(" ");325 const body = byPath.get(path) ?? "";326 const positional = new Set(command.positional);303 const { properties } = payloadFields(command.payloadSchema);327 const { properties = {} } = payloadFields(command.payloadSchema);328329 return [330 ...command.positional.map((field) => `<${field}>`),331 ...Object.keys(properties).flatMap((field) =>
11 unmodified lines
343 // Known rows, so an empty catalog can't pass.344 expect(byPath.get("asks")).toContain("| `--project` | text | yes |");345 expect(byPath.get("submit")).toContain("| `--head` | text | yes |");346 });347348 // The CLI takes a boolean as a switch that defaults to off, so it is never349 // required and takes no value.350 it("writes a boolean field as an optional switch", () => {351 const [, envSet = ""] =352 [...sections(content("docs/reference/cli.md"))].find(([heading]) =>353 heading.endsWith(" env set`")354 ) ?? [];355356 expect(envSet).toContain(" [--acknowledgeShort]");357 expect(envSet).not.toContain("<acknowledgeShort>");358 expect(envSet).toContain(359 "| `--acknowledgeShort` | nothing (a switch) | no |"360 );361 });362363 // A table cell ends at any pipe Markdown doesn't see escaped, so a choice364 // written `"a" | "b"` would push its row past the table's three columns.365 it("keeps every argument row to its three columns, a choice's values included", () => {366 const rows = content("docs/reference/cli.md")367 .split("\n")368 .filter((line) => line.startsWith("| `"));369370 const split = rows.flatMap((row) =>371 row.split(/(?<!\\)\|/u).length === 5 ? [] : [row]372 );373374 expect(rows).not.toHaveLength(0);375 expect(split).toStrictEqual([]);376 expect(rows).toContain('| `--verdict` | "vouch" \\| "denounce" | yes |');377 });378});379380describe("the refusals reference", () => {381 it("gives each refusal's reason as the renderer words it", () => {
13 unmodified lines
added:packages/protocol/src/authenticate.ts+74 added
1import { Context, Effect, Layer, Option } from "effect";23import { Audience } from "./annotations.ts";4import {5 Anonymous,6 Authenticated,7 CurrentPrincipal,8 Unauthenticated,9} from "./principal.ts";10import type { Person, Principal } from "./principal.ts";1112/**13 * The credential in an `authorization: Bearer <token>` header, if it holds14 * one. A host's HTTP gate reads it with this too, so the gate and the server15 * side agree on what a credential is.16 */17export const bearerToken = (authorization: string | undefined) =>18 Option.fromNullishOr(19 /^Bearer (?<token>\S+)$/u.exec(authorization ?? "")?.groups?.token20 );2122/**23 * Server side of `Authenticated`: a credential names a Person; no credential24 * is Anonymous only for a `public` contract. A credential `verify` doesn't25 * know is refused, never taken for anyone, and so is an `authorization`26 * header that holds no bearer token. A `verify` that fails can't say who is27 * calling, so the call dies rather than run as anyone.28 */29export const authenticated = <E, R>(30 verify: (credential: string) => Effect.Effect<Option.Option<Person>, E, R>31): Layer.Layer<Authenticated, never, R> =>32 Layer.effect(33 Authenticated,34 Effect.gen(function* () {35 const services = yield* Effect.context<R>();3637 const verified = (credential: string) =>38 verify(credential).pipe(Effect.orDie, Effect.provideContext(services));3940 const principalOf = (41 authorization: string | undefined,42 audience: (typeof Audience)["Service"]43 ): Effect.Effect<Option.Option<Principal>> => {44 if (authorization === undefined) {45 return audience === "public"46 ? Effect.succeedSome(Anonymous.make({}))47 : Effect.succeedNone;48 }4950 return Option.match(bearerToken(authorization), {51 onNone: () => Effect.succeedNone,52 onSome: verified,53 });54 };5556 return (effect, { headers, rpc }) =>57 Effect.gen(function* () {58 const principal = yield* principalOf(59 headers.authorization,60 Context.get(rpc.annotations, Audience)61 );6263 if (Option.isNone(principal)) {64 return yield* new Unauthenticated();65 }6667 return yield* Effect.provideService(68 effect,69 CurrentPrincipal,70 principal.value71 );72 });73 })74 );
modified:packages/protocol/src/contracts.ts+774 added-14 removed
1import { Context, Schema } from "effect";2import { Rpc, RpcGroup } from "effect/rpc";1import { Context, Schema, Struct } from "effect";2import { Rpc, RpcGroup, RpcSchema } from "effect/rpc";3import type { RpcClient, RpcClientError } from "effect/rpc";45import {6 Audience,7 Cli,8 Description,9 Destructive,10 Idempotent,11 NeedsApproval,12 ReadOnly,13 SurfaceName,14 Surfaces,15 Visibility,16} from "./annotations.ts";13import { AskListing } from "./domain/ask.ts";14import { AskId, CommitSha, ProjectName } from "./ids.ts";17import { AnswerReceipt, AnswerView, Verdict } from "./domain/answer.ts";18import { Ask, AskListing, Reserve } from "./domain/ask.ts";19import { ClaimView } from "./domain/claim.ts";20import { Choice, Decision, Today } from "./domain/decision.ts";21import { EnvSchemaView } from "./domain/env.ts";22import { ProjectEvent } from "./domain/event.ts";23import { FrontPageEntry, ProjectListing } from "./domain/front-page.ts";24import { LandingView } from "./domain/landing.ts";25import { Proposal } from "./domain/proposal.ts";26import { CreditSummary } from "./domain/record.ts";27import { Ledger } from "./domain/visibility.ts";28import {29 AskId,30 CommitSha,31 DecisionId,32 EnvKey,33 Handle,34 KindName,35 LandedSha,36 ProjectName,37 RepoName,38 RepoPath,39 RequestId,40} from "./ids.ts";41import { Authenticated } from "./principal.ts";16import { ClaimLapsed, NotClaimed, RepoBusy, StaleBase } from "./refusal.ts";42import {43 AskBlocked,44 AskFull,45 CapReached,46 ClaimLapsed,47 DecisionClosed,48 Denounced,49 ImportFailed,50 IncompleteBrief,51 NotClaimed,52 NotDecider,53 NotRedFirst,54 NotSensitive,55 NotVouched,56 OutOfScope,57 PrivatePathInPublicTree,58 ProjectExists,59 ReachedInternals,60 RepoBusy,61 StaleBase,62 TouchedJudge,63 UnknownAsk,64 UnknownCommit,65 UnknownDecision,66 UnknownEnvItem,67 UnknownProject,68 ValueTooShort,69 VerifierBlocked,70 WeakCheck,71 Weakened,72} from "./refusal.ts";7374/** The keys every contract is annotated with, for the surfaces that read them. */75export {76 Audience,
7 unmodified lines
84 Surfaces,85 Visibility,86} from "./annotations.ts";8788/**89 * The env shape contract's tag. Lint keeps "shape" out of code names, so the90 * tag is spelled once, here, and the contract's class is `EnvSchemaOf`.91 */92const envSchemaTag = "envShape";9394/**95 * The surfaces each contract is served on (spec §3.2). Every contract's96 * `Surfaces` annotation is read from this table, and `surfaced` types each97 * surface's group by it, so the type and the annotation cannot disagree.98 */99const servedOn = {100 claim: ["rpc", "mcp", "cli"],101 credits: SurfaceName.literals,102 decide: SurfaceName.literals,103 [envSchemaTag]: SurfaceName.literals,104 finish: ["rpc", "mcp", "cli"],105 flagAsk: ["rpc", "mcp", "cli"],106 fork: ["rpc", "mcp", "cli"],107 frontPage: SurfaceName.literals,108 initProject: ["rpc", "mcp", "cli"],109 land: ["rpc", "mcp", "cli"],110 landing: SurfaceName.literals,111 ledger: SurfaceName.literals,112 listAsks: SurfaceName.literals,113 listProjects: SurfaceName.literals,114 openAsk: ["rpc", "mcp", "cli"],115 proposeAsk: SurfaceName.literals,116 release: ["rpc", "mcp", "cli"],117 // A value must never pass through an agent's transcript, so never MCP.118 setEnv: ["rpc", "cli"],119 showAsk: SurfaceName.literals,120 status: SurfaceName.literals,121 submitAnswer: ["rpc", "mcp", "cli"],122 today: SurfaceName.literals,123 verdict: SurfaceName.literals,124 vouch: ["rpc", "mcp", "cli"],125 // A stream has no tool or command form.126 watch: ["rpc", "web"],127} as const satisfies Record<string, readonly SurfaceName[]>;128129/**130 * The payload of a contract that takes nothing: an object with no keys. An131 * empty `Schema.Struct` has no object root in JSON Schema, which an MCP tool's132 * input needs; this is the form `Tool.EmptyParams` takes.133 */134const NoPayload = Schema.Record(Schema.String, Schema.Never);135136/**137 * One file an ask or a proposal adds to the config folder: its path and its138 * text.139 */140const ConfigFile = Schema.Struct({ content: Schema.String, path: RepoPath });141142/**143 * What a decider gets back on landing their own change: the request, and144 * where it stands. An answer's receipt, without an ask.145 */146const LandReceipt = AnswerReceipt.mapFields(Struct.omit(["ask"]));147148// --- Reads ------------------------------------------------------------------149150export class ListProjects extends Rpc.make("listProjects", {151 payload: NoPayload,152 success: Schema.Struct({ projects: Schema.Array(ProjectListing) }),153})154 .annotate(155 Description,156 "List every project on the platform, with its posture and how many asks it has open."157 )158 .annotate(Audience, "public")159 .annotate(Visibility, "public")160 .annotate(ReadOnly, true)161 .annotate(Idempotent, true)162 .annotate(Destructive, false)163 .annotate(NeedsApproval, false)164 .annotate(Cli, { name: "projects" })165 .annotate(Surfaces, servedOn.listProjects) {}166167export class FrontPage extends Rpc.make("frontPage", {168 payload: {169 kind: Schema.optionalKey(KindName),170 reserved: Schema.optionalKey(Reserve),171 },172 success: Schema.Struct({ entries: Schema.Array(FrontPageEntry) }),173})174 .annotate(175 Description,176 "List the open asks across every project, each saying whether the caller may take it; optionally of one kind, or held for newcomers or people."177 )178 .annotate(Audience, "public")179 .annotate(Visibility, "public")180 .annotate(ReadOnly, true)181 .annotate(Idempotent, true)182 .annotate(Destructive, false)183 .annotate(NeedsApproval, false)184 .annotate(Cli, { name: "front" })185 .annotate(Surfaces, servedOn.frontPage) {}186187export class ListAsks extends Rpc.make("listAsks", {188 error: UnknownProject,189 payload: { project: ProjectName },190 success: Schema.Struct({ asks: Schema.Array(AskListing) }),191})192 .annotate(Description, "List a project's open asks.")193 .annotate(Audience, "public")194 .annotate(Visibility, "public")195 .annotate(ReadOnly, true)196 .annotate(Idempotent, true)197 .annotate(Destructive, false)198 .annotate(NeedsApproval, false)199 .annotate(Cli, { name: "asks" })200 .annotate(Surfaces, servedOn.listAsks) {}201202export class ShowAsk extends Rpc.make("showAsk", {203 error: Schema.Union([UnknownProject, UnknownAsk]),204 payload: { ask: AskId, project: ProjectName },205 success: Schema.Struct({206 ask: Ask,207 /** The ask as an answerer reads it first, in Markdown. */208 brief: Schema.NonEmptyString,209 }),210})211 .annotate(212 Description,213 "Show one ask in full, with its brief in Markdown for an answerer to read first."214 )215 .annotate(Audience, "public")41 .annotate(Cli, { name: "asks" }) {}216 .annotate(Visibility, "public")217 .annotate(ReadOnly, true)218 .annotate(Idempotent, true)219 .annotate(Destructive, false)220 .annotate(NeedsApproval, false)221 .annotate(Cli, { name: "ask", positional: ["ask"] })222 .annotate(Surfaces, servedOn.showAsk) {}223224export class Status extends Rpc.make("status", {225 error: UnknownProject,226 payload: { project: Schema.optionalKey(ProjectName) },227 success: Schema.Struct({228 answers: Schema.Array(AnswerView),229 claims: Schema.Array(ClaimView),230 }),231})232 .annotate(233 Description,234 "Show the caller's claims and answers, in one project or in every one."235 )236 .annotate(Audience, "signedIn")237 .annotate(Visibility, "public")238 .annotate(ReadOnly, true)239 .annotate(Idempotent, true)240 .annotate(Destructive, false)241 .annotate(NeedsApproval, false)242 .annotate(Cli, { name: "status" })243 .annotate(Surfaces, servedOn.status) {}244245export class VerdictOf extends Rpc.make("verdict", {246 error: Schema.Union([UnknownProject, UnknownAsk]),247 payload: {248 ask: AskId,249 /** The answer's head; its latest when absent. */250 head: Schema.optionalKey(CommitSha),251 project: ProjectName,252 },253 success: Schema.Struct({ verdict: Schema.optionalKey(Verdict) }),254})255 .annotate(256 Description,257 "Show the verdict on an answer to an ask, for its latest head or the one named; held-back checks show one bit per area."258 )259 .annotate(Audience, "public")260 .annotate(Visibility, "public")261 .annotate(ReadOnly, true)262 .annotate(Idempotent, true)263 .annotate(Destructive, false)264 .annotate(NeedsApproval, false)265 .annotate(Cli, { name: "verdict" })266 .annotate(Surfaces, servedOn.verdict) {}267268export class LandingOf extends Rpc.make("landing", {269 error: Schema.Union([UnknownProject, UnknownCommit]),270 payload: { project: ProjectName, sha: CommitSha },271 success: Schema.Struct({ landing: LandingView }),272})273 .annotate(274 Description,275 "Show one landing on a project's main: the ask it answered, the people it credits and its verdict."276 )277 .annotate(Audience, "public")278 .annotate(Visibility, "public")279 .annotate(ReadOnly, true)280 .annotate(Idempotent, true)281 .annotate(Destructive, false)282 .annotate(NeedsApproval, false)283 .annotate(Cli, { name: "landing" })284 .annotate(Surfaces, servedOn.landing) {}285286export class Credits extends Rpc.make("credits", {287 payload: { handle: Handle },288 success: Schema.Struct({ credits: Schema.Array(CreditSummary) }),289})290 .annotate(291 Description,292 "Count a person's credits by project, area and role; never a score."293 )294 .annotate(Audience, "public")295 .annotate(Visibility, "public")296 .annotate(ReadOnly, true)297 .annotate(Idempotent, true)298 .annotate(Destructive, false)299 .annotate(NeedsApproval, false)300 .annotate(Cli, { name: "credits" })301 .annotate(Surfaces, servedOn.credits) {}302303export class TodayOf extends Rpc.make("today", {304 error: Schema.Union([NotDecider, UnknownProject]),305 payload: { project: Schema.optionalKey(ProjectName) },306 success: Today,307})308 .annotate(309 Description,310 "Show the caller's Today: the decisions to take, held to their budget, each with its evidence and a safe default."311 )312 .annotate(Audience, "decider")313 // A decider's page: its evidence is for deciders, so no cache keeps it.314 .annotate(Visibility, "maintainers")315 .annotate(ReadOnly, true)316 .annotate(Idempotent, true)317 .annotate(Destructive, false)318 .annotate(NeedsApproval, false)319 .annotate(Cli, { name: "today" })320 .annotate(Surfaces, servedOn.today) {}321322export class LedgerOf extends Rpc.make("ledger", {323 error: UnknownProject,324 payload: { project: ProjectName },325 success: Ledger,326})327 .annotate(328 Description,329 "Show a project's ledger: its layers, counts, commitments, releases and posture changes."330 )331 .annotate(Audience, "public")332 .annotate(Visibility, "public")333 .annotate(ReadOnly, true)334 .annotate(Idempotent, true)335 .annotate(Destructive, false)336 .annotate(NeedsApproval, false)337 .annotate(Cli, { name: "ledger" })338 .annotate(Surfaces, servedOn.ledger) {}339340/** The env shape contract, named for the file it reads: `.env.schema`. */341export class EnvSchemaOf extends Rpc.make(envSchemaTag, {342 error: UnknownProject,343 payload: { project: ProjectName },344 success: EnvSchemaView,345})346 .annotate(347 Description,348 "Show a project's env shape: the public schema of its environment variables, and who set each write-only value; never a value."349 )350 .annotate(Audience, "public")351 .annotate(Visibility, "public")352 .annotate(ReadOnly, true)353 .annotate(Idempotent, true)354 .annotate(Destructive, false)355 .annotate(NeedsApproval, false)356 .annotate(Cli, { name: "env shape" })357 .annotate(Surfaces, servedOn[envSchemaTag]) {}358359export class Watch extends Rpc.make("watch", {360 error: UnknownProject,361 payload: {362 project: ProjectName,363 /** Replay from the event after this sequence number. */364 since: Schema.optionalKey(Schema.Int),365 },366 stream: true,367 success: ProjectEvent,368})369 .annotate(370 Description,371 "Stream what happens in a project as it happens, replaying from a sequence number when given one."372 )373 .annotate(Audience, "public")374 .annotate(Visibility, "public")375 .annotate(ReadOnly, true)376 .annotate(Idempotent, false)377 .annotate(Destructive, false)378 .annotate(NeedsApproval, false)379 .annotate(Surfaces, servedOn.watch) {}380381// --- Writes -----------------------------------------------------------------382383export class InitProject extends Rpc.make("initProject", {384 error: Schema.Union([ProjectExists, ImportFailed]),385 payload: {386 /** A public repo to import, instead of starting empty. */387 import: Schema.optionalKey(388 Schema.Struct({389 branch: Schema.optionalKey(Schema.NonEmptyString),390 url: Schema.String.check(Schema.isPattern(/^https:\/\/\S+$/u)),391 })392 ),393 project: ProjectName,394 },395 success: Schema.Struct({396 /** Absent until the first push to an empty project. */397 landed: Schema.optionalKey(LandedSha),398 project: ProjectName,399 /** The project's URL at the gateway. */400 remote: Schema.NonEmptyString,401 }),402})403 .annotate(404 Description,405 "Make a project, empty or imported from a public git repo, with the caller as its decider."406 )407 .annotate(Audience, "signedIn")408 .annotate(Visibility, "public")409 .annotate(ReadOnly, false)410 .annotate(Idempotent, false)411 .annotate(Destructive, false)412 .annotate(NeedsApproval, true)413 // The local `init` command calls it, with `--remote`.414 .annotate(Cli, { name: "init" })415 .annotate(Surfaces, servedOn.initProject) {}416417export class OpenAsk extends Rpc.make("openAsk", {418 error: Schema.Union([419 UnknownProject,420 NotDecider,421 NotRedFirst,422 WeakCheck,423 IncompleteBrief,424 TouchedJudge,425 VerifierBlocked,426 StaleBase,427 ]),428 payload: {429 ask: AskId,430 files: Schema.NonEmptyArray(ConfigFile),431 project: ProjectName,432 },433 success: Schema.Struct({ ask: Ask, landed: LandedSha }),434})435 .annotate(436 Description,437 "Open an ask by landing its file, once its check fails on main by an assertion, twice in the same way."438 )439 .annotate(Audience, "decider")440 .annotate(Visibility, "public")441 .annotate(ReadOnly, false)442 .annotate(Idempotent, false)443 .annotate(Destructive, false)444 .annotate(NeedsApproval, true)445 .annotate(Cli, { name: "ask open" })446 .annotate(Surfaces, servedOn.openAsk) {}447448export class ProposeAsk extends Rpc.make("proposeAsk", {449 error: Schema.Union([UnknownProject, Denounced, CapReached]),450 payload: {451 files: Schema.optionalKey(Schema.NonEmptyArray(ConfigFile)),452 project: ProjectName,453 /** A sealed answer: the commit in the caller's working fork that answers it. */454 sealed: Schema.optionalKey(Schema.Struct({ head: CommitSha })),455 territory: Schema.optionalKey(Schema.NonEmptyString),456 want: Schema.NonEmptyString,457 },458 success: Schema.Struct({ proposal: Proposal }),459})460 .annotate(461 Description,462 "Propose an ask, optionally with a sealed answer; the proposal expires unless a decider accepts it."463 )464 .annotate(Audience, "signedIn")465 .annotate(Visibility, "public")466 .annotate(ReadOnly, false)467 .annotate(Idempotent, false)468 .annotate(Destructive, false)469 .annotate(NeedsApproval, false)470 .annotate(Cli, { name: "propose" })471 .annotate(Surfaces, servedOn.proposeAsk) {}472473export class FlagAsk extends Rpc.make("flagAsk", {474 error: Schema.Union([UnknownProject, UnknownAsk, Denounced, CapReached]),475 payload: {476 ask: AskId,477 project: ProjectName,478 reason: Schema.NonEmptyString,479 },480 success: Schema.Struct({ proposal: Proposal }),481})482 .annotate(483 Description,484 "Flag an open ask to its deciders with a reason, as a proposal that expires unless a decider accepts it."485 )486 .annotate(Audience, "signedIn")487 .annotate(Visibility, "public")488 .annotate(ReadOnly, false)489 .annotate(Idempotent, false)490 .annotate(Destructive, false)491 .annotate(NeedsApproval, false)492 .annotate(Cli, { name: "ask flag" })493 .annotate(Surfaces, servedOn.flagAsk) {}494495export class Decide extends Rpc.make("decide", {496 error: Schema.Union([497 UnknownProject,498 UnknownDecision,499 DecisionClosed,500 NotDecider,501 ]),502 payload: {503 choice: Choice,504 decision: DecisionId,505 note: Schema.optionalKey(Schema.String),506 project: ProjectName,507 },508 success: Schema.Struct({ decision: Decision }),509})510 .annotate(511 Description,512 "Take one decision from Today: accept, decline, adopt or revert."513 )514 .annotate(Audience, "decider")515 // The decision's evidence is for deciders.516 .annotate(Visibility, "maintainers")517 .annotate(ReadOnly, false)518 .annotate(Idempotent, false)519 .annotate(Destructive, false)520 .annotate(NeedsApproval, true)521 .annotate(Cli, { name: "decide" })522 .annotate(Surfaces, servedOn.decide) {}523524export class Claim extends Rpc.make("claim", {525 error: Schema.Union([526 UnknownProject,527 UnknownAsk,528 AskFull,529 AskBlocked,530 CapReached,531 NotVouched,532 Denounced,533 ]),534 payload: { ask: AskId, project: ProjectName },535 success: Schema.Struct({ claim: ClaimView }),536})537 .annotate(538 Description,539 "Claim an ask: an exclusive, expiring right to answer it, with a fork to push to; claiming it again returns the same claim."540 )541 .annotate(Audience, "signedIn")542 .annotate(Visibility, "public")543 .annotate(ReadOnly, false)544 .annotate(Idempotent, true)545 .annotate(Destructive, false)546 .annotate(NeedsApproval, false)547 .annotate(Cli, { name: "claim", positional: ["ask"] })548 .annotate(Surfaces, servedOn.claim) {}549550export class Release extends Rpc.make("release", {551 error: Schema.Union([UnknownProject, NotClaimed]),552 payload: { ask: AskId, project: ProjectName },553 success: Schema.Struct({ released: Schema.Boolean }),554})555 .annotate(556 Description,557 "Release the caller's claim on an ask, so anyone may claim it again."558 )559 .annotate(Audience, "signedIn")560 .annotate(Visibility, "public")561 .annotate(ReadOnly, false)562 .annotate(Idempotent, true)563 .annotate(Destructive, false)564 .annotate(NeedsApproval, false)565 .annotate(Cli, { name: "release" })566 .annotate(Surfaces, servedOn.release) {}567568export class SubmitAnswer extends Rpc.make("submitAnswer", {44 error: Schema.Union([NotClaimed, ClaimLapsed, StaleBase, RepoBusy]),45 payload: { ask: AskId, base: CommitSha, head: CommitSha },46 success: Schema.Struct({ main: CommitSha }),569 error: Schema.Union([570 UnknownProject,571 NotClaimed,572 ClaimLapsed,573 StaleBase,574 RepoBusy,575 OutOfScope,576 TouchedJudge,577 Weakened,578 ReachedInternals,579 PrivatePathInPublicTree,580 ]),581 payload: {582 ask: AskId,583 base: CommitSha,584 head: CommitSha,585 project: ProjectName,586 /** Offering the same request again returns the same receipt. */587 requestId: RequestId,588 },589 success: AnswerReceipt,590})591 .annotate(592 Description,50 "Offer the commit `head`, built on `base`, as an answer to an ask; once it lands, `main` is the new tip."593 "Offer the commit `head`, built on `base`, as an answer to a claimed ask; the receipt says it is being checked, and it lands if it passes."594 )595 .annotate(Audience, "signedIn")596 .annotate(Visibility, "public")597 .annotate(ReadOnly, false)598 .annotate(Idempotent, true)599 .annotate(Destructive, false)600 .annotate(NeedsApproval, false)601 .annotate(Cli, { name: "submit" })602 .annotate(Surfaces, servedOn.submitAnswer) {}603604export class Finish extends Rpc.make("finish", {605 error: Schema.Union([606 UnknownProject,607 NotDecider,608 StaleBase,609 RepoBusy,610 TouchedJudge,611 ]),612 payload: {613 ask: AskId,614 base: CommitSha,615 head: CommitSha,616 project: ProjectName,617 requestId: RequestId,618 },619 success: AnswerReceipt,620})621 .annotate(622 Description,623 "Finish a passing answer with a decider's own commits on top; they are checked again, and credited with Finished-by when it lands."624 )625 .annotate(Audience, "decider")626 .annotate(Visibility, "public")627 .annotate(ReadOnly, false)628 .annotate(Idempotent, true)629 .annotate(Destructive, false)630 .annotate(NeedsApproval, true)631 .annotate(Cli, { name: "finish" })632 .annotate(Surfaces, servedOn.finish) {}633634export class Land extends Rpc.make("land", {635 error: Schema.Union([UnknownProject, NotDecider, StaleBase, RepoBusy]),636 payload: {637 base: CommitSha,638 head: CommitSha,639 message: Schema.NonEmptyString,640 project: ProjectName,641 requestId: RequestId,642 },643 success: LandReceipt,644})645 .annotate(646 Description,647 "Land a decider's own change from their working fork, after the same checks an answer passes."648 )649 .annotate(Audience, "decider")650 .annotate(Visibility, "public")651 .annotate(ReadOnly, false)652 .annotate(Idempotent, true)653 .annotate(Destructive, false)654 .annotate(NeedsApproval, true)655 .annotate(Cli, { name: "land" })656 .annotate(Surfaces, servedOn.land) {}657658export class Fork extends Rpc.make("fork", {659 error: Schema.Union([UnknownProject, NotVouched, Denounced]),660 payload: { project: ProjectName },661 success: Schema.Struct({662 /** `<project>--me--<handle>`. */663 fork: RepoName,664 /** The fork's URL at the gateway. */665 remote: Schema.NonEmptyString,666 }),667})668 .annotate(669 Description,670 "Make the caller's working fork of a project, or return it if it exists."671 )672 .annotate(Audience, "signedIn")55 .annotate(Cli, { name: "submit" }) {}673 .annotate(Visibility, "public")674 .annotate(ReadOnly, false)675 .annotate(Idempotent, true)676 .annotate(Destructive, false)677 .annotate(NeedsApproval, false)678 .annotate(Cli, { name: "fork" })679 .annotate(Surfaces, servedOn.fork) {}680681export class Vouch extends Rpc.make("vouch", {682 error: Schema.Union([UnknownProject, NotDecider, StaleBase]),683 payload: {684 handle: Handle,685 note: Schema.optionalKey(Schema.String),686 project: ProjectName,687 verdict: Schema.Literals(["vouch", "denounce"]),688 },689 success: Schema.Struct({ landed: LandedSha }),690})691 .annotate(692 Description,693 "Vouch for a person, or denounce them, by landing a line in the project's vouch file."694 )695 .annotate(Audience, "decider")696 .annotate(Visibility, "public")697 .annotate(ReadOnly, false)698 .annotate(Idempotent, false)699 .annotate(Destructive, false)700 .annotate(NeedsApproval, true)701 .annotate(Cli, { name: "vouch" })702 .annotate(Surfaces, servedOn.vouch) {}703704export class SetEnv extends Rpc.make("setEnv", {705 error: Schema.Union([706 UnknownProject,707 NotDecider,708 UnknownEnvItem,709 NotSensitive,710 ValueTooShort,711 ]),712 payload: {713 /** Store a value shorter than the item's minimum anyway. */714 acknowledgeShort: Schema.optionalKey(Schema.Boolean),715 key: EnvKey,716 project: ProjectName,717 /** The write-only value: the raw string on the wire, never printed. */718 value: Schema.RedactedFromValue(Schema.String),719 },720 success: Schema.Struct({721 key: EnvKey,722 setAt: Schema.DateTimeUtcFromString,723 setBy: Handle,724 }),725})726 .annotate(727 Description,728 "Set the write-only value of a sensitive env item; nobody can read it back."729 )730 .annotate(Audience, "decider")731 .annotate(Visibility, "public")732 .annotate(ReadOnly, false)733 .annotate(Idempotent, true)734 .annotate(Destructive, false)735 .annotate(NeedsApproval, true)736 // The local `env set` command reads the value from stdin.737 .annotate(Cli, { name: "env set" })738 .annotate(Surfaces, servedOn.setEnv) {}739740/** The one schema: every surface is a projection of this group. */58export class Contracts extends RpcGroup.make(ListAsks, SubmitAnswer).middleware(59 Authenticated60) {}741export class Contracts extends RpcGroup.make(742 ListProjects,743 FrontPage,744 ListAsks,745 ShowAsk,746 Status,747 VerdictOf,748 LandingOf,749 Credits,750 TodayOf,751 LedgerOf,752 EnvSchemaOf,753 Watch,754 InitProject,755 OpenAsk,756 ProposeAsk,757 FlagAsk,758 Decide,759 Claim,760 Release,761 SubmitAnswer,762 Finish,763 Land,764 Fork,765 Vouch,766 SetEnv767).middleware(Authenticated) {}768769/** Every contract in the group, as its handlers and clients see it. */770export type Contract = RpcGroup.Rpcs<typeof Contracts>;771772type ServedOn = typeof servedOn;773774/** The tags of the contracts `surface` serves. */775export type TagOn<S extends SurfaceName> = {776 readonly [Tag in keyof ServedOn]: S extends ServedOn[Tag][number]777 ? Tag778 : never;779}[keyof ServedOn];780781/** The contracts `surface` serves. */782export type ContractOn<S extends SurfaceName> = Extract<783 Contract,784 { readonly _tag: TagOn<S> }785>;786787/**788 * Whether a contract is served on `surface`, by its `Surfaces` annotation.789 * The annotation is read from `servedOn`, which `ContractOn` reads too.790 */791const isServedOn =792 <S extends SurfaceName>(surface: S) =>793 (rpc: Contract): rpc is ContractOn<S> =>794 Context.get(rpc.annotations, Surfaces).includes(surface);795796/** The group as one surface serves it: the contracts its `Surfaces` include, in order. */797export const surfaced = <S extends SurfaceName>(798 surface: S799): RpcGroup.RpcGroup<ContractOn<S>> =>800 RpcGroup.make(801 ...[...Contracts.requests.values()].filter(isServedOn(surface))802 );803804/**805 * A contract's payload, success and error as a client meets them. A stream's806 * success is one of its elements, and its error is the stream's: the call807 * itself never fails outside the stream.808 */809export const partsOf = (rpc: Contract) =>810 RpcSchema.isStreamSchema(rpc.successSchema)811 ? {812 error: rpc.successSchema.error,813 payload: rpc.payloadSchema,814 success: rpc.successSchema.success,815 }816 : {817 error: rpc.errorSchema,818 payload: rpc.payloadSchema,819 success: rpc.successSchema,820 };821822/** A way to call the contracts, in process or over the wire. */823export class Client extends Context.Service<824 Client,825 RpcClient.RpcClient<
4 unmodified lines
modified:packages/protocol/src/testing.ts+39 added
3 unmodified lines
4 * relative path. Nothing under any `src/` may.5 */6import { Effect, Layer } from "effect";78import { Contracts, EnvSchemaOf } from "./contracts.ts";9import { Handle } from "./ids.ts";10import { Authenticated, CurrentPrincipal, Person } from "./principal.ts";1112/** A server side that takes every call as `handle`, for tests with several people. */
5 unmodified lines
18/** A server side that takes every call as one person, for tests about other things. */19export const asTester: Layer.Layer<Authenticated> = asPerson(20 Handle.make("tester")21);2223/** What a contract does when a test reaches one it did not set up. */24const uncalled = () =>25 Effect.die("This test calls only the contracts it sets up.");2627/**28 * A handler for every contract, none of which a test should reach. A test29 * merges the ones it is about over these, each with30 * `Contracts.toLayerHandler`: a later layer's handler wins.31 */32export const unanswered = Contracts.toLayer({33 claim: uncalled,34 credits: uncalled,35 decide: uncalled,36 // Keyed by the class: lint keeps "shape" out of code names.37 [EnvSchemaOf._tag]: uncalled,38 finish: uncalled,39 flagAsk: uncalled,40 fork: uncalled,41 frontPage: uncalled,42 initProject: uncalled,43 land: uncalled,44 landing: uncalled,45 ledger: uncalled,46 listAsks: uncalled,47 listProjects: uncalled,48 openAsk: uncalled,49 proposeAsk: uncalled,50 release: uncalled,51 setEnv: uncalled,52 showAsk: uncalled,53 status: uncalled,54 submitAnswer: uncalled,55 today: uncalled,56 verdict: uncalled,57 vouch: uncalled,58 watch: uncalled,59});
added:packages/protocol/test/fixtures/contracts.json+703 added
1{2 "$comment": "One example payload and one example success for every contract, encoded as a client sends them or reads them back. contracts.test.ts decodes each and encodes it back unchanged. A stream's success is one of its elements. Paths say config/ where a project's config folder would be, and commands say cli, since only packages/brand spells the name.",3 "examples": {4 "claim": {5 "payload": {6 "ask": "iso-week",7 "project": "datekit"8 },9 "success": {10 "claim": {11 "ask": "iso-week",12 "base": "1111111111111111111111111111111111111111",13 "checkCommand": "cli check",14 "claimant": "alice",15 "fork": "datekit--iso-week--alice",16 "lapsesAt": "2026-10-08T12:00:00.000Z",17 "openedAt": "2026-10-07T12:00:00.000Z",18 "project": "datekit",19 "remote": "https://example.com/git/datekit--iso-week--alice",20 "state": "live",21 "warnsAt": "2026-10-07T14:00:00.000Z"22 }23 }24 },25 "credits": {26 "payload": {27 "handle": "alice"28 },29 "success": {30 "credits": [31 {32 "area": "@datekit/parse",33 "count": 4,34 "project": "datekit",35 "role": "Signed-off-by"36 }37 ]38 }39 },40 "decide": {41 "payload": {42 "choice": "accept",43 "decision": "dec-000001",44 "note": "Worth it.",45 "project": "datekit"46 },47 "success": {48 "decision": {49 "decided": {50 "at": "2026-10-07T12:00:00.000Z",51 "by": "alice",52 "choice": "accept",53 "note": "Worth it."54 },55 "deciders": ["alice"],56 "default": "decline",57 "evidence": [58 {59 "href": "https://example.com/7",60 "label": "lanes",61 "value": "3/3"62 }63 ],64 "expiresAt": "2026-10-21T12:00:00.000Z",65 "id": "dec-000001",66 "openedAt": "2026-10-07T12:00:00.000Z",67 "project": "datekit",68 "subject": {69 "_tag": "OpenProposal",70 "proposal": "prop-000001"71 }72 }73 }74 },75 "envShape": {76 "payload": {77 "project": "datekit"78 },79 "success": {80 "at": "4444444444444444444444444444444444444444",81 "file": ".env.schema",82 "imports": [],83 "items": [84 {85 "key": "PAYMENTS_KEY",86 "required": true,87 "sensitive": true,88 "tags": ["payments"],89 "value": {90 "setAt": "2026-10-07T12:00:00.000Z",91 "setBy": "alice"92 }93 }94 ],95 "project": "datekit"96 }97 },98 "finish": {99 "payload": {100 "ask": "iso-week",101 "base": "1111111111111111111111111111111111111111",102 "head": "3333333333333333333333333333333333333333",103 "project": "datekit",104 "requestId": "finish-0001"105 },106 "success": {107 "ask": "iso-week",108 "base": "1111111111111111111111111111111111111111",109 "head": "3333333333333333333333333333333333333333",110 "outcome": {111 "_tag": "Checking",112 "stage": "merge"113 },114 "project": "datekit",115 "requestId": "finish-0001"116 }117 },118 "flagAsk": {119 "payload": {120 "ask": "iso-week",121 "project": "datekit",122 "reason": "The want names a file."123 },124 "success": {125 "proposal": {126 "expiresAt": "2026-10-21T12:00:00.000Z",127 "files": ["config/asks/iso-week.ask.ts"],128 "id": "prop-000001",129 "openedAt": "2026-10-07T12:00:00.000Z",130 "project": "datekit",131 "proposer": "dave",132 "state": "open",133 "territory": "@datekit/parse",134 "want": "An ISO week date parses to the Monday of that week.",135 "flags": "iso-week"136 }137 }138 },139 "fork": {140 "payload": {141 "project": "datekit"142 },143 "success": {144 "fork": "datekit--me--alice",145 "remote": "https://example.com/git/datekit--me--alice"146 }147 },148 "frontPage": {149 "payload": {150 "kind": "fix",151 "reserved": "newcomers"152 },153 "success": {154 "entries": [155 {156 "ask": {157 "ask": "iso-week",158 "blockedBy": ["drop-moment"],159 "claimed": false,160 "kind": "fix",161 "reserve": "newcomers",162 "territory": "@datekit/parse",163 "want": "An ISO week date parses to the Monday of that week."164 },165 "posture": "open",166 "project": "datekit",167 "takeable": true168 }169 ]170 }171 },172 "initProject": {173 "payload": {174 "import": {175 "branch": "trunk",176 "url": "https://example.com/acme/widgets.git"177 },178 "project": "widgets"179 },180 "success": {181 "landed": "4444444444444444444444444444444444444444",182 "project": "widgets",183 "remote": "https://example.com/git/widgets"184 }185 },186 "land": {187 "payload": {188 "base": "1111111111111111111111111111111111111111",189 "head": "3333333333333333333333333333333333333333",190 "message": "Drop the moment shim",191 "project": "datekit",192 "requestId": "land-00001"193 },194 "success": {195 "base": "1111111111111111111111111111111111111111",196 "head": "3333333333333333333333333333333333333333",197 "outcome": {198 "_tag": "Checking",199 "stage": "merge"200 },201 "project": "datekit",202 "requestId": "land-00001"203 }204 },205 "landing": {206 "payload": {207 "project": "datekit",208 "sha": "4444444444444444444444444444444444444444"209 },210 "success": {211 "landing": {212 "ask": "iso-week",213 "assisted": [214 {215 "harness": "claude-code",216 "model": "haiku",217 "verified": true218 }219 ],220 "author": "carol",221 "credits": [222 {223 "handle": "alice",224 "role": "Asked-by"225 },226 {227 "handle": "carol",228 "role": "Signed-off-by"229 }230 ],231 "heldBackTrailer": "Held-back: parse 7/7 @ sha256:7777777777777777777777777777777777777777777777777777777777777777",232 "landedAt": "2026-10-07T12:00:00.000Z",233 "parent": "1111111111111111111111111111111111111111",234 "project": "datekit",235 "requestId": "push-33333333",236 "sha": "4444444444444444444444444444444444444444",237 "verdict": {238 "ask": "iso-week",239 "at": "2026-10-07T12:00:00.000Z",240 "base": "1111111111111111111111111111111111111111",241 "checkVersion": "redThenGreen@0.0.0+abc123",242 "head": "3333333333333333333333333333333333333333",243 "heldBack": [244 {245 "area": "parse",246 "passed": 7,247 "suite": "sha256:7777777777777777777777777777777777777777777777777777777777777777",248 "total": 7249 }250 ],251 "lanes": [252 {253 "command": "bun run lint",254 "durationMs": 1200,255 "lane": "lint",256 "result": "passed"257 },258 {259 "command": "bun run test",260 "durationMs": 3400,261 "lane": "unit",262 "logRef": "logs/datekit/7",263 "result": "passed"264 }265 ],266 "outcome": {267 "_tag": "Landed",268 "sha": "4444444444444444444444444444444444444444"269 },270 "patchId": "6666666666666666666666666666666666666666666666666666666666666666",271 "project": "datekit",272 "stage": "checks",273 "tree": "5555555555555555555555555555555555555555",274 "verifier": "platform"275 }276 }277 }278 },279 "ledger": {280 "payload": {281 "project": "datekit"282 },283 "success": {284 "entries": [285 {286 "_tag": "ValueSet",287 "at": "2026-10-07T12:00:00.000Z",288 "by": "alice",289 "key": "PAYMENTS_KEY",290 "seq": 1291 }292 ],293 "layers": [],294 "posture": "open",295 "postureLabel": "Open",296 "project": "datekit"297 }298 },299 "listAsks": {300 "payload": {301 "project": "datekit"302 },303 "success": {304 "asks": [305 {306 "ask": "iso-week",307 "blockedBy": ["drop-moment"],308 "claimed": false,309 "kind": "fix",310 "reserve": "newcomers",311 "territory": "@datekit/parse",312 "want": "An ISO week date parses to the Monday of that week."313 }314 ]315 }316 },317 "listProjects": {318 "payload": {},319 "success": {320 "projects": [321 {322 "landedAt": "2026-10-07T12:00:00.000Z",323 "openAsks": 3,324 "posture": "open",325 "project": "datekit"326 },327 {328 "openAsks": 0,329 "posture": "open",330 "project": "widgets"331 }332 ]333 }334 },335 "openAsk": {336 "payload": {337 "ask": "iso-week",338 "files": [339 {340 "content": "export default ask({ want: \"An ISO week date parses.\" });\n",341 "path": "config/asks/iso-week.ask.ts"342 }343 ],344 "project": "datekit"345 },346 "success": {347 "ask": {348 "askedBy": "alice",349 "blockedBy": [],350 "brief": {351 "context": ["ISO 8601 weeks start on Monday."],352 "current": "Week 1 of 2027 parses as week 53 of 2026.",353 "outOfScope": ["Locale-specific weeks"],354 "terms": ["ISO week"],355 "want": "An ISO week date parses to the Monday of that week."356 },357 "check": {358 "_tag": "RedThenGreen",359 "path": "packages/parse/test/iso-week.test.ts"360 },361 "file": "config/asks/iso-week.ask.ts",362 "id": "iso-week",363 "kind": "fix",364 "mentor": "bob",365 "openedAt": "2026-10-07T12:00:00.000Z",366 "openedIn": "4444444444444444444444444444444444444444",367 "project": "datekit",368 "reserve": "newcomers",369 "state": "open",370 "territory": {371 "module": "@datekit/parse",372 "paths": ["packages/parse/**"],373 "publicFiles": ["packages/parse/src/index.ts"]374 }375 },376 "landed": "4444444444444444444444444444444444444444"377 }378 },379 "proposeAsk": {380 "payload": {381 "files": [382 {383 "content": "export default ask({ want: \"An ISO week date parses.\" });\n",384 "path": "config/asks/iso-week.ask.ts"385 }386 ],387 "project": "datekit",388 "sealed": {389 "head": "3333333333333333333333333333333333333333"390 },391 "territory": "@datekit/parse",392 "want": "An ISO week date parses to the Monday of that week."393 },394 "success": {395 "proposal": {396 "expiresAt": "2026-10-21T12:00:00.000Z",397 "files": ["config/asks/iso-week.ask.ts"],398 "id": "prop-000001",399 "openedAt": "2026-10-07T12:00:00.000Z",400 "project": "datekit",401 "proposer": "dave",402 "state": "open",403 "territory": "@datekit/parse",404 "want": "An ISO week date parses to the Monday of that week.",405 "sealed": {406 "fork": "datekit--me--dave",407 "head": "3333333333333333333333333333333333333333"408 }409 }410 }411 },412 "release": {413 "payload": {414 "ask": "iso-week",415 "project": "datekit"416 },417 "success": {418 "released": true419 }420 },421 "setEnv": {422 "payload": {423 "acknowledgeShort": false,424 "key": "PAYMENTS_KEY",425 "project": "datekit",426 "value": "not-a-real-value-0123456789abcdef"427 },428 "success": {429 "key": "PAYMENTS_KEY",430 "setAt": "2026-10-07T12:00:00.000Z",431 "setBy": "alice"432 }433 },434 "showAsk": {435 "payload": {436 "ask": "iso-week",437 "project": "datekit"438 },439 "success": {440 "ask": {441 "askedBy": "alice",442 "blockedBy": [],443 "brief": {444 "context": ["ISO 8601 weeks start on Monday."],445 "current": "Week 1 of 2027 parses as week 53 of 2026.",446 "outOfScope": ["Locale-specific weeks"],447 "terms": ["ISO week"],448 "want": "An ISO week date parses to the Monday of that week."449 },450 "check": {451 "_tag": "RedThenGreen",452 "path": "packages/parse/test/iso-week.test.ts"453 },454 "file": "config/asks/iso-week.ask.ts",455 "id": "iso-week",456 "kind": "fix",457 "mentor": "bob",458 "openedAt": "2026-10-07T12:00:00.000Z",459 "openedIn": "4444444444444444444444444444444444444444",460 "project": "datekit",461 "reserve": "newcomers",462 "state": "open",463 "territory": {464 "module": "@datekit/parse",465 "paths": ["packages/parse/**"],466 "publicFiles": ["packages/parse/src/index.ts"]467 }468 },469 "brief": "# iso-week\n\nAn ISO week date parses to the Monday of that week.\n"470 }471 },472 "status": {473 "payload": {474 "project": "datekit"475 },476 "success": {477 "answers": [478 {479 "ask": "iso-week",480 "at": "2026-10-07T12:00:00.000Z",481 "head": "3333333333333333333333333333333333333333",482 "outcome": {483 "_tag": "Checking",484 "stage": "checks"485 },486 "requestId": "push-33333333"487 }488 ],489 "claims": []490 }491 },492 "submitAnswer": {493 "payload": {494 "ask": "iso-week",495 "base": "1111111111111111111111111111111111111111",496 "head": "3333333333333333333333333333333333333333",497 "project": "datekit",498 "requestId": "answer-0001"499 },500 "success": {501 "ask": "iso-week",502 "base": "1111111111111111111111111111111111111111",503 "head": "3333333333333333333333333333333333333333",504 "outcome": {505 "_tag": "Checking",506 "stage": "merge"507 },508 "project": "datekit",509 "requestId": "answer-0001"510 }511 },512 "today": {513 "payload": {514 "project": "datekit"515 },516 "success": {517 "budget": {518 "finishes": 1,519 "total": 5,520 "used": 2521 },522 "decider": "alice",523 "decisions": [524 {525 "decided": {526 "at": "2026-10-07T12:00:00.000Z",527 "by": "alice",528 "choice": "accept",529 "note": "Worth it."530 },531 "deciders": ["alice"],532 "default": "decline",533 "evidence": [534 {535 "href": "https://example.com/7",536 "label": "lanes",537 "value": "3/3"538 }539 ],540 "expiresAt": "2026-10-21T12:00:00.000Z",541 "id": "dec-000001",542 "openedAt": "2026-10-07T12:00:00.000Z",543 "project": "datekit",544 "subject": {545 "_tag": "OpenProposal",546 "proposal": "prop-000001"547 }548 }549 ],550 "expiringSoon": ["dec-000001"],551 "newcomers": ["dave"],552 "overflow": 0,553 "unattended": [554 {555 "ask": "iso-week",556 "assisted": [557 {558 "harness": "claude-code",559 "model": "haiku",560 "verified": true561 }562 ],563 "author": "carol",564 "credits": [565 {566 "handle": "alice",567 "role": "Asked-by"568 },569 {570 "handle": "carol",571 "role": "Signed-off-by"572 }573 ],574 "heldBackTrailer": "Held-back: parse 7/7 @ sha256:7777777777777777777777777777777777777777777777777777777777777777",575 "landedAt": "2026-10-07T12:00:00.000Z",576 "parent": "1111111111111111111111111111111111111111",577 "project": "datekit",578 "requestId": "push-33333333",579 "sha": "4444444444444444444444444444444444444444",580 "verdict": {581 "ask": "iso-week",582 "at": "2026-10-07T12:00:00.000Z",583 "base": "1111111111111111111111111111111111111111",584 "checkVersion": "redThenGreen@0.0.0+abc123",585 "head": "3333333333333333333333333333333333333333",586 "heldBack": [587 {588 "area": "parse",589 "passed": 7,590 "suite": "sha256:7777777777777777777777777777777777777777777777777777777777777777",591 "total": 7592 }593 ],594 "lanes": [595 {596 "command": "bun run lint",597 "durationMs": 1200,598 "lane": "lint",599 "result": "passed"600 },601 {602 "command": "bun run test",603 "durationMs": 3400,604 "lane": "unit",605 "logRef": "logs/datekit/7",606 "result": "passed"607 }608 ],609 "outcome": {610 "_tag": "Landed",611 "sha": "4444444444444444444444444444444444444444"612 },613 "patchId": "6666666666666666666666666666666666666666666666666666666666666666",614 "project": "datekit",615 "stage": "checks",616 "tree": "5555555555555555555555555555555555555555",617 "verifier": "platform"618 }619 }620 ]621 }622 },623 "verdict": {624 "payload": {625 "ask": "iso-week",626 "head": "3333333333333333333333333333333333333333",627 "project": "datekit"628 },629 "success": {630 "verdict": {631 "ask": "iso-week",632 "at": "2026-10-07T12:00:00.000Z",633 "base": "1111111111111111111111111111111111111111",634 "checkVersion": "redThenGreen@0.0.0+abc123",635 "head": "3333333333333333333333333333333333333333",636 "heldBack": [637 {638 "area": "parse",639 "passed": 7,640 "suite": "sha256:7777777777777777777777777777777777777777777777777777777777777777",641 "total": 7642 }643 ],644 "lanes": [645 {646 "command": "bun run lint",647 "durationMs": 1200,648 "lane": "lint",649 "result": "passed"650 },651 {652 "command": "bun run test",653 "durationMs": 3400,654 "lane": "unit",655 "logRef": "logs/datekit/7",656 "result": "passed"657 }658 ],659 "outcome": {660 "_tag": "Landed",661 "sha": "4444444444444444444444444444444444444444"662 },663 "patchId": "6666666666666666666666666666666666666666666666666666666666666666",664 "project": "datekit",665 "stage": "checks",666 "tree": "5555555555555555555555555555555555555555",667 "verifier": "platform"668 }669 }670 },671 "vouch": {672 "payload": {673 "handle": "dave",674 "note": "Paired on the parser.",675 "project": "datekit",676 "verdict": "vouch"677 },678 "success": {679 "landed": "4444444444444444444444444444444444444444"680 }681 },682 "watch": {683 "payload": {684 "project": "datekit",685 "since": 41686 },687 "success": {688 "_tag": "AskOpened",689 "ask": {690 "ask": "iso-week",691 "blockedBy": ["drop-moment"],692 "claimed": false,693 "kind": "fix",694 "reserve": "newcomers",695 "territory": "@datekit/parse",696 "want": "An ISO week date parses to the Monday of that week."697 },698 "at": "2026-10-07T12:00:00.000Z",699 "seq": 42700 }701 }702 }703}
added:packages/protocol/test/authenticate.test.ts+134 added
1import { describe, expect, it } from "@effect/vitest";2import { Effect, Layer, Option, Ref } from "effect";3import { RpcTest } from "effect/rpc";45import { authenticated } from "../src/authenticate.ts";6import { Contracts } from "../src/contracts.ts";7import { Handle, ProjectName } from "../src/ids.ts";8import {9 Anonymous,10 CurrentPrincipal,11 Person,12 Unauthenticated,13} from "../src/principal.ts";14import type { Principal } from "../src/principal.ts";15import { unanswered } from "../src/testing.ts";1617const project = ProjectName.make("datekit");1819const alice = Person.make({ handle: Handle.make("alice") });2021/** The credentials the platform knows: one token, alice's. */22const verify = (credential: string) =>23 Effect.succeed(24 credential === "alice-token" ? Option.some(alice) : Option.none()25 );2627const bearer = (token: string) => ({28 headers: { authorization: `Bearer ${token}` },29});3031/**32 * A client of the contracts whose server side is `authenticated(verify)`.33 * `listAsks` (public) and `status` (signed in) note who called them; `callers`34 * returns everyone noted so far.35 */36const served = Effect.gen(function* () {37 const noted = yield* Ref.make<readonly Principal[]>([]);3839 const note = CurrentPrincipal.use((caller) =>40 Ref.update(noted, (callers) => [...callers, caller])41 );4243 const handlers = Layer.mergeAll(44 unanswered,45 Contracts.toLayerHandler("listAsks", () =>46 note.pipe(Effect.as({ asks: [] }))47 ),48 Contracts.toLayerHandler("status", () =>49 note.pipe(Effect.as({ answers: [], claims: [] }))50 )51 );5253 const client = yield* RpcTest.makeClient(Contracts).pipe(54 Effect.provide(Layer.mergeAll(handlers, authenticated(verify)))55 );5657 return { callers: Ref.get(noted), client };58});5960describe("the server side of Authenticated", () => {61 it.effect("runs a public contract without a credential as anyone", () =>62 Effect.gen(function* () {63 const { callers, client } = yield* served;6465 expect(yield* client.listAsks({ project })).toStrictEqual({ asks: [] });66 expect(yield* callers).toStrictEqual([Anonymous.make({})]);67 })68 );6970 it.effect("refuses a signed-in contract without a credential", () =>71 Effect.gen(function* () {72 const { callers, client } = yield* served;7374 expect(yield* Effect.flip(client.status({}))).toStrictEqual(75 new Unauthenticated()76 );77 expect(yield* callers).toStrictEqual([]);78 })79 );8081 // `today` is for deciders: the handler checks who decides, but nobody82 // reaches it without a credential.83 it.effect("refuses a decider's contract without a credential", () =>84 Effect.gen(function* () {85 const { client } = yield* served;8687 expect(yield* Effect.flip(client.today({ project }))).toStrictEqual(88 new Unauthenticated()89 );90 })91 );9293 it.effect(94 "never takes an unknown credential for anyone, even on a public contract",95 () =>96 Effect.gen(function* () {97 const { callers, client } = yield* served;9899 const refused = yield* Effect.flip(100 client.listAsks({ project }, bearer("mallory-token"))101 );102103 expect(refused).toStrictEqual(new Unauthenticated());104 expect(yield* callers).toStrictEqual([]);105 })106 );107108 it.effect("refuses a credential that is not a bearer token", () =>109 Effect.gen(function* () {110 const { callers, client } = yield* served;111112 const refused = yield* Effect.flip(113 client.listAsks(114 { project },115 { headers: { authorization: "Basic YWxpY2UtdG9rZW4=" } }116 )117 );118119 expect(refused).toStrictEqual(new Unauthenticated());120 expect(yield* callers).toStrictEqual([]);121 })122 );123124 it.effect("runs every contract a known credential calls as its person", () =>125 Effect.gen(function* () {126 const { callers, client } = yield* served;127128 yield* client.listAsks({ project }, bearer("alice-token"));129 yield* client.status({}, bearer("alice-token"));130131 expect(yield* callers).toStrictEqual([alice, alice]);132 })133 );134});
modified:packages/protocol/test/cli.test.ts+49 added-31 removed
6 unmodified lines
7import { TestConsole } from "effect/testing";89import { toCommand } from "../src/cli.ts";10import { Client, Contracts, ListAsks, SubmitAnswer } from "../src/contracts.ts";11import { CommitSha, KindName } from "../src/ids.ts";11import { CommitSha, KindName, ProjectName, RequestId } from "../src/ids.ts";12import { StaleBase } from "../src/refusal.ts";13import { asTester } from "../src/testing.ts";13import { asTester, unanswered } from "../src/testing.ts";14import { ask, base, main, path } from "./examples.ts";1516const head = CommitSha.make("3333333333333333333333333333333333333333");1718/** Handlers that never refuse; `listAsks` echoes its project as the territory. */19const quiet = Contracts.toLayer({20 listAsks: ({ project }) =>18const project = ProjectName.make("datekit");1920const requestId = RequestId.make("answer-0001");2122/** An answer's flags, as a person types them. */23const answer = [24 "--project",25 project,26 "--ask",27 ask,28 "--base",29 base,30 "--head",31 head,32 "--requestId",33 requestId,34];3536/** `listAsks` echoes its project as the territory. */37const quiet = Layer.mergeAll(38 unanswered,39 Contracts.toLayerHandler("listAsks", ({ project: echoed }) =>40 Effect.succeed({41 asks: [42 {43 ask,44 blockedBy: [],45 claimed: false,46 kind: KindName.make("fix"),28 territory: project,47 territory: echoed,48 want: "Parse a comma",49 },50 ],32 }),33 submitAnswer: () => Effect.succeed({ main }),34});51 })52 )53);5455/** Contracts whose answers always meet a moved main. */56const stale = (refusal: StaleBase) =>57 Layer.mergeAll(58 unanswered,59 Contracts.toLayerHandler("submitAnswer", () => Effect.fail(refusal))60 );6162/** What was printed, one entry per line however it was written. */63const lines = (output: Effect.Effect<readonly unknown[]>) =>64 Effect.map(output, (all) =>65 all.flatMap((chunk) => String(chunk).split("\n"))
61 unmodified lines
127 it.effect("prints a refusal as the renderer's text and fails with it", () =>128 Effect.gen(function* () {129 const refusal = new StaleBase({ base, conflicts: [path], main });130105 const { err, result } = yield* run(106 Contracts.toLayer({107 listAsks: () => Effect.succeed({ asks: [] }),108 submitAnswer: () => Effect.fail(refusal),109 }),110 submitAnswer,111 ["--ask", ask, "--base", base, "--head", head]112 );131 const { err, result } = yield* run(stale(refusal), submitAnswer, answer);132133 expect(result).toStrictEqual(Result.fail(refusal));134 expect(err).toStrictEqual([135 "StaleBase: main moved to 2222222, past your base 1111111; conflicts in src/a.ts",
6 unmodified lines
142 it.effect("with --json, prints the refusal as JSON that keeps its tag", () =>143 Effect.gen(function* () {144 const refusal = new StaleBase({ base, conflicts: [path], main });145127 const { err, out, result } = yield* run(128 Contracts.toLayer({129 listAsks: () => Effect.succeed({ asks: [] }),130 submitAnswer: () => Effect.fail(refusal),131 }),132 submitAnswer,133 ["--ask", ask, "--base", base, "--head", head, "--json"]134 );146 const { err, out, result } = yield* run(stale(refusal), submitAnswer, [147 ...answer,148 "--json",149 ]);150151 const printed = yield* Schema.decodeEffect(Json)(out.join("\n"));152153 expect(result).toStrictEqual(Result.fail(refusal));
9 unmodified lines
163 Effect.gen(function* () {164 const calls = yield* Ref.make(0);165166 const { err, result } = yield* run(152 Contracts.toLayer({153 listAsks: () => Effect.succeed({ asks: [] }),154 submitAnswer: () =>155 Ref.update(calls, (count) => count + 1).pipe(Effect.as({ main })),156 }),167 Layer.mergeAll(168 unanswered,169 Contracts.toLayerHandler("submitAnswer", () =>170 Ref.update(calls, (count) => count + 1).pipe(171 Effect.andThen(Effect.die("a malformed answer reached the call"))172 )173 )174 ),175 submitAnswer,158 ["--ask", ask, "--base", "not-a-sha", "--head", head]176 answer.map((value) => (value === base ? "not-a-sha" : value))177 );178179 expect(Result.isFailure(result)).toBeTruthy();180 expect(yield* Ref.get(calls)).toBe(0);
4 unmodified lines
added:packages/protocol/test/contract-examples.ts+25 added
1/**2 * One example payload and one example success for every contract, encoded as3 * they travel on the wire (`fixtures/contracts.json`), by contract tag. A4 * stream's success is one of its elements.5 */6import { Schema } from "effect";78import wire from "./fixtures/contracts.json" with { type: "json" };910/** One contract's example, as JSON carries it. */11export const Example = Schema.Struct({12 payload: Schema.Json,13 success: Schema.Json,14});1516export type Example = typeof Example.Type;1718const Fixture = Schema.Struct({19 examples: Schema.Record(Schema.String, Example),20});2122/** Each contract's example, by its tag. */23export const examples: ReadonlyMap<string, Example> = new Map(24 Object.entries(Schema.decodeSync(Fixture)(wire).examples)25);
added:packages/protocol/test/contracts.test.ts+509 added
1import { describe, expect, it } from "@effect/vitest";2import { Context, Option, Redacted, Schema, SchemaAST } from "effect";3import { RpcSchema } from "effect/rpc";4import { expectTypeOf } from "vitest";56import {7 Audience,8 Cli,9 Description,10 Destructive,11 Idempotent,12 NeedsApproval,13 ReadOnly,14 SurfaceName,15 Surfaces,16 Visibility,17} from "../src/annotations.ts";18import {19 Contracts,20 partsOf,21 SetEnv,22 surfaced,23 Watch,24} from "../src/contracts.ts";25import type { Contract, TagOn } from "../src/contracts.ts";26import { ProjectEvent } from "../src/domain/event.ts";27import { toJsonSchema } from "../src/mcp.ts";28import { examples } from "./contract-examples.ts";29import type { Example } from "./contract-examples.ts";3031/**32 * Spec §3.2, row by row and in its order. CLI: the command's name, then the33 * fields it takes in order; `none` for a contract with no command. Flags: R34 * reads only, I idempotent, D destructive, A needs a person's approval.35 * Surfaces: R rpc, M mcp, C cli, W web.36 */37const table = [38 {39 audience: "public",40 cli: "projects",41 errors: [],42 flags: "RI",43 on: "RMCW",44 tag: "listProjects",45 },46 {47 audience: "public",48 cli: "front",49 errors: [],50 flags: "RI",51 on: "RMCW",52 tag: "frontPage",53 },54 {55 audience: "public",56 cli: "asks",57 errors: ["UnknownProject"],58 flags: "RI",59 on: "RMCW",60 tag: "listAsks",61 },62 {63 audience: "public",64 cli: "ask <ask>",65 errors: ["UnknownProject", "UnknownAsk"],66 flags: "RI",67 on: "RMCW",68 tag: "showAsk",69 },70 {71 audience: "signedIn",72 cli: "status",73 errors: ["UnknownProject"],74 flags: "RI",75 on: "RMCW",76 tag: "status",77 },78 {79 audience: "public",80 cli: "verdict",81 errors: ["UnknownProject", "UnknownAsk"],82 flags: "RI",83 on: "RMCW",84 tag: "verdict",85 },86 {87 audience: "public",88 cli: "landing",89 errors: ["UnknownProject", "UnknownCommit"],90 flags: "RI",91 on: "RMCW",92 tag: "landing",93 },94 {95 audience: "public",96 cli: "credits",97 errors: [],98 flags: "RI",99 on: "RMCW",100 tag: "credits",101 },102 {103 audience: "decider",104 cli: "today",105 errors: ["NotDecider", "UnknownProject"],106 flags: "RI",107 on: "RMCW",108 tag: "today",109 },110 {111 audience: "public",112 cli: "ledger",113 errors: ["UnknownProject"],114 flags: "RI",115 on: "RMCW",116 tag: "ledger",117 },118 {119 audience: "public",120 cli: "env shape",121 errors: ["UnknownProject"],122 flags: "RI",123 on: "RMCW",124 tag: "envShape",125 },126 {127 audience: "public",128 cli: "none",129 errors: ["UnknownProject"],130 flags: "R",131 on: "RW",132 tag: "watch",133 },134 {135 audience: "signedIn",136 cli: "init",137 errors: ["ProjectExists", "ImportFailed"],138 flags: "A",139 on: "RMC",140 tag: "initProject",141 },142 {143 audience: "decider",144 cli: "ask open",145 errors: [146 "UnknownProject",147 "NotDecider",148 "NotRedFirst",149 "WeakCheck",150 "IncompleteBrief",151 "TouchedJudge",152 "VerifierBlocked",153 "StaleBase",154 ],155 flags: "A",156 on: "RMC",157 tag: "openAsk",158 },159 {160 audience: "signedIn",161 cli: "propose",162 errors: ["UnknownProject", "Denounced", "CapReached"],163 flags: "",164 on: "RMCW",165 tag: "proposeAsk",166 },167 {168 audience: "signedIn",169 cli: "ask flag",170 errors: ["UnknownProject", "UnknownAsk", "Denounced", "CapReached"],171 flags: "",172 on: "RMC",173 tag: "flagAsk",174 },175 {176 audience: "decider",177 cli: "decide",178 errors: [179 "UnknownProject",180 "UnknownDecision",181 "DecisionClosed",182 "NotDecider",183 ],184 flags: "A",185 on: "RMCW",186 tag: "decide",187 },188 {189 audience: "signedIn",190 cli: "claim <ask>",191 errors: [192 "UnknownProject",193 "UnknownAsk",194 "AskFull",195 "AskBlocked",196 "CapReached",197 "NotVouched",198 "Denounced",199 ],200 flags: "I",201 on: "RMC",202 tag: "claim",203 },204 {205 audience: "signedIn",206 cli: "release",207 errors: ["UnknownProject", "NotClaimed"],208 flags: "I",209 on: "RMC",210 tag: "release",211 },212 {213 audience: "signedIn",214 cli: "submit",215 errors: [216 "UnknownProject",217 "NotClaimed",218 "ClaimLapsed",219 "StaleBase",220 "RepoBusy",221 "OutOfScope",222 "TouchedJudge",223 "Weakened",224 "ReachedInternals",225 "PrivatePathInPublicTree",226 ],227 flags: "I",228 on: "RMC",229 tag: "submitAnswer",230 },231 {232 audience: "decider",233 cli: "finish",234 errors: [235 "UnknownProject",236 "NotDecider",237 "StaleBase",238 "RepoBusy",239 "TouchedJudge",240 ],241 flags: "IA",242 on: "RMC",243 tag: "finish",244 },245 {246 audience: "decider",247 cli: "land",248 errors: ["UnknownProject", "NotDecider", "StaleBase", "RepoBusy"],249 flags: "IA",250 on: "RMC",251 tag: "land",252 },253 {254 audience: "signedIn",255 cli: "fork",256 errors: ["UnknownProject", "NotVouched", "Denounced"],257 flags: "I",258 on: "RMC",259 tag: "fork",260 },261 {262 audience: "decider",263 cli: "vouch",264 errors: ["UnknownProject", "NotDecider", "StaleBase"],265 flags: "A",266 on: "RMC",267 tag: "vouch",268 },269 {270 audience: "decider",271 cli: "env set",272 errors: [273 "UnknownProject",274 "NotDecider",275 "UnknownEnvItem",276 "NotSensitive",277 "ValueTooShort",278 ],279 flags: "IA",280 on: "RC",281 tag: "setEnv",282 },283] as const;284285/** Each surface's letter in the table's Surfaces column. */286const letterOf = {287 cli: "C",288 mcp: "M",289 rpc: "R",290 web: "W",291} as const satisfies Record<SurfaceName, string>;292293/** The surfaces a row's letters name, in the annotation's order. */294const surfacesOf = (letters: string): readonly SurfaceName[] =>295 SurfaceName.literals.filter((surface) => letters.includes(letterOf[surface]));296297const contracts = [...Contracts.requests.values()];298299/** A contract's command as the table's CLI column writes it. */300const commandOf = (rpc: Contract) => {301 const cli = Context.getOrUndefined(rpc.annotations, Cli);302303 if (cli?.name === undefined) {304 return "none";305 }306307 return [308 cli.name,309 ...(cli.positional ?? []).map((field) => `<${field}>`),310 ].join(" ");311};312313/** The refusals an error schema admits, by name: one, a union of several, or none. */314const refusalsOf = (error: Schema.Top) => {315 const { ast } = error;316317 if (SchemaAST.isNever(ast)) {318 return [];319 }320321 return (SchemaAST.isUnion(ast) ? ast.types : [ast]).map(322 SchemaAST.resolveIdentifier323 );324};325326/** A contract's example, decoded with the contract's schemas and encoded back. */327const roundTrip = (rpc: Contract, example: Example) => {328 const { success } = partsOf(rpc);329330 return {331 payload: Schema.encodeSync(rpc.payloadSchema)(332 Schema.decodeUnknownSync(rpc.payloadSchema)(example.payload)333 ),334 success: Schema.encodeSync(success)(335 Schema.decodeUnknownSync(success)(example.success)336 ),337 };338};339340describe("the contracts group", () => {341 it("holds every contract of the spec's table, in its order", () => {342 expect([...Contracts.requests.keys()]).toStrictEqual(343 table.map(({ tag }) => tag)344 );345 });346347 it("describes every contract", () => {348 const undescribed = contracts.flatMap((rpc) =>349 Context.get(rpc.annotations, Description).trim() === "" ? [rpc._tag] : []350 );351352 expect(contracts).toHaveLength(table.length);353 expect(undescribed).toStrictEqual([]);354 });355356 // Each is set explicitly: MCP reads a tool with no hints as destructive.357 it("sets each contract's hints and approval explicitly, as the table flags them", () => {358 expect(359 contracts.map((rpc) => ({360 destructive: Context.getOrUndefined(rpc.annotations, Destructive),361 idempotent: Context.getOrUndefined(rpc.annotations, Idempotent),362 needsApproval: Context.getOrUndefined(rpc.annotations, NeedsApproval),363 readOnly: Context.getOrUndefined(rpc.annotations, ReadOnly),364 tag: rpc._tag,365 }))366 ).toStrictEqual(367 table.map(({ flags, tag }) => ({368 destructive: flags.includes("D"),369 idempotent: flags.includes("I"),370 needsApproval: flags.includes("A"),371 readOnly: flags.includes("R"),372 tag,373 }))374 );375 });376377 it("says who may call each contract and which surfaces serve it", () => {378 expect(379 contracts.map((rpc) => ({380 audience: Context.getOrUndefined(rpc.annotations, Audience),381 surfaces: Context.getOrUndefined(rpc.annotations, Surfaces),382 tag: rpc._tag,383 }))384 ).toStrictEqual(385 table.map(({ audience, on, tag }) => ({386 audience,387 surfaces: surfacesOf(on),388 tag,389 }))390 );391 });392393 it("names each contract's command, and the fields it takes in order", () => {394 expect(395 contracts.map((rpc) => ({ cli: commandOf(rpc), tag: rpc._tag }))396 ).toStrictEqual(table.map(({ cli, tag }) => ({ cli, tag })));397 });398399 // Web caching reads it: no cache may keep a response for maintainers.400 it("sets each contract's visibility explicitly, keeping only a decider's Today and decisions to maintainers", () => {401 expect(402 contracts.flatMap((rpc) => {403 const visibility = Context.getOrUndefined(rpc.annotations, Visibility);404405 return visibility === "public" ? [] : [{ tag: rpc._tag, visibility }];406 })407 ).toStrictEqual([408 { tag: "today", visibility: "maintainers" },409 { tag: "decide", visibility: "maintainers" },410 ]);411 });412413 it("lets each contract refuse only with its own subset of refusals", () => {414 expect(415 contracts.map((rpc) => ({416 errors: refusalsOf(partsOf(rpc).error),417 tag: rpc._tag,418 }))419 ).toStrictEqual(table.map(({ errors, tag }) => ({ errors, tag })));420 });421422 it.each(table)(423 "$tag decodes its example payload and success, and encodes them back unchanged",424 ({ tag }) => {425 const example = Option.fromUndefinedOr(examples.get(tag));426427 const rpc = Option.fromUndefinedOr(Contracts.requests.get(tag));428429 expect(Option.isSome(example)).toBeTruthy();430 expect(Option.zipWith(rpc, example, roundTrip)).toStrictEqual(example);431 }432 );433434 // AGENTS.md "Effect traps": a bare number admits "Infinity" and "NaN", and435 // `Schema.optional` admits null; MCP tool schemas would carry both.436 it("gives every payload and success a JSON Schema with no non-finite number and no null", () => {437 const leaky = contracts.flatMap((rpc) => {438 const { success } = partsOf(rpc);439440 return [441 [`${rpc._tag}.payload`, rpc.payloadSchema] as const,442 [`${rpc._tag}.success`, success] as const,443 ].flatMap(([name, schema]) => {444 const json = JSON.stringify(toJsonSchema(schema));445446 return ['"Infinity"', '"NaN"', '"null"'].flatMap((leak) =>447 json.includes(leak) ? [`${name} admits ${leak}`] : []448 );449 });450 });451452 expect(contracts).toHaveLength(table.length);453 expect(leaky).toStrictEqual([]);454 });455456 it("takes setEnv's value as the raw string on the wire, and never prints it", () => {457 const sent = examples.get("setEnv")?.payload;458459 const decoded = Schema.decodeUnknownSync(SetEnv.payloadSchema)(sent);460 const encoded = Schema.encodeSync(SetEnv.payloadSchema)(decoded);461462 expect(Redacted.isRedacted(decoded.value)).toBeTruthy();463 expect(encoded).toStrictEqual(sent);464 expect(encoded.value).toBe("not-a-real-value-0123456789abcdef");465 expect(JSON.stringify(decoded)).toContain('"value":"<redacted>"');466 expect(JSON.stringify(decoded)).not.toContain(encoded.value);467 });468469 it("streams a project's events from watch", () => {470 expect(RpcSchema.isStreamSchema(Watch.successSchema)).toBeTruthy();471 expect(Watch.successSchema.success).toBe(ProjectEvent);472 });473});474475describe("the group a surface serves", () => {476 it.each(SurfaceName.literals)(477 "%s carries exactly the contracts the table puts on it",478 (surface) => {479 expect([...surfaced(surface).requests.keys()]).toStrictEqual(480 table.flatMap(({ on, tag }) =>481 on.includes(letterOf[surface]) ? [tag] : []482 )483 );484 }485 );486487 // Compile-time: each surface's group is typed by the table its488 // annotations come from, so a tool or command the type names exists.489 it("types each surface's group as the contracts on it", () => {490 expectTypeOf<TagOn<"rpc">>().toEqualTypeOf<Contract["_tag"]>();491 expectTypeOf<TagOn<"mcp">>().toEqualTypeOf<492 Exclude<Contract["_tag"], "setEnv" | "watch">493 >();494 expectTypeOf<TagOn<"cli">>().toEqualTypeOf<495 Exclude<Contract["_tag"], "watch">496 >();497 });498499 it("never gives MCP a stream, or a contract that carries a write-only value", () => {500 const mcp = [...surfaced("mcp").requests.values()];501502 expect(mcp.map(({ _tag }) => _tag)).not.toContain("setEnv");503 expect(504 mcp.flatMap((rpc) =>505 RpcSchema.isStreamSchema(rpc.successSchema) ? [rpc._tag] : []506 )507 ).toStrictEqual([]);508 });509});
modified:packages/protocol/test/mcp.test.ts+74 added-42 removed
1import { describe, expect, it } from "@effect/vitest";2import { Context, Effect, Schema } from "effect";2import { Context, Effect, Layer, Schema } from "effect";3import { Tool } from "effect/ai";4import { Rpc, RpcGroup } from "effect/rpc";56import { Description, NeedsApproval } from "../src/annotations.ts";7import { Client, Contracts, ListAsks, SubmitAnswer } from "../src/contracts.ts";7import {8 Client,9 Contracts,10 ListAsks,11 SubmitAnswer,12 surfaced,13} from "../src/contracts.ts";14import { AskId, CommitSha, KindName, ProjectName } from "../src/ids.ts";15import { listTools, toJsonSchema, toToolkit } from "../src/mcp.ts";16import { StaleBase } from "../src/refusal.ts";17import { unanswered } from "../src/testing.ts";18import { ask, base, main, path } from "./examples.ts";19import { serve } from "./mcp.ts";2021const head = CommitSha.make("3333333333333333333333333333333333333333");2223const project = ProjectName.make("datekit");2425/** An answer's arguments, as an agent passes them to `submitAnswer`. */26const answer = { ask, base, head, project, requestId: "answer-0001" };2728/** A tools/call result whose one content block is JSON text. */29const ToolResult = Schema.Struct({30 content: Schema.Tuple([31 Schema.Struct({
3 unmodified lines
35 ]),36 isError: Schema.Boolean,37});3827/** Handlers that never refuse, for tests about the tools themselves. */28const quiet = Contracts.toLayer({29 listAsks: () => Effect.succeed({ asks: [] }),30 submitAnswer: () => Effect.succeed({ main }),31});39/** Contracts whose answers always meet a moved main. */40const stale = (refusal: StaleBase) =>41 Layer.mergeAll(42 unanswered,43 Contracts.toLayerHandler("submitAnswer", () => Effect.fail(refusal))44 );4546const ToolList = Schema.Struct({47 tools: Schema.Array(48 Schema.Struct({49 description: Schema.String,37 inputSchema: Schema.Struct({ required: Schema.Array(Schema.String) }),50 inputSchema: Schema.Struct({51 required: Schema.optionalKey(Schema.Array(Schema.String)),52 }),53 name: Schema.String,54 })55 ),56});
34 unmodified lines
91 type: "object",92};9394describe("the contracts as MCP tools", () => {95 it.effect(96 "lists each MCP-surfaced contract as a tool, its payload as the input",80 it.effect("lists each contract as a tool, its payload as the input", () =>81 Effect.gen(function* () {82 const mcp = yield* serve(quiet);97 () =>98 Effect.gen(function* () {99 const mcp = yield* serve(unanswered);10084 const { tools } = yield* mcp.call("tools/list", {}, ToolList);101 const { tools } = yield* mcp.call("tools/list", {}, ToolList);10286 expect(87 tools.map(({ description, inputSchema, name }) => ({88 description,89 name,90 required: inputSchema.required,91 }))92 ).toStrictEqual([93 {103 const byName = new Map(tools.map((tool) => [tool.name, tool]));104105 expect(tools.map(({ name }) => name)).toStrictEqual([106 ...surfaced("mcp").requests.keys(),107 ]);108 expect(byName.get("listAsks")).toStrictEqual({109 description: Context.get(ListAsks.annotations, Description),110 inputSchema: { required: ["project"] },111 name: "listAsks",96 required: ["project"],97 },98 {112 });113 expect(byName.get("submitAnswer")).toStrictEqual({114 description: Context.get(SubmitAnswer.annotations, Description),115 inputSchema: {116 required: ["ask", "base", "head", "project", "requestId"],117 },118 name: "submitAnswer",101 required: ["ask", "base", "head"],102 },103 ]);119 });120 })121 );122123 // A stream has no tool form, and a write-only value must never pass124 // through an agent's transcript.125 it.effect("offers no tool for watching a project or setting a value", () =>126 Effect.gen(function* () {127 const mcp = yield* serve(unanswered);128129 const { tools } = yield* mcp.call("tools/list", {}, ToolList);130131 const names = tools.map(({ name }) => name);132133 expect(names).toContain("listProjects");134 expect(names).not.toContain("watch");135 expect(names).not.toContain("setEnv");136 })137 );138139 it.effect(140 "hints that listing asks only reads, and that an answer can be offered again",141 () =>142 Effect.gen(function* () {111 const mcp = yield* serve(quiet);143 const mcp = yield* serve(unanswered);144145 const { tools } = yield* mcp.call("tools/list", {}, HintedTools);146115 expect(tools).toStrictEqual([147 expect(148 tools.filter(({ name }) =>149 ["listAsks", "submitAnswer"].includes(name)150 )151 ).toStrictEqual([152 {153 annotations: {154 destructiveHint: false,155 idempotentHint: true,
17 unmodified lines
173174 // The generated reference reads `listTools`, so it says what a client sees.175 it.effect("lists each tool exactly as the reference describes it", () =>176 Effect.gen(function* () {141 const mcp = yield* serve(quiet);177 const mcp = yield* serve(unanswered);178179 const { tools } = yield* mcp.call("tools/list", {}, ListedTools);180181 expect(tools).toStrictEqual(146 listTools(toToolkit(Contracts, Effect.service(Client)).toolkit)182 listTools(toToolkit(surfaced("mcp"), Effect.service(Client)).toolkit)183 );184 })185 );186
36 unmodified lines
223 it.effect("returns a refusal as JSON that keeps its tag", () =>224 Effect.gen(function* () {225 const refusal = new StaleBase({ base, conflicts: [path], main });226191 const mcp = yield* serve(192 Contracts.toLayer({193 listAsks: () => Effect.succeed({ asks: [] }),194 submitAnswer: () => Effect.fail(refusal),195 })196 );227 const mcp = yield* serve(stale(refusal));228229 const result = yield* mcp.call(230 "tools/call",200 { arguments: { ask, base, head }, name: "submitAnswer" },231 { arguments: answer, name: "submitAnswer" },232 ToolResult233 );234235 const [{ text }] = result.content;
8 unmodified lines
244245 it.effect("returns a contract's success as structured content", () =>246 Effect.gen(function* () {247 const mcp = yield* serve(217 Contracts.toLayer({218 listAsks: () =>248 Layer.mergeAll(249 unanswered,250 Contracts.toLayerHandler("listAsks", () =>251 Effect.succeed({252 asks: [253 {254 ask: AskId.make("fix-parser"),
3 unmodified lines
258 territory: "packages/parser",259 want: "Parse a trailing comma",260 },261 ],230 }),231 submitAnswer: () => Effect.succeed({ main }),232 })262 })263 )264 )265 );266267 const result = yield* mcp.call(268 "tools/call",
25 unmodified lines
modified:packages/protocol/test/mcp.ts+4 added-4 removed
2 unmodified lines
3import { HttpRouter } from "effect/http";4import type { Rpc, RpcGroup } from "effect/rpc";5import { RpcTest } from "effect/rpc";67import { Client, Contracts } from "../src/contracts.ts";7import { Client, Contracts, surfaced } from "../src/contracts.ts";8import { toToolkit } from "../src/mcp.ts";9import { asTester } from "../src/testing.ts";1011const endpoint = "http://localhost/mcp";
30 unmodified lines
42 readonly name?: string;43}4445/**46 * Serves the contracts' tools over MCP's HTTP transport, the way a Worker's47 * fetch handler would, with `handlers` answering each call.46 * Serves the MCP-surfaced contracts' tools over MCP's HTTP transport, the way47 * a Worker's fetch handler would, with `handlers` answering each call.48 */49export const serve = Effect.fnUntraced(function* (50 handlers: Layer.Layer<Rpc.ToHandler<RpcGroup.Rpcs<typeof Contracts>>>51) {52 const projection = toToolkit(Contracts, Effect.service(Client));52 const projection = toToolkit(surfaced("mcp"), Effect.service(Client));5354 const app = McpServer.toolkit(projection.toolkit).pipe(55 Layer.provideMerge(projection.layer),56 Layer.provide(Layer.effect(Client)(RpcTest.makeClient(Contracts))),
58 unmodified lines
modified:packages/protocol/test/testing.test.ts+29 added-8 removed
1import { describe, expect, it } from "@effect/vitest";2import { Effect, Layer } from "effect";2import { Effect, Exit, Layer } from "effect";3import { RpcTest } from "effect/rpc";45import { Contracts } from "../src/contracts.ts";6import { AskId, Handle, KindName, ProjectName } from "../src/ids.ts";7import { CurrentPrincipal, Principal } from "../src/principal.ts";8import { NotClaimed } from "../src/refusal.ts";9import { asPerson, asTester } from "../src/testing.ts";8import { asPerson, asTester, unanswered } from "../src/testing.ts";910/** Contracts whose one listed ask wants whoever called: their handle, or `anyone`. */12const echoCaller = Contracts.toLayer({13 listAsks: () =>11const echoCaller = Layer.mergeAll(12 unanswered,13 Contracts.toLayerHandler("listAsks", () =>14 Effect.gen(function* () {15 const caller = Principal.match(yield* CurrentPrincipal, {16 Anonymous: () => "anyone",17 Person: ({ handle }) => handle,
10 unmodified lines
28 want: caller,29 },30 ],31 };32 }),33 submitAnswer: ({ ask }) => Effect.fail(NotClaimed.of(ask)),34});32 })33 )34);3536/** Who the server side took the call to be, as `echoCaller` reports it. */37const caller = Effect.gen(function* () {38 const client = yield* RpcTest.makeClient(Contracts);
19 unmodified lines
58 expect(yield* caller).toStrictEqual(["tester"]);59 }).pipe(Effect.provide(Layer.mergeAll(echoCaller, asTester)))60 );61});6263describe("the unanswered handlers", () => {64 it.effect(65 "answer only the contracts a test sets up over them; any other call dies",66 () =>67 Effect.gen(function* () {68 const client = yield* RpcTest.makeClient(Contracts);6970 const listed = yield* client.listAsks({71 project: ProjectName.make("datekit"),72 });7374 const other = yield* Effect.exit(75 client.credits({ handle: Handle.make("alice") })76 );7778 expect(listed.asks.map(({ want }) => want)).toStrictEqual(["tester"]);79 expect(Exit.hasDies(other)).toBeTruthy();80 }).pipe(Effect.provide(Layer.mergeAll(echoCaller, asTester)))81 );82});
modified:scripts/lib/gen.ts+45 added-16 removed
10 unmodified lines
11 Description,12 Destructive,13 Idempotent,14 NeedsApproval,15 partsOf,16 ReadOnly,17 surfaced,18 SurfaceName,19 Surfaces,20} from "@repo/protocol/contracts";21import {
72 unmodified lines
94 * cycle.95 */96export { Refusal } from "@repo/protocol/refusal";9796export { Contracts } from "@repo/protocol/contracts";98export { Contracts, partsOf } from "@repo/protocol/contracts";99100/**101 * `docs/reference/commands.json`: every command the CLI has. `projected`102 * commands come from a contract; W4 merges in the hand-written `local` ones.
254 unmodified lines
357// --- mcp-tools.md -------------------------------------------------------------358359/** The tools MCP serves, read from the same projection the servers use. */360const tools = (): readonly ToolListing[] =>359 listTools(toToolkit(Contracts, Effect.service(Client)).toolkit);361 listTools(toToolkit(surfaced("mcp"), Effect.service(Client)).toolkit);362363const jsonBlock = (schema: JsonSchema.JsonSchema) => [364 "```json",365 printJson(toJson(schema)),
29 unmodified lines
395 ),396 "",397 "# MCP tools",398 "",397 `Each contract is one MCP tool, named by its tag, as \`tools/list\` shows it over \`/mcp\` and over stdio from \`${Brand.cli} mcp\`. A tool's input is the contract's payload and its output is the contract's success. A refusal comes back as the tool's error result: the refusal as JSON, \`_tag\` and all (see [refusals.md](refusals.md)).`,399 `Each contract served on MCP is one tool, named by its tag, as \`tools/list\` shows it over \`/mcp\` and over stdio from \`${Brand.cli} mcp\`. A stream has no tool, and no tool takes a write-only value, which must never pass through an agent's transcript. A tool's input is the contract's payload and its output is the contract's success. A refusal comes back as the tool's error result: the refusal as JSON, \`_tag\` and all (see [refusals.md](refusals.md)).`,400 "",401 "The hints come from each contract's own annotations. No tool reaches anything outside the platform, so `openWorldHint` is always false.",402 "",403 ...tools().flatMap(toolSection),
57 unmodified lines
461 ["number", "a number"],462 ["string", "text"],463]);464463/** What a field takes on the command line, in the words `--help` uses. */465/**466 * A boolean field is a switch: the CLI turns it on by naming it, and it is467 * off by default, so it is never required.468 */469const isSwitch = (field: Schema.Json) =>470 isFieldSchema(field) && field.type === "boolean";471472/**473 * What a field takes on the command line, in the words `--help` uses, as a474 * table cell: a choice's values are split by an escaped pipe, which Markdown475 * shows as a pipe and doesn't read as the cell's end.476 */477const takes = (field: Schema.Json) => {478 if (!isFieldSchema(field)) {479 return "JSON";480 }481482 if (field.enum !== undefined) {470 return field.enum.map((value) => JSON.stringify(value)).join(" | ");483 return field.enum.map((value) => JSON.stringify(value)).join(" \\| ");484 }485486 return (487 (field.type === undefined ? undefined : kinds.get(field.type)) ?? "JSON"
11 unmodified lines
499 const flags = Arr.sort(Object.entries(properties), byKey).filter(500 ([field]) => !positional.has(field)501 );502503 /** Whether a person must give the flag: a switch never needs giving. */504 const mustGive = ([field, schema]: readonly [string, Schema.Json]) =>505 needed.has(field) && !isSwitch(schema);506507 const usageOf = (flag: readonly [string, Schema.Json]) => {508 const [field, schema] = flag;509510 if (isSwitch(schema)) {511 return `[--${field}]`;512 }513514 return mustGive(flag) ? `--${field} <${field}>` : `[--${field} <${field}>]`;515 };516517 const usage = [518 Brand.cli,519 ...command.path,520 ...command.positional.map((field) => `<${field}>`),494 ...flags.map(([field]) =>495 needed.has(field) ? `--${field} <${field}>` : `[--${field} <${field}>]`496 ),521 ...flags.map(usageOf),522 ].join(" ");523524 const rows = [525 ...command.positional.map(526 (field) =>527 `| \`<${field}>\` | ${takes(properties[field] ?? null)} | ${yesNo(needed.has(field))} |`528 ),529 ...flags.map(505 ([field, schema]) =>506 `| \`--${field}\` | ${takes(schema)} | ${yesNo(needed.has(field))} |`530 (flag) =>531 `| \`--${flag[0]}\` | ${takes(flag[1])} | ${yesNo(mustGive(flag))} |`532 ),533 ];534535 return [
47 unmodified lines
583584/**585 * One JSON Schema document for the whole protocol: a definition for each586 * contract's payload, success and error, and for the refusal union, sharing562 * the definitions they name.587 * the definitions they name. A stream's success is one of its elements.588 */589const protocolSchema = (): GeneratedFile => {590 const roots: Arr.NonEmptyReadonlyArray<readonly [string, Schema.Top]> = [591 ["Refusal", Refusal],567 ...contracts.flatMap((rpc) => [568 [`${rpc._tag}.payload`, rpc.payloadSchema] as const,569 [`${rpc._tag}.success`, rpc.successSchema] as const,570 [`${rpc._tag}.error`, rpc.errorSchema] as const,571 ]),592 ...contracts.flatMap((rpc) => {593 const { error, payload, success } = partsOf(rpc);594595 return [596 [`${rpc._tag}.payload`, payload] as const,597 [`${rpc._tag}.success`, success] as const,598 [`${rpc._tag}.error`, error] as const,599 ];600 }),601 ];602603 // Each root as JSON encodes it, as `Schema.toJsonSchemaDocument` does.604 const { definitions, schemas } =
76 unmodified lines