Skip to content

fix(crawler): emit page fetch metadata - #909

Merged
nc9 merged 2 commits into
squirrelscan:mainfrom
WilliamK112:codex/page-fetched-metadata-890
Oct 17, 2026
Merged

nc9 merged 2 commits into
squirrelscan:mainfrom
WilliamK112:codex/page-fetched-metadata-890

Conversation

@WilliamK112

Copy link
Copy Markdown
Contributor

Summary

  • carry ttfbMs and fetcherId from each fetch result into page:fetched
  • remove the unused rendered event field that the crawler never produced and no consumer reads
  • assert the metadata on a plain fetch through the full crawl-loop harness

Testing

  • bun test packages/crawler/tests/full-crawl-harness.test.ts (20 passed)
  • bun test packages/crawler/tests (653 passed)
  • bun run typecheck (all workspace packages)

Closes #890

@nc9
nc9 merged commit b46f4e4 into squirrelscan:main Oct 17, 2026
15 checks passed
@nc9

nc9 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Merged. Thanks @WilliamK112, the harness test that fails without the fix made this an easy review.

@nc9

nc9 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Thanks @WilliamK112! page:fetched now carries ttfbMs and fetcherId from each fetch, and the rendered field that nothing ever set is gone. Good tidy-up of the crawler events.

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.

crawler: page:fetched never carries ttfbMs or fetcherId, which the event type declares and the cloud reads

2 participants