Skip to content

fix(docs): add outer frame encapsulation preamble to SPEC.md §3 (PILOT-419)#2

Merged
matthew-pilot merged 2 commits into
mainfrom
openclaw/pilot-419-20260618-1115
Jun 18, 2026
Merged

fix(docs): add outer frame encapsulation preamble to SPEC.md §3 (PILOT-419)#2
matthew-pilot merged 2 commits into
mainfrom
openclaw/pilot-419-20260618-1115

Conversation

@matthew-pilot

Copy link
Copy Markdown
Collaborator

What

Adds a preamble to §3 (Packet Format) in SPEC.md explaining the outer frame encapsulation structure.

Why

§3 previously jumped straight into the 34-byte header layout without explaining that all wire-format frames are encapsulated in tunnel envelopes identified by 4-byte magic bytes. A first-time reader encountering §3 would not know the header is tunnel-encapsulated. The four frame types (PILT, PILS, PILK, PILA) were only documented in §4, leaving §3 as a standalone section with no context.

What changed

  • Added a preamble right after "## 3. Packet Format" that:
    • States all frames are encapsulated in a tunnel envelope with 4-byte magic prefix
    • Lists the four frame types in a table with magic byte values
    • Clarifies that §3 covers the inner header for PILT (plaintext) frames
    • Directs readers to §4 for PILS/PILK/PILA frame layouts

Verification

  • File: SPEC.md — 15 lines added, no changes to existing content
  • Markdown renders correctly
  • No code or config changes

Closes PILOT-419

…T-419)

Add a preamble to §3 (Packet Format) explaining that all wire-format
frames are encapsulated in a tunnel envelope identified by 4-byte magic
bytes. Documents the four frame types (PILT, PILS, PILK, PILA) with
their magic byte values and clarifies that §3 describes the inner header
for PILT frames while §4 covers the other frame type layouts.

A first-time reader encountering §3 would not know the header is
tunnel-encapsulated — this preamble addresses that gap.

Closes PILOT-419
@matthew-pilot matthew-pilot merged commit d56135c into main Jun 18, 2026
1 check passed
@matthew-pilot matthew-pilot deleted the openclaw/pilot-419-20260618-1115 branch June 18, 2026 15:59
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