The startup recovery scan runs every second and holds an intent's lease
while it looks at it, so the test's pause, resume and cancel calls could meet
sync-busy - a correct answer to an operator, who retries. A full run hit it
once, on the un-pause. The test now retries busy the way an operator would;
the one call that asserts busy on purpose, against the test's own delivery,
is left as it is.
Thanks to xet7 !
The activity notification recovery scanner reads 100 pending intents at a
time and keeps its place between calls, and the startup scan shares it. In a
full test run other suites leave more than 100 intents pending, so one call
could stop before this test's intent - by the random order of ids - and the
paused-scan assertion saw no skipped row. It failed once in a full run and
passed on its own.
Production pages through every intent over successive scans, which
tests/integration/activityNotificationRecovery.test.cjs already pins. The
test now uses its own scanner and pages to the end, repeating a pass that
lost a race with the background scan.
Thanks to xet7 !
Remove rendered payloads immediately after matching intent completion and in bounded background sweeps. Require valid checksums and dispatch identity, retain pending or damaged plans, and use atomic in-place replacement with readback for uncertain acknowledgements.
Validated with 20 Node/MongoDB cases, three additional Node suites, four Meteor cases and thirteen Chromium delivery and cleanup scenarios. Operator handling and unresolved-payload retention remain open.
Thanks to xet7.
Scan bounded pending-intent batches after startup, advance past failed and busy rows, and coordinate immediate delivery and recovery through renewable per-intent reservations. Resume saved plans or prepare the first plan from an unchanged persisted activity; retain unresolved orphans without recreating activities.
Validated with 14 Node/MongoDB cases, three additional Node suites, four full-app Meteor cases and twelve Chromium scenarios including scheduled local SMTP recovery. Operator controls and payload retention remain open.
Thanks to xet7.