## Summary - Add `robots.txt`, `sitemap.xml`, and `llms.txt` endpoints so crawlers and AI agents can discover public pages - Fix accessibility tree issues: contact form labels, semantic nav/profile dropdown buttons, cookie consent dialog ARIA, and dead `href="#"` links - Reduce layout shift on homepage/contact via hero min-heights, trusted-by marquee sizing, and fixed cookie banner - Add regression tests and `docs/agentic-browsing.md` for Lighthouse agentic-browsing audits Closes #5. Also addresses overlap with #3 (sitemap + robots.txt). ## Test plan - [x] `python manage.py test public.tests` (14 tests pass) - [ ] Verify `GET /robots.txt`, `/sitemap.xml`, `/llms.txt` return 200 in staging/prod - [ ] Confirm contact form labels visible and submittable on `/contact` - [ ] Run Lighthouse `--only-categories=agentic-browsing` on homepage and contact page - [ ] Smoke test mobile nav dropdown and cookie consent banner Reviewed-on: #8
1.7 KiB
1.7 KiB
Agentic Browsing Readiness
This site targets Google's experimental Agentic Browsing Lighthouse category (v13.3+), which checks whether AI agents can read, navigate, and act on public pages.
PageSpeed Insights does not yet expose this category. Run audits locally:
npx lighthouse@latest https://aimloperations.com \
--only-categories=agentic-browsing \
--chrome-flags="--enable-experimental-web-platform-features" \
--output=html --output-path=agentic-browsing-report.html
Test at minimum:
/(homepage)/contact(primary conversion page)
What we ship
| Check | Implementation |
|---|---|
| llms.txt | GET /llms.txt — machine-readable site summary |
| robots.txt | GET /robots.txt — crawl rules + sitemap reference |
| sitemap.xml | GET /sitemap.xml — public marketing URLs |
| Accessibility tree | Form labels, semantic nav controls, ARIA on dialogs |
| Layout stability | Fixed cookie banner, reserved hero/marquee space, font fallbacks |
WebMCP is intentionally deferred until browser and agent support stabilizes.
Regression checklist
Before merging public-facing template or CSS changes:
- Contact form fields have associated
<label>elements (not placeholder-only). - Nav dropdowns use
<button>triggers witharia-expanded/aria-haspopup. - Cookie consent banner stays
position: fixed(no document flow shift). GET /robots.txt,/sitemap.xml,/llms.txtreturn 200.- Re-run Lighthouse agentic-browsing on homepage and contact page.
References
- Lighthouse Agentic Browsing audit overview
- llms.txt proposal
- Gitea issue #5