Getting Started
What is @hardmachinelabs/index-ai-validator?
@hardmachinelabs/index-ai-validator is an experimental free CLI validator for index-ai Level 1 and Level 2a.
It checks whether a public website exposes the files, Agent Index graph, and clean endpoints expected by the current Level 1 and Level 2a implementation.
Who is it for?
This package is for developers, maintainers, and technical reviewers working on public index-ai implementations.
Use it when you need structured validation checks for the AI Manifest, Agent Index graph, clean endpoint content types, HTML leaks, content_chars, conservative security heuristics, discovery hints, and CLI behavior.
STEP-1 - Run the CLI
npx @hardmachinelabs/index-ai-validator https://example.comThe package name is @hardmachinelabs/index-ai-validator.
The CLI binary is index-ai.
STEP-2 - Read the human report
By default, the CLI prints a deterministic summary-first report:
index-ai validation result
Target: https://example.com
Duration: 42 ms
Conformance: level-2a
Passed: true
Summary:
- pass: 12
- warn: 0
- fail: 0
- total: 12
Metrics:
- manifest_found: true
- agent_index_found: true
- total_nodes: 6
- valid_clean_endpoints: 6
- valid_content_chars: 6
No failures or warnings.
Next:
- No blocking validation fixes were found.Failures and warnings include check codes and fixes where available. Passing checks are included only when --verbose is used.
STEP-3 - Use JSON for automation
npx @hardmachinelabs/index-ai-validator https://example.com --jsonJSON mode writes JSON only to stdout. Normal validation results keep stderr empty. Usage, configuration, or runtime errors before a validation result use stderr and exit with code 2.
The top-level JSON fields include:
schema_versiontargetgenerated_atduration_msconformancepassedsummarymetricschecks
What it validates in 0.2.0
Implemented scope:
- canonical AI Manifest fetch at
/.well-known/index-ai.json - fallback AI Manifest fetch at
/index-ai.jsonwith warning - AI Manifest JSON content-type check
- AI Manifest JSON parse check
- pragmatic AJV Level 1 schema validation
identity.domainhost mismatch warning- manifest
access.agent_index - Agent Index graph fetch
- graph JSON content-type check
- graph JSON parse check
- graph schema validation
nodesarray validation- deprecated
pagesarray failure total_nodesmismatch warning- per-node
llm_urlstructural validation - per-node
llm_urlfetch - clean endpoint content-type validation
- hard HTML leak failure
- soft inline HTML warning
content_charsexact and max validation- Unicode NFC code-point counting
- obvious secret-shaped value checks outside Markdown code
- private/internal infrastructure reference checks
- private
llm_urlblocking by default - shallow discovery hint checks for the homepage,
robots.txt, and/llms.txt - CLI JSON output, human output, and exit codes
What it does not validate
This is an experimental validator, not compliance certification or a traffic promise. For the full list of what it does not do — security audits, crawling, sitemap and DNS validation, Level 2b, Level 3 MCP — see Scope.