Commit Graph
8 Commits
Author SHA1 Message Date
Lauri Ojansivu 5b93e725b9 Retry busy operator actions in the activity recovery test.
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 !
2026-09-30 11:12:25 +03:00
Lauri Ojansivu 2c2aeaff85 Make the paused-scan recovery test read a full pass, not one page.
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 !
2026-09-30 11:08:10 +03:00
Lauri Ojansivu f1e572db5c Integrate cancelled notification payload cleanup and terminal receipt reporting 2026-09-28 15:13:39 +03:00
Lauri Ojansivu b590d3d76f Cancel remaining activity notification delivery with permanent replay protection 2026-09-28 15:04:37 +03:00
Lauri Ojansivu 61bca9bb42 Honor persistent activity notification holds during delivery 2026-09-28 14:55:15 +03:00
Lauri Ojansivu 169a19817a Report pending activity notifications and allow guarded manual retry 2026-09-28 14:49:56 +03:00
Lauri Ojansivu 694807fc47 Compact completed notification plans without deleting replay keys
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.
2026-09-28 14:39:16 +03:00
Lauri Ojansivu 34c6c31a48 Resume pending activity notifications with shared reservations
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.
2026-09-28 14:31:47 +03:00