discord_response: add split() API + list-continuity + boundary tests (delta from #234) #270

Closed
opened 2026-08-12 09:35:33 +00:00 by Mark · 0 comments
Owner

Phase-4 splitter landed in 5a1d111 (runtime/discord_response.py, commit local-only — NOT pushed to origin; #234 still open). Spec for the splitter acceptance (kanban t_e72a652c) is not fully met:

  1. Missing split(text: str, limit: int = 2000) -> list[str] public API — only chunk_text() exists.
  2. Markdown list continuity not preserved: paragraph/sentence/word splitter has no list awareness, so an oversized markdown list gets word-split mid-item.
  3. Missing unit tests: exactly-2000-char boundary, nested code blocks (only single-fence covered).

Existing: 13 tests pass, ruff clean. Verify with pytest tests/unit/test_discord_response.py + ruff check on runtime/discord_response.py.

Phase-4 splitter landed in 5a1d111 (runtime/discord_response.py, commit local-only — NOT pushed to origin; #234 still open). Spec for the splitter acceptance (kanban t_e72a652c) is not fully met: 1. Missing split(text: str, limit: int = 2000) -> list[str] public API — only chunk_text() exists. 2. Markdown list continuity not preserved: paragraph/sentence/word splitter has no list awareness, so an oversized markdown list gets word-split mid-item. 3. Missing unit tests: exactly-2000-char boundary, nested code blocks (only single-fence covered). Existing: 13 tests pass, ruff clean. Verify with pytest tests/unit/test_discord_response.py + ruff check on runtime/discord_response.py.
Mark 2026-08-13 22:59:51 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/mesh-seed#270
No description provided.