Always-push repos
House close-out is local-first by default: agents commit on the machine and wait for an explicit push or deploy request (End-of-run commit (local-first)).
Some repositories cannot wait. Shared agent-rules trees have to stay at the same HEAD on every machine, or later chats load stale skills and rules. Those repos opt into always-push with a committed marker; agents copy what they find into a machine-local catalog and push at end of run.
Precedence
-
Default: commit locally; do not push unless asked.
-
If
.agent-push-policy.json5at the repo root sayspolicy: "always-push", or the repo is in$CODE_ROOT/always-push-repos.json5, or it is an owned clone namedagent-rules: commit and push. -
Push is still route-aware (
github-repo-access). This is not permission to force-push or to push a guest upstream.
Marker
The only filename is .agent-push-policy.json5, at the repository root — not under .github/. Schema: schemas/agent-push-policy/agent-push-policy.schema.jsonunchecked.
{
schema: "agent-push-policy/1",
policy: "always-push",
reason: "Shared agent-rules must stay in sync across machines.",
}
Catalog
The catalog lives at $CODE_ROOT/always-push-repos.json5 (machine-local, next to machine.md and hive-watch.status.json). Schema: schemas/agent-push-policy/always-push-repos.schema.jsonunchecked.
Agents inspect a repo, upsert or remove its catalog entry, and then follow the close-out rule. Owned agent-rules clones are registered even before the marker is added (source: "name-heuristic").
Portable source: general/always-push-repos.mdunchecked.
Skill: always-push-repos.