feat(FN-4625): complete Step 2 — add worktrunk failure handler

Fusion-Task-Id: FN-4625
Fusion-Task-Lineage: c1d9b414-b5dd-4786-ba51-0b8adec4acf5
This commit is contained in:
Fusion (runfusion.ai)
2026-05-15 20:33:06 -07:00
committed by gsxdsm
parent 296203443b
commit 0da21bb880
2 changed files with 150 additions and 0 deletions

View File

@@ -1359,6 +1359,15 @@ export interface Task {
pausedReason?: string;
/** ISO timestamp set when the task first crossed the soft token budget cap. */
tokenBudgetSoftAlertedAt?: string;
/** ISO timestamp marking first one-shot alert when worktrunk failed and fell back to native backend. */
worktrunkFallbackAlertedAt?: string;
/** Structured details for a fail-hard worktrunk operation failure. */
worktrunkFailure?: {
op: "create" | "sync" | "prune" | "remove" | "install" | "resolve-binary";
stderr?: string;
exitCode?: number | null;
attemptedAt: string;
};
/** ISO timestamp set when the task first crossed the hard token budget cap. */
tokenBudgetHardAlertedAt?: string;
/** Optional per-task budget override set by an operator on resume. */