Skip to content

IndexNow: explain the key-verification 403 and send 5,000 URLs a day - #1897

Merged
David Pine (IEvangelist) merged 2 commits into
mainfrom
ievangelist-indexnow-403-investigation
Oct 16, 2026
Merged

David Pine (IEvangelist) merged 2 commits into
mainfrom
ievangelist-indexnow-403-investigation

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Summary

Follow-up to the failed scheduled run 38695967086.

What happened. That run was the first real submission with the new key. IndexNow answered 403 {"errorCode":"SiteVerificationNotCompleted", ...} while it was still verifying the key file, even though the preflight had just confirmed the file was live and matched config/indexnow.json. A single-URL request later the same day returned 200, and a manual run (38761142689) submitted 1,000 URLs. The cause is inferred from the timing and the response body, since IndexNow's documentation doesn't list this error code.

A verification failure still fails the run, on purpose. The run goes red (exit 1), leaves the saved state alone, and the next run retries the same window. Tests pin this.

Commit 1: explain the key-verification 403 and let re-runs save state

  • The failure message now says IndexNow is still verifying the key (expected after the first submission with a new or rotated key, and it clears on its own). It used to say "check that the key file is live", which the preflight had just confirmed. Any other 403 or 422 keeps the old hint.
  • The state upload now sets overwrite: true. Re-running the workflow is the quickest way to retry, and the first attempt has already uploaded indexnow-state, so the second upload failed with a 409 conflict.
  • A header note in the workflow describes the behavior, and that re-running from the Actions tab retries sooner than waiting for the next schedule.
  • Tests cover the run level (failed, nothing submitted, state unchanged, the next run resubmits the same window, and any other 403 still points at the key file) and the command line (cold start plus 403 exits 1, writes state_changed=true, and the summary says failed).

Commit 2: send 5,000 URLs a day instead of 1,000

This commit is separable. Drop it to stay at 1,000.

  • budgets.rotation goes from 1,000 to 5,000, so a pass over the 32,381-URL sitemap takes 7 runs instead of about 33.
  • budgets.release stays at 10,000, which is IndexNow's per-request maximum. A manual run can still set limit up to 10,000.
  • A 429 still fails the run, and its message points at lowering the budgets in config/indexnow.json.

Third-party links and affiliations

None.

Validation

Run from src/frontend, on this branch rebased onto main at 105c108:

  • pnpm exec vitest run --config vitest.config.ts tests/unit/indexnow.vitest.test.ts: 86 passed.
  • The same command with the scripts/indexnow.ts change stashed: exactly the two new wording tests fail (84 passed, 2 failed), so they pin the new message.
  • pnpm exec eslint scripts/indexnow.ts tests/unit/indexnow.vitest.test.ts: clean (exit 0).
  • pnpm exec prettier --check --end-of-line auto ../../.github/workflows/indexnow.yml config/indexnow.json scripts/indexnow.ts tests/unit/indexnow.vitest.test.ts: clean. --end-of-line auto is only because my Windows checkout has CRLF line endings; the committed files are LF.
  • pnpm exec tsc --noEmit -p .: no diagnostics in the changed files. The project reports existing errors elsewhere (for example astro.config.mjs and tests/typecheck/component-props.contracts.ts), none from this change.
  • pnpm indexnow --state-dir <temp dir> --dry-run against the live sitemap: Sitemap: 32,381 URLs, then Plan: 5,000 URLs (0 removed, 0 new, 5,000 from the rotation pass) with a budget of 5,000. Nothing was sent and no state was saved.

Not verified: overwrite: true hasn't run in a real Actions re-run. The pinned actions/upload-artifact documents it as deleting an existing artifact of the same name before uploading, and if that delete failed the result would be the same 409 as today.

While IndexNow verifies a new or rotated key it answers 403 SiteVerificationNotCompleted, even though the key file is live. The run still fails on purpose, so a green run always means the URLs were accepted. The message now says that IndexNow is still verifying the key instead of telling the reader to check a key file the run had already confirmed.

The state artifact upload now replaces the one a failed first attempt left behind, so re-running the workflow does not end in a 409 conflict.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b270b5cd-dd67-4ff9-a153-a85e8c45d5e0
The daily rotation budget goes from 1,000 to 5,000, so a pass over the 32,000-URL sitemap takes about a week instead of about a month. The release budget stays at 10,000, which is IndexNow's per-request maximum, and a manual run can still set a limit up to 10,000. A 429 still fails the run, and its message points at lowering the budgets in config/indexnow.json.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b270b5cd-dd67-4ff9-a153-a85e8c45d5e0
Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are focused and supported by regression coverage, with no unresolved findings; tests were not rerun during this review.

0 open findings

What changed in this PR

Improves IndexNow retry guidance and increases daily sitemap coverage while preserving failure behavior.

Changes:

  • Explain pending key verification and test failure, state preservation, and retry behavior.
  • Allow workflow reruns to replace the saved-state artifact.
  • Increase the daily rotation budget from 1,000 to 5,000 URLs.
File Description
src/​frontend/​tests/​unit/​indexnow.vitest.test.ts Adds key-verification failure and retry coverage.
src/​frontend/​scripts/​indexnow.ts Provides specific guidance for pending key verification.
src/​frontend/​config/​indexnow.json Raises the rotation budget to 5,000 URLs.
.github/​workflows/​indexnow.yml Enables artifact replacement and updates operational comments.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1897. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1897 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist
David Pine (IEvangelist) enabled auto-merge (squash) October 16, 2026 12:09
@IEvangelist
David Pine (IEvangelist) merged commit 486c588 into main Oct 16, 2026
20 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the ievangelist-indexnow-403-investigation branch October 16, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants