Repository navigation
refactor!: decide each policy once, in the crate that owns it - #215
Merged
Merged
Conversation
Neither field was read anywhere; the schema accepted them only to say so. Configs that set them now fail validation. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Release-age eligibility is one formula, patchula_lookup::eligible_at, shared by evaluation and automerge. - Schedule windows and the lockfile-maintenance default live in config (Window::due, due, Config::maintenance_windows); update consumes them. - Version filters are patchula_config::Filter: one grammar (!, regex:, semver:) validated by the real compiler, with semver: ranges read in the dependency's own versioning and rejected where it has none. - (Scheme, Source) resolves through versioning's Ecosystem::of. - digest_policy_applies replaces the "probe" sentinel. - channel = "lts" follows the catalog's lts dist-tag for any source. - Custom extractor regexes compile once per Evaluator; failures are evaluation errors. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 2583d4b | Commit Preview URL Branch Preview URL |
Nov 09 2026, 09:44 AM |
There was a problem hiding this comment.
All reported issues were addressed across 25 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
… LTS docs name their sources
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seventh in the untangle series.
Why
Several policy decisions were made in more than one place, or by a crate that doesn't own them:
published + wait_hours <= nowbeside lookup's own copy of that rule.update::plan::in_windowre-implemented window evaluation (zone parsing, thesincewindow, the one-minute fallback), and lockfile maintenance hardcoded its Monday default.config::Patterns,validate's re-parse, lookup'sFilter).semver:always used the Rust semver crate, so on a PEP 440, Maven or RubyGems dependency an unparseable version silently flipped allow/deny.patchula_lookup::schemewas called by update and engine, which need no policy."probe".submodulesandignoreAuthorswere accepted and never read.What
lookup::eligible_atis the one release-age formula. Automerge calls it.config::Window::due,config::dueandConfig::maintenance_windowsown window evaluation, including the Monday default. Their tests moved to config.config::{Patterns, Filter}own the sigils, and validation calls the real compilers.semver:uses the dependency's own versioning. On a scheme without ranges (loose, Go, Docker) it's an evaluation error, not a silent non-match.versioning::Ecosystem::of(scheme, source)replaceslookup::scheme.Evaluator::digest_policy_appliesreplaces every"probe".channel = "lts"follows the catalog'sltsdist-tag for any source.PatchulaConfig.pklregistry doc fixed.Breaking
feat(config)!:submodulesandignoreAuthorsare removed from the schema. A config that sets them no longer validates. Neither ever changed behaviour.Behaviour changes
semver:filter on a dependency whose scheme has no ranges is now an error.ltsdist-tag. The error for a catalog without one no longer names Node.Docs:
guide/lookup-policy.md,guide/configuration.md,reference/configuration.mdx.