[GH-ISSUE #4236] [Issue]: Manually entered overnight conversation ranges resolve against different days #2291

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

Originally created by @Xelvanis on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4236

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Conversation schedules entered as a cross-midnight range (for example, 23:00-07:00) are resolved against different named days by presence status and autonomous-intent logic. Generated schedules avoid this shape, but the schedule editor exposes the range as an unrestricted text field and saves it without range validation.

Expected behavior

All schedule consumers should use one documented rule for which named day owns the after-midnight portion of an overnight range.

Actual behavior

At 02:00 on Monday, getCurrentStatus() evaluates Monday's 23:00-07:00 block, while getAdjacentBlocks() evaluates Sunday's overnight block. Status gating and intent selection can therefore use different statuses and activities for the same instant.

Steps to reproduce

  1. In a Conversation chat, edit one character's schedule and enter a Sunday block 23:00-07:00 with status Offline.
  2. Enter a Monday block 23:00-07:00 with status Busy and save the schedule.
  3. At 02:00 Monday in the conversation timezone, compare the effective presence status with the current block used for autonomous intent selection.

The current staging helpers return Monday/Busy from getCurrentStatus() and Sunday/Offline from getAdjacentBlocks().

Environment

  • Marinara Engine version: current staging at f0e435b5f
  • Install type: source
  • OS + version: not UI-reproduced; the conflicting pure helper results are platform-independent
  • Browser or app shell: not UI-reproduced

Logs, screenshots, or video

No logs or screenshots. Direct helper reproduction returned:

getCurrentStatus: Monday night shift / dnd
getAdjacentBlocks.current: Sunday sleep / offline

Additional context

Generated schedules normally use separate 00:00-07:00 and 23:00-00:00 blocks, so this specifically affects user-edited overnight ranges. The smallest fix is one validated, day-aware range resolver shared by presence and adjacency/intent consumers, plus an overnight regression covering different Sunday and Monday statuses.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jul 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4236 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Conversation schedules entered as a cross-midnight range (for example, `23:00-07:00`) are resolved against different named days by presence status and autonomous-intent logic. Generated schedules avoid this shape, but the schedule editor exposes the range as an unrestricted text field and saves it without range validation. ## Expected behavior All schedule consumers should use one documented rule for which named day owns the after-midnight portion of an overnight range. ## Actual behavior At 02:00 on Monday, `getCurrentStatus()` evaluates Monday's `23:00-07:00` block, while `getAdjacentBlocks()` evaluates Sunday's overnight block. Status gating and intent selection can therefore use different statuses and activities for the same instant. ## Steps to reproduce 1. In a Conversation chat, edit one character's schedule and enter a Sunday block `23:00-07:00` with status **Offline**. 2. Enter a Monday block `23:00-07:00` with status **Busy** and save the schedule. 3. At 02:00 Monday in the conversation timezone, compare the effective presence status with the current block used for autonomous intent selection. The current staging helpers return Monday/Busy from `getCurrentStatus()` and Sunday/Offline from `getAdjacentBlocks()`. ## Environment - Marinara Engine version: current `staging` at `f0e435b5f` - Install type: source - OS + version: not UI-reproduced; the conflicting pure helper results are platform-independent - Browser or app shell: not UI-reproduced ## Logs, screenshots, or video No logs or screenshots. Direct helper reproduction returned: ```text getCurrentStatus: Monday night shift / dnd getAdjacentBlocks.current: Sunday sleep / offline ``` ## Additional context Generated schedules normally use separate `00:00-07:00` and `23:00-00:00` blocks, so this specifically affects user-edited overnight ranges. The smallest fix is one validated, day-aware range resolver shared by presence and adjacency/intent consumers, plus an overnight regression covering different Sunday and Monday statuses. <!-- task-id: conversation-overnight-schedule-range-day-ownership --> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:02 +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-Engine#2291
No description provided.