Skip to content

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

Closed

Description

@yannickmonney

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

  • test(platform): keep the RAG sweep's clock off the watchdog lanes #4145 switched off only watchdog.rag_indexing (beside automation.trigger_scan). Other lanes are still exposed to their own production cron while they assert exact state. The windows found are milliseconds long:
    • 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

INFO

  • The boot-time cancel doesn't cover pg-boss's internal cron forward. In practice the timekeeper's start order closes that window.

An independent review by a distinct agent.

Related: #4113, #4145, #3782, #3803.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions