Repository navigation
feat(harness): flag SKILL.md and files over harness delivery limits - #532
Merged
Merged
Conversation
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 13, 2026 23:12
… 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
deleted the
feat/christopherk/harness-07-delivery-limits
branch
November 14, 2026 00:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the delivery-limit rule family to the
harnesscheck: whetherSKILL.mdand its files reach the model whole once the skill is used. It also addsSKILL.mdsize tiers to Tier 1schema. Stacked on the skills-folder PR.harnessrules:SKILL.mdover 1 MB.SKILL.mdover 256,000 bytes.skill_viewoutput over 100,000 characters is not delivered.Tier 1
schema:manifest_sizereports aSKILL.mdover 32 KiB (LOW), over 50 KiB (MEDIUM) and over 256,000 bytes (HIGH).Verification
make lintmake test: harness, schema, golden, commands, skip and publication-evidence suitesmake buildRelease Impact
CHANGELOG.md