Fix remediation reports blocked from writing result.json #201
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:electra
host:fleet
host:lyra
host:nova
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#201
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Automated rejected-update remediation runs repeatedly publish fallback issues because the advisory model exits without
.remediation-output/result.json. A live reproduction on Nova showed the model successfully diagnosed the failed update, then OpenCode denied eachwritecall for/workspace/.remediation-output/result.json.Root cause
The generated OpenCode policy combines a top-level
"*": "deny"with path-specific object rules underedit. OpenCode 1.18.10 is affected by an upstream precedence defect where the top-level wildcard deny wins over a named object rule, despite the documented last-match semantics. Theeditcategory is the correct permission category for thewritetool.Implementation
editexception with the documented scalaredit: allowoverride..remediation-outputis bind-mounted writable.Completion criteria
result.jsonand optionalproposal.patch./workspaceremain blocked by Bubblewrap.Implemented locally in commit
0694f15on branchfix/201-remediation-result-output.Validation completed:
tests/nixos-update-remediation-regressions.shpassed.nix flake checkpassed.8b621ba0…completed under OpenCode 1.18.10 withreturnCode: 0,timedOut: false, and an accepted diagnosis-only result.npmDepsHashand no longer failed with missingresult.json..remediation-outputis writable.The disposable Nova checkout and worktree were removed after the test.
Closure evidence: Electra deployed the integrated remediation changes at revision
4ba715cb38at 20:11 on 2026-09-09. A normal follow-up run at 22:15 confirmed origin/main and the running system were current at4a03f7ebc9, performed no build or activation, and exited successfully.