Pulse/internal/ai/memory
rcourtman e5cad4c2c3 Persist remediation log writes synchronously
Log and MarkRolledBack saved through fire-and-forget goroutines, so a
write could land after the owner tore down the data dir and the newest
record could be dropped entirely on process exit. CI hit the teardown
race as TempDir cleanup failures in internal/ai/memory, and the mtime
quiescence helper cannot see a goroutine that has not written yet. The
single production write site runs after a remediation command has
already executed, so the small synchronous file write costs nothing
observable. Mutation now happens under the lock, persistence after
release, still serialized by persistMu.

Contract-Neutral: behavioral bug fix: remediation log fire-and-forget saves raced owner teardown and could drop the newest record on exit; no public contract delta
2026-08-14 06:37:03 +01:00
..
branchcov0723pm_test.go Serialize remediation history persistence 2026-08-05 11:48:08 +01:00
change_detector_memory_regression_test.go test: add memory regression coverage for AI stores 2026-02-04 19:56:12 +00:00
changes.go Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
changes_concurrency_test.go feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
context.go Remove 198 unreachable Go functions 2026-06-03 12:29:37 +01:00
context_test.go test: expand backend coverage 2026-01-25 21:08:44 +00:00
incident_memory_regression_test.go test: add AI memory regression coverage 2026-02-04 19:46:20 +00:00
incidents.go Harden AI memory persistence roots 2026-03-29 14:28:48 +01:00
incidents_test.go Split incident shell from read model 2026-03-20 11:59:40 +00:00
memory_coverage_test.go Remove Assistant pre-model context heuristics 2026-05-15 16:28:17 +01:00
memory_extended_test.go Remove Assistant pre-model context heuristics 2026-05-15 16:28:17 +01:00
memory_test.go Remove Assistant pre-model context heuristics 2026-05-15 16:28:17 +01:00
paths.go Dedupe AI runtime guest-family, tool-pipeline, and provider clones 2026-06-10 09:38:52 +01:00
presentation.go Centralize AI memory change conversion 2026-03-19 03:39:38 +00:00
presentation_test.go Centralize AI memory change conversion 2026-03-19 03:39:38 +00:00
remediation.go Persist remediation log writes synchronously 2026-08-14 06:37:03 +01:00
remediation_memory_regression_test.go Remove Assistant pre-model context heuristics 2026-05-15 16:28:17 +01:00