You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 756d3fa
Browse filesBrowse the repository at this point in the historyBrowse files
hzq
committed
Recover API key admission accounting online
Check the original run, creation event and key reservation after a lost commit acknowledgement. Publish or release accounting only on proof, without dispatching or resubmitting the run.
Copy file name to clipboardExpand all lines: docs/operations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,7 +174,7 @@ An unknown external write outcome blocks Resume. An authorized operator must exp
174
174
175
175
## Data retention and backups
176
176
177
-
Creating a run commits its initial event, key usage, any platform hold and its workflow stage link together. After a failed admission, retry with the same idempotency key. If a resume reservation fails, the original run stays interrupted and can be resumed again without consuming a new run. If only final accounting is delayed, the gateway retains the run and retries settlement, including at startup; it does not rerun the agent. An `OAASettlement` warning indicates a pending accounting write. Check storage health if it recurs.
177
+
Creating a run commits its initial event, key usage, any platform hold and its workflow stage link together. After a confirmed admission failure, retry with the same idempotency key. For `effect_outcome_unknown`, check the original run ID instead of immediately retrying. The gateway rechecks admission accounting in the background without dispatching the run; a confirmed queued run can be cancelled by ID. If a resume reservation fails, the original run stays interrupted and can be resumed again without consuming a new run. If only final accounting is delayed, the gateway retains the run and retries settlement, including at startup; it does not rerun the agent. An `OAASettlement` warning indicates pending accounting. Check storage health if it recurs.
178
178
179
179
On `GET /metrics`, `oaa_run_outcomes_total{agent,status}` is the counter for completion and failure rates. It counts transitions into terminal states and survives history pruning and restarts. At first upgrade it starts from the terminal runs still retained, not already-deleted history. The older `oaa_runs_total`, `oaa_run_errors_total`, `oaa_run_tokens_total` and `oaa_tokens_total` series retain their names and snapshot values, but are gauges: do not apply `rate()` to them.
0 commit comments