main
Go HTTP server with five handlers:
GET / -> 200 {env, status, soul}
GET /health -> 200 {ok:true}
POST /api/share -> 410 not_available_in_sandbox
GET /said -> 410 not_available_in_sandbox
GET /share/* -> 410 not_available_in_sandbox
any other -> 404 not_found
Distroless final image. Cross-compiled on host (Apple Silicon QEMU + Go
crashes with lfstack.push when go build runs inside an emulated linux/amd64
container). Pushed to us-central1-docker.pkg.dev/neuron-785695/neuron-sandbox/sandbox:initial.
Replaced when the real soul build pipeline lands.
sandbox-stub
Four-route placeholder for sandbox.neurontechnologies.ai. Replaced when the
real soul build pipeline lands.
Routes
| Method | Path | Status | Body |
|---|---|---|---|
| GET | / |
200 | {"env":"sandbox","status":"ready","soul":"not_loaded"} |
| GET | /health |
200 | {"ok":true} |
| POST | /api/share |
410 | {"error":"not_available_in_sandbox"} |
| GET | /said |
410 | {"error":"not_available_in_sandbox"} |
| GET | /share/* |
410 | {"error":"not_available_in_sandbox"} |
| any | other | 404 | {"error":"not_found"} |
Build + push
cd ~/Development/neuron-technologies/products/sandbox-stub
gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
docker buildx build --platform linux/amd64 \
-t us-central1-docker.pkg.dev/neuron-785695/neuron-sandbox/sandbox:initial \
--push .
Why 410 on share / said
Sandbox runs experimental builds. Public artifact endpoints stay strictly in prod. 410 Gone makes the lockdown explicit even before the real soul wires up.
Description
4-route Go stub for sandbox.neurontechnologies.ai - placeholder until real soul ships there
26 KiB
Languages
Go
62.5%
Dockerfile
19.9%
Shell
17.6%