Skip to content

docs(skills): record disable-model-invocation behaviour per harness - #176

Merged
jaybeeuu merged 1 commit into
mainfrom
chore/verify-disable-model-invocation
Oct 26, 2026
Merged

jaybeeuu merged 1 commit into
mainfrom
chore/verify-disable-model-invocation

Conversation

@jaybeeuu

Copy link
Copy Markdown
Owner

Context

Bead agnt-ctx-yf24. disable-model-invocation: true is the mechanism for keeping a rare or destructive skill out of automatic model routing, but the repo had never checked whether it survives our materialisers or is honoured outside pi. docs/skills/skill-anatomy.md also described it wrongly — as controlling how the body is interpreted, rather than whether the model is offered the skill at all.

What changed

  • docs/research/disable-model-invocation.md — new decision record: harness × (preserved / honoured) table with file+line citations for our code and quoted upstream sources, the explicit per-harness verdict, the evaluated fallbacks, and reproduction commands.
  • docs/skills/skill-anatomy.md — correct front-matter guidance for the field, pointing at the decision record.
  • docs/research/skill-design-research.md — correct two stale claims about the field's semantics.

Findings

Harness Preserved Honoured
pi 1.4.0 yes, byte-identical yes — hidden from the prompt; /skill:name works
Claude Code 2.1.294 yes, byte-identical yes — Claude cannot invoke it; /skill-name works
Copilot CLI n/a (skills served in place from plugin.json) auto-routing suppressed, but the model-facing skill tool then reports Skill not found, and -p has no slash path

Both materialisers copy SKILL.md as text and rewrite only {{TOOL:...}}/{{PATH:...}} tokens, so unknown front-matter keys pass through untouched. Claude Code's own claude plugin validate accepts the materialised skills. pi's loader was probed against the materialised tree: 32 skills loaded, 31 advertised, teach excluded.

Verdict: safe to rely on for pi and Claude Code. In Copilot CLI, treat it as "auto-routing off" rather than "invoke-only" — where non-interactive access is needed, use copilot skill disable <name> instead.

Out of scope

No edit to the migration skill; this records the decision, the follow-up applies it.

Verification

  • node bin/agent-cortex.mjs install {claude,pi,copilot} --output /var/tmp/dmi-check/<harness> then diff against the source — identical.
  • claude plugin validate /var/tmp/dmi-check/claude/skills — passed.
  • pi loader probe on the materialised tree — field parsed true, skill omitted from the prompt.
  • pnpm lint, pnpm test — green.

Copilot could not be probed locally: installed CLI is 1.0.55 and org policy refuses prompt runs, so the upstream issue (retested on 1.0.83) is the evidence, and the doc says so.

The field was documented as affecting how a skill body is interpreted. It
does not: it hides the skill from automatic model routing while leaving
explicit `/skill-name` invocation intact.

Verified by materialising claude, pi and copilot into throwaway output dirs
(the field survives byte-identically — both materialisers copy SKILL.md as
text and rewrite only {{TOOL:...}}/{{PATH:...}} tokens) and by loading the
pi copy with pi's own skill loader: 32 skills loaded, 31 advertised, `teach`
excluded.

Per-harness verdict: pi and Claude Code preserve and honour the field;
Copilot CLI suppresses auto-routing but then cannot resolve the skill through
its model-facing tool (github/copilot-cli#4438, open), so it is only reachable
through an interactive slash command. The decision record, the evaluated
fallbacks, and the reproduction commands live in
docs/research/disable-model-invocation.md.
@jaybeeuu
jaybeeuu merged commit 2ae24da into main Oct 26, 2026
6 checks passed
@jaybeeuu
jaybeeuu deleted the chore/verify-disable-model-invocation branch October 26, 2026 21:09
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