Skip to content

chore(env): add Cloud Agent development environment - #2

Draft
Bigdez55 wants to merge 1 commit into
mainfrom
cursor/setup-cloud-agent-environment-cc28
Draft

chore(env): add Cloud Agent development environment#2
Bigdez55 wants to merge 1 commit into
mainfrom
cursor/setup-cloud-agent-environment-cc28

Conversation

@Bigdez55

@Bigdez55 Bigdez55 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a Cursor Cloud Agent development environment for the KJVA Bible app so future agents boot into a working backend + frontend without manual setup. No application code is changed.

New files:

  • .cursor/environment.json — install command, dev-server terminals, and exposed ports (repository-managed, highest-precedence source).
  • .cursor/install.sh — idempotent bootstrap for the Python backend venv and the React/Vite frontend.

What the environment provides

  • Backend (FastAPI, :8001) — creates a .venv, installs backend/requirements.txt with MLX stripped (Apple-Silicon-only; linux runs the documented retrieval-first path per ADR-0003), plus cryptography, pytest, httpx, ruff.
  • Frontend (React + Vite, :5173)npm ci; the dev server proxies /api to the backend.

Why cryptography is installed here

It is not in backend/requirements.txt, but the KJVA soul-manager runtime needs an AES-GCM backend to bootstrap. Without it, POST /api/complete fails with RUNTIME_NOT_BOOTSTRAPPED and 3 backend tests fail. Installing it in the environment leaves the app source untouched while making the runtime cognitive_ready.

Validation

Validated on the working VM, then re-validated by a prebuilt environment build and a fresh Cloud Agent booted from that build.

Check Result
Backend tests (pytest) 64/64 passed
Install idempotence Passed (run twice)
Prebuilt environment build (bash .cursor/install.sh) SUCCEEDED (exit 0)
Fresh Cloud Agent from build Toolchain + deps OK, 64/64 tests, health ok
Backend /api/health status: ok, cognitive_ready: true, verse index loaded, no bootstrap error
Retrieval completion (John 3:16, Numbers 15:37-41, prefix match) Returns exact scripture
Frontend build + dev server + /api proxy Works
UI end-to-end (Browse + Study) Works

Verified via the exact terminals commands from environment.json.

Open in Web Open in Cursor 

Add .cursor/environment.json + install.sh to make the KJVA Bible app
usable in Cloud Agents:

- install: create backend venv (MLX stripped for linux, retrieval-only per
  ADR-0003), install cryptography (AES-GCM backend the soul-manager runtime
  needs to bootstrap) + pytest/httpx/ruff, and npm ci the Vite frontend.
- terminals: FastAPI backend on :8001 and Vite dev server on :5173.
- ports: expose 8001 and 5173.

Verified: 64/64 backend tests pass, retrieval completion + verse browsing
work end to end, install is idempotent.

Co-authored-by: Desmond <Bigdez55@users.noreply.github.com>
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