mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8100] [MERGED] feat(mari): split big writes up front on a small output limit #8102
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#8102
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/8100
Author: @ylli-selmani
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/mari-output-limit-handbooks📝 Commits (7)
a46c89bfeat(mari): ask for split writes up front when the output limit is smallba53c89docs(mari): tell the handbooks how to split writes on a small output limit477a166test(mari): a cut claim after a dry run is redone smaller, not dry-run repairedf2346fdfix(mari): ignore a Max Output Tokens the send map switches off0a0c9badocs(mari): split lorebook creates on a small output limit too816d036test(mari): pin the small-limit clause on the permanent lorebook line037b02dfix(mari): state a small output limit in the classic prompt too📊 Changes
9 files changed (+107 additions, -9 deletions)
View changed files
📝
packages/server/src/assets/mari-skills/characters.md(+1 -0)📝
packages/server/src/assets/mari-skills/extensions.md(+1 -0)📝
packages/server/src/assets/mari-skills/lorebook.md(+1 -0)📝
packages/server/src/assets/mari-skills/onboarding.md(+3 -0)📝
packages/server/src/assets/mari-skills/presets.md(+1 -0)📝
packages/server/src/assets/mari-skills/themes.md(+1 -0)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+32 -7)📝
scripts/regressions/professor-mari/builtin-skills.regression.ts(+47 -2)📝
scripts/regressions/professor-mari/pi-runtime.regression.ts(+20 -0)📄 Description
Linked issue
Part of #8096 (part 2 of the output-limit work; part 1 was #8090). Not
Closes: theme partial-CSS edits still need their own Engine action, a separate follow-up PR.Why this change
character.createwith the full card", "create the whole payload in one call"). On a small limit that one call is exactly what gets cut.What changed
Prompt (visible to the model only on small limits)
mariMaxOutputTokens()resolves the limit for both the prompt and the request options, so they cannot disagree. A Max Output Tokens switched off in the connection's send map is never sent, so it no longer counts as the limit (the connection override or the model's known limit does).Handbooks (
assets/mari-skills/)Each one that pushed a single big call now says what to do "when the output limit is small (your workspace rules say so, or a reply was cut at it)":
name,descriptionandpersonality, then onecharacter.updateper reply. This is an explicit exception to the "no placeholder" rule.lorebook.addEntryper reply (never an empty book). The permanent-prompt lorebook line says the same in a short clause: the prompt is now 15,799 characters, still under the 15,850 cap.addSection/addChoiceBlockper reply, in prompt order. It builds on #8091's text, wherepreset.updaterefusessections.cssorjs, then add the other in an update (updates merge).serverJscannot be split.readBack, or the user's Accept when held). The block itself cannot be split: each question list replaces the whole list.Regressions
builtin-skills.regression.ts: the hint appears at 1024 and 4096, not at 8192 or with no limit, in both the pi and the classic prompt; a send-map-disabled 1024 does not count as the limit. Each of the six handbooks carries the small-limit line; with the themes line reverted, this check fails.pi-runtime.regression.ts: after a dry-run write, an uncut "it is saved" claim draws the dry-run repair (control). The same claim cut at the limit gets the engine note instead.Slices
cssreplaces the whole stylesheet andtheme.updatereads onlyname/css. Out of scope here: the Engine action is a separate PR.a46c89b0a)ba53c89d7)477a166bd)f2346fd76(a Max Output Tokens switched off in the send map still counted as the limit; regression fails on the old code). The rerun hit the 3/hour quota, so the GitHub review covers the final push.0a0c9baf5; the permanent-prompt clause is pinned by a regression in816d036eb037b02d77: one shared rule line, fed to both promptsValidation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run results:
pnpm checkpassed.node ./scripts/run-regressions.mjs --filter regressions/professor-mari/(20/20) and--filter regressions/mari/(35/35) passed, as didmari-package-serviceandprofessor-mari-onboarding-guidance(classic-prompt callers). No live run against a small-output model yet.Manual verification notes
character.createwith the full card.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The handbooks are Mari's own prompt assets, not user docs under
docs/, so no translation follow-up.UI evidence (if applicable)
None: nothing on screen changes. The effect is in what Mari sends on a small-limit connection.
@SpicyMarinara
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.