Skip to content

fix(tier1): report dependency advisories as structured findings - #421

Merged
rng1995 merged 15 commits into
mainfrom
naren/port-dependency-advisory-findings
Nov 12, 2026
Merged

rng1995 merged 15 commits into
mainfrom
naren/port-dependency-advisory-findings

Conversation

@rng1995

@rng1995 rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The dependency check recorded each pip-audit and Safety advisory only as an error string such as [CVE-HIGH] pyyaml==5.3: PYSEC-2020-176 -> upgrade to 5.4. The run failed, but the advisory never reached result.findings. Advisories are now structured DEPENDENCY findings bound to the pin that declared the vulnerable version.

  • src/skillevaluator/validators/dependencies.py:
    • Each advisory is a Finding(category="DEPENDENCY") whose check name is the advisory ID. A numeric Safety ID, given as text or as a JSON number, becomes SAFETY-<id>. The message is unchanged (pyyaml==5.3: PYSEC-2020-176 -> upgrade to 5.4), so the legacy error string now reads [DEPENDENCY-HIGH] ... in requirements.txt:2.
    • file_path is the requirements file or pyproject.toml. line_number is the line of the requirements pin. pyproject.toml findings have no line; their metadata names the declaration (optional group docs, declaration 2).
    • Metadata: package_name, resolved_version, declared_constraint, declaration, resolution_status, dependency_role, dependency_relationship, advisory_id, advisory_source (pip-audit or Safety), affected_range (Safety only, else null), fixed_versions and aliases (strings only). A pip-audit finding of a validator built with fail_on_medium=True also has fail_on_medium: true.
    • An advisory that matches an audited pin is resolution_status: resolved and dependency_relationship: direct. Safety reads the raw requirements file, so it can report a version that no audited pin declares, such as a pin skipped for its platform marker. That advisory is unbound, with declared_constraint, declaration and dependency_relationship set to null and no line.
    • Both parsers keep a small frozen DependencyDeclaration per accepted == pin, keyed by PEP 503 name and version. It holds the name and version as the target spelled them (Pillow_SIMD==9.0), never the raw line with its markers, options or URL credentials. A pin repeated in an optional group keeps its runtime declaration.
    • dependency_role is runtime, dev, test, docs or build, from whole words of the requirements file stem or the optional group name, split at -, _ and .. dev, devel, develop, development, devtools, lint and linting mean dev; test, tests, testing, testutils, pytest and unittest mean test; doc, docs and documentation mean docs; build means build.
    • Each finding has a suggestion naming up to three fixed versions, or saying none is listed.
    • Safety's severity is its level word or, with an API key, its CVSS object: the CVSS v3 base_severity, then the v3 base_score through cvss_to_severity, then the v2 score and level. A score counts only if it is a number from 0 to 10, so a string, bool, NaN, infinity or an integer too large for a float is skipped; the range check alone rejects them, so an integer such as 10**400 cannot raise OverflowError. Only an advisory with none of these is medium. So {"cvssv3": {"base_severity": "CRITICAL", "base_score": 9.8}} is a critical finding that fails the run.
    • A Safety advisory whose ID or CVE pip-audit already reported for the same package version (PEP 503 name, parsed version) is left out, so one vulnerability is one finding.
    • Safety parsing accepts only typed fields. On main, a null or object severity, a top-level JSON list or a JSON string stopped the check with AttributeError, a number or null advisory with TypeError, and an object advisory with KeyError (slices are hashable on Python 3.12 and later). These now complete. A list advisory did not fail, but its Python repr went into the message; it is now left out. A non-list vulnerabilities was already ignored and still is.
    • A pip-audit advisory with "severity": null, which _validated_pip_audit_report accepts, no longer raises AttributeError in _get_vuln_severity; it falls back to the aliases and ID prefix.
    • A folder run audits every skill. ValidatorBase._validate_folder_or_skill stops a folder at the first CRITICAL finding, which is meant for configuration errors. A critical advisory concerns one skill's pins, so validate now runs the folder loop with continue_on_failure_scope(True).
    • requirements*.txt files are audited in sorted order, so findings and SARIF results keep one order on every filesystem.
    • Requirements warnings, "skipped" messages and finding lines name the line an editor shows. main used the line index after joining --hash continuations, so a pin after a pip-compile block was off by the number of hash lines. Line numbers now advance only at \n, \r\n and \r, so a form feed, \x85 or \u2028 does not shift them.
    • A comment line that ends in a backslash no longer continues into the next line, as in pip's join_lines, which never continues a line that matches its COMMENT_RE. On main, idna==3.10, # pinned for py2 \, pyyaml==5.3 joined the pyyaml pin into the comment, so pip-audit saw only idna and the check passed, although pip install -r installs pyyaml 5.3. A pin whose trailing comment ends in a backslash still continues, as in pip. Otherwise the joined text is the same as on main.
  • Reporting, for every check, so the reason a scan is INCOMPLETE stays visible once advisories are findings:
    • src/skillevaluator/reporting/cli.py: _print_findings prints additional_warnings(result), the warnings no finding repeats, before the issues. It printed warnings only when a result had no findings.
    • src/skillevaluator/reporting/markdown.py: _render_incomplete lists additional_warnings(result) when no independent error explains the incomplete scan, HTML-escaped as the error list above it is. It listed warnings only when a result had no findings and no errors, and wrote them raw.
    • src/skillevaluator/validators/policy.py: when an overlay changes a finding's severity, apply_policy rebuilds the result with recalculate_from_findings, which clears every warning. It now adds back result.independent_warnings(), the warnings no finding mirrored, read before any severity changes. validators does not import the reporting package for this.
    • src/skillevaluator/models/result.py and src/skillevaluator/reporting/base.py: the matching of legacy lines that only repeat a finding moves from reporting.base._finding_legacy_lines to ValidationResult, as independent_errors() and independent_warnings(). additional_errors and additional_warnings keep their names and return values and now delegate to them.
  • src/skillevaluator/models/result.py: recalculate_from_findings treated only HIGH and CRITICAL findings as errors. It now also fails a MEDIUM finding whose metadata sets fail_on_medium, so a policy overlay on one advisory keeps a fail_on_medium=True validator's other medium pip-audit advisories as errors. Safety findings do not carry the key and stay warnings.
  • src/skillevaluator/tier1/commands.py: the comment above the Tier 1 check steps said the policy normalizes "CVE findings". None of those steps writes a CVE finding, so a reader would try a CVE.* policy key, which does not touch these advisories; the comment now names the DEPENDENCY.* advisory findings. The comment is the only change in this file.
  • Docs: the dependency accordion in docs/tier1-validation.mdx describes how a comment line ends a continuation, the finding, its metadata, unbound advisories, the role words, Safety severity (a score outside 0 to 10 is skipped) and de-duplication, folder runs, which severities fail the run (including fail_on_medium from Python), DEPENDENCY.<advisory-id> / DEPENDENCY.* policy overrides, and where the INCOMPLETE reasons appear. On folder runs it says: every skill is audited; validate on a folder of skills runs each skill as its own job, so each report lists its advisories; only when one dependency check covers several skills (validate --type rules or --type workflows on a folder, or DependencySecurityValidator().validate() on a folder in Python) is a passing skill summarized as one passed check, without its medium or low advisories, and a policy override cannot raise those.
  • CHANGELOG entry under Unreleased > Fixed.

The closed plugin-evaluation PR #28 carried a version of this fix inside its larger change; this PR lands the generic part on its own.

Why

A vulnerable pin failed the run, but nothing downstream could see why:

  • JSON findings was empty and high_count was 0 for a high advisory.
  • SARIF had no result, so GitHub Code Scanning showed nothing.
  • A policy overlay keys on CATEGORY.check_name of findings, so it could not accept or raise one advisory.
  • Reports could not say which line pinned the package or whether the version came from an exact pin.

With Safety installed, an advisory with "severity": null in Safety's JSON stopped the whole dependency check with AttributeError: 'NoneType' object has no attribute 'lower'. With an API key, Safety prints severity as a CVSS object, and main failed the same way on it. The exception propagates out of DependencySecurityValidator.validate() and the Tier 1 check loop, which has no handler for it. The new CVSS reading skips a base_score integer too large for a float rather than passing it to math.isfinite, which raises OverflowError on it.

A comment line ending in a backslash let a target hide a vulnerable pin from the audit while pip install -r still installed it, as described above.

Turning advisories into findings also made them reach code that only looked at findings, so this PR adjusts that code:

  • Without the folder change, validate skills --type rules --checks dependency with a critical advisory in the first skill audited only that skill. A policy that accepted the advisory then passed the run (exit 0, one pip-audit call) while a later skill's high advisory was never audited.
  • Without the recalculate_from_findings change, DependencySecurityValidator(use_safety=False, fail_on_medium=True) on idna==3.6 (a medium advisory) and pyyaml==5.3 failed, but after a policy set DEPENDENCY.PYSEC-2020-176: low it passed, and the medium advisory the policy never named became a warning. On main a policy never touched dependency results. The CLI does not set fail_on_medium, so only Python callers saw this.
  • Without the reporting changes, a result with one advisory and a range pin showed [INCOMPLETE] pip-audit did not complete in the CLI and Markdown reports without the warning that names the unpinned line, and a policy override on any advisory removed that warning from every report.
  • Those warnings can name a target file, such as requirements-<img src=x onerror=alert(1)>.txt. The Markdown report escapes the same name in its findings table and errors, so it escapes the warnings too.

