mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5674] [MERGED] fix(agents): make Beholder's bare and missing flags manual-only #6876
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#6876
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/5674
Author: @GetBeholder
Created: 8/30/2026
Status: ✅ Merged
Merged: 8/30/2026
Merged by: @GetBeholder
Base:
staging← Head:fix/beholder-manual-only-flags📝 Commits (10+)
8d12f94fix(agents): make Beholder's bare and missing flags manual-onlyef952e5Merge remote-tracking branch 'origin/staging' into fix/beholder-manual-only-flagsf79e7d9test(agents): update the Beholder slot expectation to the manual-only contracta8f05ecfix(agents): only excuse a refused Beholder delta on a real slot6708c05Merge remote-tracking branch 'origin/staging' into fix/beholder-manual-only-flagsc14bddeMerge remote-tracking branch 'origin/staging' into fix/beholder-manual-only-flags68926dbMerge remote-tracking branch 'origin/staging' into fix/beholder-manual-only-flags86fadfafix(agents): keep manual flags across a full snapshotc6a903eMerge remote-tracking branch 'origin/staging' into fix/beholder-manual-only-flags6f2c36dfix(agents): match names case-insensitively and keep the carried state normalized📊 Changes
3 files changed (+310 additions, -3 deletions)
View changed files
📝
packages/server/src/services/agents/beholder-state.ts(+90 -2)➕
scripts/regressions/beholder-manual-only-flags.regression.ts(+209 -0)📝
scripts/regressions/prompt.regression.ts(+11 -1)📄 Description
Pull request
Linked issue
Closes #
Why this change
missingandbare; Beholder should not apply either on its own. Both are destructive when wrong —missingtakes over a slot outright and cascades distally,barecontradicts whatever is worn there.baremissingbareis more wrong than right, andmissingwas never emitted at all — so this costs three true positives and saves five false ones.missingfor the same reason since its first release, and now refusesbarealongside it. This brings the agent in line.What changed
beholder-state.ts: both flags are stripped inresolveBeholderStateResponse, the single point where a model reply becomes state, so the delta path and the full-snapshot path are covered together. Nothing else in the reply is touched —worn_removein particular still works, and there is a test for it."empty or unusable state delta". The agent refused it on purpose; surfacing that as an extraction failure would hand the operator an error they can neither act on nor reproduce.Package and security impact
beholder(agent behaviour only; no manifest or catalog change)Validation
node ./scripts/run-regressions.mjs --filter scripts/regressions/beholder-manual-only-flags.regression.tspassesbeholder-*regressions still passtsc --noEmit -p packages/server/tsconfig.jsonclean for the changed fileManual verification notes
The two unticked boxes are honest: this is a server-side behaviour change with no package payload, so there is nothing to install, and I verified it through the regression harness rather than a live chat.
New regression covers: a delta proposing
missingdoes not take the slot; a delta proposingbaredoes not take the slot and does not disturb what is worn there; the flags are dropped while wounds and held items in the same slot survive; a full-snapshot reply is stripped the same way; andworn_removestill removes the named garment.Documentation impact
UI evidence (if applicable)
None — no UI change.
Summary by CodeRabbit
Bug Fixes
missingandbareflags in generated responses.Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.