Make transport commits independent of Git identity
ci / svc-realcombo (pull_request) Successful in 2m1s
ci / test (pull_request) Failing after 3m50s
ci / test-pg (pull_request) Successful in 7m56s

Why: PR #567 CI runs without a global Git user identity, causing every successful agent transport commit to fail with exit 128.

Evidence: The focused no-identity regression plus AgentExecControllerTests and AgentExecHistoryTests pass (30 executions total); git diff --check passes.

Impact: Supplies a deterministic non-secret identity only to git commit-tree; routing, receipts, and transport validation are unchanged.

Refs: #567
This commit is contained in:
2026-10-15 08:59:17 +00:00
parent b4139a56d2
commit 29e7cf185e
2 changed files with 40 additions and 0 deletions
+8
View File
@@ -47,6 +47,10 @@ EXIT_SCOPE_EXPANSION = 5
EXIT_CANCELLED = 6
EXIT_HOST_FALLBACK = 10
# Transport commits must not depend on machine-global Git identity.
TRANSPORT_AUTHOR_NAME = "agent-exec-transport"
TRANSPORT_AUTHOR_EMAIL = "agent-exec-transport@localhost.invalid"
DEFAULT_BRANCHES = frozenset({"main", "master"})
SECRET_PATH_MARKERS = (
".secrets",
@@ -1627,6 +1631,10 @@ def _create_transport_commit(
msg = f"agent-exec transport {run_id}/{attempt_id}"
commit = _git(
worktree,
"-c",
f"user.name={TRANSPORT_AUTHOR_NAME}",
"-c",
f"user.email={TRANSPORT_AUTHOR_EMAIL}",
"commit-tree",
tree,
"-p",