Kept from public

Tests

  • New tests/validators/test_dependency_advisory_findings.py (91 tests):
    • a requirements.txt advisory: category, check name, severity, message, file and line, suggestion, full metadata, high_count, and the legacy error string
    • JSON and SARIF reports: a pyyaml==5.3 advisory after a hashed idna pin has line 3 in JSON findings and in the SARIF region, rule Dependency-Vulnerability-Audit/PYSEC-2020-176, level error
    • PEP 503 matching: Pillow_SIMD==9.0 is audited as pillow-simd==9.0 and keeps its declared spelling
    • role from the file name (13 cases, including requirements-devtools.txt, requirements_unittest.txt and requirements-lint.txt, and requirements-latest.txt and requirements-docker.txt as runtime) and from the optional group name (9 cases)
    • two requirements files listed in reverse directory order are audited in sorted order
    • pyproject.toml: declared pin, declaration position and docs role from an optional group; a pin repeated in test keeps its runtime declaration; fail_on_medium still fails on a medium advisory
    • through run_validation(checks="dependency") and emit_reports, as the Tier 1 commands run it: a DEPENDENCY.*: low override lowers the advisory and the reports pass; a CVE.*: low override leaves it high and the run fails
    • a policy overlay DEPENDENCY.PYSEC-2020-176: low passes the run; with a range pin, the overlaid result keeps the line 2 requires an exact package version warning, and a second apply_policy changes nothing
    • with fail_on_medium=True, the same overlay keeps the medium idna pip-audit advisory as the one error, the run still fails, and a medium Safety advisory stays a warning without the fail_on_medium key
    • in a fresh interpreter, an overlay that lowers an advisory keeps the independent warning and loads no skillevaluator.reporting module
    • Safety: full metadata for a null-severity advisory with vulnerable_spec, fixed_versions and CVE; seven malformed outputs complete without a crash, including a number and an object as advisory; 18 severity values, including the object Safety prints with an API key (critical, run fails), v3 and v2 scores, both key spellings, bool, NaN and out-of-range scores (medium), 10**400 as the v3 score and -(10**400) with a 400-digit v2 score (medium), and an infinite v3 score that falls through to a v2 score of 7.5 (high); 5 ID forms, including JSON numbers (SAFETY-51457); a copy of a pip-audit advisory under its CVE or ID is dropped while other Safety advisories stay; an advisory for a marker-skipped pin is unbound
    • a folder with a critical advisory in the first skill, a high one in the second and a range in the third audits both pinned skills, stays incomplete, and still fails after a policy accepts the critical advisory
    • a pip-audit advisory with "severity": null is HIGH from its PYSEC ID
    • a warning after a hashed pin names line 3; a finding after a form feed in a comment is on line 2
    • continuation joining matches main's re.sub(r"\\\r?\n", " ", text).splitlines() on 11 inputs without a comment continuation, with the expected line numbers, including form feed, vertical tab, \x85, \u2028 and \x1e cases
    • a comment line ending in a backslash ends the declaration (4 cases: a comment line, an indented comment with CRLF, a comment after a continued pin, and a trailing comment, which still continues as in pip); idna==3.10, # pinned for py2 \, pyyaml==5.3 sends both pins to pip-audit and reports PYSEC-2020-176 on line 3
    • the CLI report of a failed, incomplete result prints the range warning before the issue and the advisory once
    • the Markdown report of an incomplete result with a medium advisory lists the range warning and the advisory row, and does not repeat the advisory as a warning; a warning naming requirements-<img src=x onerror=alert(1)>.txt next to an advisory is written as &lt;img ...&gt; (the warning is added to a real audit result, because Windows does not allow < or > in file names); with an execution error and no finding it still shows only the error
    • without declarations, _process_pip_audit_result still emits [CVE-HIGH] foo==1.0: GHSA-x and no finding
  • Fail-before:
    • with src/ from main at d717f22 and this test module, 88 failed and 3 passed. The 3 pin kept behavior: the non-list vulnerabilities case, the tagged message without declarations, and the Markdown report with an execution error. The 15 joiner cases fail on main because they call the new _requirement_lines helper; the object-advisory case fails with KeyError.
    • with src/ from 903ffd6, before the comment and fail_on_medium fixes, 9 failed and 82 passed: three comment-line joiner cases, the pin after a commented backslash, the fail_on_medium policy case, and the 4 tests that also fail at 83583cc (next item). The trailing-comment case passes there too, because that behavior did not change.
    • with src/ from 83583cc, before the last 4 fixes, 4 failed and 87 passed: the two huge-integer severity cases (OverflowError: int too large to convert to float), the Markdown escape test (the raw <img is in the report), and the fresh-interpreter policy test (apply_policy loaded skillevaluator.reporting.base and 14 other reporting modules). The infinite-score case passes there too, because math.isfinite handled it.
    • with src/ from a402a2a, before the tier1/commands.py comment fix, 91 passed. The fix changes a comment only, so no test can fail before it; the 2 new Tier 1 override tests fail on main, where the advisory is not a finding.
    • each commit's tree was tested on its own: caad0a9 87 passed, 7824508 88 passed.
  • A fuzz check outside the suite compared the logical lines and their line numbers, after comment stripping, with pip's own preprocess on 100,000 generated requirements files: pins, --hash options, comment lines and trailing comments, each with or without a trailing backslash, LF or CRLF, ending in a newline. Whitespace placement was ignored, because this joiner turns a continuation into a space and pip into nothing. 0 differences on the branch, 16,877 before the comment fix.
  • On the branch, with main at d717f22 merged in:
    • tests/validators/test_dependency_advisory_findings.py, test_security_validators.py, test_target_dependencies.py, test_static_requirements_audit.py and test_private_dependency_audit.py: 255 passed.
    • tests/validators/test_policy.py and tests/models: 60 passed. tests/reporting/test_mixed_execution_errors.py, which covers additional_errors and additional_warnings with and without skill prefixes: 7 passed.
    • tests/validators, tests/reporting, tests/models and tests/cli with -n 4: 6302 passed, 2 skipped.
    • the whole tests tree with -n 6: 27456 passed, 35 skipped, 6 failed. The 6 failures also fail with main's tree at d717f22 on this machine: the CI bootstrap PYTHONPATH test and the 2 feedback launcher tests in tests/ci, the bounded Harbor process timeout test, and 2 secure Docker sidecar tests. This PR does not touch CI or Harbor code.
  • Before this merge, on the tree git merge-tree built from this branch and Enable public plugin assessment and saved-run reports #394's head (fa5ca24): the new module, tests/validators/test_policy.py, test_public_plugin_policy.py and tests/reporting/test_public_plugin_reports.py: 148 passed. That head now conflicts with main itself, in CHANGELOG.md and files this PR does not change, so the tree cannot be built again.
  • ruff check and ruff format --check are clean on the changed Python files, and scripts/check_oss_boundary.py passes.

