project-brain 0.22.3 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +7 -7
- package/templates/skills/brain-audit/SKILL.md +174 -8
- package/templates/skills/brain-audit/references/abuse.md +34 -24
- package/templates/skills/brain-audit/references/accessibility.md +41 -21
- package/templates/skills/brain-audit/references/ai.md +28 -18
- package/templates/skills/brain-audit/references/analytics.md +73 -0
- package/templates/skills/brain-audit/references/api.md +27 -17
- package/templates/skills/brain-audit/references/backend.md +24 -16
- package/templates/skills/brain-audit/references/complexity.md +30 -17
- package/templates/skills/brain-audit/references/concurrency.md +28 -19
- package/templates/skills/brain-audit/references/consistency.md +32 -24
- package/templates/skills/brain-audit/references/contract-drift.md +30 -19
- package/templates/skills/brain-audit/references/cost.md +35 -24
- package/templates/skills/brain-audit/references/cross-surface-parity.md +70 -0
- package/templates/skills/brain-audit/references/database.md +42 -24
- package/templates/skills/brain-audit/references/dependencies-licensing.md +34 -23
- package/templates/skills/brain-audit/references/design-system.md +99 -0
- package/templates/skills/brain-audit/references/devops.md +38 -24
- package/templates/skills/brain-audit/references/documentation.md +35 -23
- package/templates/skills/brain-audit/references/failure.md +33 -21
- package/templates/skills/brain-audit/references/feature-flags.md +87 -0
- package/templates/skills/brain-audit/references/flow-integrity.md +58 -33
- package/templates/skills/brain-audit/references/frontend.md +36 -19
- package/templates/skills/brain-audit/references/functional.md +38 -17
- package/templates/skills/brain-audit/references/future.md +32 -12
- package/templates/skills/brain-audit/references/goal.md +19 -12
- package/templates/skills/brain-audit/references/i18n.md +37 -23
- package/templates/skills/brain-audit/references/idempotency.md +76 -0
- package/templates/skills/brain-audit/references/infrastructure.md +31 -22
- package/templates/skills/brain-audit/references/mobile.md +32 -23
- package/templates/skills/brain-audit/references/multi-tenancy.md +74 -0
- package/templates/skills/brain-audit/references/numeric.md +70 -0
- package/templates/skills/brain-audit/references/observability.md +36 -21
- package/templates/skills/brain-audit/references/packaging.md +27 -19
- package/templates/skills/brain-audit/references/performance.md +48 -21
- package/templates/skills/brain-audit/references/privacy.md +39 -25
- package/templates/skills/brain-audit/references/product.md +31 -12
- package/templates/skills/brain-audit/references/prompt-spec-gap.md +25 -18
- package/templates/skills/brain-audit/references/reachability.md +28 -20
- package/templates/skills/brain-audit/references/repo-history.md +65 -0
- package/templates/skills/brain-audit/references/scalability.md +35 -22
- package/templates/skills/brain-audit/references/security.md +50 -33
- package/templates/skills/brain-audit/references/state-model.md +73 -0
- package/templates/skills/brain-audit/references/supply-chain.md +64 -0
- package/templates/skills/brain-audit/references/temporal.md +66 -0
- package/templates/skills/brain-audit/references/testing.md +49 -24
- package/templates/skills/brain-audit/references/tooling-baseline.md +77 -0
- package/templates/skills/brain-audit/references/type-safety.md +68 -0
- package/templates/skills/brain-audit/references/versioning-compatibility.md +33 -22
- package/templates/skills/brain-audit/references/visual-design.md +89 -0
- package/templates/skills/brain-audit/references/web-metadata.md +72 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Type Safety
|
|
2
|
+
|
|
3
|
+
Does the type checker actually check anything? Gate: a statically or gradually typed language was detected.
|
|
4
|
+
|
|
5
|
+
A type checker is only as strong as the code's willingness to obey it. This module audits the escape hatches — the places where a codebase declares itself typed and then opts out — not the types themselves. It does not review type design, generics, or variance; that is a code-quality concern for `consistency.md`. And a language with a type checker configured is table stakes here: **a typed language with no checker configured at all is the headline finding**, reported once, before any of the checks below.
|
|
6
|
+
|
|
7
|
+
## Establish the baseline first
|
|
8
|
+
|
|
9
|
+
- [ ] Locate the checker config: `search_code` for `tsconfig.json`, `mypy.ini`, `pyrightconfig.json`, `go.mod` (Go's checker is the compiler itself, not opt-in), `.flowconfig`. Record which strictness flags are actually set — `strict`, `noImplicitAny`, `strictNullChecks`, `noUncheckedIndexedAccess`, `exactOptionalPropertyTypes` for TypeScript; `strict = True`, `disallow_untyped_defs`, `warn_return_any`, `warn_unreachable` for mypy. **Check the TypeScript major version first** (`package.json`): TypeScript 6.0 (March 2026) flipped `strict`'s default from `false` to `true` when the field is unset, and TypeScript 7.0 (July 2026, the native Go-ported compiler — current as of this writing) hardens that into a locked-in default. On TypeScript ≥6, an *absent* `strict` field means strict is already on — the finding worth chasing on a current project is an explicit `"strict": false` or a per-flag override that turns a strict-bundled check back off, not the field's absence. On TypeScript <6, absence still means unstrict, as this module originally assumed.
|
|
10
|
+
- [ ] `noUncheckedIndexedAccess` and `exactOptionalPropertyTypes` are never implied by `strict: true`, on any TypeScript version — both must be opted into individually. `noUncheckedIndexedAccess` adds `| undefined` to indexed-access results (`obj[key]` stops pretending the key is guaranteed present); `exactOptionalPropertyTypes` stops treating an omitted optional property the same as one explicitly set to `undefined`. Their absence from a config that otherwise looks maximally strict is a real, checkable gap, not house-style pedantry. mypy's equivalent gap is `warn_unreachable` — not included in `--strict` on any current mypy version, and the effective `--strict` flag set is documented to change between releases, so read it from the version actually pinned rather than assuming a fixed list.
|
|
11
|
+
- [ ] **If the language is statically or gradually typed and no checker config exists anywhere in the tree, stop here and report that as the finding.** Nothing below applies to code nobody is checking.
|
|
12
|
+
- [ ] A config that declares strictness but scopes it away: `exclude` covering half the source tree, a `// @ts-nocheck` at file scope, a per-directory override that relaxes the root config. Read the `include`/`exclude` arrays literally — a strict root config with a permissive override is a strict config in name only.
|
|
13
|
+
|
|
14
|
+
## Suppression directives and their density
|
|
15
|
+
|
|
16
|
+
- [ ] `search_code` for `: any`, `as any`, `@ts-ignore`, `@ts-expect-error`, `# type: ignore`, `# noqa`, `@SuppressWarnings`, `interface{}` (Go), `unknown as`, `!` non-null assertion clusters. Count occurrences and note which files concentrate them — a handful spread across a large codebase is normal drift; a third of one module is that module opting out of the type system entirely.
|
|
17
|
+
- [ ] Each suppression should carry a reason — a comment or a linked issue explaining *why* the checker cannot express what's true here. A bare `@ts-ignore` with no comment is a silenced error, not a documented exception; distinguish the two counts.
|
|
18
|
+
- [ ] `@ts-expect-error` vs `@ts-ignore` (or the mypy equivalent, a scoped `# type: ignore[code]` vs a bare one): the former fails loudly when the underlying error is fixed and the suppression becomes stale; the latter fails silently forever. A codebase using only the bare form has no mechanism to notice when a suppression outlives its cause.
|
|
19
|
+
- [ ] Suppressions wrapping a large block rather than one line — the broader the scope, the more real errors it can be hiding besides the one it was written for.
|
|
20
|
+
- [ ] `any` on an **exported/public** function's parameter or return type specifically — `find_callers` to see how far the unsafety spreads. `any` inside a private helper's body is contained; `any` on a public signature leaks to every caller and their callers, silently.
|
|
21
|
+
- [ ] The double-cast pattern `as unknown as X` (or `# type: ignore` immediately followed by a direct field access). A single `as X` at least has to satisfy some structural overlap with the source type; routing through `unknown` first discards that check entirely and admits the checker has nothing useful to say here.
|
|
22
|
+
|
|
23
|
+
## Boundary typing — the single most common failure
|
|
24
|
+
|
|
25
|
+
Data crossing a trust boundary — a network response, `JSON.parse`, an environment variable, a database row, form input, a webhook payload — is typed by *assertion* (`as ResponseType`, a generic type parameter on `fetch`, an unchecked cast) rather than validated at runtime. This is the gap between "the code compiles" and "the type is true." TypeScript has not closed this gap natively: its types remain fully erased at compile time on every current version, including the 7.0 Go-ported compiler — there is no first-party mechanism to check a value's shape at runtime from a `type`/`interface` declaration, so a runtime validation library is not optional tooling here, it is the only fix that exists.
|
|
26
|
+
|
|
27
|
+
- [ ] `search_code` for `as ` immediately following `JSON.parse(`, `.json()`, or an HTTP client call. An assertion here tells the checker to trust unverified bytes.
|
|
28
|
+
- [ ] `search_code` for a runtime validation library (`zod` — v4 current, tree-shakeable imports — `io-ts`, `pydantic` — v2 current, Rust core — `class-validator`, `ajv`) and check whether it is actually applied at every boundary, or only at some of them — a `zod` schema imported by three of eight route handlers is five unvalidated ones. Also check the schema isn't overloaded with domain rules beyond parsing/shape validation — current practice keeps boundary validation and business-logic validation as separate steps, so a schema that half-does both is harder to audit for boundary coverage.
|
|
29
|
+
- [ ] Environment variable access (`process.env.X`, `os.environ[...]`) typed as a non-optional string with no runtime check that it was actually set. The type says `string`; the runtime value can be `undefined`.
|
|
30
|
+
- [ ] ORM query results whose row type is generated from the schema but whose *nullability* doesn't reflect an actual `LEFT JOIN` or optional relation in that specific query — the generated type is correct for the general case and wrong for this call site.
|
|
31
|
+
- [ ] Generic type parameters on an HTTP client (`fetch<User>(...)`, `axios.get<User>(...)`) with no corresponding runtime check — this is an assertion wearing generic syntax, not a guarantee.
|
|
32
|
+
- [ ] Route/query parameters typed as a narrow literal union (`'asc' | 'desc'`) but read from `req.query`/`req.params` with a bare cast rather than a runtime check — the URL can carry any string, and the type only describes the values the author expected, not the values a client can actually send.
|
|
33
|
+
|
|
34
|
+
## Lint-level escape hatches
|
|
35
|
+
|
|
36
|
+
- [ ] Lint rules that would catch unsafe patterns (`@typescript-eslint/no-explicit-any`, `@typescript-eslint/no-unsafe-assignment`, `flake8` type-adjacent rules) disabled at the config root versus disabled per-line. A root-level disable is a policy decision; per-line disables should each carry the same reasoning bar as a suppression directive above.
|
|
37
|
+
- [ ] The disable comment's scope: `/* eslint-disable */` for a whole file silences everything after it, including future violations nobody intended to allow.
|
|
38
|
+
|
|
39
|
+
## Generated types
|
|
40
|
+
|
|
41
|
+
- [ ] Types generated from an external source — an OpenAPI spec, a GraphQL schema, a database schema, protobuf — are actually regenerated in CI or on a documented trigger, not hand-edited after generation. `search_code` for the generation command in CI config; its absence means the committed types are a snapshot, not a contract. Cross-reference `contract-drift.md`, which owns whether the generated types still match the source of truth — this module only asks whether generation itself is live or has silently become manual.
|
|
42
|
+
- [ ] Hand-edits inside a file whose header says "auto-generated, do not edit" — `search_code` the generated-file banner text, then check for local modifications. The next regeneration silently reverts them.
|
|
43
|
+
|
|
44
|
+
## Test-time type erosion
|
|
45
|
+
|
|
46
|
+
- [ ] Mocks and test doubles typed as `any` or with a partial/loose shape rather than satisfying the real interface. A production interface change that should break a test compile-time instead breaks nothing, because the mock never had to agree with the real type in the first place — the very place a type error would be cheapest to catch is where it's silenced.
|
|
47
|
+
|
|
48
|
+
## Out of static reach
|
|
49
|
+
|
|
50
|
+
- Whether a runtime validator's schema is actually kept in sync with the static type it's meant to justify — that's a manual diff, not a probe.
|
|
51
|
+
- Whether a suppression's stated reason is still true today.
|
|
52
|
+
- Runtime type errors that never surface as a thrown exception (silent coercion, e.g. JS implicit `NaN` propagation).
|
|
53
|
+
- The actual JS/Python values flowing through an `any`/`Any`-typed path in production.
|
|
54
|
+
|
|
55
|
+
## Severity guidance
|
|
56
|
+
|
|
57
|
+
| Situation | Severity |
|
|
58
|
+
|---|---|
|
|
59
|
+
| No type checker configured for a typed language | High |
|
|
60
|
+
| Boundary data trusted via assertion instead of runtime validation | High |
|
|
61
|
+
| Root-level suppression scope covering most of the source tree | High |
|
|
62
|
+
| Generated types no longer regenerated, drifting silently | Medium |
|
|
63
|
+
| Hand-edits inside a file marked auto-generated | Medium |
|
|
64
|
+
| Suppression directive with no reason and no expiry mechanism | Medium |
|
|
65
|
+
| Lint rule disabled globally rather than at the violating line | Medium |
|
|
66
|
+
| Dense cluster of suppressions in one module | Medium |
|
|
67
|
+
| Isolated, justified suppression with a linked reason | Low |
|
|
68
|
+
| `@ts-expect-error` used correctly (fails when stale) | Info |
|
|
@@ -4,45 +4,55 @@ Gate: a published package manifest or a release workflow was detected.
|
|
|
4
4
|
|
|
5
5
|
Every published thing has consumers you cannot see. This module asks whether a consumer who upgrades will survive it.
|
|
6
6
|
|
|
7
|
+
The gate also fires for a deployed *service* with a release workflow and no package manifest — the discipline transfers with one adjustment. A library's consumers pin a version and choose when to upgrade, so semver's compatibility unit (a versioned public API surface, per [semver.org 2.0.0](https://semver.org/)) applies directly. A service normally has exactly one deployed version running at a time — nobody pins it — so "breaking change" there is really a question of API/endpoint deprecation and sunset discipline (cross-reference `api.md`'s Compatibility section and the Deprecation checks below), not a semver bump on the deployable artefact. Apply the Public-surface and Breaking-change checks below to the service's *API contract* version (`/v1`, a schema version field) rather than to a build number nobody consumes.
|
|
8
|
+
|
|
7
9
|
## Public surface
|
|
8
10
|
|
|
9
|
-
- [ ] What is public is stated.
|
|
10
|
-
- [ ] Internal-only exports are marked internal, or not exported. `find_callers` on each export — one with only in-repo callers is a candidate to unexport.
|
|
11
|
-
- [ ] Types and schemas that appear in public signatures are part of the contract, including their optional fields.
|
|
12
|
-
- [ ] Configuration keys, CLI flags, environment variables, and on-disk formats are public surface too.
|
|
11
|
+
- [ ] What is public is stated. `search_code` the manifest's `exports` map, its `main`/`module`/`types` fields, Python's `__all__`, or a dedicated barrel file re-exporting a curated subset. If none exists, that absence is the finding itself — everything exported is public by accident, and every internal rename becomes a breaking change nobody planned for.
|
|
12
|
+
- [ ] Internal-only exports are marked internal, or not exported. `find_callers` on each export — one with only in-repo callers is a candidate to unexport; one still called from outside the package is genuinely public and stays.
|
|
13
|
+
- [ ] Types and schemas that appear in public signatures are part of the contract, including their optional fields. `find_symbol` each type referenced by an exported function's signature and confirm whether it is itself exported. A type that is structurally reachable through a public function but never separately exported is an accidental contract surface — a consumer can still extract it with `ReturnType`/`Parameters`, even though nobody declared it public.
|
|
14
|
+
- [ ] Configuration keys, CLI flags, environment variables, and on-disk formats are public surface too. `search_code` the CLI argument parser or config schema definition, then cross-check each key against the README and CHANGELOG — an undocumented flag is still a promise the moment one consumer starts depending on it, documented or not.
|
|
13
15
|
|
|
14
16
|
## Breaking-change discipline
|
|
15
17
|
|
|
16
|
-
- [ ] Version numbers follow a stated scheme, and breaking changes actually bump the breaking component.
|
|
17
|
-
- [ ] For each recent change to public surface, classify it: added (minor), fixed (patch), removed or narrowed (major).
|
|
18
|
-
- [ ] These are breaking even when they look small: narrowing an accepted input, adding a required parameter, changing a default, changing an error type, changing a return shape, renaming a config key, tightening validation.
|
|
19
|
-
- [ ] Behavioural breaks count, not only signature breaks. Same types, different meaning is worse — it compiles and misbehaves.
|
|
18
|
+
- [ ] Version numbers follow a stated scheme, and breaking changes actually bump the breaking component. Read CONTRIBUTING, README, or the manifest itself for a stated semver policy. Under semver 2.0.0 itself, a `0.x` package has made no compatibility promise at all — say so rather than holding it to a discipline it never adopted. Note that an ecosystem's tooling may still layer its own convention on top of the spec's silence (npm and Cargo's default caret range treats `0.x.y` as compatible with `0.x.z` for `y ≥ z`, patch-like) — check the actual range operator consumers use rather than assuming the spec settles it; this is a genuine, unresolved point of disagreement among practitioners, not a mistake to flag on sight.
|
|
19
|
+
- [ ] For each recent change to public surface, classify it: added (minor), fixed (patch), removed or narrowed (major). The probe is an actual diff, not memory: `find_symbol` the current exported signature against what the previous git tag's source held, or against the CHANGELOG's own prior entries where tags don't exist, and report any commit whose real diff does not match its claimed classification.
|
|
20
|
+
- [ ] These are breaking even when they look small: narrowing an accepted input, adding a required parameter, changing a default, changing an error type, changing a return shape, renaming a config key, tightening validation. Apply this list to every signature the diff above actually touched — a check run with no diff behind it is a guess, not this check.
|
|
21
|
+
- [ ] Behavioural breaks count, not only signature breaks. Same types, different meaning is worse — it compiles and misbehaves. This one is necessarily `read`-tier: there is no structural probe for a behaviour change on an identical signature, so read the changelog and PR descriptions for language implying it — "now returns", "previously", "fixed to actually" — and state the lower confidence explicitly in the finding.
|
|
20
22
|
|
|
21
23
|
## Deprecation
|
|
22
24
|
|
|
23
|
-
- [ ] Removals are preceded by a deprecation with a runtime warning and a stated replacement.
|
|
24
|
-
- [ ] Deprecations have a removal version, not just a label. Cross-reference `future.md`: an undated deprecation is kept forever.
|
|
25
|
-
- [ ] Both paths work during the overlap, and the old one is genuinely equivalent.
|
|
26
|
-
- [ ] Deprecation warnings are emitted once per process, not once per call.
|
|
25
|
+
- [ ] Removals are preceded by a deprecation with a runtime warning and a stated replacement. For a library: `search_code` for `@deprecated`, `console.warn(.*deprecat`, `DeprecationWarning`, or the language equivalent, then read whether the warning text names the replacement. For an HTTP API: `search_code` for a `Deprecation` response header being set (RFC 9745 — a Structured Field date, not free text) rather than only a docs mention. Either way, a warning that only says "this is deprecated" gives the consumer nothing to migrate to.
|
|
26
|
+
- [ ] Deprecations have a removal version, not just a label. Read the deprecation message or its doc comment for a stated version. For an HTTP API, the removal date is a `Sunset` header (RFC 8594) — a concrete date, not a version label — and RFC 9745 requires it never predate the `Deprecation` header's own date on the same response; `search_code` both header values together and diff them where both are present. Cross-reference `future.md`: an undated deprecation is kept forever.
|
|
27
|
+
- [ ] Both paths work during the overlap, and the old one is genuinely equivalent. `find_callers` on the deprecated symbol to confirm it is still exercised — a deprecated path with zero callers cannot regress, but it also means the warning itself is untested. `find_symbol` both the old and new paths and read whether the old one still delegates to working logic or has decayed into a stub returning a stale value.
|
|
28
|
+
- [ ] Deprecation warnings are emitted once per process, not once per call. Read the warning call site: is it guarded by a memoised flag, or does it fire unconditionally inside the function body? `find_callers` on the containing function to check whether it sits in a loop or a hot path — an unconditional warning there floods the log and trains consumers to ignore every warning, including the ones that matter.
|
|
27
29
|
|
|
28
30
|
## Data and state compatibility
|
|
29
31
|
|
|
30
|
-
- [ ] Persisted formats carry a version field. Without one, the next reader must guess.
|
|
31
|
-
- [ ] The new version reads state written by the previous version.
|
|
32
|
-
- [ ] Forward compatibility is decided deliberately: does an older version encountering newer state fail loudly or corrupt quietly?
|
|
33
|
-
- [ ] Migrations of on-disk or cached state are idempotent and recoverable if interrupted.
|
|
32
|
+
- [ ] Persisted formats carry a version field. `search_code`/`find_symbol` the schema or serialisation definition for a `version`, `schemaVersion`, or `_v` field. Without one, the next reader must guess the shape from content alone.
|
|
33
|
+
- [ ] The new version reads state written by the previous version. `find_symbol` the deserialisation or migration function and read whether it branches on the version field or assumes the latest shape unconditionally — an unconditional assumption is the finding, not a hypothetical to flag as risk.
|
|
34
|
+
- [ ] Forward compatibility is decided deliberately: does an older version encountering newer state fail loudly or corrupt quietly? Read the deserialiser's fallback branch for an unrecognised version. Silently defaulting or coercing is the finding; throwing is the only acceptable answer — and "no fallback branch at all" means it currently throws an unrelated, confusing error rather than a compatibility message, which is its own smaller finding.
|
|
35
|
+
- [ ] Migrations of on-disk or cached state are idempotent and recoverable if interrupted. `find_symbol` the migration runner and check whether it tracks applied migrations — a table, log, or marker file — versus re-running everything blindly on every start. No tracking means a crash mid-migration corrupts state on the next boot.
|
|
34
36
|
|
|
35
37
|
## Runtime and platform
|
|
36
38
|
|
|
37
|
-
- [ ] Declared engine and platform support matches what the code and dependencies actually require.
|
|
38
|
-
- [ ] Minimum supported versions are tested, not just declared.
|
|
39
|
-
- [ ] Newly used runtime APIs do not silently raise the real minimum below the declared one.
|
|
39
|
+
- [ ] Declared engine and platform support matches what the code and dependencies actually require. Read the manifest's `engines` or `python_requires` field, then `search_code` for syntax that needs a newer runtime than declared — optional chaining, top-level `await`, a stdlib call added in a later minor — and cross-check each dependency's own declared minimum against the project's.
|
|
40
|
+
- [ ] Minimum supported versions are tested, not just declared. `search_code` the CI workflow's matrix definition for the runtime version list — a matrix of one entry supports one version, regardless of what the manifest promises.
|
|
41
|
+
- [ ] Newly used runtime APIs do not silently raise the real minimum below the declared one. `search_code` for recently introduced syntax or stdlib calls and check each against the feature set of the declared minimum version — a single call gated on a newer API narrows support for everyone, whatever the manifest still claims.
|
|
40
42
|
|
|
41
43
|
## Communication
|
|
42
44
|
|
|
43
|
-
- [ ] Changes are recorded somewhere a consumer will find — changelog, release notes, or migration guide.
|
|
44
|
-
- [ ] Breaking changes state the migration, not just the fact.
|
|
45
|
-
- [ ] Entries correspond to real commits; a changelog nobody maintains is worse than none because it is trusted.
|
|
45
|
+
- [ ] Changes are recorded somewhere a consumer will find — changelog, release notes, or migration guide. `search_code` for `CHANGELOG.md`, `HISTORY.md`, or a release-notes directory, then check whether recent merged PRs or tagged commits have a corresponding entry — an untouched changelog next to an active commit log is the finding.
|
|
46
|
+
- [ ] Breaking changes state the migration, not just the fact. Read changelog entries tagged `BREAKING` or attached to a major bump for concrete migration instructions — "X changed" is not the same disclosure as "X changed, do Y instead".
|
|
47
|
+
- [ ] Entries correspond to real commits; a changelog nobody maintains is worse than none because it is trusted. Spot-check a handful of recent entries against the actual git log or diff for the version they claim — a description with no matching commit, or a commit with no matching entry, means the changelog has drifted from the source it claims to summarise.
|
|
48
|
+
|
|
49
|
+
## Out of static reach
|
|
50
|
+
|
|
51
|
+
- Whether real consumers have actually upgraded, and whether the upgrade succeeded for them.
|
|
52
|
+
- Whether a behavioural break is noticed by anyone — that needs usage telemetry or support tickets, not the repository.
|
|
53
|
+
- Whether a stated deprecation timeline was honoured in practice, or quietly extended past its own removal version.
|
|
54
|
+
- Runtime behaviour on a platform or version combination outside the CI matrix.
|
|
55
|
+
- Whether external documentation (a hosted docs site) still matches the in-repo CHANGELOG.
|
|
46
56
|
|
|
47
57
|
## Severity guidance
|
|
48
58
|
|
|
@@ -54,6 +64,7 @@ Every published thing has consumers you cannot see. This module asks whether a c
|
|
|
54
64
|
| Persisted format with no version field | High |
|
|
55
65
|
| Removal with no prior deprecation | Medium |
|
|
56
66
|
| Deprecation with no removal version | Medium |
|
|
67
|
+
| `Sunset` header dated earlier than the `Deprecation` header on the same response | High |
|
|
57
68
|
| Declared engine support wider than what the code requires | Medium |
|
|
58
69
|
| No declared public-surface boundary | Medium |
|
|
59
70
|
| Breaking change documented without a migration path | Low |
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Visual Design
|
|
2
|
+
|
|
3
|
+
Does the interface read correctly? Gate: a UI framework was detected.
|
|
4
|
+
|
|
5
|
+
`design-system.md` asks whether the values come from one vocabulary. This module asks whether the result communicates: what is important, what belongs together, what state the surface is in, and what it does on a small screen.
|
|
6
|
+
|
|
7
|
+
Two neighbouring modules own pieces of this on purpose — do not restate them. `flow-integrity.md` owns whether the loading/empty/error triad is **wired**; this module owns whether it is **designed**. `accessibility.md` owns contrast ratios, focus visibility and target size as compliance; this module owns emphasis, rhythm and density as craft. Cross-reference in both directions.
|
|
8
|
+
|
|
9
|
+
A caution before starting: much of visual quality is genuinely not decidable from source. Read the layout and the values, report what the code actually determines, and put the rest under coverage gaps. **A confident aesthetic verdict with no evidence is worse than an honest gap.** Every check below is anchored to a declaration, a value, or a class that can be read directly — not to an impression of how it looks rendered.
|
|
10
|
+
|
|
11
|
+
## Hierarchy
|
|
12
|
+
|
|
13
|
+
- [ ] Emphasis comes from size, weight, contrast and spacing — not from position alone. `search_code` the heading component/classes used across views and diff their `font-size`/`font-weight` values — if every heading level resolves to the same computed size, order is the only signal of importance, which is not hierarchy.
|
|
14
|
+
- [ ] Hierarchy survives without colour. Read the primary and secondary action components side by side: if the only declared difference between them is a colour token (`bg-primary` vs `bg-secondary`) with identical size, weight, and border, colour is carrying the whole distinction — readable directly from the class list, no rendering needed. Cross-reference the colour-only check in `accessibility.md`.
|
|
15
|
+
- [ ] One primary action per view. `search_code` the primary-button variant/class and count occurrences within a single page or view component's render tree — two hits in one view is two competing primaries; read the surrounding markup to confirm both are visible at once rather than in alternate states.
|
|
16
|
+
- [ ] Secondary and destructive actions are visually subordinate to the primary one, and destructive actions are distinguishable from merely secondary ones by more than colour. `search_code` the destructive-variant class/component and read whether it also differs in icon, copy, or a confirmation step — a destructive button that is only a red version of the secondary button fails the moment the token gets swapped in a redesign.
|
|
17
|
+
- [ ] Supporting text is de-emphasised by weight or colour role, not by shrinking below the readable floor. `search_code` the muted/secondary text token or class for its resolved `font-size` — below ~12–14px in a content role it has traded legibility for hierarchy instead of using weight or colour role.
|
|
18
|
+
|
|
19
|
+
## Rhythm and grouping
|
|
20
|
+
|
|
21
|
+
- [ ] Related elements are closer to each other than to unrelated ones. Read a representative group component's spacing declarations and compare the gap between its own children to the margin separating it from the next group — equal values (`gap-4` inner, `mb-4` outer) means proximity carries no signal; this is a literal comparison, not a judgment call.
|
|
22
|
+
- [ ] Spacing between sections is consistent for the same level of nesting. `search_code` the section/wrapper component's spacing prop or class across the pages that use it — distinct values at the same nesting depth for the same role is drift, listable straight from the class strings.
|
|
23
|
+
- [ ] Alignment is deliberate: elements share edges. `search_code` sibling components inside the same container and compare their declared horizontal padding/margin — a one-off asymmetric value on a single sibling among otherwise-matching siblings is the static signature of a near-alignment bug. True pixel-level misalignment arising from box-model interactions still needs a rendered check — note it under Out of static reach.
|
|
24
|
+
- [ ] Density is consistent within a surface. `search_code` the padding/gap values used by components rendered together on one route (a table and a card on the same dashboard, say) — a dense table (`p-1`, `gap-1`) beside an airy card (`p-6`, `gap-6`) on one screen is readable directly from the two class lists.
|
|
25
|
+
- [ ] Vertical rhythm holds — spacing derives from the type scale rather than being chosen per block. Cross-reference the scale established in `design-system.md`; `search_code` for `margin-bottom`/`margin-top` on text elements and check each value is a step on that scale rather than a one-off number.
|
|
26
|
+
|
|
27
|
+
## Typography in use
|
|
28
|
+
|
|
29
|
+
`design-system.md` checks the scale exists. This checks it is used well.
|
|
30
|
+
|
|
31
|
+
- [ ] Line length lands in 45–90 characters, ideally near 66 for body copy. `search_code` for the prose/body-copy container and check for a `max-width` in `ch` units or an equivalent px value (~600–700px at typical body size) — its absence in a fluid-width layout is a readability defect visible in the container's own declaration.
|
|
32
|
+
- [ ] Line height is around 1.5 for body text (1.4–1.6), rising to 1.6–1.7 where the measure runs long, and 1.1–1.25 for headings. `search_code` for `line-height` on the body-text and heading tokens/classes — a single shared value applied to both (common when only one `line-height` token exists) is wrong for one of them by construction.
|
|
33
|
+
- [ ] Body text does not go below the project's readable floor. `search_code` the body-text token/class for its resolved `font-size` — anything under ~14px in a content role (not a caption or label role) needs a stated reason, found in the same declaration or flagged by its absence.
|
|
34
|
+
- [ ] Numeric and tabular data uses tabular figures or a monospaced face where columns must align. `search_code` the table/numeric-cell component for `font-variant-numeric` or a monospace font stack — a table rendering right-aligned numeric columns with neither will visibly misalign digit widths.
|
|
35
|
+
- [ ] Fluid type via `clamp()` or container queries where the layout spans phone to desktop. `search_code` the type-scale source for `clamp(` — its absence alongside a large declared breakpoint set (four or more, per `design-system.md`) means every size is fixed per breakpoint; worth flagging only at that scale.
|
|
36
|
+
|
|
37
|
+
## State coverage
|
|
38
|
+
|
|
39
|
+
The states a browser gives you free are the ones most often left unstyled:
|
|
40
|
+
|
|
41
|
+
- [ ] `:hover`, `:focus-visible`, `:active` and `:disabled` are all styled for every interactive element. `search_code` the button/input component's style definitions for each of the four selectors (or their `hover:`/`focus-visible:`/`active:`/`disabled:` utility variants) and list which are absent per component — `:disabled` is the one most often skipped, and the one that most confuses a user.
|
|
42
|
+
- [ ] No affordance exists only on hover. `search_code` for `hover:opacity`/`hover:visible`/`:hover { display` patterns that reveal an action, then check the same rule block for a `:focus-within` or `group-focus` counterpart — a reveal driven only by `:hover` has no touch or keyboard path.
|
|
43
|
+
- [ ] Disabled controls communicate *why*, or the control is not disabled in the first place. `search_code` where the disabled condition is set (`disabled={`) and read the surrounding markup for a tooltip, helper text, or `aria-describedby` explaining it — a bare `disabled` prop with nothing else nearby is a dead end with no stated cause.
|
|
44
|
+
- [ ] The application states — loading, empty, no-results, error, success, offline — each have a designed treatment, not just a wired one. For each state component `flow-integrity.md` confirms is wired, `find_symbol` it and read what it renders: a bare string (`<p>Loading...</p>`) is wired but undesigned; a skeleton, icon, or illustration matching the content shape is designed.
|
|
45
|
+
- [ ] A skeleton that does not match the shape of the content it replaces causes the layout shift it was meant to prevent. Read the skeleton component's markup against the loaded-state component it stands in for — a fixed count of placeholder lines against a variable-length list, or a skeleton height differing from the real content's, is a static mismatch.
|
|
46
|
+
- [ ] Empty states say what to do next, not only that there is nothing. `find_symbol` the empty-state component and read whether it renders a call-to-action element alongside the message — text with no button or link is a dead end for a first-time user.
|
|
47
|
+
- [ ] Error states name the problem and the recovery. `search_code` for the literal error copy ("Something went wrong", "An error occurred") and read whether a retry button or next step renders alongside it — generic copy with no action is a wired triad, not a designed one.
|
|
48
|
+
|
|
49
|
+
## Responsive behaviour
|
|
50
|
+
|
|
51
|
+
- [ ] Breakpoints sit where the layout actually breaks, not at device names. `design-system.md` already checks the declared breakpoint scale itself; this module's angle is whether one specific layout's column-count change lines up with it — `search_code` the layout component for an inline `@media` query with a value that does not match the declared scale.
|
|
52
|
+
- [ ] Every layout that is multi-column at desktop has a defined single-column behaviour. `search_code` the grid/flex container's declarations across its breakpoint variants — a `grid-template-columns` set with three or more columns and no narrower override (no `sm:`/`md:` variant, no matching `@media` rule) will not collapse; confirm from the declarations, not from the assumption that flexbox always wraps.
|
|
53
|
+
- [ ] Tables, charts and wide fixed-width content have an explicit small-screen strategy (scroll container, card fallback, column priority). `search_code` the table/chart wrapper for `overflow-x: auto`/`scroll`, a conditional card-fallback render, or a column-priority prop — absent all three, the wrapper overflows on narrow screens, provable straight from its own declarations.
|
|
54
|
+
- [ ] Nothing depends on hover or on precise pointer targeting for a core action. Cross-reference the hover-only affordance check above and the target-size check in `accessibility.md` — a core action gated behind either is unreachable to a touch user; report it once, in whichever module surfaced it first.
|
|
55
|
+
- [ ] Content order in the DOM matches the intended reading order at every breakpoint. `search_code` for the CSS `order` property, `grid-area` placement, or `position: absolute` in layout components, and compare against the JSX/template source order — a CSS-driven reorder that diverges from source order is both a visual and a keyboard-order defect, provable by comparing the two orderings directly.
|
|
56
|
+
|
|
57
|
+
## Motion
|
|
58
|
+
|
|
59
|
+
- [ ] Animation has a purpose — continuity, feedback, or direction of attention. `search_code` for `animate-`/`transition-`/`@keyframes` usage and read what triggers each — an animation with no state change, user action, or data arrival driving it (a looping decorative animation on a primary flow) is decorative motion, provable from its trigger, not from taste.
|
|
60
|
+
- [ ] Durations come from a bounded set, and are short for feedback (roughly 100–200ms) and longer only for transitions that move something across the screen. `search_code` for `duration-`/`transition-duration:` values and list the distinct numbers found — feedback interactions (hover, click, toggle) resolving above ~200ms, or an unbounded spread of one-off durations, is the static signature.
|
|
61
|
+
- [ ] `prefers-reduced-motion` is honoured wherever motion exists. `search_code` for it — its absence alongside animation is a finding here as well as in `accessibility.md`; flag it once, in whichever module is running.
|
|
62
|
+
- [ ] Nothing animates layout properties on a hot path where a transform would do. `search_code` for `transition:`/`animate-` rules whose property list includes `top`, `left`, `width`, `height`, or `margin` instead of `transform`/`opacity` — each is a forced-layout animation, verifiable from the property name alone; cross-reference `performance.md` for the runtime cost.
|
|
63
|
+
|
|
64
|
+
## Out of static reach
|
|
65
|
+
|
|
66
|
+
- Whether the composition is balanced, and whether the visual weight lands where the product wants attention.
|
|
67
|
+
- Pixel-level alignment and spacing as actually rendered, beyond what the declared values predict — box-model interactions (collapsed margins, sub-pixel rounding) can still shift things.
|
|
68
|
+
- How the surface degrades at 200% zoom and at 320px, beyond what the declarations promise.
|
|
69
|
+
- Whether motion feels smooth at runtime, and on a mid-range device — a bounded duration set says nothing about actual frame rate.
|
|
70
|
+
- Brand fit and tone.
|
|
71
|
+
|
|
72
|
+
Recommend a browser pass or a visual-regression suite for these rather than asserting them.
|
|
73
|
+
|
|
74
|
+
## Severity guidance
|
|
75
|
+
|
|
76
|
+
| Situation | Severity |
|
|
77
|
+
|---|---|
|
|
78
|
+
| Core action available only on hover | High |
|
|
79
|
+
| Hierarchy carried by colour alone | High |
|
|
80
|
+
| No small-screen strategy for content that overflows | High |
|
|
81
|
+
| Interactive element with no styled focus or disabled state | High |
|
|
82
|
+
| Empty or error state that offers no way forward | Medium |
|
|
83
|
+
| Two competing primary actions in one view | Medium |
|
|
84
|
+
| Skeleton whose shape does not match its content | Medium |
|
|
85
|
+
| Unbounded line length on body copy | Medium |
|
|
86
|
+
| Grouping not expressed by proximity | Medium |
|
|
87
|
+
| One global line height across body and display type | Low |
|
|
88
|
+
| Near-alignment — edges off by a few pixels | Low |
|
|
89
|
+
| Decorative motion with no reduced-motion fallback | Low |
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Web Metadata
|
|
2
|
+
|
|
3
|
+
What does this page tell a machine that is not the user's browser? Gate: the project serves HTML to a browser.
|
|
4
|
+
|
|
5
|
+
`accessibility.md` owns the document's semantics for assistive technology — the reader that is a person using different tools. This module owns everything the document declares for readers that are not people at all: search crawlers, link-unfurling bots, app-store scrapers, translation and locale negotiation. A page can be fully accessible and still be invisible to search, misrepresented when shared, or silently `noindex`ed in production — that is this module's entire scope, and none of it needs a running browser to check, because every signal here is a literal tag, header, or file.
|
|
6
|
+
|
|
7
|
+
## Per-page metadata
|
|
8
|
+
|
|
9
|
+
- [ ] `<title>` and meta description present on every route — `search_code` the templating layer (`generateMetadata`, `<Head>`, a layout's `<title>` block, or the SSG frontmatter convention) for whether these are set at all, and whether a templated route (`/product/[id]`) derives them from the record's own data or falls back to one hardcoded string for every instance.
|
|
10
|
+
- [ ] Title and description are unique per route, not merely capable of being unique — read the metadata-generating function itself (`generateMetadata`, the `<Head>` component, or the frontmatter loader) and confirm the strings are built from the route's own params or data record, not returned as one constant reused for every match of that route pattern. Google rewrites both fields against query intent at serve time — an estimated 60–70% of meta descriptions and any title it judges mismatched or oversized — so the audit's job is confirming these are present, unique, and well-formed, never that a given string "will display" in the SERP; that is live behaviour, not a source-level fact.
|
|
11
|
+
- [ ] Canonical URL declared, and specifically absent on any page reachable at more than one path (with and without trailing slash, via a query-string variant, via both `www` and bare domain) — `search_code` for `rel="canonical"` or the framework's canonical helper.
|
|
12
|
+
- [ ] At most one `rel="canonical"` per page, and paginated routes (page 2 and beyond) never canonicalise back to page 1 — `search_code` for more than one canonical tag rendered on the same route (Google ignores all of them when it finds two) and read the pagination template's canonical logic specifically; a paginated list is not a duplicate of its first page, and canonicalising it away deindexes that page's content entirely.
|
|
13
|
+
|
|
14
|
+
## Social and crawler surface
|
|
15
|
+
|
|
16
|
+
- [ ] The Open Graph protocol's four *required* properties are present — `og:title`, `og:type`, `og:image`, `og:url` — `search_code` for the `og:` prefix in templates or a metadata helper. `og:description` is not part of the spec's required set but is universally expected by unfurlers; treat its absence as a real gap, just a different severity than a missing required property.
|
|
17
|
+
- [ ] `og:image` is an absolute URL — `search_code` its construction and confirm it is built against an absolute base URL (a full `https://` origin), not a relative path an unfurler cannot resolve; this one is a hard requirement, unlike the pair below. `og:image:width`/`og:image:height` are optional per spec, not required — their absence just forces the consuming platform to download the image before it can render a preview rather than sizing it immediately, so `search_code` for them and note the gap as a performance/reliability nit, not a spec violation. Where the image dimensions are computable, check they land near 1200×630 (1.91:1) — the size the major unfurlers (Facebook, LinkedIn, Slack, Discord, iMessage, WhatsApp) actually render well, distinct from and not stated by the spec itself.
|
|
18
|
+
- [ ] `search_code` for `twitter:card` and confirm its values are derived from the same source as the Open Graph tags, not a second, independently-maintained copy that has drifted. X falls back to `og:title`/`og:description`/`og:image` when `twitter:*` tags are absent entirely, so a page with complete Open Graph tags and no `twitter:*` tags at all is not itself a defect — only flag `twitter:*` values that are present and diverged from their Open Graph counterparts.
|
|
19
|
+
- [ ] A route with no custom Open Graph data falls back to a generic, route-appropriate default rather than silently inheriting the homepage's title and image — read the metadata function's fallback branch and confirm it returns a default object distinct from the homepage's own metadata, not the same object reused for both.
|
|
20
|
+
|
|
21
|
+
## Indexing control
|
|
22
|
+
|
|
23
|
+
- [ ] `robots.txt` present — read `public/robots.txt` (or the framework's `robots.ts`/`robots.js` generator) directly and list every `Disallow` rule; confirm each blocked path is deliberate (an admin path) rather than a rule that blocks the whole site by accident (`Disallow: /`).
|
|
24
|
+
- [ ] Per-page `noindex` directives agree with `robots.txt` — `search_code` for `noindex` in templates or a metadata helper, and check whether it is gated by an environment variable. **A `noindex` meta tag hardcoded into a shared layout, meant only for staging, is a silent production traffic outage** — nothing errors, nothing logs, the site simply stops appearing in search results.
|
|
25
|
+
- [ ] No path carries both a `robots.txt` `Disallow` and a page-level `noindex`. Cross-reference the `Disallow` rule list from the check above against the `noindex` call sites found by `search_code` — a URL that is disallowed can never have its `noindex` tag read, because the crawler is blocked before it ever fetches the page. Per Google's own documentation, this makes the deindex attempt silently fail: the crawler never sees the instruction, and the URL can still surface in results (address and anchor text) if any external site links to it. The fix is one signal, not both — `noindex` a crawlable page, or `Disallow` a page you accept may still appear by URL alone, never both on the same path.
|
|
26
|
+
- [ ] Sitemap generation exists — `search_code` for a sitemap route or build-time generator — and `robots.txt` actually references it. A generated sitemap nothing links to is unreachable by any crawler that respects the standard discovery path. Weigh this against the site's actual shape first: Google's own guidance is that a well-linked site is discoverable by ordinary crawling without a sitemap at all, and a sitemap earns its keep specifically on a large site, a new site with few inbound links, or one carrying rich media (video, images) or News content — read the route count and check for those conditions before treating a missing sitemap as a finding on a small, densely cross-linked project.
|
|
27
|
+
- [ ] Sitemap entries match the route table. For a committed static `sitemap.xml`, diff its `<url>` entries against the route definitions found by `search_code`/`repo_map`; for a build-time generator (`sitemap.ts`, `next-sitemap` config), read the generator's route source and confirm it enumerates the app's actual route set rather than a hand-maintained list kept alongside it. These are two different failure modes — say which one you checked.
|
|
28
|
+
|
|
29
|
+
## Structured data and locale
|
|
30
|
+
|
|
31
|
+
- [ ] JSON-LD or microdata structured data present where the content type calls for it (product, article, FAQ, breadcrumb) — `search_code` for `application/ld+json` and confirm the fields it declares (price, availability, author, date) match what the page actually renders. Mismatched structured data is worse than none — it is the kind of thing that gets a listing penalised, not ignored. Schema markup is an eligibility signal for a rich result, never a ranking signal — Google still decides whether to render it, so do not describe present-and-correct structured data as something that "improves ranking."
|
|
32
|
+
- [ ] No structured data type the project emits is one Google has stopped consuming. `search_code` the `@type` values inside each `application/ld+json` block and check against the current retirement list — `FAQPage` (rich-result support removed May 2026), and `Book Actions`, `Course Info`, `ClaimReview`, `Estimated Salary`, `LearningVideo`, `SpecialAnnouncement`, and `VehicleListing` (removed June 2025). A hit is not broken code — it still validates and runs — but it is dead investment: nothing on the results page consumes its output any more.
|
|
33
|
+
- [ ] `search_code` for `<html lang=` and confirm the value is bound to a locale variable or route param, not a hardcoded string literal (`lang="en"`) that would be wrong for every non-default locale served.
|
|
34
|
+
- [ ] `search_code` for `hreflang` and read the loop or map that generates the tags; confirm it iterates the full locale list — including a self-reference to the current locale and one `x-default` entry, used once per cluster for the fallback page, not per locale — rather than emitting a single hardcoded alternate. Cross-reference `i18n.md` for the locale set itself; this module only checks that the linking logic is complete.
|
|
35
|
+
- [ ] `hreflang` is reciprocal. Read the tag-generation logic and confirm every locale variant links to every other variant *and to itself* — a page that declares alternates but is not linked back by them is, by Google's own reporting, the single most common `hreflang` implementation error. Also check the locale codes themselves against a real list (`en-GB` not `en-UK`, `pt-BR` not `pt-BZ`, hyphens not underscores) — malformed codes are not rejected with an error, they are silently ignored, so a typo here fails exactly like the tag being absent.
|
|
36
|
+
|
|
37
|
+
## Identity and stability
|
|
38
|
+
|
|
39
|
+
- [ ] `search_code` for `<link rel="icon"` and a `manifest.json`/`manifest.webmanifest` file, and confirm the manifest's icon set is complete where the project supports "add to home screen."
|
|
40
|
+
- [ ] Redirect and trailing-slash policy applied consistently — `search_code` the framework's `trailingSlash` setting (or equivalent redirect middleware) and confirm internal links match it; a mismatch means every internal link either triggers an extra redirect hop or a duplicate-content path search engines will flag.
|
|
41
|
+
- [ ] A "soft 404" — a not-found page that renders correctly but returns HTTP 200 — `search_code` the not-found handler and confirm it sets the actual status code, not just the visible content. This is the standard failure mode of client-side routing in an SPA: the server serves the shell successfully (200) and only the client-side router decides, after the fact, to render a "not found" view — the status line never reflects it. Where the route is SSR- or edge-rendered, confirm the handler returns a real non-200 status directly; where it is a pure client-side fallback with no server-side hook, check for the accepted mitigation instead — a JS redirect to a path the server does 404 on, or an injected `noindex` — and flag it if neither exists. A soft 404 is invisible to monitoring and, since crawlers classify it only after executing the page's JavaScript and inspecting the rendered DOM, it is invisible to a source read alone on any route where that JavaScript's actual runtime behaviour was not itself verified.
|
|
42
|
+
- [ ] URL structure changes leave redirects behind — cross-reference `versioning-compatibility.md` for any route renamed or restructured, then read the redirect config or middleware (`next.config` `redirects()`, `vercel.json`, nginx rules) for an entry covering the old path pattern. An indexed URL with no matching redirect entry loses its accumulated search ranking with no way to recover it under the new path.
|
|
43
|
+
|
|
44
|
+
## Out of static reach
|
|
45
|
+
|
|
46
|
+
- Whether Google keeps a checked title or description as-written, or rewrites it against query intent — Google reports rewriting the majority of meta descriptions and any title it judges mismatched or oversized; a source read can only confirm the string is present, unique, and well-formed, never that it is what a searcher will actually see.
|
|
47
|
+
- How a shared link actually renders inside Slack, iMessage, WhatsApp, or X — each platform's unfurler has its own quirks and caching behaviour that only a live share can reveal.
|
|
48
|
+
- Actual search engine indexing status and ranking — `robots.txt` and meta tags state intent; whether a crawler honoured it requires the engine's own tools.
|
|
49
|
+
- Whether HTTP responses actually match the source-level claims verified above — a redirect entry proven to exist in config, or a status-code branch read in the not-found handler, still needs a live request to confirm the server issues `301`/`404` as written rather than something a proxy or CDN rewrites in front of it.
|
|
50
|
+
- Whether a page's rendered `<title>`, description, or `lang` value in the browser DOM matches what the source-level generator returns — a runtime bug downstream of correct source (a stale cache, a stale build) is invisible to a source read.
|
|
51
|
+
- Whether the sitemap's `lastmod` values are accurate, or whether a committed static sitemap was actually regenerated after the most recent route change the diff checked against.
|
|
52
|
+
- Rendered performance of any of the above on a client-side-rendered route where metadata is injected after first paint — some crawlers execute JavaScript, some do not, and this module cannot tell you which matters for a given page without knowing the target platform.
|
|
53
|
+
|
|
54
|
+
## Severity guidance
|
|
55
|
+
|
|
56
|
+
| Situation | Severity |
|
|
57
|
+
|---|---|
|
|
58
|
+
| `noindex` shipped to production on an indexable route | Critical |
|
|
59
|
+
| Page `Disallow`ed in `robots.txt` while also carrying `noindex` — the noindex is never read | High |
|
|
60
|
+
| No canonical URL on a page reachable at multiple paths | High |
|
|
61
|
+
| Multiple `rel="canonical"` tags on one page, or a paginated page canonicalising to page 1 | High |
|
|
62
|
+
| URL structure changed with no redirect from the old path | High |
|
|
63
|
+
| Soft 404 returning HTTP 200 | High |
|
|
64
|
+
| Structured data fields contradicting the visible content | Medium |
|
|
65
|
+
| Missing or non-reciprocal `hreflang` on a multi-locale site | Medium |
|
|
66
|
+
| Open Graph image relative, or `og:title`/`og:type`/`og:image`/`og:url` missing | Medium |
|
|
67
|
+
| Sitemap missing on a large or poorly-linked site, or present but not referenced from `robots.txt`, or stale | Medium |
|
|
68
|
+
| Generic title/description reused across templated routes | Medium |
|
|
69
|
+
| Missing favicon or incomplete app manifest | Low |
|
|
70
|
+
| Structured data emitting a type Google no longer consumes (dead investment, not breakage) | Low |
|
|
71
|
+
| `og:image:width`/`og:image:height` absent (forces a synchronous fetch, not a spec violation) | Low |
|
|
72
|
+
| Twitter card duplicating Open Graph with drifted values | Low |
|