Skip to content
Back to skills

Temporal Knowledge Patch

ASecurity

Temporal

  • 25 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 5, 2026
developmenttypescriptpythonrustsqlawsgcpapidatabasefrontendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill temporal-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Temporal Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Temporal Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-temporal-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-temporal-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: temporal-knowledge-patch
description: Temporal
version: null
license: MIT
metadata:
  author: Nevaberry
---


# Temporal Knowledge Patch

Use this skill when upgrading Temporal Server, operating the CLI or Cloud,
rolling out Worker Deployment Versions, changing Workflow code, or configuring
Workers, Activities, Nexus operations, and Visibility.

## Reference index

| Reference | Topics |
| --- | --- |
| [Temporal CLI Operations](references/cli-operations.md) | CLI configuration, Schedules, Clusters, Namespaces, Server schemas and persistence, authorization, Visibility, Nexus Endpoints and callbacks |
| [Temporal Cloud Authentication, Connectivity, and Migration](references/cloud.md) | Login, API keys, Connectivity Rules, private endpoints, High Availability, live migration |
| [Worker Versioning](references/worker-versioning.md) | Legacy API migration, deployment registration, routing, ramping, overrides, Continue-as-New, drainage, deletion |
| [Workers and SDK Replay APIs](references/workers-and-sdks.md) | Rust definitions, Python initialization, SDK sandboxes, replay verification, Worker discovery, matching, autoscaling, serverless Workers, completion pagination |
| [Workflow Safety and Activity Recovery](references/workflow-safety.md) | Patch retirement, replay compatibility, reset recovery, idempotency, Activity cancellation, Standalone Activities and Nexus Operations |

## Breaking changes and upgrade requirements

### Legacy Worker Versioning migration

Server 1.32 is the last release with legacy routing support. Before upgrading to
1.33, migrate to current Worker Deployment APIs and drain or complete executions
that depend on legacy Build IDs, Version Sets, Assignment Rules, Redirect Rules,
or deprecated Deployment routing. Build ID Compatibility and Versioning Rules
management RPCs are disabled by default in 1.32; prerelease Deployment RPCs
already return `Unimplemented`. See the migration reference for the affected APIs
and the superseded removal deadline.

### Database and custom persistence upgrades

Before upgrading to Server 1.31.0, migrate the core schema to MySQL or PostgreSQL `v1.19` or
SQLite `v1.11`, and Visibility to Elasticsearch `v14` or MySQL or PostgreSQL `v1.14`.
Custom SQL and Cassandra persistence implementations must use `ArchetypeID` on
current mutable state requests to select the correct archetype's record.
In Server 1.32, update custom `VisibilityStore` implementations that use
`VisibilityRow.ExecutionDuration`: the field now takes `*int64` instead of `*time.Duration`.

### Authorization and compute validation

For Server 1.29.6, if you use authorization with replication, set
`system.disableStreamingAuthorizer` to `true` to prevent replication connection
errors on upgrade. This opts out of the streaming authorization change; review
its security implications before enabling it.

In Server 1.31.5 and 1.32.2, `ValidateWorkerDeploymentVersionComputeConfig` requires
Write access to the target Namespace because the call can persist changes.
Update callers using read-only credentials before upgrading.

### Visibility comparisons and administration

The unified converter defaults on in Server 1.32. Use `CustomInt = 123`, not
`CustomInt = '123'`; `Int` and `Double` comparisons are allowed. A `Text` filter
requires at least one token. Set `system.visibilityEnableUnifiedQueryConverter` to
`false` for temporary legacy behavior in 1.32, ahead of planned removal in 1.33.

Elasticsearch requests set `allow_partial_search_results=false`, so shard failures
can fail list or count requests. Server 1.33 is expected to default
`system.visibilityAllowList` to `false`; move custom attribute lists to
`KeywordList` or write scalar values before upgrading. Migrate Search Attribute
management from `tctl` to `temporal`.

### Nexus callback configuration

Server 1.32 routes callbacks by URL scheme by default and always uses
`temporal://system` for Worker targets. Replace legacy `Nexus-Callback-Source`
header routing or opt in via `callback.inspectSourceHeader`, also available in
1.30.7 and 1.31.3. `nexusoperation.useSystemCallbackURL` and
`component.nexusoperations.useSystemCallbackURL` have been removed.

Callbacks use CHASM by default in Server 1.32. Move the allowlist from
`component.callbacks.allowedAddresses` to `callback.allowedAddresses`, review
CHASM settings, and set `history.enableCHASMCallbacks` to `false` if the earlier
implementation is needed. See the CLI reference for the CHASM settings link.

### Matching metrics and version demotion

In Server 1.32, replace `tasks_expired` alerts with `tasks_dropped` filtered to
`reason=expired_read` or `reason=expired_memory`. Fairness migration is always
active, and `matching.enableMigration` has been removed.

`matching.enableWorkerDeploymentVersionDemotionSignal` defaults to `false` in
1.32 and is expected to default to `true` in 1.33. Enabling it before older
Deployment Version Workflows have Continued-as-New can leave versions stuck in
`Draining`.

## Worker Deployment rollout and recovery

A versioned poll registers its Task Queue with the Worker Deployment Version,
identified by deployment name and Build ID. Run versions side by side for
executions still pinned to earlier builds. With the Worker default unspecified,
declare a Versioning Behavior for each Workflow Type.

Start synthetic executions with a pinned Versioning Override before making a
version Current or Ramping. Ramp a newly polling build before promotion. An
unavailable or undersized Current or Ramping Version can block tasks headed for
the other version on the same queue.

Use a regular Workflow start when Deployment Version routing is required: eager
starts can use any available local Worker, including one outside Current and
Ramping. Use `update-options` with `--workflow-id` or a Visibility `--query` to
move pinned executions. Switching to `auto_upgrade` resumes work on each
execution's Target Version, which must replay its existing history.

For rollback that discards incompatible history, use
`temporal workflow reset with-workflow-update-options` to reset to a compatible
event and set a pinned override on the new run atomically.

Pinned Workflows retain their version across Continue-as-New by default. The
public-preview SDK option can start the next run on the Target Version. The
target-change flag refreshes after Workflow Tasks; signal idle runs and pass
arguments the new Workflow can accept.

Check for `Drained` before stopping Workers. A version can stay `Draining` until
the next status refresh after its last open pinned Workflow closes. Keep pollers
if closed pinned executions still need to answer Queries.

## Workflow replay and SDK usage

Once histories taking the old path leave retention, replace `workflow.patched(id)`
or `patched(id)` with `workflow.deprecate_patch(id)` or `deprecatePatch(id)` at the
same point and with the same ID; run the new path unconditionally. Keep the
deprecation call until histories with the original patch marker have aged out.

Version changes that add, remove, or reorder Workflow Memo or Search Attribute
upserts, which can emit Commands. In .NET, changing a timer duration from or to
`-1` requires Workflow versioning for histories that reached that timer.

Run candidate Python Workflow code in verification mode before Workers poll.
Pass recent histories from `client.list_workflows(...).map_histories()` to
`Replayer.replay_workflows()` and let replay errors fail the rollout.

For observability in Queries and Update validators, Python's
`workflow.unsafe.is_replaying_history_events()` and TypeScript's
`workflowInfo().unsafe.isReplayingHistoryEvents` both report `false` there.
Keep replay guards confined to observability so Workflow commands stay deterministic.

Use Python `@workflow.init` to initialize state from inputs before handlers run;
the constructor and `@workflow.run` must have matching parameters and annotations.
Use `BundleOptions.ignoreModules` if a Workflow dependency references a disallowed
module never used at Workflow runtime. Keep `WeakRef`, `FinalizationRegistry`, and `crypto.randomUUID()`
in Activities; the Workflow sandbox provides deterministic `Math.random()`.

The Rust SDK crate is `temporalio-sdk`, referenced as `temporalio_sdk` in code.
See the SDK reference for Rust Workflow and Activity definitions and Python
sandbox passthrough examples.

## CLI and Cloud operations

Run `temporal cloud login`, then target the Cloud gRPC address and fully qualified
Namespace on Workflow commands. Use `temporal cloud namespace` for Cloud
Namespace administration. Pause or resume Schedules with `temporal schedule toggle`
and `--pause` or `--unpause`, optionally supplying `--reason`.

An API key or any TLS option enables TLS automatically; `--tls=false` overrides
that default. `--tls-server-name` sets the TLS server name, while
`--client-authority` sets gRPC `:authority`. Use `--output jsonl` for line-delimited
JSON or `--output none` to suppress command data independently of log settings.

API keys inherit their owner's RBAC permissions. A Service Account can issue its
own replacement key regardless of configured permissions; deleting the retired
key still requires appropriate permissions. Namespace-generated keys have
`Admin` access to that Namespace and the full two-year lifetime.

Zero Connectivity Rules allow public traffic and configured private connections.
Attaching rules immediately restricts Namespace traffic to matching paths; the
Web UI remains public. AWS PrivateLink works when its endpoint is `Available`;
GCP PSC stays `Pending` until a matching rule exists.

`tcld namespace set-connectivity-rules` replaces the whole set: include every
rule ID to retain, or use `--remove-all` to restore public reachability. For direct
private endpoint connections on port `7233`, choose the TLS server name for the
Namespace's authentication method and region as detailed in the Cloud reference.

## Activities and standalone operations

Use the Workflow Run ID and Activity ID together as a downstream idempotency
key; the pair stays the same across Activity retry attempts.

Server 1.32 enables Standalone Activities and delayed starts by default. Enable
namespace-scoped `history.enableStandaloneActivityOperatorCommands` for pause,
resume, attempt reset, and option changes. Enable namespace-scoped
`frontend.enableBatchOperationsForStandaloneActivities` for batch cancel,
terminate, or delete. Update clients comparing deprecated Workflow batch enums:
Describe and List now return explicit `*_WORKFLOW` values.

For proactive cancellation of in-flight Workflow Activities when their Workflow
closes or Continues-as-New, enable both namespace-scoped flags in Server 1.32:
`frontend.WorkerCommandsEnabled` and `system.enableCancelActivityWorkerCommand`.
The server then sends cancellation commands without waiting for heartbeats.

Standalone Nexus Operations are a preview in Server 1.32. Enable namespace-scoped
`nexusoperation.enableStandalone` and keep `history.enableChasm` enabled. The
experimental `temporal nexus operation` commands require CLI 1.9.0. See the
Workflow safety reference for UI flags and minimum SDK versions.

## Worker capacity and previews

In Server 1.32, `frontend.pollerAutoscalingAutoEnroll` enables SDK poller autoscaling
per Namespace for Workers without a fixed poller count. Tune scale-up with
`matching.pollerScalingTaskAddToDispatchRatio` (default `1.2`).

The AWS Lambda preview requires the Worker Controller Instance. For self-hosted
setups, Lambda needs network access to the Temporal Frontend, and servers need credentials
to assume a role granting `lambda:GetFunction` and `lambda:InvokeFunction`.
Use a qualified Lambda ARN with a published version for each Deployment Version.

Server 1.32's AWS Bedrock AgentCore Runtime preview can scale Workers to zero.
Its self-hosted network and role requirements are in the SDK reference, alongside
Workflow Task completion pagination preview settings and buffer limits.

Files in this skill

  • SKILL.md9.4 KB
  • coverage.json906 B
  • references/cli-operations.md3.7 KB
  • references/cloud.md4.6 KB
  • references/worker-versioning.md5.9 KB
  • references/workers-and-sdks.md4.1 KB
  • references/workflow-safety.md3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.