Goal

Day 7 added semantic memory creation to ClaimFlow AI.

Before Day 7, ClaimFlow could store and retrieve episodic memories such as:

Day 7 adds the next layer:

repeated episodic memories
→ deterministic pattern detection
→ semantic workflow memory
→ future claims can retrieve the pattern safely

Semantic memory does not become claim evidence. It only helps the agent route future claims to review or ask a reviewer to verify risky fields.


Files implemented

packages/memory/patterns/
  find-repeated-memory-patterns.ts
  consolidate-pattern-memory.ts
  maybe-create-pattern-memory.ts

packages/memory/scripts/
  smoke-test-memory-patterns.ts

The package exports were also updated so the pattern layer can be used from @repo/memory.


What semantic memory means in ClaimFlow

Episodic memory remembers a specific event.

Example:

Reviewer corrected policyNumber in old claim CLM-OLD-FIELD-1.

Semantic memory generalizes repeated events.