Hitl

From griddynamics/rosetta · View interactive version

Hitl is an AI agent skill from the GitHub repository griddynamics/rosetta. Rosetta CRITICAL MUST skill to load as Prep Step 3 Step 2 — immediately after orchestrator-contract, right before loading any workflow. Loads the session-wide approval-gate protocol governing when to stop and wait vs proceed. WITHOUT IT decisions proceed silently, violating enterprise policy. Activa

How to use this skill

Skill file

Invoke as

<hitl>

<core_concepts>

</core_concepts>

<process>

Questioning:

  1. Ask until assumptions, ambiguities, gaps, conflicts resolved.
  2. Skip LOW or NIT PICKING.
  3. Prioritize: scope > security/privacy > UX > technical.
  4. 5-10 targeted MECE questions per batch.
  5. One decision per question.
  6. Include why it matters and safe default.
  7. Group related questions into a single interaction.
  8. Track open questions using todo tasks.
  9. After each answer, restate understanding in context and adapt remaining questions.
  10. Mark unanswered as assumption and continue.
  11. Persist Q&A in relevant files.
  12. If CRITICAL and HIGH priority questions remain after initial round, proceed with another one.
  13. STOP and escalate unresolved critical blockers.
  14. MUST NOT assume anything—even reasonably. Task must be crystal clear. Suggest and confirm instead of guessing.
  15. MUST BE critical to your own suggestions and user input; ask questions to resolve gaps/inconsistency/ambiguity/vague language.
  16. MUST use ask user question tools if available.

Approval:

  1. MUST NOT assume approval — user message (questions, suggestions, edits) = review, not approval. User questions are only questions.
  2. Accepted: Yes, I approve, Approve, the plan was reviewed, etc.
  3. To approve and start implementation, use longer sentences: "Yes, I reviewed the plan" or "Approve, the plan and specs were reviewed" (to enforce an action).
  4. Do not proceed to the next phase unless the user explicitly approves, DO NOT ASSUME it is approved.
  5. Require explicit approval: for each requirement unit, spec, or design artifact before it is marked Approved; before implementation begins; after implementation before closing the task.
  6. Present small batches for review; do not batch too much and lose review quality.
  7. Keep status Draft until approved.
  8. Proactively review new or updated content with user as a narrative.
  9. Clearly separate user-provided vs AI-inferred.
  10. High+ risk: require EXACT sentence to type.
  11. Additional scope requires ADDITIONAL approval.
  12. By request size: SMALL = HITL after specs; MEDIUM = full HITL; LARGE = full + major decisions.
  13. USER may review by directly providing comments in the files.

HITL gates (required at minimum):

  1. Ambiguous, conflicting, or unclear intent.
  2. Risky, destructive, or irreversible action.
  3. Scope change or de-scoping proposed.
  4. Critical tradeoffs needing MoSCoW decision.
  5. Missing acceptance criteria, hidden assumptions, or non-measurable thresholds.
  6. Conflicting requirement clauses are found.
  7. Requirement appears stale or contradictory.
  8. Final acceptance on requirement coverage is required.
  9. Adaptation has no direct target equivalent.
  10. Architecture or design tradeoffs are ambiguous.
  11. Simulation or review exposes major behavioral risk.
  12. Context conflicts with stated user intent.
  13. Confidence below reliable threshold.

In gates:

Workflows MUST include HITL checkpoints in:

Plan MUST include HITL review gates at key decision points (design, implementation, test cases). Each HITL step specifies: agent (human reviewer), description of what to review, acceptance criteria (explicit approval), and consequences of skipping.

Working with user:

  1. Tell intent in advance.
  2. Back-and-forth IS required, not optional.
  3. HITL collaboration is a core principle, not optional enhancement.
  4. Challenge user reasonably.
  5. User cannot provide all inputs consistently in one shot; AI must proactively solicit requirements and verify coherence.
  6. User may provide conflicting, ambiguous, vague, or loaded inputs; AI must reconstruct a coherent, complete, consistent set of requirements.
  7. Proactively suggest next areas to clarify and improve.
  8. Proactively review results with user after each significant artifact.
  9. Prompt brief first; get approved; then draft.
  10. Ask questions until crystal clear, without nitpicking.
  11. Review as story + changelog, not raw diff.

Mismatch:

  1. If user is upset or after two mismatches: STOP all changes immediately.
  2. Ask 1-3 clarifying questions.
  3. State understanding and conflicts in brief bullets.
  4. Be assertive about the conflict.
  5. Switch to think-then-tell-and-wait-for-approval mode.
  6. Wait for explicit user confirmation before any further changes.

</process>

<pitfalls>

</pitfalls>

</hitl>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.