You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ax/content-signals: report an absent Content-Signal policy separately #1649
Expose whether a machine-readable usage policy was declared, separately from invalid directives and conflicts. Reuse the robots.txt already read; report absence only when that document was fully readable. This is informational, not legal advice or implicit permission for training.
Synthetic reproduction / acceptance fixture:
Serve a complete robots.txt with ordinary crawler directives and no Content-Signal: report policy absent as information.
Add a valid Content-Signal directive: report declared; use a malformed directive: report invalid separately.
Return a failed or truncated robots read: policy stays unknown/not checked, never absent.
Do not introduce an extra network probe. This requests an additional observable signal, not a claim that all current validation is missing.
Triage
Today ax/content-signals (packages/rules/src/ax/content-signals.ts) already emits an info check with value absent when no directive is parsed. It reads ctx.site.robotsTxt.content ?? "", so an unreadable or missing robots.txt looks the same as a complete one with no policy. The gap is separating absent, invalid and unknown (not checked). No new network probe is needed.
Acceptance Criteria
A complete robots.txt with no Content-Signal reports the policy as absent (info).
A valid Content-Signal directive reports declared; a malformed one reports invalid, separately from absent.
A failed, blocked or truncated robots.txt read reports not checked, never absent.
No extra network request is added.
The rule never affects the score and the docs page for the rule is updated.
Activity
feat(rules): ax/content-signals separates absent, declared, invalid a…
fix(rules): ax/content-signals reports a 404 as absent and treats BOM…
test(rules): content-signals margin boundary, cap minus 4 not checked…