Skip to content

fix(tier2): raise the intra-skill chunk ceiling to 1,024 - #426

Merged
rng1995 merged 11 commits into
naren/port-tier2-intra-llm-limitsfrom
naren/port-tier2-intra-chunk-ceiling-1024
Nov 12, 2026
Merged

rng1995 merged 11 commits into
naren/port-tier2-intra-llm-limitsfrom
naren/port-tier2-intra-chunk-ceiling-1024

Conversation

@rng1995

@rng1995 rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Context deduplication now accepts more content chunks per skill. With NVIDIA Build's default embedding model (nvidia/nemotron-3-embed-1b, 2,048 dimensions) and the OpenAI-compatible default (nvidia/nvidia/nemotron-3-embed-1b, the same model) the limit is 724 chunks, and with OpenAI's default text-embedding-3-small (1,536 dimensions) it is 836. All three were 512. Embeddings of up to 1,024 dimensions reach the new 1,024-chunk ceiling.

  • CONTENT_DEDUP_MAX_CHUNKS goes from 512 to 1,024.

  • CONTENT_DEDUP_SCALAR_BUDGET_DIMENSION goes from 2,048 to 1,024. The scalar-comparison budget becomes 1,024 × 1,023 / 2 × 1,024 = 536,346,624 (was 267,911,168).

  • The effective chunk limit for each embedding width rises, and no width loses capacity:

    Embedding width main This PR
    up to 1,024 512 1,024
    1,536 (OpenAI default) 512 836
    2,048 (NVIDIA Build and OpenAI-compatible defaults) 512 724
    3,072 418 591
    4,096 362 512
  • The cluster member cap is defined as the chunk ceiling, so it follows to 1,024. The 64,000-character request limit and the 1,000,000-character total still decide which large clusters reach the chat LLM. The comment on _MAX_REPORTED_LOCATIONS now says 1,024-member cluster.

  • Docs: three rows of the limits table in docs/tier2-deduplication.mdx (content chunks, comparison work, cluster members). The comparison-work row names the limit of each provider's default embedding model (OpenAI, NVIDIA Build and OpenAI-compatible), and the paragraph below the table says that a skill with 725 to 1,024 chunks and either 2,048-dimensional default stops after the first embedding batch. CHANGELOG entry under Unreleased > Fixed.

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

Why

On main, a valid skill with more than 512 content chunks stops context deduplication as incomplete (chunk_count_limit) before any embedding request. With 2,048-dimensional embeddings, which the NVIDIA Build and OpenAI-compatible default models return, the comparison budget would not allow more than 512 chunks either. validate gates on Tier 2 by default, so the run exits 1. The 3,000-character embedding input cap splits long sections into several chunks, which makes high chunk counts more likely.

After this PR, a skill with up to 724 chunks is scanned with the NVIDIA Build or OpenAI-compatible default, up to 836 with the OpenAI default, and up to 1,024 with embeddings of up to 1,024 dimensions. Larger skills still stop as incomplete, and the error names the limit for their width.

With either 2,048-dimensional default, a skill with 725 to 1,024 chunks changes where it stops. On main it stops before any embedding request with work_limit.check_name chunk_count_limit. With this PR it passes the 1,024-chunk check, sends one 64-text embedding request (which sets the width), and then stops with scalar_comparison_limit, naming effective_chunk_limit 724. It is still incomplete, with the same exit code, but JSON consumers keyed on check_name see the new value, and that one embedding request is spent. The width is known only after the first batch, so this follows from the existing design. The CHANGELOG entry and the docs say so.

The cost grows in two places. First, the most embedding input one skill can send doubles with the ceiling: from 512 texts in eight 64-text requests on main to 1,024 texts in sixteen, up to 3,072,000 characters at the 3,000-character input cap (1,536,000 on main). With either 2,048-dimensional default the most is 724 texts in 12 requests (up to 2,172,000 characters), and with the OpenAI default 836 texts in 14 requests. A skill with 513 to 724 chunks on either 2,048-dimensional default, which main refused before any request, is now embedded in full; a 700-chunk skill sends 11 requests instead of none. The chat-LLM review stays bounded by the unchanged limits of 50 clusters and 1,000,000 characters in total.

Second, clustering time and memory grow, because the most comparison work one skill can need doubles. build_clusters (its code is unchanged from main) with this PR's limits, one core of an Apple M5, Python 3.12, on a shared machine (load average about 22), two runs each with random vectors (no cluster) and with near-duplicates (one cluster of every chunk):

Chunks × width CPU time Peak allocation, one cluster
512 × 2,048 (largest on main) 2.4 to 2.6 s 49 MiB
1,024 × 1,024 4.8 to 5.4 s 97 MiB
724 × 2,048 4.7 to 5.2 s 79 MiB

The 1,024 × 1,024 and 724 × 2,048 rows cannot run on main, where build_clusters rejects more than 512 chunks before any comparison. The peak is from tracemalloc inside build_clusters. It counts the normalized vector copies and the pair-score dict, not the input vectors. The random 1,024 × 1,024 run peaked at 93 MiB.

