Summary
Task detail payloads should expose started and completed timestamps for each scan phase, not just coarse status.
Why this task exists
This area already has active backend behavior and tests, but the current contract is either implicit or incomplete. A contributor should be able to improve reliability without changing unrelated execution flow.
Scope
- Suggested files or directories:
backend/secuscan/executor.py, backend/secuscan/routes.py, testing/backend/unit/test_scan_phases.py
- Out of scope: broad UI redesigns, unrelated schema migrations, or plugin-wide refactors
Starting points
Review the existing route and model patterns in backend/secuscan/routes.py, adjacent unit/integration tests under testing/backend/, and similar implementations already used for tasks, notifications, or workflows.
Acceptance criteria
Test plan
Run the most specific backend tests that exercise the touched route or module, then run the adjacent integration coverage if a route contract changes.
Notes for contributors
Keep the change scoped to the described behavior. Avoid bundling unrelated cleanup into the same PR.
Summary
Task detail payloads should expose started and completed timestamps for each scan phase, not just coarse status.
Why this task exists
This area already has active backend behavior and tests, but the current contract is either implicit or incomplete. A contributor should be able to improve reliability without changing unrelated execution flow.
Scope
backend/secuscan/executor.py, backend/secuscan/routes.py, testing/backend/unit/test_scan_phases.pyStarting points
Review the existing route and model patterns in
backend/secuscan/routes.py, adjacent unit/integration tests undertesting/backend/, and similar implementations already used for tasks, notifications, or workflows.Acceptance criteria
Test plan
Run the most specific backend tests that exercise the touched route or module, then run the adjacent integration coverage if a route contract changes.
Notes for contributors
Keep the change scoped to the described behavior. Avoid bundling unrelated cleanup into the same PR.