ansible port: git role (remote-sync + github<->forgejo mirror-drift) #209
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/infrastructure#209
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of the up-to-date.py -> ansible port. Serial chain step 1 of 4. Dispatch in order; this one first.
Context
infrastructure/ansible:playbooks/freshen.ymlruns roleshomebrew,agent-compose,repos. Run viacoily ansible-freshen(check) /action=apply.reposrole +library/repo_registry.py(discovery) already landed (#208). Read them for the pattern: a read-only custom module underansible/library/(shebang#!/usr/bin/python, found vialibrary = libraryin ansible.cfg) plus a role that loops.agentic-os-kai/scripts/up-to-date.py, the git step (step 6) and helperssync_repo,ensure_remote_topology,remote_branch,in_progress_op,stale_branches,worktrees.Task
Add a
gitrole (+library/repo_status.pyif a module is cleaner than tasks) that, per local repo across therepos_known_orgsdirs:git fetch --all --prune, report ahead/behind vs each remote, uncommitted/untracked, in-progress op, detached HEAD, worktrees, stash, stale unmerged branches.pull --ff-onlyfrom each remote (apply mode only; check mode reports).Wire into
freshen.ymlwith taggit, afterrepos.Acceptance
coily exec ansible-freshen(check) runs the role clean;--tags gitscopes it.