agentic-dev-loop 1.0.0a42__tar.gz → 1.0.0a44__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of agentic-dev-loop might be problematic. Click here for more details.

Files changed (102) hide show
  1. {agentic_dev_loop-1.0.0a42/src/agentic_dev_loop.egg-info → agentic_dev_loop-1.0.0a44}/PKG-INFO +4 -3
  2. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/README.md +1 -2
  3. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/pyproject.toml +9 -1
  4. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/core/__init__.py +1 -3
  5. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/core/config.py +12 -35
  6. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/isolation.py +35 -12
  7. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/stages.py +8 -91
  8. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44/src/agentic_dev_loop.egg-info}/PKG-INFO +4 -3
  9. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop.egg-info/SOURCES.txt +0 -1
  10. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop.egg-info/requires.txt +2 -0
  11. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_035_finalize_nudge.py +11 -4
  12. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_agents.py +31 -0
  13. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_config.py +55 -0
  14. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_isolation.py +49 -2
  15. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_isolation_integration.py +19 -0
  16. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_sdk_compat.py +7 -7
  17. agentic_dev_loop-1.0.0a42/tests/test_032_stop_when_green.py +0 -363
  18. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/LICENSE +0 -0
  19. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/setup.cfg +0 -0
  20. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/__init__.py +0 -0
  21. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/core/paths.py +0 -0
  22. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/core/results.py +0 -0
  23. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/core/verdict.py +0 -0
  24. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/__init__.py +0 -0
  25. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/actions.py +0 -0
  26. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/agent_error_guide.md +0 -0
  27. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/agent_error_guide.py +0 -0
  28. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/agents.py +0 -0
  29. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/allowlist.py +0 -0
  30. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/brief_coverage.py +0 -0
  31. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/cli.py +0 -0
  32. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/containers.py +0 -0
  33. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/deps.py +0 -0
  34. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/dryrun.py +0 -0
  35. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/egress_policy.py +0 -0
  36. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/egress_proxy.py +0 -0
  37. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/extensions/__init__.py +0 -0
  38. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/extensions/aidlc.py +0 -0
  39. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/forbidden.py +0 -0
  40. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/graph.py +0 -0
  41. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/hostboundary.py +0 -0
  42. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/llm.py +0 -0
  43. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/loaders.py +0 -0
  44. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/mounts.py +0 -0
  45. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/outputs.py +0 -0
  46. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/presets.py +0 -0
  47. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/proc.py +0 -0
  48. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/registry.py +0 -0
  49. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/seccomp/__init__.py +0 -0
  50. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/seccomp/chromium-userns.json +0 -0
  51. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/secrets.py +0 -0
  52. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/step_workspace.py +0 -0
  53. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/engine/sync_back.py +0 -0
  54. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/py.typed +0 -0
  55. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/viz/__init__.py +0 -0
  56. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/viz/__main__.py +0 -0
  57. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop/viz/server.py +0 -0
  58. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop.egg-info/dependency_links.txt +0 -0
  59. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop.egg-info/entry_points.txt +0 -0
  60. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/src/agentic_dev_loop.egg-info/top_level.txt +0 -0
  61. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_028_declared_caches.py +0 -0
  62. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_029_merge_on_conflict.py +0 -0
  63. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_033_brief_step.py +0 -0
  64. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_036_banned_commands_and_lane_boundary.py +0 -0
  65. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_041_brief_coverage.py +0 -0
  66. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_actions.py +0 -0
  67. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_agent_error_guide.py +0 -0
  68. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_aidlc.py +0 -0
  69. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_cli.py +0 -0
  70. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_containers.py +0 -0
  71. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_deps.py +0 -0
  72. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_dry_run.py +0 -0
  73. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_e2e_fixtures.py +0 -0
  74. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_egress_proxy.py +0 -0
  75. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_graph.py +0 -0
  76. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_hostboundary.py +0 -0
  77. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_hostboundary_integration.py +0 -0
  78. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_isolation_pbt.py +0 -0
  79. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_llm.py +0 -0
  80. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_loaders.py +0 -0
  81. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_module_contract.py +0 -0
  82. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_outputs.py +0 -0
  83. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_outputs_pbt.py +0 -0
  84. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_proc.py +0 -0
  85. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_publish.py +0 -0
  86. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_qa_prompt.py +0 -0
  87. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_registry.py +0 -0
  88. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_repo_ascii.py +0 -0
  89. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_results.py +0 -0
  90. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_secrets.py +0 -0
  91. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_secrets_integration.py +0 -0
  92. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_secrets_pipeline.py +0 -0
  93. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_source_resolution.py +0 -0
  94. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_stages.py +0 -0
  95. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_step_workspace.py +0 -0
  96. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_sync_back.py +0 -0
  97. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_trigger_script.py +0 -0
  98. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_unit5_config.py +0 -0
  99. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_unit5_pbt.py +0 -0
  100. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_unit5_pure.py +0 -0
  101. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_verdict.py +0 -0
  102. {agentic_dev_loop-1.0.0a42 → agentic_dev_loop-1.0.0a44}/tests/test_viz.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-dev-loop
3
- Version: 1.0.0a42
3
+ Version: 1.0.0a44
4
4
  Summary: Turn an LLM into a gated, sandboxed, resumable construction loop over your codebase.
5
5
  Author: Luke Wilson
6
6
  License-Expression: Apache-2.0
@@ -33,6 +33,8 @@ Requires-Dist: agent-client-protocol<1.0.0
33
33
  Requires-Dist: langgraph>=1.2
34
34
  Requires-Dist: langgraph-checkpoint-sqlite>=3.0
35
35
  Requires-Dist: filelock>=4.2.1
36
+ Requires-Dist: pyasn1>=0.6.5
37
+ Requires-Dist: pypdf>=6.21.4
36
38
  Provides-Extra: dev
