mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7523] [MERGED] Professor Mari: experimental pi runtime, switchable in her settings #7774
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#7774
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/7523
Author: @Gunterlie
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @Gunterlie
Base:
feat/mari-pi-runtime← Head:feat/mari-pi-runtime-2-pi📝 Commits (10+)
b999a87Add 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 it3ef8245Add the pi runtime regressiond0c89fdKeep the classic loop header and the Permissions Mode floor text intacta0bba05Format the pi runtime changes86c3c88Add the Professor Mari runtime switch to the omnibar settings6100eb9Review each pi turn on turn_end, replay provider metadata, end chip-only turns, fail closed on the tool set0cdd3f5End chip-only pi turns only when they carry text; reset the understood-request record before the prompt📊 Changes
15 files changed (+2649 additions, -82 deletions)
View changed files
📝
docs/home/professor-mari.md(+8 -0)📝
packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx(+88 -0)📝
packages/client/src/lib/settings-registry.ts(+8 -0)📝
packages/client/src/localization/locales/en.json(+6 -0)📝
packages/server/package.json(+2 -0)📝
packages/server/src/routes/professor-mari-workspace.routes.ts(+22 -1)📝
packages/server/src/services/mari-db/mari-db.service.ts(+10 -0)➕
packages/server/src/services/professor-mari/pi-runtime.ts(+673 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+258 -67)📝
packages/server/src/services/professor-mari/workspace-round-review.ts(+2 -2)➕
packages/shared/src/constants/mari-runtime.ts(+15 -0)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/types/professor-mari-workspace.ts(+7 -0)📝
pnpm-lock.yaml(+925 -12)➕
scripts/regressions/professor-mari/pi-runtime.regression.ts(+624 -0)📄 Description
Linked issue
No linked issue. This is planned work: slice 2 of 2 on the integration branch
feat/mari-pi-runtime. It is stacked on slice 1 (#7520) and targets that branch, so the diff shows only this slice; retarget tofeat/mari-pi-runtimeonce #7520 is merged.Why this change
What changed
mariRuntime:classic(default) orpi.GET/PUT /runtimenext to/permissions-mode, same privileged gate. The workspace status reportsruntimeSelected,runtimeActive,runtimeNote. Professor Mari cannot change the key through raw DB writes.pi-runtime.ts). pi's agent loop drives the run. Model requests go through Marinara's own provider layer; no pi auth, no pi model registry, nothing read from or written to~/.pi. pi's built-in tools are off; the only tools are Marinara's, executed throughWorkspaceCommandsfrom slice 1. Session creation fails closed if any active tool is not Marinara's. No extensions, skills, context files or MCP config are loaded.none.claude_subscription,grok_subscriptionand providers without native tool calls run classic; the status and the settings row say so.MAX_PI_TOOL_ROUNDS= 400). pi compacts context inside a long run.@earendil-works/pi-coding-agentandpi-aipinned at exact1.2.0(91 packages in the lockfile, 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 yet. To verify by hand:
sillytaverntheme and with a screen reader.pnpm installmust succeed with the pi packages.bwrap.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 is still owed; it belongs with the final PR fromfeat/mari-pi-runtimeintostaging.UI evidence (if applicable)
Screenshots at 390 / 768 / 1440 px (classic, Pi, Pi with fallback) were taken by an agent on a local build and are not uploaded here. A person should attach fresh ones.
Proof
Run by agents on commit
cfabb606a(the docs commit on top changes no code):pnpm check: exit 0. Server typecheck clean.node ./scripts/run-regressions.mjs --filter mari: 50/50 passed.scripts/regressions/professor-mari/pi-runtime.regression.ts(new, scripted fake provider, no network): passed. It covers tool execution throughWorkspaceCommands, Manual hold with and without text, the Accept run, Plan, Bypass, abort, the classic fallback, the closed tool set, provider-metadata replay, invalid tool calls, the round cap, chips, reasoning options and false "held" claims.pnpm localization:check: passed.Real models, through an OpenAI-compatible gateway on a private data copy (Claude Sonnet 5.5 with thinking, MiniMax M3, DeepSeek V4 Flash with thinking), results judged from stored data:
mediumon the connection the Pi request log showsEffort: medium; classic showsnone.Known failures and limits:
ponytail:inpi-runtime.ts). Same trust model as classic's silent frames.openai.provider.ts(near lines 1913 and 2123) drops the visible text when it parses a tool call written as text, so a question next to such a call never reaches the approval checks. This affects both runtimes.minimumReleaseAgeat install time. It was installed once with the age check off for@earendil-works/*on the command line;pnpm-workspace.yamlis unchanged. From 2026-10-13 23:03 UTC the versions pass the rule on their own.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.