Skip to content

refactor: split harness/runner.py into focused modules (QUAL2)#34

Merged
markhazleton merged 4 commits into
mainfrom
copilot/qual2-refactor-harness-runner
May 5, 2026
Merged

refactor: split harness/runner.py into focused modules (QUAL2)#34
markhazleton merged 4 commits into
mainfrom
copilot/qual2-refactor-harness-runner

Conversation

Copilot AI commented May 5, 2026

Copy link
Copy Markdown
Contributor
  • Create sub-modules _delivery_gate.py, _convergence.py, _probe_dispatch.py, _result_fmt.py
  • Rewrite runner.py as thin orchestrator
  • All 124 tests pass; all 4 harness contract scripts exit 0
  • Fix H-01: restore backward-compatibility delegates for 7 removed HarnessRunner methods (resolve_step_adapter, get_adapter, write_supporting_artifacts, write_result, write_lifecycle_artifacts, build_retry_prompt, pause_for_human_review)

Copilot AI linked an issue May 5, 2026 that may be closed by this pull request
5 tasks
@markhazleton markhazleton marked this pull request as ready for review May 5, 2026 16:42
Copilot AI and others added 2 commits May 5, 2026 16:54
- Extract delivery-gate logic to _delivery_gate.py
- Extract convergence loop + finding management to _convergence.py
- Extract probe dispatch + step execution to _probe_dispatch.py
- Extract result formatting + context resolution + replay to _result_fmt.py
- Rewrite runner.py as thin orchestrator (149 lines, under 150-line limit)
- All 124 tests pass, all 4 harness contract scripts exit 0"

Agent-Logs-Url: https://github.com/markhazleton/devspark/sessions/d6521197-2cb6-4176-9d9f-40791d0ff87b

Co-authored-by: markhazleton <223906+markhazleton@users.noreply.github.com>
…try param properly

Agent-Logs-Url: https://github.com/markhazleton/devspark/sessions/d6521197-2cb6-4176-9d9f-40791d0ff87b

Co-authored-by: markhazleton <223906+markhazleton@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor: Split harness/runner.py into focused modules refactor: split harness/runner.py into focused modules (QUAL2) May 5, 2026
Copilot AI requested a review from markhazleton May 5, 2026 16:58
…ner methods

Re-adds thin class-level delegate methods that were present on main-branch
HarnessRunner but removed by the module split refactor:
  - resolve_step_adapter → _probe_dispatch.resolve_step_adapter
  - get_adapter          → _probe_dispatch.get_adapter
  - build_retry_prompt   → _probe_dispatch.build_retry_prompt
  - pause_for_human_review → _probe_dispatch.pause_for_human_review
  - write_supporting_artifacts → _result_fmt.write_supporting_artifacts
  - write_result           → _result_fmt.write_result
  - write_lifecycle_artifacts → _result_fmt.write_lifecycle_artifacts

All 124 tests pass; all 4 harness contract scripts exit 0.

Agent-Logs-Url: https://github.com/markhazleton/devspark/sessions/3ae95ff6-afb3-4411-9a4c-4828ce717b5d

Co-authored-by: markhazleton <223906+markhazleton@users.noreply.github.com>
@markhazleton markhazleton merged commit a19f36a into main May 5, 2026
10 of 11 checks passed
@markhazleton markhazleton deleted the copilot/qual2-refactor-harness-runner branch May 5, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: split harness/runner.py into focused modules (QUAL2)

2 participants