<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     ipr="trust200902"
     docName="draft-abrams-aea-state-00"
     category="info"
     submissionType="independent"
     xml:lang="en"
     version="3">
  <front>
    <title abbrev="AEA-STATE/1">AEA-STATE/1: A Fixed-Length Single-Epoch State Record with Explicit Body, Frame, and Time-Scale Tags</title>
    <seriesInfo name="Internet-Draft" value="draft-abrams-aea-state-00"/>
    <author initials="J." surname="Abrams" fullname="Joshua Abrams">
      <organization>Abrams Research Systems LLC</organization>
      <address>
        <postal>
          <street>PO Box 761</street>
          <city>Loveland</city>
          <region>CO</region>
          <code>80539</code>
          <country>United States of America</country>
        </postal>
        <email>contact@abramsresearch.net</email>
        <uri>https://abramsresearch.net</uri>
      </address>
    </author>
    <date/>
    <keyword>spacetime</keyword>
    <keyword>reference frame</keyword>
    <keyword>time scale</keyword>
    <keyword>state record</keyword>
    <keyword>integrity</keyword>
    <abstract>
      <t>This document describes AEA-STATE/1, a deterministic 136-octet binary record for a single-epoch physical state. The record makes explicit the celestial body, epoch, atomic or dynamical time scale, and coordinate reference frame, together with position, frame-relative velocity, and orientation. A SHA-256 digest over the first 104 octets provides integrity detection only; it is not authentication. AEA-STATE/1 does not perform navigation, frame conversion, or time-scale conversion.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="intro">
      <name>Introduction</name>
      <t>Everyday location and time expressions often omit the celestial body, reference frame, and time scale because those assumptions are shared locally. Once a record leaves that shared context, silent mismatches are possible.</t>
      <t>The Abrams Event Address (AEA) <xref target="AEA-WP"/> does not claim new physics. It unifies seven existing declarations into one explicit coordinate standard: target celestial body, epoch, atomic or dynamical time scale, coordinate reference frame, three-dimensional position, frame-relative velocity, and spatial orientation. AEA-STATE/1 encodes one epoch of that state in a fixed little-endian layout.</t>
      <t>On identifying an event, three spatial coordinates and a time in a specified frame suffice. Velocity and orientation are included because the record may carry the state of a physical object at that epoch, not only the point of occurrence.</t>
      <t>This document specifies only the binary layout and the integrity digest. It does not define conversions between frames or time scales. A reference implementation and known-answer vectors are published at <xref target="AEA-REPO"/>.</t>
    </section>
    <section anchor="conventions">
      <name>Conventions and Definitions</name>
      <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described in BCP&nbsp;14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>
      <t>The following terms are used:</t>
      <dl>
        <dt>Record:</dt><dd>the full 136-octet AEA-STATE/1 value.</dd>
        <dt>Prefix:</dt><dd>octets 0 through 103 inclusive (104 octets), over which the digest is computed.</dd>
        <dt>Digest:</dt><dd>the 32-octet SHA-256 <xref target="FIPS180"/> output stored at offset 104.</dd>
      </dl>
    </section>
    <section anchor="format">
      <name>Record Format</name>
      <t>AEA-STATE/1 is a fixed, naturally aligned, little-endian binary record of 136 octets. The body_naif field carries a NAIF integer body identifier <xref target="NAIF"/>.</t>
      <table anchor="tab-layout">
        <name>AEA-STATE/1 Layout</name>
        <thead>
          <tr><th align="right">Offset</th><th align="right">Size</th><th>Type</th><th>Field</th></tr>
        </thead>
        <tbody>
          <tr><td align="right">0</td><td align="right">4</td><td>uint32</td><td>version (= 1)</td></tr>
          <tr><td align="right">4</td><td align="right">4</td><td>uint32</td><td>body_naif (NAIF ID; 399 Earth, 301 Moon, 499 Mars; 0 = none, not a barycenter)</td></tr>
          <tr><td align="right">8</td><td align="right">8</td><td>int64</td><td>time_sec (integer seconds since the declared epoch; see <xref target="epoch"/>)</td></tr>
          <tr><td align="right">16</td><td align="right">4</td><td>uint32</td><td>time_nsec (0 &lt;= time_nsec &lt; 1000000000)</td></tr>
          <tr><td align="right">20</td><td align="right">2</td><td>uint16</td><td>frame (1 = ITRF2020, 2 = GCRS, 3 = BCRS, 4 = BODY)</td></tr>
          <tr><td align="right">22</td><td align="right">2</td><td>uint16</td><td>time_scale (1 = TAI, 2 = TT, 3 = TCB, 4 = TDB)</td></tr>
          <tr><td align="right">24</td><td align="right">24</td><td>float64[3]</td><td>pos_m (metres, in the declared frame)</td></tr>
          <tr><td align="right">48</td><td align="right">24</td><td>float64[3]</td><td>vel_mps (metres per second, in the declared frame only)</td></tr>
          <tr><td align="right">72</td><td align="right">32</td><td>float64[4]</td><td>quat_xyzw (identity means unmeasured or aligned; unit norm is not enforced by sealing)</td></tr>
          <tr><td align="right">104</td><td align="right">32</td><td>octets</td><td>SHA-256 of the canonical little-endian encoding of octets [0,104)</td></tr>
        </tbody>
      </table>
      <t>Before hashing, IEEE 754 negative zero in any float64 field of the prefix is canonicalized to positive zero. The digest is unkeyed.</t>
      <t>The caller supplies a state already expressed in the declared frame and time scale. This format does not convert frames or time scales and does not navigate.</t>
      <section anchor="epoch">
        <name>Epoch Rule</name>
        <t>For time_scale = 1 (TAI), the counting origin is 1970-01-01T00:00:08 TAI, so that post-1972 UTC timestamps convert as time_sec = POSIX_UTC + (TAI - UTC) - 8, where (TAI - UTC) is the leap-second offset in effect at the instant. Leap seconds enter only through that offset. For TT, TCB, and TDB, producers and consumers follow the scale-specific epoch convention of their shared profile; enum agreement alone does not convey it.</t>
      </section>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <t>The SHA-256 digest detects accidental modification of the 104-octet prefix (for example, bit flips, truncation, or storage corruption) when the digest is preserved. Because the digest is unkeyed, any party that can modify the prefix can recompute a matching digest. AEA-STATE/1 therefore provides integrity detection only. It does not provide authentication, non-repudiation, anti-spoofing, or protection against a deliberate attacker who rewrites both prefix and digest.</t>
      <t>Implementations that require authenticity <bcp14>MUST</bcp14> apply a separate keyed MAC or digital signature outside the scope of this document.</t>
    </section>
    <section anchor="iana">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner"/>
            <date year="1997" month="March"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba"/>
            <date year="2017" month="May"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="FIPS180" target="https://doi.org/10.6028/NIST.FIPS.180-4">
          <front>
            <title>Secure Hash Standard (SHS)</title>
            <author><organization>National Institute of Standards and Technology</organization></author>
            <date year="2015" month="August"/>
          </front>
          <seriesInfo name="FIPS PUB" value="180-4"/>
          <seriesInfo name="DOI" value="10.6028/NIST.FIPS.180-4"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="AEA-WP" target="https://zenodo.org/records/24074213">
          <front>
            <title>Abrams Event Address: Addressing Events in a Moving Four-Dimensional Universe</title>
            <author initials="J." surname="Abrams" fullname="Joshua Abrams"><organization>Abrams Research Systems LLC</organization></author>
            <date year="2026" month="November"/>
          </front>
          <seriesInfo name="DOI" value="10.5281/zenodo.24074213"/>
        </reference>
        <reference anchor="AEA-REPO" target="https://github.com/Abrams-Research-Systems-LLC/Abrams-Event-Address-AEA">
          <front>
            <title>Abrams Event Address reference implementation</title>
            <author><organization>Abrams Research Systems LLC</organization></author>
            <date year="2026"/>
          </front>
        </reference>
        <reference anchor="NAIF" target="https://naif.jpl.nasa.gov/naif/">
          <front>
            <title>SPICE Toolkit documentation</title>
            <author><organization>NASA Navigation and Ancillary Information Facility</organization></author>
            <date/>
          </front>
        </reference>
      </references>
    </references>
  </back>
</rfc>
