mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-07 08:37:28 +08:00
support explicit [keys: ...] resource hints for parallel autonomy conflict control
This commit is contained in:
@@ -35,6 +35,14 @@ A recent architecture pass leveraged core Go strengths:
|
||||
|
||||
These changes improve stability, observability, and maintainability under concurrency.
|
||||
|
||||
### Parallel task conflict control (Autonomy)
|
||||
|
||||
Autonomy now supports lock scheduling via `resource_keys`. You can explicitly declare keys in task text for precise conflict detection:
|
||||
|
||||
- Example: `[keys: repo:clawgo, file:pkg/agent/loop.go, branch:main] fix dialog flow`
|
||||
- Without explicit keys, the engine derives keys from task text heuristically.
|
||||
- Conflicting tasks enter `resource_lock` waiting, retry lock acquisition after 30s, and use fairness weighting (longer wait => higher scheduling priority).
|
||||
|
||||
## 🏁 Quick Start
|
||||
|
||||
1. Initialize config and workspace
|
||||
|
||||
Reference in New Issue
Block a user