Skip to content

Add MediaWiki section cleaning for stage 3 slice 1 - #39

Merged
xquantize merged 1 commit into
developfrom
agent/stage-3-clean-sections
Oct 28, 2026
Merged

xquantize merged 1 commit into
developfrom
agent/stage-3-clean-sections

Conversation

@xquantize

Copy link
Copy Markdown
Owner

XQU-11: Clean MediaWiki plain text into sections for stage 3 slice 1.

Acceptance criteria:

  • tests/test_clean.py covers lead section, no-heading lead, nested headings 2/3/4, six dropped boilerplate headings (parametrised, mixed case), empty section dropped, nested heading under a dropped section kept, whitespace normalisation, empty input returns []
  • No test does I/O, network or LLM calls; no text copied from data/raw/
  • docs/plans/stage-3.md has the Slice 1 box ticked and no other change
  • AGENTS.md has only the one new Layout line for src/swellsense/processing/ (roadmap stage 3 not ticked)
  • bash scripts/check.sh prints CHECK PASSED
  • Only these files changed: src/swellsense/processing/init.py, src/swellsense/processing/clean.py, tests/test_clean.py, docs/plans/stage-3.md, AGENTS.md

Review: all checks passed. check.sh: CHECK PASSED locally (341 tests).

Human: the stage 3 plan asks you to spot-check one cleaned real page before relying on this (agents cannot read data/raw/). That is your step; it did not block this merge.

Made with Cursor

Split plain text on heading lines, drop boilerplate sections, and
normalise whitespace so slice 2 can chunk citation-ready bodies.

Co-authored-by: Cursor <cursoragent@cursor.com>
@xquantize
xquantize merged commit cc94476 into develop Oct 28, 2026
1 check passed
@xquantize
xquantize deleted the agent/stage-3-clean-sections branch October 28, 2026 02:45
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