Changes from v0.5 — pre-publication consistency edit required by the external verification pass of v0.5 (8.5/10): per-record size figures set to the canonical run’s measured values (547.0 B/record IPFIX message bytes, 794.8 B/record JSONL), the structured-log parity claim qualified by the measured transport-loss divergence, three assurance phrases tightened, and the architecture diagram corrected (boundary traversal; T0 placement). Full revision history and review lineage: Appendix C.
Evidence grading. Two separate questions are graded separately:
- [V] — source-inspected: the cited content was present at the named primary interface when read on 2026-10-30 (a document, API, registry, DNS answer, or LICENSE file at a pinned commit). This verifies what the source says, not that what it says is true.
- [R] — as-reported: a measurement or benchmark reported by its own producer, source-inspected but not independently reproduced (vendor benchmarks, a project’s own test figures).
- [PS] — public-signal: asserted by a secondary source, unaudited.
- [INF] — inference: reasoned, unconfirmed.
- [D] — demonstrated in the reference implementation: a software testbed (Linux network namespaces, real TLS 1.3, real HTTP/2, real nftables default-deny, RFC 7011 on the wire) built for this brief and executed on 2026-10-30. [D] covers the mechanism — format, mapping, reconciliation, assurance boundary — not hardware, not performance, and not production administrative separation (represented by namespace/process separation, a declared weakening). The full measured record, raw artefacts and ~1,300-line source accompany this brief (RESULTS, 2026-10-30).
Absence claims state their method, scope and date (Appendix B). A claim-by-claim ledger with URLs and read methods accompanies this draft (GATE_LEDGER, 2026-10-30, incl. correction log).
Abstract
Enterprises adopting LLM APIs produce two unconnected bodies of evidence: the AI gateway’s application logs, and the network’s flow records. We propose token-flow: a defined set of enterprise-specific IPFIX Information Elements emitted per completed LLM exchange by a self-hosted relay, exported into the flow pipeline the organisation already runs, and reconciled against traffic observations produced under separate administration. The claim is deliberately narrow. Reconciliation corroborates the traffic dimensions of the relay’s reports — that reported exchanges correspond to observed connections, volumes and destinations, that no AI-destination connection is unmatched by records, and that per-connection accounting stays within stated bounds — and it detects a specified list of discrepancies. It does not establish exchange-history completeness on a covered connection. It does not independently verify the governance attributes themselves: a relay that mislabels governance fields while reporting accurate traffic data passes reconciliation — demonstrated in §9 for destinationTier (a register-derived field, caught only where the observed destination address contradicts it) and pseudonymisationStatus (a relay-attested field, not detected by traffic reconciliation — in the experiment only provider-side ground truth exposes it). What the design adds over structured logs is a common record format, a shared retention and query plane with existing network evidence, and a defined reconciliation procedure with alertable failure modes. Every component involved is precedented and commodity — the reconciliation procedure, the mapping discipline and the attribute set are the contribution: self-hosted relays (several Apache-2.0 implementations), enterprise IEs (RFC 7011 §3.2), application-identity attributes in flow records (Cisco NBAR2; Palo Alto App-ID/User-ID under PEN 25461). Within the documented search scope (Appendix B), no matching implementation of governance attributes as flow records was identified [INF]. The design has now been implemented and its five demonstration cases executed and measured [D]: the record format cross-decodes field-for-field in an independent IPFIX implementation; two byte counts of the same upstream traffic, produced by separate processes in separate namespaces (administrative separation not demonstrated) — the relay’s TLS-stack counters and the boundary’s packet capture — agreed to the byte on a loss-free path; deliberately falsified governance labels passed traffic reconciliation while the register audit caught the destination-contradicting tier lie and traffic reconciliation did not catch the route-independent pseudonymisation lie (the experiment’s provider-side ground truth did); and record suppression at source was distinguished from loss in transport (for an honest exporter — §6). We state precisely what such records support under DORA and the GDPR, and what they do not.
1. The evidence gap
A regulated firm routing work to LLM APIs is eventually asked to show where its data went. The available artefacts sit in two planes:
- The log plane. The three AI-security products surveyed for this draft all export AI events as application logs: Palo Alto Prisma AIRS forwards to SIEMs as JSON/syslog via the Strata Logging Service, with model name and CSP region in the schema [V — vendor docs]; Cisco AI Defense ships events to Splunk via HTTP Event Collector, JSONL files and an OpenTelemetry library [V — vendor docs]; Netskope exports GenAI events as raw JSON or syslog CEF through Cloud Exchange Log Shipper [V — vendor docs]. In each case the inspecting component authors its own record.
- The flow plane. NetFlow/IPFIX records are produced by network devices, retained at scale, and consumed by network and audit teams. Today they carry, at best, an application label for AI traffic.
Application logs are evidence; courts and auditors use them daily. The question this brief addresses is narrower: what additional confidence a second record stream provides when it is produced under separate administration, shares a correlatable format with the first, and is reconciled against it on a defined procedure. The answer (§4) is corroboration of the traffic dimensions and detection of specified discrepancies — no more, and usefully no less.
2. What already exists
Nearly every component is commodity; the contribution is the attribute set, the mapping discipline (§5) and the reconciliation procedure (§4, §6).
| Component | State | Grade |
|---|---|---|
| Self-hosted OpenAI-compatible relay with policy routing and fallback | Multiple maintained Apache-2.0 or MIT implementations (Appendix A.2 lists them with licences read at pinned commits) | [V] |
| Enterprise-specific IPFIX IEs | RFC 7011 §3.2: Enterprise bit set, four-octet IANA Private Enterprise Number; no IANA IE registration needed, only a PEN. Maintained exporter library: go-ipfix (Apache-2.0) | [V] |
| Application-layer identity in flow records — direct precedent | PAN-OS “enterprise” NetFlow templates export App-ID (field 56701) and User-ID (56702) under PEN 25461; Cisco AVC/NBAR2 exports applicationId (RFC 6759) |
[V — vendor docs, RFC] |
| AI-provider classification in flow tooling | nDPI PR #3294 (open, 2026-10-30): AI protocol ids and an inference-traffic flow risk — provider class only | [V — PR record] |
| Domain events as enterprise IEs — pattern precedent | draft-melegassi-opsawg-mvps-telemetry-export-00: application events as enterprise IEs under a PEN; hash-stable event id; integrity by hash-binding within one producer | [V — read in full] |
| Token-flow reference implementation | Relay (policy table, HTTP/2 multiplexed upstream, retry), RFC 7011 exporter with the §4 enterprise IEs under the documentation PEN 32473 (RFC 5612), boundary observer, collector, reconciliation; five cases executed; records decoded by ipfix 0.9.7 (B. Trammell), an independent implementation by an RFC 7011 co-author — 41 messages, 41 data records + 2 heartbeats, zero decode failures, zero gaps in the canonical baseline (run 20261030T134513Z-91452ce5); full-record HMAC verification in the reconciler, 41/41 |
[D] |
Within the documented search scope — IETF datatracker title enumeration, two Espacenet full-text queries, the three-vendor survey, and an OpenRouter org enumeration (Appendix B) — no implementation of AI governance attributes as flow-record fields was identified [INF]. That scope cannot establish broad absence; it establishes that the obvious places do not contain it.
3. Architecture and the enforcement boundary
Two distinct roles, which v0.1 conflated and this version separates:
(a) The AI relay is an OpenAI-compatible API gateway. Clients are configured with its base URL; it terminates client TLS, resolves a policy table (workload class × destination tier, in the pattern of a dated register), originates upstream TLS itself, and emits one token-flow record per completed upstream exchange (§5). Because the relay originates the upstream connection, ECH and SNI are irrelevant to its own traffic — it knows its destination.
(b) The egress boundary is an ordinary network control, independent of AI: the policy decision that workload segments have no direct external connectivity. Token-flow does not require governing all web egress through the AI relay; it requires that the segments whose AI activity is being evidenced cannot reach AI endpoints except through it. The boundary must be specified as a whole, because blocking TCP/443 alone establishes nothing:
- default-deny all outbound, IPv4 and IPv6, from the covered segments; enumerate the permitted exceptions (the relay; any corporate web proxy; internal resolvers);
- the covered protocols include TCP/443, UDP/443 (QUIC), TCP/80, DoH to external resolvers and DoT (853), and any permitted proxy — CONNECT tunnels through a corporate proxy are an alternative path and must either be denied to AI destinations or instrumented equivalently;
- the rule prohibits the connection, not the name: within a correctly enforced boundary, bypass prevention does not depend on reading SNI. v0.1 implied otherwise; that was a conflation of enforcement with classification, and it is withdrawn.
Where SNI and ECH actually matter: classification and monitoring, not enforcement. On a mirror port or the boundary device’s own flow export, SNI lets a monitor label denied or anomalous attempts (which AI endpoint was tried). A DNS read on 2026-10-30 shows none of api.openai.com, api.anthropic.com, generativelanguage.googleapis.com or api.mistral.ai advertises an ECH config today (control query validated) [V — DNS interface]; ECH is standardised (RFC 9849 [V]) and default-on for Cloudflare Free zones [V — rendered doc, feature marked Beta], so this labelling degrades on a dated trajectory. Enforcement does not.
Prefix pinning is a defence-in-depth addition where providers publish ranges: Anthropic publishes inbound 160.79.104.0/23 and 2607:6bc0::/48 [V]; Azure OpenAI-class endpoints are coverable by Microsoft-managed service tags [V]; OpenAI and Mistral resolve to shared Cloudflare addresses and publish no ingress prefixes [V — DNS reads + OpenAI docs], so for them the boundary carries the whole weight.
Hosting: the relay and exporter are userspace services on an x86 host — beside the boundary switch in production, or on the control plane of a whitebox/EOL switch for demonstration. Platform detail, including the NOSaic substrate and its measured constraints, is in Appendix A; the architecture does not depend on any particular platform.
Three administrative domains — network team (boundary and counters), AI platform team (relay and exporter), security operations (collector and reconciliation) — are part of the design, not an accident of org charts (§6).
4. What reconciliation does and does not establish
v0.1 said reconciliation “makes it evidence rather than logging.” That was too strong, and the review was right to strike it. The precise position:
Token-flow attributes divide by provenance. The schema (below) marks each field: N network-corroborable — a boundary device under separate administration can observe something that must be consistent with it; A relay-attested — only the relay knows it, and reconciliation adds nothing to its truthfulness; G register-derived — a lookup against a versioned policy document, checkable after the fact against that document but not against traffic.
| Field | Type | Provenance | Note |
|---|---|---|---|
| exchangeId | octetArray[32] | A | construction rule in §6 |
| requestId | octetArray[16] | A | the logical client request; one requestId spans retries/fallback |
| attemptSeq | unsigned8 | A | ordinal of this upstream attempt within requestId |
| connectionId | octetArray[8] | A | relay-assigned join key; the binding of connectionId to a 5-tuple is attested — the 5-tuple itself is the N-row |
| upstream 5-tuple + start/end timestamps | IANA IEs | N | observable at the boundary |
| streamBytesIn/Out | unsigned64 | N | HTTP/2 stream-attributable bytes for this exchange (frame payloads + per-stream frame headers). Renamed from v0.2’s upstreamTlsBytesIn/Out: under multiplexing, exact per-stream wire attribution is not well defined; TLS record framing and connection-level control land in the per-connection overhead (§5) |
| appPayloadBytesIn/Out | unsigned64 | A | HTTP body bytes; not directly network-comparable (TLS, header and multiplexing overhead) |
| requestedModelId / servedModelId | string | A | requested = what the client asked; served = what the provider’s response header/usage object reported. Both relay-attested; recording both exposes substitution and fallback |
| resolvedAddress | addr | N | address actually connected; observable at the boundary |
| endpointHost | string | A | the name the relay says it connected to; on shared CDN addresses (§3: OpenAI, Mistral) a host-name lie is address-consistent, so this row is attested — corroborable only via SNI labelling where ECH is absent, a degrading path |
| destinationTier | unsigned8 enum | G | a policy classification of the route — explicitly not evidence of processing jurisdiction (§7) |
| policyRegisterVersion | string | G | the dated register the route resolved against |
| dataClassId | string | A/G | the workload’s declared data classification, as bound by the policy table |
| workloadId | string | A | authenticated client identity at the relay (service account / mTLS subject) |
| approvalRef | string | G | reference to the approval record (register entry / ticket) under which this workload-tier pairing is permitted |
| tokensIn / tokensOut | unsigned32 | A | provider-reported usage relayed by the relay; not independently measurable from ciphertext |
| pseudonymisationStatus | unsigned8 enum | A | applied / not-required / failed-closed — reports what the control did; reconciliation cannot test it |
| auditorVerdict | unsigned8 enum | A | pass / flagged / escalated — same caveat |
A second, connection-scoped record type strengthens total comparison: a connection-close record (connectionId, 5-tuple, start/end, exact TLS wire bytes in/out from the relay’s socket layer) [design addition; not in the reference implementation]. Reconciliation then compares the close record’s exact totals to the observation (byte-level on loss-free paths) and the per-record stream sums to the close record — tightening the accounting floor. It does not establish exchange completeness: a relay that redistributes an omitted exchange’s bytes among retained records still reconciles.
What reconciliation establishes (the N rows, per procedure in §5) — stated at its true width: unmatched-connection detection plus bounded accounting discrepancies. Exchange-history completeness on a covered connection is outside this boundary: the tolerance bounds unaccounted bytes per connection, it does not enumerate exchanges, and a relay that omits an exchange while redistributing its byte accounting among retained records defeats byte accounting entirely — the proposed connection-close record strengthens total comparison and does not close this (external review of v0.3, finding 2, adopted). The checks:
- Every reported exchange maps to an observed upstream connection to a permitted destination, with wire volumes and timing consistent within stated tolerances.
- Every observed connection from the relay to an AI destination has covering records — no unmatched AI connections; bounded accounting (check 1) limits what an omitted exchange on a covered connection can hide, and does not enumerate exchanges.
- No AI-destination traffic crossed the boundary from anywhere but the relay — no bypass (this is the boundary’s contribution, independent of the relay entirely).
- Export continuity: gaps in the record stream are themselves detected (§6).
- (Procedural, added after it failed in the build:) C0 — evidence present. A reconciliation that can return PASS on empty inputs is itself a defect; the procedure fails closed when either stream is empty while traffic was expected — the expectation source in the testbed is the driver’s request count, in production a scheduled-load schedule or the boundary’s ACL hit counters. [D — both branches executed: the pre-guard false-pass was observed live, and the guard returns FAIL_EMPTY against empty records with live observations.]
What it does not establish: the truthfulness of any A-row. The universal is by design — reconciliation has no access to attested content — and is graded as such; the executed falsified-label case supplies the measured instances [D]: a relay reporting accurate traffic fields while lying passed checks C0–C3 in full; the register audit caught 3/3 destinationTier lies (a G-row) solely because the observed destination address contradicted the claimed tier’s permitted set — a detection conditional on disjoint per-tier address sets, which real providers behind shared anycast do not guarantee (§3); and 0/3 pseudonymisationStatus lies (an A-row) were caught by anything (§9, case 4). An attested field with no network-observable consequence is uncheckable from traffic.
What IPFIX adds over structured logs reconciled against the same observations: nothing cryptographic — that is a design fact; what was measured [D] is detection parity and its one exception. The same traffic evidenced both ways against identical observations returned matching verdicts on the clean and falsified-label cases (suppression: C2 ALERT in both modes; falsified labels: register ALERT in both) — with one measured divergence: in the transport-loss case the IPFIX side fails C1, because the collector-side record set genuinely lacks the lost records, while the log side passes it, because the local twin holds them. That divergence is the loss-vs-suppression information the sequenced transport adds. Measured differences: record size (547.0 B/record pure IPFIX message bytes in the canonical run, templates repeated per message, vs 794.8 B/record JSONL) and loss attribution — RFC 7011 sequence numbers let the collector distinguish transport loss from source suppression (C4), a distinction the JSONL baseline as built lacks. The property belongs to sequenced shipping, not to IPFIX as such: a log transport carrying a per-record counter regains it. The remaining gains are operational: one record format and retention plane shared with existing network evidence, and 5-tuple correlation keys network teams already query (§9, cases 3–5).
5. Mapping exchanges to network observations
The hard problem v0.1 hid in “one record per exchange.” Definitions:
- Request — one logical client call to the relay (one requestId). Retries and provider fallback give one request several attempts.
- Exchange — one upstream attempt that produced a record: an attempt that received a final status (error statuses included), or an attempt aborted by connection death, which emits its own
error:abortedrecord carrying the request bytes already sent (implemented). One record per exchange; a request with one retry produces two records sharing requestId, attemptSeq 1 and 2. - Connection — one upstream TCP+TLS (or QUIC) connection, identified by connectionId and its 5-tuple. Under HTTP/2, many concurrent exchanges multiplex over one connection (RFC 9113); connection is therefore the join key to network observations, not exchange.
- Observation — what the boundary produces for that 5-tuple in a window: interface or ACL counters (aggregate only), unsampled flow export (per-connection byte/packet/timing), sampled flow export (statistical), or mirror-port DPI (per-connection plus SNI labelling). These are not interchangeable: reconciliation checks 1–2 need per-connection observations (unsampled export or mirror); counters support only aggregate consistency and check 3; sampled export supports checks at stated confidence, not record-for-record. The deployment states which observation source backs which check.
Reconciliation procedure (the implemented reconciler is whole-run with timestamp containment; the per-window form below — 5-minute windows, span-crossing apportionment, bounded lateness — is the production proposal, not demonstrated): group token-flow records by connectionId; sum upstreamTlsBytesIn/Out per connection over the records whose exchange lifetime intersects the window, apportioning records that span windows by time; join to the boundary’s per-connection observation on 5-tuple and overlapping time; compare byte totals within a per-connection tolerance; flag unmatched observations (check 2), unmatched records (missing traffic — exporter or clock fault), and out-of-tolerance pairs. The tolerance is measured, ENFORCED, and honestly re-derived [D]: v0.3’s band (319–1,138 B out) was contaminated by estimate error — replacing the request-side estimate with exact encoded frame bytes (review finding 4) moved the outbound residual to a flat ~2.18 KB per connection, repeated exactly across these five runs (2,177 and 2,190 B; no other value observed); inbound runs 1,993–2,071 B at high record counts, drifting to ≈3.05 KB at n=1 because the response side remains an estimate (uncompressed header sums — h2 exposes no per-stream receive wire bytes). Enforced limits: residual ≤ 2,600 B out / ≤ 3,400 B in per connection, over-report ε 64 B, per-record start ≤ end validity and interval containment in the observation span ±2 s, reverse-direction observation required. A connection whose own records declare an aborted attempt gets +8 KiB inbound allowance — and because that allowance is enabled by a relay-attested field, any connection needing it is classified DEGRADED_ABORT_ALLOWANCE and C1 reports PASS_DEGRADED, never PASS: the adversary-selectable bound (3,400 → 11,592 B, demonstrated in the v0.4 review by under-reporting 6,000 B behind a self-declared abort) is surfaced in the verdict rather than silently absorbed. The reviewer’s altered-input attacks — bytes ×100, 39/41 records dropped, 1999 timestamps, reverse observations removed, empty records, zero heartbeats — each now produce the failing verdict, as a permanent GREEN regression suite (§9). Separately, the relay’s exact connection-level TLS wire counters and the boundary’s capture agreed to the byte on all ten sweep connections — separate processes, separate namespaces, loss-free veth path only (no retransmission de-duplication in the capture). Detection floor, stated and enforced: on a covered connection, unaccounted bytes below the tolerance are undetectable — ≤ ~2.6 KB out / ~3.4 KB in; an unmatched 5-tuple is detected at any size (case 3a). The connection-close record (design addition, unimplemented) tightens total comparison; it does not buy exchange completeness (§4). Clock skew between relay and boundary is bounded by shared NTP and absorbed by window overlap matching; retransmissions inflate packet counts but not TLS byte counts at the relay’s socket layer, so byte totals are the primary comparator and packet counts are advisory. Unrelated traffic from the relay host (updates, DNS) is excluded by destination filter and surfaced separately — an unexplained destination from the relay host is itself an alert.
Worked example. Window 10:00:00–10:05:00. Relay opens one HTTP/2 connection K to an Anthropic endpoint (5-tuple observed by the boundary as flow F). Three records arrive:
- R1: requestId q1, attemptSeq 1, connectionId K, 10:00:02–10:00:09, tlsBytes 18,400 out / 41,200 in — multiplexed with
- R2: requestId q2, attemptSeq 1, connectionId K, 10:00:03–10:00:21, tlsBytes 22,100 out / 97,800 in — concurrent streams on K, fine: reconciliation never tries to split F between them.
- R3: requestId q2, attemptSeq 2, connectionId K, 10:00:21–10:00:29, tlsBytes 21,900 out / 63,000 in — a retry after R2’s attempt returned 529; same requestId, next attemptSeq. Had fallback routed it to another provider, R3 would carry a new connectionId joining a different observed flow.
Connection-sum for K: 62,400 out / 202,000 in. Boundary observation F reports 62,850 out / 204,050 in across the window — deltas of 450 B out and 2,050 B in, inside the measured per-connection band of §5 → checks 1 and 2 pass for K. A fourth observed flow from the relay host to an unlisted address with no covering records → check-2 alert. A record carrying a connectionId with no observed flow → missing-traffic alert. (Figures above are illustrative, scaled to the measured overhead band.) The structure of this example was exercised live [D]: in the canonical run, two HTTP/2 connections carried all 41 exchanges of a 40-request concurrent burst — 19 of 20 possible successor overlaps on one connection and 19 of 19 on the other — and the forced 529 produced exactly the predicted record pair: attemptSeq 1
error:529, attemptSeq 2 served, same requestId, same connection. A mid-attempt connection death now yields its ownerror:abortedrecord carrying the exact request bytes already sent, so replaced connections stay accountable (§9, case 1).
6. Independence as a security property
“A different device” is the start, not the property. The property claimed: no single role can both act and silently rewrite the evidence of acting. Administrative separation, stated as requirements:
| Object | Modify rights | Explicitly excluded |
|---|---|---|
| Relay config, policy table, exporter | AI platform team | network team; SOC |
| Boundary ACLs, counter/flow-export config | network team | AI platform team |
| Collector, retained records, reconciliation job | security operations, append-only storage with retention lock | both producer teams |
Weakenings to declare, not hide: running the relay on the boundary switch’s control plane (the demo topology, Appendix A) collapses domains 1 and 2 at the host level — acceptable for demonstration, disqualifying for the assurance claim in production, where relay-on-adjacent-host restores the separation. Compromise of the relay yields false A-rows (accepted and bounded, §4); compromise of the boundary device yields false observations — which is why observations corroborate rather than replace, and why collector-side mutual consistency (records vs observations vs ACL hit counters) is checked rather than any single source trusted.
Continuity and gap detection. IPFIX export carries per-exporter sequence numbers (RFC 7011); the collector alarms on sequence gaps and on silence beyond a heartbeat interval (the exporter emits a heartbeat record per window, including windows with zero exchanges). Boundary flow export is monitored identically. A missing-export interval is an incident, not an absence of evidence — with one qualifier: sequence numbers are exporter-authored, so the suppression-vs-loss attribution holds for an honest exporter; a compromised relay can skip sequence numbers to disguise suppression as transport loss, which is why uncovered-traffic detection (C2), not continuity, is the check that binds a lying producer. Two collector-side requirements, added after each failed in the build [D]: the collector must decode a UDP exporter’s session as one stream (per-datagram decoding silently drops records whose templates travelled earlier — and the exporter should repeat templates per message), and gap detection needs an agreed starting sequence, since loss before the first received message is otherwise invisible; the heartbeat is the second continuity signal.
exchangeId construction (implemented, verified): exchangeId = HMAC-SHA-256 over the full canonical record — every canonical relay-record field, canonical-JSON serialised, excluding only the id itself; the canonicalisation also excludes protocolIdentifier, an IANA transport field the decoder adds, which is not relay-attested content — keyed with a relay-held export key. Records differing in any exported field, attempt counters included, get distinct ids; a party without the key cannot forge records that verify. Verification runs in the reconciler: each record’s MAC is recomputed from its canonical reconstruction and reported as a record_authentication verdict (41/41 in the canonical run; a tampered field without a re-MAC fails — regression check 9). The symmetric-key limits stand: any verifier holding the key (the SOC, at audit) can also forge, so there is no non-repudiation — an Ed25519 signing key upgrades that at the cost of key ceremony — and verification does not prevent the key-holder lying (§4) or deleting — sequence continuity reveals gaps in the specified export stream and append-only retention protects records once received; neither establishes completeness against omission before export (§4).
7. What token-flow supports — and what it does not
Read from the instruments [V — EUR-Lex rendered bodies, 2026-10-30; correction below]:
- DORA (Reg. (EU) 2022/2554). Art. 28(3): register of information over ICT third-party contractual arrangements. Art. 30(2): contracts must state the locations — regions or countries — where functions and ICT services are provided and data is processed, including storage, with advance notification of change. Token-flow’s N-rows evidence which endpoints were actually used; its G-rows tie routes to the register version in force. Together: supporting evidence that operation matched the register and the contract. destinationTier is a policy classification; evidence that processing occurred in a jurisdiction is, at most, the resolvedAddress joined to the provider’s published ranges and contractual commitments — the record does not see inside the provider.
- GDPR Chapter V. Destination evidence supports transfer accountability; it says nothing about sub-processing behind the endpoint.
- EU AI Act (Reg. (EU) 2024/1689, as amended by Reg. (EU) 2026/1744). High-risk application dates per the amended Art. 113: 2 December 2027 (Art. 6(2)/Annex III) and 2 August 2028 (Art. 6(1)/Annex I) [V — amendment Art. 1(40) rendered]. Art. 12 automatic logging and Art. 26(6) deployer retention attach to high-risk systems via either route — Annex III or Annex I — so exclusion requires being outside both, not merely outside Annex III. Where they apply, token-flow is network-level traceability support, not Art. 12 compliance. Correction from v0.1: v0.1 stated, graded [V], that 2026/1744 contains no amendment touching Article 50. That was false. The amending act’s recital (38) and its insertion into Art. 111 give providers of generative AI systems placed on the market before 2 August 2026 until 2 December 2026 to comply with the Art. 50(2) marking obligations [V — NBSP-normalised rendered read, 2026-10-30]. The v0.1 error came from a string search defeated by non-breaking spaces in the EUR-Lex rendering; the method gate now in force (ledger correction log) requires whitespace-normalised search and provision-level reading for any legal absence claim. Art. 50’s obligations (disclosure and marking) remain ones that flow records do not address.
One sentence to hold us to: flow records satisfy no obligation on their own.
8. Limitations
- The egress boundary is an organisational decision with costs far beyond AI governance; nothing here minimises them, and segments outside the boundary are outside every claim.
- All governance attributes (A-rows) are relay-attested; reconciliation bounds but does not verify them (§4). Token counts are provider-reported, relayed, and not measurable from ciphertext.
- SNI-based labelling of denied or anomalous traffic degrades under ECH adoption; the DNS snapshot in §3 is dated. Enforcement does not depend on it (§3).
- [D] covers the mechanism in a single-host software testbed only: no hardware demonstration, no performance claims (local-host latencies, one machine, one clock — cross-host NTP skew untested), and administrative separation represented by namespaces, not organisations. Token counts remain provider-reported in the implementation exactly as in the design.
- Pseudonymisation and auditor fields summarise statistical controls; they report actions, not guarantees.
9. Demonstration — executed and measured
All five cases were implemented and run on 2026-10-30 in the reference testbed (scope in the grading legend; full record, raw artefacts and source in the companion RESULTS document). Acceptance reported demonstrated-or-not, per the convention credited in Appendix A:
| # | Case | Measured outcome | Grade |
|---|---|---|---|
| 1 | Baseline — 40 concurrent requests, mixed workloads, one forced 529; sweep ×5 archived (sweep_run1–5) | 40/40 on every run; 41 records on 2 multiplexed connections (19/20 and 19/19 successor overlaps); retry = predicted record pair; relay wire counters vs boundary capture byte-identical on all 10 sweep connections; outbound residual repeated exactly across the five runs (2,177 and 2,190 B), inbound 1,993–2,071 B; 41 IPFIX messages, zero sequence gaps; every record decoded by the independent library and authenticated 41/41 (full-record HMAC); v2.1 verdicts PASS under the enforced tolerances | [D] |
| 2 | Bypass — client attempts direct provider egress | Connection denied (timeout); boundary bypass_drops counter = 2 SYNs; denied flow visible to the client-side observer; C3 ALERT on the attempt class. C3’s crossing class (a misconfigured permit letting traffic through) was not exercised — future case |
[D] |
| 3 | Missing evidence — two causes | 3a source suppression → C2 ALERT (fresh, record-less connection; 2,141 uncovered outbound bytes incl. handshake — unmatched 5-tuples are detected at any size); 3b transport loss → C4 ALERT (gap expected 1, got 3, lost 2) and C1 FAIL on the dropped-batch connection, because the collector-side record set genuinely lacks the lost records — a dual signal; log-mode on the same artefacts passes C1 (the local twin holds them), isolating the loss to transport. Distinguished for an honest exporter (§6) |
[D] |
| 4 | Falsified governance labels — now with provider-side ground truth (v0.3 review finding 5 adopted: the relay performs a real pseudonymisation transform; falsify-pseudo skips it while reporting applied; the provider independently logs raw-secret arrivals) |
Ground truth: 10 requests reached providers, 3 carried raw secrets — exactly the falsified ones; records claimed applied 10/10; lies ground-truthed = 3, detected by reconciliation = 0 (computed from the truth file, not asserted); register audit flagged 3/3 tier (G-row) lies via destination contradiction — still conditional on disjoint per-tier addresses; traffic verdicts C0–C3 all PASS while lying. servedModelId lie: future case |
[D] |
| 5 | Structured-log baseline, same observations | Verdict parity on the suppression and falsified-label adversarial cases (C2 ALERT and register-audit ALERT in both modes); the transport-loss case diverges by design — IPFIX C1 FAIL (the collector-side record set genuinely lacks the lost records), local-log C1 PASS (the relay’s twin still holds them) — which is the loss-vs-suppression information the sequenced transport adds; 547.0 B/record pure IPFIX message bytes vs 794.8 B/record JSONL in the canonical run — v0.3’s 519 wrongly included the capture file’s 12 B/datagram storage wrapper (reviewer correction, adopted; message bytes and capture-file bytes reported separately); loss attribution only on the sequenced path — a property of sequenced shipping the JSONL baseline as built lacks | [D] |
| 6 | Adversarial reconciler suite — the v0.3 reviewer’s altered-input table plus the v0.4 reviewer’s two reproduced edge cases, as a permanent regression gate (13 checks) | Unmodified inputs PASS and authenticate; bytes ×100 → FAIL; 39/41 records dropped → FAIL; 1999 timestamps → FAIL; reversed start > end intervals (valid MACs) → FAIL; reverse observations removed → FAIL; empty records → C0 FAIL_EMPTY; 6,000 B inbound under-report behind a self-declared abort (valid MACs) → PASS_DEGRADED, never PASS; field tamper without re-MAC → record_authentication FAIL; zero heartbeats over a multi-window span → C4 ALERT; true inputs → PASS. Suite GREEN 13/13; gate: no PASS-rate or threshold claim ships unless it is |
[D] |
All figures above come from one run-id-stamped bundle (extract.py, RUNINFO.json; the mixed-run drift the v0.3 review caught — 38-vs-35 messages — is closed by construction). Still future work, on the Appendix A platform class: the hardware demonstration (boundary ACLs and counters in a switch’s forwarding plane, relay beside it), cross-host clock behaviour, windowed reconciliation as implemented rather than proposed, a shared-address tier variant, a servedModelId lie case, and any performance claim.
Appendix A — Platform notes and attribution
A.1 Substrate. The demonstration platform class is the x86-control-plane switch: whitebox (ONIE/SONiC; Atom C3000/Xeon D, 8–32 GB class [PS]) or end-of-service-life enterprise hardware under an open NOS. The class is exemplified by NOSaic (Christopher Wright, Salvaged-silicon/nosaic-switch, Apache-2.0 [V — LICENSE at pinned commit]): an independent open-source NOS for vendor-abandoned switches; per the project’s own README at commit 49d0ffae38, an Arista 7050SX2-72Q (Trident2+, x86_64) and an Edgecore AS5610-52X boot from their own flash and forward in silicon, verified by ASIC counter deltas, with a CPU punt path measured at 500 packets/s at zero loss, stated as where the test stopped [R — project-reported, source-inspected, not independently reproduced]. The project labels nothing production and grades demonstrated against intended per board — a discipline this brief adopts. NOSaic is unaffiliated with this work; credit is citation, not endorsement by its author. The board’s CPU model and RAM are stated nowhere in NOSaic’s own docs (absence at raw-read grade of all eight board files); Arista’s 7050SX datasheet specifies the 7050SX2-72Q control plane as quad-core x86 with 4 GB system memory [PS — vendor-authored datasheet read via a reseller mirror, 2026-10-30; the Arista-hosted primary was not fetched]; consistent with the project’s RAM-booted 1.9 GB log fill [INF]. The punt-path figure is adopted as a demo design parameter; production shape is relay-on-adjacent-host (§6). Realtek/OpenWrt-class switches are excluded as platform: 128 MiB RAM, 0.5–1 GHz MIPS, 20–50 Mbit/s CPU path [PS]; their L3 offload became unconditional in OpenWrt snapshots only on 2026-10-05 (PR #25636 merged [V]).
A.2 Relay implementations, licences read from LICENSE files at pinned commits, 2026-10-30 [V]: LiteLLM (MIT; enterprise/ under a separate BerriAI commercial licence); Bifrost (Apache-2.0; performance figures are vendor-reported and internally variable — 9–59 µs at 5000 RPS across the vendor’s own pages [R]); Apache APISIX ai-proxy (Apache-2.0); Agent Router, renamed from Envoy AI Gateway 2026-09-10 (Apache-2.0); agentgateway, Linux Foundation (Apache-2.0). Excluded: Helicone ai-gateway (GPL-3.0, dormant since 2025-11). Context: Portkey gateway MIT at head but quiescent since 2026-05, post-acquisition by Palo Alto Networks.
A.3 Export path [V]: go-ipfix (Apache-2.0; latest tag pre-release-flagged) supports exporter-defined enterprise IEs; incumbent Linux exporters are unsuitable (softflowd: fixed template sets; ipt-netflow: last pushed 2025-04, no custom-IE support found).
A.4 Hosted-relay reference point [V]: OpenRouter — bearer auth, openrouter.ai/api/v1, provider/model ids, provider fallback, Cloudflare-Workers edge; current docs publish no latency figure. Its 39 public repos contain no routing-core (org-scoped absence, API enumeration 2026-10-30). Every absence or status claim in A.2–A.4 (dormancy, “no custom-IE support found”, “no latency figure”, the Portkey acquisition [PS]) carries its method, interface and date in the accompanying GATE_LEDGER.
Appendix B — Search method behind the absence claims
All on 2026-10-30. Scope limits stated; none of these establishes broad absence.
- IETF: datatracker API enumeration — all IPFIX-titled drafts since 2025 (TCP options, BGP VPN, IGP, GTP-U, SR PSID, SAV, GPON, alt-mark, energy, delay, TLS-handshake export), plus “large language” and “AI gateway” title sweeps. Zero governance-attribute IEs. Title-level only.
- Patents: Espacenet full-text.
"IPFIX" AND "large language model": 19 hits, each reviewed at list/abstract grade — all LLMs consuming flow data (anomaly detection, assurance, NL query, RCA); nearest miss US20250300939A1 (Arista; flow management by application; claims unread).(NetFlow|IPFIX) AND ("LLM gateway"|"AI gateway"|"token usage"): one irrelevant hit. Not a patentability or FTO search. - Vendor survey: the three products in §1, export formats read from their own documentation.
- Naming: “token-flow” is in use elsewhere — TokenFlow in ML literature, Tokenomy’s Token Flow Visualizer, a “Token-Flow Firewall” agent-governance paper, a token-usage tracker, a design-token feature [PS]. No prior use as a network flow-record type was found within these searches [INF]. The term is kept for descriptive force; the collisions are disclosed.
Appendix C — Revision and review record
The brief’s evidence claims live in GATE_LEDGER (correction log C-1…). Review lineage, newest first:
- v0.5 → v0.6 (this draft): external verification pass of v0.5 scored 8.5/10 — offline verification against the archived bundle (110/110 manifest entries including the published root; all ten captures re-decoded identically; 13/13 regression checks; the reviewer’s original under-reporting and reversed-interval attacks now return PASS_DEGRADED and FAIL respectively; archived verdicts and the 5×40/40 byte-exact sweep reproduced). Required corrections were editorial: stale size figures, parity-claim qualification, three assurance phrases, diagram traversal — all applied in this draft.
- v0.4 → v0.5: the consistency-and-edge-case pass the v0.4 external review (8/10) required: superseded v0.3-era text is consolidated onto the verified v2.1 results (every figure below regenerated from the canonical bundle, run
20261030T134513Z-91452ce5); the two reproduced edge cases are closed in code and gated — a connection within tolerance only via the attested abort allowance is classified DEGRADED and C1 reports PASS_DEGRADED, never PASS, andstart ≤ endis validated per record; full-record HMAC verification now runs in the reconciler (record_authenticationverdict), symmetric-key limit stated; the regression gate grew to 13 checks and is GREEN. A process correction is in the ledger: two v0.4 edits (§6 construction, §9 baseline row) were silently dropped by an aborted edit batch — the stale text the review caught — so the edit procedure now verifies anchors per fix and writes incrementally. Changes from v0.3 — a code-to-claim alignment pass, as the external code review of v0.3 (7.5/10) required. Its central finding is adopted without reservation: the v1 reconciler’s verdicts did not enforce the checks this brief described — byte inflation ×100, mass record deletion, 1999 timestamps and missing reverse-direction observations all passed. The reconciler is rewritten to enforce (tolerances, over-report, timestamp containment, bidirectional evidence, heartbeat deficit), the reviewer’s altered-input table ships as a permanent regression gate and is GREEN, the pseudonymisation experiment is made real with provider-side ground truth, aborted attempts get their own records, exchangeId covers the full record, demonstrated-vs-proposed is split explicitly (windowed allocation is proposed, not implemented), and one versioned, run-id-stamped bundle replaces mixed-run figures — with per-record sizes corrected to pure IPFIX message bytes, not capture-file bytes (the 12 B/datagram wrapper was storage metadata; reviewer correction — the canonical run’s measured figure is 547.0 B/record, §9). The byte-exact wire agreement, re-run after the fixes, is now repeated exactly across a clean 5×40/40 sweep. v0.3’s and v0.2’s changes stand. - v0.1: external review (6.5/10, seven points) — all adopted; v0.2–v0.3 internal adversarial spawn (both canaries caught, 33 findings adopted); v0.3 external code review (7.5/10) whose altered-input attacks became the permanent regression gate.
Related work (cited in text)
RFC 7011; RFC 6759; RFC 9113; RFC 9849; draft-melegassi-opsawg-mvps-telemetry-export-00; draft-gao-opsawg-ipfix-term-and-app; draft-su-ai-gateway-discovery; nDPI PR #3294; PAN-OS NetFlow Templates (PEN 25461, fields 56701/56702); Cisco AVC/NBAR2; Prisma AIRS, Cisco AI Defense, Netskope export documentation; US20250165752A1; US20250300939A1; NOSaic (C. Wright, Salvaged-silicon, Apache-2.0); OpenRouter documentation; LiteLLM, Bifrost, Apache APISIX, Agent Router, agentgateway; go-ipfix; EUR-Lex CELEX 32022R2554, 32024R1689, 32026R1744.
Companion artefacts
RESULTS — token-flow reference implementation, measured demonstration record (2026-10-30), with per-case raw records, observations, reports and the ~1,300-line source; GATE_LEDGER_tokenflow_2026-10-30 — claim-by-claim evidence ledger with correction log.
Draft v0.6 · pre-publication consistency edit after the external verification pass of v0.5 (8.5/10). Revision and review record: Appendix C; claim-by-claim evidence: GATE_LEDGER. Shelby context: the tiered-register pattern in §3 mirrors the aifactor.ie Gateway’s policy-routing control; this brief stands alone and asserts no product claim.