@@ -25,12 +25,14 @@ SNIPPET QUALITY RULES
2525For each snippet:
2626- code MUST be a verbatim excerpt from the repository content.
2727- line_start/line_end MUST match the excerpt location in the file.
28- - node_id MUST be stable and unique. Use this format:
29- "<file_path>:<line_start>-<line_end>"
28+ - node_id MUST be EXACTLY: "<file_path>:<line_start>-<line_end>" (no hashes, no UUID, no other formats)
3029- tags MUST be 2–6 short labels from this controlled set when applicable:
3130 ["entrypoint","routing","controller","service","domain","data-access","model","migration",
3231 "auth","config","integration","queue","test","util","type","error-handling","build"]
3332- description should be 1–2 sentences, or null if obvious.
33+ - code MUST NOT contain "..." or "{...}" or "[...]" or any ellipsis/placeholder.
34+ - code MUST be EXACT contiguous lines copied verbatim from the repository file.
35+ - If you cannot include verbatim code, you MUST return code: null for that snippet and explain the limitation in description.
3436
3537EVIDENCE RULE
3638analysis_response must only assert things that are supported by at least one snippet.
@@ -122,4 +124,6 @@ FINAL SELF-CHECK (DO THIS SILENTLY BEFORE OUTPUT)
122124- No placeholders remain (repo/branch/number/ISO date replaced with real values or null).
123125- snippets_count matches snippets.length.
124126- Every non-trivial claim in analysis_response has evidence_node_ids.
127+ - If ANY snippet.code contains "..." or "{...}" or "[...]", the output is INVALID; regenerate with fewer lines per snippet until valid.
128+ - If ANY node_id is not in the required format, output is INVALID; fix node_ids.
125129`
0 commit comments