feat: runnable onboarding quickstart, recipes, and fixtures (issue #32)#47
Open
levleontiev wants to merge 21 commits intomainfrom
Open
feat: runnable onboarding quickstart, recipes, and fixtures (issue #32)#47levleontiev wants to merge 21 commits intomainfrom
levleontiev wants to merge 21 commits intomainfrom
Conversation
…hmark link (issue #32)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #32 — packages the edge repo as a runnable onboarding funnel.
What's added:
examples/quickstart/—docker compose up -dquickstart (wrapper mode, standalone). Reusable as the base fore2e-smokeCI. Demonstrates/openai/v1/chat/completionswithBearer CLIENT_JWT:UPSTREAM_KEYcomposite auth.examples/recipes/team-budgets/— per-team JWT TPM + 30-day cost budget with staged warn/throttle/rejectexamples/recipes/runaway-agent-guard/— loop detector + TPM guard keyed onjwt:agent_idexamples/recipes/provider-failover/— dual-provider policies (OpenAI + circuit breaker, Anthropic fallback)fixtures/— 10 canonical artifacts:normal_request.json,over_limit_request.json,anthropic_normal_request.jsonallow_response.json(proves auth-header stripping: noAuthorization/x-api-key/x-goog-api-keyin response)reject_tpm_exceeded.json,reject_tpd_exceeded.json,reject_prompt_too_large.jsonreject_openai.json,reject_anthropic.json,reject_gemini.json(provider-native bodies)fairvisor/benchmarkSpec 019 / wrapper mode coverage:
FAIRVISOR_MODE=wrapperand provider-prefixed paths (/openai/v1/...)allow_response.jsonexplicitly documents auth-header strippingreject_anthropic.jsonandreject_gemini.jsonprove provider-native error bodiesAcceptance criteria met:
docker compose up -d+ curl to/openai/v1/chat/completionswith over-limit fixture → 429 matchingfixtures/reject_tpm_exceeded.json✓examples/read as deployable recipes, not disconnected policy fragments ✓fairvisor/benchmarkinstead of duplicating methodology ✓Downstream: Fixture paths and compose structure are stable — ready to coordinate with
fairvisor/documentation#8.Test plan
docker compose -f examples/quickstart/docker-compose.yml up -dstarts healthycurlto/openai/v1/chat/completionswithover_limit_request.jsonreturns 429 with body matchingfixtures/reject_tpm_exceeded.jsonnormal_request.jsonreturns 200Authorization,x-api-key,x-goog-api-keyfairvisor validate)🤖 Generated with Claude Code