fix(prompt-hook): record high-tier gate telemetry only when context was actually injected (#1143) (#1149)
gate('high-keyword'/'high-token') sat outside the injection guard, so an
errored or empty codegraph_explore still counted as a HIGH-tier success.
The gate telemetry is the measured recall/precision funnel that decides
whether the tiered gate design survives — a delivery failure must degrade
it toward noop-*, not inflate the high tiers. Failures now record
noop-explore-keyword / noop-explore-token. Doc enum updated (including
the noop-vocab-empty outcome the #1142 fix adds next).
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
2f70eb3d32
commit
be55b93d02
@@ -75,10 +75,16 @@ Event types:
|
||||
The prompt hook additionally rolls up its gate DECISION as `cli_command`
|
||||
counters named `prompt-hook-gate-<outcome>`, outcome ∈ `high-keyword` /
|
||||
`high-token` / `medium-segment` / `nudge-projects` / `noop-shape` /
|
||||
`noop-no-index` / `noop-unverified` — decision names only, never prompt
|
||||
content. This is the gate's measured recall/precision funnel: a rising
|
||||
`noop-*` share against the `high`/`medium` tiers is the signal that the
|
||||
gate (keyword table or segment matching) is missing real questions.
|
||||
`noop-no-index` / `noop-unverified` / `noop-explore-keyword` /
|
||||
`noop-explore-token` / `noop-vocab-empty` — decision names only, never
|
||||
prompt content. This is the gate's measured recall/precision funnel: a
|
||||
rising `noop-*` share against the `high`/`medium` tiers is the signal that
|
||||
the gate (keyword table or segment matching) is missing real questions.
|
||||
A `high-*` outcome means context was actually injected — a gate decision
|
||||
whose `codegraph_explore` errored or returned nothing records
|
||||
`noop-explore-<trigger>` instead (#1143), and a MEDIUM-eligible prompt
|
||||
hitting a not-yet-backfilled segment vocabulary records `noop-vocab-empty`
|
||||
rather than polluting `noop-unverified` (#1142).
|
||||
- **`uninstall`** — one per `uninstall`/`uninit` run (churn signal). Props: `targets`.
|
||||
|
||||
Volume math: rollups mean monthly events ≈ active machines × active days × distinct
|
||||
|
||||
Reference in New Issue
Block a user