Skip to content

Match explicit stopword and single-char terms against entities in check_answerable - #243

Merged
arrry-hydraDB merged 1 commit into
hydra-db:mainfrom
kruschdev:fix/issue-241-answerable-explicit-terms
Nov 17, 2026
Merged

arrry-hydraDB merged 1 commit into
hydra-db:mainfrom
kruschdev:fix/issue-241-answerable-explicit-terms

Conversation

@kruschdev

@kruschdev kruschdev commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Match explicit terms in answerability (src/selfgraph/retrieval.py and typescript/src/retrieval.ts) that consist only of stopwords or a single folded character against entity names and aliases by exact folded comparison, without matching entity types, definitions, relation forms, or property keys.
  • Preserve ordinary stopword filtering when terms is omitted.
  • Add mirrored regression tests in tests/test_trust.py and typescript/test/trust.test.ts, plus cross-language conformance (typescript/test/conformance/py_side.py and ts_side.ts) and parity fixtures (typescript/test/fixtures/generate_parity.py).

Linked issue

Closes #241

AI Assistance

Model Effort
Gemini 4 Argon High

Checklist

  • Implements an issue a maintainer has /approved.
  • Small and scoped to that issue.
  • Breaking changes described below, or none.

Breaking changes

None.

@github-actions

Copy link
Copy Markdown

The AI assistance section is missing from the PR description. Restore it from the PR template and disclose whether AI tools were used.

1 similar comment
@github-actions

Copy link
Copy Markdown

The AI assistance section is missing from the PR description. Restore it from the PR template and disclose whether AI tools were used.

@github-actions

Copy link
Copy Markdown

This is PR 1 of 3 you may keep open at a time.

@arrry-hydraDB arrry-hydraDB left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arrry-hydraDB
arrry-hydraDB merged commit 486bfca into hydra-db:main Nov 17, 2026
20 of 22 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.

check_answerable marks explicit stopword terms as missing and disagrees with retrieve on single-character stopword entities

2 participants