bloom-launch 0.2.0__tar.gz → 0.3.0__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 (89) hide show
  1. bloom_launch-0.3.0/.github/workflows/release.yml +182 -0
  2. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/PKG-INFO +24 -15
  3. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/README.md +23 -14
  4. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/alpha-release-contract.md +39 -16
  5. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/code-harness-compatibility/codex-0.167.2.md +8 -7
  6. bloom_launch-0.3.0/docs/code-harness-compatibility/copilot-1.0.112.md +80 -0
  7. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/connections.md +7 -0
  8. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/development.md +16 -2
  9. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/installation.md +7 -7
  10. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/quick-launch.md +8 -5
  11. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/releasing.md +61 -24
  12. bloom_launch-0.3.0/docs/superpowers/plans/2026-11-12-agent-id-default.md +37 -0
  13. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/pyproject.toml +1 -1
  14. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/scripts/check_artifacts.py +1 -1
  15. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/scripts/verify_release_candidate.py +2 -2
  16. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/cli.py +1 -1
  17. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/discovery.py +4 -0
  18. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/launch.py +56 -4
  19. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/settings.py +4 -1
  20. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/urls.py +13 -4
  21. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/wrappers.py +60 -0
  22. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_artifacts.py +44 -2
  23. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_codex_launch.py +1 -0
  24. bloom_launch-0.3.0/tests/test_copilot_launch.py +166 -0
  25. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_discovery_diagnostic.py +20 -0
  26. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_release_workflow.py +123 -16
  27. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_thin_launch.py +53 -0
  28. bloom_launch-0.3.0/tests/test_urls.py +84 -0
  29. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/uv.lock +1 -1
  30. bloom_launch-0.2.0/.github/workflows/release.yml +0 -92
  31. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/.github/workflows/local-checks.yml +0 -0
  32. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/.gitignore +0 -0
  33. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/CONTEXT.md +0 -0
  34. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/LICENSE +0 -0
  35. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/adapter-contract.md +0 -0
  36. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/adr/0001-authorization-is-not-qualification.md +0 -0
  37. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/adr/0002-persistent-native-profiles.md +0 -0
  38. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/adr/0003-credential-and-process-ownership.md +0 -0
  39. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/ci-efficiency-decisions.md +0 -0
  40. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/demo-goal.md +0 -0
  41. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/headless.md +0 -0
  42. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/local-testing.md +0 -0
  43. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/models.md +0 -0
  44. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/multi-harness-engineering-requirements.md +0 -0
  45. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/opencode-bootstrap-compatibility.md +0 -0
  46. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/opencode-demo.md +0 -0
  47. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/qualification.md +0 -0
  48. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/plans/2026-11-04-ci-efficiency.md +0 -0
  49. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/plans/2026-11-04-coderabbit-followup.md +0 -0
  50. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/plans/2026-11-05-demo-goal.md +0 -0
  51. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/plans/2026-11-05-opencode-demo.md +0 -0
  52. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/plans/2026-11-11-agent-id.md +0 -0
  53. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/plans/2026-11-12-codex-launch-spike.md +0 -0
  54. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/plans/2026-11-12-session-id.md +0 -0
  55. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/specs/2026-11-04-ci-efficiency-design.md +0 -0
  56. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/specs/2026-11-04-coderabbit-followup-design.md +0 -0
  57. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/specs/2026-11-05-demo-goal-design.md +0 -0
  58. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/docs/superpowers/specs/2026-11-05-opencode-demo-design.md +0 -0
  59. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/scripts/check_local_install.sh +0 -0
  60. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/scripts/diagnose_discovery.py +0 -0
  61. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/__init__.py +0 -0
  62. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/__main__.py +0 -0
  63. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/contract.py +0 -0
  64. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/labels.py +0 -0
  65. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/model_metadata.py +0 -0
  66. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/process.py +0 -0
  67. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/src/bloom_cli/progress.py +0 -0
  68. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/conftest.py +0 -0
  69. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/installed_connection_probe.py +0 -0
  70. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/job_control.py +0 -0
  71. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/job_control_probe.py +0 -0
  72. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/native_smoke_support.py +0 -0
  73. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/pty_driver.py +0 -0
  74. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_ci_workflow.py +0 -0
  75. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_cli_forwarding.py +0 -0
  76. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_codex_compatibility.py +0 -0
  77. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_install_script.py +0 -0
  78. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_installed_launch.py +0 -0
  79. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_job_control.py +0 -0
  80. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_launch_progress.py +0 -0
  81. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_model_labels.py +0 -0
  82. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_model_limits.py +0 -0
  83. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_model_metadata.py +0 -0
  84. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_native_smoke.py +0 -0
  85. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_process.py +0 -0
  86. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_progress.py +0 -0
  87. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_secret_validation.py +0 -0
  88. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/test_wrappers.py +0 -0
  89. {bloom_launch-0.2.0 → bloom_launch-0.3.0}/tests/thin_job_control_probe.py +0 -0
