mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
How long a contender waits is a property of the operation the lock holder runs, not of the write protocol. The 2s default was sized for the render-and-rename cycle every call site had; a credential mutation that refreshes an expired token performs a network round trip while holding the lock, and leaving the default in place would fail every other writer of that file for the duration. `withFileLock` takes an optional `waitMs`; the retry cadence stays fixed because it governs how often a contender asks, which no caller varies. Every existing call site keeps the default.
util/ — low-level shared utilities
English | 中文
These zero-dependency packages provide small primitives shared by multiple capability families. Business semantics remain with each consuming capability.
| Package | Role |
|---|---|
brand/ |
Provides nominally branded types |
paths/ |
Resolves the Harness data root and shared paths |
timeout/ |
Provides deadline and timeout classification primitives |
retention/ |
Bounds retained text and item collections |
atomic-write/ |
Replaces files atomically |
native-command/ |
Runs host-native commands without a shell |