Repository navigation
feat(llm): record the answering model on --llm-verify verdicts and Tier 2 duplicate findings - #455
Conversation
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
* 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
left a comment
There was a problem hiding this comment.
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.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
rng1995
left a comment
There was a problem hiding this comment.
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.
Summary
Stacked on
naren/port-tier2-intra-llm-limits(#412); merge that first.Tier 2 context deduplication and
--llm-verifynow record which model gave each verdict. On the native Claude API that can be the server-side fallback model rather than the configured one.LLMVerdictgets a trailing optionalmodelfield (defaultNone). 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) takesmodel=and keeps it only when it is a string.analyze_clusterpasses the client'smodel_used, read right after its call.DUPLICATEfinding whose verdict names a model addsllm_providerandllm_model_usedto its metadata, the same labels rubric evaluation uses since feat(llm): record the model that wrote rubric scores and Tier 3 insights #308.llm_analysisobject addsmodels_used: the sorted, distinct models that gave a completed cluster's verdict. It is left out when no cluster named one.llm_analysis.modelstays the configured model.--llm-verify: each finding that gets a verdict addsllm_providerandllm_model_used, from the verifier'sproviderandmodel_used. No label is written when the client names no model.LLMClientTruncatedErrorgets a trailing optionalmodel_used. The client sets it to the model that wrote the partial reply, andprocess()setsmodel_usedto it when it keeps that reply's complete entries.FindingVerifierkeeps them, so a verdict salvaged from a fallback model's cut-off reply names that model. A truncated reply that is not kept still leavesmodel_usedatNone, as does a failedcompletions()orchat()call.safe_llm_labelsandsafe_llm_model, so a URL, a key-like value or any other non-identifier readsunresolved. The verdict itself stores the model as the client reported it.docs/tier1-validation.mdxnames 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 thellm_refusedparagraph indocs/tier2-deduplication.mdxdescribesmodels_usedand the finding labels. CHANGELOG entry under Unreleased > Added.Why
claude-opus-5-5on the native Claude API, a refused request is answered byclaude-opus-4-8in the same call.LLMClient.model_usednames 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.--llm-verifydropped it. Onmain, a blocking HIGH duplicate answered byclaude-opus-4-8has metadatareasoning,confidenceandsource_filesonly, andllm_analysis.modelsaysclaude-opus-5-5.claude-opus-4-8appears nowhere in the report.--llm-verifyverdict can downgrade a finding to INFO. Onmainthat finding names no model at all.highreasoning 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 setmodel_usedonly after a successful call.--llm-verifynames the provider as well as the model, as Tier 2 and rubric evaluation do. With anopenai-compatiblegateway, a model id alone does not say which provider served it.model_usedis kept per thread. Tier 2 reviews up to 5 clusters at once on one client, soanalyze_clusterreads it in the worker thread, right after that cluster's call. Read later from the main thread, it would beNone.Kept from public
llm_analysis.modelandllm_analysis.providerkeep their meaning, the configured provider and model. The JSON reporter passesllm_analysisthrough unchanged, so existing readers see the same values.llm_refusedadvisory is unchanged. It keepsllm_providerandllm_model(the configured model), because no model answered. The failure path and its diagnostics are unchanged. A cluster whose reply fails verdict validation gives no verdict, so its model is not inmodels_used, and the blocking error for failed clusters names the configured model. The docs say so.safe_llm_labelsandsafe_llm_modelfrominference/diagnostics.py.security.pyimportssafe_llm_labelsinside_verify_findings_with_llm, next to the lazyFindingVerifierimport, so importingsecurity.pystill loads noskillevaluator.inferencemodule, as onmain.LLMClientTruncatedError(message, content)keeps working:model_usedis a new trailing keyword with aNonedefault. No retry, refusal or fallback behavior changes.mainhas neither), plugin dedup code and doctor changes.naren/port-tier2-intra-chunk-ceiling-1024) is also stacked on fix(tier2): reject out-of-range or non-string dedup LLM verdict fields #412 and edits the intra-skill dedup code. Its hunks are a comment near line 58 ofintra_skill_validator.py, tests from line 67 to about 710 oftest_intra_skill_validator.py, the limits table near line 380 ofdocs/tier2-deduplication.mdx, and a CHANGELOG entry under Fixed. This PR's hunks are the import at line 40 and lines 425-516 of the validator, the test imports at the top and a new class at the end of the test file, the paragraph near line 228 of the docs, and a CHANGELOG entry under Added. The hunks are disjoint, andgit merge-treewith fix(tier2): raise the intra-skill chunk ceiling to 1,024 #426 is clean._verify_findings_with_llmto skip exempt checks. This PR's three hunks in that function (the lazy import, the label block after the no-verdicts return, and one line in the loop) sit between that PR's hunks there. Its tests go mid-file, aftertest_llm_verification_without_verdicts_reports_the_cause; fix(tier1): gate unmodeled hooks and explain AE1 reference gaps #459 appends at the end oftest_security.py.git merge-treeis clean, and the merged function labels the findings it verifies.tests/inference/test_llm_client.py. fix(tier1): retry an invalid rubric judge reply once and name the problem #415 adds an import near line 13 and a test near line 1075. feat(tier3): add fixed-source skill interaction evaluation #392 addsimport httpxnear line 14 and changes a test near line 200. This PR adds a helper near line 1437 and three test functions at the end of the file, so the hunks are disjoint. No open PR editsinference/client.py. With fix(tier1): retry an invalid rubric judge reply once and name the problem #415 it conflicts only inCHANGELOG.md, where fix(tier1): retry an invalid rubric judge reply once and name the problem #415 also conflicts withmainat d717f22. With feat(tier3): add fixed-source skill interaction evaluation #392 it conflicts inCHANGELOG.md,docs/cli-reference.mdx,docs/tier3-live-evaluation.mdxandtests/golden/cli_surface.json, the same files where feat(tier3): add fixed-source skill interaction evaluation #392 conflicts withmainat d717f22.security.pyafter theprovider_configimport. This PR adds no module-level import there. fix(tier1): scope ownership email policy and retain completeness diagnostics #333's other hunks are elsewhere.docs/tier1-validation.mdxthis PR changes one line near line 100. fix(tier1): scope ownership email policy and retain completeness diagnostics #333, feat(quality): configure Reliability error handling in the quality config #336, fix(tier1): report manifest checks as N/A when validate finds no supported artifact #410, fix(tier1): retry an invalid rubric judge reply once and name the problem #415, fix(tier1): report dependency advisories as structured findings #421 and fix(reporting): name the skill in single-skill JSON reports and record the evaluator version #424 edit other sections.git merge-treeis clean in that file with fix(tier1): report manifest checks as N/A when validate finds no supported artifact #410, fix(tier1): retry an invalid rubric judge reply once and name the problem #415, fix(tier1): report dependency advisories as structured findings #421 and fix(reporting): name the skill in single-skill JSON reports and record the evaluator version #424.docs/tier2-deduplication.mdx, fix(tier2): parse skill frontmatter with bounded YAML #422 and fix(tier2): chunk shell scripts in one pass instead of once per function header #423 edit other parts. fix(tier2): expose collection coverage and transactional rebuilds #436 has merged intomain; its collection-similarity changes (from line 287 here) merged into this branch without conflicts.git merge-treeis clean in that file with fix(tier2): parse skill frontmatter with bounded YAML #422 and fix(tier2): chunk shell scripts in one pass instead of once per function header #423. fix(tier2): parse skill frontmatter with bounded YAML #422 also adds a test toTestIntraSkillValidatorValidateintests/deduplication/intra_skill/test_intra_skill_validator.py, clear of this PR's imports at the top and the class it adds at the end of that file.Tests
tests/deduplication/intra_skill/test_intra_llm_analyzer.py, 7 new tests:model_usedofclaude-opus-4-8givesverdict.model == "claude-opus-4-8"(1)None, a number or a list givesmodel is None(3)model_usedgivesNone(1)LLMVerdicthasmodel is None(1)tests/deduplication/intra_skill/test_intra_skill_validator.py, 8 new tests inTestAnsweringModelProvenance:DUPLICATEverdict fromclaude-opus-4-8, withclaude-opus-5-5configured, gives a HIGH finding withllm_provideranthropicandllm_model_usedclaude-opus-4-8.llm_analysis.models_usedis["claude-opus-4-8"]andllm_analysis.modelstaysclaude-opus-5-5, in the metadata and the JSON report (1)sk-testor a name with spaces readsunresolvedand does not appear in the JSON report (3)models_used(1)llm_refusedadvisory beside a fallback-answered duplicate keeps exactlysource_files,llm_providerandllm_model(configured) (1)models_used, and the error still names the configured model (1)LLMClientand the Anthropic SDK on anhttpx.MockTransport: two clusters run in worker threads, one answered byclaude-opus-4-8through afallbackblock and one byclaude-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:anthropic,model_usedclaude-opus-4-8), the downgraded and the confirmed finding both carryllm_providerandllm_model_used, and a finding without a verdict carries neither (1)sk-testreadsunresolved, a URL provider readsunresolved, and nomodel_usedwrites no label (4)FindingVerifieron anhttpx.MockTransport, withclaude-opus-5-5orgpt-5.4-miniconfigured: an Anthropicfallbackblock givesclaude-opus-4-8; an Anthropic reply without one gives the model the reply names,claude-opus-5-5orclaude-opus-5-5-20261101; and an OpenAI reply naming another model still gives the configuredgpt-5.4-mini; each with its provider (4)FindingVerifier: afallbackblock,stop_reasonmax_tokens, one complete verdict line and a cut-off second line. The first finding is downgraded to INFO withllm_provideranthropicandllm_model_usedclaude-opus-4-8; the second stays HIGH with nollm_keys, and the scan is incomplete (1)skillevaluator.validators.securityloads noskillevaluator.inferencemodule (1)--llm-verifyparagraph ofdocs/tier1-validation.mdxcontains 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 inTestModelProvenance:LLMClientTruncatedErrorwhosemodel_usedis the configured OpenAI model, or the Anthropic fallback model named by afallbackblock; the client's ownmodel_usedstaysNone(2)FindingVerifier.process()keeps the complete verdict of a truncated fallback reply and names the fallback model asmodel_used(1)model_usedatNone(2)src/fromnaren/port-tier2-intra-llm-limitsat 7402ade (its fix at 9265c88 merged withmainat d717f22), 26 of the 32 new tests fail.LLMVerdicthas nomodel: the 7 analyzer tests and the 6 validator tests whose stub verdicts set one.analyze_clusteror verifier code: the end-to-end Tier 2 test (KeyError: 'llm_model_used') and 9--llm-verifytests.LLMClientTruncatedErrorhas nomodel_used(2), and a salvaged reply leavesmodel_usedatNone(1).--llm-verifyno-model cases and the two not-kept truncation cases, which pin that nothing is added; the import test, which pinsmain's import graph; and the docs test, which reads the docs, notsrc/. The docs test fails on this branch at e190514, before the docs fix.tests/deduplication/intra_skill: 189 passed (test_intra_llm_analyzer.py73,test_intra_skill_validator.py99).tests/validators/test_security.py: 1020 passed, 1 skipped.tests/inference: 254 passed (test_llm_client.py207).tests/deduplication,tests/inference,tests/embedding,tests/validators,tests/evaluation,tests/test_ci_workflows.pyand 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.pyandtests/tier3/test_judge_parse_robustness.py,test_judge_policies.pyandtest_judge_failure_artifacts.py: 2704 passed.ruff check .is clean.ruff format --checkis clean on 7 of the 9 changed Python files.security.pyandtest_security.pyalready fail it onmainat 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.pypassed.naren/port-tier2-intra-llm-limits, which now containsmainat d717f22. The only conflict wasCHANGELOG.md, Unreleased > Added, wheremainalso added an entry at the end. Both sides' entries are kept, with this one last.git merge-tree --write-tree HEAD d717f22cfis clean. This PR's diff against its base shows only its own changes, 12 files.🤖 Generated with Claude Code