🤖 Generated with Claude Code

rng1995 and others added 10 commits November 6, 2026 23:10
The dependency audit recorded pip-audit and Safety advisories only as
legacy "[CVE-HIGH] ..." error strings. A vulnerable pin failed the run,
but the advisory never reached result.findings: JSON findings and
severity counts left it out, SARIF had no result, and a policy overlay
could not change its severity. Safety JSON with a null or object
severity, a non-text advisory or a top-level list raised AttributeError,
and so did a pip-audit advisory with a null severity, which the report
validator accepts.

Advisories are now DEPENDENCY findings whose check name is the advisory
ID (SAFETY-<id> for numeric Safety IDs), at the requirements file and
the physical line that pins the package, or at pyproject.toml. The
metadata binds the scanned version to the declared exact pin
(name==version as the target spells it and its line or declaration
position, never the raw line) and records the advisory source, affected
range (Safety), fixed versions, aliases, and a runtime/dev/test/docs/build
role from whole tokens of the requirements file stem or optional group.
Requirement warnings now name the physical line when --hash continuation
lines come first.

Kept from main: the pinned-only audit with --no-deps --disable-pip, the
report validation, exit-code and inventory checks, incomplete semantics,
fail_on_medium for pip-audit and Safety's non-blocking medium findings.
A caller that passes no declarations, such as the private plugin audit,
still gets the tagged CVE message it converts into its own findings.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Follow-up to the structured dependency advisories.

- A critical advisory no longer stops a folder run at the first skill.
  The dependency audit runs its folder loop with continue-on-failure, so
  later skills are still audited, and a policy that accepts one advisory
  can no longer pass a run whose other skills were never audited.
- Safety's severity object, printed with an API key, now sets the
  severity: the CVSS v3 level, then the v3 score, then the v2 score and
  level, and medium only without any of them. A JSON-number
  vulnerability_id names the finding SAFETY-<id> instead of Unknown.
- A Safety advisory that pip-audit already reported for the same package
  version under its ID or CVE is left out. A Safety advisory that matches
  no audited pin has resolution_status "unbound".
- Requirements files are audited in sorted order. Line numbers advance
  only at \n, \r\n and \r, so a form feed or U+2028 no longer shifts them.
- The role words add devel, devtools, lint, linting, pytest, unittest
  and testutils.
- The CLI prints warnings that no finding repeats next to the findings,
  the Markdown report lists them for an incomplete result without an
  independent error, and apply_policy keeps them when it rebuilds a
  result, so the reason an audit is INCOMPLETE stays visible.
- The CHANGELOG names TypeError for a non-text Safety advisory and drops
  a non-list vulnerabilities field, which main already ignored.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The requirements joiner continued any line that ended in a backslash, a
comment line included. In "idna==3.10", "# pinned for py2 \", "pyyaml==5.3"
the pyyaml pin became part of the comment, so pip-audit saw only idna and
the check passed, although pip install -r installs pyyaml 5.3. main joined
the same way.

A line that starts with "#" after optional whitespace now ends the
declaration, as pip's join_lines does with COMMENT_RE, so the next pin is
audited at its own line. A pin whose trailing comment ends in a backslash
still continues, as in pip.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ults

Advisories are findings now, so apply_policy can rebuild a dependency
result through recalculate_from_findings, which treated only HIGH and
CRITICAL findings as errors. With DependencySecurityValidator(
fail_on_medium=True), a medium pip-audit advisory failed the run until a
policy changed another advisory's severity; the rebuild then turned the
medium advisory, which the policy never named, into a warning and passed
the run.

Each pip-audit finding of such a validator now records fail_on_medium in
its metadata, and recalculate_from_findings applies it to a MEDIUM
finding. Safety advisories do not carry it and stay warnings, as before.
Only the Python API sets the option; the CLI does not.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… failed

The dependency docs said every advisory appears in JSON findings, the
severity counts and SARIF. In a folder run, a skill whose audit passes is
summarized as one passed check, so its medium or low advisories are not
listed; the docs now say so and how to see them.

The CHANGELOG said a non-text Safety advisory stopped the check with an
AttributeError or TypeError. On 0.8.0 a number or null advisory raised
TypeError, an object raised KeyError (slices are hashable on Python 3.12
and later), and a list did not fail. The entry now names those cases, and
the malformed-output test covers an object advisory.

The test of the declaration-free legacy path now describes its caller
without naming a feature.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Safety severity object such as {"cvssv3": {"base_score": 10**400}}
made math.isfinite raise OverflowError, which escaped the dependency
check and the Tier 1 loop. The 0 to 10 range check alone rejects NaN,
infinity and huge integers, so drop the isfinite call; such a score is
skipped like any other out-of-range score.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Markdown report now lists warnings that no finding repeats for every
incomplete result, including results with findings. Those warnings can
name target files, such as a requirements file whose name contains
markup, but they were written raw while the error list and the findings
table escape the same text. Escape them with html.escape as the error
list does.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
apply_policy imported skillevaluator.reporting.base inside the function
to keep the warnings that no finding mirrors. That made validators
depend on the reporting package, and the first severity change loaded
every report writer. Move the matching of mirrored legacy lines into
ValidationResult.independent_errors() and independent_warnings(). The
reporting helpers additional_errors and additional_warnings now
delegate to them, and apply_policy calls the model directly.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ries

validate on a folder of skills runs each skill as its own job, so every
skill's report lists its advisories. Only a dependency check that covers
several skills, as with --type rules or --type workflows on a folder or
the Python API, summarizes a passing skill as one passed check. In those
runs a policy override cannot raise the hidden advisory either. Also say
that a Safety CVSS score outside 0 to 10 is skipped.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The comment above the Tier 1 check steps said the policy normalizes
"CVE findings". Dependency advisories now reach the policy as
DEPENDENCY.<advisory-id> findings, and no finding has category CVE, so
the comment now names DEPENDENCY.* advisory findings.

