Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

docs(git): land each finished commit on origin, not a daily batch

Harald484ce1312ab8
diff --git a/AGENTS.md b/AGENTS.md
index 98f94970ef..7c5b2e0424 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -23,9 +23,10 @@ ONE public repo: `github.com/PersonalJarvis/PersonalJarvis`. **A push is
sub-agents (review happens when code is written, never at push time). `.gitignore`
first (data/, .env, jarvis.toml, Vault, keys never tracked); never commit
credentials; secret scanning ON; whole-tree checks live in CI, never pre-push.
-Default = plain push; Release ONLY when explicitly asked (SemVer + tag +
-CHANGELOG + published GitHub Release; `check_release_completeness.py` before
-and after). Never push unless the maintainer asks.
+Default = after each completed commit on the shared primary checkout, rebase
+onto origin if needed and `git push` (never `--force`; never from a linked
+worktree). Release ONLY when explicitly asked (SemVer + tag + CHANGELOG +
+published GitHub Release; `check_release_completeness.py` before and after).
## 3. Open-source universality (BINDING)
Assume an arbitrary downloader, never the maintainer: ANY single key works
@@ -90,8 +91,9 @@ on unpinned libs; signing private keys ONLY in GH Actions secrets; no silent
## 9. Operational reality & git
Working tree is SHARED: stage only YOUR files (`git add -p`/pathspec, never
-`git add -A`/`.`); auto-commit each logical step (Conventional Commits); never
-push automatically; never commit secrets. Desktop lifecycle actions are
+`git add -A`/`.`); auto-commit each logical step (Conventional Commits) then
+`git push` (ff-only; `git pull --rebase --ff-only` first if origin moved);
+never from a linked/mission worktree; never commit secrets. Desktop lifecycle actions are
maintainer-gated: agents may restart, quit, kill, or relaunch the desktop app
ONLY after the maintainer explicitly authorizes that exact action in the current
conversation. Generic "fix/finish/verify" approval is insufficient. Verify the
diff --git a/CLAUDE.md b/CLAUDE.md
index 98f94970ef..7c5b2e0424 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -23,9 +23,10 @@ ONE public repo: `github.com/PersonalJarvis/PersonalJarvis`. **A push is
sub-agents (review happens when code is written, never at push time). `.gitignore`
first (data/, .env, jarvis.toml, Vault, keys never tracked); never commit
credentials; secret scanning ON; whole-tree checks live in CI, never pre-push.
-Default = plain push; Release ONLY when explicitly asked (SemVer + tag +
-CHANGELOG + published GitHub Release; `check_release_completeness.py` before
-and after). Never push unless the maintainer asks.
+Default = after each completed commit on the shared primary checkout, rebase
+onto origin if needed and `git push` (never `--force`; never from a linked
+worktree). Release ONLY when explicitly asked (SemVer + tag + CHANGELOG +
+published GitHub Release; `check_release_completeness.py` before and after).
## 3. Open-source universality (BINDING)
Assume an arbitrary downloader, never the maintainer: ANY single key works
@@ -90,8 +91,9 @@ on unpinned libs; signing private keys ONLY in GH Actions secrets; no silent
## 9. Operational reality & git
Working tree is SHARED: stage only YOUR files (`git add -p`/pathspec, never
-`git add -A`/`.`); auto-commit each logical step (Conventional Commits); never
-push automatically; never commit secrets. Desktop lifecycle actions are
+`git add -A`/`.`); auto-commit each logical step (Conventional Commits) then
+`git push` (ff-only; `git pull --rebase --ff-only` first if origin moved);
+never from a linked/mission worktree; never commit secrets. Desktop lifecycle actions are
maintainer-gated: agents may restart, quit, kill, or relaunch the desktop app
ONLY after the maintainer explicitly authorizes that exact action in the current
conversation. Generic "fix/finish/verify" approval is insufficient. Verify the
diff --git a/docs/LLM-CONTEXT.md b/docs/LLM-CONTEXT.md
index b93f00bdd9..e458682509 100644
--- a/docs/LLM-CONTEXT.md
+++ b/docs/LLM-CONTEXT.md
@@ -526,7 +526,7 @@ Line length 100. Target `py311`. One per-file `E501` exception (`jarvis/awarenes
## 19. Scripts inventory (`scripts/`)
**Cron daemons (production):**
-- `auto-push-eod.ps1` — nightly tag+push safety net. Skips worktrees with active Jarvis-Agent session (`<30 min` modify time).
+- `auto-push-eod.ps1` — nightly tag+push crash-backup (primary path is push-after-commit on the shared checkout). Skips worktrees with active Jarvis-Agent session (`<30 min` modify time).
- `install-auto-push-task.ps1 -Time "22:00"` — register Task Scheduler job.
- `drift-guard-daemon.ps1` — 5-min config drift defense. Singleton-locked, hidden, started via `shell:startup` shortcut.
- `install-config-drift-guard-task.ps1` — install variant.
diff --git a/docs/PHILOSOPHY.md b/docs/PHILOSOPHY.md
index 428b6dd597..dce7f31170 100644
--- a/docs/PHILOSOPHY.md
+++ b/docs/PHILOSOPHY.md
@@ -91,7 +91,7 @@ These are explicitly **maintainer-only**, will never become part of the open-sou
- `scripts/preflight.ps1` — worktree drift recovery (BUG-006 / BUG-014 / BUG-015 defense).
- `scripts/check-working-tree.ps1` — pre-boot drift restore invoked by `run.bat`.
- `scripts/drift-guard-daemon.ps1` — `jarvis.toml` self-healing daemon (BUG-010 triple defense).
-- `scripts/auto-push-eod.ps1` + `scripts/install-auto-push-task.ps1` — nightly tag-and-push safety net.
+- `scripts/auto-push-eod.ps1` + `scripts/install-auto-push-task.ps1` — nightly tag-and-push crash-backup (primary path is push-after-commit on the shared checkout).
- `scripts/jarvis-config-drift-guard.ps1` — config drift defense.
- The maintainer's private GitHub CI bot integration (runs only on the maintainer's own private repositories).
- The `~/.claude/` private configuration directory (memory, plans, brand guidelines).
diff --git a/docs/agent-contract.md b/docs/agent-contract.md
index 5cafa8fbf3..65d4bf5627 100644
--- a/docs/agent-contract.md
+++ b/docs/agent-contract.md
@@ -138,10 +138,17 @@ When ambiguous, update. **Pre-tag gate:** run
with `--verify-release` after publishing — a pushed tag without a *published*
GitHub Release updates no managed install.
-**Do not PUSH unless the maintainer asks** (local auto-commit per §9).
-Releases are cut from the dev-machine line; a session on another machine
-ports its work back to `main` instead of cutting its own releases. Doctrine:
-[`CLOUD.md`](../CLOUD.md).
+**Finished work ships.** On the shared primary checkout (`.git` is a
+directory, not a linked worktree), after each completed logical step is
+committed, land it: `git pull --rebase --ff-only` if `origin` has moved,
+then `git push`. That is the standing authorization — do not wait for a
+separate "push" utterance. Linked worktrees (mission workers, isolated
+agent worktrees) commit locally and do not push; the parent on the
+primary checkout lands that work. Never `--force`, never `--no-verify`.
+Maintainer phrases "push" / "sichere den Stand" remain valid for anything
+still local (crash before push). Releases stay explicit-only (volumes
+above). Doctrine: [`CLOUD.md`](../CLOUD.md).
+<!-- i18n-allow: quoted German maintainer trigger phrase -->
---
@@ -622,8 +629,9 @@ every contributor and agent follows it.)*
(sweeps another session's in-flight, possibly secret-bearing work in).
- **Conventional-Commit messages** (`feat:`, `fix:`, `refactor:`, `docs:`,
`chore:`).
-- **Never push automatically** — only when the maintainer explicitly says so
- (still honoring §2).
+- **Then push** from the primary shared checkout (`git pull --rebase
+ --ff-only` if origin moved, then `git push`). Linked/mission worktrees
+ do not push. Never `--force`.
- **Never commit secrets / `.env` / keys / tokens.** If any appear
untracked: stop, flag, don't commit.
- **Pushing is one command.** `git push <remote> <branch>` — nothing is built,
diff --git a/scripts/README-auto-push.md b/scripts/README-auto-push.md
index 4affa80350..4a7e900b3e 100644
--- a/scripts/README-auto-push.md
+++ b/scripts/README-auto-push.md
@@ -2,9 +2,9 @@
## What does it do?
-The script **automatically mirrors all local Git branches to GitHub every evening**. Before each push a **backup tag** is set (`safety/eod-<branchname>-<timestamp>`), so that even destructive follow-up actions stay reversible. If your laptop were to die tomorrow — all your work is on GitHub anyway.
+The **primary** path is live: after each completed commit on the shared primary checkout, agents `git push` (see `docs/agent-contract.md` §2 / §9). This script is the **crash-backup**. It mirrors remaining local branches to GitHub every evening and sets a **backup tag** (`safety/eod-<branchname>-<timestamp>`) first, so a session that died between commit and push still lands, and even destructive follow-up actions stay reversible.
-Background: On 2026-05-01 a restore went well only because you instinctively set backup tags. This automation now does both (tag + push) every evening, without you having to think about it.
+Background: On 2026-05-01 a restore went well only because you instinctively set backup tags. This automation still does both (tag + push) every evening as the backstop, without you having to think about it.
---
@@ -113,12 +113,10 @@ If you still have uncommitted changes, **the script aborts** (log entry `SKIP: W
---
-## Clarification: relationship to the Jarvis-Agent DENY rule
+## Clarification: who pushes, and when
-In `~/.claude/settings.json` there is a `Bash(git push *)` DENY rule that prevents Jarvis-Agent worker agents from pushing at runtime. **This rule does NOT affect the auto-push script**, because:
+Coding agents on the **shared primary checkout** push after each completed commit (`git pull --rebase --ff-only` if origin moved, then `git push`). Never `--force`, never `--no-verify`.
-- The Task Scheduler starts the script as a standalone Windows program (`powershell.exe`).
-- It does not run inside the Jarvis-Agent worker harness, but as a normal user process.
-- The DENY rule only filters Bash tool calls of the LLM, not external scripts.
+**Linked worktrees do not push** — mission workers and isolated agent worktrees commit locally; the parent on the primary checkout lands that work. The evening script is the backstop for a crash between commit and push, and for any branch the live path did not reach.
-So you keep **full control**: agents still cannot push on their own, but your own scheduled job mirrors your repo to GitHub every evening.
+The Task Scheduler starts this script as a standalone Windows program (`powershell.exe`), not inside a worker harness, so a worker-tool deny on `git push` does not block the backup.