@@ -0,0 +1,182 @@
1
+ name: Alpha candidate for manual PyPI release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ jobs:
10
+ candidate:
11
+ name: Linux pure-Python release candidate
12
+ runs-on: ubuntu-24.04
13
+ timeout-minutes: 20
14
+ env:
15
+ BLOOM_RUN_NATIVE_PROBES: '0'
16
+ PYTHON_KEYRING_BACKEND: keyring.backends.fail.Keyring
17
+ steps:
18
+ - &trusted_staging_gate
19
+ name: Require the protected trusted staging workflow
20
+ id: gate
21
+ shell: bash
22
+ env:
23
+ TRUSTED_WORKFLOW_SHA: ${{ github.workflow_sha }}
24
+ run: |
25
+ set -euo pipefail
26
+ if [[ "$GITHUB_REPOSITORY" != 'Bloom-Factory-Engineering/bloom-cli' ||
27
+ "$GITHUB_EVENT_NAME" != 'workflow_dispatch' ||
28
+ "$GITHUB_WORKFLOW_REF" != 'Bloom-Factory-Engineering/bloom-cli/.github/workflows/release.yml@refs/heads/staging' ||
29
+ "$GITHUB_REF" != 'refs/heads/staging' ||
30
+ "${GITHUB_REF_PROTECTED:-}" != 'true' ||
31
+ ! "$TRUSTED_WORKFLOW_SHA" =~ ^[0-9a-f]{40}$ ||
32
+ "$GITHUB_SHA" != "$TRUSTED_WORKFLOW_SHA" ]]; then
33
+ printf 'Release requires the protected trusted staging workflow.\n' >&2
34
+ exit 1
35
+ fi
36
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
37
+ with:
38
+ ref: ${{ github.workflow_sha }}
39
+ persist-credentials: false
40
+ - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
41
+ with:
42
+ version: '0.11.15'
43
+ python-version: '3.12'
44
+ enable-cache: false
45
+ - name: Initialize isolated candidate directory environment
46
+ id: initialize
47
+ shell: bash
48
+ run: |
49
+ set -euo pipefail
50
+ printf 'CANDIDATE_DIR=%s/bloom-release-candidate\n' "$RUNNER_TEMP" >> "$GITHUB_ENV"
51
+ - name: Build and publicly check one candidate pair without private policy
52
+ id: build
53
+ shell: bash
54
+ run: |
55
+ set -euo pipefail
56
+ sha256sum uv.lock > "$RUNNER_TEMP/release-lock.sha256"
57
+ uv sync --locked --group dev
58
+ uv run --no-sync ruff check .
59
+ uv run --no-sync pytest -q
60
+ mkdir "$CANDIDATE_DIR"
61
+ uv build --no-create-gitignore --out-dir "$CANDIDATE_DIR/dist"
62
+ uv run --no-sync python scripts/check_artifacts.py --dist-dir "$CANDIDATE_DIR/dist"
63
+ sha256sum -c "$RUNNER_TEMP/release-lock.sha256"
64
+ uv --version
65
+ uv run --no-sync python --version
66
+ - name: Retain SHA256 receipt and source identity for approval
67
+ id: receipt
68
+ shell: bash
69
+ run: |
70
+ set -euo pipefail
71
+ python3 - <<'PY'
72
+ import hashlib
73
+ import json
74
+ import os
75
+ from pathlib import Path
76
+
77
+ root = Path(os.environ["CANDIDATE_DIR"])
78
+ dist = root / "dist"
79
+ names = {"bloom_launch-0.3.0-py3-none-any.whl", "bloom_launch-0.3.0.tar.gz"}
80
+ if (dist.is_symlink() or not dist.is_dir()
81
+ or {p.name for p in root.iterdir()} != {"dist"}
82
+ or {p.name for p in dist.iterdir()} != names
83
+ or any(p.is_symlink() or not p.is_file() for p in dist.iterdir())):
84
+ raise SystemExit("Invalid candidate inventory")
85
+ receipt = {
86
+ "source_sha": os.environ["GITHUB_SHA"],
87
+ "repository": os.environ["GITHUB_REPOSITORY"],
88
+ "run_id": os.environ["GITHUB_RUN_ID"],
89
+ "run_attempt": os.environ["GITHUB_RUN_ATTEMPT"],
90
+ "sha256": {name: hashlib.sha256((dist / name).read_bytes()).hexdigest()
91
+ for name in sorted(names)},
92
+ }
93
+ text = json.dumps(receipt, indent=2) + "\n"
94
+ (root / "manifest.json").write_text(text)
95
+ with open(os.environ["GITHUB_STEP_SUMMARY"], "a") as summary:
96
+ summary.write("## Unchecked candidate requiring private scan and exact-hash review\n\n```json\n" + text + "```\n")
97
+ summary.write("Review this run's hashes, exact-SHA Linux portable checks, private scan, "
98
+ "and separate authorized original-macOS-harness acceptance "
99
+ "before manual upload approval.\n")
100
+ PY
101
+ - name: Hand off unchecked distributions and receipt as data
102
+ id: upload
103
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
104
+ with:
105
+ name: unchecked-${{ github.workflow_sha }}-${{ github.run_attempt }}
106
+ path: ${{ env.CANDIDATE_DIR }}/
107
+ if-no-files-found: error
108
+ retention-days: 14
109
+
110
+ scanner:
111
+ name: Trusted private policy scan
112
+ needs: candidate
113
+ runs-on: ubuntu-24.04
114
+ timeout-minutes: 10
115
+ environment: release-policy
116
+ steps:
117
+ - *trusted_staging_gate
118
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
119
+ with:
120
+ ref: ${{ github.workflow_sha }}
121
+ persist-credentials: false
122
+ path: trusted
123
+ - name: Download this run's unchecked candidate as data
124
+ id: download
125
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
126
+ with:
127
+ name: unchecked-${{ github.workflow_sha }}-${{ github.run_attempt }}
128
+ path: ${{ runner.temp }}/bloom-release-candidate
129
+ - name: Verify the received inventory, hashes and run identity
130
+ id: verify
131
+ shell: bash
132
+ env:
133
+ TRUSTED_WORKFLOW_SHA: ${{ github.workflow_sha }}
134
+ run: |
135
+ set -euo pipefail
136
+ /usr/bin/python3 -I -S - <<'PY'
137
+ import hashlib
138
+ import json
139
+ import os
140
+ import runpy
141
+ from pathlib import Path
142
+
143
+ try:
144
+ trusted = Path(os.environ["GITHUB_WORKSPACE"]) / "trusted"
145
+ root = Path(os.environ["RUNNER_TEMP"]) / "bloom-release-candidate"
146
+ verifier = runpy.run_path(str(trusted / "scripts/verify_release_candidate.py"))
147
+ names = ("bloom_launch-0.3.0-py3-none-any.whl", "bloom_launch-0.3.0.tar.gz")
148
+ expected = {
149
+ "source_sha": os.environ["TRUSTED_WORKFLOW_SHA"],
150
+ "repository": os.environ["GITHUB_REPOSITORY"],
151
+ "run_id": os.environ["GITHUB_RUN_ID"],
152
+ "run_attempt": os.environ["GITHUB_RUN_ATTEMPT"],
153
+ "sha256": {name: hashlib.sha256((root / "dist" / name).read_bytes()).hexdigest()
154
+ for name in names},
155
+ }
156
+ verifier["verify"](root, expected)
157
+ except Exception:
158
+ raise SystemExit("Candidate handoff verification failed (details redacted).") from None
159
+ PY
160
+ - name: Scan distribution data with isolated trusted standard-library code
161
+ id: scan
162
+ shell: bash
163
+ env:
164
+ BLOOM_RELEASE_FORBIDDEN_TERMS: ${{ secrets.BLOOM_RELEASE_FORBIDDEN_TERMS }}
165
+ run: |
166
+ set -euo pipefail
167
+ /usr/bin/python3 -I -S "$GITHUB_WORKSPACE/trusted/scripts/check_artifacts.py" \
168
+ --dist-dir "$RUNNER_TEMP/bloom-release-candidate/dist" --require-branding-policy
169
+ - name: Retain the successful private scan result
170
+ id: receipt
171
+ shell: bash
172
+ run: |
173
+ set -euo pipefail
174
+ printf 'Private scan passed for the unchanged candidate receipt from this run. Manual exact-hash approval and separate upload authority remain required.\n' >> "$GITHUB_STEP_SUMMARY"
175
+ - name: Upload this run's checked candidate and unchanged receipt
176
+ id: upload
177
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
178
+ with:
179
+ name: candidate-${{ github.workflow_sha }}-${{ github.run_attempt }}
180
+ path: ${{ runner.temp }}/bloom-release-candidate/
181
+ if-no-files-found: error
182
+ retention-days: 14
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bloom-launch
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Scoped launcher for native coding harnesses
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -15,29 +15,32 @@ Description-Content-Type: text/markdown
15
15
 
16
16
  # Bloom Launch
17
17
 
18
- Connect your installed Claude Code, Codex, or OpenCode to the Bloom gateway for one invocation.
19
- Your Coding Harness retains its normal settings, permissions, plugins, and history.
20
- Plain `claude`, `codex`, or `opencode` continues to use its normal connection.
18
+ Connect your installed Claude Code, Codex, GitHub Copilot CLI, or OpenCode to the Bloom gateway for one invocation.
19
+ Claude Code, Copilot CLI, and OpenCode retain their normal settings, permissions, plugins, and history.
20
+ Codex uses a separate persistent Bloom-owned home at `$HOME/.config/bloom/codex` for its native state and project trust.
21
+ Plain `claude`, `codex`, `copilot`, or `opencode` continues to use its normal connection.
21
22
 
22
23
  ## Install
23
24
 
24
- Requirements: Python **3.12 or later**, plus Claude Code, Codex CLI `0.167.2`, 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`, or OpenCode already installed and available on `PATH`.
25
26
  macOS is the primary platform. Bloom does not install or repair your Coding Harness.
26
- 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/), or [OpenCode installation instructions](https://opencode.ai/docs/installation/).
27
+ Codex and Copilot have structural adapter evidence only. Live Bloom, tool/history, and full interactive qualification remain unrecorded.
28
+ The bundled Codex and Copilot commands do not establish a Qualified Harness Path or satisfy the release's native acceptance gate.
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/).
27
30
 
28
- These instructions describe `0.2.0`; if not yet available on PyPI, collaborators can use a source checkout.
29
- The selected source version is `0.2.0`.
31
+ These instructions describe `0.3.0`; if not yet available on PyPI, collaborators can use a source checkout.
32
+ The selected source version is `0.3.0`.
30
33
 
31
34
  When available on PyPI, install this exact version with either tool:
32
35
 
33
36
  ```sh
34
- uv tool install 'bloom-launch==0.2.0'
37
+ uv tool install 'bloom-launch==0.3.0'
35
38
  # Or:
36
- pipx install 'bloom-launch==0.2.0'
39
+ pipx install 'bloom-launch==0.3.0'
37
40
  ```
38
41
 
39
42
  Collaborators need access to the private [repository](https://github.com/Bloom-Factory-Engineering/bloom-cli) for a source checkout.
40
- Use a checkout whose project metadata and lockfile both specify `0.2.0` before running:
43
+ Use a checkout whose project metadata and lockfile both specify `0.3.0` before running:
41
44
 
42
45
  ```sh
43
46
  uv sync --locked --group dev
@@ -45,6 +48,8 @@ uv run --no-sync bloom launch claude
45
48
  # Or:
46
49
  uv run --no-sync bloom launch codex
47
50
  # Or:
51
+ uv run --no-sync bloom launch copilot
52
+ # Or:
48
53
  uv run --no-sync bloom launch opencode
49
54
  ```
50
55
 
@@ -61,6 +66,7 @@ bloom --help
61
66
  bloom --version
62
67
  bloom launch --help
63
68
  bloom launch claude
69
+ bloom launch copilot
64
70
  bloom launch opencode
65
71
  bloom launch claude --model EXACT_GATEWAY_MODEL_ID
66
72
  bloom launch opencode --config
@@ -70,10 +76,11 @@ bloom launch claude --agent-id Alex
70
76
  bloom launch claude --session-id session-123
71
77
  ```
72
78
 
73
- Bloom sends extra arguments to the selected Coding Harness. For example, use `-p` with Claude Code or `run` with OpenCode:
79
+ Bloom sends extra arguments to the selected Coding Harness. For example, use `-p` with Claude Code or Copilot CLI, or `run` with OpenCode:
74
80
 
75
81
  ```sh
76
82
  bloom launch claude -p "say hi"
83
+ bloom launch copilot -p "say hi"
77
84
  bloom launch opencode run "say hi"
78
85
  ```
79
86
 
@@ -89,7 +96,7 @@ Bloom keeps `--model` for its own gateway model selection. Bloom also keeps Clau
89
96
  | --- | --- |
90
97
  | `-h`, `--help` | Show global help or `launch` help. |
91
98
  | `--version` | Show the package version. Use before `launch`. |
92
- | `launch {claude,opencode}` | Select the installed Coding Harness. |
99
+ | `launch {claude,codex,copilot,opencode}` | Select the installed Coding Harness. |
93
100
  | `--config` | Replace the gateway vkey and the current harness's default model. |
94
101
  | `--model EXACT_GATEWAY_MODEL_ID` | Select an exact, full gateway model ID. |
95
102
  | `--base_url BASE_URL` | Select the gateway for this invocation. |
@@ -107,7 +114,8 @@ It uses an animated ASCII spinner on a TTY and a plain line otherwise.
107
114
  The indicator stops before the picker, native handoff, or error output, including cancellation.
108
115
  Ordinary launches use the cached vkey and the harness's saved model for direct native handoff without launcher HTTP or progress output.
109
116
  First setup, `--config`, and explicit `--model` perform discovery and access checks before handoff.
110
- Each normalized gateway shares one vkey across both harnesses. Each harness has a separate model default.
117
+ Each normalized gateway shares one vkey across all four harnesses. Each harness has a separate model default.
118
+ Copilot CLI `1.0.112` sends agent and session headers through `COPILOT_PROVIDER_HEADERS`. Older `1.0.x` builds launch with a warning and without those headers.
111
119
 
112
120
  `--config` prompts for a replacement vkey, displays model choices, and prompts for an agent ID.
113
121
  Bloom saves the vkey, agent ID, and current harness's model atomically after discovery, selection, and native preparation succeed.
@@ -128,7 +136,8 @@ URLs must not contain credentials, queries, or fragments.
128
136
  Bloom saves the vkey, agent ID, and harness defaults in the global `$HOME/.config/bloom/launcher.json` with owner-only permissions (`0600`).
129
137
  **This file contains a secret. Do not paste or share its contents.**
130
138
  Never put a vkey in command arguments, a URL, a project file, or an error report.
131
- When an agent ID exists, Bloom sends it as `X-Bloom-Agent-ID` through both Claude Code and OpenCode. Claude does not use a default `bloom-launch-claude` value.
139
+ When an agent ID exists, Bloom configures `X-Bloom-Agent-ID` for Claude Code, Codex, and OpenCode.
140
+ Claude does not use a default `bloom-launch-claude` value.
132
141
  The saved agent ID is shared across gateways and harnesses. A direct `--agent-id VALUE` override applies only to that launch and is not saved.
133
142
  `--session-id VALUE` is also transient and is forgotten when the harness exits. Bloom sends it as `X-Bloom-Session-ID`; omitting the flag sends no session header.
134
143
  Session IDs use the same printable-ASCII validation as agent IDs. Blank or invalid values are rejected.
@@ -1,28 +1,31 @@
1
1
  # Bloom Launch
2
2
 
3
- Connect your installed Claude Code, Codex, or OpenCode to the Bloom gateway for one invocation.
4
- Your Coding Harness retains its normal settings, permissions, plugins, and history.
5
- Plain `claude`, `codex`, or `opencode` continues to use its normal connection.
3
+ Connect your installed Claude Code, Codex, GitHub Copilot CLI, or OpenCode to the Bloom gateway for one invocation.
4
+ Claude Code, Copilot CLI, and OpenCode retain their normal settings, permissions, plugins, and history.
5
+ Codex uses a separate persistent Bloom-owned home at `$HOME/.config/bloom/codex` for its native state and project trust.
6
+ Plain `claude`, `codex`, `copilot`, or `opencode` continues to use its normal connection.
6
7
 
7
8
  ## Install
8
9
 
9
- Requirements: Python **3.12 or later**, plus Claude Code, Codex CLI `0.167.2`, 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`, or OpenCode already installed and available on `PATH`.
10
11
  macOS is the primary platform. Bloom does not install or repair your Coding Harness.
11
- 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/), or [OpenCode installation instructions](https://opencode.ai/docs/installation/).
12
+ Codex and Copilot have structural adapter evidence only. Live Bloom, tool/history, and full interactive qualification remain unrecorded.
13
+ The bundled Codex and Copilot commands do not establish a Qualified Harness Path or satisfy the release's native acceptance gate.
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/).
12
15
 
13
- These instructions describe `0.2.0`; if not yet available on PyPI, collaborators can use a source checkout.
14
- The selected source version is `0.2.0`.
16
+ These instructions describe `0.3.0`; if not yet available on PyPI, collaborators can use a source checkout.
17
+ The selected source version is `0.3.0`.
15
18
 
16
19
  When available on PyPI, install this exact version with either tool:
17
20
 
18
21
  ```sh
19
- uv tool install 'bloom-launch==0.2.0'
22
+ uv tool install 'bloom-launch==0.3.0'
20
23
  # Or:
21
- pipx install 'bloom-launch==0.2.0'
24
+ pipx install 'bloom-launch==0.3.0'
22
25
  ```
23
26
 
24
27
  Collaborators need access to the private [repository](https://github.com/Bloom-Factory-Engineering/bloom-cli) for a source checkout.
25
- Use a checkout whose project metadata and lockfile both specify `0.2.0` before running:
28
+ Use a checkout whose project metadata and lockfile both specify `0.3.0` before running:
26
29
 
27
30
  ```sh
28
31
  uv sync --locked --group dev
@@ -30,6 +33,8 @@ uv run --no-sync bloom launch claude
30
33
  # Or:
31
34
  uv run --no-sync bloom launch codex
32
35
  # Or:
36
+ uv run --no-sync bloom launch copilot
37
+ # Or:
33
38
  uv run --no-sync bloom launch opencode
34
39
  ```
35
40
 
@@ -46,6 +51,7 @@ bloom --help
46
51
  bloom --version
47
52
  bloom launch --help
48
53
  bloom launch claude
54
+ bloom launch copilot
49
55
  bloom launch opencode
50
56
  bloom launch claude --model EXACT_GATEWAY_MODEL_ID
51
57
  bloom launch opencode --config
@@ -55,10 +61,11 @@ bloom launch claude --agent-id Alex
55
61
  bloom launch claude --session-id session-123
56
62
  ```
57
63
 
58
- Bloom sends extra arguments to the selected Coding Harness. For example, use `-p` with Claude Code or `run` with OpenCode:
64
+ Bloom sends extra arguments to the selected Coding Harness. For example, use `-p` with Claude Code or Copilot CLI, or `run` with OpenCode:
59
65
 
60
66
  ```sh
61
67
  bloom launch claude -p "say hi"
68
+ bloom launch copilot -p "say hi"
62
69
  bloom launch opencode run "say hi"
63
70
  ```
64
71
 
@@ -74,7 +81,7 @@ Bloom keeps `--model` for its own gateway model selection. Bloom also keeps Clau
74
81
  | --- | --- |
75
82
  | `-h`, `--help` | Show global help or `launch` help. |
76
83
  | `--version` | Show the package version. Use before `launch`. |
77
- | `launch {claude,opencode}` | Select the installed Coding Harness. |
84
+ | `launch {claude,codex,copilot,opencode}` | Select the installed Coding Harness. |
78
85
  | `--config` | Replace the gateway vkey and the current harness's default model. |
79
86
  | `--model EXACT_GATEWAY_MODEL_ID` | Select an exact, full gateway model ID. |
80
87
  | `--base_url BASE_URL` | Select the gateway for this invocation. |
@@ -92,7 +99,8 @@ It uses an animated ASCII spinner on a TTY and a plain line otherwise.
92
99
  The indicator stops before the picker, native handoff, or error output, including cancellation.
93
100
  Ordinary launches use the cached vkey and the harness's saved model for direct native handoff without launcher HTTP or progress output.
94
101
  First setup, `--config`, and explicit `--model` perform discovery and access checks before handoff.
95
- Each normalized gateway shares one vkey across both harnesses. Each harness has a separate model default.
102
+ Each normalized gateway shares one vkey across all four harnesses. Each harness has a separate model default.
103
+ Copilot CLI `1.0.112` sends agent and session headers through `COPILOT_PROVIDER_HEADERS`. Older `1.0.x` builds launch with a warning and without those headers.
96
104
 
97
105
  `--config` prompts for a replacement vkey, displays model choices, and prompts for an agent ID.
98
106
  Bloom saves the vkey, agent ID, and current harness's model atomically after discovery, selection, and native preparation succeed.
@@ -113,7 +121,8 @@ URLs must not contain credentials, queries, or fragments.
113
121
  Bloom saves the vkey, agent ID, and harness defaults in the global `$HOME/.config/bloom/launcher.json` with owner-only permissions (`0600`).
114
122
  **This file contains a secret. Do not paste or share its contents.**
115
123
  Never put a vkey in command arguments, a URL, a project file, or an error report.
116
- When an agent ID exists, Bloom sends it as `X-Bloom-Agent-ID` through both Claude Code and OpenCode. Claude does not use a default `bloom-launch-claude` value.
124
+ When an agent ID exists, Bloom configures `X-Bloom-Agent-ID` for Claude Code, Codex, and OpenCode.
125
+ Claude does not use a default `bloom-launch-claude` value.
117
126
  The saved agent ID is shared across gateways and harnesses. A direct `--agent-id VALUE` override applies only to that launch and is not saved.
118
127
  `--session-id VALUE` is also transient and is forgotten when the harness exits. Bloom sends it as `X-Bloom-Session-ID`; omitting the flag sends no session header.
119
128
  Session IDs use the same printable-ASCII validation as agent IDs. Blank or invalid values are rejected.
@@ -1,9 +1,9 @@
1
- # `0.2.0` macOS-first public release contract
1
+ # `0.3.0` macOS-first public release contract
2
2
 
