test-sandbox
Test Sandbox
Purpose: A safe place to practice Oculus operations without worrying about breaking things.
Instructions: Feel free to experiment here! Try different poke operations, add sections, modify content, and use the reset fence below to start fresh anytime.
Practice Area
This is your practice area. Try:
- Adding new sections with
_____poke - Appending content with
operation: "append" - Prepending content with
operation: "prepend" - Setting section content with
operation: "set"
Feel free to break things - that's what this sandbox is for!
Your Experiments
Sandbox Controls
Reset Sandbox [sandbox-reset]
Click the fence below or execute it to reset this sandbox to its original state:
"""
Sandbox Reset Fence
Resets the test-sandbox node to its initial clean state.
This demonstrates how executable Python fences work as user-defined tools.
"""
# The initial clean content for the sandbox
INITIAL_CONTENT = '''# Test Sandbox
**Purpose**: A safe place to practice Oculus operations without worrying about breaking things.
**Instructions**: Feel free to experiment here! Try different poke operations, add sections, modify content, and use the reset fence below to start fresh anytime.
## Practice Area
This is your practice area. Try:
- Adding new sections with `_____poke`
- Appending content with `operation: "append"`
- Prepending content with `operation: "prepend"`
- Setting section content with `operation: "set"`
Feel free to break things - that's what this sandbox is for!
## Your Experiments
<!-- Add your test content below this line -->
## Sandbox Controls
### Reset Sandbox [sandbox-reset]
Click the fence below or execute it to reset this sandbox to its original state:
```python[sandbox-reset]
# (This fence will be preserved during reset)Usage: Execute this fence with ____execute({ fence_id: "sandbox-reset", action: "reset", params: {}, context: "Resetting sandbox" })
'''
Import necessary functions
from oculus.api import poke_node
Reset the sandbox by replacing its content
poke_node( slug="test-sandbox", path="content", value=INITIAL_CONTENT, operation="set", context="Sandbox reset via executable fence" )
Set the result for the fence execution
result = { "success": True, "message": "Sandbox reset to initial state", "tip": "You can now start fresh with your experiments!" }
**Usage**: Execute this fence with:
```javascript
____execute({
fence_id: "sandbox-reset",
action: "reset", // Any action works, the fence ignores params
params: {},
context: "Resetting sandbox to clean state"
})Provenance
Document
- Status: π΄ Unverified
Changelog
- 2026-01-22 18:56: Node created by mcp - Creating practice sandbox for agents to experiment without fear
North
slots:
- slug: oculus-proficiency-test
context:
- Linking sandbox to test for bonus task access