Skip to content

Derive prompt version from filename instead of a separate env var#80

Merged
asiniscalchi merged 2 commits into
mainfrom
refactor/prompt-version-from-filename
May 11, 2026
Merged

Derive prompt version from filename instead of a separate env var#80
asiniscalchi merged 2 commits into
mainfrom
refactor/prompt-version-from-filename

Conversation

@asiniscalchi

Copy link
Copy Markdown
Owner

Remove the *_PROMPT_VERSION env vars and the version field from all four *PromptConfig structs. The version tag written to the DB is now derived at load() time from the prompt file's stem (e.g. entry_extraction_v2.md → entry_extraction_v2), so the filename alone is the source of truth for both behavior and traceability.

asiniscalchi and others added 2 commits May 11, 2026 07:01
Remove the *_PROMPT_VERSION env vars and the version field from all
four *PromptConfig structs. The version tag written to the DB is now
derived at load() time from the prompt file's stem (e.g.
entry_extraction_v2.md → entry_extraction_v2), so the filename alone
is the source of truth for both behavior and traceability.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@asiniscalchi asiniscalchi merged commit 5cabb81 into main May 11, 2026
2 checks passed
@asiniscalchi asiniscalchi deleted the refactor/prompt-version-from-filename branch May 11, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant