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.

chore(privacy): disable the public-flagship push guard at maintainer's request

Ruben Lütkeb5a81d985d20
diff --git a/scripts/ci/guard_no_raw_public_push.py b/scripts/ci/guard_no_raw_public_push.py
index c17389a4f6..9cb24c7a8d 100644
--- a/scripts/ci/guard_no_raw_public_push.py
+++ b/scripts/ci/guard_no_raw_public_push.py
@@ -24,7 +24,6 @@ stdlib-only; runs on a bare `python:3.11-slim` container.
"""
from __future__ import annotations
-import os
import re
import sys
@@ -71,36 +70,19 @@ def main(argv: list[str]) -> int:
if not url and candidates:
url = candidates[-1]
- if not is_public_flagship(url):
- return 0 # not the flagship → allow (origin pushes, anything else)
-
- if os.environ.get("ALLOW_PUBLIC_RAW_PUSH") == "1":
+ # Public-flagship push guard DISABLED at the maintainer's explicit request
+ # (2026-07-03). Direct pushes to PersonalJarvis/PersonalJarvis are now
+ # allowed: the maintainer has accepted that raw working state (including the
+ # real name in history) may reach the public repo. Credential safety now
+ # rests on .gitignore (which keeps .env / keys / jarvis.toml / data/ out of
+ # the tree) PLUS the secret + private-key gates that remain wired in
+ # .githooks/pre-push. Restore the original block from git history to re-enable.
+ if is_public_flagship(url):
sys.stderr.write(
- "guard_no_raw_public_push: ALLOW_PUBLIC_RAW_PUSH=1 set - allowing a raw "
- "push to PersonalJarvis/PersonalJarvis. This is almost never correct; "
- "the depersonalized release goes through the public-release privacy gate.\n"
+ "guard_no_raw_public_push: guard DISABLED by maintainer request — "
+ f"allowing this push to {url}.\n"
)
- return 0
-
- sys.stderr.write(
- "\n"
- "==================================================================\n"
- " PUSH BLOCKED -- raw push to the PUBLIC flagship repo is forbidden.\n"
- "==================================================================\n"
- f" target : PersonalJarvis/PersonalJarvis ({url})\n"
- "\n"
- " That repo only ever receives a DEPERSONALIZED release snapshot —\n"
- " never raw working state (it would leak name/paths/secrets/PII).\n"
- "\n"
- " To publish the maintainer's work, build the depersonalized snapshot\n"
- " via the privacy gate under scripts/ci/privacy_gate (scrub + scan +\n"
- " diff, pushed only on approval) instead of a raw push.\n"
- "\n"
- " Day-to-day dev pushes go to: git push origin (the private repo).\n"
- " See CLAUDE.md \"THE GitHub repository\" + CLOUD.md \"Canonical repositories\".\n"
- "==================================================================\n"
- )
- return 1
+ return 0
if __name__ == "__main__":
diff --git a/scripts/ci/privacy_pre_push.py b/scripts/ci/privacy_pre_push.py
index 4e56e738c9..83b0bb5668 100644
--- a/scripts/ci/privacy_pre_push.py
+++ b/scripts/ci/privacy_pre_push.py
@@ -275,24 +275,16 @@ def main(argv: list[str], stdin) -> int:
remote_name = argv[1] if len(argv) > 1 else ""
remote_url = argv[2] if len(argv) > 2 else ""
- # (A) Public-repo guard — always evaluated, always fail-closed. ----------
+ # (A) Public-repo guard DISABLED at the maintainer's explicit request
+ # (2026-07-03): a direct push to the public repo is now ALLOWED. Credential
+ # safety stays with .gitignore + the secret (C) and private-key gates below.
+ # The public target is still detected — for a heads-up log only, never a block.
if target_is_public(remote_name, remote_url):
print(
- "\n"
- "==================================================================\n"
- " PUSH BLOCKED: direct push to the PUBLIC repo is not allowed.\n"
- f" remote: {remote_name!r} url: {remote_url!r}\n"
- "\n"
- " The public distribution repo (PersonalJarvis/PersonalJarvis) is\n"
- " populated ONLY by the depersonalized public-release snapshot.\n"
- " A raw push would leak your config, identity and personal data.\n"
- "\n"
- " Build the depersonalized snapshot (privacy gate under\n"
- " scripts/ci/privacy_gate) instead of pushing raw.\n"
- "==================================================================",
+ "privacy-pre-push: public-target block is DISABLED (maintainer "
+ f"request); allowing push to remote {remote_name!r}.",
file=sys.stderr,
)
- return 1
try:
# Read and parse the pushed refs once.
diff --git a/tests/unit/ci/test_privacy_pre_push.py b/tests/unit/ci/test_privacy_pre_push.py
index db9d6be494..9455e459b2 100644
--- a/tests/unit/ci/test_privacy_pre_push.py
+++ b/tests/unit/ci/test_privacy_pre_push.py
@@ -228,16 +228,15 @@ _ALL_ZERO = "0" * 40
class TestMain:
- def test_public_target_blocks_before_reading_stdin(self):
- class _Boom:
- def read(self): # must never be reached for a public target
- raise AssertionError("stdin must not be read for a public target")
-
+ def test_public_target_no_longer_blocks(self):
+ # Public-target block DISABLED at the maintainer's explicit request
+ # (2026-07-03): a direct push to the public repo is now ALLOWED. With no
+ # refs on stdin there is nothing else to flag, so main() returns 0.
rc = gate.main(
["prog", "public", "https://github.com/PersonalJarvis/PersonalJarvis.git"],
- _Boom(),
+ io.StringIO(""),
)
- assert rc == 1
+ assert rc == 0
def test_clean_private_push_allows(self, monkeypatch):
monkeypatch.setattr(gate, "_git", lambda *a: f"sha1\t{_NOREPLY}\t{_NOREPLY}\n")