[GH-ISSUE #7118] [Feature]: Let package threads start roleplay scenes (capability API 1.66) #3975

Closed
opened 2026-10-21 06:09:13 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7118

Originally assigned to: @Gunterlie on GitHub.

What problem does this solve?

A roleplay scene (/scene) can only branch from an Engine Conversation. Downloadable packages have their own conversations that are not Engine chats, for example Slurp's direct-message threads with Creators. Such a package cannot start a real scene from its thread today:

  • /scene/plan reads the origin Conversation's messages, so the package thread's context never reaches the planner.
  • /scene/create locks the origin Conversation, so the package thread cannot be locked while the scene runs.
  • /scene/conclude writes the recap into the origin Conversation, so the result never goes back to the package.
  • The scene bar's Back button goes to the origin Conversation, so it cannot return to the package.

The only options are workarounds: put the thread into the plan prompt, or create a hidden Conversation as a fake origin. Neither gives a lock or a way back.

Proposed solution

Capability API 1.66 adds a scenes permission and api.registerSceneOrigin(provider). With it, a package thread can be a scene origin in the same way a Conversation is:

  • getContext(originId) gives the cast, the persona, the recent transcript and notes that the origin owns.
  • claim(originId, scene) locks the thread. It returns false when the thread already has a scene.
  • release(originId, end) unlocks the thread and receives the outcome: concluded with the recap, or abandoned, deleted or converted.

The scene routes accept packageOrigin in place of a Conversation, and the scene stays an ordinary scene chat. The browser view gets startScene, which uses the planner and dialog or a plan the package wrote itself. It also gets openChat and a "show this thread" signal for the way back. The API is package-neutral. Slurp is the first user.

Alternatives considered

  • Put the DM transcript into the /scene/plan prompt and create a scene from a hidden Conversation. There is no lock and no way back, and it adds a stray Conversation.
  • Implement scenes only in Slurp. The Engine UI (End Scene, Back) would not work for these chats.

Additional context

The Slurp side is in Pasta-Devs/Marinara-Agents. It adds a locked DM thread, a "busy" Creator, a recap card and the continuity ledger, and it needs this Engine release first.

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 @Gunterlie on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7118 Originally assigned to: @Gunterlie on GitHub. ## What problem does this solve? A roleplay scene (`/scene`) can only branch from an Engine Conversation. Downloadable packages have their own conversations that are not Engine chats, for example Slurp's direct-message threads with Creators. Such a package cannot start a real scene from its thread today: - `/scene/plan` reads the origin Conversation's messages, so the package thread's context never reaches the planner. - `/scene/create` locks the origin Conversation, so the package thread cannot be locked while the scene runs. - `/scene/conclude` writes the recap into the origin Conversation, so the result never goes back to the package. - The scene bar's **Back** button goes to the origin Conversation, so it cannot return to the package. The only options are workarounds: put the thread into the plan prompt, or create a hidden Conversation as a fake origin. Neither gives a lock or a way back. ## Proposed solution Capability API 1.66 adds a `scenes` permission and `api.registerSceneOrigin(provider)`. With it, a package thread can be a scene origin in the same way a Conversation is: - `getContext(originId)` gives the cast, the persona, the recent transcript and notes that the origin owns. - `claim(originId, scene)` locks the thread. It returns false when the thread already has a scene. - `release(originId, end)` unlocks the thread and receives the outcome: `concluded` with the recap, or `abandoned`, `deleted` or `converted`. The scene routes accept `packageOrigin` in place of a Conversation, and the scene stays an ordinary scene chat. The browser view gets `startScene`, which uses the planner and dialog or a plan the package wrote itself. It also gets `openChat` and a "show this thread" signal for the way back. The API is package-neutral. Slurp is the first user. ## Alternatives considered - Put the DM transcript into the `/scene/plan` prompt and create a scene from a hidden Conversation. There is no lock and no way back, and it adds a stray Conversation. - Implement scenes only in Slurp. The Engine UI (End Scene, Back) would not work for these chats. ## Additional context The Slurp side is in Pasta-Devs/Marinara-Agents. It adds a locked DM thread, a "busy" Creator, a recap card and the continuity ledger, and it needs this Engine release first. ## 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.
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#3975
No description provided.