Skip to content

Wordforms: link analyses to a POS created in the same run (closes #166) - #220

Merged
MattGyverLee merged 1 commit into
mainfrom
fix-166-wordform-planned-pos-link
Nov 2, 2026
Merged

MattGyverLee merged 1 commit into
mainfrom
fix-166-wordform-planned-pos-link

Conversation

@MattGyverLee

Copy link
Copy Markdown
Owner

closes #166

  • Preview records the source GUIDs of POS the run creates (GRAM_CATEGORIES/POS actions); resolve_or_report_category returns a planned LINK for those instead of REPORT_DROPPED. POS not created by the run is still dropped.
  • Move rebinds the planned LINK (rebind_planned_link) against the POS the grammar leg created. apply_texts was passing None as the resolver cache to apply_analyses; it now passes the run cache.

Live evidence (FLEXLIBS_REQUIRE_LIVE=1, GT-Src-166 -> GT-Sandbox-166, restored from Target 2026-07-06 0218.fwbackup; no Target/real project touched): tests/integration/test_issue166_wordform_planned_pos_link_live.py 6 passed. Absent POS created by the run; both analyses on it have CategoryRA = that POS; Preview and Move CategoryRA drops both 0; shared-POS link and morph-bundle links still land. Before the texts.py cache fix the same run showed 2 Move drops (rebind AttributeError on None cache). Unit: 5682 passed.

🤖 Generated with Claude Code

Preview plans a planned LINK for analyses whose CategoryRA POS the run
creates; Move rebinds it. apply_texts now passes the run resolver cache to
apply_analyses (it passed None).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@MattGyverLee
MattGyverLee merged commit 9cb655f into main Nov 2, 2026
1 check passed
@MattGyverLee
MattGyverLee deleted the fix-166-wordform-planned-pos-link branch November 2, 2026 04:20
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.

Wordforms: link analyses to a POS created in the same run instead of dropping

1 participant