You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Extract error_envelope() helper: collapsed 29 duplicated parse-error/
service-error JSON blocks into a single private function
- Rename 23 handler functions: *_tool_result → handle_*, multi-tool
dispatchers → dispatch_reconciliation / dispatch_hsm
- Rename map_tool_error → error_payload (renders JSON, not error transform)
- Rename normalize_rows_with_provenance → rows_to_json_with_provenance
(rows are already normalized; function annotates with provenance)
- Rename tool_catalog/tool_list_entries → tool_names/tool_descriptors
(distinguishes name-only from name+schema returns)
- Remove pub from parse_ingest_pdf_request and parse_ingest_statement_rows_request
(no external callers)
- Route handle_ontology_export_snapshot through TurboLedgerService:
add OntologyExportSnapshotRequest/Response types and service method;
was the only handler calling OntologyStore::load directly
- Remove vestigial McpAdapter struct (sole method discarded its service
reference; zero call sites in crate)
All 86 tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,18 @@
1
1
# Changelog
2
2
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
4
+
- - -
5
+
## refactor/mcp-adapter-clarity - 2026-04-16
6
+
#### Refactor
7
+
- (**ledgerr-mcp**) extracted `error_envelope` private helper — ~29 duplicated parse-error/service-error JSON construction blocks collapsed to a single call site
- (**ledgerr-mcp**) renamed `map_tool_error` → `error_payload`; name now reflects JSON rendering, not error transformation
10
+
- (**ledgerr-mcp**) renamed `normalize_rows_with_provenance` → `rows_to_json_with_provenance`; rows are already normalised — the function converts them to JSON with provenance annotation
11
+
- (**ledgerr-mcp**) removed `pub` from `parse_ingest_pdf_request` and `parse_ingest_statement_rows_request`; both had no external callers
- (**ledgerr-mcp**) routed `handle_ontology_export_snapshot` through `TurboLedgerService` instead of calling `OntologyStore::load` directly; added `OntologyExportSnapshotRequest`/`OntologyExportSnapshotResponse` types, service method, and covering test
14
+
- (**ledgerr-mcp**) removed vestigial `McpAdapter` struct — only method discarded its service reference immediately; no call sites existed in the crate
0 commit comments