Skip to content

docs: fix README/docstring transport-error claims#77

Open
amavashev wants to merge 3 commits into
mainfrom
docs/transport-error-readme
Open

docs: fix README/docstring transport-error claims#77
amavashev wants to merge 3 commits into
mainfrom
docs/transport-error-readme

Conversation

@amavashev

Copy link
Copy Markdown
Contributor

Summary

README documented CyclesTransportError as raised on network failure; nothing in the package raises it. Transport failures actually surface as CyclesProtocolError with status == -1 (lifecycle-managed surfaces: @cycles and stream_reservation()) or CyclesResponse.transport_error (programmatic). Rewrote the exception table row, added a Transport errors subsection, fixed the CyclesTransportError docstring to stop claiming it is raised, and updated AUDIT.md (repo convention: no CHANGELOG entry for doc-only changes).

Follow-up question for maintainers (out of scope here): should a future minor actually raise CyclesTransportError on transport failures — the class exists and is exported — or should it be deprecated? Both clients (Python and TypeScript) share this exported-but-never-raised state.

Codex-reviewed (REVISE-MINOR → applied). Surfaced by runcycles/cycles-docs#785; matches the docs-site wording fixed there.

Test plan

  • Docstring-only code change; exceptions.py AST-parses
  • No behavior change

amavashev added 3 commits July 3, 2026 13:34
… aggregate health

Aggregate /actuator/health requires X-Admin-API-Key since cycles-server
v0.1.25.45 and fails closed with 500 when the server has no admin key
configured — this assertion has been the visible failure in the org
nightly Full-Stack Integration since 2026-06-28. The liveness/readiness
probes are the public, Redis-aware health contract a credential-less
client can rely on; the health-check test now probes
/actuator/health/readiness.

Integration-test-only; no library code change, no version bump.
AUDIT.md updated. Companion PRs: runcycles/.github (workflow readiness
polling + event-server management port) and the sibling client repo.
README documented CyclesTransportError as raised on network failure;
nothing in the package raises it. Rewrote the exception-table row and
added a Transport errors subsection describing actual behavior: the
decorator raises CyclesProtocolError with status == -1 (error_code
None) at reserve time; the programmatic client returns CyclesResponse
with is_transport_error / status -1. The class remains exported for
user code. AUDIT.md updated (repo convention: no CHANGELOG entry for
doc-only changes). Surfaced by the cycles-docs integration audit
(runcycles/cycles-docs#785).
Apply 4 / modify 0 / skip 0:
- README CyclesProtocolError row now covers SDK-wrapped reserve-time
  transport failures (status == -1)
- transport-errors bullet broadened to lifecycle-managed surfaces
  (@cycles and stream_reservation())
- CyclesTransportError docstring no longer claims it is raised;
  documents the actual status == -1 surfacing
- AUDIT.md rolling date line updated to 2026-07-09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant