v3.3.1

MemPalace/mempalacev3.3.1Apr 18, 2026by bensig

AI Summary

Feature release focused on internationalization, thread safety, and security hardening. Adds 5 new locales for entity detection, script-aware word boundaries, and makes entity research local-only by default.

Key Highlights

  • Multi-language entity detection with 5 new locales (Portuguese, Russian, Italian, Hindi, Indonesian)
  • Script-aware word boundaries for Devanagari, Arabic, Hebrew, Thai, Tamil, Khmer scripts
  • Case-insensitive BCP 47 language codes support
  • Knowledge graph thread safety on close(), query_relationship, timeline, stats
  • entity_registry.research() defaults to local-only (no outbound Wikipedia calls)

New Features

  • Multi-language entity detection (10+ locales total)
  • Script-aware word boundaries for non-Latin scripts
  • Case-insensitive BCP 47 language codes
  • KG thread safety with locking
  • Local-only default for entity research
  • Precompact hook non-blocking on failure/timeout
  • MCP stdout redirect for JSON-RPC integrity
  • File permission hardening on sensitive palace data

Full Release Notes

## MemPalace v3.3.1

### Highlights

- **Multi-language entity detection** — 5 new locales (Portuguese, Russian, Italian, Hindi, Indonesian) with full entity-detection patterns
- **Script-aware word boundaries** — fixes name truncation for Devanagari, Arabic, Hebrew, Thai, Tamil, Khmer scripts
- **Case-insensitive BCP 47 language codes** — `--lang PT-BR`, `zh-cn`, `Pt-Br` all resolve correctly
- **KG thread safety** — lock on `close()`, `query_relationship`, `timeline`, `stats`
- **entity_registry.research()** defaults to local-only (no outbound Wikipedia calls without opt-in)
- **Precompact hook** no longer blocks compaction on failure/timeout
- **MCP stdout redirect** — library logging can't corrupt JSON-RPC channel
- **File permission hardening** on sensitive palace data

See [CHANGELOG.md](https://github.com/MemPalace/mempalace/blob/v3.3.1/CHANGELOG.md) for full details.

### Install / Upgrade

```bash
pip install --upgrade mempalace
```