Repository navigation
Closed
Description
Problem
get_goalreturnedartifacts:[{number:96,"state":"open","draft":true}]andartifactStats.openPullRequests:1together withpullRequests:[{number:96,"state":"merged"}]in one response.list_task_submissions {limit:1, sinceMinutes:10080}returned"state":"queued","submissionState":"queued"whileprogress.stagewas"completed"and the PR was merged.- Timestamps come in three formats, sometimes in one object:
list_goalshascreated_at:"2026-11-02T10:07:28.179Z"next toupdated_at:"2026-11-02 10:12:51"(no time zone);get_goalhascheckpoint.lastAt:"2026-11-02T10:12:47Z"andprogress.checkpoint.lastAt:"2026-11-02 10:12:47";list_plans,list_todos,list_instance_membersuse the zone-less SQL form;list_plan_blocked_events.createdAt,get_followup_handoff.updatedAt,list_automation_runs.createdAt,list_automation_definitions.nextRunAtare epoch milliseconds. list_plansshowspull_request_count:15with 8 PRs listed and no truncation flag;list_tasksshowsagent_alias:nullfor running tasks whose agent the CLI shows.list_followup_handoffsis described as "the attempts whose publication is still owed, including holds awaiting an operator" but returns released handoffs withnextAction:"none"going back a month, with no limit or paging.
Expected / acceptance criteria
- 1, 2: the state fields of one object agree; a merged pull request is not reported as an open artifact, and a submission whose task completed is not
queued. - 3: every timestamp in an MCP result is ISO 8601 UTC with
Z(convert at the MCP presentation boundary; do not change stored values or the REST API). Field names stay as they are. - 4:
list_planseither lists all pull requests or flags the truncation;agent_aliasis filled for running tasks. - 5:
list_followup_handoffsreturns only handoffs that are still held or in recovery by default; addincludeReleased(default false), andlimit/offset. - Tests for each point.
Implementation
Normalize timestamps in one place in the MCP presentation layer (a recursive pass over known timestamp field names or value shapes is acceptable if it is covered by tests). The goal artifact state and submission state come from the services the tools call; fix the derivation, not the display.
Notes
ProPR runs on SQLite only: do not add code or tests for other databases. Do not change REST response shapes.
Activity
propr-dev commentedon Nov 17, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53598/claude-opus-5-5-mcp-contradictory-state-f-20261117-0248-lqk3595-epic-0-9-h9lissue-3598-20261117-0248-claude-opus-5-5-lqk🔍 Track Task Execution
I've fixed all five points from issue #3598. Every `packages/api/test…
[3598 by Claude Opus 5.5] MCP: contradictory state fields and mixed t…