Skip to content

fix: ledger_merge dispatches dashboard_refresh, which checks main after a heal - #104

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cortex-ledger-merge-refresh
Nov 26, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cortex-ledger-merge-refresh

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

A ledger auto-merge that adds or retires a project left Cortex main red until the 03:35 cron (09a0de6, the sdssj0946_subhalo_v2 birth, 2026-11-26). ledger_merge.yml pushes with GITHUB_TOKEN, which triggers no workflows, and it dispatched cortex_check.yml straight onto a tip whose dashboard.md was stale, so the check failed and nothing healed the board.

Closes #103.

Changes

  • .github/workflows/ledger_merge.yml: after a landed merge, dispatch dashboard_refresh.yml instead of cortex_check.yml and pages_dashboard.yml. Both workflows share the cortex-main-writers queue, so the refresh starts after the merge push. If that dispatch fails, fall back to dispatching the check directly.
  • .github/workflows/dashboard_refresh.yml:
    • after a heal push, also dispatch cortex_check.yml; the heal push is a GITHUB_TOKEN commit too, so today nothing checks it;
    • on a fresh tip, dispatch cortex_check.yml for workflow_dispatch and schedule runs only, so a merge that left the board fresh still gets its merge commit checked. Push runs already trigger the check, and PR runs still dispatch nothing.
  • tests/test_ledger_merge.py: a text test that guards both hand-offs.

API Changes

None. CI workflows only.

Test Plan

Heart dev-ship gate: GREEN. PyAutoCortex is not Heart-gated, so the PR checks decide.

🤖 Generated with Claude Code

…er a heal

A GITHUB_TOKEN merge push triggers nothing, and ledger_merge.yml dispatched
cortex_check.yml straight onto a tip whose board a birth had left stale, so
main stayed red until the nightly cron (09a0de6, 2026-11-26). ledger_merge now
dispatches dashboard_refresh.yml (same writer queue, so it runs after the
push); the refresh dispatches cortex_check.yml after a heal, and on a fresh tip
for dispatched/scheduled runs. A text test guards both hand-offs.

Closes #103

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit cca40ce into main Nov 26, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/cortex-ledger-merge-refresh branch November 26, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: ledger_merge must dispatch dashboard_refresh after a merge

1 participant