Skip to content

Commit e235cde

Browse files
authored
fix(scheduler): fence Python follow-ups on superseded heartbeat receipts (#8647)
* fix(scheduler): keep damaged history behind one receipt fence The Python compatibility route and the native owner now agree on a single freshness rule. A damaged row can no longer retire a valid ACK or failure return, a committed successor still blocks an older return when only its summary rotted, and the originating Turn plus Goal instance scope decide both before the write and again under the state lock. Re-applied on top of the merged #8708 minimal passthrough. This commit keeps only the extra hardening: tolerant scheduler reads with strict settlement and status reads, committed-successor scope proof, instance-range checks, and the lock-time re-read before replay. Verified on the current base with the six TypeScript suites (248 tests), the control-plane type check, and the Python receipt-fence (30), follow-up hint transport, single-request and rollout-log suites (53). The merged #8708 regression file passes 17 tests on the same tree. Windows, the installed host UI, PostgreSQL and hosted CI were not exercised. Signed-off-by: gcl-coder <gcl-coder@users.noreply.github.com> * fix(scheduler): read an unreadable successor identity as superseding A committed quota_should_run row can lose one byte of a nested display string (the opening or closing quote of a details value) while every identity member and the terminating newline stay intact. The tolerant scanner resynchronised on the next plausible quote, swallowed the members that followed the damaged nested value and reported the row as unrelated, so an older heartbeat return regained write authority and both compatibility commands wrote again. Receipt recovery now keeps the row's container state while it reads members. A damaged byte where a value must start is that value's opening quote; a damaged byte inside a string is the lost closing quote only when the separator its role requires follows it, and a lost key name is reported as such. Recovery also reports whether a separator or boundary was unknowable. A same-scope row whose identity cannot be attributed now answers "unknown", and the freshness check treats "cannot prove the successor is unrelated" as stale. Rows whose readable identity proves another Agent, another Goal lifetime or another event kind stay tolerated, and a diagnostic row with all key names intact still cannot supersede a Turn. Verified with real File and SQLite scheduler-ack-current and scheduler-fail-current commands: opening-quote, closing-quote and in-text damage of a committed turn-2 receipt all exit 1 with heartbeat_receipt_stale, scheduler_state_mutated=false and unchanged log bytes, while another Agent's damaged row still lets the current turn write. TypeScript receipt log, commit, followup and CLI suites pass; the Python receipt-fence suite passes on File and SQLite; control-plane typecheck passes. Windows, hosted UI and hosted CI were not exercised here. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> * fix(scheduler): keep a duplicated scope identity from hiding a successor A stray rewrite can repeat a top-level scope member of an already committed quota_should_run receipt (for example agent_id) while the only damaged byte is in its display summary. Recovery now reads every value a member carries, so a duplicate that repeats the same identity merges into one scope instead of discarding the whole row. Duplicates whose values disagree keep the row inside this scope and answer "unknown", which the freshness check already treats as stale; only a row whose every scope value is foreign stays tolerated, together with diagnostics whose key names survived. Verified with real File and SQLite scheduler-ack-current and scheduler-fail-current commands: a committed turn-2 receipt with a repeated agent_id and one damaged summary byte exits 1 with heartbeat_receipt_stale, scheduler_state_mutated=false and unchanged log bytes, while a foreign Agent's row with the same shape still lets the current turn write. The full Python receipt-fence suite passes on File and SQLite, the six scheduler TypeScript suites pass, and control-plane typecheck passes. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> * fix(scheduler): only a readable foreign identity may exclude a successor A stray rewrite can duplicate a top-level scope member of a committed quota_should_run receipt, name another Agent first and leave this scope's copy where a single damaged byte makes it unreadable. The recovery reader reported both the readable foreign value and the damaged key, but the successor check trusted the foreign value alone and returned "unrelated", so an older Turn regained write authority. The exclusion branch now consults the same recovered key list: a member whose every readable copy is foreign still proves the row unrelated only when no copy of that member is unreadable. If the same member is also damaged, the row answers "unknown", which the freshness check already treats as stale. Fully readable foreign rows and surviving diagnostics stay tolerated. Verified with real File and SQLite scheduler-ack-current and scheduler-fail-current commands: a committed turn-2 receipt whose first agent_id names another Agent while the trailing local copy holds a raw 0xff now exits 1 with heartbeat_receipt_stale, scheduler_state_mutated=false and unchanged log bytes. The mirrored order (local readable first, foreign copy damaged) also keeps the old Turn retired. The full Python receipt-fence suite passes (62 tests, File and SQLite), the six scheduler TypeScript suites pass (99 tests), and control-plane typecheck passes. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> * fix(scheduler): finish the scope check before reporting uncertainty The previous commit treated an unreadable duplicate of a scope member as uncertainty immediately, before examining the remaining members. A row whose event kind was readable as a validation event and whose duplicate copy was damaged therefore returned "unknown" even though its Agent identity was complete and clearly another Agent's. That refused valid ACK and failure writebacks on File and SQLite. committedSuccessor now examines every identity member first. A member whose every readable copy is foreign and whose own copies are all readable settles the row as unrelated, regardless of damage in a different member. Uncertainty stays local to the damaged member: a readable foreign value with an unreadable twin of the same member still cannot exclude the row, and the unreadable copies of this scope's members still answer "unknown". Verified with real File and SQLite scheduler-ack-current and scheduler-fail-current commands: another Agent's validation row with a readable event kind and one damaged duplicate of that member no longer blocks the current writeback (exit 0, scheduler_state_mutated=true, log bytes unchanged), while this scope's damaged duplicates still return heartbeat_receipt_stale with zero writes. The full Python receipt-fence suite passes (66 tests, File and SQLite), the six scheduler TypeScript suites pass (99 tests), and control-plane typecheck passes. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> * fix(scheduler): read only committed rows when deciding freshness A log write can stop between its complete JSON row and the newline that commits it. The snapshot exposed that final record, so a nearly written successor retired the old Turn and a nearly written original counted as the Turn's receipt. The next append drops those bytes, which made the same command flip from stale or missing to writable. The snapshot now names the unterminated record line, and the scheduler freshness read ignores that row for both the originating Turn and any successor. The two Python append entry points also deduplicate against newline-terminated rows only: retrying an interrupted append drops the abandoned bytes and commits the row once, while a committed row still returns the same record. General diagnostic reads keep the decodable tail. Verified with real File and SQLite scheduler-ack-current and scheduler-fail-current commands: an unterminated turn-2 successor no longer retires turn-1 (exit 0, scheduler_state_mutated=true), and an unterminated turn-1 row reports heartbeat_receipt_missing both before and after the next append drops it. The full Python suite passes (106 tests), appended-row dedup covers both entry points, the scheduler TypeScript suites pass (105 and 157 tests), and control-plane typecheck passes. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> * fix(scheduler): ignore unterminated rows in prior-turn recovery A complete JSON row without its committing newline is abandoned by the next append. Use the same committed-only view for strict settlement, receipt qualification and prior-host-Turn recovery so an interrupted receipt cannot make a later admission ask for recovery before the next append and then disappear. Verify File and SQLite real CLI prior-turn recovery with committed and unterminated guard receipts, plus TypeScript settlement preflight and control-plane typecheck. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> * Use committed receipts for tolerant settlement history Filter unterminated scheduler settlement rows through the existing committed rollout view in quota settlement readback and replanned history. Add TypeScript and real File/SQLite CLI regressions for interrupted tails while preserving damaged-row tolerance. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> --------- Signed-off-by: gcl-coder <gcl-coder@users.noreply.github.com> Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com>
1 parent 0ddcaba commit e235cde

33 files changed

Lines changed: 4326 additions & 123 deletions

‎loopx/cli_commands/quota_context.py‎

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
cached_goal_run_index_is_current,
1414
load_status_projection_cache,
1515
resolve_status_projection_cache_runtime_root,
16+
status_projection_cache_metadata,
1617
write_status_projection_cache,
1718
)
1819
from ..control_plane.scheduler.execution_context import (
@@ -362,21 +363,49 @@ def prepare_quota_command_context(
362363
available_capabilities=args.available_capabilities,
363364
agent_lane_id=args.agent_id,
364365
include_presentation_projections=False,
366+
# A scheduler ACK/failure return writes cadence, not settlement
367+
# facts. One damaged audit row must not fail the whole status read
368+
# before the tolerant native fence can answer it.
369+
tolerate_malformed_settlement_history=(
370+
command in QUOTA_SCHEDULER_FOLLOWUP_COMMANDS
371+
),
365372
)
366373
preview = command == "should-run" and getattr(args, "dry_run", False)
367374
if not preview and bool(getattr(args, "write_projection_cache", False)):
368-
cache_metadata = write_status_projection_cache(
369-
registry_path=registry_path,
370-
runtime_root=runtime_root,
371-
limit=status_limit,
372-
include_task_graph=False,
373-
goal_id=status_goal_id,
374-
payload=status_payload,
375-
max_age_seconds=projection_cache_ttl_seconds,
376-
available_capabilities=args.available_capabilities,
377-
agent_lane_id=args.agent_id,
378-
include_presentation_projections=False,
379-
)
375+
if command in QUOTA_SCHEDULER_FOLLOWUP_COMMANDS:
376+
# The follow-up collector tolerates malformed history so a
377+
# valid scheduler return can still be recorded. That partial
378+
# view must never become the cache consumed by strict status
379+
# readers under the same key.
380+
cache_metadata = status_projection_cache_metadata(
381+
registry_path=registry_path,
382+
runtime_root=runtime_root,
383+
limit=status_limit,
384+
include_task_graph=False,
385+
goal_id=status_goal_id,
386+
max_age_seconds=projection_cache_ttl_seconds,
387+
available_capabilities=args.available_capabilities,
388+
agent_lane_id=args.agent_id,
389+
include_presentation_projections=False,
390+
)
391+
cache_metadata.update({
392+
"hit": False,
393+
"written": False,
394+
"skipped_reason": "tolerant_scheduler_followup_view",
395+
})
396+
else:
397+
cache_metadata = write_status_projection_cache(
398+
registry_path=registry_path,
399+
runtime_root=runtime_root,
400+
limit=status_limit,
401+
include_task_graph=False,
402+
goal_id=status_goal_id,
403+
payload=status_payload,
404+
max_age_seconds=projection_cache_ttl_seconds,
405+
available_capabilities=args.available_capabilities,
406+
agent_lane_id=args.agent_id,
407+
include_presentation_projections=False,
408+
)
380409
elif isinstance(status_payload.get("projection_cache"), dict):
381410
cache_metadata = dict(status_payload["projection_cache"])
382411

‎loopx/cli_commands/quota_scheduler_followup.py‎

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ def _build_scheduler_followup_decision(
7676
repository_delivery_interaction_hook(repo_path=Path.cwd()),
7777
),
7878
goal_ref=goal_ref,
79+
# The compatibility ACK/failure route writes scheduler cadence, not
80+
# settlement facts: one damaged audit row must not turn a valid return
81+
# into a failure before the tolerant native fence runs. Exact
82+
# settlement branches keep the strict readback.
83+
tolerate_malformed_settlement_history=True,
7984
)
8085

