ADR-3560: Refresh Python dependency locks on dependency-update branches¶
- Status: Accepted
- Date: 2026-11-18
- Deciders: Operator
- Tags:
ci,python,supply-chain
Context¶
The lock checker reads inputs, outputs and the pinned compiler version from requirements/locks/manifest.json. A changed input leaves its derived locks stale. The hosted dependency updater cannot run repository post-upgrade commands.
Decision¶
The refresh workflow regenerates manifest outputs on dependency-update branches and publishes them in a signed-off release-bot commit. A shared publisher also serves the asset lock workflow. The DCO exception requires the exact refresh subject, release-bot identity, dependency-bot opener, and only paths with live entries in .config/lint-exceptions.d/dco-python-lock-refresh.toml.
In landed mode, a Renovate squash with one exact release-bot co-author line must change at least one live grant path. The remaining paths must be manifest inputs or requirements/locks/manifest.json itself. The manifest can accompany a uv bump if the parent and squash copies are valid manifests read from local Git objects and the only changed value is top-level uv_version, set to an exact release. Missing or unreadable Git objects, malformed manifests, duplicate JSON keys, and other manifest changes keep the co-author line.
The gate uses GH_TOKEN and GITHUB_REPOSITORY to require one associated pull request with the squash SHA and an ISO 8601 merged_at timestamp. The complete commit list must have fewer than 250 entries and include a release-bot commit identified by normalized Git author name and email. Each such commit must have a nonempty file list shorter than one API page (100 entries), with valid filenames and statuses added, removed, modified, renamed, copied, changed, or unchanged. Renames require a previous filename, and the gate checks any supplied previous filename. Every reported path must have a live grant among the 30 paths. Missing configuration, missing, ambiguous, malformed or incomplete forge evidence, and TierError, OSError, ValueError, RecursionError, KeyError, TypeError, or OverflowError from the forge read keep the co-author line and print a dco: notice.
The 2026-11-18 operator answer vmafx-renovate-python-lock-refresh grants the following 30 exact paths. A new lock output needs a new operator grant before an entry is added.
requirements/locks/build.txtrequirements/locks/tox.txtrequirements/locks/nox.txtrequirements/locks/pre-commit.txtrequirements/locks/dev-linters.txtrequirements/locks/cythonize.txtrequirements/locks/mypy.txtrequirements/locks/jsonschema.txtrequirements/locks/docs-check.txtrequirements/locks/windows-tester-zip.txtrequirements/locks/package-build.txtrequirements/locks/gcovr.txtrequirements/locks/pytest-timeout.txtrequirements/locks/tooling-tests.txtdocs/requirements-lock.txtpython/requirements-lock.txtpython/requirements-test-lock.txtpython/requirements-coverage-lock.txtai/requirements-runtime-lock.txtai/requirements-dev-lock.txtmcp-server/vmaf-mcp/requirements-runtime-lock.txtmcp-server/vmaf-mcp/requirements-production-lock.txtmcp-server/vmaf-mcp/requirements-dev-lock.txtdev/requirements-python-env-lock.txttools/vmaf-tune/requirements-dev-lock.txttools/rc1-tester/requirements-dev-lock.txtdev-llm/requirements-dev-lock.txttools/vmaf-roi-score/requirements-dev-lock.txttools/ensemble-training-kit/requirements-dev-lock.txtrequirements/locks/twine.txt
Alternatives considered¶
| Alternative | Benefit | Cost |
|---|---|---|
| Manual refresh | No workflow | Maintainers must repair each affected request. |
| Dependency updater owns compilation | No follow-up commit | Requires migration and verification of all lock inputs and outputs. |
Consequences¶
Each exception uses Category D and lasts 120 days. An expired or absent entry refuses that path. Remove an entry when the hosted limitation no longer applies; renew it only while the limitation remains. A lease refuses publication if the branch changes or is deleted during refresh. The next input change runs the refresh again; otherwise rerun it against the current tip.
checkandwritereject input pins foruvthat differ fromuv_version, so a Renovate PR that bumps an input pin fails until it also updatesuv_version.
References¶
- ADR-3555: asset lock refresh and author handling.
- Python dependency locks.