feat(interfaces): add server client stubs #507

Merged
freemo merged 1 commit from feature/m6-server-stubs into master 2026-03-02 14:54:21 +00:00
Owner

Summary

Add protocol stubs for remote server communication infrastructure with full quality gate compliance.

  • Protocols: ServerClient, RemoteExecutionClient, AuthClient -- all @runtime_checkable
  • Stubs: StubServerClient, StubRemoteExecutionClient, StubAuthClient -- raise NotImplementedError with argument validation
  • Config: ServerConnectionConfig Pydantic model + config keys (server.tls-verify, server.namespace)
  • CLI: agents server connect url and agents server status commands
  • Info: agents info now shows Server Mode (disabled/stubbed)
  • Tests: 35 BDD scenarios, 5 Robot smoke tests, ASV benchmark, docs

Quality Gates -- ALL PASSED (full nox suite)

  • lint: PASS
  • typecheck: PASS (Pyright strict -- 0 errors)
  • unit_tests: PASS (7545 scenarios)
  • integration_tests: PASS (1003/1003)
  • coverage_report: PASS (98%)
  • dead_code: PASS
  • security_scan: PASS
  • benchmark: PASS
  • build: PASS

Closes #201

## Summary Add protocol stubs for remote server communication infrastructure with full quality gate compliance. - Protocols: ServerClient, RemoteExecutionClient, AuthClient -- all @runtime_checkable - Stubs: StubServerClient, StubRemoteExecutionClient, StubAuthClient -- raise NotImplementedError with argument validation - Config: ServerConnectionConfig Pydantic model + config keys (server.tls-verify, server.namespace) - CLI: agents server connect url and agents server status commands - Info: agents info now shows Server Mode (disabled/stubbed) - Tests: 35 BDD scenarios, 5 Robot smoke tests, ASV benchmark, docs ### Quality Gates -- ALL PASSED (full nox suite) - lint: PASS - typecheck: PASS (Pyright strict -- 0 errors) - unit_tests: PASS (7545 scenarios) - integration_tests: PASS (1003/1003) - coverage_report: PASS (98%) - dead_code: PASS - security_scan: PASS - benchmark: PASS - build: PASS Closes #201
feat(interfaces): add server client stubs
All checks were successful
CI / lint (pull_request) Successful in 21s
CI / quality (pull_request) Successful in 35s
CI / security (pull_request) Successful in 47s
CI / benchmark-publish (pull_request) Has been skipped
CI / typecheck (pull_request) Successful in 1m17s
CI / build (pull_request) Successful in 19s
CI / unit_tests (pull_request) Successful in 2m43s
CI / integration_tests (pull_request) Successful in 3m26s
CI / docker (pull_request) Successful in 40s
CI / coverage (pull_request) Successful in 3m43s
CI / benchmark-regression (pull_request) Successful in 22m20s
5cb7dd42fb
Add protocol stubs for remote server communication infrastructure:
- ServerClient: Health check and version negotiation protocol
- RemoteExecutionClient: Remote plan execution and status protocol
- AuthClient: Authentication and token management protocol
- StubServerClient/StubRemoteExecutionClient/StubAuthClient: Stub
  implementations raising NotImplementedError for all methods
- ServerConnectionConfig: Validated config model (server_url, namespace,
  auth_token_ref, tls_verify)
- Config keys: core.server_url, core.server_namespace, core.server_tls_verify
- CLI: agents connect <url> stub command with explicit warning
- CLI: agents info shows Server Mode (disabled/stubbed)

ISSUES CLOSED: #201
freemo added this to the v3.5.0 milestone 2026-03-02 07:59:25 +00:00
freemo force-pushed feature/m6-server-stubs from 5cb7dd42fb
All checks were successful
CI / lint (pull_request) Successful in 21s
CI / quality (pull_request) Successful in 35s
CI / security (pull_request) Successful in 47s
CI / benchmark-publish (pull_request) Has been skipped
CI / typecheck (pull_request) Successful in 1m17s
CI / build (pull_request) Successful in 19s
CI / unit_tests (pull_request) Successful in 2m43s
CI / integration_tests (pull_request) Successful in 3m26s
CI / docker (pull_request) Successful in 40s
CI / coverage (pull_request) Successful in 3m43s
CI / benchmark-regression (pull_request) Successful in 22m20s
to 714097e8e1
Some checks failed
CI / lint (pull_request) Successful in 14s
CI / benchmark-publish (pull_request) Has been skipped
CI / quality (pull_request) Successful in 18s
CI / typecheck (pull_request) Successful in 31s
CI / security (pull_request) Successful in 33s
CI / build (pull_request) Successful in 17s
CI / unit_tests (pull_request) Successful in 2m3s
CI / docker (pull_request) Successful in 41s
CI / integration_tests (pull_request) Successful in 3m10s
CI / coverage (pull_request) Has been cancelled
CI / benchmark-regression (pull_request) Has been cancelled
2026-03-02 14:43:14 +00:00
Compare
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-02 14:43:27 +00:00
freemo force-pushed feature/m6-server-stubs from 714097e8e1
Some checks failed
CI / lint (pull_request) Successful in 14s
CI / benchmark-publish (pull_request) Has been skipped
CI / quality (pull_request) Successful in 18s
CI / typecheck (pull_request) Successful in 31s
CI / security (pull_request) Successful in 33s
CI / build (pull_request) Successful in 17s
CI / unit_tests (pull_request) Successful in 2m3s
CI / docker (pull_request) Successful in 41s
CI / integration_tests (pull_request) Successful in 3m10s
CI / coverage (pull_request) Has been cancelled
CI / benchmark-regression (pull_request) Has been cancelled
to c781848cb6
Some checks failed
CI / lint (pull_request) Successful in 18s
CI / benchmark-publish (pull_request) Has been skipped
CI / quality (pull_request) Successful in 20s
CI / typecheck (pull_request) Successful in 30s
CI / build (pull_request) Successful in 15s
CI / security (pull_request) Successful in 29s
CI / unit_tests (pull_request) Successful in 1m59s
CI / integration_tests (pull_request) Successful in 3m35s
CI / docker (pull_request) Successful in 39s
CI / coverage (pull_request) Successful in 3m39s
CI / lint (push) Successful in 24s
CI / security (push) Successful in 29s
CI / typecheck (push) Successful in 38s
CI / quality (push) Successful in 32s
CI / build (push) Successful in 15s
CI / benchmark-regression (push) Has been skipped
CI / unit_tests (push) Successful in 2m5s
CI / integration_tests (push) Successful in 4m42s
CI / docker (push) Successful in 42s
CI / coverage (push) Successful in 6m53s
CI / benchmark-publish (push) Has been cancelled
CI / benchmark-regression (pull_request) Successful in 24m12s
2026-03-02 14:47:50 +00:00
Compare
freemo merged commit c781848cb6 into master 2026-03-02 14:54:21 +00:00
freemo deleted branch feature/m6-server-stubs 2026-03-02 14:54:22 +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!507
No description provided.