second-brain/src/second_brain
Travis Herbranson 09efbb5965 settings: v2 migration + ORM + settings_store helper
Introduces second_brain.pipeline_settings — the single-row config row
the upcoming web dashboard edits and the workers read at the start of
each run. Pinned to id=1 by a CHECK constraint so upserts-by-PK keep
the table singleton, and the migration seeds the row with the table's
column defaults via INSERT ... ON CONFLICT DO NOTHING.

Two consumer groups carved out:
- transcription_* fields persist now; future tower-side worker reads them.
- extraction_* fields will be read by the existing scheduler in the next
  commit, which is the actual behavior change Travis cares about today.

The settings_store helper centralises get/update + form-parsing
(time-of-day, int-or-none) and active-window math so the routes and the
scheduler don't reimplement them.
2026-05-25 08:11:53 -04:00
..
adapters gauntlet: fix lint — drop unused imports + reorder models.py + add dev deps 2026-05-24 22:52:08 -04:00
compiler gauntlet: fix lint — drop unused imports + reorder models.py + add dev deps 2026-05-24 22:52:08 -04:00
context gauntlet: fix lint — drop unused imports + reorder models.py + add dev deps 2026-05-24 22:52:08 -04:00
embeddings embeddings: register pool close() at interpreter exit 2026-05-24 23:33:13 -04:00
extractor gauntlet: fix lint — drop unused imports + reorder models.py + add dev deps 2026-05-24 22:52:08 -04:00
llm switch extractor to Claude CLI backend + pipeline fixes 2026-05-24 21:09:20 -04:00
scheduler gauntlet: fix lint — drop unused imports + reorder models.py + add dev deps 2026-05-24 22:52:08 -04:00
web gauntlet: fix lint — drop unused imports + reorder models.py + add dev deps 2026-05-24 22:52:08 -04:00
__init__.py project init 2026-05-22 19:08:22 -04:00
config.py postgres migration: schema, models, embeddings, alembic 2026-05-24 22:46:48 -04:00
database.py postgres migration: schema, models, embeddings, alembic 2026-05-24 22:46:48 -04:00
main.py gauntlet: fix lint — drop unused imports + reorder models.py + add dev deps 2026-05-24 22:52:08 -04:00
models.py settings: v2 migration + ORM + settings_store helper 2026-05-25 08:11:53 -04:00
settings_store.py settings: v2 migration + ORM + settings_store helper 2026-05-25 08:11:53 -04:00