#!RFC-AI/2;id=6;draft=1;status=draft;lang=en;dir=auto;theme=chatgpt-mono;sha256=de993bc11a9796dc2ca90e2d22677aaa9be1aa664cd9c82c9e316ba251e25166 For easier reading, view RFC-AI documents using RFC-AI Reader software. RFC-AI 6 — MONOTONIC CHRONOLOGICAL FILE IDENTIFIERS AND HUMAN-READABLE SORTING STATUS: DRAFT PLACEHOLDER — SPECIFICATION CANDIDATE; NOT AN ACTIVE CORPORATE STANDARD VERSION: Draft 1 | 2026-10-27 UTC | AUTHORITY: CEO REVIEW REQUIRED LOCATION: Corporation/Framework/AI_RFC/RFC-AI 6.txt 0. PURPOSE AND BACKGROUND The CEO proposes a universal, lexicographically sortable time-prefix format for selected continuity archives and other explicitly opted-in corporate filenames. Reuse IETF RFC 3339 for readable UTC dates and RFC 9562 UUIDv7 for unique time-ordered identifiers, while precisely prescribing *this corporation's* monotonic generation method. Do not imply raw UUIDv7 alone has human-readable calendar text or a guaranteed cross-host total order. This draft defines a testable algorithm, not a deployed shared generator or CEO-approved release gate. 1. PROPOSED CANONICAL NAME YYYYMMDDTHHMMSSmmmZ-CCCC-UUUUUUUU-UUUU-7UUU-VUUU-UUUUUUUUUUUU-WorkerNickname.objectives.txt The display above uses UUIDv7's usual canonical five-hyphen groups and its version/variant positions. In executable terms: ---.objectives.txt. Example PLACEHOLDER ONLY, NOT A GENERATED OR AUTHENTIC RECORD: 20261027T180000000Z-0000-xxxxxxxx-xxxx-7xxx-8xxx-xxxxxxxxxxxx-Alex.objectives.txt. When applicable to other classes, replace '.objectives.txt' with an approved safe document suffix; use the same preamble formula. Prefix text MUST be ASCII, fixed-width, UTC and zero-padded. File names are identity/location hints, not authentication or approval tokens. 2. DEFINITIONS wall_ms: observed UTC Unix epoch milliseconds from an actual clock; logical_ms: emitted ordered timestamp, which MAY be ahead of observed wall clock after rollback; counter: integer 0..4095 allocated atomically per issuer; issuer: one monotonic coordination domain (for example one serialized gateway); rand_b: 62 bits from a cryptographically secure randomness source. Readable human time within records: RFC 3339 UTC including milliseconds, 'YYYY-MM-DDTHH:MM:SS.mmmZ', representing the actually observed time separately from logical ordering time. Do not present a rolled-forward logical time as an observed physical time. A consistent UTC sort prefix follows RFC 3339 date semantics but uses a filesystem-safe basic form (without punctuation, with 'T' and 'Z'). 3. PROPOSED GENERATION ALGORITHM — STRICT MONOTONICITY PER COORDINATED ISSUER 3.1 Recover persisted (last_ms,last_counter) under serialized transaction/lock. The persisted state must be durable across process crashes, not merely in transient model context. If state is missing for an existing issuer with issued history, do not pretend cross-restart monotonicity; reconcile safely against a durable high-water mark or create a new explicitly distinguished issuer domain. 3.2 Read current wall_ms. If wall_ms > last_ms, logical_ms=wall_ms and counter=0. Otherwise logical_ms=last_ms and counter=last_counter+1, recording backward/equal clock observations. The first-ever issuance sets last_ms < wall_ms and starts at zero. Reject invalid clocks and logical_ms outside RFC 9562's 48-bit Unix-millisecond field. 3.3 If counter >4095, wait for the observed clock to advance beyond last_ms, within a bounded deadline, and reattempt issuance. Otherwise return explicit EXHAUSTED/CLOCK_NOT_ADVANCING, never wrap or insert random increments that could break ordering. Bound artificial future drift and alert when repeated clock rollback is observed; a pause or failure is safer than inventing real clock accuracy. 3.4 Construct a RFC 9562 variant UUIDv7: bits 0..47 = logical_ms (big-endian); version=0b0111 in bits 48..51; rand_a (12 bits)=counter; variant=0b10 in bits 64..65; rand_b=62 CSPRNG bits. RFC 9562 permits using counter bits for monotonicity; this is the selected application-specific layout, not the only valid UUIDv7 design. 3.5 Durably reserve/commit the (logical_ms,counter) allocation in one serialized issuer before publishing the filename. Once committed, a failed file save MAY leave a gap; never reuse its value. Concurrent issuance must be serialized or transactionally coordinated. Atomicity of the state update and unique file creation must be tested for duplicate requests and crashes. 3.6 Verify new UUID numeric value > previous issuer UUID numeric value and new filename UTC/counter prefix > previous issuer prefix; a fresh rand_b cannot reverse order once logical_ms or counter increases. Render logical_ms as 'YYYYMMDDTHHMMSSmmmZ'; format counter as FOUR decimal digits, 0000..4095, and UUIDv7 lowercase hyphenated canonical string. Append nickname restricted to a documented safe ASCII subset and length; reject traversal, reserved names, control characters, ambiguous separators and collisions. 3.7 When two independent issuers operate disconnected, their UUIDs can be unique and approximately time-sortable but no strict globally monotonic real-time creation order is guaranteed. If GLOBAL strict order is required, allocate through one shared authoritative serialized generator or a demonstrably equivalent consensus/transaction system. Do not falsify a global claim during offline operation. 3.8 If a file already exists with the same name, reject and diagnose or allocate another identifier. NEVER silently overwrite an archive. UUIDv7's 62 random bits plus properly coordinated counters reduce collision risk but not absolute identity/correctness guarantees. 4. VALIDATION AND TEST CANDIDATES Verify parse of UTC prefix and RFC 3339 field; exact fixed widths, ranges, counter equal UUID rand_a, 48-bit timestamp equal parsed prefix, UUID version 7, RFC variant, lowercase and safe nickname. Generate many identifiers in one millisecond, cross boundary to next ms, simulate backward clock, duplicate concurrent callers, exhausted counter, reboot/corrupted state, two independently offline issuers, collision handling, non-UTC local time, dates/leap boundaries, lexical versus numeric order and interrupted writes. Verify absolute time and logical time separately; preserve recorded issuer scope. 5. SECURITY / RELATIONSHIPS Identifier strings expose approximate time and worker nickname. Avoid including secrets or personal information in names; permit approved pseudonymous stable role nicknames. Do not treat UUID or counter as proof of permission, trust, signature, actual read history, approval or release. Reference RFC-AI 4 (DRAFT) for continuity use and RFC-AI 7 (DRAFT) for associated comments; RFC-AI 2 (DRAFT) governs future review and adoption. Do not silently change old filenames until a safe migration is agreed. 6. SOURCE REFERENCES — REVIEWED BEFORE DRAFT IETF RFC 9562: https://www.rfc-editor.org/rfc/rfc9562.html — UUIDv7 bits and monotonic-counter guidance. IETF RFC 3339: https://www.rfc-editor.org/info/rfc3339/ — human-readable timestamps, used for actual observed time within the document. 7. CHANGE HISTORY 2026-10-27 UTC Draft 1: CEO-authorized draft reservation and explicit sortable timestamp/counter/UUIDv7 proposal. No algorithm implementation, generator state or approval claimed. MIGRATION RECORD — 2026-10-29 UTC