Commit da282a9
refactor(core): drop AdapterRegistry + BaseAdapter; keep EvaluatorProtocol
The adapter-registry plugin-discovery system in uipath-core was a
parallel keyed-by-agent-type dispatcher for a fact already known
statically: the runtime-factory registry has picked the framework by
the time anything needs an "adapter". The two registries existed only
to support an open-PR pattern (#125/#126) where the runtime layer
sniffed the framework off an opaque agent. With that approach
abandoned in favor of framework plugins wiring governance at their
native seam (callback handlers, hook lists), the registry, the
BaseAdapter abstraction, and their per-package entry-point group are
all dead weight.
Deletions
- src/uipath/core/adapters/base.py — BaseAdapter + GovernedAgentBase.
No internal consumers; the only external one (uipath-langchain
PR #899) is unmerged and is being reshaped to consume
EvaluatorProtocol directly via its factory.
- src/uipath/core/adapters/registry.py — AdapterRegistry,
get_adapter_registry, reset_adapter_registry, the
`uipath.governance.adapters` entry-point group, and the
side-effect discovery on first call.
- tests/adapters/test_base.py and tests/adapters/test_registry.py.
Kept
- src/uipath/core/adapters/evaluator.py — EvaluatorProtocol is the
one contract framework plugins still consume. Plugin factories
accept an evaluator at create_runtime() time and wire it into
their own callback seam.
- tests/adapters/test_evaluator.py — protocol-conformance unchanged.
Net diff: ~960 LOC removed. uipath-core 0.5.22 → 0.5.23. uv.lock files
regenerated in uipath-core, uipath-platform, and uipath (workspace
editable-path deps, so they pick up 0.5.23 immediately).
Verified: ruff clean, mypy clean (45 source files), 230 passed +
1 skipped in uipath-core's test suite. Monorepo grep for
AdapterRegistry / BaseAdapter / GovernedAgentBase / get_adapter_registry
/ reset_adapter_registry returns zero hits outside the deleted files
across .py/.toml/.md/.rst/.json.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ab8b772 commit da282a9
9 files changed
Lines changed: 12 additions & 974 deletions
File tree
- packages
- uipath-core
- src/uipath/core/adapters
- tests/adapters
- uipath-platform
- uipath
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 12 | + | |
| 13 | + | |
18 | 14 | | |
19 | 15 | | |
20 | | - | |
21 | 16 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 17 | | |
28 | 18 | | |
29 | | - | |
30 | | - | |
31 | 19 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 20 | | |
This file was deleted.
Lines changed: 0 additions & 176 deletions
This file was deleted.
0 commit comments