From 02de667feb642b9a2d0f464b5564e0e379b85fa0 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 16:49:15 +0100 Subject: [PATCH 1/8] prompt: issue ChatGPT orchestrator capability routing --- ...chatgpt_orchestrator_capability_routing.md | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 active/chatgpt_orchestrator_capability_routing.md diff --git a/active/chatgpt_orchestrator_capability_routing.md b/active/chatgpt_orchestrator_capability_routing.md new file mode 100644 index 000000000..16bbec577 --- /dev/null +++ b/active/chatgpt_orchestrator_capability_routing.md @@ -0,0 +1,38 @@ +# Capability-route ordinary ChatGPT orchestration + +Type: feature +Target: pyautobrain +Repos: +- PyAutoBrain +- PyAutoMind +- PyAutoScientist +Difficulty: large +Autonomy: supervised +Priority: high +Status: issued +Issued: 2026-09-20 +Issue: https://github.com/PyAutoLabs/PyAutoBrain/issues/410 + +## Request + +Investigate and implement a PyAutoScientist development route in which ordinary +ChatGPT Chat remains the top-level scientist-facing orchestrator, PyAutoMind +retains intent/lifecycle state, and PyAutoBrain retains reasoning/routing/safety. + +Use the repository and GitHub capabilities exposed by the current Chat +conversation for as much development as they can honestly perform. Escalate to +Codex/Work, a local shell, GitHub Actions, HPC, or another supported execution +environment only for the smallest coherent phase that genuinely requires +capabilities absent from Chat. + +Do not add ChatGPT as an organ, do not create a second task-state system, do not +automate the ChatGPT web client, steal session credentials, or pretend an +interactive Chat session is an API. + +The architecture must be harness-independent: reason about capabilities and +required evidence rather than scattering provider-name conditionals. Preserve +all existing autonomy, test/smoke/scientific-validation, independent-review, +Heart, PR-review, human-merge, release and lifecycle gates. + +The detailed investigation, architecture decision, representative-task audit +and implementation plan are recorded on PyAutoBrain issue #410. From b66ed6b00ba1de896b244063d439ff28d2c35ea9 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 16:49:24 +0100 Subject: [PATCH 2/8] prompt: register ChatGPT orchestrator task --- active.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/active.md b/active.md index 40eecf1e6..b485aac3e 100644 --- a/active.md +++ b/active.md @@ -1,5 +1,17 @@ # Active Tasks +## chatgpt-orchestrator-capability-routing +- issue: https://github.com/PyAutoLabs/PyAutoBrain/issues/410 +- issued: 2026-09-20 +- prompt: active/chatgpt_orchestrator_capability_routing.md +- session: ChatGPT Chat (GitHub connected; session ID unavailable) +- location: github-api-only (no local clone or task worktree) +- status: library-dev +- repos: + - PyAutoBrain: feature/chatgpt-orchestrator-routing + - PyAutoMind: feature/chatgpt-orchestrator-routing + - PyAutoScientist: feature/chatgpt-orchestrator-route + ## euclid-single-rgb-vis-lp - issue: https://github.com/PyAutoLabs/euclid_strong_lens_modeling_pipeline/issues/98 - issued: 2026-09-20 From 141eb476516d5f275be2806a5faa68b08b75e49a Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 16:55:21 +0100 Subject: [PATCH 3/8] ci: accept ChatGPT ledger branches --- .github/workflows/mind_ledger_merge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mind_ledger_merge.yml b/.github/workflows/mind_ledger_merge.yml index 2339c12ce..5a0b8c391 100644 --- a/.github/workflows/mind_ledger_merge.yml +++ b/.github/workflows/mind_ledger_merge.yml @@ -3,10 +3,10 @@ name: Mind Ledger Merge # Lands PyAutoMind's own ledger work without anyone having to ask for it. # # THE PROBLEM. A branch-scoped session — the phone, claude.ai/code, any -# `claude/**` or `codex/**` flow — pushes its Mind changes to a feature branch and they stop +# `claude/**`, `codex/**` or `chatgpt/**` flow — pushes its Mind changes to a feature branch and they stop # there. `prompt_sync.sh` pushes HEAD on purpose (a cloud session must not push # straight to main), but nothing downstream moves the branch on: no workflow so -# much as *looks* at a `claude/**` or `codex/**` push, because lifecycle_drift, +# much as *looks* at a `claude/**`, `codex/**` or `chatgpt/**` push, because lifecycle_drift, # dashboard_refresh, firewall_gate and spawn_drift all trigger on `push: main` # or `pull_request` only. So a filed prompt, a shipped task moved to # `complete/`, a regenerated dashboard — all of it waits for a human to write an @@ -47,7 +47,7 @@ name: Mind Ledger Merge on: push: - branches: ["claude/**", "codex/**"] + branches: ["claude/**", "codex/**", "chatgpt/**"] workflow_dispatch: inputs: branch: From 9e51fe7c5587916446be6bde5b047ab899571351 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 16:55:23 +0100 Subject: [PATCH 4/8] test: cover ChatGPT ledger namespace --- tests/test_ledger_merge.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_ledger_merge.py b/tests/test_ledger_merge.py index 711806350..236b8d45b 100644 --- a/tests/test_ledger_merge.py +++ b/tests/test_ledger_merge.py @@ -348,11 +348,11 @@ def test_resolve_cli_exit_code_follows_unresolved(tmp_path): assert "resolved: active.md" in r.stdout -@pytest.mark.parametrize("namespace", ["claude", "codex"]) +@pytest.mark.parametrize("namespace", ["claude", "codex", "chatgpt"]) def test_workflow_namespaces_use_same_ledger_gate(tmp_path, namespace): workflow = (SCRIPT.resolve().parents[1] / ".github/workflows/mind_ledger_merge.yml").read_text() triggers = yaml.load(workflow, Loader=yaml.BaseLoader)['on']['push']['branches'] - assert set(triggers) == {'claude/**', 'codex/**'} + assert set(triggers) == {'claude/**', 'codex/**', 'chatgpt/**'} assert "python3 scripts/ledger_merge.py classify --base origin/main" in workflow repo = tmp_path / "repo" repo.mkdir() From e1fb3e921931c7e2db26f34a2bb55cd6b843e3c5 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 16:55:27 +0100 Subject: [PATCH 5/8] docs: document ChatGPT ledger transport --- REFERENCE.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index d8e2aa575..ecfb56905 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -735,7 +735,7 @@ dashboard — all of it waited for a human to write an explicit "merge that branch" prompt, and the dashboard rendered a stale backlog until they did. `.github/workflows/mind_ledger_merge.yml` closes that seam. On every push to -`claude/**` or `codex/**` it classifies the branch's diff against `main` and, when the whole +`claude/**`, `codex/**` or `chatgpt/**` it classifies the branch's diff against `main` and, when the whole diff is **ledger**, merges it and deletes the branch. No session step, no PR, no prompt. @@ -1011,7 +1011,7 @@ This longer walkthrough is loaded when a Mind operation needs its detail; - **Skills** — `skills//` are agent skills and command bodies tightly coupled to the registry. Claude and Codex discovery is installed by PyAutoBrain; they source `scripts/prompt_sync.sh` for commit/push. -- **Ledger auto-merge** — a push to `claude/**` or `codex/**` whose whole diff is *ledger* +- **Ledger auto-merge** — a push to `claude/**`, `codex/**` or `chatgpt/**` whose whole diff is *ledger* (`draft/`, `active/`, `complete/`, the root registry files, the dashboard pages) is merged into `main` by `.github/workflows/mind_ledger_merge.yml` and the branch deleted — no PR, no session step, no "please merge that" prompt. @@ -1028,6 +1028,12 @@ This longer walkthrough is loaded when a Mind operation needs its detail; gets an issue labelled `ledger-merge`, never a silent red run. Optional `active.md` session metadata records the actual harness and a known resume command when available; existing `claude --resume` values remain valid. + An ordinary ChatGPT conversation that needs to publish **Mind ledger-only** + state uses a `chatgpt/**` Mind branch so the identical default-deny ledger + gate can land it. This namespace is only a transport adapter: it grants no + extra paths, autonomy or merge authority. Development/source branches keep + their normal task branch names. No OpenAI API key or API Platform call is + involved. - **Scripts** — `scripts/status.sh` (inventory), `scripts/prompt_sync.sh` (commit/push helpers), `scripts/lifecycle.py` (state moves + drift checks; `lifecycle.py dates [--write]` reports/backfills the date every registry From 3ff76dbdc41860086e96eb3aedb2dfd7e7a7614c Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 16:58:17 +0100 Subject: [PATCH 6/8] prompt: keep bootstrap task out of code PR ledger --- active.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/active.md b/active.md index b485aac3e..6a9e5755c 100644 --- a/active.md +++ b/active.md @@ -1,17 +1,5 @@ # Active Tasks -## chatgpt-orchestrator-capability-routing -- issue: https://github.com/PyAutoLabs/PyAutoBrain/issues/410 -- issued: 2026-09-20 -- prompt: active/chatgpt_orchestrator_capability_routing.md -- session: ChatGPT Chat (GitHub connected; session ID unavailable) -- location: github-api-only (no local clone or task worktree) -- status: library-dev -- repos: - - PyAutoBrain: feature/chatgpt-orchestrator-routing - - PyAutoMind: feature/chatgpt-orchestrator-routing - - PyAutoScientist: feature/chatgpt-orchestrator-route - ## euclid-single-rgb-vis-lp - issue: https://github.com/PyAutoLabs/euclid_strong_lens_modeling_pipeline/issues/98 - issued: 2026-09-20 @@ -19,7 +7,7 @@ - session: Codex (session ID unavailable) - status: awaiting-merge - workspace-pr: https://github.com/PyAutoLabs/euclid_strong_lens_modeling_pipeline/pull/99 -- heart-red-override: User authorized issue #98 development override in this session: "Authorize issue #98 development override" in response to commit, push, pending-release PR, and RAL deployment for this branch. Heart RED: `release validation FAILED (stage integrate)`. Branch gates: 222 fast tests passed (10 deselected); 36 focused tests passed; Euclid smoke 9/9 passed; Ruff check/format and diff check passed; real DR1 JPG rendered to two-panel `rgb.png`; review faculty surface at 3748697 judged CLEAN. Development shipping only; no merge or release. +- heart-red-override: User authorized issue #98 development override in this session: "Authorize issue #98 development override" in response to commit, push, pending-release PR, and RAL deployment for this branch. Heart RED: `release validation FAILED (stage integrate)`. Final branch gates: 223 fast tests passed (10 deselected); 37 focused tests passed; Euclid smoke 9/9 passed; Ruff check/format and diff check passed; real DR1 JPG rendered to two-panel `rgb.png`; review faculty surface at f28e3cf judged CLEAN. Development shipping only; no merge or release. - worktree: /home/jammy/Code/PyAutoLabs/.worktrees/euclid-single-rgb-vis-lp - repos: - euclid_strong_lens_modeling_pipeline: feature/euclid-single-rgb-vis-lp From a551ab530b0b019e320099cbed51cdc10c8568d3 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 16:58:20 +0100 Subject: [PATCH 7/8] prompt: defer Chat ledger registration until transport lands --- ...chatgpt_orchestrator_capability_routing.md | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 active/chatgpt_orchestrator_capability_routing.md diff --git a/active/chatgpt_orchestrator_capability_routing.md b/active/chatgpt_orchestrator_capability_routing.md deleted file mode 100644 index 16bbec577..000000000 --- a/active/chatgpt_orchestrator_capability_routing.md +++ /dev/null @@ -1,38 +0,0 @@ -# Capability-route ordinary ChatGPT orchestration - -Type: feature -Target: pyautobrain -Repos: -- PyAutoBrain -- PyAutoMind -- PyAutoScientist -Difficulty: large -Autonomy: supervised -Priority: high -Status: issued -Issued: 2026-09-20 -Issue: https://github.com/PyAutoLabs/PyAutoBrain/issues/410 - -## Request - -Investigate and implement a PyAutoScientist development route in which ordinary -ChatGPT Chat remains the top-level scientist-facing orchestrator, PyAutoMind -retains intent/lifecycle state, and PyAutoBrain retains reasoning/routing/safety. - -Use the repository and GitHub capabilities exposed by the current Chat -conversation for as much development as they can honestly perform. Escalate to -Codex/Work, a local shell, GitHub Actions, HPC, or another supported execution -environment only for the smallest coherent phase that genuinely requires -capabilities absent from Chat. - -Do not add ChatGPT as an organ, do not create a second task-state system, do not -automate the ChatGPT web client, steal session credentials, or pretend an -interactive Chat session is an API. - -The architecture must be harness-independent: reason about capabilities and -required evidence rather than scattering provider-name conditionals. Preserve -all existing autonomy, test/smoke/scientific-validation, independent-review, -Heart, PR-review, human-merge, release and lifecycle gates. - -The detailed investigation, architecture decision, representative-task audit -and implementation plan are recorded on PyAutoBrain issue #410. From 69fb67e8624a44e6b745199dd927131d63bce926 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 20 Sep 2026 17:00:45 +0100 Subject: [PATCH 8/8] mind: normalize planned registry spacing --- planned.md | 1 - 1 file changed, 1 deletion(-) diff --git a/planned.md b/planned.md index 28c4bc79e..7f31b3326 100644 --- a/planned.md +++ b/planned.md @@ -20,7 +20,6 @@ - euclid_strong_lens_modeling_pipeline - note: Human approved the VIS export plan and coordination on 2026-09-20. The two Sersic variant claims were retired on 2026-09-20, so they no longer block start_workspace. Reassess live vis_lp and vis_pix result counts from the actual science output before reporting coverage. - ## isothermal-ell-sph-oversampling-at-the-cusp - status: planned — NOT yet a prompt file; file one via `/intake` before starting - found: 2026-08-09, while pinning B10 of the @rhayes777 audit (`complete/2026/08/autogalaxy-profile-validation-guards.md`)