Skip to content

Add Record Marking Standard (RFC 5531) documentation to XDR page#2244

Open
leighmcculloch wants to merge 8 commits intomainfrom
docs/add-record-marking-standard
Open

Add Record Marking Standard (RFC 5531) documentation to XDR page#2244
leighmcculloch wants to merge 8 commits intomainfrom
docs/add-record-marking-standard

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Feb 12, 2026

What

Add a "Record Marking" section to the XDR fundamentals page (docs/learn/fundamentals/data-format/xdr.mdx). The new section documents the fragment-based framing format defined in RFC 5531 Section 11, including the 4-byte header layout (last-fragment bit and 30-bit length), and notes where Stellar uses this framing: history archive bucket/checkpoint files in stellar-core and the Frame type in rs-stellar-xdr.

Why

The XDR docs page explains what XDR is and how to parse it, but omits the record marking layer that wraps XDR objects in files and streams. Developers working with history archives or the Rust XDR library encounter this framing without any reference in the Stellar documentation. Adding this section closes the gap and gives a direct pointer to the RFC.

Related

Document the framing format used when multiple XDR objects are stored
sequentially, referencing RFC 5531 Section 11 and noting Stellar's
specific usage in history archives and the Rust XDR library.
Added information on decoding XDR with stellar-cli.
@leighmcculloch leighmcculloch marked this pull request as ready for review February 12, 2026 05:07
Copilot AI review requested due to automatic review settings February 12, 2026 05:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds missing documentation for the Record Marking Standard (RFC 5531 §11) to the XDR fundamentals page, so developers parsing Stellar history archives / streams have an in-doc explanation of the framing layer wrapped around XDR objects.

Changes:

  • Introduces a new “Record Marking / Frames in Streams” section describing fragment headers (last-fragment bit + length) and big-endian encoding.
  • Documents current Stellar usage (single-fragment records) and where this framing appears (history archives, LedgerCloseMeta streaming).
  • Adds an RFC 5531 §11 reference link.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

leighmcculloch and others added 2 commits February 12, 2026 15:18
@stellar-jenkins
Copy link

Something went wrong with PR preview build please check

@stellar-jenkins
Copy link

5 similar comments
@stellar-jenkins
Copy link

@stellar-jenkins
Copy link

@stellar-jenkins
Copy link

@stellar-jenkins
Copy link

@stellar-jenkins
Copy link

@stellar-jenkins
Copy link

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.

2 participants