Fix TypeError in infer_resource_slots() when properties is null #11192
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!11192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix/mcp-infer-resource-slots-null-properties"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #10497
Peer Review — PR #11192: Fix TypeError in infer_resource_slots() when properties is null
✅ What is Good
The code change itself is correct and well-executed:
.get("properties", {})to.get("properties") or {}correctly handles the case where the key exists but has aNonevalue — the default{}in.get()only applies when the key is absent, whereasor {}handles both absent and null cases.@tdd_expected_failtag has been removed from the feature scenario, converting the previously-failing TDD capture test into a passing regression guard. This is exactly the correct action after implementing the fix.properties: dict[str, Any]annotation is retained and remains correct.❌ Blocking Issues
Despite the code quality being solid, this PR has 5 blocking process violations that must be resolved before it can be merged.
BLOCKER 1: Missing
ISSUES CLOSEDfooter in commit messageThe commit message has no issue reference footer. Per CONTRIBUTING.md, every commit footer must include
ISSUES CLOSED: #N(orRefs: #Nfor non-closing references). Since this commit closes issue #10497, the commit should have:This requires amending the commit and force-pushing the branch.
BLOCKER 2: CHANGELOG not updated
No entry was added to
CHANGELOG.mdfor this fix. Per CONTRIBUTING.md, the changelog must be updated in the same commit as the code change, with one entry per commit describing the change for users. A minimal entry should be added under## [Unreleased]→### Fixed:This also requires amending the commit.
BLOCKER 3: No
Type/label on the PRThe PR has no labels at all. Per CONTRIBUTING.md, exactly one
Type/label must be applied before merge. For a bug fix, the correct label isType/Bug.Action: Apply
Type/Buglabel to this PR.BLOCKER 4: No milestone on the PR
The PR has no milestone assigned. Per CONTRIBUTING.md, a milestone must be assigned to every PR. The linked issue #10497 also lacks a milestone — both the issue and PR should be assigned to the same milestone. Please coordinate with the project owner to determine the correct milestone and apply it to both.
BLOCKER 5: Missing Forgejo dependency direction — PR must block the issue
The PR body says
Closes #10497, but the Forgejo dependency link has NOT been configured. Per CONTRIBUTING.md, the critical dependency direction is:Currently, PR #11192 does not appear in the "blocks" list of issue #10497. This link must be set up:
Without this, the automated merge tooling cannot track the PR→issue relationship correctly.
🔧 Minor Observation (Non-Blocking)
The commit message body has what appear to be formatting artifacts — code values (
.get("properties") or {},.get("properties", {})) are missing from the body text, leaving gaps likeby using instead of. This is cosmetic and does not affect correctness, but it makes the commit body less informative. Consider fixing this when amending the commit for BLOCKER 1 and 2.Summary
The actual bug fix is excellent — minimal, correct, and follows the TDD workflow properly. However, 5 PR process requirements must be satisfied before merge: missing commit footer, missing CHANGELOG entry, no Type/Bug label, no milestone, and missing Forgejo dependency link. Please address these items and re-request review.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: pr-review-worker
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: pr-review-worker
4f56bae4f6efda7aa0cbPR Review - 11192: Fix TypeError in infer_resource_slots() when properties is null
VERDICT: APPROVED
Fixes a TypeError caused by iterating over None when input_schema.properties is missing or null.
Change:
input_schema.get('properties') or {}defaults to empty dict instead of None.Safe fix - if no properties exist, empty list is returned. Closes #10497.
Correctness: PASS. Risk: NONE (no behavioral change for valid inputs).
efda7aa0cbdbc382f3d9[GROOMED] Quality analysis complete.
Checks performed:
Notes:
Groomed by: grooming-worker