[PR #630] [MERGED] fix(slurp): enforce creator posting frequency #1060

Closed
opened 2026-10-21 05:01:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/630
Author: @Gunterlie
Created: 8/27/2026
Status: ✅ Merged
Merged: 8/27/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/slurp-schedule-rate


📝 Commits (10+)

  • 4012ec9 fix(slurp): enforce creator posting frequency
  • 1b86bf2 Merge branch 'staging' into fix/slurp-schedule-rate
  • 7f46209 fix(slurp): close scheduler review findings
  • 0305c90 Merge remote-tracking branch 'origin/fix/slurp-schedule-rate' into fix/slurp-schedule-rate
  • 0eece04 chore(slurp): refresh package manifest
  • 39c2799 fix(slurp): validate rescheduled post timing
  • 36982e0 test(slurp): update schedule browser expectation
  • 503e33e test(slurp): allow scheduler timing race
  • 81c1873 test(slurp): avoid schedule loading race
  • 56d39b5 test(slurp): report browser response failures

📊 Changes

13 files changed (+312 additions, -207 deletions)

View changed files

➕ artifacts/slurp-1.0.22.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/slurp/manifest.json (+3 -3)
📝 packages/slurp/server.mjs (+170 -170)
📝 packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts (+3 -0)
➕ packages/slurp/src/engine/packages/server/src/services/slurp/slurp-posting-interval.ts (+15 -0)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-reserve.operation.ts (+16 -5)
📝 packages/slurp/src/engine/packages/server/src/services/storage/slurp.storage.ts (+67 -9)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/package-slurp.e2e.ts (+3 -1)
📝 tests/slurp-automatic-posting.regression.ts (+16 -0)

📄 Description

Linked issue

Closes #627

Why this change

Slurp automatic posting could exceed the configured per-Creator daily frequency during unattended operation. The package must enforce one durable interval across scheduler passes, manual posts, and restart.

What changed

  • Enforce the configured per-Creator interval before selecting a reserve candidate.
  • Reject prepared rows that violate the same interval at persistence time.
  • Discard prepared rows made stale by a newer creator post.
  • Keep rescheduled and manual-post paths within the configured rate.
  • Bump Slurp to 1.0.22.
  • Rebuilt server.mjs, manifest, ZIP artifact, and v2/v3 catalog entries.

Validation

  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-catalog.mjs
  • npm run check
  • npx tsx tests/slurp-automatic-posting.regression.ts
  • ZIP content inspection
  • git diff --check

Manual verification

  • Manually install or update Slurp through Marinara Engine.
  • Manually verify configured Creator posting frequency.
  • Manually verify restart does not duplicate scheduled posts.
  • Manually verify manual posts do not create extra automatic runs.
  • Manually verify uninstall cleanup.

The repository check reports 68 existing lint warnings and no errors. Full combined regression execution remains blocked in this standalone checkout because package tests cannot resolve the Engine-owned @marinara-engine/shared package.

Summary by CodeRabbit

  • New Features

    • Improved automatic posting schedules to respect creator posting intervals.
    • Prevented scheduled posts from being created or published too close to recent activity.
    • Added clearer conflict handling when rescheduling posts near another publication.
  • Bug Fixes

    • Improved handling when no eligible posting slot is available.
    • Updated manual-post timing to follow the configured posting cadence.
    • Cleaned up prepared posts and associated media when timing conflicts occur.
  • Chores

    • Released Slurp version 1.0.22 with updated package metadata.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/630 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/27/2026 **Status:** ✅ Merged **Merged:** 8/27/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp-schedule-rate` --- ### 📝 Commits (10+) - [`4012ec9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4012ec9471dc95c70f720929302e9873ee4744c0) fix(slurp): enforce creator posting frequency - [`1b86bf2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1b86bf2afb8fdcdd4e1e4c691299cbdeb938ea81) Merge branch 'staging' into fix/slurp-schedule-rate - [`7f46209`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7f46209d3ca7b56d705c3e2eeef529b399dcc4a9) fix(slurp): close scheduler review findings - [`0305c90`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0305c90cbe64601f1e4e41c603620853d40c6c5f) Merge remote-tracking branch 'origin/fix/slurp-schedule-rate' into fix/slurp-schedule-rate - [`0eece04`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0eece043caf076b1b6bdfb3a3ea34935eb2cbaa7) chore(slurp): refresh package manifest - [`39c2799`](https://github.com/Pasta-Devs/Marinara-Agents/commit/39c27990e4513ae3de7c458b0cd355e442f1e729) fix(slurp): validate rescheduled post timing - [`36982e0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/36982e0735382d47aee2f35fdda716f820a2cdd2) test(slurp): update schedule browser expectation - [`503e33e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/503e33ecf5e7b0137ba263c2b6c0f7b16e5956cc) test(slurp): allow scheduler timing race - [`81c1873`](https://github.com/Pasta-Devs/Marinara-Agents/commit/81c1873dee2314f58b6ae582a4c09e1658d72cfb) test(slurp): avoid schedule loading race - [`56d39b5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/56d39b52005e252a919150d3360f74bb4b31098e) test(slurp): report browser response failures ### 📊 Changes **13 files changed** (+312 additions, -207 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp-1.0.22.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/slurp/manifest.json` (+3 -3) 📝 `packages/slurp/server.mjs` (+170 -170) 📝 `packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts` (+3 -0) ➕ `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-posting-interval.ts` (+15 -0) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-reserve.operation.ts` (+16 -5) 📝 `packages/slurp/src/engine/packages/server/src/services/storage/slurp.storage.ts` (+67 -9) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/package-slurp.e2e.ts` (+3 -1) 📝 `tests/slurp-automatic-posting.regression.ts` (+16 -0) </details> ### 📄 Description ## Linked issue Closes #627 ## Why this change Slurp automatic posting could exceed the configured per-Creator daily frequency during unattended operation. The package must enforce one durable interval across scheduler passes, manual posts, and restart. ## What changed - Enforce the configured per-Creator interval before selecting a reserve candidate. - Reject prepared rows that violate the same interval at persistence time. - Discard prepared rows made stale by a newer creator post. - Keep rescheduled and manual-post paths within the configured rate. - Bump Slurp to `1.0.22`. - Rebuilt `server.mjs`, manifest, ZIP artifact, and v2/v3 catalog entries. ## Validation - `node scripts/test-catalog-lanes.mjs` - `node scripts/validate-catalog.mjs` - `npm run check` - `npx tsx tests/slurp-automatic-posting.regression.ts` - ZIP content inspection - `git diff --check` ## Manual verification - [ ] Manually install or update Slurp through Marinara Engine. - [ ] Manually verify configured Creator posting frequency. - [ ] Manually verify restart does not duplicate scheduled posts. - [ ] Manually verify manual posts do not create extra automatic runs. - [ ] Manually verify uninstall cleanup. The repository check reports 68 existing lint warnings and no errors. Full combined regression execution remains blocked in this standalone checkout because package tests cannot resolve the Engine-owned `@marinara-engine/shared` package. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved automatic posting schedules to respect creator posting intervals. * Prevented scheduled posts from being created or published too close to recent activity. * Added clearer conflict handling when rescheduling posts near another publication. * **Bug Fixes** * Improved handling when no eligible posting slot is available. * Updated manual-post timing to follow the configured posting cadence. * Cleaned up prepared posts and associated media when timing conflicts occur. * **Chores** * Released Slurp version 1.0.22 with updated package metadata. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:01:48 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1060
No description provided.