You're offline — showing cached data

Sync PKA repo with GitHub

git-sync
2026-06-13 06:09:24 SAST
← Back to Tasks

OVERRIDES runtime profile: uses direct_shell (plain shell, no model) because the command chain never invokes the claude CLI or any LLM API — pure-infra task; scheduler provider env injection is a no-op (MC-4942 U12 sweep).

Bidirectional PKA sync, hourly (was every 15 min — caused commit churn + collisions with Mac's autopush).

Receive: git pull --rebase --autostash origin master pulls Mac's pushes. Fetch refspec is restricted to master-only (post 2026-05-21 history purge) so it can't re-bloat from old refs.

Send (scoped — NO git add -A): stages only Luci's authored surface — SecondBrain/, wiki/, Vault/memory/ (reports/ + dashboards/ are cloud-migrated outputs, gitignored — never synced from Luci) (excluding SecondBrain/.obsidian/ churn). Commits + pushes only if those paths changed. Anything Luci edits outside that surface (scripts, infra, .claude) is pushed manually — Mac owns those.

Not synced here: vault.db / entity_graph.db (gitignored, per-machine rebuildable), mc.db (separate repo). The old vault.db stash/checkout dance was removed — it's dead code now that vault.db is gitignored.

Re-enabled 2026-05-21 after the 15-min git add -A churn was reworked to scoped hourly sync.

Every hour at :000 * * * *
Yes
shell
300s
No
in 51m (2026-06-13 07:00)

Task Definition

tasks/git-sync.md
shell
set
No
No
cd /home/lucienne/workspace/PKA && G='ssh -i /home/lucienne/.ssh/id_ed25519_pka -o IdentitiesOnly=yes -o ConnectTimeout=20 -o ServerAliveInterval=10 -o ServerAliveCountMax=3'; GIT_SSH_COMMAND="$G" git pull --rebase --autostash --quiet origin master || { n=0; while [ -d .git/rebase-merge ] || [ -d .git/rebase-apply ]; do n=$((n+1)); if [ $n -gt 50 ]; then git rebase --abort 2>/dev/null; echo 'git-sync: too many rebase steps, aborted'; exit 1; fi; msg=$(git log --format=%s -1 REBASE_HEAD 2>/dev/null); if echo "$msg" | grep -q '\[skip ci\]'; then echo "git-sync: auto-skipping conflicting [skip ci] commit: $msg"; git -c rerere.enabled=false rebase --skip || true; else git rebase --abort 2>/dev/null; echo "git-sync: pull/rebase failed (non-skip-ci): $msg"; exit 1; fi; done; }; git add -- SecondBrain/ wiki/ Vault/memory/ ':(exclude)SecondBrain/.obsidian/' 2>/dev/null; if ! git diff --cached --quiet; then git commit -m "Luci: auto-sync $(date +%Y-%m-%dT%H:%M)" --quiet; GIT_SSH_COMMAND="$G" git push --quiet origin master; fi; cp -u /home/lucienne/workspace/PKA/Vault/notes/luci-deploy/*.py /home/lucienne/workspace/scripts/ 2>/dev/null; true

Edit Schedule

Result:
175
Runs (7d)
175
Completed
0
Failed
0
Timeout
100%
Success (7d)
3s
Avg Duration
infrastructure git

Run History (50)

StartedFinishedStatusDurationOutputLog
9m ago 9m ago completed 2s
View log
1h ago 1h ago completed 2s
View log
2h ago 2h ago completed 4s
View log
3h ago 3h ago completed 4s
View log
4h ago 4h ago completed 2s
View log
5h ago 5h ago completed 4s
View log
6h ago 6h ago completed 2s
View log
7h ago 7h ago completed 5s
View log
8h ago 8h ago completed 2s
View log
9h ago 9h ago completed 5s
Created autostash: 139d4579
View log
10h ago 10h ago completed 2s
View log
11h ago 11h ago completed 2s
View log
12h ago 12h ago completed 4s
View log
13h ago 13h ago completed 4s
View log
14h ago 14h ago completed 2s
View log
15h ago 15h ago completed 5s
View log
16h ago 16h ago completed 2s
Created autostash: 0f6957aa
View log
17h ago 17h ago completed 4s
View log
18h ago 18h ago completed 2s
View log
19h ago 19h ago completed 4s
View log
20h ago 20h ago completed 2s
View log
21h ago 21h ago completed 6s
View log
22h ago 22h ago completed 2s
Created autostash: f637834d
View log
23h ago 23h ago completed 2s
View log
1d ago 1d ago completed 2s
View log
1d ago 1d ago completed 2s
View log
1d ago 1d ago completed 4s
View log
1d ago 1d ago completed 2s
View log
1d ago 1d ago completed 2s
View log
1d ago 1d ago completed 4s
View log
1d ago 1d ago completed 3s
Created autostash: f0ff8545
View log
1d ago 1d ago completed 3s
Created autostash: d5cf8839
View log
1d ago 1d ago completed 7s
View log
1d ago 1d ago completed 5s
View log
1d ago 1d ago completed 7s
View log
1d ago 1d ago completed 3s
Created autostash: a1da4994
View log
2d ago 2d ago completed 3s
Created autostash: c6f41226
View log
2d ago 2d ago completed 10s
Created autostash: ed21f6c0
View log
2d ago 2d ago completed 6s
View log
2d ago 2d ago completed 2s
View log
2d ago 2d ago completed 2s
View log
2d ago 2d ago completed 4s
View log
2d ago 2d ago completed 4s
View log
2d ago 2d ago completed 2s
View log
2d ago 2d ago completed 4s
View log
2d ago 2d ago completed 4s
View log
2d ago 2d ago completed 3s
Created autostash: 068d424c
View log
2d ago 2d ago completed 2s
View log
2d ago 2d ago completed 2s
View log
2d ago 2d ago completed 4s
View log

Comments (0)

No comments yet — add instructions for Luci
Help