qoliber / agent-readiness-audit
Qoliber Agent Readiness Audit. Audit a store view's public storefront for AI agent readiness from Magento Admin.
Package info
github.com/qoliber/agent-readiness-audit
Type:magento2-module
pkg:composer/qoliber/agent-readiness-audit
Requires
- php: ~8.3.0 || ~8.4.0 || ~8.5.0
- ext-curl: *
- magento/framework: ^103.0
- magento/module-backend: ^102.0
- magento/module-store: ^101.1
- psr/log: ^2.0 || ^3.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Adds the AI Readiness screen to Magento Admin and runs the checks that the check packages register. It lists the active store views, runs every installed check or a custom selection against the selected store view's public storefront, works out the readiness score and level, and keeps each report for one hour behind a report link. It also owns the probe transport the checks use: requests stay on the store view's public origin, follow same-origin redirects only, and share a 30-second budget. See Run an audit and Read the report.
Installation
composer require qoliber/agent-readiness-audit bin/magento setup:upgrade
On its own the audit has no checks to run: install the check packages too, or all of them at once with qoliber/ai-readiness-audit.
Configuration
This module has no configuration fields. Who can run audits is set by a role permission: see Configuration.
Admin interface
- System → Tools → AI Readiness: the audit screen and its reports.
- Permission: AI Readiness Audit (
Qoliber_AgentReadinessAudit::scan) under System → Tools.
Verified by tests
- Unit tests: 71 tests in 11 classes. They cover the scanner and the provider contract, the readiness score, report storage, the request policy, the shared Link header parser, and the time budget: a name server that never answers, a response that never comes and a browser check that stalls all end within the budget.
- Playwright: the package's own suite (
Test/Playwright, 32 tests) covers the audit form and stylesheet, a full audit with score, level and totals, Customize checks, Audit details, the report link, results that need attention or warn, the validation and expired-report messages, a report too large to save, and access for signed-out visitors and administrators without the permission, including scan requests without the permission or the admin form key. It runs the scanner against six test storefronts, among them one that turns the audit away with 503, 429 and 403 and one slower than the audit allows, which must still end within 30 seconds with a complete report. - Production mode: the suite runs against compiled code and deployed static files, the stylesheet compiles with the LESS compiler
setup:static-content:deployuses for both admin themes, and an audit of a storefront that is not public is refused before a single request is sent. - Real Magento storefront: the integration suite of
qoliber/ai-readiness-suiteaudits a Magento storefront running Qoliber's storefront modules (Agent Readiness with its Markdown and UCP companions, Markdown Content, UCP and UCP MCP), with robots.txt rules set in Magento's own configuration, and asserts every check those modules implement and the readiness level, Verified level 4, Agent-Integrated.
Documentation
The full documentation lives in qoliber/ai-readiness-audit: installation, configuration, usage, troubleshooting and the developer guide.
Extending
Add your own checks with Qoliber\AgentReadinessAudit\Api\CheckGroupInterface, registered with the scanner in di.xml; see Add your own checks. Every check follows one verdict rule.
Tests
Test/Unit runs with Magento's unit test bootstrap. Test/Playwright is the acceptance suite, for a test installation only:
cd vendor/qoliber/agent-readiness-audit/Test/Playwright npm ci && npx playwright install chromium AUDIT_QA_DATABASE=<your test database name> npx playwright test
See Tests for what it needs and does.
Contributing
Issues and pull requests are welcome at github.com/qoliber/agent-readiness-audit. See CONTRIBUTING.md; AGENTS.md has the same guidance for AI coding agents.
Security
Report vulnerabilities privately as described in SECURITY.md, never in a public issue.
License
MIT © Qoliber. Commercial support and custom work: qoliber.com.