3
- This contract describes the selected `bloom-launch==0.2.0` release, with command `bloom` and Python 3.12 or later.
3
+ This contract describes the selected `bloom-launch==0.3.0` 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.2.0` remains a separate owner-authorized action.
6
+ `0.3.0` remains a separate owner-authorized action.
7
7
 
8
8
  ## HISTORICAL: `0.1.0a1` and `0.1.0a4` approvals
9
9
 
@@ -15,8 +15,9 @@ These approvals are historical. They do not authorize an upload, agent lockfile
15
15
 
16
16
  ## Decision and alternatives
17
17
 
18
- The alpha requires exact installed coding-session evidence for each included harness.
19
- Completing all six harness/model paths would provide broader coverage but delay the bounded POC.
18
+ The release bundles Claude Code, Codex CLI `0.167.2`, and OpenCode adapters.
19
+ The alpha requires exact installed coding-session evidence for each of these three harnesses.
20
+ The earlier six-path harness/model matrix is historical scope, not evidence for the bundled Codex adapter.
20
21
  The complete cross-provider matrix is not a prerequisite for this bounded alpha.
21
22
  Broader native-path qualification remains separate from this release's installed-user acceptance.
22
23
  Its completion, auxiliary dispatch, full native job-control matrix, and complete accounting reconciliation do not block this alpha.
@@ -25,12 +26,12 @@ Any reproduced defect that prevents the alpha's accepted journey still blocks re
25
26
  ## Product boundary
26
27
 
27
28
  - Target macOS first. Record the exact tested macOS version and architecture.
28
- - Plan for Claude Code and OpenCode through installed quick-launch commands.
29
+ - Include Claude Code, Codex CLI `0.167.2`, and OpenCode through installed quick-launch commands.
29
30
  - Require at least one exact tested native/version/protocol/model path for each included harness.
30
31
  - Record every effective role model. Evidence does not transfer between native versions, models, or role selections.
31
32
  - Publish only those tested-path claims. Numeric compatibility ranges and discovery are not evidence of coding-session support.
32
33
  - Record tested native paths without adding launcher qualification gates or a production qualification registry.
33
- - The current launcher does not support `--profile`, `--url`, or `--endpoint`, native argument forwarding, or model-list commands.
34
+ - The launcher forwards native arguments subject to reserved-option validation. Bloom does not provide `--profile`, `--url`, `--endpoint`, or model-list commands.
34
35
  - Linux hosts required synthetic package checks and candidate builds. This does not establish native Linux support.
35
36
  - macOS remains the primary native platform. Windows remains future scope.
36
37
  - Host-managed Claude routing is unsupported. Run native acceptance from an ordinary shell without host-managed provider routing.
@@ -39,6 +40,9 @@ Any reproduced defect that prevents the alpha's accepted journey still blocks re
39
40
 
40
41
  Removing a planned harness requires a further explicit scope decision.
41
42
  An unavailable model slot does not authorize a new endpoint or infrastructure.
43
+ Codex has recorded structural adapter evidence, but lacks recorded live Bloom, tool/history, and full interactive qualification.
44
+ Its bundled command does not establish a Qualified Harness Path or satisfy installed-user acceptance.
45
+ Codex acceptance remains a release gate. Native Linux support and host-managed Claude routing remain unsupported.
42
46
 
43
47
  ## Required installed-user journey
44
48
 
@@ -84,18 +88,21 @@ Personal-store access still requires separate authority. Synthetic checks use th
84
88
  ## Package and publication gates
85
89
 
86
90
  - Retain Apache-2.0. Include the license text and package license metadata.
87
- - Align distribution `bloom-launch`, selected version `0.1.0a4`, command `bloom`, and Python requirement `>=3.12` throughout the candidate.
88
- - Require the owner-supplied root package version update in `uv.lock` to `0.1.0a4` as part of the coordinated source commit.
91
+ - Align distribution `bloom-launch`, selected version `0.2.0`, command `bloom`, and Python requirement `>=3.12` throughout the candidate.
92
+ - Require the owner-supplied root package version update in `uv.lock` to `0.2.0` as part of the coordinated source commit.
89
93
  - Agents must not edit `uv.lock`. Preserve every dependency entry and the repository's lockfile prohibition.
90
94
  - Do not reuse the historical `0.1.0` to `0.1.0a1` lockfile exception for this candidate.
91
95
  - Confirm the owner step before claiming locked readiness. Preserve locked validation and subsequent lockfile immutability.
92
96
  - Exclude upstream implementation branding from shipped code, public documentation, metadata, filenames, and archive contents.
93
97
  - Verify the white-label requirement against both final distributions before upload, including case variants.
94
98
  - Apply the required private policy and an independent private artifact scan to both final distributions.
99
+ - Complete the administrator secret-isolation gate before authorizing hosted candidate execution.
100
+ - Protect reviewed `staging` and restrict `release-policy` to that exact branch without tag access.
101
+ - Store the policy secret only in that environment and remove its repository-scoped copy.
95
102
  - Pass the locked install, lint, meaningful tests, build, public metadata checks, archive hygiene, and source/wheel/sdist parity checks.
96
103
  - Pass all three exact-source `Linux portable / Python <version>` jobs for Python 3.12, 3.13, and 3.14 on `ubuntu-24.04`.
97
104
  - Reject missing, skipped, cancelled, superseded, or different-SHA matrix results. The candidate job does not replace this matrix.
98
- - Obtain separately authorized local/manual original-native macOS acceptance for both Claude Code 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.
99
106
  - Align README, installation, qualification, support limits, and release automation with this contract.
100
107
  - Keep the verified candidate filenames, hashes, tool versions, and source identity in a release receipt.
101
108
  - Use the manual exact-artifact process subject to new candidate approval. GitHub Actions retains candidates only and does not publish.
@@ -105,8 +112,8 @@ Personal-store access still requires separate authority. Synthetic checks use th
105
112
  - After publication, install the exact version from PyPI outside the checkout in a fresh isolated environment.
106
113
  - Verify version, help, and the agreed installed journey against that PyPI installation.
107
114
 
108
- The owner-supplied root lockfile version matches the project at `0.1.0a4`, with no dependency-entry changes.
109
- Fresh locked installation passed and the installed source command reports `0.1.0a4`.
115
+ The owner-supplied root lockfile version matches the project at `0.2.0`, with no dependency-entry changes.
116
+ Fresh locked installation passed and the installed source command reports `0.2.0`.
110
117
  Current artifacts remain provisional until exact-source, acceptance, scan, hash-approval, and publication gates pass.
111
118
  Historical license and source-distribution approvals do not supply exact-candidate upload approval.
112
119
  Original-native execution, paid calls, personal-store access, and repository-visibility changes retain their separate authority requirements.
@@ -117,11 +124,26 @@ The manual publication design retains GitHub Team and the private repository.
117
124
  The private repository cannot enforce required environment reviewers on that plan.
118
125
  The candidate workflow therefore has no publishing job, OIDC permission, or publication input.
119
126
 
120
- `release.yml` runs only through manual dispatch and builds the pure-Python universal wheel and sdist on `ubuntu-24.04`, Python 3.12.
121
- It uses Linux `sha256sum` lockfile checks, required private policy, and an exact-hash manifest retained as a GitHub artifact.
122
- The artifact contains `manifest.json`, `dist/bloom_launch-0.1.0a4-py3-none-any.whl`, and `dist/bloom_launch-0.1.0a4.tar.gz`.
127
+ `release.yml` runs only through manual dispatch from the expected repository's protected `staging` workflow and branch.
128
+ Both jobs reject a source SHA that differs from `github.workflow_sha` and check out that trusted workflow revision.
129
+ The candidate job builds the universal wheel and sdist on `ubuntu-24.04`, Python 3.12, without the private policy secret.
130
+ It uses Linux `sha256sum` lockfile checks and transfers only unchecked distributions and the exact-hash manifest.
131
+ A separate scanner job uses a fresh runner and the `release-policy` environment.
132
+ It verifies inventory, hashes, and source/run identity, then scans candidate data using trusted standard-library code through `/usr/bin/python3 -I -S`.
133
+ The trusted checkout and candidate data have separate paths. The scanner never installs, imports, extracts, or executes candidate code.
134
+ Only its scan step receives `BLOOM_RELEASE_FORBIDDEN_TERMS`.
135
+ Missing or invalid policy, or an unprotected trusted ref, fails closed before a checked candidate can be retained.
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.2.0-py3-none-any.whl`, and `dist/bloom_launch-0.2.0.tar.gz`.
123
138
  This workflow does not trigger a PyPI upload, tag, merge, or service deployment.
124
139
 
140
+ Administrator setup remains TBD and blocks release.
141
+ The administrator must protect reviewed workflow/scanner changes on `staging` and restrict `release-policy` to staging-only branch access without tags.
142
+ The administrator must migrate the secret to that environment and remove the repository copy.
143
+ The secret expression cannot detect a repository fallback. Do not claim complete isolation while that copy remains.
144
+ The administrator must verify the retained workflow/scanner revision before candidate authorization and qualify denied refs and successful trusted execution.
145
+ These code changes do not modify GitHub settings or supply hosted qualification evidence.
146
+
125
147
  `local-checks.yml` offers one optional `macos-15` Python 3.13 package report through manual `report_macos=true` only.
126
148
  It is report-only and does not replace original-native macOS acceptance. Automatic events do not schedule it.
127
149
  Linux synthetic checks do not establish native Linux support or model/native compatibility.
@@ -131,7 +153,8 @@ A local verifier checks the downloaded receipt and bytes against those independe
131
153
  With separate upload authority, the human uploads those same files through Twine with a privately entered PyPI API token.
132
154
  The project already exists from `0.1.0a1`, so this upload normally uses a project-scoped token.
133
155
  Keep tokens outside argv, documentation, source, receipts, and chat. Enter the token only at the hidden prompt.
134
- Protected-environment approval and Trusted Publisher setup are not prerequisites for this manual process.
156
+ PyPI environment approval and Trusted Publisher setup are not prerequisites for the manual upload.
157
+ The separate `release-policy` environment and administrator isolation gate remain prerequisites for hosted candidate preparation.
135
158
  No package, hosted-check, native-acceptance, independent-private-scan, or post-upload verification gate is waived.
136
159
  Builds do not promise byte determinism. Older hashes and acceptance do not transfer to the new candidate.
137
160
  See [manual release instructions](releasing.md).
@@ -1,6 +1,6 @@
1
1
  # Codex CLI 0.167.2 Compatibility Evidence
2
2
 
3
- Status: structural adapter evidence recorded. Live Bloom request not run in this session.
3
+ Status: historical structural adapter evidence recorded. No live Bloom request is recorded here.
4
4
 
5
5
  ## Baseline
6
6
 
@@ -49,9 +49,8 @@ provider field.
49
49
 
50
50
  ## Isolation Result
51
51
 
52
- The adapter creates an owner-only temporary directory and sets it as the
53
- child's `CODEX_HOME`. It does not modify the user's existing Codex home,
54
- configuration, credentials, or project files.
52
+ The adapter creates or reuses persistent `$HOME/.config/bloom/codex` and sets it as the child's `CODEX_HOME`.
53
+ It enforces owner-only directory permissions (`0700`). It does not select the user's personal Codex home or inherited `CODEX_HOME`.
55
54
 
56
55
  The persistent home lets Codex retain its own project trust state between
57
56
  Bloom launches. Bloom does not write the connection, model, credential, agent,
@@ -61,8 +60,10 @@ home remains untouched.
61
60
  Bloom preserves existing project trust decisions in the persistent home. It
62
61
  does not silently trust a new project. An existing `untrusted` project causes
63
62
  the launch to fail with an instruction to trust it explicitly in Codex first.
