mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #452] [MERGED] fix(beholder): extract one message per run #976
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#976
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/452
Author: @GetBeholder
Created: 8/20/2026
Status: ✅ Merged
Merged: 8/20/2026
Merged by: @GetBeholder
Base:
staging← Head:fix/beholder-context-size-one📝 Commits (1)
663d7dbfix(beholder): extract one message per run📊 Changes
6 files changed (+15 additions, -15 deletions)
View changed files
➕
artifacts/beholder-1.2.2.zip(+0 -0)📝
catalog/catalog.json(+4 -4)📝
catalog/v2/catalog.json(+4 -4)📝
catalog/v3/catalog.json(+4 -4)📝
packages/beholder/agents.json(+1 -1)📝
packages/beholder/manifest.json(+2 -2)📄 Description
Linked issue
Closes #435
Follow-up to #436 — same setting, corrected.
Why this change
contextSize: 2was my error in #436. I reasoned that since Beholder runs once per assistant turn, the "new content since the last run" is the user message plus the reply, so it should see both.That is not how the extractor works. The reference implementation hooks user turns and AI messages separately and runs an extraction for each one, against the state the previous extraction left behind. One message in, one delta out. The prompt is written for exactly that — it says to read "the new message", singular, and reports what changed "in this message" — and the tracked state passed alongside already carries everything before it.
Handing it two messages at once is a shape it was neither trained nor evaluated on.
What changed
Package
beholder,1.2.1→1.2.2. One default:contextSize2→1. Beholder runs once per assistant turn, so one message per run is the reply that just arrived.maxTokens(4096) andtemperature(0) are unchanged, prompts untouched.Package and security impact
beholderengine.minstays2.4.4Known gap, stated plainly
Because the Engine runs this Agent in the post-processing phase, only the assistant turn triggers it. State a user describes solely in their own message — "I take off my coat" with no acknowledgement in the reply — therefore is not extracted, where the reference would have caught it on its user-turn hook. Running the Agent twice per turn would close that, at double the calls; it is not worth it, and it is not what this package should decide unilaterally. Noting it so the trade-off is visible rather than discovered.
Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Left for a human. Ran and passing:
build-agent-catalog.mjs beholder,validate-catalog.mjs(35 packages, lanes v2=35 v3=35),test-catalog-lanes.mjs,validate-package-locales.mjs,npm run check(exit 0),git diff --check. Both prompt templates are byte-identical to 1.2.1 — this is one integer.Not done: no install through a running Engine.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.