Commit a030c75
feat(contract): add fixture cases for colon paths and empty scope-path segment (#358)
Three gaps exposed by the Phase 2 divergence runs (cloud#2738):
- colon-in-scope-path cases pin SplitN(scope, ":", 4) semantics — hosted
TS's String.split(":", 4) truncates the remainder, turning /a:b/** into
the exact path /a (wrong-allow and wrong-deny potential).
- empty-fourth-segment case pins that relayfile:fs:read: (trailing colon)
is a narrow grant matching nothing — hosted TS maps it to "*" and grants
the whole namespace.
- colon-in-segment-valid pins colons as ordinary path bytes in the
scope-path grammar with the expected mounts_at.
All cases pass against unmodified Go enforcement (behavior pinned, not
changed). Additive v1 fixtures; no version bump.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent f1a30b2 commit a030c75
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
258 | 282 | | |
259 | 283 | | |
260 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
0 commit comments