[GH-ISSUE #1212] [Feature]: Trace Long-Term Memory recall through confirmed injection #621

Closed
opened 2026-10-20 17:29:06 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1212

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Recall selection and confirmed injection are not correlated, and early exits are silent.

Findings from a read-only pass at 324446533:

  • Recall selection (recall_explanation) happens before confirmed dispatch (recordGenerationLongTermMemoryDispatch).
  • Empty context, cancellation, or failures can leave no explanation while an older receipt remains.
  • not_recorded cannot distinguish "debug was off", "recall never ran", "agent inactive", or "query empty".
  • Host-side non-invocation must stay unknown rather than being guessed.

Proposed package or change

  • Add a shared attempt/receipt identifier between the recall explanation and the dispatch outcome.
  • Record observed package-side outcomes for calls the package receives: completed, skipped with an observed reason, cancelled, or failed. Do not guess host-side non-invocation.
  • Keep the existing prompt-presence check and privacy boundaries unchanged.

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

Reusing the existing receipt id alone was considered, but the recall explanation is written before a receipt exists, so a shared attempt id generated earlier is the smaller change.

Additional context

Owner files: generation-injection.ts, usage.ts, ActivityView.tsx, LastInjectionSummary.tsx. This change is lifecycle/receipt-sensitive and should land after the UI cleanup and the recall-explanation completeness work. Evidence from a read-only investigation at 324446533; 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:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1212 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Recall selection and confirmed injection are not correlated, and early exits are silent. Findings from a read-only pass at `324446533`: - Recall selection (`recall_explanation`) happens before confirmed dispatch (`recordGenerationLongTermMemoryDispatch`). - Empty context, cancellation, or failures can leave no explanation while an older receipt remains. - `not_recorded` cannot distinguish "debug was off", "recall never ran", "agent inactive", or "query empty". - Host-side non-invocation must stay unknown rather than being guessed. ## Proposed package or change - Add a shared attempt/receipt identifier between the recall explanation and the dispatch outcome. - Record observed package-side outcomes for calls the package receives: completed, skipped with an observed reason, cancelled, or failed. Do not guess host-side non-invocation. - Keep the existing prompt-presence check and privacy boundaries unchanged. ## 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 Reusing the existing receipt id alone was considered, but the recall explanation is written before a receipt exists, so a shared attempt id generated earlier is the smaller change. ## Additional context Owner files: `generation-injection.ts`, `usage.ts`, `ActivityView.tsx`, `LastInjectionSummary.tsx`. This change is lifecycle/receipt-sensitive and should land after the UI cleanup and the recall-explanation completeness work. Evidence from a read-only investigation at `324446533`; 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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:29:06 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#621
No description provided.