A-316: the assigner's candidate gains added, the version and parts the want it would write carries
The state candidates' value (CandidatesByProposalNodeValue) gains `added`, by module name, each an AddedModule with `version` and `parts` in the want's own forms. It is a copy of the two properties of the seat mesh-wants' state wants, because the seat-definition format cannot reuse another repository's seat's forms (includes take only parts/ of the same repository, and a part holds no state value); a fixture holds both to the want's wire. Regenerated with seatgen. The node names the first round-2 pass left in fixtures lines equal to base lines are role names now, the generated tests with them. Builds: design 47 G A-316 (corrected, hq #594), §626 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
+10
@@ -86,6 +86,14 @@ export declare function seatHoldersBySeatNodeKey(seat: string, node: string): st
|
||||
/** The parts of a key of the form "<seat>.<node>", or undefined for a key of another form. */
|
||||
export declare function parseSeatHoldersBySeatNodeKey(_key: string): { seat: string; node: string } | undefined;
|
||||
|
||||
/** what the want a candidate would write for a module carries of its build, in the want's own forms (the seat mesh-wants' state wants: `version` and `parts`; copied here because a seat definition cannot reuse another repository's seat's forms, design 47 G A-316) */
|
||||
export interface AddedModule {
|
||||
/** the digest of each of the module's parts, by `<module>:<artifact>` (design 47 G section 379) */
|
||||
"parts"?: Record<string, string>;
|
||||
/** the module's released version, for people; none for a build of another watched branch (design 47 G section 379) */
|
||||
"version"?: string;
|
||||
}
|
||||
|
||||
/** one node's assignments assembled */
|
||||
export interface Assignments {
|
||||
"decided": NodeDecided;
|
||||
@@ -415,6 +423,8 @@ export type ProposalsByProposalValue = Proposal;
|
||||
|
||||
/** is one value of the state candidates under the key <proposal>.<node>. */
|
||||
export interface CandidatesByProposalNodeValue {
|
||||
/** by module name, each module the candidate adds to this node without a want there: the `version` and `parts` the want it would write carries (design 47 G A-316); the node-engine builds such a module from this entry */
|
||||
"added"?: Record<string, AddedModule>;
|
||||
/** the node's assignments with the proposal laid over it; absent when the proposal takes its key away */
|
||||
"assignments"?: Assignments;
|
||||
"proposal": string;
|
||||
|
||||
Reference in New Issue
Block a user