(raw any)
| 280 | if !ingested.Durable { |
| 281 | if ingestErr != nil { |
| 282 | return "", ingestErr |
| 283 | } |
| 284 | return "", errors.New("memory fabric did not confirm durable event ingestion") |
| 285 | } |
| 286 | c.advanceFabricCursor(payload) |
| 287 | |
| 288 | semanticStatus := ingested.SemanticStatus |
| 289 | var semanticErr error |
| 290 | if len(sourceIDs) > 0 { |
| 291 | committed, err := c.Engine.Remember(ctx, memory.MemoryRequest{ |
| 292 | Space: fabricMemorySpace(c.Config), ContextID: payload.SessionID, SourceEventIDs: sourceIDs, |
| 293 | Mode: mode, RequireSemantic: true, |
| 294 | Instructions: "The user explicitly requested durable semantic memory; preserve scope and correction intent.", |
| 295 | }) |
| 296 | semanticStatus = committed.SemanticStatus |
| 297 | semanticErr = err |
| 298 | } |
| 299 | |
| 300 | summary := fmt.Sprintf("Memory Fabric stored %d raw event(s); semantic status: %s.", len(events), semanticStatus) |
| 301 | formatted := FormatExtractionResult(summary) |
| 302 | c.mu.Lock() |
no test coverage detected