Skip to content

feat(llm): record the answering model on --llm-verify verdicts and Tier 2 duplicate findings - #455

Merged
chrisknvidia merged 23 commits into
mainfrom
naren/port-llm-answering-model-verifier-tier2
Nov 13, 2026
Merged

chrisknvidia merged 23 commits into
mainfrom
naren/port-llm-answering-model-verifier-tier2

Conversation

@rng1995

@rng1995 rng1995 commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Stacked on naren/port-tier2-intra-llm-limits (#412); merge that first.

Tier 2 context deduplication and --llm-verify now record which model gave each verdict. On the native Claude API that can be the server-side fallback model rather than the configured one.

  • LLMVerdict gets a trailing optional model field (default None). The plugin analyzer's positional constructor and all keyword constructors keep working.
  • parse_bounded_llm_verdict (added in fix(tier2): reject out-of-range or non-string dedup LLM verdict fields #412) takes model= and keeps it only when it is a string. analyze_cluster passes the client's model_used, read right after its call.
  • A Tier 2 DUPLICATE finding whose verdict names a model adds llm_provider and llm_model_used to its metadata, the same labels rubric evaluation uses since feat(llm): record the model that wrote rubric scores and Tier 3 insights #308.
  • The Tier 2 llm_analysis object adds models_used: the sorted, distinct models that gave a completed cluster's verdict. It is left out when no cluster named one. llm_analysis.model stays the configured model.
  • --llm-verify: each finding that gets a verdict adds llm_provider and llm_model_used, from the verifier's provider and model_used. No label is written when the client names no model.
  • Truncated replies: LLMClientTruncatedError gets a trailing optional model_used. The client sets it to the model that wrote the partial reply, and process() sets model_used to it when it keeps that reply's complete entries. FindingVerifier keeps them, so a verdict salvaged from a fallback model's cut-off reply names that model. A truncated reply that is not kept still leaves model_used at None, as does a failed completions() or chat() call.
  • Report values go through safe_llm_labels and safe_llm_model, so a URL, a key-like value or any other non-identifier reads unresolved. The verdict itself stores the model as the client reported it.
  • Docs: the "Add LLM analysis" step of docs/tier1-validation.mdx names both labels, says which model they name in the sentence the rubric section of that page already uses, and covers the truncated-reply case. For a Claude 5.5 or later model on the native Claude API, that is the model the reply names. One paragraph after the llm_refused paragraph in docs/tier2-deduplication.mdx describes models_used and the finding labels. CHANGELOG entry under Unreleased > Added.

Why

  • With the default claude-opus-5-5 on the native Claude API, a refused request is answered by claude-opus-4-8 in the same call. LLMClient.model_used names the model that answered, and feat(llm): record the model that wrote rubric scores and Tier 3 insights #308 records it for rubric scores, Insights, dimensions and the Tier 3 judge.
  • Tier 2 and --llm-verify dropped it. On main, a blocking HIGH duplicate answered by claude-opus-4-8 has metadata reasoning, confidence and source_files only, and llm_analysis.model says claude-opus-5-5. claude-opus-4-8 appears nowhere in the report.
  • An --llm-verify verdict can downgrade a finding to INFO. On main that finding names no model at all.
  • Verification asks for up to 16384 output tokens at high reasoning effort, so a reply can stop at the limit. The verifier keeps the complete verdicts of such a reply, and they can downgrade findings too. Before this change those verdicts named no model, because the client set model_used only after a successful call.
  • --llm-verify names the provider as well as the model, as Tier 2 and rubric evaluation do. With an openai-compatible gateway, a model id alone does not say which provider served it.
  • model_used is kept per thread. Tier 2 reviews up to 5 clusters at once on one client, so analyze_cluster reads it in the worker thread, right after that cluster's call. Read later from the main thread, it would be None.

Kept from public

Tests

  • tests/deduplication/intra_skill/test_intra_llm_analyzer.py, 7 new tests:
    • a client model_used of claude-opus-4-8 gives verdict.model == "claude-opus-4-8" (1)
    • a URL is kept as the client named it; reports sanitize it later (1)
    • None, a number or a list gives model is None (3)
    • a client without model_used gives None (1)
    • a positional LLMVerdict has model is None (1)
  • tests/deduplication/intra_skill/test_intra_skill_validator.py, 8 new tests in TestAnsweringModelProvenance:
    • a DUPLICATE verdict from claude-opus-4-8, with claude-opus-5-5 configured, gives a HIGH finding with llm_provider anthropic and llm_model_used claude-opus-4-8. llm_analysis.models_used is ["claude-opus-4-8"] and llm_analysis.model stays claude-opus-5-5, in the metadata and the JSON report (1)
    • a URL, sk-test or a name with spaces reads unresolved and does not appear in the JSON report (3)
    • a verdict without a model adds no model fields and no models_used (1)
    • an llm_refused advisory beside a fallback-answered duplicate keeps exactly source_files, llm_provider and llm_model (configured) (1)
    • a failed cluster beside a fallback-answered duplicate adds nothing to models_used, and the error still names the configured model (1)
    • end to end through the real LLMClient and the Anthropic SDK on an httpx.MockTransport: two clusters run in worker threads, one answered by claude-opus-4-8 through a fallback block and one by claude-opus-5-5. A barrier makes both calls finish before either cluster reads its model, and each finding keeps its own model (1)
  • tests/validators/test_security.py, 12 new tests:
    • with a stub verifier (provider anthropic, model_used claude-opus-4-8), the downgraded and the confirmed finding both carry llm_provider and llm_model_used, and a finding without a verdict carries neither (1)
    • a URL model or sk-test reads unresolved, a URL provider reads unresolved, and no model_used writes no label (4)
    • through the real FindingVerifier on an httpx.MockTransport, with claude-opus-5-5 or gpt-5.4-mini configured: an Anthropic fallback block gives claude-opus-4-8; an Anthropic reply without one gives the model the reply names, claude-opus-5-5 or claude-opus-5-5-20261101; and an OpenAI reply naming another model still gives the configured gpt-5.4-mini; each with its provider (4)
    • through the real FindingVerifier: a fallback block, stop_reason max_tokens, one complete verdict line and a cut-off second line. The first finding is downgraded to INFO with llm_provider anthropic and llm_model_used claude-opus-4-8; the second stays HIGH with no llm_ keys, and the scan is incomplete (1)
    • in a fresh process, importing skillevaluator.validators.security loads no skillevaluator.inference module (1)
    • the --llm-verify paragraph of docs/tier1-validation.mdx contains the rubric paragraph's sentence on which model is named, and its truncated-reply sentence (1)
  • tests/inference/test_llm_client.py, 5 new tests in TestModelProvenance:
    • a reply cut off at the token limit raises LLMClientTruncatedError whose model_used is the configured OpenAI model, or the Anthropic fallback model named by a fallback block; the client's own model_used stays None (2)
    • FindingVerifier.process() keeps the complete verdict of a truncated fallback reply and names the fallback model as model_used (1)
    • a truncated reply that is not kept, with salvage off or with a parse that fails, leaves model_used at None (2)
  • Fail-before: with src/ from naren/port-tier2-intra-llm-limits at 7402ade (its fix at 9265c88 merged with main at d717f22), 26 of the 32 new tests fail.
    • 13 fail because LLMVerdict has no model: the 7 analyzer tests and the 6 validator tests whose stub verdicts set one.
    • 10 fail on missing labels, through the real analyze_cluster or verifier code: the end-to-end Tier 2 test (KeyError: 'llm_model_used') and 9 --llm-verify tests.
    • 3 fail in the client: LLMClientTruncatedError has no model_used (2), and a salvaged reply leaves model_used at None (1).
    • 6 pass: the Tier 2 and --llm-verify no-model cases and the two not-kept truncation cases, which pin that nothing is added; the import test, which pins main's import graph; and the docs test, which reads the docs, not src/. The docs test fails on this branch at e190514, before the docs fix.
  • With the client's per-call state changed from per-thread to shared, the end-to-end Tier 2 test fails (3 of 3 runs).
  • tests/deduplication/intra_skill: 189 passed (test_intra_llm_analyzer.py 73, test_intra_skill_validator.py 99).
  • tests/validators/test_security.py: 1020 passed, 1 skipped. tests/inference: 254 passed (test_llm_client.py 207).
  • tests/deduplication, tests/inference, tests/embedding, tests/validators, tests/evaluation, tests/test_ci_workflows.py and the docs and CHANGELOG readers (tests/ci/test_all_tier_workflows.py, tests/ci/test_image_build.py, tests/ci/test_tier_manifest.py, tests/test_accuracy_arithmetic.py, tests/test_benchmark_rollout_docs.py, tests/test_ci_change_classifier.py, tests/test_harbor_claude_refusal_fallback.py, tests/test_oss_packaging.py, tests/test_tier3_public_runtime.py, tests/tier3/test_private_loose_source.py): 6040 passed, 4 skipped.
  • tests/reporting, tests/test_publication_evidence.py, tests/test_tier2_command_failures.py, tests/test_cli.py, tests/test_llm_client_retry.py, tests/test_llm_judge.py, tests/test_harbor_collector_judge_strategy.py, tests/test_judge_lift_integrity.py, tests/test_harbor_metrics_truth.py and tests/tier3/test_judge_parse_robustness.py, test_judge_policies.py and test_judge_failure_artifacts.py: 2704 passed.
  • ruff check . is clean. ruff format --check is clean on 7 of the 9 changed Python files. security.py and test_security.py already fail it on main at d717f22, on lines this PR does not touch (27 and 25 reformat hunks, the same count with and without this PR). scripts/check_oss_boundary.py passed.
  • Merged with naren/port-tier2-intra-llm-limits, which now contains main at d717f22. The only conflict was CHANGELOG.md, Unreleased > Added, where main also added an entry at the end. Both sides' entries are kept, with this one last. git merge-tree --write-tree HEAD d717f22cf is clean. This PR's diff against its base shows only its own changes, 12 files.

🤖 Generated with Claude Code

rng1995 and others added 16 commits November 7, 2026 01:33
Context deduplication turned the chat-LLM reply into a finding with
float(confidence) and the raw rationale and suggestion values. A
confidence of 85 or true made a HIGH finding, the string "NaN" made a
MEDIUM finding whose NaN confidence broke the strict JSON and SARIF
reports, and a list or object in a text field reached the finding
unchanged.

Add parse_bounded_llm_verdict to the inference types. It requires a JSON
object, a known verdict string, a finite numeric confidence within
[0, 1] (not a bool or a string), and rationale and suggestion strings of
at most 8,192 characters. analyze_cluster uses it, so a bad reply raises
LLMClientError and the validator reports the cluster as a failed
analysis, which leaves the scan incomplete.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Describe the confidence range and text-length checks on chat-LLM
verdicts in the Tier 2 page and its limits table, and add a Fixed entry
under Unreleased.

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

The Fixed entry implied that only DUPLICATE verdicts were affected. The
checks apply to every verdict, so an INTENTIONAL_DETAIL or
RELATED_BUT_DISTINCT reply with a null suggestion or a "0.9" string
confidence, which passed on 0.8.0, now leaves Tier 2 incomplete, and so
does a DUPLICATE reply with a "0.9" confidence. Say that the field rules
apply when a field is present, since a missing confidence still reads as
0. Move the entry above the SHARED CONTENT entry so it no longer touches
the hunk a sibling change adds below that entry.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reply that breaks the confidence or text-field rules now fails the
cluster's analysis whatever its verdict. Pin that an INTENTIONAL_DETAIL
reply with a null suggestion and a RELATED_BUT_DISTINCT reply with a
"0.9" confidence, which both passed before, and a DUPLICATE reply with a
"0.9" confidence, which made a HIGH finding, now leave the scan
incomplete with no finding. Also pin that a DUPLICATE reply without a
confidence still reads it as 0 and gives a MEDIUM advisory finding.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A missing confidence still reads as 0, so a DUPLICATE verdict without
one is MEDIUM, and a missing rationale or suggestion reads as empty. Say
so, and say that a reply that breaks the rules fails the analysis
whatever its verdict, including a null suggestion. Move the verdict text
row above the total prompt row in the limits table, so it no longer
touches rows a sibling change adds after that row.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On the native Claude API a server-side fallback model can answer a
cluster in place of the configured model, but Tier 2 reported only the
configured model. A blocking HIGH duplicate could come from the fallback
model with nothing in the report saying so.

LLMVerdict gets an optional model field, and analyze_cluster fills it
from the client's model_used right after the call. The client keeps
model_used per thread, so each of the concurrent cluster workers keeps
its own answering model. The verdict stores the model as given.

A DUPLICATE finding with a known answering model now carries
llm_provider and llm_model_used, and llm_analysis adds models_used, the
sorted answering models of all completed clusters. Both pass through
safe_llm_model, so a URL or key-like value reads "unresolved".
llm_analysis.model stays the configured model, and the llm_refused
advisory and the failure path are unchanged.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
An --llm-verify verdict can downgrade a finding to INFO, and on the
native Claude API a server-side fallback model can give that verdict in
place of the configured model. The finding named no model at all.

Each finding the verifier returns a verdict for now carries
llm_model_used: the verifier's model_used after its call, through
safe_llm_model. FindingVerifier makes one call in the validator's
thread, so one label covers the batch. Findings without a verdict get
no label, and no label is written when the client names no model.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Say where Tier 2 and --llm-verify record the model that answered, that
llm_analysis.model stays the configured model, that an llm_refused
finding keeps naming the configured model, and that a model name that is
not a plain identifier reads "unresolved". Add the CHANGELOG entry under
Unreleased > Added.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve the CHANGELOG.md conflict in Unreleased > Added: keep main's new
entries and add this branch's answering-model entry after them.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The --llm-verify label helper was imported at module level, which loaded
skillevaluator.inference, its client and the finding verifier whenever
security.py was imported. Import it inside _verify_findings_with_llm next
to the lazy FindingVerifier import, and pin in a fresh process that
importing the validator loads no skillevaluator.inference module.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Tier 2 duplicate finding and a rubric score carry llm_provider and
llm_model_used, but an --llm-verify verdict carried only llm_model_used.
With an openai-compatible gateway, a model id alone does not say which
provider served the verdict. Label --llm-verify findings with both,
through safe_llm_labels as rubric evaluation does, and say so in the
docs and the CHANGELOG entry.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
FindingVerifier keeps the complete verdicts of a reply cut off at the
output-token limit, and those verdicts can downgrade a finding to INFO.
The client set model_used only after a successful call, so a salvaged
verdict named no model, even when a server-side fallback model wrote
the reply. LLMClientTruncatedError now carries the model that wrote the
partial reply, and process() sets model_used to it when it keeps the
reply's entries. A truncated reply that is not kept still names no model.

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

models_used leaves out a model whose reply failed verdict validation,
because that cluster gave no verdict. The docs and the CHANGELOG said
"every model that answered a cluster", which suggested otherwise. Say
"every model that gave a cluster's verdict", and note that the blocking
error for failed clusters names the configured model.

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

The --llm-verify step said each verdict names the configured model unless
a Claude reply names a server-side fallback model. For a Claude 5.5 or
later model on the native Claude API, the client takes the model the reply
names even without a fallback block, so a reply that names another model
id is labeled with that id. The rubric section of the same page already
says so. Reuse its sentence in the --llm-verify step.

Add a real-verifier case where such a reply names claude-opus-5-5-20261101
and pin both docs paragraphs to the same sentence.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
No file conflicted. Four files changed on both sides and merged
automatically:

- CHANGELOG.md: main's new Unreleased entries are kept. This branch's
  dedup verdict entry stays under Fixed, between the PII
  evidence_sha256 entry and the SHARED CONTENT numbering entry, as
  before. Each Unreleased subsection still has one heading.
- docs/tier2-deduplication.mdx: main's CI, collection coverage and
  scale benchmark sections are kept next to this branch's verdict
  field rules and the verdict text row in the limits table.
- src/skillevaluator/constants.py: main's SIGNAL_EVIDENCE_SOURCES and
  OpenClaw manifest constants are kept next to
  TIER2_LLM_MAX_RESPONSE_SCALAR_CHARS.
- tests/deduplication/intra_skill/test_intra_skill_validator.py:
  main's end-of-file shell comment test is kept next to this branch's
  verdict validation tests. It mocks analyze_cluster, so the verdict
  checks do not affect it.

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

The base branch now contains main at d717f22.

Conflicts:
- CHANGELOG.md: Unreleased > Added. Main added the repository CI
  onboarding entry (#443) at the end of Added, where this branch had
  added its answering-model entry. Both entries are kept, main's first
  and this branch's after it. No released section changed.

docs/tier1-validation.mdx and docs/tier2-deduplication.mdx merged
without conflicts: main changed CI links and the collection-similarity
section, away from this branch's paragraphs. Main changed none of the
source files this branch edits.

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 the complete production diff and regression coverage; checked per-thread answering-model capture, provider fallback, truncated-reply salvage, verifier metadata and label sanitization. No actionable findings.

Verification at unchanged head 44ddb3e1f97c80377b8b40c765838848ba5879ed: 20 existing CI checks succeeded and 2 were intentionally skipped, including the supported Python tests, lint/package and security/platform gates where applicable. Fresh git merge-tree --write-tree is clean against the current PR base naren/port-tier2-intra-llm-limits. No new local test run is claimed for this unchanged code.

This PR remains stacked on #412; merge #412 before this dependent PR.

Signed-off-by: Narendran Raghavan <[email protected]>

# Conflicts:
#	CHANGELOG.md
Signed-off-by: Narendran Raghavan <[email protected]>

# Conflicts:
#	docs/tier1-validation.mdx

@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.

Integration review at b92015ca5e3aa85a2789a4ccfa6c9babef9dae9e: merged the updated #412 base 440a66e2adb04b64d66d98c92d2419724e17feff and resolved the Tier 1 documentation overlap by retaining both the answering-model/provenance explanation and main's HTML/Markdown/terminal verification-display paragraph. The production auto-merge preserves the current finding-verification policy and excludes coverage diagnostics before applying model labels.

Focused verification: 32 passed in 19.32s; make lint passed; pinned Fern 5.121.0 check passed with 0 errors and only the existing authenticated-redirect warning. The candidate is merge-clean against audited main 487910ef1dc44800ad0af61d8de7eed0d2800c69 and its actual current base. The merge is signed off and was pushed normally after fresh open-state/live-head guards. Fresh CI is pending. This PR still targets #412; merge its parent first. No PR was merged by this review.

rng1995 and others added 4 commits November 12, 2026 11:50
* fix(tier2): raise the intra-skill chunk ceiling to 1,024

A valid skill with 513 to 1,024 content chunks stopped context
deduplication as incomplete, and with 2,048-dimensional embeddings the
scalar budget allowed only 512 chunks. Raise CONTENT_DEDUP_MAX_CHUNKS to
1,024 and size the scalar-comparison budget for 1,024-dimensional vectors
at that ceiling (536,346,624). Effective chunk limits become 1,024 up to
1,024 dimensions, 836 at 1,536, 724 at 2,048, 591 at 3,072 and 512 at
4,096, each at or above the old limit. The cluster member cap follows the
chunk ceiling as before.

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

* docs(tier2): document the 1,024-chunk intra-skill ceiling

Update the limits table: 1,024 content chunks, a 536,346,624 scalar
comparison budget with its effective chunk limit per embedding width, and
1,024 cluster members.

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

* docs(changelog): note the 1,024-chunk intra-skill ceiling

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

* test(tier2): pin where a 2,048-dimensional skill at the ceiling stops

A skill with 1,024 chunks and 2,048-dimensional embeddings passes the
chunk ceiling, sends one 64-chunk embedding batch and then stops with
scalar_comparison_limit (effective limit 724). Before the ceiling rose it
stopped before any embedding request with chunk_count_limit. The existing
width test covers the low end of that band (725 chunks); this covers the
top, which the CHANGELOG now describes.

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

* docs(tier2): give the chunk limit of each default embedding model

The limits table listed the effective chunk limit per embedding width but
did not say which width the default models return. OpenAI's
text-embedding-3-small returns 1,536 dimensions (836 chunks) and NVIDIA
Build's nvidia/nemotron-3-embed-1b returns 2,048 (724 chunks), so a user
on the defaults could read 1,024 as their limit. The row now names both,
and the paragraph below it says that a default-width skill with 725 to
1,024 chunks stops after the first embedding batch.

A test resolves each provider's default model, looks up its width and
checks that the row gives that width's limit next to the model name.

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

* docs(changelog): lead with the default models' chunk limits

The entry opened with 1,024 chunks, which neither default embedding model
reaches. It now gives 724 for NVIDIA Build's 2,048-dimensional default and
836 for OpenAI's 1,536-dimensional default, and says that a skill above
its width's limit but within 1,024 chunks now stops after the first
embedding batch with scalar_comparison_limit instead of before any
embedding request with chunk_count_limit, with the same exit code.

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

* test(tier2): check the default-model docs entry without a new import

The docs check used a regular expression, and its module-level import of
re sat where the open plugin-evaluation PR adds its own imports, which
added a conflict region between the two. Plain string checks on the
comma-separated entry that names the model do the same job.

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

* docs(tier2): name the OpenAI-compatible default's chunk limit

The comparison-work row named the limits of the OpenAI and NVIDIA Build
default embedding models but not the OpenAI-compatible default,
nvidia/nvidia/nemotron-3-embed-1b. That is the same 2,048-dimensional
model, so its limit is also 724, and a gateway user on the default could
read 1,024 as their limit. The row and the paragraph below the table now
name it.

The docs check gains an openai-compatible case, which failed before this
change because the row did not name the model.

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

* docs(changelog): name the OpenAI-compatible default and embedding volume

The entry gave the new limits for the OpenAI and NVIDIA Build default
embedding models. It now also names the OpenAI-compatible default, the
same 2,048-dimensional model with the same 724-chunk limit, and says that
the most embedding input one skill can send doubles with the ceiling,
from 512 to 1,024 texts (724 with either 2,048-dimensional default).

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

---------

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

# Conflicts:
#	docs/tier2-deduplication.mdx
Signed-off-by: Narendran Raghavan <[email protected]>

# Conflicts:
#	CHANGELOG.md

@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.

Concurrent-merge integration review at 04e6a98b89378ac6a8f129e5d4a263eca6f0fe56: The actual CHANGELOG overlap preserves every independent entry and places this PR’s complete entry after its assigned existing bullet in the same Unreleased subsection. No production conflict required manual edits. Focused contracts: 32 passed in 55.49s. Lint passes; pinned Fern validation reports 0 errors and only the existing authenticated-redirect warning.

The signed-off fix was pushed normally after live open/head/base guards and clean merge checks against captured main b38b71be01f7fdf332e37efbfec49714f3939161 and actual base naren/port-tier2-intra-llm-limits at 14362c8297e14e7a8e3c0375a761110768423616. Fresh exact-head hosted CI is pending. No PR was merged by this review.

Base automatically changed from naren/port-tier2-intra-llm-limits to main November 12, 2026 20:55
Signed-off-by: Narendran Raghavan <[email protected]>

# Conflicts:
#	src/skillevaluator/deduplication/intra_skill/llm_analyzer.py
#	src/skillevaluator/inference/types.py
#	tests/deduplication/intra_skill/test_intra_llm_analyzer.py

@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.

Concurrent-merge integration review at 4fd7656cc9f461eb8b8f7a17ff890b3d07bd9396: The actual retargeting conflicts preserve bounded verdict parsing and answering-model provenance, including compatibility defaults and reporter sanitization. Every resolved conflict file matches the previously reviewed combined implementation; independent root review confirmed the resolution. Focused contracts: 1428 passed, 1 skipped in 204.57s (0:03:24). Lint passes; pinned Fern validation reports 0 errors and only the existing authenticated-redirect warning.

The signed-off fix was pushed normally after live open/head/base guards and clean merge checks against captured main f4d3f020a330eab2116e994f8d58ee5bac7af8fe and actual base main at f4d3f020a330eab2116e994f8d58ee5bac7af8fe. Fresh exact-head hosted CI is pending. No PR was merged by this review.

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. model_used is per-thread, so analyze_cluster records the model that actually answered each cluster, models_used lists only the models that did answer, and llm_analysis.model stays the configured model. A salvaged truncated reply now names its model through LLMClientTruncatedError.model_used, and a failed call still leaves model_used as None. On the security side, FindingVerifier.verify is a single process() call, so labeling every verified finding with verifier.model_used is correct. 1,407 tests pass and ruff check is clean. The only ruff format diffs are in security.py and test_security.py, and main has the same ones.

@chrisknvidia
chrisknvidia merged commit 517b839 into main Nov 13, 2026
27 checks passed
@chrisknvidia
chrisknvidia deleted the naren/port-llm-answering-model-verifier-tier2 branch November 13, 2026 06:06

@devin-ai-integration devin-ai-integration 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.

Devin Review found 1 potential issue.

Devin Review

Comment thread src/skillevaluator/inference/client.py Resolved

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reading this after it merged, so treat what follows as follow-ups.

I read the whole src diff and the tests and ran the new tests locally. They pass, and 26 of them fail against main's src, so they do test the change. I don't see anything that blocks the merge.

What I checked. The model name comes from the client's per-thread model_used: analyze_cluster reads it in the worker thread right after its own call, and the --llm-verify path reads it after the single verify call, so concurrent clusters cannot swap names (the barrier test covers that with the real client). For Anthropic it is the fallback block's model, or the reply's top-level model for Claude 5.5 or later on the native API. For OpenAI-style providers and Bedrock it is the configured model, so a provider that omits the model just reads as the configured one, which the docs say. If the client names nothing, no llm_* keys and no models_used are written. On the truncated path the error carries model_used and process() copies it only when the salvaged parse succeeds, so a dropped reply still leaves None.

Leaks: report values go through safe_llm_labels and safe_llm_model, so URLs, sk-/nvapi- values and anything with spaces read unresolved, and the new code reads no endpoint, key or base URL. The raw name stays only inside LLMVerdict and is never serialized.

Compatibility: the JSON change is additive (new metadata keys, a new optional models_used, LLMVerdict gets a trailing default), llm_analysis.model and the llm_refused advisory are unchanged, and the plugin analyzer's positional LLMVerdict still works. Grouping next to #454 is not disturbed: finding_id hashes category, check, message and suggestion, not metadata, the HTML grouping key uses the verdict decision tuple, and the three llm_verdict/llm_confidence/llm_reasoning keys are untouched. Downgrade logic in _verify_findings_with_llm is unchanged, so there is no new way for a finding to be downgraded or skipped.

Not blocking: the new fields are JSON-only (finding_verification() ignores them), so HTML, Markdown and the CLI still do not say which model gave a verdict. Nit: the description still says 'Stacked on #412' and carries old commit hashes, worth trimming before the squash.

Comment thread tests/validators/test_security.py Resolved

@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.

Post-merge review disposition: #485 proposes the verified empty-truncated-verdict provenance fix and the documentation-test nit; current main is still affected until that separate PR merges. The follow-up passed 1,640 broader cases (1 skip), 22 focused cases, and independent source/caller review. Answering-model labels intentionally remain JSON metadata. No write or reopen was made to the merged branch.

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.

2 participants