deepseek-ai/deepseek-harness · error · ScheduleLogError
corrupt_schedule_log
corrupt_schedule_log
Error message
every acceptedAt must be a representable four-digit-year instant
What it means
Error "every acceptedAt must be a representable four-digit-year instant" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/schedule/schedule/src/domain.ts:528
}
}
/**
* Resolve one fixed-rate decision without enumerating missed occurrences.
* @param record - Active record whose target is the earliest unaccepted occurrence.
* @param acceptedAt - Wall-clock decision time in epoch milliseconds.
* @returns The latest due occurrence and first strictly future target, if representable.
*/
export function resolveEveryOccurrence(
record: EveryScheduleRecord,
acceptedAt: number,
): EveryOccurrence {
const target = Date.parse(record.scheduledAt)
const interval = record.everySeconds * 1_000
if (!Number.isSafeInteger(acceptedAt)
|| acceptedAt < MIN_FOUR_DIGIT_YEAR_MS
|| acceptedAt > MAX_FOUR_DIGIT_YEAR_MS) {
throw new ScheduleLogError('every acceptedAt must be a representable four-digit-year instant')
}
if (!Number.isSafeInteger(interval) || interval <= 0) {
throw new ScheduleLogError('every interval milliseconds must be a positive safe integer')
}
if (acceptedAt < target) {
throw new ScheduleLogError('every dispatch cannot precede the active scheduledAt')
}
const steps = Math.floor((acceptedAt - target) / interval)
const occurrence = target + steps * interval
/* v8 ignore next -- bounded operands and a quotient-derived product stay safe. */
if (!Number.isSafeInteger(occurrence) || occurrence < target || occurrence > acceptedAt) {
throw new ScheduleLogError('every occurrence arithmetic must stay within the accepted interval')
}
const occurrenceAt = new Date(occurrence).toISOString()
const next = occurrence + interval
if (!Number.isSafeInteger(next) || next > MAX_FOUR_DIGIT_YEAR_MS) {
return Object.freeze({ occurrenceAt })
}View on GitHub (pinned to b150a551b8)
Solutions
- Fix every acceptedAt entry to a representable four-digit-year instant.
When it happens
Trigger: Thrown at packages/schedule/schedule/src/domain.ts:528 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/983b3095e63c61b2.
Report an issue: GitHub.