Skip to content

fix(skills): include resource context in exact-name reads - #170965

Merged
vincentkoc merged 2 commits into
mainfrom
fix/skill-instruction-delivery
Oct 13, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/skill-instruction-delivery

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: a skill read by its known name can mention relative reference files without telling the agent where the skill lives. This affects both skills_read and Code Mode's skills.read, especially when the skill was omitted from the prompt directory.

User Impact

Skill reads now include the admitted skill location and existing host-specific guidance alongside the complete instructions. Code Mode still returns a string. No configuration, migration, or permission changes are required.

Why This Change Was Made

Carry resource context from the eligible catalog through the read result and use one formatter for both model-facing paths. Preserve the original instruction bytes in details.content, existing whole-read limits, and read-time authority checks. Virtual locations remain virtual; backing filesystem paths are not substituted.

This addresses a concrete delivery gap. It does not change search ranking and is not a claim of improved benchmark scores.

Evidence

  • Added exact-name coverage for filesystem, workspace URI, Windows, and UNC locations, including exclusion of the private backing path.
  • Extended the Code Mode bridge test to read before discovery and preserve node-host guidance. Updated existing sandbox, whole-body, access-policy, and host-lifecycle assertions.
  • Before/after regression proof: all four exact-name location cases fail on the byte-identical pre-fix read owners, then pass with the repair restored.
  • Focused local suites: 104 passing tests across native reads/search, Code Mode, sandbox/host authority, workspace reads, and worker placement; one existing platform skip. The moved Code Mode test was rerun with its original suite: 36 passed.
  • Six dependency-free presentation checks, syntax checks for all 14 changed TypeScript files, targeted type-aware lint, formatting, and git diff --check passed.
  • Independent reviews of the implementation and test follow-up found no actionable P0-P2 findings.
  • The first CI run caught a worker-placement assertion expecting the old details shape. It now asserts the location explicitly; its full 20-test suite passes locally. Exact-head CI is required before merge.
  • A focused Testbox allocation queued and was stopped without running tests. Local proof instead used the native PR checkout and its successful frozen dependency install. No new benchmark score improvement is claimed.

@vincentkoc vincentkoc self-assigned this Oct 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 13, 2026 10:47
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: S labels Oct 13, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: M and removed size: S labels Oct 13, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) October 13, 2026 11:14
@vincentkoc
vincentkoc merged commit df397f9 into main Oct 13, 2026
131 of 132 checks passed
@vincentkoc
vincentkoc deleted the fix/skill-instruction-delivery branch October 13, 2026 11:17
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…70965)

* fix(skills): include resource context in exact-name reads

* test(skills): isolate read-context coverage and verify worker locations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant