Skip to content

fix(tier2): parse skill frontmatter with bounded YAML - #422

Merged
rng1995 merged 19 commits into
mainfrom
naren/port-tier2-bounded-yaml
Nov 12, 2026
Merged

rng1995 merged 19 commits into
mainfrom
naren/port-tier2-bounded-yaml

Conversation

@rng1995

@rng1995 rng1995 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Tier 2 reads Markdown frontmatter in two places that still used plain yaml.safe_load: the similarity-check extractor and the context-deduplication collector. Both now use load_bounded_yaml from skillevaluator.utils.structured_data, which main already uses for plugin manifests and PII waivers.

  • Both parse the text between the --- lines only when its root node is a plain YAML mapping. They read the parser events up to that node and nothing more. A list, prose after a thematic break, or a !!set is not frontmatter: the collector keeps it in the analyzed text and similarity-check excludes the manifest as invalid_frontmatter_mapping, as on main, and neither checks it against the limits below. A non-mapping root followed by malformed YAML is now also invalid_frontmatter_mapping; main reported invalid_yaml there, because it parsed the whole block.
  • similarity-check (embedding/extractor.py):
    • Mapping frontmatter over a structure limit stops the scan with Manifest structured-data complexity limit exceeded: <manifest>, before any embedding request. The limits are 100 nesting levels, 20,000 nodes, 1,024 alias references, 1,024 items in one mapping or sequence (also after merges), 65,536 characters in one value, and integers up to 14,000 bits (about 4,200 digits).
    • A non-empty name (title for rules and workflows) or description that YAML does not load as a string, such as name: 2048, name: yes or description: [Draft], excludes the manifest with its own collection-coverage reason, non_string_name_or_description. Like any manifest main excludes, it makes the scan incomplete. The value is never passed through str().
    • A value over 16,384 characters, the registry's per-field catalog text limit (MAX_CATALOG_TEXT_LENGTH), stops the scan with Manifest frontmatter <field> exceeds the 16384-character limit: <manifest>, in both embedding modes. Description mode still also caps the combined name: description text at 16,384 characters, as on main.
    • In a collection scan, errors name the manifest by its path under the scan root. When one manifest is read on its own (a catalog query target, a Tier 3 decoy candidate, a single rule or workflow), they name it as <directory>/<file>, such as my-skill/SKILL.md.
    • A catalog query target that is skipped now gets Catalog comparison requires a skill directory with a root SKILL.md whose frontmatter is a valid YAML mapping with a non-empty string name and description. On main it got Catalog comparison requires a skill directory with a root SKILL.md, which did not say what was wrong when the file exists.
    • Invalid YAML and a missing or empty value are still excluded with main's reasons, invalid_yaml and missing_name_or_description. YAML that is malformed before its root node, such as a tab-indented first line, still counts as invalid_yaml.
  • Tier 3 decoys (tier3/decoys.py): tier3 select-decoys and group-mode decoy loading (skill_workspace.decoy_manifest) read the target and each selected skill through the same extractor, so the rules above apply to them too.
    • A target or selected skill whose name or description is not a string, such as name: yes, now fails with Decoy selection requires a skill with a root SKILL.md whose frontmatter is a valid YAML mapping with a non-empty string name and description: <path>. On main the value was converted to text (name: yes became True) and selection went on.
    • A missing SKILL.md or frontmatter, invalid YAML, a root that is not a mapping, and an empty value get the same message. Invalid YAML includes an unquoted description: Use when: debugging logs and a tab-indented line, where both values look like strings to the author. Main's message for these cases, Decoy selection requires a skill with SKILL.md and name/description, did not say what was wrong with a file that has both fields.
    • Frontmatter over a structure limit, or a value over 16,384 characters, fails with the extractor's error, which names <directory>/SKILL.md. select-decoys reports it through its normal Click error (exit 1, no traceback, no manifest written). Group-mode evaluation reports it before provider resolution, as for any other invalid decoy manifest.
  • Context deduplication (deduplication/utils/skill_collector.py): mapping frontmatter over a structure limit, in any collected .md or .mdc file, fails collection with a CRITICAL manifest_complexity_limit finding that names the file, before any provider call. Invalid YAML keeps the frontmatter in the analyzed text, as before.
  • Both keep the last value of a repeated key, as yaml.safe_load did and agent clients do (last_key_wins=True).
  • An invalid tagged value such as version: !!int "", or an impossible date such as last_updated: 2024-02-30, now counts as invalid YAML. On main !!int "" escaped both checks as an IndexError. The date stopped similarity-check with day is out of range for month, and the context-deduplication validator raised a ValueError.
  • A decimal integer longer than 4,300 digits, Python's default limit for converting text to an integer, also counts as invalid YAML, because int() rejects it before the 14,000-bit check runs. On main it raised ValueError: Exceeds the limit (4300 digits) in both checks. A shorter decimal integer over 14,000 bits, such as one of 4,250 digits, fails closed like a long hex, octal or binary integer.
  • Docs: docs/tier2-deduplication.mdx describes the limits in a new paragraph before "Valid mapping frontmatter is removed", in the inter-skill section, in two defaults-table rows and in both edge-case tables. The frontmatter-structure row also says that a decimal integer longer than 4,300 digits counts as invalid YAML. The inter-skill edge-case row for a catalog query target uses the new message's wording. Main's list of collection-coverage exclusion reasons now includes a value that is not a string. docs/agents-and-sandboxes.mdx has a new paragraph in "Select a reproducible decoy set" on how selection and group-mode evaluation read name and description: it lists the cases that give the new message and shows how to quote name: "yes" and a value with a colon. CHANGELOG entry under Unreleased > Fixed, including the decoy commands.

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

Why

A crafted SKILL.md in a scanned collection could exhaust memory and time with a few hundred bytes of frontmatter. Each level of the constructs below multiplies the cost by ten. Measured on main:

  • similarity-check: chained list aliases in description, then str(). A 477-byte SKILL.md produced an 82,222,220-character description in 16 s. The 16,384-character embedding-text check runs only after the string exists, and in --full-body mode only a catalog save checks the description.
  • Context deduplication: chained merge keys (<<: [*m0, *m0, ...]), which PyYAML flattens into ever longer pair lists. A 543-byte SKILL.md used 180 MB and 40 s.

With this change both stop in under 0.2 s.

Kept from public

  • Main's structured_data.py is kept as is. It already has the merge-expansion preflight, integer-size bound, last_key_wins mode and tagged-scalar handling this fix relies on. No new parser is added.
  • A value that is not a string excludes the manifest, as main excludes any other invalid entry: the scan is incomplete, but matches among the other manifests are still reported. Stopping the scan instead would hide them because of one name: 2048.
  • Main's collection coverage (fix(tier2): expose collection coverage and transactional rebuilds #436) is kept. Its failed-build test in tests/embedding/test_collection_coverage.py used a 17,000-character description to fail the build after discovery. This PR rejects that value during discovery, so the test now uses a 9,000-character name and description: each fits the per-field limit, and together they still fail main's description-mode limit after discovery.
  • This PR checks the root node before the limits, so text that main's docs already call non-mapping frontmatter stays outside the limits.
  • The length limit is 16,384 characters, main's per-field catalog text limit. Description mode keeps main's later check on the combined name: description text, whose error does not name the manifest. The Tier 1 limits (64-character name, 256-character title, 1,024-character description) would make similarity-check refuse a whole collection for one manifest that Tier 1 already reports, which is a behavior change beyond this fix.
  • Missing or empty name and description ("", [], {}, 0, false) are still excluded with main's missing_name_or_description.
  • similarity-check still sanitizes error messages. The new <directory>/<file> label holds only the directory's own name, not its host path.
  • The collector reports through main's existing SkillCollectionError path, like file_size_limit and unsafe_path. Its _limit suffix makes the terminal summary show scan failed, not a duplicate.
  • Other Tier 2 hardening in the same area is not part of this PR. Main already enforces the no-follow traversal, and the intra-skill LLM limits (fix(tier2): reject out-of-range or non-string dedup LLM verdict fields #412) and chunker performance (fix(tier2): chunk shell scripts in one pass instead of once per function header #423) are separate PRs. Their docs edits touch other lines of the same page (after the chunking paragraph and at the end of the defaults table), so they merge in either order.
  • fix(tier2): raise the intra-skill chunk ceiling to 1,024 #426, which raises the intra-skill chunk ceiling to 1,024 and is stacked on fix(tier2): reject out-of-range or non-string dedup LLM verdict fields #412, conflicts with this PR in docs/tier2-deduplication.mdx. This PR adds its two frontmatter rows to the defaults table just above the "Intra-skill content chunks" row, and fix(tier2): raise the intra-skill chunk ceiling to 1,024 #426 rewrites that row and the "Intra-skill comparison work" row below it. The other two files both PRs change, CHANGELOG.md and tests/deduplication/intra_skill/test_intra_skill_validator.py, merge cleanly. Whichever PR merges second needs a small docs fix: keep both frontmatter rows and the two rewritten rows.
  • No other overlap with open PRs except shared files:
    • feat(tier3): add selectable NeMo Gym execution backend #225 edits src/skillevaluator/tier3/decoys.py: it reformats the long if in select_decoys (line 212 on main). This PR changes only the _skill error at line 113. ruff format --check flags that if on main too; it is left as is so the two PRs do not conflict (CI runs ruff check, not the format check).
    • No open PR edits tests/tier3/test_decoys.py or tests/tier3/test_decoy_commands.py.
    • Most open PRs add a CHANGELOG entry. This PR adds one entry at the end of Unreleased > Fixed.
  • fix(tier2): retain trailing shell comments in deduplication #357, fix(tier3): report missing tools as environment problems, not skill defects #379 and feat(tier3): add experimental Hermes agent with native NVIDIA Build routing #385, which edited tests/deduplication/intra_skill/test_intra_skill_validator.py and docs/agents-and-sandboxes.mdx, have merged, and this branch now includes them. Its own test follows the unsafe_path test (line 184), and its paragraph is in the decoy section (line 791).

Tests

  • tests/embedding/test_extractor.py: new TestBoundedFrontmatter with 45 tests:
    • chained list aliases in name or description (2), a merge-key chain, 1,500-level nesting, a 3,600-digit hex integer and a 4,250-digit decimal integer fail closed and name <directory>/SKILL.md
    • a value that is not a string skips the manifest and builds no entry: an alias list, a mapping, 3.5, name: 2048, name: true (5)
    • name and description at 16,384 characters (the catalog text limit) are kept, and at 16,385 are rejected (2)
    • a single workflow, a single rule, and a skill read as . or nested/.. are named by their directory (4)
    • a repeated key keeps its last value; !!int "", !!bool nope, !!float x, 2024-02-30 and a 5,000-digit decimal integer count as invalid frontmatter (5); empty values still skip the manifest (5)
    • a list, prose, a sequence that chains merge keys, and a !!set between the --- lines skip the manifest unparsed (4)
    • in a collection scan, the error names the manifest's path under the root, for skills, rules (title) and workflows (3), and a manifest with a non-string field or a list root is excluded with its coverage reason while the others are kept (4)
    • in a collection scan, the coverage reason is invalid_yaml for !!int "", an impossible date and a tab before the root node, invalid_frontmatter_mapping for a list root with or without a later YAML error, and missing_name_or_description for an empty name (6)
  • tests/embedding/test_similarity_limits.py (7):
    • run_similarity_check on two valid skills plus one alias-chain skill fails with the manifest's error and sends no embedding request, in description and --full-body mode (2)
    • a third skill with name: yes or an impossible date is excluded with its coverage reason, the scan is incomplete, and the other two are still compared (2)
    • a 16,385-character description fails in both modes with an error that names odd/SKILL.md (2)
    • a 9,000-character name plus a 9,000-character description passes the per-field limit and then fails main's combined description-mode limit (1)
  • tests/deduplication/utils/test_skill_collector.py (17):
    • a merge-key chain, an alias chain, deep nesting, a 65,537-character value, a 1,100-item list, a 3,600-digit hex integer and a 4,250-digit decimal integer in references/guide.md raise manifest_complexity_limit for that file (7)
    • the tagged values, the impossible date and a 5,000-digit decimal integer keep the frontmatter in the analyzed text (5)
    • a list, prose, a sequence that chains merge keys, and a !!set between the --- lines stay in the analyzed text (4)
    • a repeated key is still stripped (1)
    • The fixtures compared as exact text are written as bytes, so they keep LF line endings on Windows.
  • tests/deduplication/intra_skill/test_intra_skill_validator.py: a merge-key chain in SKILL.md gives one CRITICAL manifest_complexity_limit finding and no embedding client.
  • tests/validators/test_similarity.py (3): a catalog query target with name: 2048, an unquoted description: Use when: debugging logs or name: '' is rejected with the new message and no query.
  • tests/tier3/test_decoys.py (12):
    • a target with name: yes, name: 2048 or description: [Draft] is rejected with the new decoy message before any embedding request (3)
    • so is a target with an unquoted description: Use when: debugging logs, a tab-indented line, name: '', a list root, or no SKILL.md (5)
    • a target whose description chains aliases fails with Manifest structured-data complexity limit exceeded: target/SKILL.md before any embedding request (1)
    • the frozen-manifest loader rejects a target or a selected skill rewritten to name: yes with the new message (2), and a selected skill rewritten with an alias chain with the limit error that names api-debugger/SKILL.md (1)
  • tests/tier3/test_decoy_commands.py (4): tier3 select-decoys with a target that has name: yes, an unquoted description: Use when: debugging logs, 150-level nesting or a 16,385-character description exits 1 through Click's error path, prints the error, writes no manifest and makes no embedding request.
  • The decimal-integer tests set Python's default 4,300-digit limit with sys.set_int_max_str_digits and restore it afterwards, so a host PYTHONINTMAXSTRDIGITS setting does not change them.
  • The bombs in the tests are small (four merge levels, 18 two-way alias levels), so a regression fails fast instead of exhausting CI memory.
  • Fail-before: with src/ from main and this PR's tests, 69 of the 89 new tests fail and 20 pass. All 16 decoy tests and the 3 catalog-target tests fail on main. With the earlier wording that named only a non-string value (...whose frontmatter has a string name and description), the 15 tests that check the target-error text fail and the 4 decoy limit-error tests pass. The 20 that pass on main pin behavior this PR keeps: the non-mapping blocks (8), the repeated-key tests (2), the empty-value tests (5), main's coverage reasons for a list root in a collection (2), a tab before the root node (1) and an empty name (1), and the combined description-mode limit (1).
  • Windows line endings: with a pytest plugin that makes Path.write_text write CRLF, as Windows text mode does, tests/deduplication, tests/embedding and tests/validators/test_similarity.py give 769 passed, 2 skipped, and tests/tier3/test_decoys.py plus tests/tier3/test_decoy_commands.py give 101 passed, 1 skipped.
  • On the branch: tests/deduplication, tests/embedding, tests/utils/test_structured_data.py, tests/validators/test_similarity.py, tests/test_tier2_command_failures.py, the decoy tests in tests/tier3 (test_decoy_commands.py, test_decoy_identity.py, test_decoy_workspace.py, test_decoys.py), tests/tier3/test_plugin_signals.py, tests/test_publication_evidence.py, tests/test_harbor_runtime_skill_isolation.py and tests/inference/test_llm_client.py: 1924 passed, 6 skipped.
  • CLI and reporting: tests/cli/test_tier_workflows.py, tests/test_cli.py, tests/test_commands.py, tests/golden/test_benchmark_card.py and tests/reporting/test_advisory_skip_verdict.py: 921 passed.
  • Docs, CHANGELOG and CI checks: tests/test_ci_workflows.py, tests/test_oss_packaging.py, tests/test_ci_change_classifier.py, tests/ci/test_image_build.py, tests/test_harbor_claude_refusal_fallback.py and tests/test_benchmark_rollout_docs.py: 184 passed. tests/test_tier3_public_runtime.py, which reads docs/agents-and-sandboxes.mdx: 339 passed.
  • ruff check is clean on the 12 changed Python files. ruff format --check is clean on 11 of them; in tier3/decoys.py it flags only the unchanged if in select_decoys, which main has too (see feat(tier3): add selectable NeMo Gym execution backend #225 above).
  • scripts/check_oss_boundary.py passed.
  • Merge check: git merge-tree --write-tree HEAD main against main at d717f22 reports no conflicts.

🤖 Generated with Claude Code

rng1995 and others added 9 commits November 6, 2026 23:07
similarity-check read SKILL.md, rule and workflow frontmatter with plain
yaml.safe_load and passed name and description through str(). A list
built from chained YAML aliases rendered to a string far larger than the
manifest: a 477-byte SKILL.md produced an 82-million-character
description, and each further alias level multiplies that by ten.

Parse frontmatter with load_bounded_yaml, keeping the last value of a
repeated key as agent clients do. A frontmatter over a structure limit
now fails the scan with an error that names the manifest, before any
embedding request. A name, title or description that is not a string,
or is longer than 16,384 characters (the description embedding-text and
catalog text limit), is rejected instead of converted. An invalid tagged
value such as !!int "" now counts as invalid frontmatter instead of
escaping as an IndexError. Invalid YAML and missing or empty values
still skip the manifest.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The context-deduplication collector parsed every Markdown file's
frontmatter with plain yaml.safe_load to decide whether to strip it.
PyYAML expands chained merge keys without limit: a 543-byte SKILL.md
took 180 MB, and each further level multiplies that by ten.

Parse frontmatter with load_bounded_yaml (last repeated key wins, as
before). Frontmatter over a structure limit now fails collection with a
CRITICAL manifest_complexity_limit finding that names the file, before
any provider call. Invalid YAML, including an invalid tagged value that
used to escape as an IndexError, keeps the frontmatter in the analyzed
text as before.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Describe the frontmatter structure limits, the manifest_complexity_limit
finding, and the similarity-check name and description rules in the
Tier 2 guide, and add the Unreleased CHANGELOG entry.

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

The collector ran the structure limits on any text between two '---'
lines before checking that it was a mapping. A reference file that opens
with a thematic break and a list of 1,100 items, or about 70,000
characters of prose, then failed context deduplication with a CRITICAL
manifest_complexity_limit finding, although such text is not frontmatter
and main keeps it in the analyzed text. Read the YAML parser events only
up to the root node, and parse the block only when that root is a plain
mapping. A list, prose, a sequence that chains merge keys, or a !!set
root now stays in the analyzed text unparsed, as on main.

The collector tests that compare exact text now write their fixtures as
bytes, so Windows text mode cannot turn LF into CRLF. New tests pin the
1,024-item and 14,000-bit integer limits for mapping frontmatter and an
impossible date as invalid YAML, and the limit suggestion now names
integer sizes.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
similarity-check stopped the whole scan when one manifest had a name or
description that YAML did not load as a string, such as 'name: 2048',
'name: yes' or 'description: 2024-01-01'. main's handling of an invalid
entry is to skip it, as for invalid YAML, so treat a value that is not a
string the same way: the manifest is skipped and the rest are compared.
It is still never converted with str(). A catalog query target skipped
this way now gets a message that names the frontmatter rule.

Text between the '---' lines that is not a plain mapping, such as a list
of 1,100 items after a thematic break, also failed the scan with a
complexity-limit error. It is now skipped without being parsed, as main
skipped it.

A manifest read on its own (a catalog query target, a Tier 3 decoy
candidate, or a single rule or workflow) is now named by its directory
and file name, such as my-skill/SKILL.md, instead of only SKILL.md.
Collection scans still name the path under the scan root.

The 16,384-character field limit is the registry's per-field catalog
text limit. Description mode also caps 'name: description' at 16,384
characters; a test now pins that combined check.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Say that Tier 2 parses frontmatter only when it is a YAML mapping and
leaves a list or prose between the '---' lines unchecked, list the
14,000-bit integer limit with the other structure limits, call 16,384
characters the per-field catalog text limit and note the combined
'name: description' cap in description mode, and say that a name or
description that is not a string skips the manifest. The new paragraph
and table rows sit apart from the existing chunking paragraph and the end
of the defaults table.

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

The frontmatter docs and CHANGELOG described every oversized integer as
failing closed with a structure-limit error. That holds for hex, octal
and binary integers and for decimal integers within Python's default
4,300-digit conversion limit. A longer decimal integer is rejected by
int() first, so it counts as invalid YAML: similarity-check skips the
manifest and context deduplication keeps the frontmatter in the
analyzed text.

Say so in the frontmatter-structure defaults row and the CHANGELOG
entry, and pin both outcomes in the extractor and collector tests
with Python's default digit limit set for the test.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
tier3 select-decoys and group-mode decoy loading read SKILL.md through
the same extractor as similarity-check, so a target or selected skill
whose name or description is not a string, such as `name: yes`, is now
rejected instead of converted to text. The old error said the skill
needed SKILL.md and a name and description, which it has. The error now
says the frontmatter needs a string name and description.

Document the shared frontmatter rules in the decoy section of
agents-and-sandboxes.mdx and add them to the CHANGELOG entry. Tests
cover selection, the frozen-manifest loader and the CLI, which fails
cleanly without writing a manifest.

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

The decoy-selection and catalog-target errors named only one cause, a
non-string name or description. The same error also covers a missing
SKILL.md or frontmatter, invalid YAML such as an unquoted
`description: Use when: debugging logs`, a tab-indented line, a root that
is not a mapping, and an empty value. Both values look like strings to
the author in the colon case, so the old wording did not explain the
failure.

Both errors now say the skill needs a root SKILL.md whose frontmatter is
a valid YAML mapping with a non-empty string name and description. The
decoy docs list the causes and show how to quote a value with a colon;
the inter-skill edge-case row and the CHANGELOG entry use the same text.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995 and others added 6 commits November 9, 2026 19:58
…xisting log paths

A frontmatter root that is not a mapping is now skipped by the existing
"not a non-empty mapping" path without being parsed, and a name or
description that is not a string by the existing "missing" path. The
behavior is unchanged: both still return no entry and never call str()
on the value. This drops two new debug lines that logged the manifest
path, which CodeQL's clear-text logging rule flagged as it does the
neighbouring lines on main.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge public main at d717f22. Two files conflicted:

- src/skillevaluator/embedding/extractor.py: main (#436) added collection
  coverage. It imports dataclasses.field, adds the exclusion constants and
  records an exclusion reason (budget.exclude) where a manifest is skipped.
  This branch replaced yaml.safe_load with load_bounded_yaml, added
  MAX_FRONTMATTER_FIELD_CHARS and skipped a non-string name or description.
  Kept both: main's imports, constants and exclusion calls, with the
  invalid_yaml exclusion moved onto the StructuredDataSyntaxError handler and
  the missing_name_or_description exclusion on the branch's string check.
  The unused yaml import is dropped, as the branch had done.
- CHANGELOG.md: both sides added an entry at the end of Unreleased > Fixed.
  Kept both, main's tier3 compare entry first and this branch's entry after
  it.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main now records why each selected manifest is excluded from a
similarity-check collection and marks the scan incomplete. Adapt the
bounded frontmatter reader to that shape:

- A name, title or description that is not a string, such as name: 2048,
  is excluded as non_string_name_or_description. It no longer shares
  missing_name_or_description with an empty value.
- YAML that is malformed before its root node, such as a tab-indented
  first line, is passed to the bounded loader and excluded as invalid_yaml,
  as on main. Only a root that parses as something other than a mapping is
  excluded as invalid_frontmatter_mapping without being built.
- The collection test for a non-string field now checks the exclusion
  reason, and a new test checks the reasons for tagged values, impossible
  dates, early YAML errors, list roots and empty values.
- The similarity-check test for a skipped manifest now expects main's
  incomplete result with the coverage error, and still checks that the two
  valid skills are compared.
- Main's failed-build coverage test used a 17,000-character description to
  fail after discovery. This branch rejects that value during discovery, so
  the test now uses a 9,000-character name and description: each fits the
  per-field limit and together they exceed the description-mode limit, so
  the build still fails after discovery with the attempted coverage kept.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
similarity-check now excludes a manifest whose name or description is not
a string with the reason non_string_name_or_description, and main makes
any excluded manifest mark the scan incomplete. Update the inter-skill
paragraph, main's exclusion-reason list, the defaults-table row, the
inter-skill edge-case row and the CHANGELOG entry, which still said such a
manifest is skipped.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The extractor checks for a missing or falsy name or description before it
checks the type, so `name: 0`, `name: false`, `name: no`, `name: []` and
`description: {}` still get main's `missing_name_or_description`. Only a
non-empty value that is not a string, such as `name: 2048` or `name: yes`,
gets `non_string_name_or_description`. Say so in the inter-skill section of
the Tier 2 guide and in the CHANGELOG entry.

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

The sentence listing collection-coverage exclusion reasons read "or one
that is not a string produces an exclusion reason", which parses as "a
string produces". Add the comma and rewrap the rest of the paragraph so
it no longer has a short line. The rendered page is unchanged apart
from the comma.

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 bounded YAML loader integration, extraction callers, and malformed/oversized input coverage. One privacy finding in the new diagnostic path:

@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 full bounded-YAML integration and fixed the host-path logging finding in e2633c6. The new extraction regressions fail on the original head (2 failed) and pass with locked dependencies (2 passed). make lint and make build pass. The broader affected suites were interrupted under host load without an observed failure; no full local-suite pass is claimed.

CodeQL has passed on the pushed head and auto-resolved alert #31. At the latest CI snapshot, Python 3.13, Package, DCO, Gitleaks and the other completed checks pass; Python 3.12/3.14 and Tier 2 Windows remain pending, with no failed check. Both addressed inline threads are resolved. No merge performed.

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

Follow-up documentation navigation review found newly introduced links that fail in the pinned Fern preview:

Comment thread docs/agents-and-sandboxes.mdx 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.

Final review at 5ddcd75252b2564ccb63e0b0eb2cff02c6decd0e: Reviewed the full bounded-YAML integration and fixed the private-host-path diagnostic and introduced safety-limits navigation link. The two extraction regressions fail on the original source and pass with locked dependencies; make lint and make build pass. CodeQL passed after the logging fix and auto-resolved alert #31. Broader local suites were interrupted under filesystem load without observed failures; no full local-suite pass is claimed.

Pinned Fern 5.121.0 check passes with 0 errors; its only warning skips the authenticated redirects check because FERN_TOKEN is unavailable. Independent preview evidence shows the published routes return HTTP 200 and the previous relative .mdx routes return HTTP 400. Every reported thread is replied to and resolved. Signed-off commits were pushed normally after live-head checks. Fresh CI for this final SHA is pending; root is watching it to completion. No merge performed.

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 bfb5aea4f6180597749a5e2276d9ed86f372b4c4: resolved the actual CHANGELOG conflict while merging main a0b65a91d512fdc2254d2559900b6c30404218b8, retaining both independent entries. No additional production edit was made beyond the reviewed integration. Focused verification: 2 passed in 13.20s; 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 a0b65a91d512fdc2254d2559900b6c30404218b8; 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.

@rng1995
rng1995 merged commit 610d8de into main Nov 12, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/port-tier2-bounded-yaml branch November 12, 2026 19:53
rng1995 added a commit that referenced this pull request Nov 12, 2026
Brings in main through b38b71b (#416, #417, #420, #422, #423, #428,
#429, #467). Merged without conflicts; CHANGELOG, docs, decoys.py and
eval_core/checks.py auto-merged with both sides' edits in separate hunks.

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.

2 participants