[GH-ISSUE #1669] [Feature]: provide macros for world state in game time/date/weekday #1652

Closed
opened 2026-10-26 04:02:22 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @stclaire on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1669

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Currently there are macros for real world time/date/weekday but no way to access the equivalent in game values in prompts, making it challenging to control other agents based on in game time. Being able to say if the current (in game) time is between x and y do z would be helpful.

Proposed package or change

Server code.

Why should this be optional?

You need the agent to track the in game time.

Alternatives considered

Additional context

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 @stclaire on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1669 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Currently there are macros for real world time/date/weekday but no way to access the equivalent in game values in prompts, making it challenging to control other agents based on in game time. Being able to say if the current (in game) time is between x and y do z would be helpful. <!-- Describe the pain point or missing capability. --> ## Proposed package or change <!-- Describe what the Agent should do, the chat modes it supports, and whether it needs UI or server code. --> Server code. ## Why should this be optional? <!-- Explain why this belongs in the downloadable catalog instead of the lightweight Engine core. --> You need the agent to track the in game time. ## Alternatives considered <!-- Any other approaches you considered. --> ## Additional context <!-- Optional: mockups, related issues, references, or examples. --> ## 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-26 04:02:22 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

So, like {{date.world_state}}, for example, to retrieve the date returned by the tracker.

<!-- gh-comment-id:6395500996 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): So, like {{date.world_state}}, for example, to retrieve the date returned by the tracker.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

Owner: @SpicyMarinara / Codex. I am implementing the tracked in-world date, time, and weekday macros in the Engine prompt runtime, where macro resolution is owned. Work will target staging and link back here; existing real-world clock macros will keep their behavior.

<!-- gh-comment-id:6395873366 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Owner: @SpicyMarinara / Codex. I am implementing the tracked in-world date, time, and weekday macros in the Engine prompt runtime, where macro resolution is owned. Work will target staging and link back here; existing real-world clock macros will keep their behavior.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 25, 2026):

Implemented in Engine PR #8301, merged to staging as 6a758226c56431db3487279dc22d14bea17cd2c3 from reviewed head 79a2c4179b0a0e33ce2af8e0c8fbce071fe7a656; ancestry is verified.

Use {{date.world_state}}, {{time.world_state}}, and {{weekday.world_state}} in prompts, conditionals and agent templates. These read the tracked scene clock, preserve its literal text and intentionally empty values, and keep existing real-world clock macros unchanged. Generation, regeneration, dry-run and live preview retain their selected snapshot; assembly-only previews can load the stored state.

Full local pnpm check, the complete prompt suite, real-database selected-swipe/null controls and local provider-prompt captures passed. The final repair had a substantive local CodeRabbit review, current-head Dottore was Viable, With Notes with its finding resolved, and all required CI, Node shards and platform jobs passed before merge. Post-merge staging CI is tracked separately as the sweep continues. Physical-device and real-provider checks are not claimed.

<!-- gh-comment-id:6397126226 --> @SpicyMarinara commented on GitHub (Oct 25, 2026): Implemented in [Engine PR #8301](https://github.com/Pasta-Devs/Marinara-Engine/pull/8301), merged to `staging` as `6a758226c56431db3487279dc22d14bea17cd2c3` from reviewed head `79a2c4179b0a0e33ce2af8e0c8fbce071fe7a656`; ancestry is verified. Use `{{date.world_state}}`, `{{time.world_state}}`, and `{{weekday.world_state}}` in prompts, conditionals and agent templates. These read the tracked scene clock, preserve its literal text and intentionally empty values, and keep existing real-world clock macros unchanged. Generation, regeneration, dry-run and live preview retain their selected snapshot; assembly-only previews can load the stored state. Full local `pnpm check`, the complete prompt suite, real-database selected-swipe/null controls and local provider-prompt captures passed. The final repair had a substantive local CodeRabbit review, current-head Dottore was **Viable, With Notes** with its finding resolved, and all required CI, Node shards and platform jobs passed before merge. Post-merge staging CI is tracked separately as the sweep continues. Physical-device and real-provider checks are not claimed.
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#1652
No description provided.