mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1209] [Feature]: Make Long-Term Memory extraction debug reporting trustworthy #620
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#620
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?
Originally created by @Promansis on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1209
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Extraction/LLM debug events can misreport token accounting and bury the failures users need.
Findings from a read-only pass at
324446533:evidence_unit_responseusesresult.usage?.promptTokens ?? 0(and the same pattern for completion/reasoning/total). When a provider omits usage, the summary shows a measured zero that can replace the earlier estimated prompt tokens fromevidence_unit_request.summarizeCountsinActivityView.tsxpreferspromptTokensoverinputTokensunconditionally, so a zero can override a real estimate.extract_source_note), buryingevidence_unit_response,finishReason, truncation, and context-budget failures.responseSnippet,finishReason, andevidence_unit_context_preflightfailures are already recorded but require expanding many events to find.Proposed package or change
No new providers or event fields are required beyond clearly marking estimated vs provider-reported usage.
Why should this be optional?
This is package-owned diagnostics for a downloadable Agent package (
long-term-memory). It ships with the package and should not become Engine core behavior.Alternatives considered
Adding a separate token-accounting subsystem was rejected; the existing events and
summarizeCountsare enough once estimated and reported values are distinguished.Additional context
Owner files:
ActivityView.tsx,evidence-unit-extraction.ts. Existing coverage:tests/long-term-memory-debug-log.regression.ts,tests/long-term-memory-routes.regression.ts,tests/long-term-memory-feedback-clarity-ui.regression.mjs. Evidence from a read-only investigation at324446533; no code changed yet.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: