Prompt #155
Back to promptsAudit Yoga Glug-Uplink Imports
- Variables
- repo_path
- Tags
- stack-aware,yoga,glug,import,strict-separation,audit,security
- Source
- research-2026-05-01-stack-aware
- Use count
- 0
- Created
- 2026-05-01T18:30:48.776731+00:00
- Updated
- 2026-05-01T18:30:48.776731+00:00
Content
Audit the yoga codebase at {repo_path} for strict HTTP-only separation from glug-server.
Separation rule: yoga β glug communication MUST be HTTP-only. Zero Python cross-imports allowed.
Checks:
1. `grep -rE "from glug import|import glug" {repo_path}/` β must return empty
2. `grep -rE "from rag_stack import|import rag_stack" {repo_path}/` β must return empty
3. Verify any glug-server calls use HTTP client patterns (requests.get/post to http://...:8800/...)
4. Check helpers/ for any rag_stack_client.py β it MUST only use requests.{get,post}, never import
5. Run isolation check: `docker compose down glug && curl http://yoga-host/health` β must still return 200
Allowed communication patterns:
- yoga β glug-server: POST /api/v1/glug/clients, GET /api/v1/glug/channels
- yoga β rag-stack: POST http://192.168.1.216:8801/api/v1/lessons/search
Report: file | violation_type | line_number | recommended_fix