bloom-launch 0.3.1__tar.gz → 0.4.1__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 (95) hide show
  1. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/PKG-INFO +28 -9
  2. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/README.md +27 -8
  3. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/adapter-contract.md +7 -1
  4. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/alpha-release-contract.md +11 -11
  5. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/code-harness-compatibility/codex-0.167.2.md +7 -0
  6. bloom_launch-0.4.1/docs/code-harness-compatibility/opencode-2.3.2.md +66 -0
  7. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/installation.md +16 -8
  8. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/quick-launch.md +1 -1
  9. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/releasing.md +1 -1
  10. bloom_launch-0.4.1/docs/superpowers/designs/2026-11-25-cli-codex-1.md +45 -0
  11. bloom_launch-0.4.1/docs/superpowers/plans/2026-11-25-cli-codex-1.md +140 -0
  12. bloom_launch-0.4.1/docs/superpowers/plans/2026-11-26-pr-18-review-followup.md +13 -0
  13. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/pyproject.toml +4 -1
  14. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/scripts/check_artifacts.py +1 -1
  15. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/scripts/verify_release_candidate.py +2 -2
  16. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/cli.py +16 -5
  17. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/launch.py +129 -19
  18. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/wrappers.py +66 -16
  19. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/installed_connection_probe.py +4 -0
  20. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/native_smoke_support.py +4 -1
  21. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_artifacts.py +2 -2
  22. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_ci_workflow.py +29 -1
  23. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_cli_forwarding.py +41 -10
  24. bloom_launch-0.4.1/tests/test_codex_launch.py +158 -0
  25. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_copilot_launch.py +38 -3
  26. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_model_limits.py +1 -0
  27. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_native_smoke.py +6 -2
  28. bloom_launch-0.4.1/tests/test_opencode_launch.py +336 -0
  29. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_release_workflow.py +32 -5
  30. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_secret_validation.py +1 -0
  31. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_thin_launch.py +4 -0
  32. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_wrappers.py +26 -2
  33. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/thin_job_control_probe.py +1 -1
  34. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/uv.lock +1 -1
  35. bloom_launch-0.3.1/.github/workflows/local-checks.yml +0 -109
  36. bloom_launch-0.3.1/.github/workflows/release.yml +0 -182
  37. bloom_launch-0.3.1/CONTEXT.md +0 -179
  38. bloom_launch-0.3.1/tests/test_codex_launch.py +0 -34
  39. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/.gitignore +0 -0
  40. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/LICENSE +0 -0
  41. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/adr/0001-authorization-is-not-qualification.md +0 -0
  42. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/adr/0002-persistent-native-profiles.md +0 -0
  43. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/adr/0003-credential-and-process-ownership.md +0 -0
  44. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/ci-efficiency-decisions.md +0 -0
  45. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/code-harness-compatibility/copilot-1.0.112.md +0 -0
  46. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/connections.md +0 -0
  47. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/demo-goal.md +0 -0
  48. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/development.md +0 -0
  49. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/headless.md +0 -0
  50. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/local-testing.md +0 -0
  51. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/models.md +0 -0
  52. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/multi-harness-engineering-requirements.md +0 -0
  53. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/opencode-bootstrap-compatibility.md +0 -0
  54. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/opencode-demo.md +0 -0
  55. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/qualification.md +0 -0
  56. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-04-ci-efficiency.md +0 -0
  57. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-04-coderabbit-followup.md +0 -0
  58. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-05-demo-goal.md +0 -0
  59. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-05-opencode-demo.md +0 -0
  60. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-11-agent-id.md +0 -0
  61. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-12-agent-id-default.md +0 -0
  62. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-12-codex-launch-spike.md +0 -0
  63. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/plans/2026-11-12-session-id.md +0 -0
  64. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/specs/2026-11-04-ci-efficiency-design.md +0 -0
  65. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/specs/2026-11-04-coderabbit-followup-design.md +0 -0
  66. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/specs/2026-11-05-demo-goal-design.md +0 -0
  67. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/docs/superpowers/specs/2026-11-05-opencode-demo-design.md +0 -0
  68. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/scripts/check_local_install.sh +0 -0
  69. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/scripts/diagnose_discovery.py +0 -0
  70. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/__init__.py +0 -0
  71. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/__main__.py +0 -0
  72. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/contract.py +0 -0
  73. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/discovery.py +0 -0
  74. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/labels.py +0 -0
  75. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/model_metadata.py +0 -0
  76. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/process.py +0 -0
  77. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/progress.py +0 -0
  78. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/settings.py +0 -0
  79. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/src/bloom_cli/urls.py +0 -0
  80. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/conftest.py +0 -0
  81. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/job_control.py +0 -0
  82. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/job_control_probe.py +0 -0
  83. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/pty_driver.py +0 -0
  84. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_codex_compatibility.py +0 -0
  85. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_discovery_diagnostic.py +0 -0
  86. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_install_script.py +0 -0
  87. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_installed_launch.py +0 -0
  88. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_job_control.py +0 -0
  89. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_launch_progress.py +0 -0
  90. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_model_labels.py +0 -0
  91. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_model_metadata.py +0 -0
  92. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_process.py +0 -0
  93. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_progress.py +0 -0
  94. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_show_config.py +0 -0
  95. {bloom_launch-0.3.1 → bloom_launch-0.4.1}/tests/test_urls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bloom-launch
3
- Version: 0.3.1
3
+ Version: 0.4.1
4
4
  Summary: Scoped launcher for native coding harnesses
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -22,25 +22,25 @@ Plain `claude`, `codex`, `copilot`, or `opencode` continues to use its normal co
22
22
 
23
23
  ## Install
24
24
 
25
- Requirements: Python **3.12 or later**, plus Claude Code, Codex CLI `0.167.2`, GitHub Copilot CLI `1.0.112+` (`1.x`), or OpenCode already installed and available on `PATH`.
25
+ Requirements: Python **3.12 or later**, plus Claude Code, Codex CLI `0.167.2+`, GitHub Copilot CLI `1.0.112+` (`1.x`), or OpenCode `1.x` or `2.3.2+` (`2.x`) already installed and available on `PATH`.
26
26
  macOS is the primary platform. Bloom does not install or repair your Coding Harness.
27
27
  Codex and Copilot have structural adapter evidence only. Live Bloom, tool/history, and full interactive qualification remain unrecorded.
28
28
  The bundled Codex and Copilot commands do not establish a Qualified Harness Path or satisfy the release's native acceptance gate.
29
29
  Before launching, follow the [Claude Code installation instructions](https://docs.anthropic.com/en/docs/claude-code/overview), [Codex CLI installation instructions](https://developers.openai.com/codex/), [GitHub Copilot CLI installation instructions](https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli), or [OpenCode installation instructions](https://opencode.ai/docs/installation/).
30
30
 
31
- These instructions describe `0.3.1`; if not yet available on PyPI, collaborators can use a source checkout.
32
- The selected source version is `0.3.1`.
31
+ These instructions describe `0.4.1`; if not yet available on PyPI, collaborators can use a source checkout.
32
+ The selected source version is `0.4.1`.
33
33
 
34
34
  When available on PyPI, install this exact version with either tool:
35
35
 
36
36
  ```sh
37
- uv tool install 'bloom-launch==0.3.1'
37
+ uv tool install 'bloom-launch==0.4.1'
38
38
  # Or:
39
- pipx install 'bloom-launch==0.3.1'
39
+ pipx install 'bloom-launch==0.4.1'
40
40
  ```
41
41
 
42
42
  Collaborators need access to the private [repository](https://github.com/Bloom-Factory-Engineering/bloom-cli) for a source checkout.
43
- Use a checkout whose project metadata and lockfile both specify `0.3.1` before running:
43
+ Use a checkout whose project metadata and lockfile both specify `0.4.1` before running:
44
44
 
45
45
  ```sh
46
46
  uv sync --locked --group dev
@@ -89,9 +89,11 @@ Use `--` when you want to mark the start of native arguments clearly. Bloom send
89
89
 
90
90
  ```sh
91
91
  bloom launch claude -- --verbose
92
+ bloom launch codex agents -- --no-daemon
93
+ bloom launch opencode run -- --server native-server
92
94
  ```
93
95
 
94
- Bloom keeps `--model` for its own gateway model selection. Bloom also keeps Claude Code's `--settings` option for its private settings file.
96
+ Before `--`, Bloom reserves connection options such as `--model`, `--config`, and harness-specific connection flags. After `--`, the native harness owns every argument.
95
97
 
96
98
  | Argument | Purpose |
97
99
  | --- | --- |
@@ -117,7 +119,12 @@ The indicator stops before the picker, native handoff, or error output, includin
117
119
  Ordinary launches use the cached vkey and the harness's saved model for direct native handoff without launcher HTTP or progress output.
118
120
  First setup, `--config`, and explicit `--model` perform discovery and access checks before handoff.
119
121
  Each normalized gateway shares one vkey across all four harnesses. Each harness has a separate model default.
120
- Copilot CLI `1.0.112` or later `1.x` is required. It sends agent and session headers through `COPILOT_PROVIDER_HEADERS`. Versions newer than the tested `1.0.x` line print a warning and continue.
122
+ Codex CLI `0.167.2` or later is required. The tested Codex compatibility baseline is `0.167.2`. Codex `1.x` and later versions print a warning and continue.
123
+ Codex model catalog responses use a truncation limit of 10000 tokens.
124
+ Copilot CLI `1.0.112` or later `1.x` is required. It sends agent and session headers through `COPILOT_PROVIDER_HEADERS`. Versions newer than the tested `1.0.x` line print a warning and continue. Bloom parses Copilot and OpenCode version output only for launch gating, not for native feature detection.
125
+ OpenCode `1.x` or `2.3.2` or later `2.x` is required. Bloom checks `opencode --version` before launch. The last-tested OpenCode version is `2.4.0`.
126
+ On OpenCode `2.x`, Bloom adds `--standalone`, so the launch uses a private OpenCode server. It does not use or change the shared OpenCode background service, and plain `opencode` keeps its normal connection.
127
+ OpenCode commands that cannot use a private server (for example `service`, `serve`, `pair`, `upgrade`, or `acp`) stop with an `Unrecognized flag: --standalone` error. Run them with plain `opencode`.
121
128
 
122
129
  `--config` prompts for a replacement vkey, displays model choices, and prompts for an agent ID.
123
130
  Bloom saves the vkey, agent ID, and current harness's model atomically after discovery, selection, and native preparation succeed.
@@ -128,6 +135,18 @@ Picker labels remove one leading UUID prefix for readability only. Stored IDs an
128
135
  For `--model`, replace `EXACT_GATEWAY_MODEL_ID` with the full gateway ID, including any UUID prefix.
129
136
  If you only know the shortened label, use the numbered picker instead.
130
137
 
138
+ ### Models in resumed sessions
139
+
140
+ Bloom passes the selected model to the Coding Harness. A harness can apply its own model rules, especially when it resumes an existing session.
141
+ Bloom does not guarantee the selected model in every resume mode.
142
+
143
+ With OpenCode, `-c`/`--continue` and `-s`/`--session` resume a session.
144
+ On OpenCode `2.x`, the session's saved model wins over Bloom's model. On OpenCode `1.x`, `run` follows Bloom's model, while the interactive screen keeps the saved model.
145
+ If a resumed request uses another provider's model, it does not go through Bloom.
146
+ To use the Bloom model, start a new session, or pick the Bloom model with `/models` inside OpenCode.
147
+ When Bloom sees one of these flags, it prints a warning before OpenCode starts. The full screen covers it until you exit.
148
+ Bloom does not change these arguments or the session.
149
+
131
150
  ### Gateways and credentials
132
151
 
133
152
  The default is always `https://gateway.bloomfactory.ai`. A custom invocation does not change that default.
@@ -7,25 +7,25 @@ Plain `claude`, `codex`, `copilot`, or `opencode` continues to use its normal co
7
7
 
8
8
  ## Install
9
9
 
10
- Requirements: Python **3.12 or later**, plus Claude Code, Codex CLI `0.167.2`, GitHub Copilot CLI `1.0.112+` (`1.x`), or OpenCode already installed and available on `PATH`.
10
+ Requirements: Python **3.12 or later**, plus Claude Code, Codex CLI `0.167.2+`, GitHub Copilot CLI `1.0.112+` (`1.x`), or OpenCode `1.x` or `2.3.2+` (`2.x`) already installed and available on `PATH`.
11
11
  macOS is the primary platform. Bloom does not install or repair your Coding Harness.
12
12
  Codex and Copilot have structural adapter evidence only. Live Bloom, tool/history, and full interactive qualification remain unrecorded.
13
13
  The bundled Codex and Copilot commands do not establish a Qualified Harness Path or satisfy the release's native acceptance gate.
14
14
  Before launching, follow the [Claude Code installation instructions](https://docs.anthropic.com/en/docs/claude-code/overview), [Codex CLI installation instructions](https://developers.openai.com/codex/), [GitHub Copilot CLI installation instructions](https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli), or [OpenCode installation instructions](https://opencode.ai/docs/installation/).
15
15
 
16
- These instructions describe `0.3.1`; if not yet available on PyPI, collaborators can use a source checkout.
17
- The selected source version is `0.3.1`.
16
+ These instructions describe `0.4.1`; if not yet available on PyPI, collaborators can use a source checkout.
17
+ The selected source version is `0.4.1`.
18
18
 
19
19
  When available on PyPI, install this exact version with either tool:
20
20
 
21
21
  ```sh
22
- uv tool install 'bloom-launch==0.3.1'
22
+ uv tool install 'bloom-launch==0.4.1'
23
23
  # Or:
24
- pipx install 'bloom-launch==0.3.1'
24
+ pipx install 'bloom-launch==0.4.1'
25
25
  ```
26
26
 
27
27
  Collaborators need access to the private [repository](https://github.com/Bloom-Factory-Engineering/bloom-cli) for a source checkout.
28
- Use a checkout whose project metadata and lockfile both specify `0.3.1` before running:
28
+ Use a checkout whose project metadata and lockfile both specify `0.4.1` before running:
29
29
 
30
30
  ```sh
31
31
  uv sync --locked --group dev
@@ -74,9 +74,11 @@ Use `--` when you want to mark the start of native arguments clearly. Bloom send
74
74
 
75
75
  ```sh
76
76
  bloom launch claude -- --verbose
77
+ bloom launch codex agents -- --no-daemon
78
+ bloom launch opencode run -- --server native-server
77
79
  ```
78
80
 
79
- Bloom keeps `--model` for its own gateway model selection. Bloom also keeps Claude Code's `--settings` option for its private settings file.
81
+ Before `--`, Bloom reserves connection options such as `--model`, `--config`, and harness-specific connection flags. After `--`, the native harness owns every argument.
80
82
 
81
83
  | Argument | Purpose |
82
84
  | --- | --- |
@@ -102,7 +104,12 @@ The indicator stops before the picker, native handoff, or error output, includin
102
104
  Ordinary launches use the cached vkey and the harness's saved model for direct native handoff without launcher HTTP or progress output.
103
105
  First setup, `--config`, and explicit `--model` perform discovery and access checks before handoff.
104
106
  Each normalized gateway shares one vkey across all four harnesses. Each harness has a separate model default.
105
- Copilot CLI `1.0.112` or later `1.x` is required. It sends agent and session headers through `COPILOT_PROVIDER_HEADERS`. Versions newer than the tested `1.0.x` line print a warning and continue.
107
+ Codex CLI `0.167.2` or later is required. The tested Codex compatibility baseline is `0.167.2`. Codex `1.x` and later versions print a warning and continue.
108
+ Codex model catalog responses use a truncation limit of 10000 tokens.
109
+ Copilot CLI `1.0.112` or later `1.x` is required. It sends agent and session headers through `COPILOT_PROVIDER_HEADERS`. Versions newer than the tested `1.0.x` line print a warning and continue. Bloom parses Copilot and OpenCode version output only for launch gating, not for native feature detection.
110
+ OpenCode `1.x` or `2.3.2` or later `2.x` is required. Bloom checks `opencode --version` before launch. The last-tested OpenCode version is `2.4.0`.
111
+ On OpenCode `2.x`, Bloom adds `--standalone`, so the launch uses a private OpenCode server. It does not use or change the shared OpenCode background service, and plain `opencode` keeps its normal connection.
112
+ OpenCode commands that cannot use a private server (for example `service`, `serve`, `pair`, `upgrade`, or `acp`) stop with an `Unrecognized flag: --standalone` error. Run them with plain `opencode`.
106
113
 
107
114
  `--config` prompts for a replacement vkey, displays model choices, and prompts for an agent ID.
108
115
  Bloom saves the vkey, agent ID, and current harness's model atomically after discovery, selection, and native preparation succeed.
@@ -113,6 +120,18 @@ Picker labels remove one leading UUID prefix for readability only. Stored IDs an
113
120
  For `--model`, replace `EXACT_GATEWAY_MODEL_ID` with the full gateway ID, including any UUID prefix.
114
121
  If you only know the shortened label, use the numbered picker instead.
115
122
 
123
+ ### Models in resumed sessions
124
+
125
+ Bloom passes the selected model to the Coding Harness. A harness can apply its own model rules, especially when it resumes an existing session.
126
+ Bloom does not guarantee the selected model in every resume mode.
127
+
128
+ With OpenCode, `-c`/`--continue` and `-s`/`--session` resume a session.
129
+ On OpenCode `2.x`, the session's saved model wins over Bloom's model. On OpenCode `1.x`, `run` follows Bloom's model, while the interactive screen keeps the saved model.
130
+ If a resumed request uses another provider's model, it does not go through Bloom.
131
+ To use the Bloom model, start a new session, or pick the Bloom model with `/models` inside OpenCode.
132
+ When Bloom sees one of these flags, it prints a warning before OpenCode starts. The full screen covers it until you exit.
133
+ Bloom does not change these arguments or the session.
134
+
116
135
  ### Gateways and credentials
117
136
 
118
137
  The default is always `https://gateway.bloomfactory.ai`. A custom invocation does not change that default.
@@ -15,8 +15,14 @@ UUID prefix removal affects picker labels only. Wrappers receive exact model IDs
15
15
  No qualification registry, native assessment, or separate candidate route remains.
16
16
 
17
17
  Claude uses a private settings overlay with endpoint, bearer, cleared competing connection inputs, and model defaults.
18
- OpenCode uses `OPENCODE_CONFIG_CONTENT`, provider `bloom`, `/v1`, and the exact native selector `bloom/EXACT_ID`.
18
+ OpenCode uses `OPENCODE_CONFIG_CONTENT`, provider `bloom`, `/v1`, and the exact native selector `bloom/EXACT_ID` as `model` and `small_model`.
19
19
  The OpenCode wrapper preserves unrelated inherited inline JSON fields and nested siblings.
20
+ `launch.py` checks `opencode --version`. OpenCode `1.x` starts as `--model bloom/EXACT_ID`.
21
+ OpenCode `2.3.2` or later `2.x` has no root `--model` and reads inline configuration in its server, so it starts with `--standalone` and takes the model from inline configuration.
22
+ Without `--standalone`, OpenCode 2.x would use the shared background service, which never sees the child-only configuration, or start one that keeps it, including the vkey.
23
+ Bloom adds `--standalone=true` to every OpenCode 2.x launch. The explicit value matters: a bare `--standalone` takes a following `false`, `0`, `no`, or `off` (for example a directory name) as its value. Commands that reject it (for example `service`, `serve`, `pair`, `upgrade`, `acp`) stop at OpenCode's flag check before they run, so the inline credentials never reach them.
24
+ See [OpenCode 2.3.2 compatibility](code-harness-compatibility/opencode-2.3.2.md).
25
+ Bloom does not read or change OpenCode resume arguments. A resumed session can keep the model saved in it, so Bloom only prints a warning before the handoff when it sees `-c`, `--continue`, `-s`, or `--session`.
20
26
  The native harness owns every other configuration source, plugin, permission, and history entry.
21
27
 
22
28
  Before handoff, the wrapper or caller cleans an abandoned plan.
@@ -1,9 +1,9 @@
1
- # `0.3.1` macOS-first public release contract
1
+ # `0.4.1` macOS-first public release contract
2
2
 
3
- This contract describes the selected `bloom-launch==0.3.1` release, with command `bloom` and Python 3.12 or later.
3
+ This contract describes the selected `bloom-launch==0.4.1` release, with command `bloom` and Python 3.12 or later.
4
4
  It retains the macOS-first boundary and separate release gates. It does not grant new publication approval or establish production readiness.
5
5
  The earlier `0.1.0a4` release-preparation check is historical. Publication of
6
- `0.3.1` remains a separate owner-authorized action.
6
+ `0.4.1` remains a separate owner-authorized action.
7
7
 
8
8
  ## HISTORICAL: `0.1.0a1` and `0.1.0a4` approvals
9
9
 
@@ -15,7 +15,7 @@ These approvals are historical. They do not authorize an upload, agent lockfile
15
15
 
16
16
  ## Decision and alternatives
17
17
 
18
- The release bundles Claude Code, Codex CLI `0.167.2`, and OpenCode adapters.
18
+ The release bundles Claude Code, Codex CLI `0.167.2+`, and OpenCode adapters.
19
19
  The alpha requires exact installed coding-session evidence for each of these three harnesses.
20
20
  The earlier six-path harness/model matrix is historical scope, not evidence for the bundled Codex adapter.
21
21
  The complete cross-provider matrix is not a prerequisite for this bounded alpha.
@@ -26,7 +26,7 @@ Any reproduced defect that prevents the alpha's accepted journey still blocks re
26
26
  ## Product boundary
27
27
 
28
28
  - Target macOS first. Record the exact tested macOS version and architecture.
29
- - Include Claude Code, Codex CLI `0.167.2`, and OpenCode through installed quick-launch commands.
29
+ - Include Claude Code, Codex CLI `0.167.2+`, and OpenCode through installed quick-launch commands.
30
30
  - Require at least one exact tested native/version/protocol/model path for each included harness.
31
31
  - Record every effective role model. Evidence does not transfer between native versions, models, or role selections.
32
32
  - Publish only those tested-path claims. Numeric compatibility ranges and discovery are not evidence of coding-session support.
@@ -88,8 +88,8 @@ Personal-store access still requires separate authority. Synthetic checks use th
88
88
  ## Package and publication gates
89
89
 
90
90
  - Retain Apache-2.0. Include the license text and package license metadata.
91
- - Align distribution `bloom-launch`, selected version `0.3.1`, command `bloom`, and Python requirement `>=3.12` throughout the candidate.
92
- - Require the owner-supplied root package version update in `uv.lock` to `0.3.1` as part of the coordinated source commit.
91
+ - Align distribution `bloom-launch`, selected version `0.4.1`, command `bloom`, and Python requirement `>=3.12` throughout the candidate.
92
+ - Require the owner-authorized root package version update in `uv.lock` to `0.4.1` as part of the coordinated source commit.
93
93
  - Agents must not edit `uv.lock`. Preserve every dependency entry and the repository's lockfile prohibition.
94
94
  - Do not reuse the historical `0.1.0` to `0.1.0a1` lockfile exception for this candidate.
95
95
  - Confirm the owner step before claiming locked readiness. Preserve locked validation and subsequent lockfile immutability.
@@ -102,7 +102,7 @@ Personal-store access still requires separate authority. Synthetic checks use th
102
102
  - Pass the locked install, lint, meaningful tests, build, public metadata checks, archive hygiene, and source/wheel/sdist parity checks.
103
103
  - Pass all three exact-source `Linux portable / Python <version>` jobs for Python 3.12, 3.13, and 3.14 on `ubuntu-24.04`.
104
104
  - Reject missing, skipped, cancelled, superseded, or different-SHA matrix results. The candidate job does not replace this matrix.
105
- - Obtain separately authorized original-native macOS acceptance for Claude Code, Codex CLI `0.167.2`, and OpenCode with the exact candidate.
105
+ - Obtain separately authorized original-native macOS acceptance for Claude Code, Codex CLI `0.167.2+`, and OpenCode with the exact candidate.
106
106
  - Align README, installation, qualification, support limits, and release automation with this contract.
107
107
  - Keep the verified candidate filenames, hashes, tool versions, and source identity in a release receipt.
108
108
  - Use the manual exact-artifact process subject to new candidate approval. GitHub Actions retains candidates only and does not publish.
@@ -112,8 +112,8 @@ Personal-store access still requires separate authority. Synthetic checks use th
112
112
  - After publication, install the exact version from PyPI outside the checkout in a fresh isolated environment.
113
113
  - Verify version, help, and the agreed installed journey against that PyPI installation.
114
114
 
115
- The owner-supplied root lockfile version matches the project at `0.3.1`, with no dependency-entry changes.
116
- Fresh locked installation passed and the installed source command reports `0.3.1`.
115
+ The owner-authorized root lockfile version matches the project at `0.4.1`, with no dependency-entry changes.
116
+ Fresh locked installation passed and the installed source command reports `0.4.1`.
117
117
  Current artifacts remain provisional until exact-source, acceptance, scan, hash-approval, and publication gates pass.
118
118
  Historical license and source-distribution approvals do not supply exact-candidate upload approval.
119
119
  Original-native execution, paid calls, personal-store access, and repository-visibility changes retain their separate authority requirements.
@@ -134,7 +134,7 @@ The trusted checkout and candidate data have separate paths. The scanner never i
134
134
  Only its scan step receives `BLOOM_RELEASE_FORBIDDEN_TERMS`.
135
135
  Missing or invalid policy, or an unprotected trusted ref, fails closed before a checked candidate can be retained.
136
136
  Successful scanning preserves source/wheel/sdist parity, the exact distribution bytes, and the unchanged receipt.
137
- The artifact contains `manifest.json`, `dist/bloom_launch-0.3.1-py3-none-any.whl`, and `dist/bloom_launch-0.3.1.tar.gz`.
137
+ The artifact contains `manifest.json`, `dist/bloom_launch-0.4.1-py3-none-any.whl`, and `dist/bloom_launch-0.4.1.tar.gz`.
138
138
  This workflow does not trigger a PyPI upload, tag, merge, or service deployment.
139
139
 
140
140
  Administrator setup remains TBD and blocks release.
@@ -2,6 +2,9 @@
2
2
 
3
3
  Status: historical structural adapter evidence recorded. No live Bloom request is recorded here.
4
4
 
5
+ The supported range is Codex CLI `0.167.2` or later. The tested compatibility
6
+ baseline is `0.167.2`; newer major versions warn before launch.
7
+
5
8
  ## Baseline
6
9
 
7
10
  - Executable: `codex`
@@ -30,6 +33,10 @@ The adapter uses a persistent Bloom-owned `CODEX_HOME` at
30
33
 
31
34
  ## Adapter Mapping
32
35
 
36
+ The Bloom catalog uses `truncation_policy = { mode = "tokens", limit = 10000 }`.
37
+ This explicit positive limit prevents the zero-token output behavior reported
38
+ in BLO-605. The value matches the observed Codex default for built-in models.
39
+
33
40
  The structural adapter passes these invocation-scoped overrides:
34
41
 
35
42
  ```text
@@ -0,0 +1,66 @@
1
+ # OpenCode 2.3.2 Compatibility Evidence
2
+
3
+ Status: loopback adapter evidence and one live staging `run` recorded on 2026-11-19. This is not full interactive qualification.
4
+
5
+ ## Baseline
6
+
7
+ - Executable: `opencode` (Homebrew stable)
8
+ - Reported version: `opencode v2.3.2`
9
+ - Host: macOS Apple Silicon
10
+ - Tested native surfaces: the interactive TUI (no subcommand) and `run`
11
+
12
+ ## Changes From OpenCode 1.x
13
+
14
+ - The root command has no `--model` option. `opencode --model ...` stops with `Unrecognized flag: --model in command opencode`. Only `run` and `mini` accept `--model`/`-m`.
15
+ - OpenCode is client/server. By default the TUI and `run` connect to a shared background service (`opencode serve --service`, discovered through `$XDG_STATE_HOME/opencode/service.json`) or start one.
16
+ - The server reads `OPENCODE_CONFIG_CONTENT`. A running background service never sees the child-only value, and a service started by the launch could keep it after the launch ends.
17
+ - `--standalone` runs a private server for that invocation. It starts `opencode serve --stdio --port 0` as a child that listens on a loopback port and inherits the child environment.
18
+ - `--standalone` is a boolean flag. A bare `--standalone` takes a following `false`, `0`, `no`, or `off` as its value; `opencode --standalone false debug config` used the shared service. `--standalone=true` keeps the next word as a normal argument. A second `--standalone` or `--no-standalone` stops with `Invalid value for flag --standalone: "2 occurrences"`.
19
+ - Support for `--standalone` is per leaf command. The root command, `run`, `mini`, `models`, `stats`, `api`, `reload`, every `session` and `auth` command, `debug agents`, `debug config`, `mcp list`/`auth`/`logout`, and `plugin list`/`check`/`update` accept it. `upgrade`/`update`, `uninstall`, `acp`, `pair`, `serve`, every `service` command, `debug heap-dump`/`paths`, `mcp add`, and `plugin add`/`remove` reject it at flag parsing, before the command runs.
20
+ - Without `--standalone`, a command that needs a server starts the shared service when none is running. `service start`, `debug config`, `pair`, and `models` each started a detached `opencode serve --service` (parent pid 1) whose environment held the caller's `OPENCODE_CONFIG_CONTENT`. That process outlives the caller.
21
+ - OpenCode 1.x configuration fields are still accepted. `provider`, `model`, and `small_model` keep working. `small_model` becomes the title agent's model.
22
+ - Inline configuration is merged after global, `OPENCODE_CONFIG`, and project configuration, and before managed system preferences. It overrides a personal or project `model`.
23
+ - The TUI picks its model in this order: CLI argument, the last configuration document with `model`, then recent models.
24
+ - `@ai-sdk/openai-compatible` is built in. No package download is needed.
25
+
26
+ ## Adapter Mapping
27
+
28
+ `launch.py` runs `opencode --version` before any vkey prompt:
29
+
30
+ - `1.x`: argv prefix `--model bloom/<selected Bloom model>` (unchanged from earlier releases).
31
+ - `2.3.2` or later `2.x`: argv prefix `--standalone=true` for every command. Commands that reject the flag stop with `Unrecognized flag: --standalone` before they run, so Bloom's inline credentials never reach a shared service.
32
+ - Empty or unparsable output, `0.x` (including `0.0.0-<channel>-<n>` preview builds), `2.x` below `2.3.2` (including `2.3.2` prereleases such as `2.3.2-rc.1`), and other majors: refuse.
33
+
34
+ The inline configuration is the same for both majors:
35
+
36
+ ```text
37
+ OPENCODE_CONFIG_CONTENT = inherited inline JSON plus
38
+ model = small_model = "bloom/<selected Bloom model>"
39
+ provider.bloom.npm = "@ai-sdk/openai-compatible"
40
+ provider.bloom.options.baseURL = "<Bloom base URL>/v1"
41
+ provider.bloom.options.apiKey = <selected Bloom vkey>
42
+ provider.bloom.options.headers = X-Bloom-Agent-ID / X-Bloom-Session-ID when set
43
+ provider.bloom.models["<selected Bloom model>"]
44
+ ```
45
+
46
+ ## Native Argument Policy
47
+
48
+ The adapter forwards other native arguments in their original order. It reserves:
49
+
50
+ - `--model` and `-m`, which would select another model
51
+ - `--server`, which would connect to another server instead of the private one
52
+ - `--standalone`, which Bloom already adds
53
+
54
+ ## Evidence
55
+
56
+ - Sandboxed loopback probe (`tests/test_native_smoke.py`, isolated HOME/XDG, fake vkey): `opencode --standalone run` exited `0` and sent two `POST /v1/chat/completions` requests with the selected model and `Authorization: Bearer <fake vkey>`. Project instructions were loaded, an inherited inline `bash` deny removed the `bash` tool, and a personal `model` in the global configuration was overridden.
57
+ - TUI through `bloom launch opencode` in a PTY against a loopback recorder: OpenCode started without a flag error, and the typed prompt reached `POST /v1/chat/completions` with the selected model, the fake vkey, and `X-Bloom-Agent-ID`.
58
+ - Live `run` against `https://stage-gateway.bloomfactory.ai` with an allowed Anthropic model returned a normal answer.
59
+ - The shared background service kept the same process and an unchanged `service.json` during every check. No new background service was started.
60
+
61
+ ## Limits
62
+
63
+ - A continued session keeps its earlier model. `bloom launch opencode run --continue` on a session created with another provider sent the request to that provider, not to Bloom. The TUI's `--continue` and `--session` behave the same way. On `run` and `mini`, adding `--model bloom/<id>` routed the continued session to Bloom.
64
+ - Bloom does not change resume arguments or the session (BLO-546). It prints a warning when it sees `-c`, `--continue`, `-s`, or `--session` before OpenCode's own `--`. Bloom removes its first `--` before the handoff. A flag value that looks like one (for example `--prompt -c`) also gets the warning. The full screen covers the warning until OpenCode exits.
65
+ - OpenCode 1.x argv is unchanged (`--model bloom/<id>` first). Tested with OpenCode 1.19.6, fake loopback servers, and a session made with another provider: `run -c` and `run -s <id>` followed the root `--model` and reached Bloom. The full screen with `-c` or `-s <id>` kept the session's model and sent the request to the other provider.
66
+ - The sandboxed probe needs loopback inbound access, because the private server listens on a loopback port.
@@ -3,32 +3,40 @@
3
3
  ## Requirements
4
4
 
5
5
  - Python 3.12 or later.
6
- - Claude Code, Codex CLI `0.167.2`, or OpenCode already installed and available on `PATH`.
6
+ - Claude Code, Codex CLI `0.167.2+`, GitHub Copilot CLI `1.0.112+` (`1.x`), or OpenCode `1.x` or `2.3.2+` (`2.x`) already installed and available on `PATH`.
7
7
  - An interactive terminal for hidden vkey input during setup.
8
8
 
9
9
  macOS is the primary platform. Bloom does not install, upgrade, or repair the Coding Harness.
10
10
  The Coding Harness retains its normal settings, permissions, plugins, and history.
11
11
  Install [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview), [Codex CLI](https://developers.openai.com/codex/), or [OpenCode](https://opencode.ai/docs/installation/) before using Bloom Launch.
12
12
 
13
- ## Install `0.3.1`
13
+ ## Install `0.4.1`
14
14
 
15
- These instructions describe `0.3.1`; if not yet available on PyPI, collaborators can use a source checkout.
15
+ These instructions describe `0.4.1`; if not yet available on PyPI, collaborators can use a source checkout.
16
16
  When available, choose either isolated installation tool:
17
17
 
18
18
  ```sh
19
- uv tool install 'bloom-launch==0.3.1'
19
+ uv tool install 'bloom-launch==0.4.1'
20
20
  # Or:
21
- pipx install 'bloom-launch==0.3.1'
21
+ pipx install 'bloom-launch==0.4.1'
22
22
  ```
23
23
 
24
- The selected source metadata is `0.3.1`. This does not establish publication or release approval.
24
+ The selected source metadata is `0.4.1`. This does not establish publication or release approval.
25
25
  The published `0.1.0a1` lacks the cached-vkey behavior described here.
26
26
  See its [historical PyPI instructions](https://pypi.org/project/bloom-launch/0.1.0a1/) for that version.
27
27
 
28
28
  ## Source checkout
29
29
 
30
+ Native argument forwarding uses the same boundary for every harness. Bloom
31
+ reserves connection options before `--` and forwards every argument after it:
32
+
33
+ ```sh
34
+ bloom launch codex agents -- --no-daemon
35
+ bloom launch opencode run -- --server native-server
36
+ ```
37
+
30
38
  Collaborators need access to the private [repository](https://github.com/Bloom-Factory-Engineering/bloom-cli) to obtain a source checkout.
31
- Before using the commands below, confirm that project metadata and the owner-updated root lockfile both specify `0.3.1`.
39
+ Before using the commands below, confirm that project metadata and the owner-updated root lockfile both specify `0.4.1`.
32
40
  Agents must not edit `uv.lock` or bypass the locked install.
33
41
  Run from the checkout root:
34
42
 
@@ -43,7 +51,7 @@ uv run --no-sync bloom launch opencode
43
51
  ```
44
52
 
45
53
  In this checkout, prefix the documented `bloom` commands with `uv run --no-sync`.
46
- The source checkout implements the `0.3.1` behavior described in these documents.
54
+ The source checkout implements the `0.4.1` behavior described in these documents.
47
55
 
48
56
  ## Credentials and first launch
49
57
 
@@ -1,7 +1,7 @@
1
1
  # Launch behavior
2
2
 
3
3
  These instructions describe cached vkeys and configurable agent IDs.
4
- If `0.3.1` is not yet available on PyPI, collaborators can follow the [source-checkout installation](installation.md#source-checkout).
4
+ If `0.4.1` is not yet available on PyPI, collaborators can follow the [source-checkout installation](installation.md#source-checkout).
5
5
  In that checkout, use `uv run --no-sync bloom` instead of `bloom`.
6
6
 
7
7
  ## Commands
@@ -131,7 +131,7 @@ Acceptance and hash approval for `0.1.0a1` do not transfer to `0.3.1`. Review th
131
131
  4. Confirm all three exact-source `Linux portable / Python <version>` jobs pass for Python 3.12, 3.13, and 3.14.
132
132
  5. Reject missing, skipped, cancelled, superseded, or different-SHA Linux matrix results.
133
133
  6. Review locked validation, lint, default tests, metadata, archive hygiene, and isolated uv-tool/pipx installation evidence.
134
- 7. Review separately authorized original-native macOS acceptance for Claude Code, Codex CLI `0.167.2`, and OpenCode under the alpha contract.
134
+ 7. Review separately authorized original-native macOS acceptance for Claude Code, Codex CLI `0.167.2+`, and OpenCode under the alpha contract.
135
135
  Use an ordinary shell without host-managed Claude provider routing. That routing mode remains unsupported.
136
136
  Codex structural evidence does not satisfy native acceptance. Its live Bloom, tool/history, and full interactive qualification remain unrecorded.
137
137
  8. Record macOS identity, Python/installers, native versions, protocols, exact main/role IDs, and the selected credential path.
@@ -0,0 +1,45 @@
1
+ # CLI Codex 1 Design
2
+
3
+ ## Scope
4
+
5
+ Fix BLO-603 and BLO-605 in `bloom-cli`, then release the changes as
6
+ `bloom-launch` `0.4.1`.
7
+
8
+ ## BLO-603: Codex version validation
9
+
10
+ Parse the first non-empty Codex version line as `codex-cli X.Y.Z`.
11
+
12
+ Accept every valid version greater than or equal to `0.167.2`, including
13
+ future major versions. Reject malformed output and versions below `0.167.2`.
14
+
15
+ Emit a warning when the accepted version is `1.0.0` or newer. Keep the
16
+ warning non-fatal so the launcher can continue with newer Codex releases.
17
+
18
+ Preserve the existing failure behavior when the executable cannot run or
19
+ does not produce a valid version.
20
+
21
+ Add unit coverage for the minimum version, newer `0.x` versions, `1.x`
22
+ versions with a warning, future major versions with a warning, older
23
+ versions, malformed output, and command failures.
24
+
25
+ ## BLO-605: Codex catalog truncation
26
+
27
+ Change the Codex catalog `truncation_policy.limit` from `0` to `10000`.
28
+
29
+ Add a focused catalog test that asserts the mode and positive limit. Keep
30
+ the catalog response shape unchanged otherwise.
31
+
32
+ ## Release metadata
33
+
34
+ Update the package version from `0.4.0` to `0.4.1` in `pyproject.toml` and
35
+ the root package entry in `uv.lock`.
36
+
37
+ Update release artifact checks and workflow inventory checks to expect
38
+ `0.4.1` wheel and source archive names.
39
+
40
+ Do not change unrelated release behavior or dependency versions.
41
+
42
+ ## Verification
43
+
44
+ Run the locked development installation, focused tests, the full test suite,
45
+ Ruff, artifact checks, and a build that confirms the `0.4.1` artifacts.
@@ -0,0 +1,140 @@
1
+ # CLI Codex 1 Implementation Plan
2
+
3
+ ## Goal
4
+
5
+ Fix Codex launch compatibility and shell-output truncation, then release
6
+ `bloom-launch` as version `0.4.1`.
7
+
8
+ ## Files and responsibilities
9
+
10
+ - `src/bloom_cli/launch.py`: parse and validate Codex CLI versions, including
11
+ warnings for Codex `>=1.0`.
12
+ - `src/bloom_cli/cli.py`: preserve the native argument boundary for shared
13
+ harness argument forwarding.
14
+ - `src/bloom_cli/wrappers.py`: advertise the explicit Codex catalog
15
+ truncation limit of `10000` tokens and validate reserved options consistently
16
+ across all harnesses.
17
+ - `tests/test_codex_launch.py`: prove Codex version acceptance, rejection,
18
+ warnings, command failures, and the installed `bloom` entry point.
19
+ - `tests/test_cli_forwarding.py`: prove reserved options fail before `--`,
20
+ pass after `--`, and remain protected after unknown subcommands.
21
+ - `tests/test_copilot_launch.py` and `tests/test_opencode_launch.py`: preserve
22
+ each harness's version and argument-boundary behavior.
23
+ - `README.md` and `docs/installation.md`: document native argument forwarding
24
+ and the `--` boundary with concise PyPI examples.
25
+ - `tests/test_wrappers.py`: prove the catalog contains the correct
26
+ truncation policy.
27
+ - `pyproject.toml`: set package version to `0.4.1`.
28
+ - `uv.lock`: update the root package version to `0.4.1` without changing
29
+ dependency resolutions.
30
+ - `scripts/check_artifacts.py`: validate `0.4.1` package metadata and names.
31
+ - `.github/workflows/release.yml`: validate the `0.4.1` artifact inventory.
32
+
33
+ ## Implementation tasks
34
+
35
+ ### 1. Add failing version-policy tests
36
+
37
+ Extend the Codex launch tests with subprocess fixtures that cover:
38
+
39
+ - `codex-cli 0.167.2`: accepted without a warning.
40
+ - `codex-cli 0.172.0`: accepted without a warning under the approved `>=1.0`
41
+ warning policy.
42
+ - `codex-cli 1.0.0`: accepted with a warning.
43
+ - `codex-cli 2.3.2`: accepted with a warning.
44
+ - `codex-cli 0.167.1`: rejected.
45
+ - malformed, empty, and prefixed output: rejected.
46
+ - subprocess failure: rejected with the existing verification error.
47
+
48
+ Use the project warning mechanism and assert the warning text. Keep native
49
+ arguments and launch-plan assertions intact.
50
+
51
+ ### 2. Implement Codex version validation
52
+
53
+ Parse a valid `codex-cli X.Y.Z` version using the standard-library
54
+ `packaging` dependency only if already available. Otherwise use a small
55
+ internal tuple parser consistent with the existing Copilot and OpenCode
56
+ validators.
57
+
58
+ Accept every parsed version greater than or equal to `(0, 167, 2)`.
59
+ Warn when the major version is at least `1`. Reject malformed output,
60
+ versions below the floor, and command failures.
61
+
62
+ Preserve the current public launch behavior and error class.
63
+
64
+ Apply one stream policy to every harness: parse stdout first and use stderr
65
+ only when stdout has no valid version. Anchor each pattern to its harness
66
+ format and reject unrelated prefixes or extra numeric components.
67
+
68
+ ### 3. Add failing truncation-policy assertion
69
+
70
+ Extend the existing Codex catalog test to assert:
71
+
72
+ ```python
73
+ model["truncation_policy"] == {"mode": "tokens", "limit": 10000}
74
+ ```
75
+
76
+ ### 4. Implement the catalog fix
77
+
78
+ Change only the Codex catalog truncation limit from `0` to `10000`.
79
+ Preserve all other catalog fields.
80
+
81
+ Use one native-argument convention for every harness. Reject Bloom-reserved
82
+ options before an explicit `--`, and forward every argument after `--`
83
+ unchanged. Remove the Codex command allowlist dependency.
84
+
85
+ Add one subprocess test through the installed `bloom` entry point for Codex.
86
+ Cover normal forwarding, `--config`, a newer subcommand, reserved options,
87
+ and the explicit `--` escape.
88
+
89
+ Document the boundary in the README and installation guide:
90
+
91
+ ```sh
92
+ bloom launch codex agents -- --no-daemon
93
+ bloom launch opencode run -- --server native-server
94
+ ```
95
+
96
+ Explain that Bloom reserves connection options before `--`, while arguments
97
+ after `--` belong to the native harness.
98
+
99
+ ### 5. Update release metadata
100
+
101
+ Change the package version to `0.4.1` in `pyproject.toml` and the root
102
+ package metadata in `uv.lock`.
103
+
104
+ Update every release artifact expectation in `scripts/check_artifacts.py`
105
+ and `.github/workflows/release.yml` from `0.4.0` to `0.4.1`.
106
+
107
+ Do not alter dependency versions or unrelated workflow policy.
108
+
109
+ ### 6. Run focused verification
110
+
111
+ Run the focused Codex and wrapper tests. Confirm the new tests fail before
112
+ implementation and pass afterward.
113
+
114
+ ### 7. Run release verification
115
+
116
+ Run:
117
+
118
+ ```bash
119
+ uv sync --locked --group dev
120
+ uv run ruff check .
121
+ uv run pytest -q
122
+ rm -rf /tmp/bloom-cli-codex-1-dist
123
+ uv build --no-create-gitignore --out-dir /tmp/bloom-cli-codex-1-dist
124
+ uv run python scripts/check_artifacts.py --dist-dir /tmp/bloom-cli-codex-1-dist
125
+ ```
126
+
127
+ Inspect the final diff and confirm only intended files changed.
128
+
129
+ ### Deferred: interactive staging acceptance
130
+
131
+ Live interactive staging acceptance is deferred and has not passed. Before
132
+ release, record the newest Codex version and confirm the TUI starts through
133
+ Bloom, the staging gateway responds, and a shell tool call returns usable
134
+ output to the model. Record a follow-up turn and the result. This check does
135
+ not replace the separately required release acceptance in `docs/releasing.md`.
136
+
137
+ ### 8. Commit, push, and open the pull request
138
+
139
+ Commit the implementation on `fix/cli-codex-1`, push the branch, create a
140
+ pull request targeting `staging`, and request review from `denysk-mev`.
@@ -0,0 +1,13 @@
1
+ # PR 18 review follow-up plan
2
+
3
+ ## Goal
4
+
5
+ Fix verified argument-boundary, source-distribution, and documentation findings. Defer live interactive staging acceptance without claiming it passed. Preserve the existing Codex launch coverage.
6
+
7
+ ## Tasks
8
+
9
+ 1. Add failing Claude and Copilot wrapper tests for reserved options before and after `--`, including mixed prefixes and suffixes. Validate before removing the boundary. Run focused tests.
10
+ 2. Retain `tests/test_release_workflow.py` in the sdist because `tests/test_artifacts.py` imports its `step` helper. Add a narrowly scoped skip for release and CI workflow-dependent checks only when running from an extracted sdist with `PKG-INFO`, no Git metadata, and no workflow. Keep a missing workflow in a source checkout as a failure. Add tests for both contexts, then build and run the extracted sdist suite.
11
+ 3. Correct the Codex version requirements and the `codex agents` example in README and installation docs. Update the original plan to explicitly mark the live staging check deferred and describe its acceptance steps.
12
+ 4. Review all changed files and related code adversarially. Fix defects with focused regression tests. Run Ruff, the full suite, build both artifacts, run artifact verification, verify the extracted sdist, and inspect the final diff.
13
+ 5. Commit the intended files on the existing branch, push, and comment on the PR. Explain the deferred staging check and cite the existing Codex launch coverage. Preserve the untracked handoff.