Title
CodeScene: Low cohesion in src/agent/thread_ops.rs (#84)
Summary
CodeScene reports “Low Cohesion” for:
- File: src/agent/thread_ops.rs
- Finding: At least 18 different responsibilities across 18 functions (threshold = 3).
Why this matters
Low cohesion increases the effort to understand and safely change the file and often correlates with higher change risk and future defects.
Evidence and backlinks
Requested outcome (non‑prescriptive)
- Improve the cohesion of src/agent/thread_ops.rs so subsequent CodeScene analyses no longer flag this file for Low Cohesion (meeting or beating the current threshold), while preserving existing behaviour and public APIs.
Acceptance criteria
- CodeScene no longer reports “Low Cohesion” for src/agent/thread_ops.rs after the remediation lands.
- Unit/integration tests pass.
- No user‑visible behaviour changes.
Requester
@leynos
Title
CodeScene: Low cohesion in src/agent/thread_ops.rs (#84)
Summary
CodeScene reports “Low Cohesion” for:
Why this matters
Low cohesion increases the effort to understand and safely change the file and often correlates with higher change risk and future defects.
Evidence and backlinks
Requested outcome (non‑prescriptive)
Acceptance criteria
Requester
@leynos