Skip to content

Store full heading paths - #47

Merged
xquantize merged 1 commit into
developfrom
agent/heading-paths
Oct 28, 2026
Merged

xquantize merged 1 commit into
developfrom
agent/heading-paths

Conversation

@xquantize

Copy link
Copy Markdown
Owner

XQU-35: Store full heading paths on cleaned sections (Parent > Child).

Acceptance criteria:

  • clean_sections nested headings produce "Parent > Child" (and longer paths for H4); lead remains ""
  • Dropped headings are omitted from the path but still pop/push so children do not inherit the previous kept ancestor
  • Chunk.section is that path (tested in tests/test_chunk.py)
  • bash scripts/check.sh prints CHECK PASSED
  • Only these files changed vs develop: src/swellsense/processing/clean.py, tests/test_clean.py, tests/test_chunk.py

Review: all checks passed. check.sh: CHECK PASSED locally.

Made with Cursor

Nested MediaWiki headings join ancestor titles with " > " so chunk
citations show section context; dropped boilerplate stays off the path
but still scopes the stack for nested kept headings.

Co-authored-by: Cursor <cursoragent@cursor.com>
@xquantize
xquantize merged commit 86961b0 into develop Oct 28, 2026
1 check passed
@xquantize
xquantize deleted the agent/heading-paths branch October 28, 2026 19:56
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