A test runs the dependency check through run_validation and
emit_reports: a DEPENDENCY.* override lowers the advisory and the
reports pass; a CVE.* override changes nothing.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rng1995
rng1995 marked this pull request as ready for review November 9, 2026 19:50
Conflicts:
- CHANGELOG.md: main and this branch both appended an entry at the end
  of Unreleased > Fixed. Kept both: main's `tier3 compare` lift entry
  first, then this branch's `dependency` advisory finding entry, under
  the single existing Fixed heading. Released sections are unchanged.

docs/tier1-validation.mdx, src/skillevaluator/reporting/cli.py and
src/skillevaluator/reporting/markdown.py merged without conflict; main's
hunks there touch other lines than this branch's.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed structured dependency findings, declared-pin provenance, Safety advisory deduplication, severity-policy rebuilding and prefixed result/report handling, including callers and the PR test coverage. No additional actionable findings.

Validation on a clean merge candidate with current main (ce52a098), using the repository lockfile: 91 passed in 51.64s. The exact PR head 32bf36c532dc has all 10 required CI checks successful and merges without conflicts. The remote head is unchanged by this review.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Resolved the new CHANGELOG conflict after external main merges, preserving both the dependency-advisory and landed Tier3 verdict entries. Signed-off integration commit 6c64d4d20d2e contains main a0b65a91; it also merges cleanly with latest main 487910ef1dc4. Verification:91 dependency-advisory tests passed, full source/test lint passed, Fern reported0 errors with the existing authenticated-redirect warning, and git diff --check passed. CI for the updated head is running.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Resolved the new CHANGELOG conflict while integrating current main b38b71be01f7. All main entries and the complete dependency-advisory entry are preserved; the PR entry follows a distinct existing bullet under Unreleased / Fixed to avoid a shared insertion point during concurrent merges. The only manual conflict file is CHANGELOG.md; all production and test paths exactly match the automatic Git merge.

Verification: 91 dependency-advisory tests passed in 31.51s; ruff check . passed; pinned Fern validation reported 0 errors and the existing authenticated-redirect warning; staged whitespace checks passed. The candidate also merges cleanly with latest checked main b38b71be01f7. Current head 276881f9c602 is pushed normally with sign-off; its hosted CI is pending. No PR merge was performed by this task.

@rng1995
rng1995 enabled auto-merge (squash) November 12, 2026 20:26

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Diagnosed the earlier Python 3.13 CI failure in the existing RAGAS judge deadline path. The failing test and verifier implementation are byte-identical across the failed head, main b38b71b, and this clean main-a72 merge. A controlled setup delay reproduced the same empty-cancellation assertion and unawaited ascore warning on both PR and main: Python creates the scoring coroutine before evaluating a remaining-time argument that can raise after setup exhausts the budget. The client still closes exactly once and the judge fails closed. I am preparing a minimal ordering repair and deterministic setup-expiry/active-scorer tests, preserving deadline enforcement and strict cancellation coverage.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added the independently reviewed repair for the pre-existing CI deadline failure. The verifier now validates remaining budget before creating the RAGAS scorer coroutine, so setup expiry cannot leave an unawaited coroutine. A deterministic setup-expiry regression failed before the fix on Python 3.12 and current-lock 3.13; it now verifies fail-closed error/None, no scorer/fallback request, no unawaited warning, and exactly-once client cleanup. The separate active-scorer case still requires actual cancellation and no longer spends its 10ms test budget on setup. Validation: all 3 deadline cases pass with RuntimeWarnings as errors; 141 broader judge/evidence tests pass under the activated locked Python 3.13 / Harbor 0.25 environment; Ruff and format checks pass. The normal signed-off push preserved external head 68ee2e8 and merged cleanly with latest main 8850662. Current-head CI is running.

@rng1995
rng1995 merged commit 38274cc into main Nov 12, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/port-dependency-advisory-findings branch November 12, 2026 21:48
rng1995 added a commit that referenced this pull request Nov 12, 2026
Brings in #410, #412, #413, #419, #421, #425, #430 and #444. Conflicts: CHANGELOG.md (kept both Unreleased Fixed entries) and evaluation/options.py (kept main's tolerate_baseline_timeouts field and this PR's backend field).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
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