37
39
  Requires-Dist: hypothesis>=6.0; extra == "dev"
38
40
  Requires-Dist: pytest>=8.0; extra == "dev"
@@ -213,7 +215,6 @@ steps:
213
215
  agent: dev
214
216
  produces: implementation-summary.md
215
217
  terminal_timeout: 900
216
- stop_when: { green_command: ".venv-sandbox/bin/python -m pytest tests/ -q", post_green_turns: 2 }
217
218
  on_pass: test
218
219
 
219
220
  - name: test
@@ -249,12 +250,12 @@ steps:
249
250
  | `agent:` / `command:` / `action:` | Exactly one per step. Agents live in `agents_dir` as `<name>.agent.md`; commands run sandboxed (mechanical, never an LLM call). `commit` is the sole host-side built-in action; consumer actions are sandbox-executed, command-shaped scripts (see [Host boundary](#host-boundary-security-model)). |
250
251
  | `produces:` / `artifact:` + `verdicts:` | Hygiene-tracked outputs vs verdict-parsed routing. The **last** `VERDICT:` line wins; stale artifacts are deleted at each attempt start. |
251
252
  | `brief_inputs:` | Optional agent-step input spec: `{ include: [<paths/globs>], env_facts: [<strings>] }`. The engine resolves the include list against the workspace, passes the resolved docs + include contents + env facts as that step's task message, and regenerates the step only when those inputs change. A produces-only agent step such as `brief` is the documented pattern for per-run context digestion. |
252
- | `stop_when:` | Optional agent-step termination: `{ green_command: <argv regex>, post_green_turns: <int, default 2> }`. When the agent's most recent terminal observation matching `green_command` exits 0 and no workspace writes have happened since, the engine injects one nudge turn, allows `post_green_turns` further turns, then closes the conversation. Absent = run to finish. |
253
253
  | `terminal_timeout:` | Optional agent-step per-action timeout in seconds (gt 0). `SandboxTerminalExecutor` uses it when the agent leaves the terminal action timeout unset, overriding the SDK tool's default. `None` = current behavior. |
254
254
  | `finalize_nudge_turns:` | Optional agent-step final-response nudge (gt 0). Requires `max_iterations:` and must be less than it. At `max_iterations - finalize_nudge_turns` completed turns the engine injects one advisory turn ("`N turns remain: produce your final response now`"), exactly once; the agent may still exhaust its turns and existing stuck/unclear handling applies unchanged. Absent = current behavior. Provisional pending one consumer run (revert if noisy or the raised cap inflates cost). |
255
255
  | `custom_prompt:` | Planned (planning-docs/040). Optional agent-step value: literal text, or a path whose file contents are read at load time, appended verbatim to the agent prompt at context assembly (after the prompt, before the task/artifacts). A value that looks like a path but names no file is a validation error. Agent steps only. |
256
256
  | `on_pass:` / `on_fail:` | A step name, terminal `success`/`failure`, or `{goto: X, retry: true}`. No loops happen unless you write them. |
257
257
  | `env:` / `setup:` / `network:` | `env:` declares step vars (fixed safe base + declared vars only); `setup:` provisions the sandbox before the step runs (command or agent steps; network ON; stamp-cached, re-runs when the pipeline's lockfiles change); `network: true` lets a command/agent step reach the hosts its `egress:` allowlist names (default off) - see [Per-stage networking](#per-stage-networking). |
258
+ | `setup_probe:` | Optional consumer-authored in-container probe run on a warm `setup:` stamp instead of the venv probe. Exit 0 trusts the stamp (skips); any nonzero re-provisions with network on (fail toward freshness). The probe text is NOT part of the stamp key, so a probe-only change needs `--refresh` or `--clean-stamps` to take effect. Example (asserting a warmed esbuild binary is Linux-shaped): `file frontend-editor/node_modules/esbuild/bin/esbuild | grep -q ELF`. |
258
259
  | `mounts:` / `egress:` | Per-step workspace isolation. `mounts:` lists `{path, mode}` entries (`rw`/`ro`, default `ro`) and is **strict-by-default** - empty/missing mounts nothing; only declared-rw paths sync back to the repo. `egress:` is `{class, presets, targets}` (`class: browser` = broad-but-logged; otherwise a strict allowlist). See [Per-stage networking](#per-stage-networking) and [docs/setup.md](docs/setup.md). |
259
260
  | `secrets:` (top-level) / step `secrets:` | Declares secret **refs only - never values**; each step opts in to the refs it needs. Resolved host-side and injected into that step's exec env only. See [Secrets](#secrets--refs-only-never-values). |
260
261
  | `isolation:` (optional) | Configures the sandbox - image override, resource caps, `allow_git_mutations`, `seccomp_profile`. It can never disable it. See [browser sandbox](docs/browser-sandbox.md). |
@@ -171,7 +171,6 @@ steps:
171
171
  agent: dev
172
172
  produces: implementation-summary.md
173
173
  terminal_timeout: 900
174
- stop_when: { green_command: ".venv-sandbox/bin/python -m pytest tests/ -q", post_green_turns: 2 }
175
174
  on_pass: test
176
175
 
177
176
  - name: test
@@ -207,12 +206,12 @@ steps:
207
206
  | `agent:` / `command:` / `action:` | Exactly one per step. Agents live in `agents_dir` as `<name>.agent.md`; commands run sandboxed (mechanical, never an LLM call). `commit` is the sole host-side built-in action; consumer actions are sandbox-executed, command-shaped scripts (see [Host boundary](#host-boundary-security-model)). |
208
207
  | `produces:` / `artifact:` + `verdicts:` | Hygiene-tracked outputs vs verdict-parsed routing. The **last** `VERDICT:` line wins; stale artifacts are deleted at each attempt start. |
209
208
  | `brief_inputs:` | Optional agent-step input spec: `{ include: [<paths/globs>], env_facts: [<strings>] }`. The engine resolves the include list against the workspace, passes the resolved docs + include contents + env facts as that step's task message, and regenerates the step only when those inputs change. A produces-only agent step such as `brief` is the documented pattern for per-run context digestion. |
210
- | `stop_when:` | Optional agent-step termination: `{ green_command: <argv regex>, post_green_turns: <int, default 2> }`. When the agent's most recent terminal observation matching `green_command` exits 0 and no workspace writes have happened since, the engine injects one nudge turn, allows `post_green_turns` further turns, then closes the conversation. Absent = run to finish. |
211
209
  | `terminal_timeout:` | Optional agent-step per-action timeout in seconds (gt 0). `SandboxTerminalExecutor` uses it when the agent leaves the terminal action timeout unset, overriding the SDK tool's default. `None` = current behavior. |
212
210
  | `finalize_nudge_turns:` | Optional agent-step final-response nudge (gt 0). Requires `max_iterations:` and must be less than it. At `max_iterations - finalize_nudge_turns` completed turns the engine injects one advisory turn ("`N turns remain: produce your final response now`"), exactly once; the agent may still exhaust its turns and existing stuck/unclear handling applies unchanged. Absent = current behavior. Provisional pending one consumer run (revert if noisy or the raised cap inflates cost). |
213
211
  | `custom_prompt:` | Planned (planning-docs/040). Optional agent-step value: literal text, or a path whose file contents are read at load time, appended verbatim to the agent prompt at context assembly (after the prompt, before the task/artifacts). A value that looks like a path but names no file is a validation error. Agent steps only. |
214
212
  | `on_pass:` / `on_fail:` | A step name, terminal `success`/`failure`, or `{goto: X, retry: true}`. No loops happen unless you write them. |
215
213
  | `env:` / `setup:` / `network:` | `env:` declares step vars (fixed safe base + declared vars only); `setup:` provisions the sandbox before the step runs (command or agent steps; network ON; stamp-cached, re-runs when the pipeline's lockfiles change); `network: true` lets a command/agent step reach the hosts its `egress:` allowlist names (default off) - see [Per-stage networking](#per-stage-networking). |
214
+ | `setup_probe:` | Optional consumer-authored in-container probe run on a warm `setup:` stamp instead of the venv probe. Exit 0 trusts the stamp (skips); any nonzero re-provisions with network on (fail toward freshness). The probe text is NOT part of the stamp key, so a probe-only change needs `--refresh` or `--clean-stamps` to take effect. Example (asserting a warmed esbuild binary is Linux-shaped): `file frontend-editor/node_modules/esbuild/bin/esbuild | grep -q ELF`. |
216
215
  | `mounts:` / `egress:` | Per-step workspace isolation. `mounts:` lists `{path, mode}` entries (`rw`/`ro`, default `ro`) and is **strict-by-default** - empty/missing mounts nothing; only declared-rw paths sync back to the repo. `egress:` is `{class, presets, targets}` (`class: browser` = broad-but-logged; otherwise a strict allowlist). See [Per-stage networking](#per-stage-networking) and [docs/setup.md](docs/setup.md). |
217
216
  | `secrets:` (top-level) / step `secrets:` | Declares secret **refs only - never values**; each step opts in to the refs it needs. Resolved host-side and injected into that step's exec env only. See [Secrets](#secrets--refs-only-never-values). |
218
217
  | `isolation:` (optional) | Configures the sandbox - image override, resource caps, `allow_git_mutations`, `seccomp_profile`. It can never disable it. See [browser sandbox](docs/browser-sandbox.md). |
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentic-dev-loop"
7
- version = "1.0.0a42"
7
+ version = "1.0.0a44"
8
8
  description = "Turn an LLM into a gated, sandboxed, resumable construction loop over your codebase."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -47,6 +47,14 @@ dependencies = [
47
47
  # 3.32.7 carries CVE-2026-112907/-112913/-112940 (fixed in 4.2.1); pin a
48
48
  # floor so the restore step's pip-audit stays green.
49
49
  "filelock>=4.2.1",
50
+ # pyasn1 is a transitive dep (openhands-sdk, rsa, google-auth). 0.6.4
51
+ # carries CVE-2026-119194/-119195/-119196/-119197 (fixed in 0.6.5); pin a
52
+ # floor so the restore step's pip-audit stays green.
53
+ "pyasn1>=0.6.5",
54
+ # pypdf is a transitive dep (openhands-tools document loaders). 6.21.2
55
+ # carries CVE-2026-119203/-119204/-119205/-119206/-119207/-119208/-119209
56
+ # (fixed in 6.21.4); pin a floor so the restore step's pip-audit stays green.
57
+ "pypdf>=6.21.4",
50
58
  ]
51
59
 
52
60
  [project.urls]
@@ -6,8 +6,7 @@ test fails if this package imports engine/viz or heavy deps.
6
6
 
7
7
  from .config import (PipelineConfig, StepConfig, LlmConfig, IsolationConfig,
8
8
  VerdictSpec, Route, route_target, load_config,
9
- default_state_dir, TERMINALS, MountSpec, EgressSpec,
10
- StopWhenSpec)
9
+ default_state_dir, TERMINALS, MountSpec, EgressSpec)
11
10
  from .results import Result
12
11
  from .verdict import Verdict, VerdictError, parse_verdict, RETRY
13
12
 
@@ -15,6 +14,5 @@ __all__ = [
15
14
  "PipelineConfig", "StepConfig", "LlmConfig", "IsolationConfig",
16
15
  "VerdictSpec", "Route", "route_target", "load_config",
17
16
  "default_state_dir", "TERMINALS", "MountSpec", "EgressSpec",
18
- "StopWhenSpec",
19
17
  "Result", "Verdict", "VerdictError", "parse_verdict", "RETRY",
20
18
  ]
@@ -306,36 +306,6 @@ class EgressSpec(BaseModel):
306
306
  return [_validate_egress_target(t) for t in v]
307
307
 
308
308
 
309
- class StopWhenSpec(BaseModel):
310
- """Optional ``stop_when:`` termination signal on an agent step (032).
311
-
312
- ``green_command`` is a regex matched against the agent's terminal
313
- observation command; a matching observation that exits 0 - and no
314
- workspace writes since - triggers one nudge turn, then
315
- ``post_green_turns`` further turns before the engine closes the
316
- conversation. Absent ``stop_when`` keeps the current run-to-finish
317
- behaviour unchanged.
318
- """
319
-
320
- model_config = ConfigDict(extra="forbid")
321
-
322
- green_command: str
323
- post_green_turns: int = Field(default=2, ge=0)
324
-
325
- @field_validator("green_command")
326
- @classmethod
327
- def _valid_regex(cls, v: str) -> str:
328
- if not isinstance(v, str) or not v.strip():
329
- raise ValueError(
330
- "stop_when.green_command must be a non-empty string")
331
- try:
332
- re.compile(v)
333
- except re.error as e:
334
- raise ValueError(
335
- f"stop_when.green_command is not a valid regex: {e}") from e
336
- return v
337
-
338
-
339
309
  class BriefInputsSpec(BaseModel):
340
310
  """Optional ``brief_inputs:`` on an agent step (033): the closed input
341
311
  list a brief agent digests once per run. ``include`` is repo-relative
@@ -387,12 +357,12 @@ class StepConfig(BaseModel):
387
357
  max_iterations: int | None = None
388
358
  timeout: float | None = Field(default=None, gt=0) # seconds, command steps only
389
359
  terminal_timeout: float | None = Field(default=None, gt=0) # seconds, agent steps only (032)
390
- stop_when: StopWhenSpec | None = None # agent steps only (032)
391
360
  finalize_nudge_turns: int | None = Field(default=None, gt=0) # agent steps only (035)
392
361
  brief_inputs: BriefInputsSpec | None = None # agent steps only (033)
393
362
  custom_prompt: str | None = None # agent steps only (040); file path resolved at load
394
363
  env: dict[str, str | None] | None = None # NFR-1: null = inherit host value
395
364
  setup: str | None = None # BR-13: command steps only
365
+ setup_probe: str | None = None # 045: consumer probe replacing the venv probe on a warm stamp; requires `setup`; probe text is NOT part of the stamp key (a probe-only change needs --refresh/--clean-stamps)
396
366
  forbidden_commands: list[str] = [] # banned-command regex deny-list (036 D1)
397
367
  network: bool = False # per-stage egress (command/agent + sandbox actions; host-side actions reject at registry time)
398
368
  # unit-5: per-step mount granularity + egress policy. Empty mounts =
@@ -451,6 +421,13 @@ class StepConfig(BaseModel):
451
421
  raise ValueError("custom_prompt must be a non-empty string")
452
422
  return v
453
423
 
424
+ @field_validator("setup_probe")
425
+ @classmethod
426
+ def _nonempty_setup_probe(cls, v: str | None) -> str | None:
427
+ if v is not None and not v.strip():
428
+ raise ValueError("setup_probe must be a non-empty string")
429
+ return v
430
+
454
431
  @model_validator(mode="after")
455
432
  def _check_shape(self) -> "StepConfig":
456
433
  for key in ("agent", "action", "command"):
@@ -488,10 +465,6 @@ class StepConfig(BaseModel):
488
465
  raise ValueError(
489
466
  f"step {self.name!r}: 'terminal_timeout' requires 'agent'"
490
467
  )
491
- if self.stop_when is not None and self.agent is None:
492
- raise ValueError(
493
- f"step {self.name!r}: 'stop_when' requires 'agent'"
494
- )
495
468
  if self.finalize_nudge_turns is not None and self.agent is None:
496
469
  raise ValueError(
497
470
  f"step {self.name!r}: 'finalize_nudge_turns' requires 'agent'"
@@ -529,6 +502,10 @@ class StepConfig(BaseModel):
529
502
  raise ValueError(
530
503
  f"step {self.name!r}: 'setup' is only allowed on 'command' or 'agent' steps"
531
504
  )
505
+ if self.setup_probe is not None and self.setup is None:
506
+ raise ValueError(
507
+ f"step {self.name!r}: 'setup_probe' requires 'setup'"
508
+ )
532
509
  # `network` is NOT rejected here: the schema can't tell a host-side
533
510
  # built-in action (e.g. `commit`, which must never take egress) from
534
511
  # a sandbox-executed consumer action (which may, like a command step).
@@ -534,11 +534,19 @@ def venv_probe_command() -> str:
534
534
  )
535
535
 
536
536
 
537
+ def probe_argv(probe_cmd: str, container: str, workspace: str) -> list[str]:
538
+ """``docker exec`` argv that runs an arbitrary in-container probe command
539
+ (045) inside the already-running execution container against the
540
+ bind-mounted workspace. ``probe_cmd`` is a consumer-authored shell command
541
+ string passed verbatim to ``/bin/sh -c``."""
542
+ return ["docker", "exec", "-w", workspace, container,
543
+ "/bin/sh", "-c", probe_cmd]
544
+
545
+
537
546
  def venv_probe_argv(container: str, workspace: str) -> list[str]:
538
547
  """``docker exec`` argv that runs the venv probe inside the (already
539
548
  running) execution container against the bind-mounted workspace."""
540
- return ["docker", "exec", "-w", workspace, container,
541
- "/bin/sh", "-c", venv_probe_command()]
549
+ return probe_argv(venv_probe_command(), container, workspace)
542
550
 
543
551
 
544
552
  def venv_probe_state(stdout: str, exit_code: int | None) -> str:
@@ -1133,7 +1141,7 @@ class DockerBackend(Sandbox):
1133
1141
  self._sync_excludes)
1134
1142
 
1135
1143
  def provision(self, setup_cmd: str, stamp_key: str, stamp_dir: str,
1136
- force: bool) -> None:
1144
+ force: bool, setup_probe: str | None = None) -> None:
1137
1145
  """Run one ``setup:`` hook in the provision container (network ON),
1138
1146
  stamp-cached. Nonzero exit → AE-SBX-009, no stamp written.
1139
1147
 
@@ -1143,13 +1151,21 @@ class DockerBackend(Sandbox):
1143
1151
  broken in the Linux container. A ``broken`` probe removes the venv
1144
1152
  (fail loud if removal is impossible) and falls through to re-provision;
1145
1153
  ``valid``/``missing``/``unknown`` keep the stamp skip.
1154
+
1155
+ 045: when ``setup_probe`` is set it replaces the venv probe for this
1156
+ hook. Exit 0 trusts the stamp (skip); any nonzero - a broken artifact
1157
+ or a failed probe run - falls through to re-provision (fail toward
1158
+ freshness).
1146
1159
  """
1147
1160
  if not force and read_stamp(Path(stamp_dir), stamp_key):
1148
- if self._probe_venv() == "broken":
1161
+ if setup_probe is not None:
1162
+ if self._probe(setup_probe).exit_code == 0:
1163
+ return
1164
+ else:
1165
+ if self._probe_venv() != "broken":
1166
+ return
1149
1167
  remove_sandbox_venv(self._workspace,
1150
1168
  sandbox_venv_dir=self._sandbox_venv_dir)
1151
- else:
1152
- return
1153
1169
  payload = docker_provision_payload(
1154
1170
  run_id=self._run_id, image=self._image, workspace=self._workspace,
1155
1171
  setup_cmd=setup_cmd, sandbox_venv_dir=self._sandbox_venv_dir,
@@ -1162,13 +1178,18 @@ class DockerBackend(Sandbox):
1162
1178
  f"- stamp not written (docs/setup.md §5)")
1163
1179
  write_stamp(Path(stamp_dir), stamp_key)
1164
1180
 
1181
+ def _probe(self, probe_cmd: str) -> CmdResult:
1182
+ """Run an arbitrary in-container probe command (045). The workdir
1183
+ follows the export root when one is materialised, else the workspace."""
1184
+ workdir = self._export_root or self._workspace
1185
+ return self._runner.run(
1186
+ probe_argv(probe_cmd, self._container, workdir), timeout=30)
1187
+
1165
1188
  def _probe_venv(self) -> str:
1166
1189
  """Run the in-container venv probe and classify it (016 self-heal).
1167
1190
  With an export the venv is mounted at ``{export}/.venv-sandbox``, so
1168
1191
  the probe workdir follows the export root."""
1169
- workdir = self._export_root or self._workspace
1170
- res = self._runner.run(
1171
- venv_probe_argv(self._container, workdir), timeout=30)
1192
+ res = self._probe(venv_probe_command())
1172
1193
  return venv_probe_state(res.stdout, res.exit_code)
1173
1194
 
1174
1195
  # -- execution ----------------------------------------------------------
@@ -1903,7 +1924,8 @@ def _declared_setups(cfg: PipelineConfig, workspace: Path):
1903
1924
  if step.setup is not None and (
1904
1925
  step.command is not None or step.agent is not None
1905
1926
  ):
1906
- yield step.setup, setup_stamp_key(step.setup, hashes)
1927
+ yield (step.setup, setup_stamp_key(step.setup, hashes),
1928
+ step.setup_probe)
1907
1929
 
1908
1930
 
1909
1931
  def isolation_state_dir(cfg: PipelineConfig) -> Path:
@@ -2017,10 +2039,11 @@ def startup_sandbox(cfg: PipelineConfig, *, workspace: Path,
2017
2039
  _announce("execution container started")
2018
2040
  if refresh is None:
2019
2041
  refresh = bool(cfg.isolation and cfg.isolation.refresh)
2020
- for setup_cmd, stamp_key in _declared_setups(cfg, workspace):
2042
+ for setup_cmd, stamp_key, setup_probe in _declared_setups(cfg, workspace):
2021
2043
  _announce(f"provisioning setup (stamp {stamp_key[:8]})")
2022
2044
  backend.provision(setup_cmd, stamp_key,
2023
- str(iso_state_dir / "stamps"), force=refresh)
2045
+ str(iso_state_dir / "stamps"), force=refresh,
2046
+ setup_probe=setup_probe)
2024
2047
  _announce("sandbox ready")
2025
2048
  return backend
2026
2049
  except BaseException:
@@ -21,7 +21,6 @@ from __future__ import annotations
21
21
 
22
22
  import hashlib
23
23
  import os
24
- import re
25
24
  import subprocess
26
25
  import sys
27
26
  import traceback
@@ -70,9 +69,9 @@ def custom_prompt_section(text: str) -> str:
70
69
 
71
70
 
72
71
  class _TurnPauseController:
73
- """Turn-level pause callback (032): pause the SDK run loop after every
72
+ """Turn-level pause callback: pause the SDK run loop after every
74
73
  agent-sourced event so the caller can drive one turn at a time. The
75
- finalize nudge (035) reuses this hook without any stop-when state."""
74
+ finalize nudge (035) reuses this hook."""
76
75
 
77
76
  def __init__(self) -> None:
78
77
  self.conversation = None
@@ -108,65 +107,6 @@ class _FinalizeNudgeController(_TurnPauseController):
108
107
  return self._TEMPLATE.format(n=self.turns)
109
108
 
110
109
 
111
- class _StopWhenController(_TurnPauseController):
112
- """Turn-level stop-when-green observation (032).
113
-
114
- Pure per-event state machine - no knowledge of how the conversation is
115
- driven. ``on_event`` is a SDK conversation callback: it records the most
116
- recent matching terminal observation and any subsequent file-editor
117
- write, and (via the base pause) pauses the conversation after every
118
- agent-sourced event so the caller can drive one turn at a time.
119
- """
120
-
121
- NUDGE = "Step complete: produce your final response now"
122
- _WRITE_COMMANDS = frozenset({"create", "str_replace", "insert", "undo_edit"})
123
-
124
- def __init__(self, spec) -> None:
125
- super().__init__()
126
- self._pattern = re.compile(spec.green_command)
127
- self.post_green_turns = spec.post_green_turns
128
- self.green_hit = False
129
- self.writes_since_green = False
130
- self.nudged = False
131
- self.post_nudge_turns = 0
132
-
133
- @property
134
- def green_signal(self) -> bool:
135
- return self.green_hit and not self.writes_since_green
136
-
137
- def on_event(self, event) -> None:
138
- super().on_event(event)
139
- if self.conversation is None:
140
- return
141
- from openhands.sdk.event import ObservationEvent
142
-
143
- if isinstance(event, ObservationEvent):
144
- self._record_observation(event)
145
-
146
- def on_terminal_result(self, command: str | None, exit_code: int | None,
147
- wrote_workspace: bool) -> None:
148
- """Feed the sandbox terminal result channel (032): a matching green
149
- command is the signal; any other terminal write resets it."""
150
- if command is not None and self._pattern.search(command):
151
- self.green_hit = exit_code == 0
152
- self.writes_since_green = False
153
- elif wrote_workspace:
154
- self.writes_since_green = True
155
-
156
- def _record_observation(self, event) -> None:
157
- observation = event.observation
158
- tool_name = event.tool_name
159
- if tool_name == "terminal":
160
- command = getattr(observation, "command", None)
161
- if command is not None and self._pattern.search(command):
162
- self.green_hit = getattr(observation, "exit_code", None) == 0
163
- self.writes_since_green = False
164
- elif tool_name == "file_editor":
165
- command = getattr(observation, "command", None)
166
- if command in self._WRITE_COMMANDS and not observation.is_error:
167
- self.writes_since_green = True
168
-
169
-
170
110
  @dataclass
171
111
  class Runtime:
172
112
  """Everything stage nodes need that isn't in LoopState: pipeline config,
@@ -201,9 +141,6 @@ class Runtime:
201
141
  try:
202
142
  from openhands.sdk.conversation.state import ConversationExecutionStatus
203
143
 
204
- controller = None
205
- if step is not None and step.stop_when is not None:
206
- controller = _StopWhenController(step.stop_when)
207
144
  finalize_controller = None
208
145
  if step is not None and step.finalize_nudge_turns is not None:
209
146
  finalize_controller = _FinalizeNudgeController(
@@ -232,29 +169,23 @@ class Runtime:
232
169
  egress_policy=egress_policy,
233
170
  terminal_timeout=(step.terminal_timeout
234
171
  if step is not None else None),
235
- on_terminal_result=(controller.on_terminal_result
236
- if controller is not None else None),
237
172
  secrets=(step_secret_env(self.cfg, step, self.secrets)
238
173
  if step is not None else None),
239
174
  forbidden_commands=forbidden_commands,
240
175
  allowlist=allowlist)
241
176
  agent = load_agent(self.agents_dir, agent_name, self.llm)
242
177
  callbacks = []
243
- if controller is not None:
244
- callbacks.append(controller.on_event)
245
178
  if finalize_controller is not None:
246
179
  callbacks.append(finalize_controller.on_event)
247
180
  conv = Conversation(agent=agent, workspace=str(self.workspace),
248
181
  max_iteration_per_run=max_iterations,
249
182
  callbacks=callbacks or None)
250
- if controller is not None:
251
- controller.attach(conv)
252
183
  if finalize_controller is not None:
253
184
  finalize_controller.attach(conv)
254
185
  conv.send_message(message)
255
- if controller is not None or finalize_controller is not None:
256
- self._run_stop_when_loop(conv, controller, max_iterations,
257
- finalize_controller)
186
+ if finalize_controller is not None:
187
+ self._run_finalize_loop(conv, max_iterations,
188
+ finalize_controller)
258
189
  else:
259
190
  conv.run()
260
191
 
@@ -295,10 +226,9 @@ class Runtime:
295
226
  if conv is not None:
296
227
  conv.close()
297
228
 
298
- def _run_stop_when_loop(self, conv,
299
- controller: _StopWhenController | None,
300
- max_iterations: int,
301
- finalize_controller: _FinalizeNudgeController | None = None) -> None:
229
+ def _run_finalize_loop(self, conv,
230
+ max_iterations: int,
231
+ finalize_controller: _FinalizeNudgeController | None = None) -> None:
302
232
  """Drive one turn at a time so turn-level hooks can inject their
303
233
  nudges and enforce budgets. A controller's callback pauses the SDK
304
234
  run loop after every agent-sourced event, so each ``conv.run()`` here
@@ -327,19 +257,6 @@ class Runtime:
327
257
  finalize_controller.nudged = True
328
258
  continue
329
259
 
330
- if controller is not None:
331
- if not controller.nudged and controller.green_signal:
332
- conv.send_message(controller.NUDGE)
333
- controller.nudged = True
334
- if controller.post_green_turns == 0:
335
- break
336
- continue
337
-
338
- if controller.nudged:
339
- controller.post_nudge_turns += 1
340
- if controller.post_nudge_turns >= controller.post_green_turns:
341
- break
342
-
343
260
 
344
261
  def prompt_dir(runtime: Runtime) -> str:
345
262
  """state_dir as agents must address it. Agents resolve prompt paths
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-dev-loop
3
- Version: 1.0.0a42
3
+ Version: 1.0.0a44
4
4
  Summary: Turn an LLM into a gated, sandboxed, resumable construction loop over your codebase.
5
5
  Author: Luke Wilson
6
6
  License-Expression: Apache-2.0
@@ -33,6 +33,8 @@ Requires-Dist: agent-client-protocol<1.0.0
33
33
  Requires-Dist: langgraph>=1.2
34
34
  Requires-Dist: langgraph-checkpoint-sqlite>=3.0
35
35
  Requires-Dist: filelock>=4.2.1
36
+ Requires-Dist: pyasn1>=0.6.5
37
+ Requires-Dist: pypdf>=6.21.4
36
38
  Provides-Extra: dev
37
39
  Requires-Dist: hypothesis>=6.0; extra == "dev"
38
40
  Requires-Dist: pytest>=8.0; extra == "dev"
@@ -213,7 +215,6 @@ steps:
213
215
  agent: dev
214
216
  produces: implementation-summary.md
215
217
  terminal_timeout: 900
216
- stop_when: { green_command: ".venv-sandbox/bin/python -m pytest tests/ -q", post_green_turns: 2 }
217
218
  on_pass: test
218
219
 
219
220
  - name: test
@@ -249,12 +250,12 @@ steps:
249
250
  | `agent:` / `command:` / `action:` | Exactly one per step. Agents live in `agents_dir` as `<name>.agent.md`; commands run sandboxed (mechanical, never an LLM call). `commit` is the sole host-side built-in action; consumer actions are sandbox-executed, command-shaped scripts (see [Host boundary](#host-boundary-security-model)). |
250
251
  | `produces:` / `artifact:` + `verdicts:` | Hygiene-tracked outputs vs verdict-parsed routing. The **last** `VERDICT:` line wins; stale artifacts are deleted at each attempt start. |
251
252
  | `brief_inputs:` | Optional agent-step input spec: `{ include: [<paths/globs>], env_facts: [<strings>] }`. The engine resolves the include list against the workspace, passes the resolved docs + include contents + env facts as that step's task message, and regenerates the step only when those inputs change. A produces-only agent step such as `brief` is the documented pattern for per-run context digestion. |
252
- | `stop_when:` | Optional agent-step termination: `{ green_command: <argv regex>, post_green_turns: <int, default 2> }`. When the agent's most recent terminal observation matching `green_command` exits 0 and no workspace writes have happened since, the engine injects one nudge turn, allows `post_green_turns` further turns, then closes the conversation. Absent = run to finish. |
253
253
  | `terminal_timeout:` | Optional agent-step per-action timeout in seconds (gt 0). `SandboxTerminalExecutor` uses it when the agent leaves the terminal action timeout unset, overriding the SDK tool's default. `None` = current behavior. |
254
254
  | `finalize_nudge_turns:` | Optional agent-step final-response nudge (gt 0). Requires `max_iterations:` and must be less than it. At `max_iterations - finalize_nudge_turns` completed turns the engine injects one advisory turn ("`N turns remain: produce your final response now`"), exactly once; the agent may still exhaust its turns and existing stuck/unclear handling applies unchanged. Absent = current behavior. Provisional pending one consumer run (revert if noisy or the raised cap inflates cost). |
255
255
  | `custom_prompt:` | Planned (planning-docs/040). Optional agent-step value: literal text, or a path whose file contents are read at load time, appended verbatim to the agent prompt at context assembly (after the prompt, before the task/artifacts). A value that looks like a path but names no file is a validation error. Agent steps only. |
256
256
  | `on_pass:` / `on_fail:` | A step name, terminal `success`/`failure`, or `{goto: X, retry: true}`. No loops happen unless you write them. |
257
257
  | `env:` / `setup:` / `network:` | `env:` declares step vars (fixed safe base + declared vars only); `setup:` provisions the sandbox before the step runs (command or agent steps; network ON; stamp-cached, re-runs when the pipeline's lockfiles change); `network: true` lets a command/agent step reach the hosts its `egress:` allowlist names (default off) - see [Per-stage networking](#per-stage-networking). |
258
+ | `setup_probe:` | Optional consumer-authored in-container probe run on a warm `setup:` stamp instead of the venv probe. Exit 0 trusts the stamp (skips); any nonzero re-provisions with network on (fail toward freshness). The probe text is NOT part of the stamp key, so a probe-only change needs `--refresh` or `--clean-stamps` to take effect. Example (asserting a warmed esbuild binary is Linux-shaped): `file frontend-editor/node_modules/esbuild/bin/esbuild | grep -q ELF`. |
258
259
  | `mounts:` / `egress:` | Per-step workspace isolation. `mounts:` lists `{path, mode}` entries (`rw`/`ro`, default `ro`) and is **strict-by-default** - empty/missing mounts nothing; only declared-rw paths sync back to the repo. `egress:` is `{class, presets, targets}` (`class: browser` = broad-but-logged; otherwise a strict allowlist). See [Per-stage networking](#per-stage-networking) and [docs/setup.md](docs/setup.md). |
259
260
  | `secrets:` (top-level) / step `secrets:` | Declares secret **refs only - never values**; each step opts in to the refs it needs. Resolved host-side and injected into that step's exec env only. See [Secrets](#secrets--refs-only-never-values). |
260
261
  | `isolation:` (optional) | Configures the sandbox - image override, resource caps, `allow_git_mutations`, `seccomp_profile`. It can never disable it. See [browser sandbox](docs/browser-sandbox.md). |
@@ -51,7 +51,6 @@ src/agentic_dev_loop/viz/__main__.py
51
51
  src/agentic_dev_loop/viz/server.py
52
52
  tests/test_028_declared_caches.py
53
53
  tests/test_029_merge_on_conflict.py
54
- tests/test_032_stop_when_green.py
55
54
  tests/test_033_brief_step.py
56
55
  tests/test_035_finalize_nudge.py
57
56
  tests/test_036_banned_commands_and_lane_boundary.py
@@ -6,6 +6,8 @@ agent-client-protocol<1.0.0
6
6
  langgraph>=1.2
7
7
  langgraph-checkpoint-sqlite>=3.0
8
8
  filelock>=4.2.1
9
+ pyasn1>=0.6.5
10
+ pypdf>=6.21.4
9
11
 
10
12
  [dev]
11
13
  hypothesis>=6.0
@@ -1,5 +1,5 @@
1
1
  """Finalize nudge (035): config surface, the turn-index injection, and the
2
- exactly-once guard on the shared 032 turn loop."""
2
+ exactly-once guard on the shared turn loop."""
3
3
 
4
4
  from pathlib import Path
5
5
  from types import SimpleNamespace
@@ -90,6 +90,13 @@ class TestFinalizeNudgeConfig:
90
90
  with pytest.raises(ValidationError, match="requires 'agent'"):
91
91
  _load(tmp_path, data)
92
92
 
93
+ def test_stop_when_key_rejected(self, tmp_path):
94
+ data = _base()
95
+ data["steps"] = [{"name": "dev", "agent": "dev",
96
+ "stop_when": {"green_command": "pytest"}}]
97
+ with pytest.raises(ValidationError, match="stop_when"):
98
+ _load(tmp_path, data)
99
+
93
100
 
94
101
  class TestFinalizeNudgeLoop:
95
102
  def _conv(self, finish_after):
@@ -114,7 +121,7 @@ class TestFinalizeNudgeLoop:
114
121
  def test_nudge_at_configured_turn_and_only_once(self):
115
122
  conv = self._conv(finish_after=9)
116
123
  controller = _FinalizeNudgeController(3)
117
- Runtime._run_stop_when_loop(None, conv, None, max_iterations=10,
124
+ Runtime._run_finalize_loop(None, conv, max_iterations=10,
118
125
  finalize_controller=controller)
119
126
  assert controller.nudged is True
120
127
  assert conv.sent == [(7, NUDGE)]
@@ -122,7 +129,7 @@ class TestFinalizeNudgeLoop:
122
129
  def test_no_nudge_when_finished_before_threshold(self):
123
130
  conv = self._conv(finish_after=3)
124
131
  controller = _FinalizeNudgeController(3)
125
- Runtime._run_stop_when_loop(None, conv, None, max_iterations=10,
132
+ Runtime._run_finalize_loop(None, conv, max_iterations=10,
126
133
  finalize_controller=controller)
127
134
  assert controller.nudged is False
128
135
  assert conv.sent == []
@@ -130,7 +137,7 @@ class TestFinalizeNudgeLoop:
130
137
  def test_turn_cap_still_applies_when_nudge_ignored(self):
131
138
  conv = self._conv(finish_after=999)
132
139
  controller = _FinalizeNudgeController(3)
133
- Runtime._run_stop_when_loop(None, conv, None, max_iterations=5,
140
+ Runtime._run_finalize_loop(None, conv, max_iterations=5,
134
141
  finalize_controller=controller)
135
142
  assert controller.nudged is True
136
143
  assert conv.state.execution_status == ConversationExecutionStatus.ERROR
@@ -188,6 +188,37 @@ class TestSandboxTerminalExecutor:
188
188
  assert fake_sandbox.requests[0].network is False
189
189
 
190
190
 
191
+ class TestTerminalTimeoutOverride:
192
+ def test_defaults_to_terminal_timeout(self, fake_sandbox, tmp_path):
193
+ from openhands.tools.terminal import TerminalAction
194
+
195
+ from agentic_dev_loop.engine.agents import SandboxTerminalExecutor
196
+ ex = SandboxTerminalExecutor(
197
+ fake_sandbox, workspace=str(tmp_path), env={"PATH": "/bin"},
198
+ terminal_timeout=900)
199
+ ex(TerminalAction(command="echo hi"), None)
200
+ assert fake_sandbox.requests[0].timeout == 900
201
+
202
+ def test_action_timeout_wins(self, fake_sandbox, tmp_path):
203
+ from openhands.tools.terminal import TerminalAction
204
+
205
+ from agentic_dev_loop.engine.agents import SandboxTerminalExecutor
206
+ ex = SandboxTerminalExecutor(
207
+ fake_sandbox, workspace=str(tmp_path), env={"PATH": "/bin"},
208
+ terminal_timeout=900)
209
+ ex(TerminalAction(command="echo hi", timeout=30), None)
210
+ assert fake_sandbox.requests[0].timeout == 30
211
+
212
+ def test_unset_keeps_none(self, fake_sandbox, tmp_path):
213
+ from openhands.tools.terminal import TerminalAction
214
+
215
+ from agentic_dev_loop.engine.agents import SandboxTerminalExecutor
216
+ ex = SandboxTerminalExecutor(
217
+ fake_sandbox, workspace=str(tmp_path), env={"PATH": "/bin"})
218
+ ex(TerminalAction(command="echo hi"), None)
219
+ assert fake_sandbox.requests[0].timeout is None
220
+
221
+
191
222
  class TestRegisterSandboxTerminal:
192
223
  def test_resolves_to_sandbox_executor(self, fake_sandbox, tmp_path):
193
224
  from openhands.sdk.tool.registry import resolve_tool