Repository navigation
Description
Problem Description
issue_from_event in src/devops_cli/roadmap/stores/brain_issues.py passes the raw dictionary returned by split_record directly into IssueRecord(..., job_record=job_record) without decoding it with decode_job_record. Because encode_job_record serializes implement.repair_rounds as an integer in the GitHub issue body record block, webhook deliveries and own-write refusal checks fail Pydantic validation with Input should be a valid string for job_record.implement.repair_rounds and raise an unhandled ValidationError in roadmap-service.
Reproduction Steps
- Call
issue_from_event("dan-petty/devops-cli", webhook_issue)on aWebhookIssuewhose body ends with<!-- devops-roadmap-record {"implement.repair_rounds": 0} -->. - Observe
pydantic.ValidationErroronIssueRecord.job_record.implement.repair_rounds.
Expected vs Actual Behavior
Expected: issue_from_event decodes the split record through decode_job_record (matching GitHubRoadmapStore REST reads in src/devops_cli/roadmap/stores/store.py) and returns a valid CachedIssue.
Actual: IssueRecord raises pydantic_core._pydantic_core.ValidationError (type=string_type, input_value=0, input_type=int), causing Exception in ASGI application in uvicorn.error from _remember_delivery_issue and _remember_own_delivery_issue (src/devops_cli/server/routes/webhooks.py).
Environment Diagnostics
- DevOps CLI: observed live in cluster
roadmap-servicelogs on2026-11-25(origin/mainfeb4e969a). - Source:
src/devops_cli/roadmap/stores/brain_issues.py(issue_from_event),src/devops_cli/roadmap/stores/store.py(decode_job_record,encode_job_record).
Logs, Traces, or Terminal Output
File ".../devops_cli/server/routes/webhooks.py", line 447, in _remember_own_delivery_issue
remember_issue(repo, issue_from_event(repo, issue))
File ".../devops_cli/roadmap/stores/brain_issues.py", line 82, in issue_from_event
record = IssueRecord(
pydantic_core._pydantic_core.ValidationError: 1 validation error for IssueRecord
job_record.`implement.repair_rounds`
Input should be a valid string [type=string_type, input_value=0, input_type=int]
Source
Source: #6966
Activity
dan-petty commentedon Nov 25, 2026
Webhook deliveries fail in the live roadmap-service with an unhandled ValidationError, causing service jobs to fail.Both fix job record reading in the roadmap store, but #2538 fixes split_record regex matching while this fixes the missing decode step in issue_from_event.devops-cli-service commentedon Nov 25, 2026
Released in v0.218.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.218.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 07:20 UTC