8186

@@ -105,35 +110,6 @@ def build_scheduler_followup_payload(
105110
if turn_instance_id
106111
else None
107112
)
108-
if turn_instance_id and heartbeat_receipt is None:
109-
return {
110-
"ok": False,
111-
"schema_version": "quota_scheduler_followup_receipt_failure_v0",
112-
"mode": args.quota_command,
113-
"goal_id": args.goal_id,
114-
"agent_id": args.agent_id,
115-
"turn_instance_id": turn_instance_id,
116-
"decision": "skip",
117-
"should_run": False,
118-
"status": "heartbeat_receipt_missing",
119-
"state": "blocked_receipt",
120-
"error_code": "SCHEDULER_FOLLOWUP_HEARTBEAT_RECEIPT_MISSING",
121-
"reason": (
122-
"scheduler follow-up requires the originating heartbeat receipt; "
123-
"refusing to rebuild authority from the current live frontier"
124-
),
125-
"retry_guidance": (
126-
"retry with the exact Turn id from a committed quota should-run "
127-
"heartbeat receipt"
128-
),
129-
"write_performed": False,
130-
"appended": False,
131-
"registry_mutated": False,
132-
"scheduler_state_mutated": False,
133-
"quota_spend_performed": False,
134-
"delivery_outcome": "surface_only",
135-
}
136-
137113
observed_rrule = str(
138114
getattr(args, "app_automation_current_rrule", None)
139115
or getattr(args, "codex_app_current_rrule", None)
@@ -229,6 +205,8 @@ def build_scheduler_followup_payload(
229205
observed_host_rrule=observed_rrule,
230206
failure_kind=args.failure_kind,
231207
turn_instance_id=turn_instance_id,
208+
goal_ref=goal_ref,
209+
registry_path=registry_path,
232210
)
233211
return record_quota_scheduler_ack(
234212
status_payload,
@@ -250,4 +228,6 @@ def build_scheduler_followup_payload(
250228
operator_inbox_urgency_projector=operator_inbox_urgency_projector,
251229
before_decision=before_decision,
252230
turn_instance_id=turn_instance_id,
231+
goal_ref=goal_ref,
232+
registry_path=registry_path,
253233
)

‎loopx/control_plane/quota/live_decision.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,7 @@ def build_live_quota_should_run_decision(
786786
workspace_path: Path | None = None,
787787
goal_ref: Mapping[str, object] | None = None,
788788
inline_goal_source: bool = False,
789+
tolerate_malformed_settlement_history: bool = False,
789790
) -> dict[str, Any]:
790791
"""Build one live CLI decision while keeping host observation injectable."""
791792
resolved_context = resolve_scheduler_execution_context(scheduler_execution_context)
@@ -865,6 +866,7 @@ def build_live_quota_should_run_decision(
865866
),
866867
registry_path=registry_path,
867868
goal_ref=goal_ref,
869+
tolerate_malformed_history=tolerate_malformed_settlement_history,
868870
)
869871
receipt_bound_monitor_phase = (
870872
settlement_readback.monitor_phase if settlement_readback else None

‎loopx/control_plane/quota/scheduler_ack.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
from collections.abc import Mapping
34
from typing import Any, cast
45

56
import json
@@ -185,6 +186,8 @@ def _run_native_followup(
185186
use_current_hint: bool,
186187
reason_summary: str | None,
187188
turn_instance_id: str | None = None,
189+
goal_ref: Mapping[str, object] | None = None,
190+
registry_path: Path | None = None,
188191
) -> dict[str, Any]:
189192
"""Decision-free compatibility transport for in-process Python callers.
190193
@@ -201,6 +204,8 @@ def _run_native_followup(
201204
request = {
202205
"schema_version": _FOLLOWUP_REQUEST_SCHEMA,
203206
"runtime_root": str(runtime_root),
207+
"registry_path": str(registry_path) if registry_path is not None else None,
208+
"goal_ref": dict(goal_ref) if goal_ref is not None else None,
204209
"turn_instance_id": receipt_turn_instance_id,
205210
"require_heartbeat_receipt": receipt_turn_instance_id is not None,
206211
"before": before,
@@ -310,6 +315,8 @@ def record_quota_scheduler_ack_for_decision(
310315
use_current_hint: bool = False,
311316
host_match_observed: bool = False,
312317
turn_instance_id: str | None = None,
318+
goal_ref: Mapping[str, object] | None = None,
319+
registry_path: Path | None = None,
313320
) -> dict[str, Any]:
314321
state_key = _followup_state_key(before, surface=surface, state_key=state_key)
315322
safe_agent_id = normalize_todo_claimed_by(agent_id)
@@ -380,6 +387,8 @@ def record_quota_scheduler_ack_for_decision(
380387
use_current_hint=use_current_hint,
381388
reason_summary=reason_summary,
382389
turn_instance_id=turn_instance_id,
390+
goal_ref=goal_ref,
391+
registry_path=registry_path,
383392
)
384393
except ValueError as exc:
385394
return _failure_payload(
@@ -410,6 +419,8 @@ def record_quota_scheduler_failure_for_decision(
410419
failure_kind: str = "host_tool_failure",
411420
generated_at: str | None = None,
412421
turn_instance_id: str | None = None,
422+
goal_ref: Mapping[str, object] | None = None,
423+
registry_path: Path | None = None,
413424
) -> dict[str, Any]:
414425
state_key = _followup_state_key(before, surface=surface, state_key=state_key)
415426
safe_agent_id = normalize_todo_claimed_by(agent_id)
@@ -458,6 +469,8 @@ def record_quota_scheduler_failure_for_decision(
458469
use_current_hint=False,
459470
reason_summary=None,
460471
turn_instance_id=turn_instance_id,
472+
goal_ref=goal_ref,
473+
registry_path=registry_path,
461474
)
462475
except ValueError as exc:
463476
return _failure_payload(

‎loopx/control_plane/quota/settlement.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ def read_heartbeat_settlement(
492492
borrow_source_admission: bool = False,
493493
heartbeat_reentry_guard: dict[str, Any] | None = None,
494494
include_record_bodies: bool = True,
495+
tolerate_malformed_history: bool = False,
495496
) -> QuotaSettlementReadback | None:
496497
"""Read one complete heartbeat settlement through the TS domain owner."""
497498

@@ -510,6 +511,11 @@ def read_heartbeat_settlement(
510511
if include_record_bodies is not True
511512
else {}
512513
),
514+
**(
515+
{"tolerate_malformed_history": True}
516+
if tolerate_malformed_history
517+
else {}
518+
),
513519
**({"resolve_original_binding": True} if resolve_original_binding else {}),
514520
**({"pending_closeout": True} if pending_closeout else {}),
515521
**({"refresh_retry": refresh_retry} if refresh_retry is not None else {}),

‎loopx/control_plane/quota/settlement_readback.ts‎

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { isAbsolute, join } from "node:path";
33

44
import { readReceiptLogSnapshot } from "../runtime/receipt_log_snapshot.ts";
55
import {
6+
committedGoalRolloutEvents,
67
heartbeatReceiptsFromEvents,
78
readGoalRolloutEventSnapshot,
89
strictGoalRolloutEvents,
@@ -122,6 +123,7 @@ interface ReadbackRequest {
122123
pending_closeout: boolean;
123124
borrow_source_admission: boolean;
124125
include_record_bodies: boolean;
126+
tolerate_malformed_history: boolean;
125127
refresh_retry: RefreshRetryRequest | null;
126128
heartbeat_reentry_guard: JsonObject | null;
127129
owner: QuotaAccountingOwner;
@@ -249,6 +251,14 @@ function decodeRequest(
249251
if (request.include_record_bodies !== undefined && typeof request.include_record_bodies !== "boolean") {
250252
throw new EffectRuntimeRequestError("include_record_bodies must be a boolean");
251253
}
254+
if (
255+
request.tolerate_malformed_history !== undefined &&
256+
typeof request.tolerate_malformed_history !== "boolean"
257+
) {
258+
throw new EffectRuntimeRequestError(
259+
"tolerate_malformed_history must be a boolean",
260+
);
261+
}
252262
if (request.resolve_original_binding === true && request.infer_turn_instance_id) {
253263
throw new EffectRuntimeRequestError("original binding requires an explicit Turn identity");
254264
}
@@ -316,16 +326,20 @@ function decodeRequest(
316326
pending_closeout: request.pending_closeout === true,
317327
borrow_source_admission: request.borrow_source_admission === true,
318328
include_record_bodies: request.include_record_bodies !== false,
329+
tolerate_malformed_history: request.tolerate_malformed_history === true,
319330
refresh_retry: decodeRefreshRetry(request.refresh_retry),
320331
heartbeat_reentry_guard: request.heartbeat_reentry_guard == null ? null
321332
: requireJsonObject(request.heartbeat_reentry_guard, "heartbeat_reentry_guard"),
322333
owner,
323334
};
324335
}
325336

326-
async function readRunReceipts(path: string): Promise<readonly JsonObject[]> {
337+
async function readRunReceipts(
338+
path: string,
339+
tolerateMalformedHistory: boolean = false,
340+
): Promise<readonly JsonObject[]> {
327341
const snapshot = await readReceiptLogSnapshot(path);
328-
if (snapshot?.firstErrorLine != null) {
342+
if (!tolerateMalformedHistory && snapshot?.firstErrorLine != null) {
329343
throw new EffectRuntimeRequestError(
330344
`settlement readback line ${snapshot.firstErrorLine} is malformed`,
331345
"malformed_settlement_state",
@@ -406,6 +420,7 @@ export async function readQuotaSettlementSnapshot(
406420
runtimeRoot: string,
407421
goalId: string,
408422
rolloutSnapshot?: GoalRolloutEventSnapshot | null,
423+
tolerateMalformedHistory: boolean = false,
409424
): Promise<QuotaSettlementReadbackSnapshot> {
410425
settlementScope(runtimeRoot, goalId);
411426
if (
@@ -426,12 +441,19 @@ export async function readQuotaSettlementSnapshot(
426441
rolloutSnapshot === undefined
427442
? readGoalRolloutEventSnapshot(runtimeRoot, goalId)
428443
: Promise.resolve(rolloutSnapshot),
429-
readRunReceipts(join(goalRoot, "runs", "index.jsonl")),
444+
readRunReceipts(join(goalRoot, "runs", "index.jsonl"), tolerateMalformedHistory),
430445
]);
446+
// Settlement-authority callers keep failing closed on the first damaged row.
447+
// The scheduler follow-up route only needs the receipts it can actually read,
448+
// so it opts into the same tolerant view the heartbeat reader already uses.
449+
// Both views still ignore an unterminated row: the append owner will drop it
450+
// before writing the next record.
431451
return indexSettlementSnapshot(
432452
runtimeRoot,
433453
goalId,
434-
strictGoalRolloutEvents(snapshot),
454+
tolerateMalformedHistory
455+
? committedGoalRolloutEvents(snapshot)
456+
: strictGoalRolloutEvents(snapshot),
435457
runs,
436458
);
437459
}
@@ -1644,7 +1666,12 @@ export async function readQuotaSettlement(value: unknown): Promise<JsonObject> {
16441666
async () => {
16451667
const matchedSpend: MatchedSpendRecords = {run: null, receipt: null};
16461668
const result = readQuotaSettlementFromRequest(request,
1647-
await readQuotaSettlementSnapshot(request.runtime_root, request.goal_id), true, matchedSpend);
1669+
await readQuotaSettlementSnapshot(
1670+
request.runtime_root,
1671+
request.goal_id,
1672+
undefined,
1673+
request.tolerate_malformed_history,
1674+
), true, matchedSpend);
16481675
const identity = jsonObject(jsonObject(jsonObject(result.identity)?.result)?.value);
16491676
const receipt = spendReceiptTerms(matchedSpend.receipt);
16501677
// Only exact readback opens its matched debit artifact. Check its

‎loopx/control_plane/quota/unsettled_host_turn_recovery.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
requireNonEmptyString,
2323
} from "../runtime_decode.ts";
2424
import {
25-
goalHeartbeatReceiptsFromSnapshot,
25+
committedGoalHeartbeatReceiptsFromSnapshot,
2626
readGoalRolloutEventSnapshot,
2727
} from "../rollout_receipt_log.ts";
2828
import { isCommittedMonitorPollEffect } from "./settlement_phase.ts";
@@ -230,7 +230,7 @@ async function preflightPriorHostTurnCloseoutForOwner(
230230
request.runtime_root,
231231
request.goal_id,
232232
);
233-
const receipts = goalHeartbeatReceiptsFromSnapshot(
233+
const receipts = committedGoalHeartbeatReceiptsFromSnapshot(
234234
rolloutSnapshot,
235235
request.goal_id,
236236
request.agent_id,

0 commit comments

Comments
 (0)