Skip to content

Read / Browse Context #5

Description

@Dumken1

Fellow 2 Main Question

After context is stored locally, how do we read it back clearly and usefully?

Role

Person owns the part where stored memory can be viewed again.
This is important because memory is useless if it cannot be inspected, filtered, or understood.

Branch

feature/m01w02-read-context

Files Owned

src/python/local_first_ai/storage/read_context.py
assets/screenshots/month-01-week-02/fellow-2-read-context.png

Implementation Specification

Build APIs that read context items.
list_context_items()
get_context_item(item_id)
list_context_by_type(context_type)
list_recent_context(limit=10)

Example output:

ID: 12
Type: config_decision
Title: Database choice
Tags: sqlite,database,local-first
Importance: 5
Created: 2026-...

What Fellow 2 Must Prove

Fellow 2 should prove that:

  1. All context items can be listed.
  2. One context item can be fetched by ID.
  3. Items can be filtered by context_type.
  4. Recent items can be listed.
  5. Empty database is handled clearly.
  6. Invalid ID does not crash the system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    points:size/mediumFlow Points: medium technical contribution, usually 30 points

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions