ps4emp/CacheSentry

Audit LLM prompt traces for KV cache-reuse stability.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
trace-pathPath to the JSONL trace file to audityes
modelHugging Face model name to emulate tokenization and chat templatesyes
input-formatInput format: cachesentry or openai-chatnocachesentry
render-modeHow to render inputs for diffing: simple or hf-chat-templatenosimple
fail-on-severitySeverity threshold to fail the build: off, low, medium, high, criticalnohigh
max-total-lost-reusable-tokensFail if total lost tokens exceeds thisno
max-pair-lost-reusable-tokensFail if any pair's lost tokens exceeds thisno
min-average-stable-prefix-ratioFail if avg stable ratio falls below this (0.0 to 1.0)no
fail-on-culprit-kindComma-separated list of culprit kinds to fail on (e.g. uuid_or_request_id,timestamp)no
outputPath to write the trace reportno
redaction-modeRedaction modenomask
hash-saltOptional salt for hash redaction. Pass via secrets.no
github-annotationsEmit GitHub Actions annotations for violationsnotrue
sarif-outputOptional path to write SARIF reportno

no outputs