Validator help

From Codagent-AI/agent-validator · View interactive version

Validator help is an AI agent skill from the GitHub repository Codagent-AI/agent-validator. Diagnoses and explains validator behavior from runtime evidence for requests such as "why did validator fail", "explain validator behavior", "diagnose validator logs", or "what went wrong in the validator run".

How to use this skill

Skill file

/validator-help

Evidence-based diagnosis of validator behavior. This skill is diagnosis-only — it explains what happened and why, but does not auto-fix issues. It operates from runtime artifacts and CLI outputs, not source code.

Diagnostic Workflow

Follow this order for every diagnostic question:

  1. Resolve log_dir: Read .validator/config.yml and extract the log_dir field (default: validator_logs). All log paths below are relative to <log_dir>/.
  2. Passive evidence first: Read files before running commands.
  1. Active evidence when needed: Run CLI commands only when passive evidence is insufficient for a confident diagnosis.
  2. Explain with evidence: Clearly distinguish confirmed findings from inference.

Evidence Sources

| Source | What It Confirms |

|--------|-----------------|

| .validator/config.yml | log_dir, base_branch, entry_points, cli.default_preference, max_retries, rerun_new_issue_threshold |

| <log_dir>/.debug.log | Timestamped event history: commands executed, gate results, state transitions, errors |

| <log_dir>/.execution_state | Last successful run timestamp, branch/commit at that time, working tree stash ref, unhealthy adapter cooldowns |

| <log_dir>/console.*.log | Human-readable output from each run iteration |

| <log_dir>/check_*.log | Raw output from check gate commands (linters, test runners, etc.) |

| <log_dir>/review_*.json | Structured review violations with file, line, issue, priority, and resolution status |

| <log_dir>/.validator-run.lock | Lock file (contains PID) — present only during active execution |

| <log_dir>/.ci-wait-attempts | CI wait attempt counter |

CLI Command Quick-Reference

Use these only when passive evidence is insufficient:

| Command | When to Use |

|---------|-------------|

| agent-validate list | See configured gates and entry points |

| agent-validate health | Check adapter availability and health status |

| agent-validate detect | See which files changed and which gates would apply |

| agent-validate validate | Validate config.yml syntax and schema |

| agent-validate clean | Archive current logs and reset state (destructive — confirm with user first) |

Routing Logic

Based on the user's question, load the appropriate reference file for detailed guidance:

| Question Domain | Reference File |

|----------------|---------------|

| Missing config, YAML errors, misconfiguration, init problems | references/config-troubleshooting.md |

| Check failures, review failures, no_changes, no_applicable_gates, rerun mode | references/gate-troubleshooting.md |

| Lock conflict, stale locks, parallel runs, cleanup | references/lock-troubleshooting.md |

| Adapter health, missing tools, usage limits, cooldown | references/adapter-troubleshooting.md |

If the question spans multiple domains, load each relevant reference.

Output Contract

Every diagnostic response MUST include these sections:

Diagnosis

What happened and why, stated clearly.

Evidence

Specific files read, field values observed, and command outputs that support the diagnosis. Quote relevant log lines or config values.

Confidence

One of:

Downgrade confidence when:

Next Steps

Actionable recommendations for the user. If confidence is not high, suggest what additional evidence would confirm the diagnosis.

Bug Filing

After completing your diagnosis, apply the following routing logic to determine whether to file a GitHub issue:

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.