- Factory controls
- Local workspace
- Agent & build containers
- Diff, tests & review
How does the agent receive project code?
The factory updates a local Git mirror and creates a dedicated workspace for each issue. It mounts this local clone at /workspace inside the container. The agent works on that copy and does not need its own access to the remote Git server.
The factory handles push and pull requests. Editing code and publishing changes are therefore separate responsibilities. A dedicated workspace separates one issue from other tasks; it is not, by itself, a complete security boundary.
Separate containers and credentials
The agent runs in a Docker container. Builds and tests run in a separate build container because a test can also execute agent-generated code. The agent container receives neither tracker/Git tokens nor the host Docker socket.
This separation does not mean an agent never needs credentials: an external model endpoint may require an API key. The key distinction is between permissions needed for the task and permissions for repository administration or infrastructure.
Distinguish write boundaries from result checks
A write check in an agent tool can reject a disallowed file operation before it happens. Charly Agent provides a read-only mode and allowed write paths. The factory also uses role-specific path rules and checks which files actually changed after execution.
The factory path gate discards disallowed result changes. It does not prevent every intermediate action inside a container. We therefore describe it as a post-run check and combine it with other boundaries.
Why Git configuration needs protection too
Project code is not the only file with consequences. Git configuration and hooks can influence later Git commands that run outside the agent. The factory mounts these areas read-only in agent and build containers.
The factory also records the configuration before a run and checks it afterwards. Changes are restored; a replaced or removed Git directory can terminate execution. It therefore does not rely solely on the original mount.
Network access is a separate boundary
A container does not automatically imply blocked internet access. The factory can optionally use a restricted Docker network with a proxy and an allowlist. Agent and build containers can then reach the model and allowed hosts, for example for Maven dependencies.
This network restriction is off by default and requires the factory to run directly on the host. Without it, the configured runner network applies. The actual operating mode is therefore part of the security assessment.
Keep responsibility visible outside the sandbox
The controlling factory needs the Docker socket and is therefore a privileged component. Containers, path gates and network rules do not replace careful configuration of that system. They constrain different parts of execution and must remain inspectable as such.
Build results, fresh acceptance, CI and human review check a change before integration. Merge, release and operations remain human responsibilities. Sandboxing complements these quality checks; it does not replace tests or review.