Skip to content

feat(v4): hand off coding-agent upgrades to the canonical skill - #15527

Merged
hassiebp merged 1 commit into
mainfrom
hassiebbot/lfe-14553-reference-v4-migration-skill
Jul 28, 2026
Merged

feat(v4): hand off coding-agent upgrades to the canonical skill#15527
hassiebp merged 1 commit into
mainfrom
hassiebbot/lfe-14553-reference-v4-migration-skill

Conversation

@hassiebp

Copy link
Copy Markdown
Contributor

What changed

  • replace the duplicated v4 coding-agent checklist with a lean bootstrap prompt
  • route installed Langfuse skills to references/v4-project-migration.md
  • provide the canonical raw langfuse/skills URL as a fallback
  • tell agents to continue in code-only mode when project access is unavailable instead of stopping for CLI or credential setup
  • require the workflow's seven-row readiness report
  • cover the URL and code-only contract with a focused client test

Why

The copied prompt should stay aligned with the tested canonical migration workflow instead of duplicating SDK, evaluator, and API guidance in the product repository. Explicit code-only behavior also lets Codex, Claude Code, Cursor, and similar agents make all verifiable repository changes without needing access to the user's Langfuse project.

Linear: LFE-14553

The stable URL is intended to pick up the hardened workflow from langfuse/skills#88.

Validation

  • pnpm run lintTasks: 7 successful, 7 total
  • pnpm --filter web run test-client src/features/v4-migration/useV4UpgradeAssistantSupport.clienttest.tsTest Files 1 passed (1), Tests 1 passed (1)
  • git diff --check

Scope

This does not install the Langfuse skill or CLI, configure credentials, change migration detection, or duplicate the migration workflow in this repository.

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown

🟢 AWS preview image pushed

Argo CD is rolling it out — the environment is usually ready within a
few minutes of this comment.

URL: https://pr-15527.preview.langfuse.com
Login: demo@langfuse.com / password
API keys: pk-lf-1234567890 / sk-lf-1234567890
Commit: 7a93f0e

URL not loading / 404? Full debug guide — deploy allowlist,
sleeping preview, pod status, ClickHouse:
https://github.com/langfuse/langfuse/blob/main/.agents/skills/langfuse-previews/SKILL.md#debug-a-preview

Logs (needs preview-cluster kubectl access):

kubectl -n langfuse-pr-15527 logs -f deploy/langfuse-pr-15527-web      # web
kubectl -n langfuse-pr-15527 logs -f deploy/langfuse-pr-15527-worker   # worker

Add --previous for a crashed container, --tail=200 to limit, or
kubectl -n langfuse-pr-15527 get pods to inspect status.

Synthetic preview data only. Never add production data to public accounts.

@hassiebp
hassiebp marked this pull request as ready for review July 28, 2026 11:46
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 28, 2026
@github-actions

Copy link
Copy Markdown

@claude review

@hassiebp
hassiebp merged commit 44d44aa into main Jul 28, 2026
45 checks passed
@hassiebp
hassiebp deleted the hassiebbot/lfe-14553-reference-v4-migration-skill branch July 28, 2026 11:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a93f0e2a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +14 to +16
If the Langfuse skill is installed, use it and read references/v4-project-migration.md.
Otherwise, fetch and follow the canonical migration workflow:
${V4_MIGRATION_SKILL_URL}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Fall back when the installed migration reference is missing

When a user installed the Langfuse skill before references/v4-project-migration.md was added, this branch is taken solely because the skill is installed, but the requested file does not exist and the Otherwise fallback does not apply. Because this change also removes the previous inline migration checklist, the coding agent can stop without performing any upgrade. Make the local branch conditional on the reference being readable, or explicitly direct the agent to fetch the canonical URL whenever the local reference is missing.

Useful? React with 👍 / 👎.

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, straightforward prompt/copy change.

Extended reasoning...

Overview

The PR only touches useV4UpgradeAssistantSupport.ts: it replaces the hardcoded three-step v4 migration checklist string with a shorter prompt that hands off to a canonical external skill reference (a raw GitHub URL) and instructs code-only behavior with a required readiness report. A new client test asserts the new prompt contains the expected substrings. No control flow, hooks, or API surface changed — V4_CODING_AGENT_PROMPT is still exported and consumed identically by V4MigrationContent.tsx (copy-to-clipboard) and embedded into the other two prompt templates in the same file.

Security risks

None of substance. The new URL is a static, hardcoded raw GitHub content URL under the langfuse/skills org, not user-controlled input, so there's no injection or SSRF concern. The prompt text is just guidance handed to external coding agents (Cursor, Codex, Claude Code) — it doesn't grant any new permissions or bypass any auth/credential flow; if anything it explicitly tells agents not to request credentials.

Level of scrutiny

Low. This is a copy/prompt-text change in a non-critical, user-facing assistant helper — it doesn't affect data integrity, auth, or billing paths. The existing test coverage for the string contract and the trivial diff size support light scrutiny.

Other factors

Confirmed via grep that no other files reference the removed V4_SDK_UPGRADE_URL constant, so nothing was left dangling. The PR description's stated validation (lint and the new client test) matches what's expected for a change of this scope.

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

Labels

preview size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant