diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 6ff3be5..85a551a 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -2406,15 +2406,22 @@ Files: ${Object.keys(generatedFiles).join(', ')}`; termLog(`\n[${stepV}] QA — validointi`); pipelineStep('qa', 'Validointi', 'active', 'Tarkistetaan yhteensopivuus'); const allFiles = Object.entries(generatedFiles).map(([n, c]) => `--- ${n} ---\n${c}`).join('\n\n'); - const validatePrompt = `Check these project files for consistency issues. Report ONLY problems found. If everything is fine, say "OK". + const validatePrompt = `You are a QA engineer. Check EVERY item below and report the result for each. Use this EXACT format: -Check: -1. Dockerfile COPY references files that exist in the project -2. Dockerfile dependencies match what the code imports -3. docker-compose.yml services match what the app needs -4. README commands match actual file names and structure -5. Test file imports match actual module names -6. pyproject.toml dependencies cover all imports (if pyproject.toml exists) +1. Dockerfile COPY: ✓ OK / ✗ problem description +2. Dockerfile deps vs imports: ✓ OK / ✗ problem description +3. docker-compose ports: ✓ OK / ✗ problem description +4. README commands: ✓ OK / ✗ problem description +5. Test imports: ✓ OK / ✗ problem description +6. pyproject.toml deps: ✓ OK / ✗ problem description + +EXAMPLE output: +1. Dockerfile COPY: ✓ OK — copies main.py and models.py which both exist +2. Dockerfile deps: ✗ missing "sqlalchemy" in pip install +3. docker-compose ports: ✓ OK — maps 8000:8000 matching EXPOSE +4. README commands: ✓ OK — uvicorn main:app matches main.py +5. Test imports: ✓ OK — imports main.app which exists +6. pyproject.toml deps: ✓ OK — includes fastapi, uvicorn, sqlalchemy Files in project: ${Object.keys(generatedFiles).join(', ')}