From 062e6af776d26c496a257bf2f341d5b6cab74993 Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 12:27:10 +0300 Subject: [PATCH] =?UTF-8?q?CodeBench:=20vahvista=20CRITICAL-s=C3=A4=C3=A4n?= =?UTF-8?q?t=C3=B6=20=E2=80=94=20ei=20ylim=C3=A4=C3=A4r=C3=A4isi=C3=A4=20k?= =?UTF-8?q?entti=C3=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qwen3:14b lisäsi created_at spekin ulkopuolelta ja käytti server_default=datetime.now (virheellinen). Nostettu CRITICAL-tasolle. --- kipina-codebench/prompts/code.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kipina-codebench/prompts/code.md b/kipina-codebench/prompts/code.md index 1aef484..1f2c7d2 100644 --- a/kipina-codebench/prompts/code.md +++ b/kipina-codebench/prompts/code.md @@ -32,8 +32,8 @@ RULES: - Tests: unique descriptive data per test, NOT generic "test_title" strings - Tests: PUT/update test data MUST include ALL required (non-nullable) fields, not just the field being updated - Do NOT add filter/search endpoints — only standard CRUD (create, list, get, update, delete) -- Do NOT add fields beyond what the JSON spec defines — no extra created_at, updated_at, or other fields not in spec -- If the spec includes timestamp fields: use server_default=func.now() (import func from sqlalchemy) and make them Optional in Create schema +- CRITICAL: Use ONLY the fields listed in the JSON spec. NEVER add created_at, updated_at, or any field not in the spec +- If the spec happens to include timestamp fields: use server_default=func.now() (from sqlalchemy import func) and make them Optional in Create schema - Absolute imports only (from models import ..., from schemas import ...) - NO markdown fences inside file content — just raw code - Only test endpoints that exist in main.py — no extra tests