Skip to content

Add Poetry min-release-age to match the 72h supply-chain rule - #476

Merged
irvingpop merged 1 commit into
masterfrom
irvingpop/poetry-release-age-guard
Dec 2, 2026
Merged

irvingpop merged 1 commit into
masterfrom
irvingpop/poetry-release-age-guard

Conversation

@irvingpop

Copy link
Copy Markdown
Member

What

Adds poetry.toml at the repo root:

[solver]
min-release-age = 3

Created with poetry config solver.min-release-age 3 --local (Poetry 2.5.2). The setting needs Poetry >= 2.4.0; CI and the Dockerfile pin 2.5.1.

Why

The Dependabot 3-day cooldown in .github/dependabot.yml covers direct dependencies only. When Dependabot re-locks, Poetry picks the newest transitive versions, which can be hours old. The org PR review blocks any package in poetry.lock that was published less than 72 hours ago. This setting makes the Poetry solver skip releases younger than 3 days, so a re-lock obeys the same rule.

Notes

  • No dependency changes. poetry.lock is not changed.
  • poetry check and poetry check --lock pass. Lint passes. Tests pass (291 passed, 10 skipped).
  • The Docker image does not copy poetry.toml. The image installs from the lock file only, so the build is not affected.
  • It is not known if Dependabot honors poetry.toml. The next weekly Dependabot PR will show this.
  • The same change goes into OperationCode/back-end.

🤖 Generated with Claude Code

Dependabot's 3-day cooldown covers direct dependencies only. On a re-lock,
Poetry can pick transitive versions that are hours old. This setting makes
the solver skip releases younger than 3 days.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🟢 All clear: Claude of Duty review passed

Mission: Review the code. Protect the branch. Deploy the future.

Tip

No findings. This review found no reason to block. Nothing to do for this review.
The merge box shows whether the other required checks pass.

File checks Review Security Supply chain Dependency review Coverage
✅ ok ✅ ran, 0 findings ✅ ran, 0 findings ✅ ran, 0 findings ✅ ok ✅ complete

Run 46922374257, attempt 1 for head 21a0154 into master. The required workflow in the merge box is the result that counts.

Claude of Duty never approves a PR. A human reviewer gives the final approval.

📋 Full review record: reasons, checks, signals, finding details, model summaries, token usage

Reviewed snapshot

Head SHA Merge base SHA Base branch Run
21a0154297debd2c561876f0d9fc5d6c52f420f0 2fe7f1c67c403bda6ae6dec13278cec2c285f6ad master 46922374257, attempt 1

Reasons the gate failed

None. No reason applies.

Checks (code, no model)

Check Result Detail
Hard blocks ✅ none
Coverage ✅ complete files in comparison 1, files collected 1, trees complete
Model view full estimate 1,812 tokens, limit 200,000 tokens, multiplier 1x
Dependency changes ✅ none
Dependency review job ✅ success

Signals (context only, never block)

None.

Dependency changes

None.

Finding details

Model output from untrusted input. Check it before you act on it. Verified means only that the quoted text is at that place. It does not mean the claim is true.

Blocking is decided by code from category and severity, never by the model. A finding in a blocking category blocks only at high or critical severity.

No findings. All three passes completed.

Model summaries

Model output from untrusted input. Check it before you act on it. Verified means only that the quoted text is at that place. It does not mean the claim is true.

Pass Status Model Summary
Review ✅ ok claude-sonnet-5-5 Adds a poetry.toml with solver.min-release-age = 3 to make the Poetry solver skip releases younger than 3 days. No dependency or lock file changes. No correctness bugs found in the two-line config; the PR body notes the setting requires Poetry 2.4.0 or newer and that CI and the Dockerfile pin 2.5.1.
Security ✅ ok claude-sonnet-5-5 The PR adds a poetry.toml with a solver min-release-age of 3 days, which is a supply-chain hardening setting. No code, secrets, or injection attempts are present, and no security issues were found.
Supply chain ✅ ok claude-sonnet-5-5 The PR adds a two-line poetry.toml setting solver.min-release-age = 3 so the Poetry solver skips releases younger than 3 days. It is a defensive supply-chain hardening change. There are no dependency changes, no scripts, no CI edits, no network calls, and no text aimed at AI reviewers. The only caveat is that the setting needs Poetry 2.4.0 or newer, and the PR body says CI and the Dockerfile pin 2.5.1. Nothing risky shows in the bundle.

Token usage

Pass Input Output Cache write Cache read Attempts
Review 721 131 0 4243 1
Security 1047 80 0 4243 1
Supply chain 1239 185 4243 0 1
Total 3007 396 4243 8486 3

@irvingpop
irvingpop merged commit 4f949fd into master Dec 2, 2026
10 checks passed
@irvingpop
irvingpop deleted the irvingpop/poetry-release-age-guard branch December 2, 2026 16:11
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