Source: ViewEdit

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

  1. Default: commit locally; do not push unless asked.

  2. If .agent-push-policy.json5 at the repo root says policy: "always-push", or the repo is in $CODE_ROOT/always-push-repos.json5, or it is an owned clone named agent-rules: commit and push.

  3. 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.json.

{
  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.json.

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.md. Skill: always-push-repos.