fix(8192): a gated arm's declines include the calls its cue gate withheld
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m10s
CI & Build / integration (push) Successful in 2m15s
CI & Build / Build & push image (push) Successful in 21s
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m10s
CI & Build / integration (push) Successful in 2m15s
CI & Build / Build & push image (push) Successful in 21s
#8192 "The cannot_decline warning reads the result count from before the cue gate, so a gated arm can never show a decline", step 3 of milestone 669. auto_inject logs its ranked results before the cue gate decides, so a call the gate silenced still reads as a hit, and cannot_decline fired on an arm whose gate withholds most calls (since 11-23, gate_kept = 0 on 55 of 69, 40 of 44 and 71 of 84 calls a day, with result_count never 0). The readout gains a `gate` block per source (gated_calls, declined_by_gate), null where no row carried a gate decision, and cannot_decline counts zero_result_calls plus declined_by_gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -439,6 +439,12 @@ async def retrieval_telemetry(
|
||||
Read a null as "unknown", never as a zero: an artifact read as a
|
||||
measurement mis-scopes the surface.
|
||||
|
||||
`gate` is the cue gate's share, on an arm that has one: `gated_calls`
|
||||
carried a gate decision and `declined_by_gate` returned ranked results
|
||||
the gate then withheld. Such an arm logs `result_count` before the gate
|
||||
decides, so its declines are `zero_result_calls` plus `declined_by_gate`.
|
||||
`null` when no row in the window carried a gate decision.
|
||||
|
||||
`usage` — NOTES ONLY, from `note_usage_events`, at the per-note grain
|
||||
`retrieval_logs` cannot be indexed at: `surfaced` (ranked surfacings — a
|
||||
scored surface CHOSE the record), `ambient` (the rest), `pulled` split into
|
||||
@@ -614,7 +620,9 @@ async def retrieval_telemetry(
|
||||
Only ever raised for unbidden arms known to log unconditionally: a
|
||||
search returning a list every time is doing its job, and an arm whose
|
||||
zeros were never written would flag a LOGGING bug while pointing you at
|
||||
a threshold.
|
||||
a threshold. A gated arm's declines include the calls its cue gate
|
||||
withheld (`gate.declined_by_gate`), since it logs its ranked results
|
||||
before the gate decides.
|
||||
- `band_hugs_floor` — the weakest tenth of what an arm returns sits on
|
||||
its floor. The bar is doing the selecting and the score is not, so
|
||||
moving that floor changes how MUCH you get, not how good it is.
|
||||
|
||||
Reference in New Issue
Block a user