Skip to content

refactor(intrinsics): decouple capability registry from catalog entry names (Epic #929 Phase 0) #1186

Closed

Description

@planetf1

Parent epic: #929 (point 3 — Naming Consistency)
Phase: 0 (follow-up to #1134)
Blocked by: #1157 (edits catalog.py / CatalogEntry)

Problem

KNOWN_CAPABILITIES (in mellea/backends/adapters/capabilities.py) is derived directly from adapter function catalog entry names:

KNOWN_CAPABILITIES = frozenset(e.name for e in _INTRINSICS_CATALOG_ENTRIES)

This couples Mellea's capability vocabulary to upstream adapter naming. When an upstream adapter is renamed, any Mellea code keying off that name breaks. It has already bitten us once: the requirement-check / requirement_check change forced several edits because the name was hardcoded as the de-facto capability identifier.

Identity.capability (added in #1134) names what an adapter does, but there is no stable place to declare that capability independently of the entry name, so the coupling persists at the catalog layer.

Direction

  • A catalogue entry should declare a capability that survives upstream name changes, defaulting to its name when unset.
  • KNOWN_CAPABILITIES should derive from that stable capability, not the raw name.
  • Call sites that hardcode adapter names as capabilities should resolve via the capability instead.

Out of scope

Sequencing

Depends on #1157 merging first (mid-flight on catalog.py; settles canonical names like requirement-check). Logically follows #1134's capability rename. Once #1157 and #1158 merge, this is the natural next Phase-0 item.

Activity

  1. added
    area/adapter-functions
    on Jun 5, 2026
  2. planetf1 commented on Jun 11, 2026

    @planetf1
    ContributorAuthor

    This issue uses vocabulary that has been superseded by the agreed Epic #929 glossary. Please use the following terms in any new work related to this issue:

    Old term Preferred term
    intrinsic / intrinsic function adapter function
    activated-LoRA / Activated LoRA aLoRA
    Project Granite Switch Granite Switch
    cache rewrite (re: aLoRA) cache hit / cache miss

    The canonical definitions are now in the project glossary and were established as part of #1192. Python symbol names (IntrinsicAdapter, fetch_intrinsic_metadata, etc.) keep their current names until Phase 1 (#1136) and Phase 4 (#1144).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/adapter-functionsrefactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions