devflow-toolkit 0.3.4__tar.gz → 0.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/CHANGELOG.md +12 -0
  2. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/PKG-INFO +13 -7
  3. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/README.md +12 -6
  4. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/pyproject.toml +1 -1
  5. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/cli.py +1 -1
  6. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/approve.py +1 -1
  7. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/harness.py +42 -8
  8. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/spec.py +2 -0
  9. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_harness_adapters.py +51 -0
  10. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/.gitignore +0 -0
  11. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/LICENSE +0 -0
  12. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/__init__.py +0 -0
  13. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/__init__.py +0 -0
  14. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/agents.py +0 -0
  15. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/base.py +0 -0
  16. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/claude_code.py +0 -0
  17. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/codex.py +0 -0
  18. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/detector.py +0 -0
  19. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/instructions.py +0 -0
  20. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/kiro.py +0 -0
  21. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/opencode.py +0 -0
  22. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/adapters/registry.py +0 -0
  23. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/__init__.py +0 -0
  24. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/doctor.py +0 -0
  25. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/init.py +0 -0
  26. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/recover.py +0 -0
  27. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/commands/status.py +0 -0
  28. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/__init__.py +0 -0
  29. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/architecture.py +0 -0
  30. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/artifacts/__init__.py +0 -0
  31. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/artifacts/errors.py +0 -0
  32. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/artifacts/models.py +0 -0
  33. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/artifacts/store.py +0 -0
  34. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/clock.py +0 -0
  35. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/config.py +0 -0
  36. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/constitution.py +0 -0
  37. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/discovery.py +0 -0
  38. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/ports.py +0 -0
  39. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/profile_manager.py +0 -0
  40. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/project.py +0 -0
  41. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/recovery.py +0 -0
  42. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/spec_workflow.py +0 -0
  43. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/specification.py +0 -0
  44. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/__init__.py +0 -0
  45. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/errors.py +0 -0
  46. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/events.py +0 -0
  47. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/locator.py +0 -0
  48. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/lock.py +0 -0
  49. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/manager.py +0 -0
  50. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/models.py +0 -0
  51. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/core/state/transitions.py +0 -0
  52. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/models/__init__.py +0 -0
  53. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/models/profile.py +0 -0
  54. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/models/project.py +0 -0
  55. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/ai-rag/constitution/ai-rag-standards.md +0 -0
  56. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/ai-rag/profile.yaml +0 -0
  57. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/base/constitution/architecture.md +0 -0
  58. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/base/constitution/code-standards.md +0 -0
  59. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/base/constitution/constitution.md +0 -0
  60. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/base/profile.yaml +0 -0
  61. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/django-backend/constitution/django-standards.md +0 -0
  62. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/django-backend/profile.yaml +0 -0
  63. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/fastapi-backend/constitution/fastapi-standards.md +0 -0
  64. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/profiles/fastapi-backend/profile.yaml +0 -0
  65. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/prompts/__init__.py +0 -0
  66. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/prompts/discovery.md +0 -0
  67. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/prompts/spec.greenfield.md +0 -0
  68. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/src/devflow/prompts/spec.md +0 -0
  69. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_cli.py +0 -0
  70. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_discovery.py +0 -0
  71. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_event_log.py +0 -0
  72. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_greenfield.py +0 -0
  73. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_hardening.py +0 -0
  74. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_recovery.py +0 -0
  75. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_spec_workflow.py +0 -0
  76. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_state.py +0 -0
  77. {devflow_toolkit-0.3.4 → devflow_toolkit-0.3.5}/tests/test_state_replay.py +0 -0
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to DevFlow Toolkit are documented in this file.
4
4
 
5
+ ## 0.3.5 - 2026-11-04
6
+
7
+ ### Fixed
8
+
9
+ - Interactive `devflow spec` now asks which installed agent harness to
10
+ use even when `.devflow/config.yaml` already names one. Previously it
11
+ started the configured harness directly, so `--harness` had to be
12
+ passed to make a different choice. The configured harness is offered
13
+ as the prompt default. Pass `--harness <name>` to skip the prompt or
14
+ `--no-agent` to use deterministic analysis.
15
+ - Package version is `0.3.5`.
16
+
5
17
  ## 0.3.4 - 2026-11-04
6
18
 
7
19
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: devflow-toolkit
3
- Version: 0.3.4
3
+ Version: 0.3.5
4
4
  Summary: Specification workflow toolkit for AI-assisted software changes
5
5
  Author: DevFlow contributors
6
6
  License-Expression: MIT
@@ -42,7 +42,7 @@ anyone starts implementing it. DevFlow owns the workflow state; the
42
42
  selected agent harness is only the execution backend that drafts the
43
43
  specification.
44
44
 
45
- This is the `0.3.4` MVP. It implements the **discovery and
45
+ This is the `0.3.5` MVP. It implements the **discovery and
46
46
  specification stages only**. It supports two specification contexts:
47
47
  **Existing Project** (the default) and **Greenfield**. It is not a
48
48
  complete SDD platform and does not include planning, implementation or
@@ -118,7 +118,7 @@ pip install devflow-toolkit
118
118
  To install a specific built artifact instead:
119
119
 
120
120
  ```bash
121
- pip install devflow_toolkit-0.3.4-py3-none-any.whl
121
+ pip install devflow_toolkit-0.3.5-py3-none-any.whl
122
122
  ```
123
123
 
124
124
  Verify the installation:
@@ -282,7 +282,7 @@ as an architectural constraint when it is present.
282
282
 
283
283
  ### Harnesses
284
284
 
285
- | Harness | Status in 0.3.4 |
285
+ | Harness | Status in 0.3.5 |
286
286
  | --- | --- |
287
287
  | OpenCode | Verified end-to-end in non-interactive mode |
288
288
  | Codex | Integration files are generated, but not verified for this release |
@@ -432,7 +432,7 @@ specification that still lists open questions.
432
432
  8. If artifacts exist without workflow state, diagnose with
433
433
  `devflow doctor <id>` and repair with `devflow recover <id>`.
434
434
 
435
- Available commands in `0.3.4`:
435
+ Available commands in `0.3.5`:
436
436
 
437
437
  | Command | Status |
438
438
  | --- | --- |
@@ -493,6 +493,12 @@ devflow spec "Add a GET /patients endpoint"
493
493
  devflow spec --continue 006 . --harness opencode
494
494
  ```
495
495
 
496
+ When no `--harness` is passed, an interactive `devflow spec` asks which
497
+ installed harness to use before starting, even if `.devflow/config.yaml`
498
+ already names one. The configured harness is offered as the default.
499
+ Pass `--harness <name>` to skip the prompt, or `--no-agent` to use
500
+ deterministic static analysis.
501
+
496
502
  Use `--auto` to run both phases in a single invocation, as earlier
497
503
  releases did:
498
504
 
@@ -614,7 +620,7 @@ devflow approve 001 --stage spec
614
620
  ```
615
621
 
616
622
  Approval is explicit and binds the decision to the current artifact
617
- digests. For a `0.3.4` change it binds `spec.md`, `discovery.yaml` and,
623
+ digests. For a `0.3.5` change it binds `spec.md`, `discovery.yaml` and,
618
624
  when a manifest applies, the architecture manifest digest. Repeating the
619
625
  same approval is a no-op. If an artifact changes after validation,
620
626
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -625,7 +631,7 @@ and names the pending questions and assumptions. Approval also rejects a
625
631
  specification whose section 7 still lists open questions. Legacy `0.2.0`
626
632
  changes without `discovery.yaml` remain approvable with a warning.
627
633
 
628
- Only the `spec` stage is available in `0.3.4`. `--stage plan` and
634
+ Only the `spec` stage is available in `0.3.5`. `--stage plan` and
629
635
  `--stage review` are rejected. There are no `plan`, `implement` or
630
636
  `review` commands in this release.
631
637
 
@@ -10,7 +10,7 @@ anyone starts implementing it. DevFlow owns the workflow state; the
10
10
  selected agent harness is only the execution backend that drafts the
11
11
  specification.
12
12
 
13
- This is the `0.3.4` MVP. It implements the **discovery and
13
+ This is the `0.3.5` MVP. It implements the **discovery and
14
14
  specification stages only**. It supports two specification contexts:
15
15
  **Existing Project** (the default) and **Greenfield**. It is not a
16
16
  complete SDD platform and does not include planning, implementation or
@@ -86,7 +86,7 @@ pip install devflow-toolkit
86
86
  To install a specific built artifact instead:
87
87
 
88
88
  ```bash
89
- pip install devflow_toolkit-0.3.4-py3-none-any.whl
89
+ pip install devflow_toolkit-0.3.5-py3-none-any.whl
90
90
  ```
91
91
 
92
92
  Verify the installation:
@@ -250,7 +250,7 @@ as an architectural constraint when it is present.
250
250
 
251
251
  ### Harnesses
252
252
 
253
- | Harness | Status in 0.3.4 |
253
+ | Harness | Status in 0.3.5 |
254
254
  | --- | --- |
255
255
  | OpenCode | Verified end-to-end in non-interactive mode |
256
256
  | Codex | Integration files are generated, but not verified for this release |
@@ -400,7 +400,7 @@ specification that still lists open questions.
400
400
  8. If artifacts exist without workflow state, diagnose with
401
401
  `devflow doctor <id>` and repair with `devflow recover <id>`.
402
402
 
403
- Available commands in `0.3.4`:
403
+ Available commands in `0.3.5`:
404
404
 
405
405
  | Command | Status |
406
406
  | --- | --- |
@@ -461,6 +461,12 @@ devflow spec "Add a GET /patients endpoint"
461
461
  devflow spec --continue 006 . --harness opencode
462
462
  ```
463
463
 
464
+ When no `--harness` is passed, an interactive `devflow spec` asks which
465
+ installed harness to use before starting, even if `.devflow/config.yaml`
466
+ already names one. The configured harness is offered as the default.
467
+ Pass `--harness <name>` to skip the prompt, or `--no-agent` to use
468
+ deterministic static analysis.
469
+
464
470
  Use `--auto` to run both phases in a single invocation, as earlier
465
471
  releases did:
466
472
 
@@ -582,7 +588,7 @@ devflow approve 001 --stage spec
582
588
  ```
583
589
 
584
590
  Approval is explicit and binds the decision to the current artifact
585
- digests. For a `0.3.4` change it binds `spec.md`, `discovery.yaml` and,
591
+ digests. For a `0.3.5` change it binds `spec.md`, `discovery.yaml` and,
586
592
  when a manifest applies, the architecture manifest digest. Repeating the
587
593
  same approval is a no-op. If an artifact changes after validation,
588
594
  DevFlow marks it stale and refuses approval until it is regenerated and
@@ -593,7 +599,7 @@ and names the pending questions and assumptions. Approval also rejects a
593
599
  specification whose section 7 still lists open questions. Legacy `0.2.0`
594
600
  changes without `discovery.yaml` remain approvable with a warning.
595
601
 
596
- Only the `spec` stage is available in `0.3.4`. `--stage plan` and
602
+ Only the `spec` stage is available in `0.3.5`. `--stage plan` and
597
603
  `--stage review` are rejected. There are no `plan`, `implement` or
598
604
  `review` commands in this release.
599
605
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "devflow-toolkit"
7
- version = "0.3.4"
7
+ version = "0.3.5"
8
8
  description = "Specification workflow toolkit for AI-assisted software changes"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -35,7 +35,7 @@ def version() -> None:
35
35
  try:
36
36
  current_version = package_version("devflow-toolkit")
37
37
  except PackageNotFoundError:
38
- current_version = "0.3.4"
38
+ current_version = "0.3.5"
39
39
  console.print(f"DevFlow v{current_version}")
40
40
 
41
41
 
@@ -57,7 +57,7 @@ def _approve(spec_id: str, path: Path, stage: str) -> None:
57
57
  normalized = stage.strip().lower()
58
58
  if normalized != "spec":
59
59
  msg = (
60
- f"Stage '{stage}' is not available in DevFlow 0.3.4. "
60
+ f"Stage '{stage}' is not available in DevFlow 0.3.5. "
61
61
  "Only the 'spec' stage can be approved."
62
62
  )
63
63
  raise UnsupportedStageError(msg)
@@ -38,16 +38,38 @@ def resolve_harness(
38
38
  *,
39
39
  allow_prompt: bool,
40
40
  require_installed: bool,
41
+ force_prompt: bool = False,
41
42
  ) -> tuple[str | None, list[str]]:
42
- """Resolve ``auto`` and verify that concrete harnesses exist."""
43
+ """Resolve ``auto`` and verify that concrete harnesses exist.
44
+
45
+ When ``force_prompt`` is true and the terminal is interactive, the
46
+ user is asked to choose a harness even if one is already configured.
47
+ """
43
48
  canonical = validate_harness_name(requested)
44
49
  if canonical == "none":
45
50
  return None, []
46
51
 
52
+ detected = detect_harnesses()
53
+ if force_prompt and allow_prompt:
54
+ names = [harness.name for harness in detected]
55
+ if not names:
56
+ return None, [
57
+ "No supported agent harness was found on PATH. DevFlow will use "
58
+ "deterministic static analysis.",
59
+ ]
60
+ default = canonical if canonical in names else names[0]
61
+ chosen = _prompt_for_harness(
62
+ names,
63
+ default=default,
64
+ include_none=True,
65
+ )
66
+ if chosen is None or chosen == "none":
67
+ return None, []
68
+ return chosen, []
69
+
47
70
  if canonical != "auto" and not require_installed:
48
71
  return canonical, []
49
72
 
50
- detected = detect_harnesses()
51
73
  prompt = _prompt_for_harness if allow_prompt else None
52
74
  selection = select_harness(canonical, detected, prompt=prompt)
53
75
  return selection.harness, list(selection.warnings)
@@ -82,17 +104,29 @@ def print_setup_result(
82
104
  console.print(f"[yellow]Warning:[/yellow] {warning}")
83
105
 
84
106
 
85
- def _prompt_for_harness(names: list[str]) -> str | None:
107
+ def _prompt_for_harness(
108
+ names: list[str],
109
+ *,
110
+ default: str | None = None,
111
+ include_none: bool = False,
112
+ ) -> str | None:
86
113
  if not sys.stdin.isatty():
87
114
  return None
88
- typer.echo("Multiple agent harnesses are installed:")
115
+ choices = [*names]
116
+ if include_none:
117
+ choices.append("none")
118
+ typer.echo("Available agent harnesses:")
89
119
  for name in names:
90
- typer.echo(f" - {name}")
120
+ suffix = " (configured)" if name == default else ""
121
+ typer.echo(f" - {name}{suffix}")
122
+ if include_none:
123
+ typer.echo(" - none (deterministic static analysis)")
91
124
  while True:
92
125
  answer = typer.prompt(
93
- "Agent harness (" + "/".join(names) + ")",
126
+ "Agent harness (" + "/".join(choices) + ")",
127
+ default=default or "",
94
128
  )
95
129
  canonical = canonical_harness_name(answer)
96
- if canonical in names:
130
+ if canonical in choices:
97
131
  return canonical
98
- typer.echo(f"Choose one of: {', '.join(names)}")
132
+ typer.echo(f"Choose one of: {', '.join(choices)}")
@@ -188,6 +188,7 @@ def _create_specification(
188
188
  requested_harness = validate_harness_name(
189
189
  "none" if no_agent else (harness or config.agent_harness)
190
190
  )
191
+ explicit_harness = no_agent or harness is not None
191
192
  execution_mode, mode_warnings = _execution_mode(
192
193
  mode or config.execution_mode,
193
194
  )
@@ -208,6 +209,7 @@ def _create_specification(
208
209
  requested_harness,
209
210
  allow_prompt=allow_prompt,
210
211
  require_installed=True,
212
+ force_prompt=not explicit_harness,
211
213
  )
212
214
  adapter = adapter_for(selected_harness) if selected_harness else None
213
215
 
@@ -21,6 +21,8 @@ from devflow.adapters.detector import (
21
21
  select_harness,
22
22
  )
23
23
  from devflow.cli import app
24
+ from devflow.commands import harness as harness_module
25
+ from devflow.commands.harness import resolve_harness
24
26
  from devflow.core.config import AgentPermissions
25
27
 
26
28
  runner = CliRunner()
@@ -568,6 +570,55 @@ def test_spec_auto_reuses_single_detected_harness(
568
570
  assert "Agent generated spec" in spec.read_text(encoding="utf-8")
569
571
 
570
572
 
573
+ def test_resolve_harness_prompts_even_with_configured_harness(
574
+ monkeypatch: object,
575
+ ) -> None:
576
+ detected = (
577
+ DetectedHarness(
578
+ name="opencode",
579
+ executable="opencode",
580
+ path="/bin/opencode",
581
+ ),
582
+ DetectedHarness(
583
+ name="codex",
584
+ executable="codex",
585
+ path="/bin/codex",
586
+ ),
587
+ )
588
+ monkeypatch.setattr(
589
+ harness_module,
590
+ "detect_harnesses",
591
+ lambda: detected,
592
+ )
593
+ calls: list[tuple[list[str], str | None, bool]] = []
594
+
595
+ def fake_prompt(
596
+ names: list[str],
597
+ *,
598
+ default: str | None = None,
599
+ include_none: bool = False,
600
+ ) -> str:
601
+ calls.append((list(names), default, include_none))
602
+ return "codex"
603
+
604
+ monkeypatch.setattr(
605
+ harness_module,
606
+ "_prompt_for_harness",
607
+ fake_prompt,
608
+ )
609
+
610
+ selected, warnings = resolve_harness(
611
+ "opencode",
612
+ allow_prompt=True,
613
+ require_installed=True,
614
+ force_prompt=True,
615
+ )
616
+
617
+ assert selected == "codex"
618
+ assert warnings == []
619
+ assert calls == [(["opencode", "codex"], "opencode", True)]
620
+
621
+
571
622
  def test_init_rejects_unknown_harness_and_mode(
572
623
  tmp_path: Path,
573
624
  ) -> None:
File without changes