Files
mesh-host/internal/judge/aliases.go
T
jschoubben 8717ec76d4 The node-engine follows the module-assignment seat: assignments, not placement; the seat's packages move to mesh-contracts and mesh-delivery (issue 1966)
The state, events and types of the seat mesh-module-assigner say assignments; the legacy node key form is gone from the
reads; the dead seat-verb list of the retired name is deleted. The placement guard and the placed-file sense stay.

Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
2026-11-05 22:08:40 +01:00

29 lines
1.2 KiB
Go

// Package judge is the node-engine's judgement of a move (novox/hq ADR 0377 §3, ADR 0547 §3): what moving a module from
// the composition it runs to a new one does, and how a assignment candidate's answer is fitted to the node's key. It
// moved here from mesh-sdk's delivery package (novox/hq ADR 0593 §1, §7), since only the node-engine judges a move;
// the shapes it judges (a composition, a judgement's words, a candidate's answer) stay in mesh-sdk.
package judge
import (
"git.novox.be/novox/mesh-contracts/go/clients/nodeengineclient"
nodeengine "git.novox.be/novox/mesh-contracts/go/seats/nodeengine"
engcomp "github.com/novox/mesh-host/internal/compositions"
)
// The shapes of mesh-sdk's delivery package this package judges, by the names its code was written with.
type (
Composed = engcomp.Composed
Judgement = string
CandidateAnswer = nodeengine.CandidateAnswer
ModuleDiffers = nodeengine.CandidateDiffers
ResourceBodies = nodeengine.CandidateBodies
)
const (
JudgedRecreates = nodeengineclient.JudgedRecreates
JudgedMovesData = nodeengineclient.JudgedMovesData
JudgedNeither = "neither"
JudgedCannot = nodeengineclient.JudgedCannot
JudgedUnchanged = "unchanged"
)