feat(8141): a rule holding the finished reply is recorded as a gate stop too
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Failing after 1m49s
CI & Build / integration (push) Successful in 2m4s
CI & Build / Build & push image (push) Skipped
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Failing after 1m49s
CI & Build / integration (push) Successful in 2m4s
CI & Build / Build & push image (push) Skipped
The end-of-turn reply hold was the one gate the gate_stops table left out. The server applies the per-session cap before anything holds and the Stop hook blocks on every reason it is given, so the hook reports each held rule after blocking, as the tool-call gates do: gate `reply`, tool `reply`, and where the rule was reached (`rule_at`, new beside `rule_ids` in the /reply-rules answer: the moment it is mounted on, or `reply_rule` for the backstop). A section hold names no rule and stays counted by report_check. Opening the rule clears the stop, and rule_misfired marks it, unchanged. The readout, the telemetry docstring and the Settings panel name the new gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -341,7 +341,7 @@ export function getRecordReach(days = 30): Promise<RecordReachPayload> {
|
||||
}
|
||||
|
||||
/** The gates that can stop a tool call. */
|
||||
export type GateName = "enforce" | "hold" | "checkpoint" | "fence";
|
||||
export type GateName = "enforce" | "hold" | "checkpoint" | "fence" | "reply";
|
||||
|
||||
export interface GateCounts {
|
||||
/** Calls denied, or for the fence, put to the operator. */
|
||||
|
||||
@@ -4,9 +4,9 @@ import type { GateCounts, GateName, GateStopsPayload } from "@/api/moments";
|
||||
import { fmtDate } from "@/utils/dateFormat";
|
||||
|
||||
/**
|
||||
* Every time Grimoire stood in front of a tool call instead of commenting
|
||||
* beside it: a rule set to enforce or hold, the checkpoint on a command, or
|
||||
* the project fence asking the operator. Per gate and per rule, how often it
|
||||
* Every time Grimoire stood in front of the work instead of commenting
|
||||
* beside it: a rule set to enforce or hold, the checkpoint on a command, the
|
||||
* project fence asking the operator, or a rule holding the finished reply. Per gate and per rule, how often it
|
||||
* stopped work and what followed — the rule opened (the stop cleared the way
|
||||
* it is meant to), the rule reported as a misfire (a stop at the wrong
|
||||
* moment), or a hold let through because the session's stop budget was
|
||||
@@ -23,6 +23,7 @@ const GATES: [GateName, string][] = [
|
||||
["hold", "Held for a read (hold)"],
|
||||
["checkpoint", "Command checkpoint"],
|
||||
["fence", "Project fence"],
|
||||
["reply", "Reply held for a read"],
|
||||
];
|
||||
|
||||
const any = computed(() =>
|
||||
@@ -32,7 +33,9 @@ const any = computed(() =>
|
||||
function gateText(gate: GateName, c: GateCounts): string[] {
|
||||
if (gate === "fence") return [`asked ${c.stops}`, `approved ${c.ran}`];
|
||||
const parts = [`stopped ${c.stops}`, `cleared by a read ${c.cleared}`, `misfired ${c.misfired}`];
|
||||
if (gate !== "enforce") parts.push(`let through by the cap ${c.let_through}`);
|
||||
// An enforced refusal has no cap, and the reply's cap is applied by the
|
||||
// server before anything holds, so neither can let a call through.
|
||||
if (gate === "hold" || gate === "checkpoint") parts.push(`let through by the cap ${c.let_through}`);
|
||||
return parts;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user