Main Question
How does a local-first system capture useful context and store it locally?
Role
Fellow 1 owns the part where context enters the local memory system.
This is the entry point of the Local Context Store.
Branch
feature/m01w02-create-context
Files Owned
src/python/local_first_ai/storage/create_context.py
assets/screenshots/month-01-week-02/fellow-1-create-context.png
Implementation Specification
Build an API that creates context items.
create_context_item(
context_type,
title,
content,
source=None,
tags=None,
importance=1
)
This function should save a context item into the SQLite database.
Example context item:
context_type: config_decision
title: Database choice
content: We chose SQLite because it is local, lightweight, and works offline.
source: week-02-discussion
tags: sqlite,database,local-first
importance: 5
What you must Prove
What you should prove that:
- A context item can be created.
- The item receives a unique ID.
- The item stores context_type correctly.
- The item stores title and content correctly.
- The item stores created_at and updated_at.
- Empty title is rejected.
- Empty content is rejected.
- Invalid context_type is handled clearly.
Main Question
How does a local-first system capture useful context and store it locally?
Role
Fellow 1 owns the part where context enters the local memory system.
This is the entry point of the Local Context Store.
Branch
feature/m01w02-create-context
Files Owned
src/python/local_first_ai/storage/create_context.py
assets/screenshots/month-01-week-02/fellow-1-create-context.png
Implementation Specification
Build an API that creates context items.
create_context_item(
context_type,
title,
content,
source=None,
tags=None,
importance=1
)
This function should save a context item into the SQLite database.
Example context item:
context_type: config_decision
title: Database choice
content: We chose SQLite because it is local, lightweight, and works offline.
source: week-02-discussion
tags: sqlite,database,local-first
importance: 5
What you must Prove
What you should prove that: