Skip to content

docs: issue #19 summary strategy + Pyright fixture annotation fix - #41

Closed
davidgut1982 wants to merge 3 commits into
developfrom
docs/issue-19-summary-strategy
Closed

docs: issue #19 summary strategy + Pyright fixture annotation fix#41
davidgut1982 wants to merge 3 commits into
developfrom
docs/issue-19-summary-strategy

Conversation

@davidgut1982

Copy link
Copy Markdown
Owner

Summary

  • Document the LLM-free summary design and remove the summary-strategy schema (issue Document/relocate doc-summary strategy (caller/scheduler, not Lore) #19).
  • Fix Pyright errors in tests/e2e/conftest.py: four yielding fixtures (session_client, client, cleanup_topic, slow_client) were annotated with plain return types, triggering reportInvalidTypeForm / reportReturnType. They are now annotated as collections.abc.Iterator[...].

Pyright verification

Ran pyright on the affected files — 0 errors, 0 warnings:

  • tests/e2e/conftest.py
  • tests/e2e/test_search_modes.py
  • src/lore/extraction/__init__.py

Notes on the original diagnostic report

The three issues described in the task brief did not match the codebase:

  1. src/lore/extraction/filters.py exists and is correctly imported by __init__.py (filter_turns, DEFAULT_MAX_TURNS are actively used). No change made.
  2. The generator type errors were in conftest.py, not test_search_modes.py. Fixed there.
  3. test_search_modes.py imports pytest normally, already lives in tests/e2e/, and has 0 Pyright errors. No new file was created.

🤖 Generated with Claude Code

davidgut1982 and others added 3 commits June 1, 2026 15:18
feat: e2e extraction eval harness + resilience fixes
…19)

Removals:
- Drop "summary" from strategy enum in _TOOL_DEFINITIONS (kb_ingest_doc, kb_ingest_dir)
- Drop "summary" from Literal type in server_fastmcp.py (both kb_ingest_doc and kb_ingest_dir)

Documentation:
- Add "Why summary Strategy is Unsupported" section to DOCUMENT_INGESTION_GUIDE.md
- Explains Lore is LLM-free, gives the correct caller-side pattern, and shows
  the invalid_input envelope callers receive if they pass strategy="summary"
- Update the strategies bullet list to remove the stale "not yet implemented" note
The session_client, client, cleanup_topic, and slow_client fixtures use
yield but were annotated with plain return types (LoreClient / str),
triggering reportInvalidTypeForm/reportReturnType under Pyright. Annotate
them as collections.abc.Iterator[...] so the generator return types
type-check cleanly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@davidgut1982
davidgut1982 deleted the docs/issue-19-summary-strategy branch June 2, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant