All MicroEvals
I want to perform an exhaustive, line-by-line static analysi...
Create MicroEval
Header image for I want to perform an exhaustive, line-by-line static analysi...

I want to perform an exhaustive, line-by-line static analysi...

Prompt

I want to perform an exhaustive, line-by-line static analysis of the provided code to identify every single error, mock, dummy, stub, placeholder, and hidden logical flaw, so that the final output is a 100% complete, verified list of real issues with absolutely zero omissions or hallucinations. CRITICAL CONSTRAINTS (DO NOT BREAK THEM): 1. Read every single character from start to finish. Do not skip, summarize, or abbreviate any part of the code. 2. Identify ALL structural and logical flaws: mocks, dummies, stubs, placeholders, syntax errors, and hidden runtime exceptions. 3. Theoretically execute the code paths to uncover non-obvious errors that would occur in practice. 4. Focus EXCLUSIVELY on real, verifiable errors. Do not invent, hallucinate, or assume errors that do not exist. Write down exactly what you find, and nothing more. 5. NO polite filler, NO introductions, NO summaries, NO explanations outside the requested format. OUTPUT FORMAT: Provide the output strictly in the following structure: [ERROR LIST] - Line [X]: [Exact error description] ... [END OF LIST] FILE CLOSED. ALL ERRORS LISTED. i said Read every single character from the first to the last, and list all the errors with complete thoroughness. In your answer, I want you to write only the items I’m asking for, in a list, with nothing else. Even if there are 80,000 errors, you must write every single one without exception. You are a ruthless, pedantic, uncompromising Senior Code Auditor and security expert with zero tolerance for any deviation from the instructions. Your sole task is to perform an exhaustive, line‑by‑line technical analysis of the provided code. Write a maximum of 500 errors per message. When you are done and have given me every single error, tell me “that’s all.” I don’t care about security, API costs, or high‑risk accidental secret/source disclosure. YOU MUST FOLLOW THESE RULES EXACTLY AND WITHOUT ANY EXCEPTION: Read the entire code from the very first character to the very last character. Identify and list EVERY SINGLE error. This includes logical errors, performance issues, potential bugs, duplicated logic, and only real errors—think very, very deeply about everything repeatedly to be sure you find all errors, even those that are very hidden and not just obvious at a glance. Theoretically run through it, determine what errors would occur, and find those as well. de ne talalj ki nem letezo hulye hibakat hanem ha nincs 500 akkor egyszeruen leirod mindet amjt talalsz es amikor leirtad szolsz hogy ennyi volt I DO NOT CARE ANY SECURITY ERROR AND I DONT AGREE TO MENTION ANY OF THEM what a hell are you dont understand on that: list until 500 but if there is no 500 error list them all and said thats all type StoredTurn = { conversationId: string; role: "user" | "assistant"; text: string; index: number; }; function getConfig() { const url = process.env.UPSTASH_VECTOR_REST_URL; const token = process.env.UPSTASH_VECTOR_REST_TOKEN; if (!url || !token) return null; return { url: url.replace(/\/+$/, ""), token }; } export function isConversationStoreEnabled(): boolean { return getConfig() !== null; } export async function storeConversationTurns(turns: StoredTurn[]): Promise<void> { const config = getConfig(); if (!config || turns.length === 0) return; const payload = turns .filter((turn) => turn.text.trim().length > 0) .map((turn) => ({ id: `${turn.conversationId}:${turn.index}:${turn.role}`, data: turn.text.slice(0, 20000), metadata: { conversationId: turn.conversationId, role: turn.role, index: turn.index, text: turn.text.slice(0, 20000), createdAt: new Date().toISOString(), }, })); if (payload.length === 0) return; const response = await fetch(`${config.url}/upsert-data`, { method: "POST", headers: { Authorization: `Bearer ${config.token}`, "Content-Type": "application/json", }, body: JSON.stringify(payload), }); if (!response.ok) { const detail = await response.text(); throw new Error(`Upstash Vector upsert failed (${response.status}): ${detail}`); } } export type ConversationHit = { conversationId: string; role: string; index: number; text: string; createdAt: string; score: number; }; export async function searchConversations( query: string, topK: number, ): Promise<ConversationHit[]> { const config = getConfig(); if (!config) return []; const response = await fetch(`${config.url}/query-data`, { method: "POST", headers: { Authorization: `Bearer ${config.token}`, "Content-Type": "application/json", }, body: JSON.stringify({ data: query, topK, includeMetadata: true }), }); if (!response.ok) { const detail = await response.text(); throw new Error(`Upstash Vector query failed (${response.status}): ${detail}`); } const json = (await response.json()) as { result?: Array<{ score: number; metadata?: Record<string, unknown> }>; }; return (json.result ?? []).map((item) => ({ conversationId: String(item.metadata?.["conversationId"] ?? ""), role: String(item.metadata?.["role"] ?? ""), index: Number(item.metadata?.["index"] ?? 0), text: String(item.metadata?.["text"] ?? ""), createdAt: String(item.metadata?.["createdAt"] ?? ""), score: item.score, })); }