MH-3: the apply order by rank, the revert, the backup holder and the bus module first, the engine's own module last
settle applies the changed wants in the order of design 47 H 771: the node's own composition, a reverted module, the holder of node-backup and the bus module (by the claims of the manifests the composer holds), each pipeline's wants by rank (older source first), the rest by name, the engine's own module last. A want of a higher rank waits on this machine alone for the lower ranks of its pipeline, held in its have as a wait of step placing and judged again at the next settle. The want's pipeline and rank are the mesh-delivery contract's stand-in until its commit. Builds: design 47 H §771; H-A-46, H-A-59, H-A-67, H-A-68 Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
@@ -1473,6 +1473,19 @@ func (c *Composer) HoldsData(_ context.Context, module string) (data, known bool
|
||||
return len(a.Manifest.DataItems()) > 0, true
|
||||
}
|
||||
|
||||
// Claims says whether the manifest of the build the node's want of module names claims the seat, and whether that manifest is
|
||||
// read: the holder of the seat node-backup and the bus module are applied first (design 47 H §771).
|
||||
func (c *Composer) Claims(_ context.Context, module, seat string) (claims, known bool) {
|
||||
c.mu.Lock()
|
||||
fp := c.wants[module].Fp
|
||||
c.mu.Unlock()
|
||||
a := c.runningManifest(c.env.Node, module, fp)
|
||||
if !a.Known {
|
||||
return false, false
|
||||
}
|
||||
return a.Manifest.ClaimsSeat(seat), true
|
||||
}
|
||||
|
||||
// taken is a module's manifest as this engine reads it (novox/hq ADR 0578 §3): decoded leniently, judging nothing, with
|
||||
// the indexer's verdict from the module's value (a missing one is accepted). held is why the module is held, "" when it is
|
||||
// not: a manifest the indexer refused, or one not read past a field this engine does not know. A field set aside is said
|
||||
|
||||
Reference in New Issue
Block a user