Skip to content

spec(skills): GoSkills group-structured retrieval — RFC #4219#4410

Merged
bug-ops merged 1 commit into
mainfrom
feat/issue-4219/rfc-skill-structure
May 18, 2026
Merged

spec(skills): GoSkills group-structured retrieval — RFC #4219#4410
bug-ops merged 1 commit into
mainfrom
feat/issue-4219/rfc-skill-structure

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 18, 2026

Summary

Resolves RFC #4219 by extending /specs/005-skills/spec.md with GoSkills group-structured skill retrieval.

After evaluating all 8 research proposals consolidated in #4219, GoSkills (#4091) was selected as the only approach that fills a genuine gap in the current flat registry without adding storage complexity or LLM inference loops.

Changes

Design

Post-selection presentation layer: after BM25+embedding hybrid matching produces top-N candidates, compute inter-skill cosine similarity. If similarity ≥ support_similarity_threshold (default 0.50), inject skills as a structured group (entry-point + support + requirements + failure-avoidance). Otherwise falls back to existing flat injection.

Key invariants:

  • Opt-in: skills.group_structured = false default
  • Threshold uses inter-skill cosine similarity, not RRF-fused scores
  • SkillOrchestra bandit selects individual skills; grouping is post-selection only
  • trust/sanitization/quarantine preserved per-skill within groups
  • A/B validation via zeph-experiments required before enabling default

Closes

Closes #4219, #4091, #4000, #4064, #4065, #4090, #4125, #4166, #4195

@github-actions github-actions Bot added size/M Medium PR (51-200 lines) documentation Improvements or additions to documentation labels May 18, 2026
@bug-ops bug-ops enabled auto-merge (squash) May 18, 2026 18:43
@bug-ops bug-ops force-pushed the feat/issue-4219/rfc-skill-structure branch from 5345a00 to 3c322de Compare May 18, 2026 18:43
@bug-ops bug-ops disabled auto-merge May 18, 2026 18:43
@bug-ops bug-ops enabled auto-merge (squash) May 18, 2026 18:44
Extends specs/005-skills/spec.md with group-structured skill retrieval
(RFC #4219). After hybrid BM25+embedding matching, compute inter-skill
cosine similarity on top-N candidates; if similarity >= threshold,
present to LLM as structured group (entry-point + support + requirements
+ failure-avoidance). Falls back to flat injection when skills are
unrelated.

Key decisions:
- Opt-in via skills.group_structured = false default
- Threshold on inter-skill cosine similarity, not RRF-fused scores
- SkillOrchestra bandit operates on individual skills; grouping is
  post-selection presentation only
- trust/sanitization/quarantine logic preserved per-skill within groups
- A/B validation via zeph-experiments required before enabling default

Appends RFC #4219 comparison matrix covering all 8 evaluated approaches
with rejection rationale.

Closes #4000, #4064, #4065, #4090, #4091, #4125, #4166, #4195, #4219
@bug-ops bug-ops force-pushed the feat/issue-4219/rfc-skill-structure branch from 3c322de to 6915acd Compare May 18, 2026 18:44
@bug-ops bug-ops merged commit 2483e81 into main May 18, 2026
20 checks passed
@bug-ops bug-ops deleted the feat/issue-4219/rfc-skill-structure branch May 18, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: skill structure beyond flat registry (hierarchy, graph, groups)

1 participant