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: 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 diff --git a/active.md b/active.md index 40eecf1e6..6a9e5755c 100644 --- a/active.md +++ b/active.md @@ -7,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 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`) 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()