DC3b validate-verb: the seat mesh-wants gains the verb validate (form 4), the assigner's tool reaching the process
Builds: design 47 H2 H-A-684 (1), H-A-702, H-A-727
This commit is contained in:
@@ -14,13 +14,13 @@ const Seat = "mesh-wants"
|
||||
|
||||
// Form is the form of the seat's values, events and answers this contract was generated at (design 47 H2 §780):
|
||||
// a reader of a value of another form says "form N, this reader knows M".
|
||||
const Form = 3
|
||||
const Form = 4
|
||||
|
||||
// The forms and the digest of the fields this contract was generated from: the generator's compare fails a definition
|
||||
// whose fields changed while its forms did not (design 47 H2 §780).
|
||||
const (
|
||||
generatedForms = "3"
|
||||
generatedFieldsDigest = "Ask=6cb8b82e2fbe AskTakenEvent=6d5d3da7ac39 AsksByAssignmentsProposalValue=0bb5682c7b3b AsksByBackupNodeModuleFingerprintValue=0bb5682c7b3b AsksByHoldModuleFingerprintValue=0bb5682c7b3b AsksByOutsideNodeModuleFingerprintValue=0bb5682c7b3b AsksByRecordNodeModuleDigestValue=0bb5682c7b3b AsksByRestoreNodeModuleFingerprintValue=0bb5682c7b3b AsksByRevertNodeModuleFingerprintValue=0bb5682c7b3b AssignmentEntry=7d2549782eb2 AssignmentRevision=72c8701f7314 AssignmentRevisionCapabilitiesItem=0c89b0717762 AssignmentRevisionEvent=7faff968ce44 AssignmentRevisionsByCandidateGroupHeadsValue=8553b390118d AssignmentRevisionsByEntryDigestValue=4e5ee7a23e5b AssignmentRevisionsByTrunkRevisionValue=8553b390118d BusAnswer=7538f2f5e68e CatalogOf=7a4646fdbea7 Change=28d1f3c5cd32 ChangeAfterItem=30d718c21581 CompositionReader=5a943c1f8ef1 CompositionRun=2a08fc65e2d0 CompositionRunProgram=5a1202df3497 CompositionRunWaits=9cd147ddfc06 CompositionsAnswer=f8bca93c7f9c CompositionsByGroupHeadsValue=9428965fab8f CompositionsDropAnswer=52803700282a Difference=4011cff516b1 DifferenceAnswer=629237aa39f0 DifferenceEvent=49066d0dff6d DifferenceRefusedItem=0e9caa83ace7 DifferencesByNodeModuleValue=a22487ffadfd DropAnswer=7538f2f5e68e Edge=a71709025a08 EntryAnswer=05adebad70d6 Fill=80f442916429 FillingEvent=5bd4df78ed84 FullEvent=5bd4df78ed84 Held=15abbd6a1a33 HeldCandidate=04872f6afbfa InputAnswer=cd41ee65565d KeepNowAnswer=9962ab9fc051 NodeEntryRef=3888ae847653 NotRunning=279b628db0ec PipelineWanted=e1e379c21e59 PipelineWantedEvent=59946b31ab7d PolicyChangedEvent=7538f2f5e68e RevisionAnswer=39002c770cbd RoomEvent=5bd4df78ed84 Shared=c981cf6aa860 SharedAskedBy=c9b30cc4d0d0 StepAccept=18efeefb6c34 StepEnded=edd08ab1a18b StepEndedEvent=207787118dac StepProgressEvent=8215e490ea8d StepRun=b975f402601a UpgradeAnswer=7538f2f5e68e Wait=951500be820c WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0 WantedEvent=58cf7a9f646b WantsByHeldModuleFingerprintValue=ff14aa998a5d WantsByWantNodeModuleValue=ab7c6799fd5d WantsByWantNodeNodeValue=a737a2108d53"
|
||||
generatedForms = "4"
|
||||
generatedFieldsDigest = "Ask=6cb8b82e2fbe AskTakenEvent=6d5d3da7ac39 AsksByAssignmentsProposalValue=0bb5682c7b3b AsksByBackupNodeModuleFingerprintValue=0bb5682c7b3b AsksByHoldModuleFingerprintValue=0bb5682c7b3b AsksByOutsideNodeModuleFingerprintValue=0bb5682c7b3b AsksByRecordNodeModuleDigestValue=0bb5682c7b3b AsksByRestoreNodeModuleFingerprintValue=0bb5682c7b3b AsksByRevertNodeModuleFingerprintValue=0bb5682c7b3b AssignmentEntry=7d2549782eb2 AssignmentRevision=72c8701f7314 AssignmentRevisionCapabilitiesItem=0c89b0717762 AssignmentRevisionEvent=7faff968ce44 AssignmentRevisionsByCandidateGroupHeadsValue=8553b390118d AssignmentRevisionsByEntryDigestValue=4e5ee7a23e5b AssignmentRevisionsByTrunkRevisionValue=8553b390118d BusAnswer=7538f2f5e68e CatalogOf=7a4646fdbea7 Change=28d1f3c5cd32 ChangeAfterItem=30d718c21581 CompositionReader=5a943c1f8ef1 CompositionRun=2a08fc65e2d0 CompositionRunProgram=5a1202df3497 CompositionRunWaits=9cd147ddfc06 CompositionsAnswer=f8bca93c7f9c CompositionsByGroupHeadsValue=9428965fab8f CompositionsDropAnswer=52803700282a Difference=4011cff516b1 DifferenceAnswer=629237aa39f0 DifferenceEvent=49066d0dff6d DifferenceRefusedItem=0e9caa83ace7 DifferencesByNodeModuleValue=a22487ffadfd DropAnswer=7538f2f5e68e Edge=a71709025a08 EntryAnswer=05adebad70d6 Fill=80f442916429 FillingEvent=5bd4df78ed84 FullEvent=5bd4df78ed84 Held=15abbd6a1a33 HeldCandidate=04872f6afbfa InputAnswer=cd41ee65565d KeepNowAnswer=9962ab9fc051 NodeEntryRef=3888ae847653 NotRunning=279b628db0ec PipelineWanted=e1e379c21e59 PipelineWantedEvent=59946b31ab7d PolicyChangedEvent=7538f2f5e68e RevisionAnswer=39002c770cbd RoomEvent=5bd4df78ed84 Shared=c981cf6aa860 SharedAskedBy=c9b30cc4d0d0 StepAccept=18efeefb6c34 StepEnded=edd08ab1a18b StepEndedEvent=207787118dac StepProgressEvent=8215e490ea8d StepRun=b975f402601a UpgradeAnswer=7538f2f5e68e ValidateAnswer=484ec1cfda14 ValidateAnswerProblemsItem=728518b4dc83 Wait=951500be820c WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0 WantedEvent=58cf7a9f646b WantsByHeldModuleFingerprintValue=ff14aa998a5d WantsByWantNodeModuleValue=ab7c6799fd5d WantsByWantNodeNodeValue=a737a2108d53"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -32,6 +32,7 @@ const (
|
||||
VerbInput = "input"
|
||||
VerbCompositions = "compositions"
|
||||
VerbCompositionsDrop = "compositions-drop"
|
||||
VerbValidate = "validate"
|
||||
VerbKeepNow = "keep-now"
|
||||
VerbDrop = "drop"
|
||||
)
|
||||
@@ -58,7 +59,7 @@ const (
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbUpgrade, VerbBus, VerbRevision, VerbEntry, VerbDifference, VerbInput, VerbCompositions, VerbCompositionsDrop, VerbKeepNow, VerbDrop}
|
||||
return []string{VerbUpgrade, VerbBus, VerbRevision, VerbEntry, VerbDifference, VerbInput, VerbCompositions, VerbCompositionsDrop, VerbValidate, VerbKeepNow, VerbDrop}
|
||||
}
|
||||
|
||||
// VerbDescription is a verb's description as the seat's definition says it, "" for a verb the seat does not serve or
|
||||
@@ -81,6 +82,8 @@ func VerbDescription(verb string) string {
|
||||
return "Each composition run the assigner keeps (design 47 G §728): its program, input digest, ask, readers, outcome and verdict, and the state's fill against its cap; with candidate or machine, only those."
|
||||
case VerbCompositionsDrop:
|
||||
return "Drop one composition run by hand (design 47 G §728): the act and why are written in the hand-act log first, then the run's ask is dropped, each reader ended could not run naming the drop, and the key deleted."
|
||||
case VerbValidate:
|
||||
return "Judge a pipeline's candidate on request, the manifest validator's verdict of its manifests: the act and why are written in the hand-act log first, then the candidate's validate run, keyed <pipeline>.validate, is joined or started with the step's own code, so a validate step asked later joins it and builds no second manifest validator. It answers the run as it stands: running with its start, or its end: passed; failed cycle naming the cycle; failed manifest-refused with every problem per manifest, those counted and those the case before holds too; could-not-run with why. It writes no want and ends no step (design 47 H2 H-A-684 (1), H-A-702, H-A-727)."
|
||||
case VerbKeepNow:
|
||||
return "Keep the assignment graph's revisions now, by hand (design 47 H2 §813 (2); H-A-417): written in the hand-act log first by the module's tool assigner_keep_now, then the keeping runs at once on the pass's newest computed revision; answers the revision kept, or the fault the keeping met."
|
||||
case VerbDrop:
|
||||
@@ -1287,6 +1290,60 @@ type CompositionsDropAnswer struct {
|
||||
Run CompositionRun `json:"run"`
|
||||
}
|
||||
|
||||
// ValidateInput is what validate takes.
|
||||
type ValidateInput struct {
|
||||
// the candidate's key as mesh-pipeline-runner.show names it: <branch>.<revision>, or run-<id> for a run on request
|
||||
Candidate string `json:"candidate,omitempty"`
|
||||
// narrows the answer to this module's manifest
|
||||
Module string `json:"module,omitempty"`
|
||||
// a pipeline's key as the runner names it, a delivering pipeline's or a run on request's
|
||||
Pipeline string `json:"pipeline"`
|
||||
// why, written with the caller the runtime proves in the hand-act log
|
||||
Why string `json:"why"`
|
||||
}
|
||||
|
||||
// ValidateAnswerProblemsItem is a type of the contract.
|
||||
type ValidateAnswerProblemsItem struct {
|
||||
// the case before holds it too, so the candidate does not cause it
|
||||
Before bool `json:"before"`
|
||||
Module string `json:"module"`
|
||||
Problem string `json:"problem"`
|
||||
}
|
||||
|
||||
// ValidateAnswer is what validate answers.
|
||||
type ValidateAnswer struct {
|
||||
// for failed cycle, the artifacts the cycle passes through
|
||||
Cycle []string `json:"cycle,omitempty"`
|
||||
// is the form of what this value carries, left out while it is 1 (design 47 H2 §780).
|
||||
Form int64 `json:"form,omitempty"`
|
||||
// the run's state: running, or its end
|
||||
Outcome string `json:"outcome"`
|
||||
// for failed manifest-refused, every problem per manifest, those counted and those the case before holds too
|
||||
Problems []ValidateAnswerProblemsItem `json:"problems,omitempty"`
|
||||
// for failed, which
|
||||
Reason string `json:"reason,omitempty"`
|
||||
// the validate run as it stands
|
||||
Run *CompositionRun `json:"run,omitempty"`
|
||||
// when the run started, while it runs
|
||||
Started *time.Time `json:"started,omitempty"`
|
||||
// for could-not-run, why
|
||||
Why string `json:"why,omitempty"`
|
||||
}
|
||||
|
||||
// The values of ValidateAnswer's outcome.
|
||||
const (
|
||||
ValidateAnswerOutcomeRunning = "running"
|
||||
ValidateAnswerOutcomePassed = "passed"
|
||||
ValidateAnswerOutcomeFailed = "failed"
|
||||
ValidateAnswerOutcomeCouldNotRun = "could-not-run"
|
||||
)
|
||||
|
||||
// The values of ValidateAnswer's reason.
|
||||
const (
|
||||
ValidateAnswerReasonCycle = "cycle"
|
||||
ValidateAnswerReasonManifestRefused = "manifest-refused"
|
||||
)
|
||||
|
||||
// KeepNowInput is what keep-now takes.
|
||||
type KeepNowInput struct {
|
||||
// why the keeping runs now
|
||||
@@ -1614,6 +1671,15 @@ func DecodeCompositionsDropAnswer(raw []byte) (CompositionsDropAnswer, int, erro
|
||||
return v, formRead(raw), nil
|
||||
}
|
||||
|
||||
// DecodeValidateAnswer reads a ValidateAnswer as another part wrote it: a field this reader does not know is left unread, never refused; the form read is answered, 1 when absent (design 47 H2 §780).
|
||||
func DecodeValidateAnswer(raw []byte) (ValidateAnswer, int, error) {
|
||||
var v ValidateAnswer
|
||||
if err := json.Unmarshal(raw, &v); err != nil {
|
||||
return v, 0, err
|
||||
}
|
||||
return v, formRead(raw), nil
|
||||
}
|
||||
|
||||
// DecodeKeepNowAnswer reads a KeepNowAnswer as another part wrote it: a field this reader does not know is left unread, never refused; the form read is answered, 1 when absent (design 47 H2 §780).
|
||||
func DecodeKeepNowAnswer(raw []byte) (KeepNowAnswer, int, error) {
|
||||
var v KeepNowAnswer
|
||||
|
||||
@@ -163,6 +163,12 @@ func TestFixtures(t *testing.T) {
|
||||
decode: func(b []byte) (any, error) { var v CompositionsDropInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||
{name: "C1 compositions-drop answers the run it deleted and the readers it ended", subject: "", given: "{\"ended\":[{\"branch\":\"main\",\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"id\":\"m2kx9a1b3c4d6c\",\"module\":\"nats\",\"pipeline\":\"main.12.nats\",\"revision\":12,\"step\":\"composition\"}],\"run\":{\"ask\":\"r1a2b3\",\"candidate\":\"main.12\",\"ended\":\"2026-11-17T10:03:00Z\",\"input\":\"sha256:0123\",\"key\":\"main.12.anchor\",\"machine\":\"anchor\",\"outcome\":\"passed\",\"program\":{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"directory\":\"cmd/mesh-compose\",\"fingerprint\":\"src2:aaaa\",\"repository\":\"novox/mesh-host\"},\"readers\":[{\"branch\":\"main\",\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"id\":\"m2kx9a1b3c4d6c\",\"module\":\"nats\",\"pipeline\":\"main.12.nats\",\"revision\":12,\"step\":\"composition\"}],\"started\":\"2026-11-17T10:00:00Z\",\"verdict\":{\"blamed\":[],\"composes\":true}}}", wire: "{\"ended\":[{\"branch\":\"main\",\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"id\":\"m2kx9a1b3c4d6c\",\"module\":\"nats\",\"pipeline\":\"main.12.nats\",\"revision\":12,\"step\":\"composition\"}],\"run\":{\"ask\":\"r1a2b3\",\"candidate\":\"main.12\",\"ended\":\"2026-11-17T10:03:00Z\",\"input\":\"sha256:0123\",\"key\":\"main.12.anchor\",\"machine\":\"anchor\",\"outcome\":\"passed\",\"program\":{\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"directory\":\"cmd/mesh-compose\",\"fingerprint\":\"src2:aaaa\",\"repository\":\"novox/mesh-host\"},\"readers\":[{\"branch\":\"main\",\"commit\":\"0123456789abcdef0123456789abcdef01234567\",\"fingerprint\":\"fp-0123\",\"id\":\"m2kx9a1b3c4d6c\",\"module\":\"nats\",\"pipeline\":\"main.12.nats\",\"revision\":12,\"step\":\"composition\"}],\"started\":\"2026-11-17T10:00:00Z\",\"verdict\":{\"blamed\":[],\"composes\":true}}}",
|
||||
decode: func(b []byte) (any, error) { var v CompositionsDropAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||
{name: "validate asked for a pipeline's candidate", subject: "", given: "{\"candidate\":\"main.12\",\"pipeline\":\"main.3589\",\"why\":\"a manifest changed by a fix has no verdict before its merge\"}", wire: "{\"candidate\":\"main.12\",\"pipeline\":\"main.3589\",\"why\":\"a manifest changed by a fix has no verdict before its merge\"}",
|
||||
decode: func(b []byte) (any, error) { var v ValidateInput; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||
{name: "validate answers a failed run naming a problem the case before holds too", subject: "", given: "{\"outcome\":\"failed\",\"problems\":[{\"before\":true,\"module\":\"nats\",\"problem\":\"a state asks more than 64 MiB\"}],\"reason\":\"manifest-refused\"}", wire: "{\"outcome\":\"failed\",\"problems\":[{\"before\":true,\"module\":\"nats\",\"problem\":\"a state asks more than 64 MiB\"}],\"reason\":\"manifest-refused\"}",
|
||||
decode: func(b []byte) (any, error) { var v ValidateAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||
{name: "validate answers a run still running", subject: "", given: "{\"outcome\":\"running\",\"started\":\"2026-11-25T17:00:00Z\"}", wire: "{\"outcome\":\"running\",\"started\":\"2026-11-25T17:00:00Z\"}",
|
||||
decode: func(b []byte) (any, error) { var v ValidateAnswer; err := json.Unmarshal(b, &v); return v, err }, subjectIs: nil},
|
||||
}
|
||||
for _, c := range cases {
|
||||
v, err := c.decode([]byte(c.given))
|
||||
|
||||
@@ -296,5 +296,37 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "validate asked for a pipeline's candidate",
|
||||
"of": "verb:validate.input",
|
||||
"given": {
|
||||
"pipeline": "main.3589",
|
||||
"candidate": "main.12",
|
||||
"why": "a manifest changed by a fix has no verdict before its merge"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "validate answers a failed run naming a problem the case before holds too",
|
||||
"of": "verb:validate.answer",
|
||||
"given": {
|
||||
"outcome": "failed",
|
||||
"reason": "manifest-refused",
|
||||
"problems": [
|
||||
{
|
||||
"module": "nats",
|
||||
"problem": "a state asks more than 64 MiB",
|
||||
"before": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "validate answers a run still running",
|
||||
"of": "verb:validate.answer",
|
||||
"given": {
|
||||
"outcome": "running",
|
||||
"started": "2026-11-25T17:00:00Z"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -278,6 +278,106 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "validate",
|
||||
"class": "act",
|
||||
"description": "Judge a pipeline's candidate on request, the manifest validator's verdict of its manifests: the act and why are written in the hand-act log first, then the candidate's validate run, keyed <pipeline>.validate, is joined or started with the step's own code, so a validate step asked later joins it and builds no second manifest validator. It answers the run as it stands: running with its start, or its end: passed; failed cycle naming the cycle; failed manifest-refused with every problem per manifest, those counted and those the case before holds too; could-not-run with why. It writes no want and ends no step (design 47 H2 H-A-684 (1), H-A-702, H-A-727).",
|
||||
"input": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pipeline": {
|
||||
"type": "string",
|
||||
"description": "a pipeline's key as the runner names it, a delivering pipeline's or a run on request's"
|
||||
},
|
||||
"module": {
|
||||
"type": "string",
|
||||
"description": "narrows the answer to this module's manifest"
|
||||
},
|
||||
"candidate": {
|
||||
"type": "string",
|
||||
"description": "the candidate's key as mesh-pipeline-runner.show names it: <branch>.<revision>, or run-<id> for a run on request"
|
||||
},
|
||||
"why": {
|
||||
"type": "string",
|
||||
"description": "why, written with the caller the runtime proves in the hand-act log"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"pipeline",
|
||||
"why"
|
||||
]
|
||||
},
|
||||
"answer": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"run": {
|
||||
"$ref": "#/defs/CompositionRun",
|
||||
"description": "the validate run as it stands"
|
||||
},
|
||||
"outcome": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"running",
|
||||
"passed",
|
||||
"failed",
|
||||
"could-not-run"
|
||||
],
|
||||
"description": "the run's state: running, or its end"
|
||||
},
|
||||
"started": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "when the run started, while it runs"
|
||||
},
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"cycle",
|
||||
"manifest-refused"
|
||||
],
|
||||
"description": "for failed, which"
|
||||
},
|
||||
"cycle": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "for failed cycle, the artifacts the cycle passes through"
|
||||
},
|
||||
"problems": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"module": {
|
||||
"type": "string"
|
||||
},
|
||||
"problem": {
|
||||
"type": "string"
|
||||
},
|
||||
"before": {
|
||||
"type": "boolean",
|
||||
"description": "the case before holds it too, so the candidate does not cause it"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"module",
|
||||
"problem",
|
||||
"before"
|
||||
]
|
||||
},
|
||||
"description": "for failed manifest-refused, every problem per manifest, those counted and those the case before holds too"
|
||||
},
|
||||
"why": {
|
||||
"type": "string",
|
||||
"description": "for could-not-run, why"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"outcome"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "keep-now",
|
||||
"description": "Keep the assignment graph's revisions now, by hand (design 47 H2 §813 (2); H-A-417): written in the hand-act log first by the module's tool assigner_keep_now, then the keeping runs at once on the pass's newest computed revision; answers the revision kept, or the fault the keeping met.",
|
||||
@@ -1910,5 +2010,5 @@
|
||||
"on": "every"
|
||||
}
|
||||
],
|
||||
"form": 3
|
||||
"form": 4
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ export declare const verbs: {
|
||||
readonly input: "input";
|
||||
readonly compositions: "compositions";
|
||||
readonly compositionsDrop: "compositions-drop";
|
||||
readonly validate: "validate";
|
||||
readonly keepNow: "keep-now";
|
||||
readonly drop: "drop";
|
||||
};
|
||||
@@ -685,6 +686,45 @@ export interface CompositionsDropAnswer {
|
||||
"run": CompositionRun;
|
||||
}
|
||||
|
||||
/** is what validate takes. */
|
||||
export interface ValidateInput {
|
||||
/** the candidate's key as mesh-pipeline-runner.show names it: <branch>.<revision>, or run-<id> for a run on request */
|
||||
"candidate"?: string;
|
||||
/** narrows the answer to this module's manifest */
|
||||
"module"?: string;
|
||||
/** a pipeline's key as the runner names it, a delivering pipeline's or a run on request's */
|
||||
"pipeline": string;
|
||||
/** why, written with the caller the runtime proves in the hand-act log */
|
||||
"why": string;
|
||||
}
|
||||
|
||||
export interface ValidateAnswerProblemsItem {
|
||||
/** the case before holds it too, so the candidate does not cause it */
|
||||
"before": boolean;
|
||||
"module": string;
|
||||
"problem": string;
|
||||
}
|
||||
|
||||
/** is what validate answers. */
|
||||
export interface ValidateAnswer {
|
||||
/** for failed cycle, the artifacts the cycle passes through */
|
||||
"cycle"?: string[];
|
||||
/** is the form of what this value carries, left out while it is 1 (design 47 H2 §780). */
|
||||
"form"?: number;
|
||||
/** the run's state: running, or its end */
|
||||
"outcome": "running" | "passed" | "failed" | "could-not-run";
|
||||
/** for failed manifest-refused, every problem per manifest, those counted and those the case before holds too */
|
||||
"problems"?: ValidateAnswerProblemsItem[];
|
||||
/** for failed, which */
|
||||
"reason"?: "cycle" | "manifest-refused";
|
||||
/** the validate run as it stands */
|
||||
"run"?: CompositionRun;
|
||||
/** when the run started, while it runs */
|
||||
"started"?: string;
|
||||
/** for could-not-run, why */
|
||||
"why"?: string;
|
||||
}
|
||||
|
||||
/** is what keep-now takes. */
|
||||
export interface KeepNowInput {
|
||||
/** why the keeping runs now */
|
||||
|
||||
@@ -13,6 +13,7 @@ export const verbs = {
|
||||
input: "input",
|
||||
compositions: "compositions",
|
||||
compositionsDrop: "compositions-drop",
|
||||
validate: "validate",
|
||||
keepNow: "keep-now",
|
||||
drop: "drop",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user