Skip to content

sandbox image: no git identity, so an agent's first git commit fails #415

Closed

Description

@pdettori

Found on the VM demo's live run (#370, recorded in docs/demos/vm-multi-user-demo.md, fix list 5).

The sandbox image sets no git identity, so an agent's first git commit fails until it configures one:

$ podman run --rm --entrypoint sh ghcr.io/rossoctl/moca-remote-worker:latest -c 'git config --get user.name; echo $?'
1

On the P4 tier, whose rootfs is exported from this image, both users' first commit failed the same way. The journal recorded exit=128 on the first Exec of sessions c3bb0aa1… and cdb10443…. Each agent then set a local identity (git config user.email [email protected]) and retried. That works, but it costs a tool call and a model round, and it shows up in front of an audience.

The container tier has the same gap. #372 made HOME writable, so git config --global succeeds, but nothing sets an identity beforehand.

Proposed fix: a system gitconfig in the image (/etc/gitconfig), for example user.name = MOCA sandbox and user.email = [email protected]. It applies to any uid, including the arbitrary gid-0 uid #372 tests, and a user's or agent's own config still overrides it. Extend remote-worker/cmd/worker/research_tooling_test.go to cover a commit with no prior config, and build-snapshot.sh's guest probe if it should be checked on P4 too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions