K21a (regenerate, in between): the generated Go and TypeScript follow the definitions so far
The conditions developer reads kinds, attempt-changed, wait-held and wait-ended from it. K21 regenerates last. The client meshconditionsclient does not build against the findings state's new layout until the question on it is answered. Builds: design 47 G §341, §523, §580, §541, §499 Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
Vendored
+94
-20
@@ -18,6 +18,8 @@ export declare const verbs: {
|
||||
readonly manifestReads: "manifest-reads";
|
||||
readonly seatList: "seat-list";
|
||||
readonly seatListAgain: "seat-list-again";
|
||||
readonly firstViews: "first-views";
|
||||
readonly firstViewAgain: "first-view-again";
|
||||
readonly processBuilds: "process-builds";
|
||||
};
|
||||
|
||||
@@ -28,7 +30,8 @@ export declare const events: {
|
||||
readonly manifestReadsChanged: "manifest-reads-changed";
|
||||
readonly composed: "composed";
|
||||
readonly running: "running";
|
||||
readonly capabilitiesChanged: "capabilities-changed";
|
||||
readonly waitHeld: "wait-held";
|
||||
readonly waitEnded: "wait-ended";
|
||||
};
|
||||
|
||||
export declare const family: { readonly name: "node-engine.events"; readonly maxAgeDays: 7 };
|
||||
@@ -51,9 +54,17 @@ export declare function runningSubject(node: string, module: string): string;
|
||||
|
||||
export declare const runningSubjectAll: "mesh.seat.node-engine.event.running.*.*";
|
||||
|
||||
export declare function capabilitiesChangedSubject(node: string): string;
|
||||
export declare const waitHeldStream: "SEAT_node-engine_wait-held";
|
||||
|
||||
export declare const capabilitiesChangedSubjectAll: "mesh.seat.node-engine.event.capabilities-changed.*";
|
||||
export declare function waitHeldSubject(node: string, module: string): string;
|
||||
|
||||
export declare const waitHeldSubjectAll: "mesh.seat.node-engine.event.wait-held.*.*";
|
||||
|
||||
export declare const waitEndedStream: "SEAT_node-engine_wait-ended";
|
||||
|
||||
export declare function waitEndedSubject(node: string, module: string): string;
|
||||
|
||||
export declare const waitEndedSubjectAll: "mesh.seat.node-engine.event.wait-ended.*.*";
|
||||
|
||||
export declare const states: {
|
||||
readonly have: "have";
|
||||
@@ -267,18 +278,6 @@ export interface CandidateRefusal {
|
||||
"why": string;
|
||||
}
|
||||
|
||||
/** a node's capabilities changed, which the assigner places by */
|
||||
export interface CapabilitiesChanged {
|
||||
/** when, RFC 3339 */
|
||||
"at": string;
|
||||
/** its capabilities now */
|
||||
"capabilities": string[];
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** the layout's version */
|
||||
"v": number;
|
||||
}
|
||||
|
||||
/** an entry composed on a node (design 47 *What each step says*) */
|
||||
export interface Composed {
|
||||
/** when, RFC 3339 */
|
||||
@@ -575,19 +574,21 @@ export interface RootVerdict {
|
||||
"why": string;
|
||||
}
|
||||
|
||||
/** a module running healthy on a node at a build: what the node-engines of other nodes and the grants part decide a seat's pass from (ADR 0660 §2), kept last per subject with no age limit */
|
||||
/** a module's build running on a node, and its health: what the node-engines of other nodes and the grants part decide a seat's pass from (ADR 0660 §2), and the assigner reads a provider's and a canary's health and a put's end from (design 47 G 520); said again on the same subject each time healthy changes and for every module the have holds at the engine's start, kept last per subject with no age limit */
|
||||
export interface Running {
|
||||
/** when it was seen running healthy, RFC 3339 */
|
||||
/** when it was said, RFC 3339 */
|
||||
"at": string;
|
||||
/** the fingerprint of the build it runs; none with stopped */
|
||||
"fingerprint"?: string;
|
||||
/** the health of the build that runs, as the node-engine's have holds it from the module's declared check (ADR 0240); a running with none, said by a node-engine of before design 47 G, reads as healthy (design 47 G 520). SeatsToPassOn reads none of it: an unhealthy holder still holds its seat */
|
||||
"healthy"?: boolean | null;
|
||||
/** the digest of that build's manifest, the indexer's manifest of it, read by digest from the catalog half */
|
||||
"manifest"?: string;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** true when the module no longer runs on the node: no fingerprint or manifest then (design 47 G 365, 404); mesh-sdk's SeatsToPassOn counts such a module as not running there */
|
||||
/** true when the have no longer holds the module on the node, never for an unhealthy build: no fingerprint or manifest then (design 47 G 365, 404, 520); mesh-sdk's SeatsToPassOn counts such a module as not running there */
|
||||
"stopped"?: boolean;
|
||||
/** the layout's version */
|
||||
"v": number;
|
||||
@@ -669,6 +670,31 @@ export interface UserListWritten {
|
||||
"wanted": string;
|
||||
}
|
||||
|
||||
/** a hold or wait a node-engine says, the fields of the seat mesh-wants' wait (design 47 G 498, 512, 629); in the have it also carries ask-at and act (design 47 G 560) */
|
||||
export interface Wait {
|
||||
/** in the have: the act the recovery module answered accepted with (design 47 G 560) */
|
||||
"act"?: string;
|
||||
/** in the have: the time of the first ask of the recovery module for this wait (design 47 G 560) */
|
||||
"ask-at"?: string;
|
||||
/** a duration such as 30m */
|
||||
"bound"?: string;
|
||||
/** the time the bound counts from (design 47 G 266, 269, 498) */
|
||||
"clock-from"?: string;
|
||||
/** the node waited on: the build node for a kept build; the subject's <node> is the node that says it */
|
||||
"node"?: string;
|
||||
/** what it waits on */
|
||||
"on"?: string;
|
||||
/** the seat holding the wait: node-engine */
|
||||
"owner"?: string;
|
||||
/** why it holds, such as restore point missing, entry-missing, parts-differ, node away or build no longer kept (design 47 G 541, 499) */
|
||||
"reason"?: string;
|
||||
"since": string;
|
||||
/** compose: a hold of the composition (a restore point missing, an entry missing, parts that differ, a recovery that waits); kept-build: waiting for a kept build (design 47 G 499, 541) */
|
||||
"step": "compose" | "kept-build";
|
||||
/** the wait said in words */
|
||||
"words"?: string;
|
||||
}
|
||||
|
||||
/** is what hand-over takes. */
|
||||
export interface HandOverInput {
|
||||
/** the directory's absolute path, as the engine states it */
|
||||
@@ -991,6 +1017,50 @@ export interface SeatListAgainInput {
|
||||
/** is what seat-list-again answers. */
|
||||
export type SeatListAgainAnswer = SeatList;
|
||||
|
||||
/** is what first-views takes. */
|
||||
export interface FirstViewsInput {
|
||||
}
|
||||
|
||||
/** is what first-views answers. */
|
||||
export interface FirstViewsAnswer {
|
||||
/** one status per owner and state followed, as mesh-sdk's views runtime keeps it */
|
||||
"first-views": Record<string, unknown>[];
|
||||
}
|
||||
|
||||
/** is what first-view-again takes. */
|
||||
export interface FirstViewAgainInput {
|
||||
/** the owner module, as first-views names it */
|
||||
"owner": string;
|
||||
/** the owner's state, as first-views names it */
|
||||
"state": string;
|
||||
/** why it is asked again, in plain words */
|
||||
"why": string;
|
||||
}
|
||||
|
||||
/** the hand ask written */
|
||||
export interface FirstViewAgainAnswerAsked {
|
||||
/** when it was asked, RFC 3339 */
|
||||
"at": string;
|
||||
/** the caller the runtime proved */
|
||||
"by": string;
|
||||
/** the owner module */
|
||||
"owner": string;
|
||||
/** the owner's state */
|
||||
"state": string;
|
||||
/** the layout's version */
|
||||
"v": number;
|
||||
/** why it was asked again */
|
||||
"why": string;
|
||||
}
|
||||
|
||||
/** is what first-view-again answers. */
|
||||
export interface FirstViewAgainAnswer {
|
||||
/** the hand ask written */
|
||||
"asked": FirstViewAgainAnswerAsked;
|
||||
/** the verb that reads the status, first-views */
|
||||
"read": string;
|
||||
}
|
||||
|
||||
/** is what process-builds takes. */
|
||||
export interface ProcessBuildsInput {
|
||||
/** only this module's processes */
|
||||
@@ -1018,8 +1088,11 @@ export type ComposedEvent = Composed;
|
||||
/** is the body of the event running. */
|
||||
export type RunningEvent = Running;
|
||||
|
||||
/** is the body of the event capabilities-changed. */
|
||||
export type CapabilitiesChangedEvent = CapabilitiesChanged;
|
||||
/** is the body of the event wait-held. */
|
||||
export type WaitHeldEvent = Wait;
|
||||
|
||||
/** is the body of the event wait-ended. */
|
||||
export type WaitEndedEvent = Wait;
|
||||
|
||||
/** is one value of the state have under the key <node>.<module>. */
|
||||
export interface HaveByNodeModuleValue {
|
||||
@@ -1047,6 +1120,7 @@ export interface HaveByNodeModuleValue {
|
||||
"sealed-at"?: Record<string, string>;
|
||||
"user-list"?: UserListWritten;
|
||||
"v": number;
|
||||
"wait"?: Wait;
|
||||
/** in phase waiting-yes, the digest of the composition that waits */
|
||||
"waits"?: string;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@ export const verbs = {
|
||||
manifestReads: "manifest-reads",
|
||||
seatList: "seat-list",
|
||||
seatListAgain: "seat-list-again",
|
||||
firstViews: "first-views",
|
||||
firstViewAgain: "first-view-again",
|
||||
processBuilds: "process-builds",
|
||||
};
|
||||
|
||||
@@ -28,7 +30,8 @@ export const events = {
|
||||
manifestReadsChanged: "manifest-reads-changed",
|
||||
composed: "composed",
|
||||
running: "running",
|
||||
capabilitiesChanged: "capabilities-changed",
|
||||
waitHeld: "wait-held",
|
||||
waitEnded: "wait-ended",
|
||||
};
|
||||
|
||||
export const family = { name: "node-engine.events", maxAgeDays: 7 };
|
||||
@@ -63,11 +66,21 @@ export function runningSubject(node, module) {
|
||||
|
||||
export const runningSubjectAll = "mesh.seat.node-engine.event.running.*.*";
|
||||
|
||||
export function capabilitiesChangedSubject(node) {
|
||||
return "mesh.seat.node-engine.event.capabilities-changed." + node;
|
||||
export const waitHeldStream = "SEAT_node-engine_wait-held";
|
||||
|
||||
export function waitHeldSubject(node, module) {
|
||||
return "mesh.seat.node-engine.event.wait-held." + node + "." + module;
|
||||
}
|
||||
|
||||
export const capabilitiesChangedSubjectAll = "mesh.seat.node-engine.event.capabilities-changed.*";
|
||||
export const waitHeldSubjectAll = "mesh.seat.node-engine.event.wait-held.*.*";
|
||||
|
||||
export const waitEndedStream = "SEAT_node-engine_wait-ended";
|
||||
|
||||
export function waitEndedSubject(node, module) {
|
||||
return "mesh.seat.node-engine.event.wait-ended." + node + "." + module;
|
||||
}
|
||||
|
||||
export const waitEndedSubjectAll = "mesh.seat.node-engine.event.wait-ended.*.*";
|
||||
|
||||
export const states = {
|
||||
have: "have",
|
||||
|
||||
Reference in New Issue
Block a user