Skip to content

feat(harness): flag invocation fields each harness ignores - #534

Merged
chrisknvidia merged 15 commits into
mainfrom
feat/christopherk/harness-09-invocation-fields
Nov 14, 2026
Merged

chrisknvidia merged 15 commits into
mainfrom
feat/christopherk/harness-09-invocation-fields

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds the invocation-field rule family to the harness check, plus unknown-field findings in Tier 1 schema. Stacked on the placeholders PR.

harness rules:

  • disable-model-invocation: Codex, Hermes and OpenCode ignore it, so the model can still use the skill on its own.
  • Codex's agents/openai.yaml implicit-invocation policy is Codex-only. Other harnesses still let the model use the skill, unless disable-model-invocation is also set.
  • allowed-tools:
    • Copilot CLI drops a skill that gives it as a map.
    • The other harnesses ignore it (advisory).
    • In Claude Code it only pre-approves tools and never restricts them.
  • Claude Code-only fields are ignored elsewhere (advisory).
  • Hermes hides project skills until the repo is trusted (advisory).

Tier 1 schema: unknown_field (LOW) reports frontmatter fields outside the agentskills.io spec.

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>
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 2 potential issues.

Devin Review

…ex's policy is set

CX-DMI-IGNORED fired whenever disable-model-invocation was set, even when
agents/openai.yaml already sets allow_implicit_invocation: false, which is the
control Codex actually honours. A skill that carries both was reported as
degraded in Codex although implicit invocation is off there.

The rule now also requires "not codex_implicit_disabled". Hermes and OpenCode
still flag it, since they ignore both controls.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…at does not exist

CC-ALLOWED-TOOLS told headless users to "see CC-ALLOWED-TOOLS-HEADLESS", but
the profile never defines that rule, and no --headless flag exists yet. The
profile has no probe evidence for how Claude Code treats allowed-tools in -p
runs, so the sentence is removed rather than backed by a new not_loaded rule.

Add a profile consistency test: every rule id named in a message or fix must
be defined by a profile.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
A bare $5 or $20 was counted as an argument placeholder, so neither
harness rule flagged it, while $1 /path/to/project (and cp $1/$2,
cd /tmp/$3) was counted as a price because any slash after the number
looked like a price separator.

One rule now: cents, per/each/USD, a billing unit ($5/month) or a spaced
slash before another amount ($4 / $20) is always a price. Otherwise an
index above 3 is an amount unless a path or a closing quote/brace follows,
and $0-$3 stay arguments.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
… 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>
…/christopherk/harness-08-placeholders

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
…ristopherk/harness-09-invocation-fields

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Base automatically changed from feat/christopherk/harness-08-placeholders to main November 14, 2026 00:20
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
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