Repository navigation
Studio: deterministically load explicitly mentioned skills before generation - #12538
Conversation
|
This adds the full SKILL.md content to the system message whenever a skill is mentioned, which changes what the model sees on those turns. Could you confirm how this interacts with existing system prompts and chat templates that expect a single fixed system message, and whether this context is ever repeated across follow-up turns? |
…d safetensors paths
…t withdraws tools
|
Review record for #12538, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#380. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
Problem and behavior
Explicit
@skill-namementions previously depended on the model choosing to callread_skill. Studio now securely reads the enabled skill's completeSKILL.mdbefore the first generation, including retries and follow-ups. This loads instructions, not scripts or skill creation.studio/SKILL_MENTIONS.md.Scope and provenance
Merged October 4 by danielhanchen, merge
9d74ab7a2661aad0e96577caff1a53e4a5585b38, source headd9484d07a5a995a8fe89bcb606d7856844567db4: 23 files, +1,081/−34 against619cd71ec226310a40a859c2c65f26ddfeb9cfaf. No workflows, dependencies or artifacts.Credit: wasimysaid (
ef8cb3edbb,1357179ead,a7cdd39129,6eeef4a3b5) and subsequent source-branch fixes; related #10247 and #12118. Clean publicationfe57748642preserved the original patch byte-for-byte. The merged head includes later discovery, approval-flush, tool-withdrawal, Markdown and effective-Code fixes and is not production-blob-identical to the earlier live-tested head.Verification and post-merge follow-up
fe57748642: 5,594 backend passed / 1 existing skip, 218 repo, 833 frontend; compile/typecheck/applicable lint passed. Informational Biome/ESLint failures were disclosed.a7cdd39129: native Gemma4 12B Q4_K_M original prompt and same-chat follow-up received the complete 1,171-character manifest before generation with zero model reads; Qwen and negative gates completed. Retained evidence is not a current-head live rerun.5f67fede1036703292801682e89d1596527ee708: 2 existing files, +146/−35, 24 table cases, two safetensors route cases and one existing denial test parameterization, no dependency changes. Final scoped checks passed (123 backend, compile/lint/publication hooks, five red/green controls); earlier recovery broad checks passed (5,607 backend / 1 existing skip, 218 repo, 833 frontend, typecheck). Actual Codex round 6 response reviewed exact fork head5f67fede10: “Didn't find any major issues.” No new inline findings; no actionable findings remain.Those post-merge fixes are fork-only and are not included in this merged PR. No lifecycle change or duplicate PR was made. Remote CI waiting is waived; no new GPU or live hosted-provider validation is claimed. The earlier quota-exhaustion attempt was not convergence.
Before / after on a local GGUF (Qwen3-1.7B Q4_K_M, Code on)
Same prompt
@secret-word what is the secret word?on two isolated Studio installs (merge base vs this PR). Before, Qwen3-1.7B never callsread_skill; after, Studio loads the complete SKILL.md before generation and the reply follows it.