Skip to content

docs(skill): stop implying load_skill is availability-gated - #3468

Merged
kojiwakayama merged 1 commit into
mainfrom
fix/skill-docs-load-skill-availability
Aug 8, 2026
Merged

docs(skill): stop implying load_skill is availability-gated#3468
kojiwakayama merged 1 commit into
mainfrom
fix/skill-docs-load-skill-availability

Conversation

@kojiwakayama

Copy link
Copy Markdown
Contributor

Two review findings on #3464 arrived after it had already merged, so they land here.

load_skill is not gated. isSkillInfrastructureToolAllowed returns true for load_skill unconditionally (src/skill/allowed-tools.ts:39-41); only load_skill_reference and execute_skill_script depend on hasActiveSkill plus a non-empty references/scripts list. docs/architecture/21-agent-tool-registration-current-state.md described the whole three-tool surface as gated by the loaded skill, which reads as "call load_skill and it may be refused" — the opposite of how a model is supposed to recover from the no skill is loaded. Call load_skill first. error that same PR introduced.

ActiveSkillContext JSDoc. Still said "runtime policy tracking" after the policy it tracked was removed. Fixed at the source in src/skill/types.ts rather than in the generated table, and docs/api-reference/veryfront/skill.md regenerated with deno task docs.

Docs-only; docs:api-reference:check and typecheck are clean locally.

Two follow-ups from review on #3464, which merged before they landed.

`isSkillInfrastructureToolAllowed` returns `true` for `load_skill`
unconditionally; only `load_skill_reference` and `execute_skill_script`
depend on what the active skill advertises. The architecture page described
the whole three-tool surface as gated, which reads as "call load_skill and
it may be refused" — the opposite of how a model recovers from the
no-skill-loaded error.

Also retitles `ActiveSkillContext`, whose JSDoc still said "runtime policy
tracking" after the policy it tracked was removed.
@kojiwakayama
kojiwakayama requested a review from kwakayama as a code owner August 8, 2026 10:00
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kojiwakayama, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 23 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cd863206-8893-4b82-8c2b-96106a619b19

📥 Commits

Reviewing files that changed from the base of the PR and between 8da2596 and 2bb1880.

📒 Files selected for processing (3)
  • docs/api-reference/veryfront/skill.md
  • docs/architecture/21-agent-tool-registration-current-state.md
  • src/skill/types.ts

Comment @coderabbitai help to get the list of available commands.

@kojiwakayama
kojiwakayama enabled auto-merge August 8, 2026 10:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2bb188033f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +193 to +194
Runtime skill tools are local platform tools. Local and project runtimes always
expose `load_skill`. They gate `load_skill_reference` and `execute_skill_script`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Qualify load_skill exposure for disabled skill selectors

When an agent uses the explicit skills: false or skills: [] selector, shouldExposeSkillTools is false and the factory removes every skill tool, including load_skill; agent-runtime-step.test.ts also verifies this case. The current-state document therefore should limit “always expose” to skill-enabled agents rather than implying that the recovery loader exists in every local and project runtime.

AGENTS.md reference: AGENTS.md:L13-L14

Useful? React with 👍 / 👎.

Comment thread src/skill/types.ts
}

/** Active skill context for runtime policy tracking */
/** Active skill context for runtime availability and delegation tracking */

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Describe ActiveSkillContext as identity-only

This exported interface contains only skillId and has no availability or delegation fields; the runtime tracks those separately as activeSkillToolAvailability and activeSkillDelegationOverrides. The regenerated public API now promises capabilities that consumers cannot obtain from this type, so describe it as active-skill identity context unless those fields are intended to become part of the interface.

AGENTS.md reference: AGENTS.md:L13-L14

Useful? React with 👍 / 👎.

@kojiwakayama
kojiwakayama added this pull request to the merge queue Aug 8, 2026
Merged via the queue into main with commit 4af1bb9 Aug 8, 2026
31 checks passed
@kojiwakayama
kojiwakayama deleted the fix/skill-docs-load-skill-availability branch August 8, 2026 10:17
@kojiwakayama kojiwakayama mentioned this pull request Aug 8, 2026
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