Files
agentbox/CONTRIBUTING.md
Yash Shah a21089184b feat(v0.4): enforce per-run memory_mb via RLIMIT_AS
Context:
- Timeout alone does not stop runaway memory allocations in agent-generated code.
- Docs understated that subprocess is not production isolation.

Test Plan:
- docker compose run --rm test
- tests/test_api.py::test_memory_limit_kills_huge_allocation

Additional Notes:
- limits.memory_mb uses resource.RLIMIT_AS via preexec_fn (Linux Docker).
- Adoption: badges, SECURITY.md, CONTRIBUTING, author/urls.
2026-09-14 14:00:42 +05:30

627 B

Contributing

Running tests

Prefer Docker Compose:

docker compose run --rm test
docker compose up agentbox   # API on :8080 for manual checks

Locally:

pip install -e ".[dev]"
pytest tests/ -v
agentbox serve
curl http://localhost:8080/health

Pull requests

  • Treat sandbox changes as security-sensitive; document limitations honestly
  • Update README/CHANGELOG for API or limit changes
  • Prefer small PRs with a clear test plan

Commit style

  • Imperative subject line; mention the user-facing why when relevant
  • Do not add AI co-author trailers (e.g. Co-authored-by: Cursor) to commits.