Correlate router attempts and retry recovery #104
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log!104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/61-retry-routing-correlation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracks the remaining correlation/recovery part of #61.
Stacked on #88 (
fix/61-transport-error-evidence) so routing/recovery evidence reuses the typed transport taxonomy without bloating that slice.What changed
X-OpenRouter-Metadata: enabledresponse metadata;routing.jsonlrecords with stablerouting:<event-id>IDs;openrouter_metadata.endpoints.available[].selectedmetadata;CorrelationActorthat ownsrouting.jsonlandrecoveries.jsonlwhileRecorderActorremains the owner of raw captures and typed errors;request_sha256inside a 10-second window;correlation_basis=byte_identical_request_sha256_within_windowandconfidence=heuristicso it cannot be mistaken for causal proof;OpenRouter's current public API reference confirms the metadata header on Chat Completions, Messages and Responses:
RED evidence
Exact test-only head
5e7a697137f52bd51f92bda08cf5e994c579872fran 115 tests. Exactly five new correlation expectations failed:All existing #86 stream-integrity, #87 response/usage and #88 typed-transport contracts stayed green.
GREEN evidence
4fb8d76120426f33827682ca81c335661ba2159b: Analytics workflow passed after all five RED cases flipped green.80c9e5a4642650ec4d6236866c1c254e1f870266: Analytics run 62 and Quota run 67 both passed, including full Python regression, adversarial analytics and delivered package build. This head includes false-positive contracts, current OpenRouter endpoint-metadata parsing and explicit heuristic provenance.351d11f4f8652e0bb078fa038f4cf3961faebda6: Analytics run 67 and Quota run 72 both passed after Org-roam/Prolog knowledge promotion; quota again built the delivered package.Boundary
This slice observes router attempts and likely retry recovery; it does not perform retries. The retry relationship is deliberately heuristic, not causal identity. Alert severity/rate policy and model/structured-output anomaly detection remain separate follow-up work. No merge is performed here.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.