Skip to content

feat(harness): flag SKILL.md and files over harness delivery limits - #532

Merged
chrisknvidia merged 8 commits into
mainfrom
feat/christopherk/harness-07-delivery-limits
Nov 14, 2026
Merged

chrisknvidia merged 8 commits into
mainfrom
feat/christopherk/harness-07-delivery-limits

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds the delivery-limit rule family to the harness check: whether SKILL.md and its files reach the model whole once the skill is used. It also adds SKILL.md size tiers to Tier 1 schema. Stacked on the skills-folder PR.

harness rules:

  • Claude Code rejects a SKILL.md over 1 MB.
  • OpenCode:
    • It strips front matter and delivers the body, which needs paging past 51,200 bytes or 2,000 lines.
    • Reference files over those limits also need paging (advisory).
    • Lines over 2,000 characters are cut when the model reads them (advisory).
  • OpenClaw:
    • It skips a SKILL.md over 256,000 bytes.
    • It refuses whole reads over 64,000 weighted characters. A CJK character counts as 4 or more.
    • Between 16,000 and 64,000 characters, its read budget depends on the context window.
    • Reference files over 64,000 bytes need paging (advisory).
  • Hermes: skill_view output over 100,000 characters is not delivered.
  • Codex: a model-initiated shell read is cut at about 40,000 bytes, or about 10,000 for a custom provider without bundled model metadata.

Tier 1 schema: manifest_size reports a SKILL.md over 32 KiB (LOW), over 50 KiB (MEDIUM) and over 256,000 bytes (HIGH).

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test: harness, schema, golden, commands, skip and publication-evidence suites
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

Devin Review

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 3 potential issues.

Devin Review

Comment thread src/skillevaluator/harness/overlay.py Resolved
Comment thread src/skillevaluator/harness/overlay.py Resolved
Comment thread src/skillevaluator/harness/overlay.py Resolved
… references

The delivery-limit facts read every bundled file as text, which broke three ways:
an unreadable file, a symlink loop or a pipe in the skill folder aborted the
whole run (a pipe would block it), binary assets were decoded into long
"lines" and flagged as needing paging, and symlinked references were
dropped from the size and line counts even though OpenCode follows them.

Read each file through one helper that returns nothing for binary data
(a NUL byte in the first 8 KiB) and anything that cannot be read, and measure
symlinks that point outside the skill like regular files for the OpenCode
rules. Links into the skill are still counted once, under their real path,
and the OpenClaw multi-read count stays on files inside the skill.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…inked skills

facts_for put every skill from one scan into a single catalog, so a repo
with both .claude/skills and .codex/skills got false duplicate-name and
budget findings. Skills are now grouped by the folder they are installed
in, and each skill is measured against everything in that folder.

A skill directly under a workspace skills/ folder (OpenClaw) now counts
its siblings too; it used to be measured alone because skills/ is not a
recognized install root. Install-root rules are unchanged.

_find_skills used rglob, which does not descend into symlinked folders,
so skills installed as links (which Claude Code and Codex load) were left
out of the counts and the duplicate-name check. It now follows links and
stops at a link back to one of its own parent folders.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
CP-RELOAD and OC-RELOAD are "always" advisory rules, but evaluate_profile
skipped every always+advisory rule, so the notes never reached any report.
Drop the skip; the notes now show as advisory findings and the status
stays "loads".

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
The skills-folder paragraph edit had left </Accordion> at the end of the text line, which MDX can reject inside a paragraph.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…hristopherk/harness-07-delivery-limits

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Base automatically changed from feat/christopherk/harness-06-skills-folder to main November 13, 2026 23:52
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia
chrisknvidia merged commit 8cbe349 into main Nov 14, 2026
27 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/harness-07-delivery-limits branch November 14, 2026 00:06
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