mirror of
https://github.com/yashshah9/agentbox.git
synced 2026-11-18 18:03:44 +00:00
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.
627 B
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.