Papers1 provider · 1 record
January 1, 2026· Zenodo
preprint

The Competent Token: Composing a Free Competence Gate with Integrity and Provenance, and the Trust-Domain Boundary of a Deterministic Edge Decision

Abstract

The Competent Token: Composing a Free Competence Gate with Integrity and Provenance, and the Trust-Domain Boundary of a Deterministic Edge Decision Randolph James Ferlic, M.D. and Kimberly Kate Ferlic · Fieldstone Analytics, LLC, Austin, TX, USA · Preprint · Zenodo DOI: 10.5281/zenodo.24546261 · CC-BY 4.0 · Community: spiral-domain-encoder-campaign Abstract A frozen, deterministic, class-discriminant single-token decision encoder reduces a window of sensor observations to one 8-bit token by a fixed feature front end, a collapsed-affine projection, and a nearest-of-≤256-centroid lookup. Companion studies showed this determinism makes a logged decision checkable (a self-checking token) and provable (a verifiable-provenance token closed by a keyed anchor). This work adds the third question a deployed decision must answer — "should this decision be trusted at all, or is its input outside the commissioned envelope?" — and asks whether the competence gate that answers it (the nearest-centroid distance, read off the same embedding whose index is the token) composes with the integrity and provenance readouts off one committed window, cheaply, cleanly, and with an honest boundary. It does, and the boundary is the point. Composition is free (the gate is a by-product of the token's own nearest-centroid search — zero extra feature extractions, embeddings, or distance computations; readout-preservation 0.0). Coverage is orthogonal (a threat-by-pillar matrix is the identity on seven modalities — tamper caught only by integrity, forgery only by provenance, out-of-competence only by competence — with zero cross-interference on a clean log). The boundary is sharp and measured: the three pillars' blind spots intersect at exactly one residual — an intact, authentic, in-competence input can still be a confident on-manifold error — and composition does not shrink it (competence AUROC on all-pass errors ≈0.5), which an adaptive adversary makes the operative regime (71% reachable). The composed check is cheap and bit-exact on silicon (gate 5.3–10.2% of the token front end and +3.2% over the prior provenance check; a device's ARM float32 flag equals a host's x86 float64 flag on 0 of 32 mismatches, two cores, identical cross-core digests), constant-time with respect to its verdict (timing-to-flag AUROC 0.56 / 0.48 ≈ 0.5 — no timing side channel), and the distance, if logged, leaks almost nothing beyond the already-logged token (+0.05 above chance vs the token's +0.47). The deepest limit: all three runtime pillars trust the frozen model, so a model poisoned at commissioning yields intact, authentic, in-competence decisions wrong by design (19.5%) that none of the three pillars detect — the surface is downstream of an attested commissioning process. The gate is not a weak detector: it ties five classical out-of-distribution detectors (mean gap −0.015 AUROC) and a trained autoencoder and a task-shaped deep network (spread 0.022), so its value is determinism, a one-byte footprint, on-device operation, and auditability, not accuracy. The properties hold on an eighth domain (chemical e-nose), the adapted decision, and the exactly-reproducible int8 path (flag agreement 0.993); the residual's remedy is a conformity fourth readout off the same front end (0.53 → 0.74), an irreducible core remaining. The work is a characterization of previously published, separately patent-pending matter and introduces no new claimed mechanism; the cryptographic primitives and the conformity readout are textbook, cited and used; the per-deployment provisioning selection is retained as a trade secret. Highlights · A free third readout. The competence gate is the nearest-centroid distance — a by-product of the token's own argmin — so it adds 0 extra feature extractions, embeddings, or distance computations, only a compare, and is numerically identical read alone or composed (readout-preservation 0.0). · Orthogonal coverage, zero interference. A threat-by-pillar matrix is the identity on seven modalities (tamper → integrity only, forgery → provenance only, out-of-competence → competence only), 0 cross-interference on a clean log. The three pillars are complementary (verdict co-firing 0.000). · The honest boundary. Intact + authentic + in-competence ≠ correct: the blind spots intersect at the confident on-manifold error (competence AUROC ≈0.5 on all-pass errors), adversarially reachable at 71%. · Composed cost + a bit-exact flag, on silicon. Gate 5.3–10.2% of the token front end, +3.2% over the provenance check; host float64 flag = device float32 flag on 0 of 32 mismatches, cores identical. · No side channels. Constant-time gate (timing-to-flag AUROC ≈0.5); negligible distance leak (+0.05 vs +0.47). · Root of trust = commissioning. A poisoned commission (19.5% wrong-by-design) is detected by none of the three pillars. · Not a weak detector. Ties five classical detectors (gap −0.015) and a trained autoencoder and a deep net (spread 0.022). Value = the package, not accuracy. · Breadth and remedy. The properties hold on eight domains (seven sensors plus chemical e-nose), on the adapted decision, and on the exactly-reproducible int8 path (flag agreement 0.993); the residual's remedy is a conformity fourth readout off the same front end (0.53 → 0.74), an irreducible core remaining. · No new intellectual property. The three readouts and the one fact The decision is a bit-exact pure function of a committed input window on a public frozen model (E = A·feats + b; token = nearest-of-K centroid). Three trust readouts are functions of the one embedding E: integrity (re-derive the token and compare), provenance (bind it with a keyed tag), and competence (the nearest-centroid distance d(E) = min over K of ||E − C_k||, against a commissioned threshold τ). The first two are companion studies; this work characterizes the composition of the third with them. Composition is free, and coverage is orthogonal The competence distance is the minimum value of the same K distances the token's argmin computes, so the gate adds only a threshold compare (readout-preservation 0.0). The threat-by-pillar matrix is the identity on all seven modalities, with zero cross-interference on a clean log; integrity and provenance are blind to a genuine out-of-competence reading, and competence is blind to tamper and forgery — complementary, not redundant (integrity-provenance verdict co-firing 0.000). modality threat×pillar clean-log FP on-manifold residual residual AUROC bearing vibration (A) identity 0 0.000 — (separable) force / torque identity 0 0.468 0.492 body-motion gesture identity 0 0.222 0.474 inertial activity identity 0 0.156 0.542 ECG identity 0 0.011 — (separable) sEMG identity 0 0.055 — (small) The honest boundary: intact + authentic + in-competence ≠ correct The three blind spots intersect at the confident on-manifold error: an input that passes all three checks can still be wrong, and the competence distance is blind to it (AUROC ≈0.5 on the overlapping-regime modalities), reproducing the on-manifold-blindness law under composition. An adaptive adversary interpolating toward a cross-class region while staying in-competence lands an all-pass-yet-wrong input 71% of the time (vs 13% naturally). Composition does not shrink the residual; a conformity fourth readout off the same front end shrinks it (0.53 → 0.74) without dissolving an irreducible confident-locally-homogeneous-wrong core. The composed cost, a bit-exact flag, and no side channels, on silicon core modality (window) gate cost token front end gate / front end gate / provenance flag identity Cortex-M33 bearing (1,024) 74 1,388 5.3% +3.2% host==device 0/32; digest 48caab51 Cortex-M33 force/torque (96) 27 268 10.1% +7.5% host==device 0/32; digest 4cb653f7 Cortex-M4F bearing (1,024) 11,329 184,431 6.1% +3.5% digest 48caab51 (= M33) Cortex-M4F force/torque (96) 4,079 39,975 10.2% +7.7% digest 4cb653f7 (= M33) The gate is a by-product of the token's argmin (the full three-pillar trust check ≈ the prior provenance check); the host float64 flag equals the device float32 flag on every window (0 of 32 per leg), digests identical cross-core; the gate is constant-time with respect to its verdict (timing-to-flag AUROC 0.56 / 0.48); the flag is FP-margin-protected (0 of 4,263 in the danger band, 0 of 8,526 flips, Wilson 95% upper 4.5×10⁻⁴); the int8 gate agrees at 0.993. The distance, if logged, leaks ≈nothing beyond the already-logged token. The root of trust is commissioning All three runtime pillars trust the frozen model. A model poisoned at commissioning produces intact, authentic, in-competence decisions that are wrong by design (19.5% all-pass-wrong), and none of the three pillars detect it — the trust surface is downstream of an attested commissioning process, not any runtime readout. Trusted/attested commissioning is a prerequisite, not provided by this work. Not a weak detector, and the breadth The composed token gate (open-set AUROC 0.868) ties the best of five classical detectors (Mahalanobis, k-nearest-neighbor, one-class SVM, local outlier factor, isolation forest; mean gap −0.015) and ties a trained autoencoder (0.775) and a task-shaped deep network (0.790) within a spread of 0.022 — its value is determinism, one byte, by-product cost, on-device operation, and auditability, not accuracy. The composition holds on a second domain (financial market-state tokens on equity, cryptocurrency, bond), an eighth modality family (chemical e-nose: novel-class 0.86, cross-batch drift 0.76), the adapted decision, and the exactly-reproducible int8 path. detector mean open-set AUROC relative to token gate determinism / footprint composed token gate 0.868 — deterministic, 1 byte, by-product of the token, on-MCU Mahalanobis / kNN / OCSVM / LOF / isolation forest (best) 0.883 −0.015 (tie) non-deterministic or heavier; off-device trained autoencoder (reconstruction error) 0.775 within 0.022 (tie) learned, heavier, non-deterministic task-shaped deep penultimate 0.790 within 0.022 (tie) learned, heavier; task-shaping discards OOD The honest bounds The composed surface guarantees intact, authentic, and in-competence — not correct (the on-manifold residual survives, reachable at 71%); competence is not a forgery defense (a forger hits a centroid or replays; the keyed tag is mandatory); competence is drift-sensitive where integrity and provenance are drift-invariant (recommission required; per-commission, held-out-calibrated threshold); the root of trust is commissioning; the conformity remedy shrinks but does not dissolve the residual; key management and secure commissioning are system matters out of scope; absolute energy is meterable, the ratio is the portable cost claim. The composed trust-domain map The coverage map the composition induces is the central deliverable: what the composed surface guarantees, what each pillar is blind to, how each behaves under drift, and what each costs. readout catches (at what rate) blind to under covariate drift marginal cost integrity — "is it intact?" a tampered logged decision (detection 1.000) a genuine out-of-competence reading; a keyless consistent rewrite exact — drift-invariant the token re-derivation already computed provenance — "did it come from here?" an un-attested forgery (detection 1.00) a correctly-computed decision's competence; replay without a nonce exact — drift-invariant + one keyed-tag verify competence — "should it answer?" an out-of-competence input (open-set AUROC 0.54–1.00) tamper, forgery, and the confident on-manifold error drift-sensitive — false-trip climbs; recommission + one compare (by-product of the token's argmin) composed surface intact + authentic + in-competence the confident on-manifold error (reachable 0.71); a poisoned commission inherits each pillar's own failure mode ≈ the provenance check (competence adds +3.2%) Each runtime readout is the sole catcher of its own threat class and blind to the others'; the composed surface guarantees intact, authentic, and in-competence — not correct — with the confident on-manifold error as the one residual all three miss, and an attested commissioning process as the root of trust none of them can establish. Reviewer-hardening and side-channel summary The composition was subjected to a pre-registered reviewer-hardening and side-channel battery, each probe answering a specific objection. probe the objection it answers measured result boundary-margin census is the bit-exact flag structural or lucky? 0 of 4,263 test samples within the float32 danger band of the threshold FP / reduction-order census can fast-math or FMA reordering flip the flag? 0 of 8,526 flag flips; one-sided 95% upper bound 4.5×10⁻⁴ int8 gate does the real quantized build hold? flag agreement 0.993 with the float gate, exactly reproducible per-commission threshold does one commission's threshold transfer? no — sibling false-trip 0.76; per-commission calibration mandatory compound attacks do two- or three-threat combinations open a gap? union-catch 1.00; no emergent blind spot beyond the on-manifold residual replay with a valid tag replay a genuine (input, token, tag)? evades both pillars stateless (0.98); a monotonic nonce closes it (1.00) distance information side channel does logging the distance leak more than the token? +0.05 above chance vs the token's +0.47; marginal −0.001 timing side channel does the gate's time leak its verdict? constant-time; timing-to-flag AUROC 0.56 / 0.48 ≈ 0.5 commissioning poisoning do the runtime pillars catch a poisoned model? no — 19.5% all-pass-wrong, 0 detections by any pillar adaptive worst-case residual how large can an adaptive adversary make the residual? all-pass-yet-wrong reachable 0.71, vs 0.13 naturally The transferable lesson When three trust readouts — integrity, provenance, competence — are deterministic functions of one committed input window on a public frozen model, they compose for free and cover orthogonally, but the composed surface guarantees intact, authentic, and in-competence — not correct; competence is not a forgery defense and is drift-sensitive; the confident on-manifold error is the one residual all three miss and an adversary can reach; and the whole surface is only as trustworthy as the attested commissioning beneath it. The boundary between what composition gives for free and what it cannot give at all is as much the result as the free composition is. What this record contains The three frozen pre-registrations; the runners for the composition core, the reviewer-hardening battery, and the side-channel and boundary battery; the measured result records from which every headline is recomputed; the on-silicon competence-gate firmware leg (flag, digest, cost, per-window timing), the microcontroller console captures for both cores and both modalities, and the silicon result files; the known-answer competence-gate vectors under a published non-secret threshold; the reference feature-front-end specification; the figure builders; and the numerical, cross-document, table-cell, and confidentiality audit scripts. The per-deployment provisioning selection is deliberately excluded and retained as a trade secret. Cite as Ferlic, R. J., & Ferlic, K. K. (2026). The Competent Token: Composing a Free Competence Gate with Integrity and Provenance, and the Trust-Domain Boundary of a Deterministic Edge Decision. Zenodo. https://doi.org/10.5281/zenodo.24546261 License, patent notice, and competing interests Competing interests. The authors are the inventors on the patent-pending matter characterized here and have a financial interest in its commercialization through Fieldstone Analytics, LLC. No third-party partner, customer, or commercial collaborator is named; the public-benchmark datasets named are used for reproducibility only; and no specific third-party application or grant number is asserted. License. Released under Creative Commons Attribution 4.0 International (CC-BY 4.0). The license covers the copyright in the text, figures, and code only; no patent or other intellectual-property right of the authors is licensed, waived, or conveyed. Patent and intellectual-property notice. This work introduces no new intellectual property: it is a characterization of the composition of previously published, separately patent-pending readouts (the base single-token encoder and its nearest-centroid competence monitor, the committed-input protocol, the self-checking token, and the keyed provenance anchor) together with the previously published shared-front-end composition principle and textbook constructions (keyed message-authentication codes, monotonic-counter nonces, and a k-nearest-neighbor conformity score) that are cited and used, not claimed. The base methods are the subject of pending applications; this characterization neither adds to nor narrows those claims, and disclosing that the composed surface does not guarantee correctness, that competence is not a forgery defense, and that a poisoned commission defeats the surface discloses limitations, which narrow rather than broaden. The methods and their parameters are public by the design of this program; the security of the keyed properties rests on key secrecy, not on method secrecy, consistent with Kerckhoffs's principle. The confidentiality of a decision (concealing it from a party without a key) is a separate trust axis, out of scope here, and no mechanism for it is disclosed. Trade secret. The per-deployment provisioning selection — the per-commission competence threshold, the choice of which readouts to compose, the conformity neighborhood and abstention budget, and the audit tier for a given threat and power budget — is retained as a trade secret and is deliberately not disclosed. Contact. Corresponding author: Randolph J. Ferlic, M.D. — [email protected]. ORCID: 0009-0006-2367-5205 (R.J.F.), 0009-0007-3012-3430 (K.K.F.). © 2026 Fieldstone Analytics, LLC and the authors. The subjects are described throughout as patent pending. Companion deposits (spiral-domain-encoder-campaign) This preprint is one of a connected series characterizing one frozen, deterministic single-token decoder; all companions are cited by their public Zenodo records. The two integrity and provenance pillars and the standalone competence gate are the directly load-bearing companions. · 10.5281/zenodo.20788187 — the class-discriminant single-token codebook encoder (the base substrate whose determinism and nearest-centroid search this work composes three trust readouts from). (References.) · 10.5281/zenodo.24450554 — "The Self-Checking Token Under Intermittent Power" (the committed-ring re-derivation as a free integrity monitor; the integrity pillar composed here). (Is derived from.) · 10.5281/zenodo.24540845 — "The Verifiable Token" (free decision provenance and the keyed authenticity boundary; the provenance pillar composed here). (Is derived from.) · 10.5281/zenodo.23347775 — "The Competence-Boundary Interlock" (the standalone competence gate: when a frozen one-byte token can and cannot serve as a safety gate, and the separability law that predicts it). (Is derived from.) · 10.5281/zenodo.23351878 — "Watch the Input, Not the Representation" (the competence-boundary runtime monitor and the watch-the-input law). (References.) · 10.5281/zenodo.23504157 — "A Tier-0 Behavioral Interlock for Agentic AI" (the self-twin competence gate on an out-of-sample entity type; the on-manifold-blindness law). (References.) · 10.5281/zenodo.24426652 — "The Composition Energy Law" (the measured shared-front-end sub-additivity whose composition principle this work applies to trust readouts). (References.) · 10.5281/zenodo.24513982 — "The Energy Capstone" (the energy synthesis that cross-confirms the shared-front-end cost and measures the composed per-decision energy). (References.) · 10.5281/zenodo.24404565 — "Adaptation Under Intermittent Power" (progress-free re-derivation of a bounded sufficient statistic; the adapted-decision leg whose provenance and competence this work extends). (References.) · 10.5281/zenodo.23423656 — the geometry-gated drift adaptation (the drift the adapted decision re-derives and the gate must recommission against). (References.) · 10.5281/zenodo.24120987 — the partition-axis invariance study (the recalibration-free robustness axis complementary to the drift-sensitive competence gate). (References.) · A companion peer-reviewed baseline study (single-token sensor substrate; classifier parity at extreme compression) — IEEE journal, accepted; supplies the classifier-parity premise. (References.) · (Community) spiral-domain-encoder-campaign. Data and reproducibility On-silicon work is on a Nordic nRF54L15 (Cortex-M33) and nRF52840 (Cortex-M4F); timing is from the cores' cycle counters; the float path is compiled IEEE-strict (-ffp-contract=off, never fast-math). "Bit-exact" is a silicon claim (the two-core flag-digest identity and the device-vs-host flag identity), with host agreement reported with zero disagreements and shown structurally safe by the boundary-margin census. The raw sensor and financial datasets are public and fetched externally (not redistributed). Build artifacts and the const golden headers (build products) are omitted; regenerate the headers with the exporter, then build and flash via an ARM toolchain. Absolute paths, personal handles, vendor-tool invocations, device serial numbers, and the per-deployment provisioning selection (retained as a trade secret) are excluded. Keywords edge inference; edge AI; TinyML; on-device inference; microcontroller; Cortex-M33; Cortex-M4F; Nordic nRF54L15; nRF52840; CMSIS; DWT cycle counter; deterministic inference; bit-exactness; cross-architecture reproducibility; reproducibility; pre-registered; on-silicon; IEEE-754; floating-point determinism; constant-time; timing side channel; side-channel analysis; competence monitoring; competence boundary; out-of-distribution detection; OOD detection; open-set recognition; novelty detection; nearest-centroid distance; Voronoi margin; Mahalanobis distance; one-class SVM; local outlier factor; isolation forest; autoencoder; conformity; deep k-nearest-neighbor; conformal prediction; selective prediction; abstention; trust; trustworthy AI; edge trust; decision provenance; integrity monitoring; tamper-evidence; keyed message authentication code; HMAC; SipHash; monotonic counter; replay resistance; composition; shared front end; composable readouts; threat model; adversarial robustness; on-manifold error; adaptive adversary; data poisoning; commissioning; attested commissioning; root of trust; model binding; supply-chain integrity; drift; covariate shift; recommissioning; calibration; held-out calibration; frozen token; single-token encoder; class-discriminant; nearest-centroid codebook; vector quantization; collapsed-affine; committed input window; bounded pure function; zero progress state; int8 quantization; condition monitoring; bearing fault; force/torque; electrocardiogram; electromyography; human activity recognition; chemical e-nose; financial market state; linear discriminant analysis; principal component analysis; k-means; characterization; trade secret; patent pending; spiral-domain-encoder-campaign

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.