Problem
Admin mode safety gap:
Admin mode definition: dispatchEnabled: true, mutationsAllowed: false. The orchestrator cannot use edit or write tools. But dispatched workers run as separate processes with their own tool sets. A worker dispatched from admin mode may have edit/write access depending on its runtime and safety configuration. This creates an indirect mutation path that admin mode's tool gating does not prevent.
Review mode config mutation:
Review mode includes pan_apply_config in its tool set (line 106 of modes.ts). A reviewer can change runtime configuration (safety level, mode, reasoning, models) via the config tool. This is inconsistent with review mode's read-only intent.
Audit Reference
AUDIT-ISSUES.md: F2, F3
Objective
Close the indirect mutation path and restrict config changes in review mode.
Deliverables
Problem
Admin mode safety gap:
Admin mode definition:
dispatchEnabled: true,mutationsAllowed: false. The orchestrator cannot useeditorwritetools. But dispatched workers run as separate processes with their own tool sets. A worker dispatched from admin mode may have edit/write access depending on its runtime and safety configuration. This creates an indirect mutation path that admin mode's tool gating does not prevent.Review mode config mutation:
Review mode includes
pan_apply_configin its tool set (line 106 of modes.ts). A reviewer can change runtime configuration (safety level, mode, reasoning, models) via the config tool. This is inconsistent with review mode's read-only intent.Audit Reference
AUDIT-ISSUES.md: F2, F3
Objective
Close the indirect mutation path and restrict config changes in review mode.
Deliverables
mutationsAllowed: falseto dispatched workerspan_apply_configfrom review mode's tool set (keeppan_read_config)