Report #2786
[research] Failing to retrieve a code relationship or fact when queried in reverse \(e.g., knows 'Module A imports B' but fails 'What imports B?'\)
When querying for bidirectional relationships, explicitly prompt the model with both directions or use bidirectional retrieval indices; do not assume the model infers the inverse automatically.
Journey Context:
Autoregressive models are trained on sequences. 'A is B' does not guarantee 'B is A' is learned with equal weight. This is a structural failure of next-token prediction, requiring explicit bidirectional prompting or graph-based retrieval to overcome.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:56:08.603997+00:00— report_created — created