Fix automatic remediation output-path permission policy #176

Closed
opened 2026-08-16 08:53:29 +01:00 by nimmo · 0 comments
Owner

Context

The automatic remediation controller generated diagnosis-only issues #165, #166, #167, #171, #172, and #174 because OpenCode could not create its required output files. The policy allows relative output paths, while the sandboxed tool calls use /workspace/.remediation-output/... absolute paths.

Scope

  • Permit only the two exact absolute output paths exposed inside the Bubblewrap sandbox.
  • Add regression coverage that verifies the generated OpenCode policy authorises those actual tool paths.
  • Preserve the read-only repository mount and all existing denied tool/file boundaries.

Completion criteria

  • A real OpenCode write to each permitted sandbox output path is authorised.
  • Other edits remain denied.
  • The remediation regression suite passes.
  • The change is validated through the normal MR checks and a Nova canary before closing.
## Context The automatic remediation controller generated diagnosis-only issues #165, #166, #167, #171, #172, and #174 because OpenCode could not create its required output files. The policy allows relative output paths, while the sandboxed tool calls use `/workspace/.remediation-output/...` absolute paths. ## Scope - Permit only the two exact absolute output paths exposed inside the Bubblewrap sandbox. - Add regression coverage that verifies the generated OpenCode policy authorises those actual tool paths. - Preserve the read-only repository mount and all existing denied tool/file boundaries. ## Completion criteria - A real OpenCode write to each permitted sandbox output path is authorised. - Other edits remain denied. - The remediation regression suite passes. - The change is validated through the normal MR checks and a Nova canary before closing.
nimmo closed this issue 2026-08-22 10:37:47 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#176
No description provided.