ollie/cmd/toolsrv/internal/server
Levi Neely 5dcde264e6 toolsrv: add path-based lock table for cross-agent serialization
All foreground tool calls now acquire a lock based on the tool's
declared scope and file path before execution:

  - scope "read":  no lock (reads never conflict)
  - scope "write": exclusive lock on the file path
  - scope "global": exclusive global lock (serializes with everything)

This ensures writes to the same path serialize regardless of which
agent initiated the call, enabling safe parallel sub-agents within
a session without explicit coordination.

Cross-session serialization (shared toolsrv per host) is left as
future work.
2026-08-14 14:27:21 +02:00
..
parse.go toolsrv: rename internal/fs → internal/server 2026-08-11 21:15:03 +02:00
pathlock.go toolsrv: add path-based lock table for cross-agent serialization 2026-08-14 14:27:21 +02:00
pathlock_test.go toolsrv: add path-based lock table for cross-agent serialization 2026-08-14 14:27:21 +02:00
proc.go toolsrv: add path-based lock table for cross-agent serialization 2026-08-14 14:27:21 +02:00
proc_test.go toolsrv: rename internal/fs → internal/server 2026-08-11 21:15:03 +02:00
server.go toolsrv: proc/list now rdwr with agent filtering 2026-08-13 22:08:15 +02:00
state_test.go toolsrv: rename internal/fs → internal/server 2026-08-11 21:15:03 +02:00