Files
heartwood/crates/radicle-cli/examples
Daniel NormanandLorenz Leutgeb 4867917f37 radicle/canonical: Remove RawRules::matches
Testing revealed that the implementation violated RIP-0006, which
requires the most specific rule matching the target of `HEAD`
to use an `allow` of `delegates` and the document threshold.
`validate_head_rule` took the first match from `RawRules`, which orders
patterns lexicographically, so a glob could be validated in place of the
rule that actually governs the branch.
The issue here is that the correct order for matching patterns is only
guaranteed on `Rules`, but not on `RawRules`.

To prevent such errors in the future, remove `RawRules::matches`. This
requires some refactoring, and makes synthesis of the default branch
rule slightly less efficient in the worst case, but we are willing to
take that hit for a cleaner implementation.

Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.dev>
2026-09-01 19:41:02 +02:00
..
2026-04-30 15:50:29 -04:00
2026-05-28 16:52:02 +01:00
2026-04-30 15:50:29 -04:00
2026-04-30 15:50:29 -04:00
2026-07-21 09:19:01 +02:00
2026-04-17 17:15:31 +01:00
2026-04-30 15:50:29 -04:00
2026-04-30 15:50:29 -04:00
2026-05-28 16:52:02 +01:00
2026-05-28 16:52:02 +01:00
2025-09-28 18:02:55 +02:00
2026-05-28 16:52:02 +01:00
2025-10-15 10:30:34 +02:00