Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/mind_ledger_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -47,7 +47,7 @@ name: Mind Ledger Merge

on:
push:
branches: ["claude/**", "codex/**"]
branches: ["claude/**", "codex/**", "chatgpt/**"]
workflow_dispatch:
inputs:
branch:
Expand Down
10 changes: 8 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -1011,7 +1011,7 @@ This longer walkthrough is loaded when a Mind operation needs its detail;
- **Skills** — `skills/<name>/` 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.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion active.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion planned.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ledger_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading