When the Metric Has No Data
Could I measure the decision without keeping the prompt?
A harness can tell an agent to look in structured memory before searching older text. Once the rule is installed, I still need to know whether it guides real decisions. The obvious shortcut is to log enough of each request to reconstruct the choice afterwards. That creates a second store of sensitive material just to answer a much smaller question.
At the end of July I kept the question narrow. Did the Codex retrieval guard observe a memory-first decision or a blocked decision, and were there enough eligible cases over a week to evaluate the rule? I wanted a signal that could be checked without carrying the prompt text into the ledger.
The first look used an existing local report. It showed 18 memory-first turns and 27 blocked turns. That is 18 out of 45, or 40 percent. The historical report explicitly describes the ledger as a mixture of old and new records, so I kept that percentage as diagnostic context. It was a reason to collect better evidence, not a promotion decision.

Measure whether the archive was consulted without recording the private contents. Conceptual illustration.
Keep the event small and count only the right cases
Agent-assisted implementation added a bounded decision counter with four labels: provider, hook version, outcome and route class. A label is a short category attached to a metric so it can be grouped later. The ledger change removed persisted prompt text from this path. The scope of the claim is this decision ledger. I make no claim about what every other tool, model or log retained.
A seven-day comparison used memory-first as the numerator and memory-first plus blocked as eligible decisions in the denominator. That scope matters. If eight relevant decisions happened and two other events belonged to a route the gate does not evaluate, adding those two to the denominator would change the rate without any change in relevant behaviour. The recordings kept providers separate.
Follow the decision
Historical source excerpt · prometheus-rules.yaml at be8063c4, lines 2002–2009
- record: layered_retrieval:compliance_rate_7d
expr: |
sum by (provider) (increase(layered_retrieval_decisions_total{outcome="memory_first"}[7d]))
/
sum by (provider) (increase(layered_retrieval_decisions_total{outcome=~"memory_first|blocked"}[7d]))
- record: layered_retrieval:eligible_decisions_7d
expr: sum by (provider) (increase(layered_retrieval_decisions_total{outcome=~"memory_first|blocked"}[7d]))
Explain this code line by line
- Name the recording for the per-provider seven-day compliance rate.
- Start the multiline PromQL expression in the YAML rule.
- Measure memory-first counter growth over a week and sum it separately for each provider.
- Divide by that provider’s eligible decisions.
- Measure weekly growth for both eligible outcomes and aggregate per provider.
- Separate the rate rule from the next recording.
- Name the second rule for eligible seven-day decision volume.
- Count the eligible outcomes per provider so a volume check can use the total.
Illustrative examples. On a future week with seven memory-first and three blocked decisions, the rate is 7/10 or 70 percent. That is below 75 percent and meets the ten-decision floor. A week with four memory-first and one blocked decision has a higher rate, 80 percent, but only five eligible decisions. It is below the minimum volume. With no scraped series at all, the July deployment correctly showed no data. There is no meaningful percentage to attach to an absent series.

Decision categories supply counts without opening the underlying documents. Conceptual illustration.
A live rule can arrive before its evidence
The July 31 report records 20 local contract checks passing for prompt redaction, decision labels, metrics rendering and report turn identity. It records the GitOps change reaching the live ConfigMap and the alert expression being visible in Prometheus. Prometheus could show that the rule was installed. The relevant decision series was empty at the reported observation. That was the correct state for a fresh rule whose inputs had yet to arrive.
The source also shows a one-hour hold on the low-compliance alert. That alert and the rollout decision had different jobs. The alert asked for attention when a sufficiently populated Codex series stayed low. Advancing beyond shadow mode required ten or more eligible weekly decisions and at least 75 percent compliance for two continuous weeks. Shadow mode here meant the graph-assisted path could be observed without making it the default. The July evidence did not satisfy that promotion gate.
| Evidence | Decision it supports |
|---|---|
| Mixed ledger history | A diagnostic view of what earlier local records contain. |
| Installed recording and alert rules | Monitoring code reached production and the configured formula is inspectable. |
| Fresh, provider-specific counts | The future basis for judging route compliance once volume and persistence qualify. |
| Retrieval quality or user outcome | A separate measurement beyond this routing compliance indicator. |
The end of July
The month’s work kept bringing me back to the gap between a signal and the decision it can justify. A handoff receipt can explain where work stopped. A lease and permit decide whether a specific operation may go ahead. An archive timestamp describes a recovery point. A decision counter can show that a retrieval policy is being followed. Each becomes useful when its owner, scope and limits are visible.
That is where I would close Season 5. I had better questions and firmer ways to test them. Some paths were proven in source, some in production, and some were waiting for the first usable run. I would carry those distinctions into August. The next season can follow what happened as the isolated checks started meeting installed providers and real authority services.
Glossary and primary references
Counter
A cumulative Prometheus metric intended to increase except on reset.
Primary referencePromQL increase
Estimate how much a counter increased during a selected window, accounting for resets.
Primary referenceDenominator
Eligible cases counted as the total against which a rate is computed.
Primary referenceShadow mode
Observe a proposed route without making it the default.
Primary referenceNo data
No applicable time series was returned at the reported observation.
Primary reference