Skip to content

Feature: Add simple Factory Memory search endpoint #111

Description

@smithaldon1

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

  1. Ensure memory record schema and storage exist.
  2. Add minimal API route for listing records.
  3. Add basic query parameters only if directly useful.
  4. Add tests for empty and populated states.
  5. 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

  • Search is intentionally simple.
  • Advanced retrieval remains future work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Featurepost-demoNot required for the manufacturer demo path

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions