feat(acp): wire ACP local facade handlers to live services #526

Merged
freemo merged 1 commit from feature/m6-acp-facade-wiring into master 2026-03-03 03:50:36 +00:00
Owner

Summary

  • Wire all AcpLocalFacade operation handlers to live application services via constructor-injected service dependencies
  • Add domain-to-ACP error code mapping (NOT_FOUND, VALIDATION_ERROR, INVALID_STATE, PLAN_ERROR, etc.) via map_domain_error()
  • context.get returns stub pending ACMS ContextAssemblyPipeline completion

Wired Operations

Operation Service
session.create / session.close SessionService
plan.create / execute / status / diff / apply PlanLifecycleService
registry.list_tools ToolRegistry
registry.list_resources ResourceRegistryService
event.subscribe AcpEventQueue
context.get Stub (ACMS pipeline pending)

Tests

  • Behave: 21 scenarios in features/acp_facade_wiring.feature
  • Robot: 9 integration tests in robot/acp_facade_wiring.robot
  • Coverage >=97% verified

Quality Gates

  • nox -s lint — pass
  • nox -s typecheck — pass (0 errors)
  • nox -s unit_tests — pass (pre-existing failures only)
  • nox -s integration_tests — pass (pre-existing failures only)
  • nox -s coverage_report — pass (>=97%)

Closes #501

## Summary - Wire all `AcpLocalFacade` operation handlers to live application services via constructor-injected service dependencies - Add domain-to-ACP error code mapping (`NOT_FOUND`, `VALIDATION_ERROR`, `INVALID_STATE`, `PLAN_ERROR`, etc.) via `map_domain_error()` - `context.get` returns stub pending ACMS `ContextAssemblyPipeline` completion ## Wired Operations | Operation | Service | |-----------|--------| | `session.create` / `session.close` | `SessionService` | | `plan.create` / `execute` / `status` / `diff` / `apply` | `PlanLifecycleService` | | `registry.list_tools` | `ToolRegistry` | | `registry.list_resources` | `ResourceRegistryService` | | `event.subscribe` | `AcpEventQueue` | | `context.get` | Stub (ACMS pipeline pending) | ## Tests - **Behave:** 21 scenarios in `features/acp_facade_wiring.feature` - **Robot:** 9 integration tests in `robot/acp_facade_wiring.robot` - Coverage >=97% verified ## Quality Gates - [x] `nox -s lint` — pass - [x] `nox -s typecheck` — pass (0 errors) - [x] `nox -s unit_tests` — pass (pre-existing failures only) - [x] `nox -s integration_tests` — pass (pre-existing failures only) - [x] `nox -s coverage_report` — pass (>=97%) Closes #501
freemo force-pushed feature/m6-acp-facade-wiring from e9b2f85116
Some checks failed
CI / lint (pull_request) Successful in 14s
CI / quality (pull_request) Successful in 18s
CI / benchmark-publish (pull_request) Has been skipped
CI / typecheck (pull_request) Successful in 33s
CI / security (pull_request) Successful in 34s
CI / build (pull_request) Successful in 16s
CI / unit_tests (pull_request) Successful in 1m50s
CI / docker (pull_request) Successful in 38s
CI / integration_tests (pull_request) Successful in 3m20s
CI / coverage (pull_request) Successful in 4m25s
CI / benchmark-regression (pull_request) Has been cancelled
to 4b9df961f0
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 14s
CI / quality (pull_request) Successful in 19s
CI / security (pull_request) Successful in 32s
CI / unit_tests (pull_request) Successful in 1m59s
CI / integration_tests (pull_request) Successful in 2m49s
CI / lint (push) Successful in 13s
CI / build (push) Successful in 14s
CI / quality (push) Successful in 18s
CI / security (push) Successful in 29s
CI / typecheck (push) Successful in 44s
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Successful in 1m59s
CI / docker (push) Successful in 41s
CI / integration_tests (push) Successful in 2m56s
CI / coverage (push) Successful in 3m54s
CI / benchmark-publish (push) Successful in 13m52s
CI / typecheck (pull_request) Successful in 31s
CI / coverage (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
CI / benchmark-regression (pull_request) Has been cancelled
2026-03-03 03:46:13 +00:00
Compare
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-03 03:46:30 +00:00
freemo merged commit 4b9df961f0 into master 2026-03-03 03:50:36 +00:00
freemo deleted branch feature/m6-acp-facade-wiring 2026-03-03 03:50:36 +00:00
freemo added this to the v3.5.0 milestone 2026-03-03 04:24:00 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core!526
No description provided.