H2 K1: every seat package read tolerantly, saying its form
A reader of another part's value refused a field it did not know, so a holder that added one broke every reader until each was rebuilt. Every package is generated again by mesh-delivery's seatgen (feat/47-H2 ff7db337): each generated decoder keeps unknown fields, returns the form read (1 when absent) and each package states its Form (1 everywhere, left out on the wire). The hand-written clients take the three values, and the node-engine client's ask, answer, composition and have decoders keep unknown fields too; their tests now hold that tolerance. seatgen -check clean in all five folders. Builds: design 47 H2 §780; H-A-350 DMC-4
This commit is contained in:
Vendored
+62
@@ -193,6 +193,8 @@ export interface ActSaid {
|
||||
"ask"?: string;
|
||||
/** the caller as the runtime proved it */
|
||||
"caller": string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the node whose engine says it */
|
||||
"node": string;
|
||||
/** what the engine said of it */
|
||||
@@ -207,6 +209,8 @@ export interface ActSaid {
|
||||
export interface Acts {
|
||||
/** the acts, newest first */
|
||||
"acts": Act[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the node */
|
||||
"node": string;
|
||||
}
|
||||
@@ -223,6 +227,8 @@ export interface Adoption {
|
||||
export interface Asked {
|
||||
/** the ask's id: acts shows where it stands */
|
||||
"asked": string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** what happens next, in words */
|
||||
@@ -297,6 +303,8 @@ export interface Composed {
|
||||
"digest": string;
|
||||
/** the fingerprint of the want composed */
|
||||
"fingerprint": string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the node */
|
||||
@@ -408,6 +416,8 @@ export type ManifestReadWord = "want:version";
|
||||
export interface ManifestReadsChanged {
|
||||
/** when it says it, RFC 3339 */
|
||||
"at": string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** what its engine states it reads now */
|
||||
"manifest-reads"?: string[];
|
||||
/** the node */
|
||||
@@ -552,6 +562,8 @@ export interface ProcessBuild {
|
||||
export interface ProcessBuilds {
|
||||
/** why they could not be read */
|
||||
"error"?: string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** every process the node-engine started, by module */
|
||||
@@ -618,6 +630,8 @@ export interface Running {
|
||||
"at": string;
|
||||
/** the fingerprint of the build it runs; none with stopped */
|
||||
"fingerprint"?: string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** 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 */
|
||||
@@ -634,6 +648,8 @@ export interface Running {
|
||||
|
||||
/** the answer of a read-only judgement */
|
||||
export interface Said {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the node */
|
||||
"node": string;
|
||||
/** the engine's judgement or search, one line per directory or program */
|
||||
@@ -665,6 +681,8 @@ export interface SeatListStatus {
|
||||
export interface SeatList {
|
||||
/** why the read failed, for seat-list-again */
|
||||
"error"?: string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the one line the engine says of it; empty when nothing waits */
|
||||
"health": string;
|
||||
"status": SeatListStatus;
|
||||
@@ -718,6 +736,8 @@ export interface Wait {
|
||||
"bound"?: string;
|
||||
/** the time the bound counts from (design 47 G 266, 269, 498) */
|
||||
"clock-from"?: string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** 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 */
|
||||
@@ -779,6 +799,8 @@ export interface RootFreeInput {
|
||||
|
||||
/** is what root-free answers. */
|
||||
export interface RootFreeAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** this machine's verdict */
|
||||
"machines": RootVerdict[];
|
||||
}
|
||||
@@ -819,6 +841,8 @@ export interface PackagesAnswerKey {
|
||||
|
||||
/** is what packages answers. */
|
||||
export interface PackagesAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the node's key as the bus holds it; absent when the engine wrote none */
|
||||
"key"?: PackagesAnswerKey;
|
||||
/** why the key could not be read */
|
||||
@@ -958,6 +982,8 @@ export interface CompositionAnswer {
|
||||
"composition": Revision;
|
||||
/** every resource that differs from what runs, when asked */
|
||||
"diff"?: Record<string, unknown>[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** what the module's have key says now; absent when it says nothing */
|
||||
"have"?: CompositionAnswerHave;
|
||||
/** the move from what runs to the composition read */
|
||||
@@ -996,6 +1022,8 @@ export interface CompositionDiffInput {
|
||||
|
||||
/** is what composition-diff answers. */
|
||||
export interface CompositionDiffAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the node */
|
||||
@@ -1031,6 +1059,8 @@ export interface ComposeAnswerPass {
|
||||
|
||||
/** is what compose answers. */
|
||||
export interface ComposeAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** how the pass went */
|
||||
"pass": ComposeAnswerPass;
|
||||
/** the module whose apply was tried again */
|
||||
@@ -1053,6 +1083,8 @@ export interface ComposeCandidateAnswer {
|
||||
"candidate": string;
|
||||
/** when asked with input and a call token: how many chunks of at most 512 KiB carry the composition input, sent on the chunk subject of the call, each acknowledged by the caller (design 47 G A-237b) */
|
||||
"chunks"?: number;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** when asked without a call token: the composition input it composed from, inline, up to what one answer carries (the checker's form, kept until G removes the checker, G-6 section 321) */
|
||||
"input"?: Record<string, unknown>;
|
||||
/** every module placed on the node, sorted by name */
|
||||
@@ -1076,6 +1108,8 @@ export interface ManifestReadsInput {
|
||||
|
||||
/** is what manifest-reads answers. */
|
||||
export interface ManifestReadsAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the reader capabilities its engine states: the manifest words, forms and seat names it reads; empty for an engine built before it said them, read as the baseline */
|
||||
"manifest-reads"?: string[];
|
||||
/** the node */
|
||||
@@ -1107,6 +1141,8 @@ export interface ApplyOrderAnswerOrderItem {
|
||||
|
||||
/** is what apply-order answers. */
|
||||
export interface ApplyOrderAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** one row per unapplied changed want, in the order it will be applied */
|
||||
"order": ApplyOrderAnswerOrderItem[];
|
||||
}
|
||||
@@ -1153,6 +1189,8 @@ export interface FirstViewsAnswer {
|
||||
"entries": FirstViewsAnswerEntriesItem[];
|
||||
/** one status per owner and state followed, as mesh-sdk's views runtime keeps it */
|
||||
"first-views": Record<string, unknown>[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the wants the node-engine keeps (design 47 G 683, 698) */
|
||||
"wants": FirstViewsAnswerWantsItem[];
|
||||
}
|
||||
@@ -1187,6 +1225,8 @@ export interface FirstViewAgainAnswerAsked {
|
||||
export interface FirstViewAgainAnswer {
|
||||
/** the hand ask written */
|
||||
"asked": FirstViewAgainAnswerAsked;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the verb that reads the status, first-views */
|
||||
"read": string;
|
||||
}
|
||||
@@ -1217,6 +1257,8 @@ export interface EntryAgainAnswerAsked {
|
||||
export interface EntryAgainAnswer {
|
||||
/** the hand ask written */
|
||||
"asked": EntryAgainAnswerAsked;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the verb that reads the status, first-views */
|
||||
"read": string;
|
||||
}
|
||||
@@ -1236,6 +1278,8 @@ export interface ConvergedInput {
|
||||
|
||||
/** is what converged answers. */
|
||||
export interface ConvergedAnswer {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the kind of the firewall found, for an adopted node */
|
||||
"found"?: string;
|
||||
/** the links of this node that face outside, as the engine classifies them for its filter render (ADR 0140); an allowance with no interface never opens one */
|
||||
@@ -1280,6 +1324,8 @@ export interface HaveByNodeModuleValue {
|
||||
/** the digest of the composition the node runs */
|
||||
"composed"?: string;
|
||||
"detail"?: string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the fingerprint held */
|
||||
"fp"?: string;
|
||||
"handed"?: AccountsHanded;
|
||||
@@ -1314,6 +1360,8 @@ export interface HaveByNodeNodeValue {
|
||||
"composes"?: string;
|
||||
"composes-why"?: string;
|
||||
"filters"?: Record<string, unknown>[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"profile"?: Record<string, unknown>;
|
||||
"record"?: NodeRecord;
|
||||
"sealed"?: string[];
|
||||
@@ -1329,6 +1377,8 @@ export interface ComposedByNodeModuleFingerprintValue {
|
||||
"data"?: boolean;
|
||||
/** the files the provisioner fills */
|
||||
"filled_files"?: string[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"fp": string;
|
||||
"module": string;
|
||||
"node": string;
|
||||
@@ -1349,6 +1399,8 @@ export interface ComposedByNodeNodeValue {
|
||||
"data"?: boolean;
|
||||
/** the files the provisioner fills */
|
||||
"filled_files"?: string[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"node": string;
|
||||
"own"?: NodeOwn;
|
||||
/** the declaration resources, each saying its module */
|
||||
@@ -1359,6 +1411,8 @@ export interface ComposedByNodeNodeValue {
|
||||
/** is one value of the state data under the key <node>.<module>. */
|
||||
export interface DataByNodeModuleValue {
|
||||
"digest": string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"items": PlacedDataItem[];
|
||||
"module": string;
|
||||
"node": string;
|
||||
@@ -1373,6 +1427,8 @@ export interface PackagesByNodeValuePackagesItem {
|
||||
|
||||
/** is one value of the state packages under the key <node>. */
|
||||
export interface PackagesByNodeValue {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"node": string;
|
||||
"packages": PackagesByNodeValuePackagesItem[];
|
||||
}
|
||||
@@ -1383,6 +1439,8 @@ export interface HealthByNodeValue {
|
||||
"at": string;
|
||||
"contract"?: number;
|
||||
"fallback"?: LoginFallback;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"found"?: NodeDirectory[];
|
||||
"network"?: NetworkHealth;
|
||||
"node": string;
|
||||
@@ -1400,6 +1458,8 @@ export interface FindingsByKeyValue {
|
||||
/** newest first, at most 10 */
|
||||
"evidence"?: FindingEvidence[];
|
||||
"explanation"?: string;
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"headline"?: string;
|
||||
/** scope.id.token */
|
||||
"key": string;
|
||||
@@ -1426,6 +1486,8 @@ export interface FindingsByKeyValue {
|
||||
|
||||
/** is one value of the state bounds under the key <what>.<id>. */
|
||||
export interface BoundsByWhatIDValue {
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
"module"?: string;
|
||||
/** when the wait began, RFC 3339 */
|
||||
"since": string;
|
||||
|
||||
Reference in New Issue
Block a user