Skip to content

Comments

Stabilize section link resolution determinism#8

Merged
awakecoding merged 11 commits intomasterfrom
fix-stuff
Feb 18, 2026
Merged

Stabilize section link resolution determinism#8
awakecoding merged 11 commits intomasterfrom
fix-stuff

Conversation

@awakecoding
Copy link
Owner

Summary

  • Make DOCX Strategy A GUID-to-section mapping deterministic (stable ordering, unique-match guards, deterministic fuzzy tie-break).
  • Prefer explicit numeric section link text when rewriting GUID anchors during cleanup.
  • Make section-number GUID rewrites strict: only rewrite when the target section exists in the document.
  • Add regression tests for numeric precedence and strict rewrite behavior.

Validation

  • Ran non-live tests: Invoke-Pester ./tests -ExcludeTag Live -Output Detailed
  • Result: 5 passed, 0 failed.

Determinism verification

@awakecoding awakecoding merged commit e789a3d into master Feb 18, 2026
2 checks passed
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