Investigate broken workflow sync — repos silently lost .mokogit/workflows #350

Closed
opened 2026-07-16 17:55:37 +00:00 by jmiller · 1 comment
Owner

Summary

The workflow sync (Template-Go -> each repo's .mokogit/workflows/) appears to have stopped propagating. The MokoGIT repo's dev and main branches had zero files in .mokogit/workflows/ — the full canonical set (~20 workflows) missing — leaving the repo with no CI or deploy.

Why it couldn't self-heal

The sync trigger (custom/workflow-sync-trigger.yml) lives inside .mokogit/workflows/. Combined with MokoConsulting/MokoGIT#798 (custom-path workflow discovery broke), the missing/undiscovered workflows meant the sync could not run to restore itself — a circular failure.

Done

Restored MokoGIT .mokogit/workflows/ manually from Template-Go (canonical source).

Ask (MokoCLI sync tooling)

  1. Root-cause why the sync stopped propagating Template-Go -> repos.
  2. Audit the org — are other repos also missing their .mokogit/workflows/?
  3. Add a guard / health-check + alert so a repo silently losing its synced workflows is detected.

Related: MokoConsulting/MokoGIT#798 (now fixed).

## Summary The workflow sync (Template-Go -> each repo's `.mokogit/workflows/`) appears to have stopped propagating. The **MokoGIT** repo's `dev` and `main` branches had **zero** files in `.mokogit/workflows/` — the full canonical set (~20 workflows) missing — leaving the repo with no CI or deploy. ## Why it couldn't self-heal The sync trigger (`custom/workflow-sync-trigger.yml`) lives **inside** `.mokogit/workflows/`. Combined with MokoConsulting/MokoGIT#798 (custom-path workflow discovery broke), the missing/undiscovered workflows meant the sync could not run to restore itself — a circular failure. ## Done Restored MokoGIT `.mokogit/workflows/` manually from `Template-Go` (canonical source). ## Ask (MokoCLI sync tooling) 1. Root-cause why the sync stopped propagating Template-Go -> repos. 2. Audit the org — are other repos also missing their `.mokogit/workflows/`? 3. Add a guard / health-check + alert so a repo silently losing its synced workflows is detected. Related: MokoConsulting/MokoGIT#798 (now fixed).
Author
Owner

Branch created: feature/350-investigate-broken-workflow-sync-repos-s

git fetch origin
git checkout feature/350-investigate-broken-workflow-sync-repos-s
Branch created: [`feature/350-investigate-broken-workflow-sync-repos-s`](https://git.mokoconsulting.tech/MokoConsulting/MokoCLI/src/branch/feature/350-investigate-broken-workflow-sync-repos-s) ```bash git fetch origin git checkout feature/350-investigate-broken-workflow-sync-repos-s ```
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoCLI#350