mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5526] [MERGED] Fix capability agent result finalization order #6796
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#6796
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/5526
Author: @SpicyMarinara
Created: 8/25/2026
Status: ✅ Merged
Merged: 8/25/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/5525-capability-agent-finalization📝 Commits (3)
b3d296ffix(agents): publish capability results after validationeeaa08cfix(agents): honor package context selectors2ef6a27fix(agents): guard alternate result paths📊 Changes
6 files changed (+59 additions, -3 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
packages/server/src/routes/generate.routes.ts(+11 -2)📝
packages/server/src/services/agents/agent-executor.ts(+3 -1)📝
packages/server/src/services/capability-packages/capability-agent-runtime.service.ts(+4 -0)📝
scripts/regressions/capability-agent-runtime.regression.ts(+4 -0)📝
scripts/regressions/prompt.regression.ts(+33 -0)📄 Description
Why
Capability-package post-processing output was reaching the browser before the package runtime could validate or normalize it. Memory Nag therefore exposed a model-selected character ID even though its finalizer would reject that value as a nonexistent memory. Package-defined built-ins also had no way to narrow the host lore sources supplied to their calls.
Closes #5525
Companion package: Pasta-Devs/Marinara-Agents#599
What changed
contextSourceson package-defined built-in Agents while preserving the full-context default for existing built-insValidation
pnpm checkpnpm exec tsx scripts/regressions/capability-agent-runtime.regression.tspnpm regression:promptLocal focused results: capability runtime and complete prompt regressions passed; Prettier and
git diff --checkpassed. Full workspace validation is delegated to the hosted PR lane.Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.