Skip to content

fix(manager): poetry.toml is a Python settings file; verdicts, roles and source rules decided once - #232

Merged
sweepies merged 3 commits into
mainfrom
refactor/final-manager-sources
Nov 9, 2026
Merged

sweepies merged 3 commits into
mainfrom
refactor/final-manager-sources

Conversation

@sweepies

@sweepies sweepies commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Final-sweep fixes for manager, config and sources: each list and rule now lives in one place.

Behaviour change (fix)

  • poetry.toml is a Python settings file in the file-role taxonomy. poetry lock reads it, and its [repositories] URLs name package indexes. It already had a public verdict and a credential scan, but it lacked the settings/registry roles, so its credential scan was never reached, an unreadable poetry.toml was skipped instead of failing closed, and lockfile checkouts did not carry it. A repository that commits a credential in poetry.toml (http-basic, pypi-token, or a userinfo password in a repository URL) is now refused, as renovate/departures.md already documents. file_classification_is_pinned changes only on the two poetry.toml rows.

Manager

  • The public verdict's filename coverage comes from the taxonomy (NPM_LOCKS, NODE_SETTINGS, PYTHON_SETTINGS, manifest_names, lock_names …); per-file matches only pick a parser. A new test asserts every scanned or settings file has a verdict or a stated exemption.
  • eco_roles arms compose the exported name consts. Output is identical for every path (pinned test).
  • mise's files are one list (MISE_FILES), read by the descriptor, the roles and manifest_names.
  • mise backends are one BACKENDS table (names, env prefixes, settings keys, project redirects) with no catch-all; gem and go state their behaviour explicitly, unchanged.

Sources

  • One blob_text decoder for GitHub blobs in notes. One package_name_safe rule in datasource, used by notes. One oci_tag for the +→_ convention.
  • OCI catalogs are sorted once (oci_catalog), in the order the old final sort produced, except among tags no scheme parses (lookup skips those). A test shows where the Docker and OCI orders differ.
  • StoredCatalog.modified was written and never read; it is removed and the derived document names bumped (*-v2) so old entries are not reused.
  • docker.rs reuses validate_tag/validate_digest. The tag-bound observation (forge::observe) and the directory-prefix predicate are written once.

Corpus snapshot: unchanged.

View guided diff Turn on auto-fix

sweepies and others added 3 commits November 9, 2026 23:39
The `+`/`_` OCI tag convention, the registry-path package-name rule,
the tag/digest validators and the compact catalog envelope each had
two or three spellings. `oci_tag` and `package_name_safe` now serve
every site, `StaleKey` records normalized tags, `Source::Oci` sorts
its catalog once under the npm scheme through `oci()`, and the
write-only `modified` field leaves the cached catalog bodies (the
`*-v2` derived names invalidate the old ones).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
GitHub blob base64 decoding lived in both `changelog.rs` and
`adapters.rs`; it is one `blob_text` now. The GitHub release and tag
paths each inlined the old/new bound observation `forge::observe`
already owned, and the monorepo changelog filter re-spelled the
directory prefix check; both use the shared helpers. Package source
lookup takes `package_name_safe` from the datasource crate.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
`roles.rs` composes its arms from the exported name constants and
`manifest_names`/`lock_names` instead of inline literals, gains
`PYTHON_SETTINGS` — which now includes `poetry.toml`, the file
`poetry lock` reads for its repositories — and carries mise's
leaf-file facts in `MISE_FILES`, the one list `Descriptor::selected`,
`eco_roles` and `manifest_names` agree on. `public.rs` verdicts take
their coverage from the same taxonomy, and a test holds every scanned
or settings file to a verdict rule or a documented exemption. mise's
backend vocabulary — names, env prefixes, settings keys and project
redirects — is one `BACKENDS` table; `gem` and `go` state
`project: None` explicitly rather than falling through a catch-all.

poetry.toml's new roles are the one behavior change: it is now read
as registry settings and linked settings for the Pyproject ecosystem,
matching the verdict and credential scan it already had.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@sweepies
sweepies merged commit ece4c86 into main Nov 9, 2026
12 checks passed
@sweepies
sweepies deleted the refactor/final-manager-sources branch November 9, 2026 23:55
@sweepies-ops sweepies-ops Bot mentioned this pull request Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant