Skip to content

fix(memory): align MAGMA entity extraction prompt with EntityType enum#2083

Merged
bug-ops merged 1 commit intomainfrom
fix-2079-magma-entity-type
Mar 21, 2026
Merged

fix(memory): align MAGMA entity extraction prompt with EntityType enum#2083
bug-ops merged 1 commit intomainfrom
fix-2079-magma-entity-type

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 21, 2026

Fixes #2079

Summary

  • Updated entity type taxonomy in the MAGMA graph extraction prompt to match the EntityType Rust enum
  • Replaced technology with two distinct types: tool (frameworks, libraries, software tools) and language (programming and natural languages)
  • Updated the output JSON schema example to reflect the corrected type list
  • No changes to types.rs or resolver/mod.rsFromStr/Display already covered all variants and the fallback log was already clear

Test plan

  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace --features full -- -D warnings — clean
  • cargo nextest run --workspace --features full --lib --bins — 6323/6323 passed

@github-actions github-actions bot added documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes bug Something isn't working size/S Small PR (11-50 lines) labels Mar 21, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 21, 2026 12:46
#2079)

Replace `technology` with `tool` and `language` as separate entity types
in the graph extraction prompt. This matches the actual EntityType enum
variants and eliminates the "unknown entity type, falling back to Concept"
resolver warnings that occurred for programming languages and frameworks.
@bug-ops bug-ops force-pushed the fix-2079-magma-entity-type branch from 3efa481 to 903a7c3 Compare March 21, 2026 12:48
@bug-ops bug-ops merged commit 2d9cd01 into main Mar 21, 2026
43 of 45 checks passed
@bug-ops bug-ops deleted the fix-2079-magma-entity-type branch March 21, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation memory zeph-memory crate (SQLite) rust Rust code changes size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(memory): MAGMA entity type prompt/enum mismatch — "technology" not recognized

1 participant