Skip to content

Phase 3: Eval & trust — TR suites, score reasons, weighted intent, CI badge - #11

Merged
canblmz1 merged 7 commits into
mainfrom
feat/phase3-eval-trust
May 21, 2026
Merged

canblmz1 merged 7 commits into
mainfrom
feat/phase3-eval-trust

Conversation

@canblmz1

Copy link
Copy Markdown
Owner

Phase 3 — Evaluation & Trust

  • 11-case Turkish mixed eval suite (performance, security, deploy, review)
  • Score explainability: ScoreResult.reasons dict with per-dimension human reason
  • Intent weighted scoring: replaces first-match with keyword count scoring (TD-10)
  • Eval CI badge + HTML report artifact upload
  • Fix: use regex for pyproject version check (Python 3.10 compat)

All 341 tests green, ruff + mypy clean.

@canblmz1
canblmz1 merged commit 97e768d into main May 21, 2026
@canblmz1
canblmz1 deleted the feat/phase3-eval-trust branch May 21, 2026 13:29

@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: 79915bb18b

ℹ️ 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".

run: |
mkdir -p docs/benchmarks
promptfix eval --report docs/benchmarks/report-$(date +%Y%m%d).html
python -m promptfix eval --report eval-report.html 2>&1 | tee eval-output.txt || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Invoke eval through a runnable module or console script

This step now runs python -m promptfix eval, but the package has no promptfix/__main__.py (the CLI is exposed via the promptfix console script in pyproject.toml), so this invocation exits with No module named promptfix.__main__ instead of executing the eval suite. As written, the workflow cannot generate real eval output or reports from this command.

Useful? React with 👍 / 👎.

run: |
mkdir -p docs/benchmarks
promptfix eval --report docs/benchmarks/report-$(date +%Y%m%d).html
python -m promptfix eval --report eval-report.html 2>&1 | tee eval-output.txt || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve eval step failures instead of forcing success

Appending || true makes this step succeed even when the eval command crashes or returns a failure status, so regressions and broken CI setup are silently ignored. In this workflow, that means scheduled/manual runs can look green while no valid evaluation actually ran, which undermines the trust signal from the report job.

Useful? React with 👍 / 👎.

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