Skip to content

[codex] skip incomplete article stubs - #46

Merged
mkubicek merged 2 commits into
mainfrom
codex/issue-45-skip-article-stubs
May 26, 2026
Merged

mkubicek merged 2 commits into
mainfrom
codex/issue-45-skip-article-stubs

Conversation

@mkubicek

Copy link
Copy Markdown
Owner

What changed

  • Skip article tweets when X only provides an article stub without content_state.blocks.
  • Keep full article payloads captured normally when the observed response includes the body.
  • Refresh parser golden fixtures so stub-only captures produce no JSONL rows.
  • Document that incomplete article stubs are intentionally skipped instead of being saved as partial rows.

Why

Issue #45 proposed auto-fetching article detail payloads after seeing timeline stubs. That would add active X/Twitter requests from the capture workflow, which conflicts with xTap's passive model. Skipping incomplete stubs preserves the zero-extra-request contract and avoids poisoning seenIds with rows that downstream consumers may mistake for complete article captures.

Fixes #45.

Validation

python3 -m pytest tests/ -v && node --test tests/*.test.mjs

Result: 135 Python tests passed, 95 Node tests passed.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mkubicek
mkubicek marked this pull request as ready for review May 26, 2026 21:12
@mkubicek
mkubicek merged commit 078cfcd into main May 26, 2026
2 checks passed
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.

Auto-fetch full X Article body when timeline capture only sees article stub

2 participants