feat: add repository mesh reconciliation round

This commit is contained in:
2026-04-30 10:50:07 -03:00
parent 3d2748adf5
commit b79fdce99d
113 changed files with 81555 additions and 22807 deletions

View File

@@ -0,0 +1,37 @@
# Repository Mesh Scheduler Specs
## TudoParaIA-RepositoryMeshSync
- kind: `windows_task`
- interval_minutes: `5`
- working_directory: `G:\_codex-git\tudo-para-ia-mais-humana`
- log_path: `G:\_codex-git\tudo-para-ia-mais-humana\dados\repository-mesh-runtime.jsonl`
Install:
- `$Action = New-ScheduledTaskAction -Execute 'C:\Users\Ami\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' -Argument "-m mais_humana.cli repo-mesh --ecosystem-root 'G:\_codex-git' --project-root 'G:\_codex-git\tudo-para-ia-mais-humana' --fetch"`
- `$Trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes 5)`
- `Register-ScheduledTask -TaskName 'TudoParaIA-RepositoryMeshSync' -Action $Action -Trigger $Trigger`
Uninstall:
- `Unregister-ScheduledTask -TaskName 'TudoParaIA-RepositoryMeshSync' -Confirm:$false`
Notas:
- usar credencial Git do usuario operacional
- nao usar plugin Cloudflare como via de sincronizacao
## tudo-para-ia-repository-mesh-sync
- kind: `cron`
- interval_minutes: `5`
- working_directory: `G:\_codex-git\tudo-para-ia-mais-humana`
- log_path: `G:\_codex-git\tudo-para-ia-mais-humana\dados\repository-mesh-cron.log`
Install:
- `(crontab -l; echo "*/5 * * * * cd 'G:\_codex-git\tudo-para-ia-mais-humana' && PYTHONPATH='G:\_codex-git\tudo-para-ia-mais-humana\src' 'python' -m mais_humana.cli repo-mesh --ecosystem-root 'G:\_codex-git' --project-root 'G:\_codex-git\tudo-para-ia-mais-humana' --fetch >> 'G:\_codex-git\tudo-para-ia-mais-humana\dados\repository-mesh-cron.log' 2>&1") | crontab -`
Uninstall:
- `crontab -l | grep -v 'repository-mesh' | crontab -`
Notas:
- executar em cada host Linux da malha
- bloquear se houver dirty tree ou divergencia