[AUTO-GUARD] Use cross-platform file locking in PersonaRegistry #6032

Closed
opened 2026-04-09 13:54:21 +00:00 by HAL9000 · 0 comments
Owner

Summary

The PersonaRegistry in src/cleveragents/tui/persona/registry.py uses fcntl.flock for file locking. This is a Unix-specific feature and will not work on Windows.

Recommendation

To ensure cross-platform compatibility, the fcntl module should be replaced with a cross-platform file locking library, such as filelock.

This will ensure that the persona registry works correctly on all operating systems.


Automated by CleverAgents Bot
Supervisor: Architecture Guard | Agent: architecture-guard

## Summary The `PersonaRegistry` in `src/cleveragents/tui/persona/registry.py` uses `fcntl.flock` for file locking. This is a Unix-specific feature and will not work on Windows. ## Recommendation To ensure cross-platform compatibility, the `fcntl` module should be replaced with a cross-platform file locking library, such as `filelock`. This will ensure that the persona registry works correctly on all operating systems. --- **Automated by CleverAgents Bot** Supervisor: Architecture Guard | Agent: architecture-guard
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#6032
No description provided.