ct-adr-recorder
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
Compliance validation for verifying systems, documents, or code against requirements, schemas, or standards. Performs schema validation, code compliance checks, document validation, and protocol compliance verification with detailed pass/fail reporting. Use when validating
$ npx -y skills add kryptobaseddev/cleo --skill ct-validator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ct-validatorContext preview
The summary Claude sees to decide when to auto-load this skill.
Compliance validation for verifying systems, documents, or code against requirements, schemas, or standards. Performs schema validation, code compliance checks, document validation, and protocol compliance verification with detailed pass/fail reporting. Use when validating
name: ct-validator
description: Compliance validation for verifying systems, documents, or code against requirements, schemas, or standards. Performs schema validation, code compliance checks, document validation, and protocol compliance verification with detailed pass/fail reporting. Use when validating compliance, checking schemas, verifying code standards, or auditing protocol implementations. Triggers on validation tasks, compliance checks, or quality verification needs.
version: 2.0.4
protocol: validation
adrRefs:
- ADR-051
- ADR-023
dependencies: []
sharedResources:
- subagent-protocol-base
- task-system-integration
compatibility:
- claude-code
- cursor
- windsurf
- gemini-cli
license: MIT
metadata:
version: 2.0.4
tier: on-demand
install: harness
covers:
- packages/core/src/validation/protocols/cant/validation.cant
- packages/core/src/validation/protocols/protocols-markdown/validation.md
loomStage: validation
lastReviewed: 2026-09-28
stability: stable**Protocol**: @src/protocols/implementation.md **Type**: Context Injection (cleo-subagent) **Version**: 2.0.0
---
Context injection for compliance validation tasks spawned via cleo-subagent. Provides domain expertise for verifying that systems, documents, or code comply with specified requirements, schemas, or standards.
---
1. **Schema Validation** - Verify data structures against JSON Schema 2. **Code Compliance** - Check code against style guides and standards 3. **Document Validation** - Verify documents meet structural requirements 4. **Protocol Compliance** - Check implementations against specifications
---
`ct-validator` operates on the **`validation`** LOOM lifecycle stage (stage 7). It performs **static** schema, compliance, and audit checks against artifacts that already exist on disk (specs, ADRs, JSON files, RFC 2119 keyword usage, manifest schemas).
This skill does NOT:
| Direction | When | Handoff | |---|---|---| | `ct-validator` → `ct-ivt-looper` | Spec is valid but implementation needs dynamic verification | Emit a manifest entry, then dispatch the `testing` stage | | `ct-ivt-looper` → `ct-validator` | IVT loop converged; need to audit the resulting artifacts against schema/compliance | Dispatch the `validation` stage after the test convergence record |
Governance: see **ADR-051** (programmatic gate integrity) which defines the evidence atoms each stage emits and that the other stage may re-validate, and **ADR-023** (protocol validation dispatch) which routes between them.
---
1. **Define scope** - What is being validated 2. **Identify criteria** - What rules apply 3. **Execute checks** - Run validation against criteria 4. **Document findings** - Record pass/fail with details 5. **Report status** - Summarize compliance level
---
When acting as the IVTR Lead in the **Validate** phase (R2), the targeted test files named in the task spec are NOT sufficient evidence on their own when the Implement phase touched an infrastructure file. Targeted-only test review is how cross-package regressions slip past the Lead.
T9814 swapped `BEGIN IMMEDIATE` for SAVEPOINTs in `packages/core/src/store/sqlite-data-accessor.ts` to support nested transactions for `add-batch`. Every targeted test passed (6/6 add-batch, 34/34 add, 9/9 allocate). IVTR Lead R2 approved on the targeted scope. CI then surfaced `agent-resolver.test.ts preferTier` failing — the resolver depended on the outer `BEGIN IMMEDIATE` semantics that SAVEPOINTs do not replicate verbatim. Hotfix commit `baa996d2b` restored the outer-tx case. The Lead's targeted-only review missed a regression CI caught seconds later.
If ANY file in the impl-phase evidence bundle's `filesChanged` matches a canonical infrastructure path, the Lead MUST run the full per-package vitest suite for every touched package — NOT the targeted files alone.
pnpm --filter @cleocode/<pkg> run test # for each touched package
Attach the JSON output of each run as evidence (`cleo docs add --labels test-output`) and reference the sha256 set in the `--next` call. Approving on targeted-only results when infrastructure paths are touched is grounds for loop-back with reason `infra-test-scope-violation`.
The IVTR Lead spawn prompt is auto-enriched by `resolvePhasePrompt()` in `packages/core/src/lifecycle/ivtr-loop.ts` — when an infrastructure touch is detected via `detectInfrastructureTouch()` (`packages/core/src/lifecycle/infra-touch.ts`), a `### Blast-Radius Test Scope — MANDATORY (T9842)` block is appended to the Validate-phase Lead prompt, listing the touched packages and the exact `pnpm --filter` commands the Lead must run.
---
# Validation Report: {{VALIDATIOEvery developer who has ever returned to a project after weeks away and found only ruins knows the wound CLEO was built to heal. The agents are powerful. But power without memory is chaos. Brilliance without continuity is waste.
Records Architecture Decision Records from accepted consensus verdicts. Use when promoting a consensus outcome to a formal ADR:…
Builds and publishes artifacts to registries (npm, PyPI, cargo, docker, GitHub releases, generic tarballs) following the…
CLEO task management protocol - session, task, and workflow guidance. Use when managing tasks, sessions, or multi-agent workflows…
Orient in an unfamiliar or large codebase with CLEO's code-intelligence graph (cleo nexus) and project map (cleo map). Use before…
Runs structured multi-agent voting for decision tasks with confidence scores, conflict detection, and HITL escalation when the…
Guided workflow for multi-agent consensus contributions. Use when user says "/contribution", "contribution protocol", "submit…