Skip to content

docs: add TealTiger governed sandbox guide#5041

Open
Tushar-Khandelwal-2004 wants to merge 1 commit into
daytonaio:mainfrom
Tushar-Khandelwal-2004:feat-tealtiger-governed-sandbox-example
Open

docs: add TealTiger governed sandbox guide#5041
Tushar-Khandelwal-2004 wants to merge 1 commit into
daytonaio:mainfrom
Tushar-Khandelwal-2004:feat-tealtiger-governed-sandbox-example

Conversation

@Tushar-Khandelwal-2004

@Tushar-Khandelwal-2004 Tushar-Khandelwal-2004 commented Jun 14, 2026

Copy link
Copy Markdown

Summary

Addresses #5036.

Adds a TealTiger + Daytona governed sandbox guide showing how to place a pre-execution governance step before sandbox.process.code_run().

Changes

  • Add a runnable Python guide under guides/python/tealtiger/governed-sandbox
  • Demonstrate TealTiger guarded code generation before Daytona sandbox execution
  • Record a blocked receipt when governance fails before sandbox creation
  • Add the docs page and sidebar/i18n entries for the new guide

Testing

  • python -m py_compile guides/python/tealtiger/governed-sandbox/governed_sandbox.py
  • python -m json.tool apps/docs/src/content/i18n/en.json
  • python -m json.tool apps/docs/src/content/i18n/ja.json
  • git diff --check

Summary by cubic

Adds a TealTiger + Daytona governed sandbox guide and runnable Python example. Adds a pre-execution governance step before sandbox.process.code_run() to block unsafe code and emit an execution receipt, addressing #5036.

  • New Features
    • New docs page: Govern AI-generated code with TealTiger + Daytona, including workflow and core pattern.
    • Runnable example in guides/python/tealtiger/governed-sandbox using tealtiger, daytona, openai, and python-dotenv, with pyproject.toml and .env.example.
    • Governance checks for secret detection, prompt injection, and session budget; records a blocked receipt and skips sandbox creation on failure.
    • Adds sidebar link and i18n keys for the TealTiger guide.

Written for commit 7cf99cf. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 9 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/docs/src/content/docs/en/guides/tealtiger/tealtiger-governed-sandbox.mdx Outdated
Comment thread guides/python/tealtiger/governed-sandbox/pyproject.toml Outdated
Signed-off-by: Tushar-Khandelwal-2004 <khandelwal.tushar8527@gmail.com>
@Tushar-Khandelwal-2004 Tushar-Khandelwal-2004 force-pushed the feat-tealtiger-governed-sandbox-example branch from deb734b to 7cf99cf Compare June 15, 2026 13:00
@nagasatish007

Copy link
Copy Markdown

Thanks for picking this up @Tushar-Khandelwal-2004! I'm the TealTiger maintainer — happy to review the governance-specific parts and confirm the integration pattern is correct.

The approach looks solid from a quick scan. Let me know if you need any help with the TealTiger API surface.

@vedranjukic vedranjukic force-pushed the main branch 2 times, most recently from 2c15a7f to b40f732 Compare June 23, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants