You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Follow-ups from the #4145 review: one harness-wide cron switch for the integration lanes, and RAG settle writes that overwrite a concurrent re-queue #4158
These are follow-ups from agent #2's independent review of #4145 (record 5971573918). The review accepted the PR at 7c7de6c2c, and it merged as 240991201. For point 4 the reviewer chose a follow-up over extending laneDrivenSchedules in that PR. Found from source; neither item has a CI sighting yet.
1. One harness-wide cron switch for the integration lanes
automation.liveness fires every minute, against the lane that seeds an overdue run and then sweeps (integration-check.ts:12662-12672, :12830);
watchdog.transcriptions fires against its exact-count lane (:23367-23412).
Suggested fix: pass pg-boss schedule: false to the harness's boss through a new createBoss option.
registerSchedules and getSchedules keep working, but no cron tick ever fires.
It then replaces the per-name list.
Acceptance:
one full Backend integration run shows no lane relies on a tick. Watch automation.liveness first;
a guard check that fails if a scheduled tick runs during the lanes.
2. RAG settle writes can overwrite a concurrent re-queue
The watchdog's settle writes match on id alone (watchdogs.ts:477, :566, :584-593).
So a markRagQueued (for example a Retry) that commits between the sweep's candidate read and its write is overwritten to failed, until the job rewrites it.
Suggested fix: guard the writes with AND rag_status IN ('queued','running'), or equivalent.
Acceptance: a real-Postgres check that commits a re-queue between the read and the write. The re-queue must survive. The fault-isolation and lock-timeout lanes stay green.
Activity
test(platform): fail the cron guard on any forwarded tick
fix(platform): stop the RAG sweep overwriting a concurrent re-queue
test(platform): run every integration lane with pg-boss's clock off
test(platform): fail the cron guard on any forwarded tick
fix(platform): guard RAG settle writes and run the lanes with cron off