statecheck

command
v0.188.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: BSD-3-Clause Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command statecheck refuses a reply that states the CURRENT state of an external system, or asks the user to change it, when no tool call of that turn read it.

⛔ A SUMMARY OR A NOTE IS HISTORY WITH NO READ TIME. On 2026-11-25, 22:01 to 22:05, twice in a row: asked whether the OpenBSD VMs work with GARM, the reply said « quota RAM bloquant » from a compacted summary (the memory already said the quota had been raised); two minutes later it told the user to install a GitHub App on an organisation where it had been installed since the day before. One `gh api` call answered the second, and it was made only because the user asked « es-tu sûr ? ». Asking the user to act is the costliest form of the mistake: it spends THEIR action on a belief.

Run as a Stop hook it reads the transcript, takes the reply that just ended, and refuses it when

  • a sentence of it ASSERTS a state of an external system (a quota that is blocked or reached, an App that is installed or not, a runner that is registered, a token that is expired ...), or
  • a sentence ASKS THE USER to change one (install, enable, raise, allow, grant ...),

and NO tool call of the turn could have read it. A read is a call of Bash, WebFetch, WebSearch, an MCP tool, an agent or a monitor; Read, Grep and Glob are NOT reads of the world, they read the very notes that went stale.

What it does not refuse

A sentence that says it is unverified (« non vérifié », « not checked »), is hypothetical (si, if, would, devrait, peut-être), cites its read (« selon », « vérifié », « according to »), is a question (for an assertion), or sits in code, a quotation or a block quote. French AND English. It judges only the LAST text of the turn: the claim that stands when the turn ends.

⛔ It is a heuristic over prose, and says so: every refusal names the sentence and the read that would answer it, and `statecheck sweep` replays the detector over old transcripts so its false positives are COUNTED rather than believed.

Like replystamp it ALLOWS whenever it cannot read, refuses one reply once (by uuid), stands down on stop_hook_active, and under --hook always exits 0.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL