test(tasks): cover task domain view mappers#86755
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 30, 2026, 5:35 AM ET / 09:35 UTC. Summary PR surface: Tests +212. Total +212 across 1 file. Reproducibility: not applicable. This PR adds test coverage rather than reporting a runtime bug. Source inspection and the PR body’s terminal proof confirm the mapper path being covered. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused mapper tests after normal required checks complete, keeping runtime mapper behavior unchanged unless a separate bug is found. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds test coverage rather than reporting a runtime bug. Source inspection and the PR body’s terminal proof confirm the mapper path being covered. Is this the best way to solve the issue? Yes: colocated unit coverage is the narrowest maintainable way to lock down these DTO mappings without changing runtime behavior or API surface. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 28eb4cfa12e5. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +212. Total +212 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
ClawSweeper PR egg ✨ Hatched: 🌱 uncommon Moonlit Shellbean Hatch commandComment Hatchability rules:
Rarity: 🌱 uncommon. What is this egg doing here?
|
0a460e1 to
931f8b3
Compare
|
Maintainer verification for current-main land: Behavior addressed: adds focused coverage for task-domain view mapper DTO contracts in src/tasks/task-domain-views.test.ts. |
Adds focused coverage for task-domain view mapper DTO contracts, including summary cloning, task run/detail mapping, flow view/detail mapping, and implicit summary computation. Test-only PR. Verified with git diff --check and PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false pnpm test src/tasks/task-domain-views.test.ts on the current-main merge result. Thanks @leno23. Co-authored-by: wuyangfan <yangfan.wu@succaiss.com>
Adds focused coverage for task-domain view mapper DTO contracts, including summary cloning, task run/detail mapping, flow view/detail mapping, and implicit summary computation. Test-only PR. Verified with git diff --check and PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false pnpm test src/tasks/task-domain-views.test.ts on the current-main merge result. Thanks @leno23. Co-authored-by: wuyangfan <yangfan.wu@succaiss.com>
Adds focused coverage for task-domain view mapper DTO contracts, including summary cloning, task run/detail mapping, flow view/detail mapping, and implicit summary computation. Test-only PR. Verified with git diff --check and PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false pnpm test src/tasks/task-domain-views.test.ts on the current-main merge result. Thanks @leno23. Co-authored-by: wuyangfan <yangfan.wu@succaiss.com>
Summary
Test plan
Duplicate check
Test-only change; no runtime behavior changes.
Real behavior proof
taskId,parentFlowId, orrequesterSessionKeyinto the public view.leno23/test-task-domain-views) on macOS, using Node with the repository TypeScript loader (node --import tsx).{ "runView": { "id": "task-proof", "runtime": "cli", "sessionKey": "agent:main:main", "ownerKey": "agent:main:main", "scope": "session", "flowId": "flow-proof", "title": "Verify task domain mapper proof", "status": "failed", "deliveryStatus": "failed", "notifyPolicy": "done_only", "createdAt": 100, "terminalSummary": "blocked by external approval" }, "flowDetail": { "id": "flow-proof", "ownerKey": "agent:main:main", "status": "blocked", "notifyPolicy": "done_only", "goal": "Prove mapper output", "createdAt": 90, "updatedAt": 120, "blocked": { "taskId": "task-proof", "summary": "Waiting on approval" }, "tasks": [ { "id": "task-proof", "runtime": "cli", "sessionKey": "agent:main:main", "ownerKey": "agent:main:main", "scope": "session", "flowId": "flow-proof", "title": "Verify task domain mapper proof", "status": "failed", "deliveryStatus": "failed", "notifyPolicy": "done_only", "createdAt": 100, "terminalSummary": "blocked by external approval" } ], "taskSummary": { "total": 1, "active": 0, "terminal": 1, "failures": 1, "byStatus": { "queued": 0, "running": 0, "succeeded": 0, "failed": 1, "timed_out": 0, "cancelled": 0, "lost": 0 }, "byRuntime": { "subagent": 0, "acp": 0, "cli": 1, "cron": 0 } } } }id,sessionKey,flowId,title, nestedtasks, and computedtaskSummaryfields exactly as the task-domain contract exposes them; the new tests now lock these outputs down.git diff --checkpassed.