Repository navigation
feat(skills): UtekeSkillIndex over the uteke 0.24 skill surfaces (#973 step 2) - #975
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
…, valid, approved_hash)
…osine floor applies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Step 2 of #973: a
UtekeSkillIndexadapter behind the existingSkillIndextrait, callinguteke skill search|list|show(shell-tools builds only).TOLE_SKILL_INDEX=utekestays the switch. Step 3 (registry fetch, #878) is not part of this PR.Why
uteke 0.24 hides indexed skills from
doc search, soUtekeDocIndexrecall returns nothing for skills indexed withuteke skill index. Step 1 is now VERIFIED against a real binary (below), and the adapter reads the real output shape.Verification against a real uteke 0.24.1 (step 1)
uteke v0.24.1 was cloned (tag
v0.24.1) and built from source, then run in an isolated HOME with two test skills:uteke skill index <dir> --json,skill search,skill list,skill show --jsonall work;uteke skill --helpexits 0.uteke doc search "ship the release" --jsonreturns[]for the indexed skills: the doc-adapter break is real (the CHANGELOG of 0.24.0 says skill files are hidden fromdoc list,doc search,recall).skill searchandskill listprint a bare array keyed byslug({slug, name?, description?, status, hash, valid, score, file, snippet});skill showhasapproved_hashandcurrent.hash. uteke'sstatusisdraft | approved | stale, uteke's own approval, not tole's.hybridmode scores by rank fusion (0.033 at the top),--mode semanticgives a cosine similarity (0.78 for an exact match). tole's floor (TOLE_SKILL_FLOOR, default 0.35) is a cosine floor, so the adapter searches with--mode semantic; with the default mode every hit would be dropped.TOLE_SKILL_INDEX=uteke tole skills search "review a pull request"printed0.784 review — review a pull request, with no fallback note.tole skills indexstill go through the doc adapter (they are ordinary documents and stay searchable there).Changes
crates/tole-core/src/skills/index.rs: newUtekeSkillIndex(+SkillMeta). Sameselect()semantics,Candidate,utekelabel. Identity is theslug; uteke's own status does not filter (the local gate feat(skills): load only owner-approved skill content hashes #591 is the authority), onlyvalid: falsehits are skipped. Query capped at 2000 chars (tole's 1000 cap still applies first), search limit clamped 1-50, list 1-200, 429/busyretried with backoff (3 retries, 250 ms doubling), one hit per skill.showis reduced to name + recorded hash (approved_hash, elsecurrent.hash); a body in the answer is dropped.upsert/retiredelegate toUtekeDocIndexunchanged.crates/tole-cli/src/skill/recall.rs: version gate.uteke skill --helpfailing (pre-0.24) degrades to the doc adapter with ONE startup note, never a crash; also used bytole skills search.Candidate{name,score}), unapproved skills are still named unavailable with no description, bodies load only from owner-approved local bytes (feat(skills): load only owner-approved skill content hashes #591 gate).Testing
utekeon PATH pins the surface and the real v0.24.1 output shape:doc search/doc getare a failing tripwire in the unit tests; the e2e assertsskill search ship the release --limitis called anddoc searchis not; a pre-0.24 fake asserts the doc fallback and exactly one note.valid: false, profile scope, floor, dup, flag-shaped names), limit and query bounds,--mode semantic, busy retry then surface (3 and 4 calls),showdrops bodies and readsapproved_hash, version gate, malformed output.cargo fmt --all --check; clippy-D warningsclean;cargo test -p tole-coreskill tests andcargo test -p tole-cli --test skill_index_e2e --test face_paritypass.Not covered:
tole skills index|retirestill write through the doc adapter (whether 0.24 wantsuteke skill indexthere is a separate question for step 3 / a follow-up).Refs #973, #590, #591.