← Back to issue list

Validate `depends` and related fields

View original Github issue

Metadata

Project
debcraft
Number
#42
Type
issue
State
open
Author
lengau
Labels
—
Created
Updated
Closed
—

Current evaluation

Maintainer-filed feature request to validate depends/recommends/suggests/provides/breaks/replaces/conflicts fields against Debian Policy 7.2, with a code TODO in models/package.py referencing it. Still unimplemented.

Suggested action: keep open

Reason: This is a valid, maintainer-owned work item, not an untriaged report: lengau (maintainer) authored it, commented with the normative spec link (Debian Policy 7.2 binarydeps), and the code already carries a tracking comment in debcraft/models/package.py — '# These need validating: https://github.com/canonical/debcraft/issues/42' — directly above the seven unvalidated fields. No fix exists in the repo: schema/debcraft.json constrains these fields only to type string with no pattern, and the only model_validator is the unrelated _validate_adopt_info_part_exists in project.py. Impact is moderate rather than severe because malformed relationship syntax fails late (at repo-add/install) rather than breaking packaging outright; complexity is lifted by Debian's genuinely fiddly relationship grammar (alternatives, version operators, arch qualifiers/restrictions) and by the secondary 'upstream to python-debian' goal that lies outside this repo.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 15 Complexity: 58 Confidence: 82 Actionability: 78

Issue body

Validate the `depends` field and other related fields. Ideally we'd be able to upstream these validators into something like `python-debian`.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 45
Quick Win: 15
Complexity: 58
Confidence: 82
Actionability: 78
keep open Maintainer-filed feature request to validate depends/recommends/suggests/provides/breaks/replaces/conflicts fields against Debian Policy 7.2, with a code TODO in models/package.py referencing it. Still unimplemented.
qwen/qwen3.6-35b-a3b
Impact: 35
Quick Win: 13
Complexity: 45
Confidence: 75
Actionability: 65
needs triage Feature request to add validation for depends, recommends, suggests, provides, breaks, replaces, and conflicts fields in debcraft models, referencing Debian policy.
qwen/qwen3.8-27b
Impact: 50
Quick Win: 22
Staleness: 55
Complexity: 55
Confidence: 70
Support Request: 5
needs triage Feature request to add validation for the depends field and related Debian relationship fields (recommends, suggests, provides, breaks, replaces, conflicts) in debcraft package models, ideally upstreamed to python-debian. Open since Nov 2025 with no labels, no assignee, and no further activity.
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 40
Confidence: 85
Support Request: 10
needs triage Issue requests validation of the `depends` field and related fields, with a goal to upstream validators to `python-debian`. No maintainer response or labels present. Inactive for over 244 days.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 50
Confidence: 75
Support Request: 10
needs triage Request to validate Debian package depends and related fields, potentially upstreaming to python-debian. Unlabelled and inactive for 231 days, awaiting maintainer assessment.

Update history

No update history recorded yet.

Related work

  • Related To: debcraft#133 (confidence 60%)

    Commit 2f72bdc 'fix: add suggests to package and control models (#133)' added the `suggests` field to both models — one of the fields this issue wants validated, left unvalidated as of the pinned HEAD.

Related issues

No related issues found above the similarity threshold.