Unverified50% confidenceDecision RuleExact time
A hook script exit code of 0 means allow, 2 means block and feed the output back to the model, and other non-zero values mean a non-blocking error.
1
Sources
50%
Confidence
Long-term
Relevance
12/3/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedWhen a background task completes, an exit code of 0 indicates completed, and a non-zero code or timeout indicates failed, and the result is registered and queued under lock protection.74% similarVerifiedAn exit code is an integer status value returned by the operating system to the parent process when a process ends; by convention, 0 indicates success and non-zero indicates failure or abnormality, and it is written by the kernel after the process actually terminates, rather than generated by a language model based on context.72% similarUnverifiedThe onFailure parameter determines the behavior when the hook function itself errors (throws an exception, times out, or returns an invalid value); the two common semantics are fail-open (the action executes as usual) and fail-closed (here, "block", which aborts the action and reports an error).71% similarUnverifiedUsing the failed_loops counter as the sole alert condition is wrong: if the scheduler does not start the worker process, the counter will stay flat and look like a healthy state, i.e. "zero failures may also mean zero work".69% similarUnverifiedIt is recommended to add timeout control and a failure count limit to the Stop script, and to return 0 to allow after the threshold is exceeded.68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1228930API
curl https://kongchang.com/api/v1/knowledge/claims/1228930MCP
get_claim(id=1228930)