@@ -103,6 +103,8 @@ jobs:
103103 results
104104 schema/clawsweeper-pr-close-coverage-proof.schema.json
105105 scripts/hydrate-state.ts
106+ scripts/comment-router-runner.mjs
107+ scripts/operator-skip-reasons.mjs
106108 scripts/prepare-worker-record-cache.ts
107109 scripts/worker-blobs.ts
108110 scripts/worker-records.ts
@@ -320,10 +322,12 @@ jobs:
320322 exit 0
321323 fi
322324 jobs_changed=0
325+ cursor_changed="$(jq -r '.routing_cursor_changed == true' results/comment-router-latest.json 2>/dev/null || true)"
323326 if ! git diff --no-index --quiet -- "$CLAWSWEEPER_STATE_DIR/jobs" jobs; then
324327 jobs_changed=1
325328 fi
326329 if [ "$jobs_changed" = "0" ] &&
330+ [ "$cursor_changed" != "true" ] &&
327331 jq -e '((.ledger_claimed // 0) + (.ledger_changed // 0)) == 0' results/comment-router-latest.json >/dev/null 2>&1; then
328332 echo "No durable router state changed; skipping state publication."
329333 exit 0
@@ -338,6 +342,9 @@ jobs:
338342 if [ "$jobs_changed" = "1" ]; then
339343 publish_args+=(--path jobs)
340344 fi
345+ if [ "$cursor_changed" = "true" ]; then
346+ publish_args+=(--path "results/comment-router-cursors/${{ steps.target.outputs.target_slug }}.json")
347+ fi
341348 pnpm run repair:publish-main -- "${publish_args[@]}"
342349
343350 - name : Detect waiting repair dispatches
@@ -476,10 +483,12 @@ jobs:
476483 # The initial publish copies every published path back into the state
477484 # checkout, making it the baseline for retry-only job mutations.
478485 jobs_changed=0
486+ cursor_changed="$(jq -r '.routing_cursor_changed == true' results/comment-router-latest.json 2>/dev/null || true)"
479487 if ! git diff --no-index --quiet -- "$CLAWSWEEPER_STATE_DIR/jobs" jobs; then
480488 jobs_changed=1
481489 fi
482490 if [ "$jobs_changed" = "0" ] &&
491+ [ "$cursor_changed" != "true" ] &&
483492 jq -e '((.ledger_claimed // 0) + (.ledger_changed // 0)) == 0' results/comment-router-latest.json >/dev/null 2>&1; then
484493 echo "No durable router retry state changed; skipping state publication."
485494 exit 0
@@ -493,6 +502,9 @@ jobs:
493502 if [ "$jobs_changed" = "1" ]; then
494503 publish_args+=(--path jobs)
495504 fi
505+ if [ "$cursor_changed" = "true" ]; then
506+ publish_args+=(--path "results/comment-router-cursors/${{ steps.target.outputs.target_slug }}.json")
507+ fi
496508 pnpm run repair:publish-main -- "${publish_args[@]}"
497509
498510 - name : Finalize command action ledger
0 commit comments