mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7570] [MERGED] Add an experimental Pi runtime for Professor Mari #7806
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7806
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7570
Author: @Gunterlie
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/mari-pi-runtime📝 Commits (10+)
d29a2dfMove Mari's workspace tool commands into WorkspaceCommandsd2817edKeep executeWorkspaceCommand delegate reachable for scripts466db9aExtract Mari's per-round safety review into workspace-round-review0ff8b5bExtract Mari's message storage into workspace-message-store11f7340Pin the round-review call sites in the run loop and format touched regressions5985535Mark type-only imports in workspace-commandsb999a87Add pi-coding-agent 1.1.0 to the server234ddaeAdd the mariRuntime setting, status fields and route8cba364Pin pi 1.2.0 and split the workspace knowledge prompt from the JSON protocolde61130Add the pi runtime loop and branch Professor Mari's prompt to it📊 Changes
40 files changed (+5777 additions, -1434 deletions)
View changed files
📝
docs/home/professor-mari.md(+8 -0)📝
packages/client/src/components/chat/mari/MariTranscript.tsx(+1 -0)📝
packages/client/src/components/chat/mari/MariWorkTimeline.tsx(+33 -6)📝
packages/client/src/components/chat/mari/use-mari-workspace-run.ts(+17 -1)📝
packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx(+88 -0)📝
packages/client/src/lib/mari-referenced-resources.ts(+20 -0)📝
packages/client/src/lib/settings-registry.ts(+8 -0)📝
packages/client/src/localization/locales/en.json(+8 -0)📝
packages/client/src/stores/chat.store.ts(+13 -0)📝
packages/client/src/styles/mari.css(+17 -0)📝
packages/server/package.json(+2 -0)📝
packages/server/src/routes/generate.routes.ts(+22 -7)📝
packages/server/src/routes/professor-mari-workspace.routes.ts(+22 -1)📝
packages/server/src/services/llm/providers/openai.provider.ts(+3 -3)📝
packages/server/src/services/llm/textual-tool-call-parser.ts(+250 -23)📝
packages/server/src/services/mari-db/mari-db.service.ts(+10 -0)➕
packages/server/src/services/professor-mari/pi-runtime.ts(+946 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+613 -1337)➕
packages/server/src/services/professor-mari/workspace-commands.ts(+1090 -0)➕
packages/server/src/services/professor-mari/workspace-message-store.ts(+115 -0)...and 20 more files
📄 Description
Linked issue
No linked issue. This is planned work: the integration branch for the experimental Pi runtime for Professor Mari. It carries the five reviewed slices #7520, #7523, #7533, #7546 and #7567, plus a merge of current
staging.Why this change
What changed
mariRuntime:classic(default) orpi, with a Runtime row below Permissions mode in Search and Professor Mari settings.GET/PUT /runtimesits next to/permissions-modebehind the same privileged gate. Professor Mari cannot change the key through raw DB writes.~/.pi. pi's built-in tools are off; the only tools are Marinara's. Session creation fails closed if any active tool is not Marinara's. No extensions, skills, context files or MCP config are loaded. Pi passes the connection's own reasoning settings. There is no 12-round cap (safety cap 400) and pi compacts context inside a long run.claude_subscription,grok_subscription) use a textual tool-call mode. Pi also got the empty-answer retry, the duplicate-call skip, parallel reads, a summary at the round limit and the cut-off reply guard.@earendil-works/pi-coding-agentand@earendil-works/pi-aipinned at exact1.2.0. They add 86 packages to the lockfile: MIT (43), Apache-2.0 (35), BSD-3-Clause (3), ISC (3), Unlicense (1), BlueOak-1.0.0 (1). All are permissive and compatible with AGPL-3.0. No install scripts, no native binaries.docs/home/professor-mari.mdhas a short section on the Pi runtime.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Not done by a person on this merged state. To verify by hand:
pnpm installmust succeed with the pi packages.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/home/professor-mari.mdchanged. Thedocs-i18nfollow-up issue is #7571.UI evidence (if applicable)
No screenshots are attached. A person should attach the Runtime row, the live words line and a batch step row.
Proof
pnpm checkpassed (exit 0, includes the build). Regressions passed:professor-mari18/18,mari/32/32,mari-17/17,provider-stream1/1,prompt.regression7/7.pnpm install --frozen-lockfilepassed after the merge.ef6bb34a3ran on that instance.pi-coding-agent1.2.0 was published on 2026-10-13. The workspaceminimumReleaseAgerule (24 hours) blocks a fresh resolution of it until 2026-10-14; installs from the committed lockfile work.Known limits
app_datareads run one after another on Pi.Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.