64
- Existing Bloom-owned Codex settings remain preserved, and the configuration
65
- file is owner-only.
63
+ Existing Bloom-owned Codex settings remain preserved. The adapter does not enforce permissions on an existing `config.toml`.
64
+
65
+ The launch plan registers catalog-server cleanup only. It does not register the persistent home for deletion.
66
+ Cleanup stops the invocation-owned catalog server while retaining Codex native state and project trust for later Bloom launches.
66
67
 
67
68
  The invocation overrides make Bloom’s provider and model authoritative without
68
69
  relying on persistent configuration precedence.
@@ -82,7 +83,7 @@ It reserves these Codex controls because they can change the Bloom connection:
82
83
  This list is version-specific. It is not a complete validation boundary for
83
84
  future Codex grammar changes.
84
85
 
85
- ## Doctor Probe
86
+ ## Recorded Doctor Probe (earlier session)
86
87
 
87
88
  `codex doctor` loaded the generated configuration successfully and reported:
88
89
 
@@ -0,0 +1,80 @@
1
+ # GitHub Copilot CLI 1.0.112 Compatibility Evidence
2
+
3
+ Status: historical structural adapter evidence recorded. No live Bloom request is recorded here.
4
+
5
+ ## Baseline
6
+
7
+ - Executable: `copilot`
8
+ - Reported version: `GitHub Copilot CLI 1.0.112.`
9
+ - Host: macOS Apple Silicon
10
+ - Tested native surfaces: non-interactive `-p/--prompt` against a loopback OpenAI Chat Completions recorder
11
+
12
+ ## Documented Configuration
13
+
14
+ The installed Copilot CLI documents these relevant controls:
15
+
16
+ - `COPILOT_PROVIDER_BASE_URL` selects a bring-your-own-key provider endpoint.
17
+ - `COPILOT_PROVIDER_TYPE=openai` selects an OpenAI-compatible provider.
18
+ - `COPILOT_PROVIDER_WIRE_API=completions` selects Chat Completions.
19
+ - `COPILOT_PROVIDER_API_KEY` supplies the provider credential as `Authorization: Bearer`.
20
+ - `COPILOT_PROVIDER_BEARER_TOKEN` would replace the API key for OpenAI-type providers.
21
+ - `COPILOT_MODEL` and `--model` select the model ID.
22
+ - `COPILOT_PROVIDER_WIRE_MODEL` sets the model name sent on the wire.
23
+ - `COPILOT_PROVIDER_MAX_PROMPT_TOKENS` sets the prompt token budget.
24
+ - `COPILOT_PROVIDER_HEADERS` sends custom provider-only headers as newline-separated `Name: Value` pairs.
25
+ - `COPILOT_OFFLINE=true` skips GitHub authentication, telemetry, and auto-update.
26
+ - GitHub authentication is not required when `COPILOT_PROVIDER_*` configures a provider.
27
+
28
+ The adapter uses invocation-scoped environment variables only. It does not rewrite the user's `~/.copilot` home.
29
+
30
+ ## Adapter Mapping
31
+
32
+ The structural adapter sets these child environment values:
33
+
34
+ ```text
35
+ COPILOT_PROVIDER_TYPE=openai
36
+ COPILOT_PROVIDER_WIRE_API=completions
37
+ COPILOT_PROVIDER_BASE_URL=<Bloom base URL>/v1
38
+ COPILOT_PROVIDER_API_KEY=<selected Bloom vkey>
39
+ COPILOT_MODEL=<selected Bloom model>
40
+ COPILOT_PROVIDER_WIRE_MODEL=<selected Bloom model>
41
+ COPILOT_PROVIDER_MAX_PROMPT_TOKENS=<optional cached max_input_tokens>
42
+ COPILOT_PROVIDER_HEADERS=X-Bloom-Agent-ID: ...\nX-Bloom-Session-ID: ...
43
+ COPILOT_OFFLINE=true
44
+ COPILOT_AUTO_UPDATE=false
45
+ ```
46
+
47
+ The argv prefix is `--model <selected Bloom model>`, followed by forwarded native arguments.
48
+
49
+ ## Loopback Spike Result
50
+
51
+ Against a local `127.0.0.1` recorder with `COPILOT_OFFLINE=true`:
52
+
53
+ - Request path: `POST /v1/chat/completions`
54
+ - Authorization: `Bearer test-vkey`
55
+ - Custom headers: `X-Bloom-Agent-ID` and `X-Bloom-Session-ID` reached the recorder
56
+ - Body included `model=bloom-test-model`, `stream=true`, and `tools`
57
+ - Exit status was `0`
58
+ - No GitHub sign-in prompt occurred for this BYOK launch
59
+
60
+ ## Version Gate
61
+
62
+ Bloom pins GitHub Copilot CLI `1.0.112` as the header-capable release.
63
+
64
+ - `1.0.112`: launch with attribution headers
65
+ - older `1.0.x` below `1.0.112`: launch without attribution headers and print a warning
66
+ - other versions: refuse
67
+
68
+ ## Native Argument Policy
69
+
70
+ The adapter forwards non-conflicting native arguments in their original order.
71
+ It reserves these Copilot controls because they can change the Bloom connection:
72
+
73
+ - `--model` and `-m`
74
+ - `--provider`, `--provider-url`, and `--provider-base-url`
75
+
76
+ ## Limits
77
+
78
+ - This record is loopback/recorder evidence only. It is not live Bloom gateway qualification.
79
+ - Attribution depends on `COPILOT_PROVIDER_HEADERS`. Older Copilot builds without that variable launch with a warning and without agent or session headers.
80
+ - Copilot CLI may still create session files under the user's Copilot home. Bloom does not manage those files.