contractParamsObject
The contractParams object defines contract properties, typically pre-declared via a define in the
domain parameter file.
{
"key": <string>,
"calloutCost": <real>,
"baseTimeIgnoreContingencyMode": NONE | LAST | ALL,
"helix": helixObject | null,
}
-
keystring - Unique identifier for contract reference.
-
clonecontractParamsKey - Inherit values from an existing contract.
-
minRestPeriodtimeIntervaldefault0 - Minimum rest before the next shift.
-
maxShiftPeriodtimeInterval - Maximum total shift duration.
-
breakbreakObject - The contract's break rules: the standard break, its window in worked time and how the resource takes it. null = breaks are not managed for this contract. Replaces maxWorkPeriod and breakLength, which Spiral 2.5.6 rejects.
-
timeGranularitytimeIntervaldefault1 min - Minimum timing accuracy (≥ 1 second).
-
paypayObject - Available pay types for duties.
-
dutydutyObject - Assignable duties for contract resources.
-
protectSignofftimeIntervaldefault0 - Window treating signoff-proximal work as voluntary.
-
calloutDelaytimeIntervaldefault10 min - Estimated delay when activating standby.
-
calloutCostrealdefault0.0 - Cost for standby activation.
-
canStandDownAftertimeInterval - Minimum worked time before an early finish (stand-down).
-
baseTimeIgnoreContingencyModeNONE | LAST | ALLdefaultNONE - Contingency inclusion strategy.
-
helixhelixObject - Helix extension block (ignored by Spiral). Standard property: callout.answer (timeInterval, optional) — the standby callout answer window for this contract's resources. Silence past the window is treated as a refusal (recorded as timeout); absent means Helix runs no timer and the external host owns callout timing. The rest of the callout process is configured on the resource type (resourceParams rosterStop.STBY.helix.callout) — the contract holds only the terms.
Breaks
Section titled “Breaks”A contract’s breaks are described by one break object rather than by maxWorkPeriod and breakLength: the
standard break, an optional mini, the window of worked time in which the break must start, and how the resource
is taken to it. The host still supplies the break stop; Spiral places it in the window. See
breakObject.