Skip to content

Enforce successful funding checks and record evaluation limitations - #2

Merged
Bogdan0708 merged 3 commits into
mainfrom
fix/portfolio-readiness-20260913
Sep 13, 2026
Merged

Bogdan0708 merged 3 commits into
mainfrom
fix/portfolio-readiness-20260913

Conversation

@Bogdan0708

Copy link
Copy Markdown
Owner

The approved 15-case evaluation scored 97.9% weighted but missed a required eligibility call. The previous weighted-only gate still passed it. This change enforces successful retrieval and eligibility checks in both generation and streaming, keeps missing applicant/partner facts unclear and makes tool/retrieval/citation failures fail the evaluation regardless of average score.

Validation: 48 offline tests pass, including eight tests through the actual SDK loops with model/retrieval mocks and fetch prohibited. Clean install, typecheck, lint and production build pass; full npm audit reports zero advisories. The immutable paid-run artifact records clean commit8fd08a1, corpus/vector/case hashes, models, timing and usage. It predates the control fixes: no second paid evaluation or post-fix behavioral pass is claimed.

Credentialed evaluation is manual and fails when keys are absent. No deployment or provider secrets are included.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-13T11:31:23.079472Z 7fd618a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Bogdan0708
Bogdan0708 merged commit 4d3b819 into main Sep 13, 2026
3 checks passed

@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: 7fd618afef

ℹ️ 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 thread evals/scoring.ts
Comment on lines +22 to +24
const citations = [...answer.matchAll(/\[source:([^\]\r\n]+)\]/g)].map(
(match) => match[1],
);

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 Reject malformed citation markers

The regex ignores malformed markers rather than exposing them to the gate as the comment intends. For example, an answer containing one valid citation plus [source:] or an unterminated [source:FAKE records only the valid ID, so citationsPass remains true; a no-match answer containing only such a marker also passes. Detect any [source: marker that does not match the exact citation syntax and fail citation validation so malformed model output cannot produce a successful evaluation.

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