ollie/fs
Ollie Agent 2b4d577e39 refactor: architectural cleanup (5 items)
1. Standardize ctl dispatch: hoist rootCtlHandlers and sessionCtlHandlers
   to package-level vars, matching the agent pattern.

2. Fix error wrapping: %v → %w in toolsrv/shell.go (only 2 instances;
   backend/ was already clean).

3. Canonicalize tool server access: LoadTool now only uses
   session.ToolsConn() — removed fallback to agent.ToolServer().

4. Centralize event handler wiring: wireAgentEvents(sessID, ag, al)
   replaces separate SetOutput + wireAgentStateEvents calls. Documents
   the contract.

5. Split toolsrv/shell.go: validation patterns, ValidateCode, and rate
   limiting moved to shell_validate.go (86 lines). shell.go retains
   execution logic (594 lines).
2026-08-09 12:46:36 +02:00
..
agent_log.go fs: namespace cleanup — merge and remove dead files 2026-08-09 01:57:41 +02:00
cache.go fs: restructure package into logical files 2026-08-04 11:27:28 +02:00
ctl.go fs: unify ctl — all levels use rdwrHandler + rdwrDispatch 2026-08-09 02:58:09 +02:00
handlers_agent.go refactor: architectural cleanup (5 items) 2026-08-09 12:46:36 +02:00
handlers_root.go refactor: architectural cleanup (5 items) 2026-08-09 12:46:36 +02:00
handlers_session.go refactor: architectural cleanup (5 items) 2026-08-09 12:46:36 +02:00
lifecycle.go all: delete dead interfaces, kill globalRootState 2026-08-08 14:58:47 +02:00
newroot.go refactor: architectural cleanup (5 items) 2026-08-09 12:46:36 +02:00
replay_test.go refactor: consolidate event formatting, remove log validator 2026-08-07 10:11:48 +02:00
session_node.go session: export immutable fields, extract buildAgent helper 2026-08-09 00:45:39 +02:00
spec.go fs: unify ctl — all levels use rdwrHandler + rdwrDispatch 2026-08-09 02:58:09 +02:00