Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

fix(contract): avoid release eval content filter - #1414

Merged
christso merged 2 commits into
mainfrom
fix/release-contract-content-filter
Jun 18, 2026
Merged

christso merged 2 commits into
mainfrom
fix/release-contract-content-filter

Conversation

@christso

Copy link
Copy Markdown
Collaborator

Summary

  • Rewrites the release code-grader contract eval prompt to avoid provider content filtering.
  • Keeps the same CONTRACT token and code-grader stdin payload assertions, including snake_case payload checks and no deprecated answer alias.

Root Cause

The previous prompt used a system marker plus conditional instruction-following wording (If the system marker... reply exactly...). GitHub Models/Azure OpenAI rejected that live request before AgentV could run the code grader, causing the release Contract eval gate to fail with HTTP 400 content filtering.

Validation

  • Red: reproduced the old single eval failure locally with HTTP 400 ... content management policy and exit code 2.
  • Green: reran the updated single eval against github-models-contract / openai/gpt-4.1-mini; it passed at 100% and all code-grader payload assertions passed.
  • bun run validate:examples passed, 61/61 valid.
  • GH_MODELS_TOKEN=$(gh auth token) CONTRACT_EVAL_MODEL=openai/gpt-4.1-mini bun run contract-eval passed all three live contract eval suites.
  • bun run test passed across core, eval, phoenix-adapter, CLI, and dashboard.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6d7b885
Status: ✅  Deploy successful!
Preview URL: https://0ae702b8.agentv.pages.dev
Branch Preview URL: https://fix-release-contract-content.agentv.pages.dev

View logs

@christso
christso marked this pull request as ready for review June 18, 2026 03:45
@christso
christso merged commit 6d1bb1f into main Jun 18, 2026
8 checks passed
@christso
christso deleted the fix/release-contract-content-filter branch June 18, 2026 03:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant