MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / Unit

Interface Unit

src/orchestration/partition.ts:58–63  ·  view source on GitHub ↗

A coupling-unit: one standalone item, or several coupled items fused together.

Source from the content-addressed store, hash-verified

56
57/** A coupling-unit: one standalone item, or several coupled items fused together. */
58interface Unit<T> {
59 key: string; // coupledKey, or the lone item's id
60 weight: number;
61 members: WorkItem<T>[];
62 order: number; // first-appearance index, for deterministic tie-breaks
63}
64
65function sanitizeWeight(w: number | undefined): number {
66 return typeof w === 'number' && Number.isFinite(w) && w > 0 ? w : 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected