Skip to content

Decision record: no limits enforced on job variables, trust model documented #441

Open

Description

@claude

Decision

The Python SDK enforces no size or depth limit on job variables and custom headers. The trust model is documented instead: they are untrusted input, deserialisation is JSON-only into plain containers, and the README points to WorkerConfig.fetch_variables, the handler's own recursion bound, and MyModel.model_validate(job.variables.to_dict()) for validation.

Context

Issue #426, documented by PR #434. The cross-SDK record is camunda/sdk-infra#98 ("Decision record: job-variable payload size and depth is not limited by the SDKs").

Why this default

The documented decision matches what the code already does. Inventing a maximum payload size or nesting depth would be a behaviour change that could break working deployments, and it needs a product decision and one number shared across SDKs, not a guess in a docs PR.

Alternatives not taken

  • Enforce a maximum payload size and nesting depth in the SDK: a breaking-risk behaviour change without an agreed cross-SDK number.
  • Leave it undocumented: the shared policy asks each SDK to state its position.

How to revert/change

To enforce limits, open a separate issue once a cross-SDK number is agreed, implement it in runtime/job_worker.py, and update the README section added by PR #434 (revert that PR, or edit the section, if the position changes).

🤖 Generated with Claude Code

https://claude.ai/code/session_01RcVhnekJQeXnMfPhs9pYda

Activity

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

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions