Summary
Add a simple local API endpoint for retrieving Factory Memory records.
Parent Epic
#16
Problem / Need
Future investigations need a basic way to retrieve prior resolved findings without adding advanced retrieval infrastructure too early.
Demo relevance
Future work. Not part of the shortest working demo.
Scope
- Add a simple list/search endpoint over local memory records.
- Support basic filters only if needed, such as detection type or work order.
- Return traceable memory records.
- Add API tests.
Out of scope
- Vector search.
- Semantic search.
- RAG.
- Authenticated access control.
- Production database indexing.
Suggested Steps
- Ensure memory record schema and storage exist.
- Add minimal API route for listing records.
- Add basic query parameters only if directly useful.
- Add tests for empty and populated states.
- Document endpoint and update learning log.
Acceptance Criteria
- API can list memory records from local storage.
- API handles empty memory state clearly.
- API returns traceability fields.
- Tests cover basic retrieval behavior.
- No vector/embedding dependency is added.
Test Plan
- Run API tests.
- Run
make test.
- Manually query endpoint after creating a demo record.
Documentation Impact
- Update API or Factory Memory docs.
- Update
docs/LEARNING_LOG.md.
Readiness Checklist
Summary
Add a simple local API endpoint for retrieving Factory Memory records.
Parent Epic
#16
Problem / Need
Future investigations need a basic way to retrieve prior resolved findings without adding advanced retrieval infrastructure too early.
Demo relevance
Future work. Not part of the shortest working demo.
Scope
Out of scope
Suggested Steps
Acceptance Criteria
Test Plan
make test.Documentation Impact
docs/LEARNING_LOG.md.Readiness Checklist