On this page
TEST_REPORT.md
Test report
Aegis-Terminal — Functional Test Report
_Generated 2026-09-14 14:35 PDT_
1. Environment
- ✅ python3 found: Python 3.12.3
- ✅ Virtual environment directory present
- ✅ Activated venv (.venv)
- ✅ All requirements.txt packages importable
2. Static Check
- ✅ All 204 .py files compile cleanly
3. Config Check
- ❌ No .env file found (only .env.example) — server may fail to start
4. Database Check
- ✅ DuckDB file opens and queries OK: ./data/aegis.duckdb
- ✅ SQLite file opens OK: ./data/jobs.sqlite
5. Existing Test Suite (pytest)
- ⚠️ No pytest suite found (no tests/ dir or test_*.py files) — nothing to run here
6. Live Server Smoke Test
- ✅ Server booted and responded on port 8123
- ✅ GET / → 200
- ✅ GET /openapi.json → 200 (API schema discoverable)
6a. Discovered Routes
GET /
GET /health
POST /query
POST /ingest
POST /ingest/url
GET /document/{doc_id}
POST /ingest/paste
POST /crawl
GET /jobs
GET /jobs/{jid}
POST /ttl/refresh
GET /ttl/stale
POST /vectors/search
GET /index/stats
GET /store/stats
GET /debug/query_log
POST /query/feedback
POST /query/correct
POST /correction/forget
GET /debug/corrections
GET /debug/snapshot
GET /debug/logs
GET /activity
GET /log
GET /thinking.js
GET /boot/status
POST /boot/retry
POST /boot/reset
GET /favicon.ico
POST /search
POST /tutorial/generate
POST /tutorial/evolve
POST /tutorial/store
GET /tutorial/history/{topic}
GET /tutorial/latest/{topic}
6b. Endpoint Tests
- ✅ GET / → 200
- ✅ GET /health → 200
- ✅ POST /query (field: prompt) → 200
- ⚠️ /ingest needs manual testing — complex or unknown schema
- ⚠️ /ingest/url needs manual testing — complex or unknown schema
- ⚠️ /ingest/paste needs manual testing — complex or unknown schema
- ⚠️ /crawl needs manual testing — complex or unknown schema
- ✅ GET /jobs → 200
- ⚠️ /ttl/refresh needs manual testing — complex or unknown schema
- ✅ GET /ttl/stale → 200
- ✅ POST /vectors/search (field: query) → 200
- ✅ GET /index/stats → 200
- ✅ GET /store/stats → 200
- ✅ GET /debug/query_log → 200
- ❌ POST /query/feedback (field: prompt) → 422 — {"detail":[{"type":"missing","loc":["body","value"],"msg":"Field required","input":{"prompt":"test query from aegis-test.sh"}}]}
- ❌ POST /query/correct (field: prompt) → 422 — {"detail":[{"type":"missing","loc":["body","correct_answer"],"msg":"Field required","input":{"prompt":"test query from aegis-test.sh"}}]}
- ✅ POST /correction/forget (field: prompt) → 200
- ✅ GET /debug/corrections → 200
- ✅ GET /debug/snapshot → 200
- ✅ GET /debug/logs → 200
- ✅ GET /activity → 200
- ✅ GET /log → 200
- ✅ GET /thinking.js → 200
- ✅ GET /boot/status → 200
- ⚠️ /boot/retry needs manual testing — complex or unknown schema
- ⚠️ /boot/reset needs manual testing — complex or unknown schema
- ✅ GET /favicon.ico → 200
- ✅ POST /search (field: query) → 200
- ⚠️ /tutorial/generate needs manual testing — complex or unknown schema
- ⚠️ /tutorial/evolve needs manual testing — complex or unknown schema
- ⚠️ /tutorial/store needs manual testing — complex or unknown schema
────────────────────────────────────────────────────────────
Summary
- Passed: 29
- Failed: 3
- Warnings: 11