techygarg/lattice-collaborative-judgment
Protocol for handling ambiguous decisions and missing/conflicting knowledge during code generation, design, and review. Ensures AI surfaces genuine judgment calls with structured options and stops on hallucination risk instead of silently assuming. Use when a decision has multiple valid approaches, when facts are missing or contradictory, when the user asks 'what should we do here?', 'is this a judgment call?', 'should I ask about this?', 'am I guessing here?', 'what are the tradeoffs?', or when deciding between two reasonable architectural or design options. Also composed by molecules to define how judgment calls and clarification requests are surfaced and resolved.
This is a copy. The original lives at techygarg/collaborative-judgment.
npx skills add https://github.com/techygarg/lattice --skill collaborative-judgment
Most decision NOT ambiguous. AI decide when:
Surface decision only when ALL three true:
Confidence test: "Considered two+ approaches, neither clearly better given project context." True → surface. False → decide, move on.
Err side of deciding only when grounded. Grounded autonomy ≠ guessing. STOP: If evidence thin, missing, or conflicting, don't silent choose.
Stop and inspect / ask when ANY signal fire:
If any signal fire, don't invent options just to fit this protocol. First inspect available evidence. If still unresolved, ask targeted clarification.
STOP: Conflicting active sources — surface contradiction, ask. Never pick winner silently.
Two formats:
Use when multiple grounded options remain:
> Decision needed: [one-line description of what's being decided]
>
> Checked: [sources]. Missing/conflicting: [fact]
>
> - Option A: [approach] — [1-line pro], [1-line con]
> - Option B: [approach] — [1-line pro], [1-line con]
>
> I lean toward [option] because [one sentence of reasoning].
Two options norm. Three maximum. No essays.
Use when issue is missing/conflicting knowledge, not balanced options:
> Clarification needed: [missing fact or contradiction]
>
> Checked: [sources]
> Missing/conflicting: [exact fact]
> Need from you: [1-3 targeted questions or requested artifact]
> Why it matters: [one sentence]
No fabricated options. Ask only for facts that materially change direction. If answer available in inspected repo/docs/tests, inspect first -- ask user only when gap remains.
Not interrupt every judgment call. Collect, surface at natural checkpoints:
Escalation signal: Single component produce >3 judgment calls, project need clearer standards. Suggest run relevant refiner instead ask each individually.
When user resolve judgment call or clarification:
framework:context-anchoring (per-feature) or recommend run relevant refiner (project-wide).Protocol become less active as project mature:
Take techygarg/lattice-collaborative-judgment from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.