Grounded - Reliability Gate (No Guessing)
This skill minimizes random / fabricated answers by enforcing a strict rule:
Only provide the final answer if confidence is 100/100 based on evidence available.
If confidence is not 100, do not guess and do not implement. Output a short “what’s missing” checklist that explains what would be required to reach 100.
When to use
Use when:
- The user requests maximum reliability (“only if you’re sure”, “no assumptions”).
- The request includes changeable facts (versions, “latest”, policies, prices, schedules).
- The request is security/finance/legal/medical adjacent (high stakes).
- You’re resuming after context loss and need to avoid accidental assumptions.
Workflow
Step 1: Classify the request
Classify into one of:
- Repo-grounded — can be answered purely from the local codebase and command outputs.
- Doc-grounded — requires authoritative docs/specs/logs provided by the user or accessible tooling.
- External-facts — depends on changeable facts outside the repo (must be verified, otherwise refuse).
Step 2: Define evidence and unknowns
Before answering, list:
- Evidence sources you will use (files, command outputs, provided docs).
- Unknowns (anything not present in evidence).
Hard rule:
- If a claim is not supported by evidence, it becomes an unknown (not an assumption).
Step 3: Mandatory verification for changeable facts
If the request contains any changeable fact (“latest”, “current”, “today”, “default in vX”, “does library Y support Z now”):
- Verify via authoritative docs/specs, release notes, or logs.
- If verification is not possible with available tools/context, return INSUFFICIENT INFORMATION and ask for the needed source (link excerpt, version, log output).
Step 4: Confidence gate
Compute a confidence score 0–100:
- 100 only if every factual claim is supported by evidence you can point to (repo files, command outputs, provided docs), and there are no open unknowns.
- If any unknown remains → confidence < 100 → do not answer/implement.
Step 5: Output format (strict)
If confidence is 100:
Answer:
<final answer or patch summary>
Confidence: 100/100
Evidence:
- <file/command/doc used>
Checks:
- <3 concrete checks someone can run/inspect to confirm>
If confidence is < 100:
Result: INSUFFICIENT INFORMATION (no guessing)
Current confidence: <N>/100
Why not 100:
- <top reasons>
Missing evidence:
- <what exact file/output/doc is needed>
To reach 100:
- <1–3 concrete asks or commands for the user to run and paste output>
Implementation guardrail
If the user asks for code changes:
- You may explore the repo and propose what evidence is needed.
- Only apply patches once confidence can be 100 (e.g., requirements are precise + you can verify build/tests or equivalent checks).
- If the repo lacks a verification path (no build/tests and behavior can’t be validated), do not claim 100; return INSUFFICIENT INFORMATION and propose the minimal validation needed.
1---2name: aif-grounded3description: Reliability gate for answers. Forces evidence-based reasoning, explicit uncertainty, and “insufficient information” instead of guesses. Use when user says “be 100% sure”, “no hallucinations”, “only if verified”, “grounded answer”, or when stakes are high.4---5
6# Grounded - Reliability Gate (No Guessing)
7
8This skill minimizes random / fabricated answers by enforcing a strict rule:
9
10**Only provide the final answer if confidence is 100/100 based on evidence available.**
11
12If confidence is not 100, **do not guess** and **do not implement**. Output a short “what’s missing” checklist that explains what would be required to reach 100.
13
14## When to use
15
16Use when:
17- The user requests maximum reliability (“only if you’re sure”, “no assumptions”).
18- The request includes changeable facts (versions, “latest”, policies, prices, schedules).
19- The request is security/finance/legal/medical adjacent (high stakes).
20- You’re resuming after context loss and need to avoid accidental assumptions.
21
22## Workflow
23
24### Step 1: Classify the request
25
26Classify into one of:
271. **Repo-grounded** — can be answered purely from the local codebase and command outputs.
282. **Doc-grounded** — requires authoritative docs/specs/logs provided by the user or accessible tooling.
293. **External-facts** — depends on changeable facts outside the repo (must be verified, otherwise refuse).
30
31### Step 2: Define evidence and unknowns
32
33Before answering, list:
34- **Evidence sources** you will use (files, command outputs, provided docs).
35- **Unknowns** (anything not present in evidence).
36
37Hard rule:
38- If a claim is not supported by evidence, it becomes an **unknown** (not an assumption).
39
40### Step 3: Mandatory verification for changeable facts
41
42If the request contains any changeable fact (“latest”, “current”, “today”, “default in vX”, “does library Y support Z now”):
43- Verify via authoritative docs/specs, release notes, or logs.
44- If verification is not possible with available tools/context, return **INSUFFICIENT INFORMATION** and ask for the needed source (link excerpt, version, log output).
45
46### Step 4: Confidence gate
47
48Compute a confidence score 0–100:
49- **100** only if every factual claim is supported by evidence you can point to (repo files, command outputs, provided docs), and there are **no open unknowns**.
50- If any unknown remains → confidence < 100 → do not answer/implement.
51
52### Step 5: Output format (strict)
53
54If confidence is **100**:
55```
56Answer:
57<final answer or patch summary>
58
59Confidence: 100/100
60Evidence:
61- <file/command/doc used>
62
63Checks:
64- <3 concrete checks someone can run/inspect to confirm>
65```
66
67If confidence is **< 100**:
68```
69Result: INSUFFICIENT INFORMATION (no guessing)
70Current confidence: <N>/100
71Why not 100:
72- <top reasons>
73
74Missing evidence:
75- <what exact file/output/doc is needed>
76
77To reach 100:
78- <1–3 concrete asks or commands for the user to run and paste output>
79```
80
81## Implementation guardrail
82
83If the user asks for code changes:
84- You may explore the repo and propose what evidence is needed.
85- Only apply patches once confidence can be 100 (e.g., requirements are precise + you can verify build/tests or equivalent checks).
86- If the repo lacks a verification path (no build/tests and behavior can’t be validated), do not claim 100; return INSUFFICIENT INFORMATION and propose the minimal validation needed.
87