April 14, 2026

Chalie v0.3.2 Release & Refactoring Updates

The repository was merged into main for the v0

The repository was merged into main for the v0.3.2 release.

Unit test stability was improved by mocking the session secret generation in test app fixtures to avoid filesystem permission issues.

SonarCloud quality gate issues were addressed, which included fixing backwards compatibility for pytest.approx in tests and resolving XSS blockers in brain/app.js.

A significant effort was made to resolve SonarQube issues across multiple files, notably fixing float equality checks across 8 test files and correcting type annotations throughout the codebase.

CI and lint errors were cleared by Ruff, including removing unused imports and fixing import ordering, while CodeQL checks were strengthened by implementing path traversal sanitization in document services.

A major fix resolved unit test suite hangs that were caused by production code interacting with the shared database singleton under specific testing conditions.

The system was streamlined by dropping document chunk tables and related code, replacing them with reliance on data_graph artifacts for document storage and retrieval.

Document artifact unification was finalized by implementing cascade-deletion for data_graph artifacts on hard delete and updating various services to rely on this new unified structure.

  • Mocked –get_or_generate_session_secret in tests to handle SMB mount limitations.

  • Addressed various SonarCloud issues, including XSS fixes in brain/app.js.

  • Resolved unit test suite hangs related to database singleton contention.

  • Dropped document_chunks tables, replacing them with data_graph artifacts.

  • Implemented cascade-delete for data_graph artifacts in DocumentService.hard_delete().

  • Updated API routes to use data_graph artifacts instead of paginated chunks.