Learn R Programming

resLIK

Deterministic reliability sensors operating on latent representations. This package implements the ResLik, TCS, and Agreement sensors along with a deterministic control surface.

Version: 0.1.1

Control Signal Semantics

The system issues standardized signals. These signals are semantic contracts, not errors.

SignalMeaningRecommended Action
PROCEEDHigh confidenceSafe to continue.
DEFERUncertainty / DriftNot an error. Pause, inspect, log, or retry.
ABSTAINFundamental InvalidityStop. Fallback to safety model.

Usage

ResLik Sensor

library(resLIK)
set.seed(42)
z <- matrix(rnorm(20), nrow=2)
out <- reslik(z, ref_mean=0, ref_sd=1)
print(out$gated)
print(out$diagnostics)

Temporal Consistency Sensor

z_t <- c(1, 0, 0)
z_prev <- c(0.9, 0.1, 0)
out <- tcs(z_t, z_prev)
print(out$consistency)

Agreement Sensor

z1 <- c(1, 0)
z2 <- c(0, 1)
out <- agreement(z1, z2)
print(out$agreement)

Control Surface

# Assuming 'res', 'tcs_out', 'ag_out' from above
decision <- rlcs_control(out, tcs=list(consistency=0.9), agreement=list(agreement=0.9))
print(decision)

Note on Folder Name

The package name is resLIK. The source folder is named resLIK_package to avoid conflicts on case-insensitive filesystems with the existing reslik directory.

Copy Link

Version

Install

install.packages('resLIK')

Version

0.1.2

License

MIT + file LICENSE

Maintainer

MD. Arshad

Last Published

February 6th, 2026

Functions in resLIK (0.1.2)

tcs

Temporal Consistency Sensor
agreement

Agreement Sensor
reslik

Residual Likelihood Sensor
rlcs_control

RLCS Control Surface