mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#805
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-Agents/pull/99
Author: @SpicyMarinara
Created: 7/24/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara
Base:
main← Head:fix/4026-map-draft-token-budget📝 Commits (1)
fdb0a7efix(hierarchical-maps): give map drafts enough output budget for reasoning models📊 Changes
9 files changed (+105 additions, -66 deletions)
View changed files
➕
artifacts/hierarchical-maps-1.1.8.zip(+0 -0)📝
catalog/catalog.json(+7 -7)📝
catalog/v2/catalog.json(+7 -7)📝
catalog/v3/catalog.json(+1 -1)📝
packages/hierarchical-maps/manifest.json(+3 -3)📝
packages/hierarchical-maps/server.mjs(+24 -24)📝
packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts(+52 -20)📝
packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/ai-draft.ts(+10 -3)📝
scripts/build-feature-packages.mjs(+1 -1)📄 Description
Linked issue
Closes #100
Refs Pasta-Devs/Marinara-Engine#4026
Why this change
In GM/Roleplay Hierarchical Maps, map-draft generation is truncated into invalid JSON for reasoning-heavy models (e.g.
glm-*:thinking), and raising the connection's Max Output Tokens doesn't help.The draft/expansion requests used small hardcoded per-size output budgets (
small6k /medium10k /large16k). Reasoning models spend much of that budget on hidden thinking, so the visible JSON is cut off and rejected. The connection's Max Output Tokens only ever caps the request (the Engine host appliesmin(request, override)), so a higher value can't raise the ceiling — exactly what the reporter saw after setting 16000. The capability resolves its model through the Engine host (languageModels.resolve()→chatComplete()), which exposes onlyconnectionId,model, andchatComplete— not the connection's Max Output Tokens — so it cannot read that setting to honor it directly. Raising the requested budget lets the Engine cap govern instead: a higher connection setting now takes effect, a lower one is still respected.What changed
packages/hierarchical-maps/src/engine/.../services/spatial-context/ai-draft.ts: raised the per-size request budgets —small6k→12k,medium10k→24k,large16k→40k — with a comment explaining the Engine-cap interaction.packages/hierarchical-maps/src/engine/.../routes/spatial-context.routes.ts: the/spatial-context/generatehandler now distinguishes failure modes instead of one generic error — empty response, invalid/truncated JSON (with a hint to raise Max Output Tokens or pick a smaller size), and structure mismatch (surfacing the normalizer's reason).hierarchical-mapsto 1.1.8: server bundle, manifest, catalog lanes v1/v2/v3, andartifacts/hierarchical-maps-1.1.8.zip.client.jsunchanged.Package and security impact
hierarchical-maps(1.1.7 → 1.1.8)Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
node scripts/build-feature-packages.mjs hierarchical-mapsandnode scripts/validate-catalog.mjsin the authoring session; both succeeded (catalog valid: 29 packages; lanes v2=29, v3=6). Please re-verify locally.glm-*:thinking) and a connection Max Output Tokens ~16000+, a medium hierarchical world map completes instead of truncating.Documentation impact
UI evidence (if applicable)
Not applicable — server-only change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.