Skip to content

Nightly 2026-11-22: the chart range of a cashtag attachment - #150

Open
fa0311 wants to merge 1 commit into
mainfrom
fix/cashtag-attachment-chart-range
Open

fa0311 wants to merge 1 commit into
mainfrom
fix/cashtag-attachment-chart-range

Conversation

@fa0311

@fa0311 fa0311 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

The nightly of 2026-11-22 (run, on 28049fb) failed on two of its 128 calls, the first pages of UserRepliesTimeline and UserTweetsAndReplies of the placeholder's user: Not defined: CashtagAttachment.to_timestamp_ms. The other 126 are at 1.0.

Observed (the placeholder's requests, sandbox account, 2026-11-22)

  • A single GET of UserRepliesTimeline: one of the 40 posts, an otherwise complete Tweet of 2026-11-21 that Elon Musk replied to at 09:26 UTC that day (after the nightly of 11-21, which ran at 03:43 UTC and passed), carries
    {"rest_id": "$NVDA", "size_variant": 1, "timeframe": "1Y", "candle_size": "1D", "from_timestamp_ms": "1763683200000", "to_timestamp_ms": "1795223903912"} in cashtag_attachments. to_timestamp_ms is three minutes before the post was created, from_timestamp_ms midnight UTC one year earlier. TweetResultByRestId of that post answers with the same attachment.
  • Controls with the same requests: the post whose attachment was {rest_id} in the strict run of 11-20 still answers {rest_id}. 15 SearchTimeline GETs for cashtags ($TSLA, $NVDA, $SPCX, $AAPL, $BTC, $ETH; Top and Latest, with until: back to 2026-10-10) bring the day's sample to 328 posts with the cashtag_attachments key, 51 of them with items, 64 items: 30 are {rest_id}, 32 {rest_id, size_variant: 0} (posts of 10-10 .. 11-22), and 2 have the four fields. Those two are the only ones with size_variant: 1: the post above and one of 11-22 with timeframe: "1D", candle_size: "5m". Both timestamps are strings of 13 digits in both.
  • The web client, read from the public scripts of the two builds TwitterInternalAPIDocument recorded last (b0a6ff7 and 9d554e5, no account): a post's attachment with size_variant === 1 is rendered by a chart component that is given candle_size, from_timestamp_ms, timeframe and to_timestamp_ms of the item, every other attachment by the ticker card; the composer adds the four keys only all together and only next to size_variant: 1. Both builds do this, so the client read these keys before 11-21 as well.

Concluded

The request is not off (it returns the earlier shapes for the 62 other attachments, and the four keys are the ones the web client reads from this object) and the sample is intact. The four keys belong to a cashtag attachment whose author attached a chart with a range; the spec did not have them.

Changed

CashtagAttachment gets four optional properties: candle_size and timeframe as plain strings with the recorded values in a comment (two each, so no enum), from_timestamp_ms and to_timestamp_ms as digit strings like scheduled_at_ms.

Verified with the regenerated strict client

  • One strict run on this branch (14:18 JST): 130 calls, every one at 1.0, every answer 200. The chart attachment is in one of its answers.
  • The stored answers, all at exactly 1.0: the 881 of the earlier runs and recordings, the 123 of this run, and 6 of the day's GETs (the reproduced UserRepliesTimeline, both TweetResultByRestId, three search pages).

Not verified

  • Since when X returns the four keys. No attachment with size_variant: 1 older than 11-21 is in the sample, so whether older ones carry them is open.
  • size_variant: 1 without the four keys: the composer's code can send that, none was sampled. The properties are optional either way.
  • Other values of timeframe and candle_size than the two recorded each.
  • The page of the post in the real browser was not opened: the samples and the client's code did not leave the question that a page view is kept for.
  • The request side (CreateTweet) is untouched.
  • The other 12 search answers of the day, every first page of a cashtag search, do not validate for another reason: they start with an item TimelineSmartTag that ItemContentUnion does not have. The nightly's search (elonmusk) does not return it. Not part of this PR: SearchTimeline: the ticker card of a cashtag search (TimelineSmartTag) #151.

🤖 Generated with Claude Code

CashtagAttachment.candle_size / timeframe / from_timestamp_ms / to_timestamp_ms: on a post in the first page of
UserRepliesTimeline and UserTweetsAndReplies of the placeholder's user, and on one more post found by search; both
attachments have size_variant 1. The 62 other attachments sampled the same day carry none of the four.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant