[PR #1471] [MERGED] fix(slurp2): read Engine Conversation Schedule ranges, stop endless follow-up postponement (0.3.48) #1477

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1471
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara

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


📝 Commits (4)

  • 826c110 fix(slurp2): read Engine Conversation Schedule ranges (0.3.48)
  • 545eacc fix(slurp2): keep a night block that runs into an empty day, tighten splash copy
  • 953902c Merge branch 'staging' into fix/slurp-schedule-ranges
  • 61c8071 Merge branch 'staging' into fix/slurp-schedule-ranges

📊 Changes

19 files changed (+724 additions, -400 deletions)

View changed files

➕ artifacts/slurp2-0.3.48.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+6 -0)
📝 packages/slurp2/client.js (+1 -1)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+282 -282)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+9 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-signals-service.ts (+1 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-post-beat-service.ts (+1 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-follow-up-scheduler-service.ts (+7 -1)
📝 packages/slurp2/src/engine/packages/server/src/slp/modules/creators/slp-creator-schedule-context.ts (+163 -65)
📝 packages/slurp2/src/engine/packages/server/src/slp/modules/messages/slp-follow-up.ts (+12 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
➕ tests/slurp2-schedule-ranges.regression.ts (+194 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1436

Why this change

  • The Engine stores each Conversation Schedule block's time as a range ("06:00-08:00"). Slurp's parser only accepted a bare "HH:MM", so every block was dropped and the schedule was silently ignored. Slurp's own "Refresh schedule" writes ranges too, so those were ignored as well.
  • Without a readable schedule, availability fell back to a guess from the Creator's last post. That guess is one constant per day, so for a Creator who posts every few hours it kept them "away" at every due check, and each promised follow-up slid forward by the same number of minutes forever (the report shows 230 minutes, twice).
  • The post brief's day plan used the same parser, so it lost the schedule too.

What changed

Package slurp2 0.3.47 → 0.3.48 (above every published version, 0.3.47 being the highest). It follows the maintainer's decisions on the issue:

  1. Parsing: ranges are read the way the Engine reads them (packages/shared/src/utils/conversation-presence.ts), including ranges that cross midnight ("22:00-06:00" belongs to the day it starts on, so Monday 02:00 reads Sunday's night block). Bare "HH:MM" still works as before: it runs until the next block of its day, and the day's last one wraps round to the first.
  2. Gaps: a time no block covers is free time, online, the same as Engine getCurrentStatus. A block no longer keeps running into the gap after it.
  3. Reachability: a block's status decides. offline and dnd are away, online and idle are reachable. Only a block without a usable status falls back to the activity keywords (SLURP_AWAY_ACTIVITIES). The wait (minutesUntilOnline) runs to the next reachable stretch the schedule covers, across midnight, and is null when no reachable time is known.
  4. No endless postponement: a follow-up more than 12 hours past its first due time goes out at its next due check even if the Creator is away (isFollowUpPastAwayLimit). It counts from the stored firstDueAt, which postponement never moves. The needsReply, cool-off and night-quiet postpones are unchanged, and so is the roleplay-scene wait.
  • slurpTimelineMoment() (post brief day plan, signals) reads the same segments. resolveSlurpCreatorScheduleBlocks() now also returns yesterday's and tomorrow's blocks for ranges that cross midnight. A card routine with no neighbouring days repeats daily.
  • Visible behaviour change (called out in CHANGELOG and the splash): Creators whose character has a Conversation Schedule now follow it. Before this, every such schedule was ignored.
  • Also ships the unreleased follow-ups from ab44a021c (name matching inside one tag or line, companion reference pictures from scene companions only). They were on staging but not yet in a published build.
  • Release metadata: SLURP2_VERSION, a SLURP2_RELEASES splash entry, and a packages/slurp2/CHANGELOG.md entry marked [highlight].
  • Generated: packages/slurp2/{manifest.json,client.js,server.mjs}, artifacts/slurp2-0.3.48.zip, catalog/{,v2/,v3/}{catalog,notes}.json.
  • Build pin: built with MARINARA_ENGINE_ROOT pinned to Engine ecd43884c (staging head before the 0.3.47 release). Rebuilding the 0.3.47 release commit (1e412360e) against that Engine reproduces the published package byte for byte. client.js differs only by the version and splash entry.
  • Regression: tests/slurp2-schedule-ranges.regression.ts. It fails on the old parser (actual: null) and covers range parsing (including midnight crossing and the wait across midnight), gap = free time, status mapping (dnd beats a reachable activity, idle beats an away word), the keyword fallback (no status and an unknown status), the day plan, the issue's own "00:00-07:00" shape end to end (no longer estimated), and the 12-hour limit plus its scheduler wiring.
  • Review round (545eacc29, same Engine pin ecd43884c): resolveSlurpCreatorScheduleBlocks() keeps a day with no blocks while yesterday's night block still runs into it, so the day plan and signals no longer fall back to the card routine at, say, Tuesday 01:00. The two splash lines now use the Engine's status labels and say only that being away no longer holds a late promise. The regression covers the empty-day case.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none (range unchanged, >=2.4.6)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. No schema or stored-data change. first_due_at already exists and is already pinned on postpone.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Commands run by the agent:

  • npm run check: exit 0 (0 errors; the only warning in changed files is a pre-existing one in slp-follow-up.ts:90)
  • node scripts/test-catalog-lanes.mjs: exit 0
  • node scripts/validate-package-locales.mjs: exit 0
  • node scripts/validate-catalog.mjs: exit 0 (Catalog lanes valid: v2=39, v3=39; legacy=v2.)
  • node scripts/tests/catalog-release-notes.regression.mjs: OK
  • git diff --check: clean
  • node scripts/typecheck-packages.mjs slurp2: no syntax errors, undefined names or unresolved modules
  • tsx --tsconfig tests/tsconfig.regressions.json tests/<name>.regression.ts, one by one: slurp2-schedule-ranges (new) passes. These existing ones pass, and all of them also passed on untouched staging: slurp-messaging, slurp2-post-beats, slurp-schedule-status, slurp-conversation-schedule-refresh, slurp-follow-up-pipeline, slurp2-pulse-e, slurp2-v-followups, slurp2-pause-follow-ups-until-reply, slurp2-architecture, slurp2-release-notes, slurp-realism, slurp-felt-mood, slurp2-stir-follow-through, slurp2-fix1-away-card. Every regression that reads a touched file also passes: slurp-continuity-prompt, slurp-generation-prompts, slurp2-7c-fixes, slurp2-bonds, slurp2-character-essentials, slurp2-content-packs, slurp2-couples, slurp2-creator-ties, slurp2-drama-runtime, slurp2-life-moments, slurp2-message-deep-details, slurp2-messaging-bughunt, slurp2-post-purpose, slurp2-review-fixes, slurp2-shared-preseed, slurp2-sim-fixes, slurp2-slice-i, slurp2-steering-flavour, slurp2-step6-5-cooldowns, slurp2-trends. No new failures.
  • Not run: the local CodeRabbit CLI and the browser e2e suite.

Manual verification notes

  • Manually verify in Marinara Engine (staging) → Agents → Download Agents that Slurp updates to 0.3.48 and the "What's new" sheet shows the 0.3.48 entry.
  • Manually verify in a Slurp DM thread that a Creator whose character has a Conversation Schedule shows the schedule's activity in the thread header (not an "estimated" away status). Check it during an online block, an offline or dnd block, and a gap between blocks (free time, online).
  • Manually verify in a Slurp DM thread during an offline block that crosses midnight (e.g. 23:00-07:00) that the header's "back in" time runs to the next reachable block on the next day.
  • Manually verify in the slurp2_follow_ups table that a pending follow-up whose first_due_at is more than 12 hours old is sent at its next due check while the Creator is away, and that one with needsReply, an active cool-off or night quiet is still postponed.
  • Manually verify that the post brief's day plan (prompt preview of a scheduled post) names the current schedule block for a Creator with a range-based schedule.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

The agent found no README or package doc that describes schedule-driven availability, so the agent changed no docs. The behaviour change is in packages/slurp2/CHANGELOG.md and the splash.

UI evidence (if applicable)

No UI changes. Only the "What's new" sheet gets a new entry.

Summary by CodeRabbit

  • New Features
    • Slurp 0.3.48 uses Conversation Schedule time ranges—including ranges that cross midnight—to determine availability and inform the day plan. Gaps between scheduled blocks count as free time.
    • Promised follow-ups more than 12 hours overdue can be sent at the next check even when the Creator is away. Reply waits, cool-off periods, and night quiet still apply.
    • Name matching is limited to a single tag or line, and companion reference pictures are limited to companions present in the scene.

🔄 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/1471 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/slurp-schedule-ranges` --- ### 📝 Commits (4) - [`826c110`](https://github.com/Pasta-Devs/Marinara-Agents/commit/826c11045ef64ae7610f2b0421e75eb9f44fd0cf) fix(slurp2): read Engine Conversation Schedule ranges (0.3.48) - [`545eacc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/545eacc2922dde4ad4e6a5538b5e0c2f28c70f20) fix(slurp2): keep a night block that runs into an empty day, tighten splash copy - [`953902c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/953902cd0bedd182d4982e526a59132c6f7ffb2d) Merge branch 'staging' into fix/slurp-schedule-ranges - [`61c8071`](https://github.com/Pasta-Devs/Marinara-Agents/commit/61c8071c8f0c5abfa43fddc9ed25661b6139d5d8) Merge branch 'staging' into fix/slurp-schedule-ranges ### 📊 Changes **19 files changed** (+724 additions, -400 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.48.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+6 -0) 📝 `packages/slurp2/client.js` (+1 -1) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+282 -282) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+9 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/creators/slp-signals-service.ts` (+1 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-post-beat-service.ts` (+1 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/features/messages/slp-follow-up-scheduler-service.ts` (+7 -1) 📝 `packages/slurp2/src/engine/packages/server/src/slp/modules/creators/slp-creator-schedule-context.ts` (+163 -65) 📝 `packages/slurp2/src/engine/packages/server/src/slp/modules/messages/slp-follow-up.ts` (+12 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) ➕ `tests/slurp2-schedule-ranges.regression.ts` (+194 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1436 ## Why this change - The Engine stores each Conversation Schedule block's `time` as a range (`"06:00-08:00"`). Slurp's parser only accepted a bare `"HH:MM"`, so every block was dropped and the schedule was silently ignored. Slurp's own "Refresh schedule" writes ranges too, so those were ignored as well. - Without a readable schedule, availability fell back to a guess from the Creator's last post. That guess is one constant per day, so for a Creator who posts every few hours it kept them "away" at every due check, and each promised follow-up slid forward by the same number of minutes forever (the report shows 230 minutes, twice). - The post brief's day plan used the same parser, so it lost the schedule too. ## What changed Package `slurp2` 0.3.47 → 0.3.48 (above every published version, 0.3.47 being the highest). It follows the maintainer's decisions on the issue: 1. **Parsing**: ranges are read the way the Engine reads them (`packages/shared/src/utils/conversation-presence.ts`), including ranges that cross midnight (`"22:00-06:00"` belongs to the day it starts on, so Monday 02:00 reads Sunday's night block). Bare `"HH:MM"` still works as before: it runs until the next block of its day, and the day's last one wraps round to the first. 2. **Gaps**: a time no block covers is free time, online, the same as Engine `getCurrentStatus`. A block no longer keeps running into the gap after it. 3. **Reachability**: a block's `status` decides. `offline` and `dnd` are away, `online` and `idle` are reachable. Only a block without a usable status falls back to the activity keywords (`SLURP_AWAY_ACTIVITIES`). The wait (`minutesUntilOnline`) runs to the next reachable stretch the schedule covers, across midnight, and is `null` when no reachable time is known. 4. **No endless postponement**: a follow-up more than 12 hours past its first due time goes out at its next due check even if the Creator is away (`isFollowUpPastAwayLimit`). It counts from the stored `firstDueAt`, which postponement never moves. The needsReply, cool-off and night-quiet postpones are unchanged, and so is the roleplay-scene wait. - `slurpTimelineMoment()` (post brief day plan, signals) reads the same segments. `resolveSlurpCreatorScheduleBlocks()` now also returns yesterday's and tomorrow's blocks for ranges that cross midnight. A card routine with no neighbouring days repeats daily. - Visible behaviour change (called out in CHANGELOG and the splash): **Creators whose character has a Conversation Schedule now follow it.** Before this, every such schedule was ignored. - Also ships the unreleased follow-ups from ab44a021c (name matching inside one tag or line, companion reference pictures from scene companions only). They were on staging but not yet in a published build. - Release metadata: `SLURP2_VERSION`, a `SLURP2_RELEASES` splash entry, and a `packages/slurp2/CHANGELOG.md` entry marked `[highlight]`. - Generated: `packages/slurp2/{manifest.json,client.js,server.mjs}`, `artifacts/slurp2-0.3.48.zip`, `catalog/{,v2/,v3/}{catalog,notes}.json`. - **Build pin**: built with `MARINARA_ENGINE_ROOT` pinned to Engine `ecd43884c` (staging head before the 0.3.47 release). Rebuilding the 0.3.47 release commit (`1e412360e`) against that Engine reproduces the published package byte for byte. `client.js` differs only by the version and splash entry. - Regression: `tests/slurp2-schedule-ranges.regression.ts`. It fails on the old parser (`actual: null`) and covers range parsing (including midnight crossing and the wait across midnight), gap = free time, status mapping (dnd beats a reachable activity, idle beats an away word), the keyword fallback (no status and an unknown status), the day plan, the issue's own `"00:00-07:00"` shape end to end (no longer `estimated`), and the 12-hour limit plus its scheduler wiring. - Review round (545eacc29, same Engine pin `ecd43884c`): `resolveSlurpCreatorScheduleBlocks()` keeps a day with no blocks while yesterday's night block still runs into it, so the day plan and signals no longer fall back to the card routine at, say, Tuesday 01:00. The two splash lines now use the Engine's status labels and say only that being away no longer holds a late promise. The regression covers the empty-day case. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none (range unchanged, `>=2.4.6`) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. No schema or stored-data change. `first_due_at` already exists and is already pinned on postpone. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` Commands run by the agent: - `npm run check`: exit 0 (0 errors; the only warning in changed files is a pre-existing one in `slp-follow-up.ts:90`) - `node scripts/test-catalog-lanes.mjs`: exit 0 - `node scripts/validate-package-locales.mjs`: exit 0 - `node scripts/validate-catalog.mjs`: exit 0 (`Catalog lanes valid: v2=39, v3=39; legacy=v2.`) - `node scripts/tests/catalog-release-notes.regression.mjs`: OK - `git diff --check`: clean - `node scripts/typecheck-packages.mjs slurp2`: no syntax errors, undefined names or unresolved modules - `tsx --tsconfig tests/tsconfig.regressions.json tests/<name>.regression.ts`, one by one: `slurp2-schedule-ranges` (new) passes. These existing ones pass, and all of them also passed on untouched staging: `slurp-messaging`, `slurp2-post-beats`, `slurp-schedule-status`, `slurp-conversation-schedule-refresh`, `slurp-follow-up-pipeline`, `slurp2-pulse-e`, `slurp2-v-followups`, `slurp2-pause-follow-ups-until-reply`, `slurp2-architecture`, `slurp2-release-notes`, `slurp-realism`, `slurp-felt-mood`, `slurp2-stir-follow-through`, `slurp2-fix1-away-card`. Every regression that reads a touched file also passes: `slurp-continuity-prompt`, `slurp-generation-prompts`, `slurp2-7c-fixes`, `slurp2-bonds`, `slurp2-character-essentials`, `slurp2-content-packs`, `slurp2-couples`, `slurp2-creator-ties`, `slurp2-drama-runtime`, `slurp2-life-moments`, `slurp2-message-deep-details`, `slurp2-messaging-bughunt`, `slurp2-post-purpose`, `slurp2-review-fixes`, `slurp2-shared-preseed`, `slurp2-sim-fixes`, `slurp2-slice-i`, `slurp2-steering-flavour`, `slurp2-step6-5-cooldowns`, `slurp2-trends`. No new failures. - Not run: the local CodeRabbit CLI and the browser e2e suite. ### Manual verification notes - Manually verify in Marinara Engine (staging) → Agents → Download Agents that Slurp updates to 0.3.48 and the "What's new" sheet shows the 0.3.48 entry. - Manually verify in a Slurp DM thread that a Creator whose character has a Conversation Schedule shows the schedule's activity in the thread header (not an "estimated" away status). Check it during an `online` block, an `offline` or `dnd` block, and a gap between blocks (free time, online). - Manually verify in a Slurp DM thread during an `offline` block that crosses midnight (e.g. `23:00-07:00`) that the header's "back in" time runs to the next reachable block on the next day. - Manually verify in the `slurp2_follow_ups` table that a pending follow-up whose `first_due_at` is more than 12 hours old is sent at its next due check while the Creator is away, and that one with `needsReply`, an active cool-off or night quiet is still postponed. - Manually verify that the post brief's day plan (prompt preview of a scheduled post) names the current schedule block for a Creator with a range-based schedule. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The agent found no README or package doc that describes schedule-driven availability, so the agent changed no docs. The behaviour change is in `packages/slurp2/CHANGELOG.md` and the splash. ## UI evidence (if applicable) No UI changes. Only the "What's new" sheet gets a new entry. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Slurp 0.3.48 uses Conversation Schedule time ranges—including ranges that cross midnight—to determine availability and inform the day plan. Gaps between scheduled blocks count as free time. * Promised follow-ups more than 12 hours overdue can be sent at the next check even when the Creator is away. Reply waits, cool-off periods, and night quiet still apply. * Name matching is limited to a single tag or line, and companion reference pictures are limited to companions present in the scene. <!-- 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:11:54 +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#1477
No description provided.