No public issue tracks this.

Kept from public

  • Only constant values change. effective_chunk_limit, the per-batch embedding with its budget check after the first batch, _mark_work_limit_incomplete and the build_clusters guards are unchanged. A tripped limit is still an incomplete scan, not a CRITICAL finding, and the tests keep asserting that.
  • The budget constant keeps its name, CONTENT_DEDUP_SCALAR_BUDGET_DIMENSION. 1,024 is the width the budget is sized for, not the default model's width, so a "default embedding dimension" name would mislead.
  • CONTENT_DEDUP_MAX_CLUSTER_MEMBERS = CONTENT_DEDUP_MAX_CHUNKS stays where it is, in intra_skill_validator.py.
  • build_clusters keeps main's normalize-once clustering and its dict of pair scores. A packed array of doubles would use less memory at the new ceiling. At about 97 MiB at most, this PR leaves the data structure alone.
  • The private bundle path in deduplication/plugin/commands.py keeps its own aggregate limits (512 chunks across the bundle, 25,000,000 scalar comparisons split across its skills). They are checked before the per-skill validator runs, so that path behaves as before.
  • The chunker and the chat-LLM review limits are not changed here.
  • Overlap with open PRs:
  • The companion Tier 2 port for shell chunker performance (fix(tier2): chunk shell scripts in one pass instead of once per function header #423) merges cleanly in either order. The bounded frontmatter YAML port (fix(tier2): parse skill frontmatter with bounded YAML #422) adds two rows directly above the "Intra-skill content chunks" row this PR edits, so the two docs edits conflict in that one place. To resolve it, keep its two new rows, followed by this PR's content-chunks and comparison-work rows; the cluster-members row merges on its own. Its CHANGELOG and test hunks do not conflict with this PR's.

Tests

  • tests/deduplication/intra_skill/test_intra_skill_validator.py, 21 test cases (17 changed, two of them renamed for the new boundary, and 4 new):
    • the constants: 1,024 chunks, 523,776 pairs, a budget width of 1,024 and 536,346,624 scalar comparisons (1)
    • effective_chunk_limit at widths 1, 768 and 1,024 is 1,024; at 1,025 it is 1,023; at 1,536, 2,048, 3,072 and 4,096 it is 836, 724, 591 and 512 (8; was 7 widths)
    • new: for the OpenAI, NVIDIA Build and OpenAI-compatible providers, the default model resolved by resolve_embedding_provider has its width's limit (836 at 1,536; 724 at 2,048 for both Nemotron IDs) next to its name in the docs comparison-work row (3)
    • 1,024 chunks with 1,024-dimensional embeddings pass in sixteen 64-chunk embedding batches and reach clustering. This replaces the 512-chunk boundary test at 2,048 dimensions (1)
    • at 1,536, 2,048, 3,072 and 4,096 dimensions, a skill at the effective limit passes and reaches clustering. One more chunk is incomplete with scalar_comparison_limit, names the effective limit and requests only one embedding batch (4; was 3,072 and 4,096)
    • new: 1,024 chunks with 2,048-dimensional embeddings send one 64-chunk embedding batch and then stop as incomplete with scalar_comparison_limit (effective limit 724), not chunk_count_limit, before clustering (1)
    • 1,025 chunks are incomplete with chunk_count_limit before any embedding request (1; was 513)
    • the member cap equals the chunk ceiling, 1,024, and a 1,025-member cluster is incomplete with llm_cluster_member_limit before any chat-LLM call (2; was 512 and 513)
  • tests/deduplication/intra_skill/test_semantic_clustering.py, 4 new tests:
    • build_clusters accepts 1,024 chunks and returns one 1,024-member cluster (1-dimensional vectors keep the 523,776 comparisons cheap)
    • 1,025 chunks are rejected
    • one chunk past the width limit (725 at 2,048 dimensions, 513 at 4,096) raises the scalar-work error before any comparison (2)
  • Fail-before: with src/ from naren/port-tier2-intra-llm-limits (9265c88) and this PR's tests, 24 of the 25 changed or new tests fail: all 21 validator tests and 3 of the 4 clustering tests. The one that passes rejects 1,025 chunks in build_clusters, which main also rejected. The three docs checks also fail against this PR's first docs change, which named no default model, and the OpenAI-compatible check fails against the later docs that named only the OpenAI and NVIDIA Build defaults.
  • tests/deduplication/intra_skill: 185 passed (test_intra_skill_validator.py 98, test_semantic_clustering.py 21).
  • tests/deduplication, tests/inference, tests/embedding, tests/validators/test_similarity.py, tests/validators/test_hygiene.py, tests/test_ci_workflows.py and the docs and CHANGELOG readers (tests/ci/test_image_build.py, tests/test_harbor_claude_refusal_fallback.py, tests/test_oss_packaging.py, tests/test_ci_change_classifier.py, tests/tier3/test_private_loose_source.py, tests/test_accuracy_arithmetic.py, tests/test_tier3_public_runtime.py, tests/test_benchmark_rollout_docs.py): 1638 passed, 2 skipped.
  • tests/reporting/test_reporters.py, tests/test_publication_evidence.py, tests/test_tier2_command_failures.py and tests/test_cli.py: 351 passed.
  • ruff check and ruff format --check are clean on the changed Python files, and scripts/check_oss_boundary.py passed.
  • This branch has naren/port-tier2-intra-llm-limits at 7402aded merged in, which contains main at d717f22cf. No file conflicted, and the pass counts above are on that merge. Since the base branch started, main has changed CHANGELOG.md, constants.py (fix(reporting): explain each dimension, its evidence and baseline in reports #376 from line 632 on, feat(plugin): recognize native OpenClaw manifests in the private plugin helpers #391 from line 697 on), docs/tier2-deduplication.mdx (feat(ci): add three-tier onboarding and private report feedback #349 and docs: simplify repository CI onboarding #443 near the top, fix(tier2): expose collection coverage and transactional rebuilds #436 in "Compare skills across a collection") and test_intra_skill_validator.py (fix(tier2): retain trailing shell comments in deduplication #357) among the files this PR edits. None of them touch the intra-skill limits.

🤖 Generated with Claude Code

rng1995 and others added 9 commits November 9, 2026 18:57
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]>
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]>
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
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]>
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]>
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]>
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]>
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]>
@rng1995
rng1995 marked this pull request as ready for review November 9, 2026 19:50
…r2-intra-chunk-ceiling-1024

This brings in the base branch's merge of main (d717f22). No file
conflicted. Four files changed on both sides and merged automatically:

- CHANGELOG.md: main's new Unreleased entries are kept. This branch's
  chunk ceiling entry stays under Fixed, between the dedup verdict
  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 chunk
  ceiling and comparison-work rows in the limits table. The scale
  benchmark covers inter-skill similarity budgets, not the intra-skill
  chunk ceiling, so its numbers do not change.
- src/skillevaluator/constants.py: main's SIGNAL_EVIDENCE_SOURCES and
  OpenClaw manifest constants are kept next to this branch's
  CONTENT_DEDUP_MAX_CHUNKS and CONTENT_DEDUP_SCALAR_BUDGET_DIMENSION.
- tests/deduplication/intra_skill/test_intra_skill_validator.py:
  main's end-of-file shell comment test is kept next to this branch's
  chunk ceiling and budget tests.

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 chunk/pair/scalar arithmetic, embedding-width limits, first-batch refusal, cluster guards and dimensional boundary regressions. No actionable findings.

Verification at unchanged head d39e774086b66f650da4224084c891dc7ffd6a65: 22 existing CI checks succeeded and 4 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

@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 730f36249e43219359d31e414916367bd3e95337: resolved the actual CHANGELOG conflict while merging updated #412 base 440a66e2adb04b64d66d98c92d2419724e17feff, retaining both independent entries. No additional production edit was made beyond the reviewed integration. Focused verification: 18 passed in 7.08s; 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 explicitly audited main 487910ef1dc44800ad0af61d8de7eed0d2800c69; subsequent main checks are recorded where main advanced during external merges. The merge commit has DCO sign-off and was pushed normally after fresh open-PR and live-head checks. Fresh hosted CI is pending. No PR was merged by this review.

This PR still targets #412; merge its parent first.

@rng1995
rng1995 merged commit 1545ba9 into naren/port-tier2-intra-llm-limits Nov 12, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/port-tier2-intra-chunk-ceiling-1024 branch November 12, 2026 19:54
chrisknvidia pushed a commit to YMuskrat/SkillEvaluator that referenced this pull request Nov 13, 2026
…er 2 duplicate findings (NVIDIA#455)

* fix(tier2): reject out-of-range or non-string dedup LLM verdict fields

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]>

* docs(tier2): document the dedup verdict field checks

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]>

* docs(changelog): say which dedup verdict replies now leave a scan incomplete

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]>

* test(tier2): pin dedup verdict field checks for every verdict

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]>

* docs(tier2): say the verdict field rules apply when a field is present

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]>

* feat(tier2): record the answering model on dedup LLM verdicts

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]>

* feat(tier1): record the answering model on --llm-verify verdicts

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]>

* docs: describe the answering-model fields for Tier 2 and --llm-verify

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]>

* refactor(tier1): keep the LLM client out of security.py's import graph

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]>

* feat(tier1): name the provider beside the model on --llm-verify verdicts

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]>

* feat(llm): name the model behind verdicts kept from a truncated reply

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]>

* docs(tier2): say models_used lists the models that gave a cluster's verdict

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]>

* docs(tier1): state the --llm-verify model rule in the rubric section'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]>

* fix(tier2): raise the intra-skill chunk ceiling to 1,024 (NVIDIA#426)

* 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]>
Co-authored-by: Claude Opus 5.5 <[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