The input a node answers a check with says what holds each held module and carries its build (issue 1921, milestone 47/G H3)
A module the running indexer refused stood in the input as its stub with no build, so a check's composer that judges the change's manifest itself had nothing to compose it at. Each held module now says whether its verdict or the decoder holds it; for a check's answer the node also takes in the build it would compose it at, when the builder holds it done, beside the stub and never into what the node composes. Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
@@ -114,11 +114,36 @@ type Input struct {
|
||||
// (compose.Stub), so it is held: nothing of its own is composed, while what it provides and requires still shapes the
|
||||
// rest. A module not named is accepted, a missing verdict included.
|
||||
Refused map[string]string `json:",omitempty"`
|
||||
// Holds is, by module Refused names, what holds it and the build its node would compose it at (issue 1921): a check's
|
||||
// composer that judges the change's manifest itself (novox/hq ADR 0578 §2) composes a module refused by the running
|
||||
// indexer alone from that build, and names one whose build it is not given. Nil from a node-engine before it.
|
||||
Holds map[string]Hold `json:",omitempty"`
|
||||
// SetAside is each module whose manifest has a field the reader's decoder does not know, by module, with what was set
|
||||
// aside (catalogue.Manifest.SetAside): the rest of it is composed, and the reader names it (ADR 0578 §6).
|
||||
SetAside map[string]string `json:",omitempty"`
|
||||
}
|
||||
|
||||
// What holds a module Refused names (Hold.By).
|
||||
const (
|
||||
// HeldByVerdict is a module the indexer's judge refused the manifest of (its verdict).
|
||||
HeldByVerdict = "verdict"
|
||||
// HeldByDecoder is a module whose bytes this reader's decoder does not decode, or cannot read past a field it does not
|
||||
// know: no judge of the manifest overrules it.
|
||||
HeldByDecoder = "decoder"
|
||||
)
|
||||
|
||||
// Hold is what holds one module Refused names, and the build its node would compose it at (Input.Holds).
|
||||
type Hold struct {
|
||||
// By is HeldByVerdict or HeldByDecoder.
|
||||
By string
|
||||
// Build is the fingerprint the node would compose it at, its want's or else the indexer's newest; empty where it is not
|
||||
// placed on the composing node or names no build.
|
||||
Build string `json:",omitempty"`
|
||||
// Built is its manifest as the node takes it in from that build, when the builder holds it done; nil while that build
|
||||
// is awaited (or not asked: only a node's answer to a check asks it).
|
||||
Built *catalogue.Manifest `json:",omitempty"`
|
||||
}
|
||||
|
||||
// Issued is one pair credential made for a consumer of a provider (inv.Secret): ForProvider is its copy sealed to the
|
||||
// provider, optional.
|
||||
type Issued struct {
|
||||
|
||||
Reference in New Issue
Block a user