Skip to content

chore(aio): update online-eval skill to unpinned provider key - #70447

Merged
Radu-Raicea merged 4 commits into
masterfrom
posthog-code/fix-online-eval-skill-provider-key-gate
Jul 27, 2026
Merged

chore(aio): update online-eval skill to unpinned provider key#70447
Radu-Raicea merged 4 commits into
masterfrom
posthog-code/fix-online-eval-skill-provider-key-gate

Conversation

@posthog

@posthog posthog Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Problem

The evaluation API and MCP tool were changed so an llm_judge evaluation requires a valid provider and model, while provider_key_id may be null (see #70113). The creating-online-evaluations skill was still written against the old contract: it gated llm_judge creation on an ok-state provider key and told the agent to stop and send the user to the UI when none existed. That stale gate can stop an agent from creating a perfectly valid unpinned llm_judge evaluation.

Changes

Reframe the gate around what the API now actually requires: a valid provider + model, with pinning a provider key as an optional step (provider_key_id may be null).

  • SKILL.md: updated the frontmatter description, the tools table, the eval-type table, the renamed "Pick a provider and model" gate section, the llm_judge example payload, and the tips checklist.
  • references/evaluation-payload.md.j2: provider_key_id is now optional (was marked required), and the LLM-judge example uses provider_key_id: null.

Docs-only change to an agent skill. No production code touched.

How did you test this code?

No automated tests apply — this only edits a skill markdown file and its Jinja reference template. I verified the new wording against the actual contract in commit 4a3274caf3 (products/ai_observability/backend/api/evaluations.py and products/ai_observability/mcp/tools.yaml): model_configuration requires provider and model, and provider_key_id is nullable.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

🤖 Agent context

Autonomy: Fully autonomous

Authored by Claude Code (Opus 4.8) acting on an inbox report flagging the stale provider-key gate. No repo skills needed invoking for a docs-only skill edit. I extended the fix to the linked references/evaluation-payload.md.j2, which had the same stale provider_key_id: required contract, so the skill and its reference stay consistent.


Created with PostHog Code from an inbox report.

The evaluation API and MCP tool now require a valid provider and model for
an llm_judge eval, while provider_key_id may be null (unpinned). The
creating-online-evaluations skill still gated on an ok-state provider key
and told the agent to stop when none existed, which blocks creating valid
unpinned llm_judge evaluations.

Reframe the gate around provider + model, mark pinning a provider key as
optional across the table, gate section, example payloads, tips, and the
payload reference.

Generated-By: PostHog Code
Task-Id: e2717ec9-87dc-4d47-b6c1-6433bd1a87e0
@posthog posthog Bot added the skip-agent-review Save $$$, skip auto agent reviews (Greptile) — use for trivial or chore PRs label Jul 13, 2026
Re-align the tool and eval-type tables with oxfmt so the markdown format
check passes.

Generated-By: PostHog Code
Task-Id: e2717ec9-87dc-4d47-b6c1-6433bd1a87e0
@scheduled-actions-posthog

Copy link
Copy Markdown
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, please remove the stale label – otherwise this will be closed in another week. If you want to permanently keep it open, use the waiting label.

@Radu-Raicea
Radu-Raicea marked this pull request as ready for review July 27, 2026 17:13
@pr-assigner-resolver-posthog
pr-assigner-resolver-posthog Bot requested a review from a team July 27, 2026 17:13
@Radu-Raicea
Radu-Raicea enabled auto-merge (squash) July 27, 2026 17:14
@Radu-Raicea
Radu-Raicea merged commit 4ff4ac1 into master Jul 27, 2026
262 of 266 checks passed
@Radu-Raicea
Radu-Raicea deleted the posthog-code/fix-online-eval-skill-provider-key-gate branch July 27, 2026 17:26
@deployment-status-posthog

deployment-status-posthog Bot commented Jul 27, 2026

Copy link
Copy Markdown

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-07-27 18:05 UTC Run
prod-us ✅ Deployed 2026-07-27 18:29 UTC Run
prod-eu ✅ Deployed 2026-07-27 18:31 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-agent-review Save $$$, skip auto agent reviews (Greptile) — use for trivial or chore PRs stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant