Refuse grant paths that cannot be mounted

Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
2026-09-22 23:06:09 -07:00
parent bf9e79ac21
commit 644fda14da
3 changed files with 54 additions and 0 deletions
+1
View File
@@ -419,4 +419,5 @@ each task's commit. Three rows were malformed by the first run's orchestrator: t
six cells, and its notes had been pasted into task 05's row; task 10's notes into task 11's; and
task 01's stopped row carried the notes of M2b task 11. Each is moved back or removed, with a
bracketed mark, and pipes inside code are escaped so every row has its eight cells.
| M3b/03-brokerd-grant-mount-rule | 2026-09-22 | done | 1 | pass | none | Copied `tests/grants_mount.rs` from the plan's `files/`. Added a third arm to the path loop in `check_grant` (grants.rs:263), an `else if path.contains([':', ','])` checked only when the first two arms did not apply, reporting `"{:?} cannot be mounted: it contains ':' or ','"`. The `else if` chain means a path already reported as invalid is not reported twice. `cargo fmt --all` kept the `push` multi-line (the single-line form in the task exceeds 100 columns); the wording matches the task verbatim. Both suites pass (17 grants, 2 mount); `make gate` prints `gate: ok` on the first run. | ? |