Skip to content

Document lifecycle and RPC details in docstrings near the code #236

Open

Description

In review of #200, Bowei Du (@bowei) suggested keeping the glossary at a high level and locating detailed definitions as close to the code as possible:

Can we keep the glossary definitions to be summaries at the high level? More low level descriptions should be kept as close to the code definitions as possible (i.e. in docstrings) so there are less consistency issues.

The glossary is being slimmed accordingly. Some of the removed detail is worth capturing in docstrings so it has a durable home:

  • Actor lifecycle states: document the SUSPENDED → RESUMING → RUNNING → SUSPENDING → SUSPENDED transitions on the status enum / state type itself.
  • Control service RPCs: the semantics of CreateActor, ResumeActor, SuspendActor, and DeleteActor belong in the proto/service definitions.
  • ateom workload RPCs: RunWorkload, CheckpointWorkload, RestoreWorkload, and the atelet↔ateom contract (gRPC over unix socket) belong on the ateom service definition.
  • runsc invocation details: how the sandbox is created/started/checkpointed/restored, and the per-ActorTemplate binary pinning (URL + SHA-256), belong with the code that drives runsc.

The goal is a single source of truth per definition: the glossary gives a one-to-three-sentence summary of each Substrate-specific term, while anything mechanical lives in a docstring where it gets updated alongside the code it describes.

Activity

  1. added
    kind/docs
    on Jun 19, 2026
  2. moezdil commented on Jun 26, 2026

    @moezdil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apikind/docs

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions