Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Temporal Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-temporal-knowledge-patch-nevaberry-plugins)
---
name: temporal-knowledge-patch
description: Temporal
version: null
license: MIT
metadata:
author: Nevaberry
---
# Temporal compatibility guidance
Load this skill for Temporal Server upgrades, CLI operations, Cloud access and
connectivity, Worker Deployments, Workflow replay, and SDK implementation.
Use the topic references for complete API names, configuration details, examples,
and release-specific behavior.
| Reference | Topics |
| --- | --- |
| [CLI and Self-Hosted Operations](references/cli-and-self-hosted-operations.md) | Schema migrations, authorization, Visibility, CLI configuration, Clusters, Namespaces, archival, Nexus callbacks |
| [Cloud Security, Connectivity, and Migration](references/cloud-security-connectivity-and-migration.md) | API keys, RBAC, Connectivity Rules, PrivateLink, PSC, endpoint routing, High Availability, migration |
| [Workers and Deployments](references/workers-and-deployments.md) | Legacy migration, deployment APIs, version routing, rollouts, drainage, serverless compute, fairness, autoscaling, metrics |
| [Workflows, Activities, and Replay](references/workflows-activities-and-replay.md) | Replay compatibility, patches, SDK definitions, sandbox behavior, Standalone Activities and Nexus Operations, pagination |
## Breaking changes and upgrade decisions
### 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`.
In Server 1.31.5 and 1.32.2, `ValidateWorkerDeploymentVersionComputeConfig`
requires Write access to the target Namespace because it can persist changes.
Update callers using read-only credentials before upgrading.
### Database and Visibility changes
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 for the correct archetype.
In Server 1.32, update custom `VisibilityStore` implementations that use
`VisibilityRow.ExecutionDuration`: it takes `*int64` in place of `*time.Duration`.
The unified Visibility query converter is enabled by default in Server 1.32.
Use `CustomInt = 123`, not `CustomInt = '123'`; `Int`/`Double` comparisons are
allowed, and a `Text` filter must contain at least one token.
Set `system.visibilityEnableUnifiedQueryConverter` to `false` for temporary
legacy behavior in 1.32, ahead of the planned removal in 1.33.
Elasticsearch Visibility requests set `allow_partial_search_results=false` in
Server 1.32, 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 administration from `tctl` to `temporal`.
### Authorization and Nexus callbacks
For authorization with replication when upgrading to Server 1.29.6, set
`system.disableStreamingAuthorizer` to `true` to prevent replication connection
errors. This opts out of the streaming authorization change; review its security
implications before enabling it.
Server 1.32 routes Nexus callbacks by URL scheme by default and always uses
`temporal://system` for Worker targets. Replace legacy `Nexus-Callback-Source`
header routing or opt in through `callback.inspectSourceHeader`.
Callbacks use CHASM by default: move the allowlist from
`component.callbacks.allowedAddresses` to `callback.allowedAddresses`, review
the CHASM settings, and set `history.enableCHASMCallbacks` to `false` if the
earlier implementation is needed.
### Replay compatibility
Version changes that add, remove, or reorder Workflow Memo or Search Attribute
upserts, because these calls can emit a Command. In .NET, changing a timer from
or to `-1` (infinite) requires Workflow versioning for histories that reached it.
Adding a Signal Handler is replay-compatible for an execution that has not yet
received a Signal of that Type.
After histories that took the old patch 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.
## Worker Deployment quick reference
A versioned poll registers its Task Queue with a 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 every Workflow Type.
Start synthetic executions with a pinned Versioning Override before making a
version Current or Ramping. Ramp a newly polling build before promotion:
```bash
temporal worker deployment describe --name orders
temporal worker deployment set-ramping-version --deployment-name orders --build-id v2 --percentage=5
temporal worker deployment set-current-version --deployment-name orders --build-id v2
```
During a ramp, an unavailable or undersized Current or Ramping Version can block
tasks headed for the other version on the same queue. Eager Workflow starts can
run on any available local Worker, including outside Current and Ramping Versions;
use a regular start when Deployment Version routing is required.
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 be able to replay its existing history. For a rollback that
discards incompatible history, reset to a compatible event and set a pinned
override on the new run atomically.
Pinned Workflows keep 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 to wake
them and pass arguments accepted by the new Workflow.
Check for `Drained` before stopping Workers. A version can remain `Draining`
until the next status refresh after its last open pinned Workflow closes;
keep pollers if closed pinned executions must still answer Queries.
In Server 1.32, pinning or moving a Workflow to a Drained or Inactive version can
return it to Draining by default; set `history.enableVersionReactivationSignals`
to `false` to disable this behavior.
`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`.
## Activity and Nexus execution
Server 1.32 enables Standalone Activities and delayed starts by default through
`activity.enableStandalone` and `activity.startDelayEnabled`.
Enable namespace-scoped `history.enableStandaloneActivityOperatorCommands` for
pause, resume, attempt resets, and selected option updates or restoration.
Enable namespace-scoped `frontend.enableBatchOperationsForStandaloneActivities`
for batch cancellation, termination, or deletion by query or explicit executions.
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`.
This sends cancellation commands without waiting for heartbeats.
Use Workflow Run ID together with Activity ID as a downstream idempotency key;
the pair stays the same across Activity retry attempts.
Standalone Nexus Operations are a preview. Enable namespace-scoped
`nexusoperation.enableStandalone` and keep `history.enableChasm` enabled.
They use existing handlers and Endpoints with retries, cancellation, results,
and Visibility in the caller Namespace. The experimental
`temporal nexus operation` commands require CLI 1.9.0; the reference lists
the UI feature flag and minimum SDK versions.
Workflow Task completion pagination is a preview in Server 1.32. Enable
`history.enableWorkflowTaskCompletionPagination` and set
`history.maximumEventBatchSizeInBytes` to a positive value below
`system.transactionSizeLimit`. Check `DescribeNamespace` for the
`workflow_task_completion_pagination` capability; the reference gives buffer limits.
## Worker scaling and monitoring
For Workers without a fixed poller count, set Namespace-level
`frontend.pollerAutoscalingAutoEnroll` to enable SDK poller autoscaling in
Server 1.32. `matching.pollerScalingTaskAddToDispatchRatio` defaults to `1.2`;
opt in to `poller_scale_decision` per Namespace or Task Queue for decision reasons.
Replace `tasks_expired` alerts with `tasks_dropped`, filtered to
`reason=expired_read` or `reason=expired_memory`.
The AWS Lambda preview requires the Worker Controller Instance. Use a qualified
Lambda function ARN with a published version number for each Deployment Version.
Server 1.32 also previews scaling Workers in AWS Bedrock AgentCore Runtime to zero.
The Workers reference gives the respective network and AWS role requirements.
## Cloud access and connectivity
API keys inherit the RBAC permissions of their user or Service Account.
A Service Account can use its current key to issue its own replacement regardless
of configured permissions; deleting the retired key requires appropriate permissions.
A user can have up to 10 non-expired keys and a Service Account up to 20, each with
a maximum two-year lifetime. Namespace-page **Generate API Key** grants `Admin` access to
that Namespace for the full two years.
With zero Connectivity Rules, a Namespace accepts public traffic and configured
private connections. Any attached rules immediately restrict traffic to matching
paths; the Web UI remains publicly reachable. AWS PrivateLink connectivity works
when its endpoint is `Available`; GCP PSC stays `Pending` until a matching rule exists.
`tcld namespace set-connectivity-rules` replaces the entire set: retain every
desired rule ID, or use `--remove-all` to restore public reachability.
## SDK and CLI quick reference
Use Python `@workflow.init` for state needed before message handlers run; its
constructor and `@workflow.run` must match in parameters and type annotations.
For read-only handler observability, use Python
`workflow.unsafe.is_replaying_history_events()` or TypeScript
`workflowInfo().unsafe.isReplayingHistoryEvents`; both are `false` during Queries
and Update validators. Keep replay guards confined to observability code.
Keep TypeScript code needing `WeakRef`, `FinalizationRegistry`, or
`crypto.randomUUID()` in Activities. The Workflow sandbox provides deterministic
`Math.random()`. The Rust SDK crate is `temporalio-sdk`, imported as `temporalio_sdk`.
Run `temporal cloud login`, then use the Cloud gRPC address and fully qualified
Namespace for Workflow commands; use `temporal cloud namespace` for administration.
Select TOML profiles with `--config-file`/`--profile` or YAML environments with
`--env-file`/`--env`. 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 `temporal schedule toggle` with `--pause` or `--unpause` and optional `--reason`.