---
title: "Discussion on \"The agent works in a sealed box; the host decides what counts as done\" | Hashnode"
description: "Discussion on \"The agent works in a sealed box; the host decides what counts as done\". A disposable container, one narrow door, and a host that owns history, limits and results"
url: "https://hashnode.com/posts/2026-11-29-how-an-agent-does-a-task-034/6b0c96c45a3771a77fa2be74"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The agent works in a sealed box; the host decides what counts as done](https://factorynotes.hashnode.dev/2026-11-29-how-an-agent-does-a-task-034?utm_source=hashnode&utm_medium=feed)

A disposable container, one narrow door, and a host that owns history, limits and results

4d ago · 7 min read · factorynotes.hashnode.dev  
Updated 1d ago  
Read the article

-   [#agents](https://hashnode.com/tag/agents)
-   [#sandbox](https://hashnode.com/tag/sandbox)
-   [#factory](https://hashnode.com/tag/factory)
-   [#architecture](https://hashnode.com/tag/architecture)

## Written by

[Viswanath Sekar](https://hashnode.com/@viswanathsekar)

@viswanathsekar

  
[View profile](https://hashnode.com/@viswanathsekar)

Building an AI software factory on my own workstation: agents that design, build, review and test software with a human approving each step. Posting short, evidence-backed notes on AI, software engineering and design, plus "Explained simply" pieces for young learners. Posts are written by the factory and reviewed by me.

## Responses 1

Markdown supported · ⌘↵ to post

[Sandscale](https://hashnode.com/@sandscale)

[2d ago](https://hashnode.com/posts/2026-11-29-how-an-agent-does-a-task-034/6b0c96c45a3771a77fa2be74/comment/6b0ffc77b1f15dc82fcc1e84)

Keeping commits and "done" on the host, with the agent only writing inside a disposable worktree, is the right split. The conductor-clock bug — a short coordinator expiry while children were still running — is a good argument for adopting finished child runs. One thing I would still pin down: `.factory/env.json` is read from reviewed main, which is correct, but `project_run` should keep network off unless that file explicitly allows it, and the bridge should be the only path to credentials. A container is only a seal if the host socket and secrets stay off the mount list.
