orxtra v0.13.0 /overseer.src.orxtra.overseer._learning
On this page

Lesson retrieval and staleness detection: query_relevant_lessons fetches tag-matched lessons from trace; check_staleness/filter_stale_lessons flag lessons whose source files changed since, via git log.

#overseer.src.orxtra.overseer._learning

#overseer.src.orxtra.overseer._learning

#query_relevant_lessons

python
async def query_relevant_lessons(pool: Any, run_id: UUID, tags: list[str]) -> list[dict[str, Any]]

#check_staleness

python
async def check_staleness(lesson_source_files: list[str], repo_dir: Path, created_at: str) -> bool

Check if any source file was modified after the lesson was created.

#filter_stale_lessons

python
async def filter_stale_lessons(lessons: list[dict[str, Any]], repo_dir: Path) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]

Split lessons into (fresh, stale) based on source file changes.

Search