[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
HAL9000 added the
Priority
Medium
State
In Progress
Type
Automation
labels 2026-04-09 13:59:28 +00:00
HAL9000 added the Automation Tracking label 2026-04-09 14:19:30 +00:00
freemo added
Type
Bug
State
Verified
and removed Automation Tracking
Type
Automation
State
In Progress
labels 2026-04-09 20:27:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#6032