Skip to content

fix: explicit GraphRuntimeState collaborator initialization for workflow pause and resume#34519

Closed
laipz8200 wants to merge 5 commits intomainfrom
locate-queue-autocreate-deps
Closed

fix: explicit GraphRuntimeState collaborator initialization for workflow pause and resume#34519
laipz8200 wants to merge 5 commits intomainfrom
locate-queue-autocreate-deps

Conversation

@laipz8200
Copy link
Copy Markdown
Member

@laipz8200 laipz8200 commented Apr 3, 2026

Summary

Fixes #34522

  • Ensure Dify workflow runtime state no longer depends on GraphOn lazy collaborator creation.
  • Centralize explicit runtime-state initialization and graph attachment for workflow execution and resume flows.
  • Update the affected workflow entry points and tests to use the explicit initialization contract.

Screenshots

Before After
N/A (backend-only change) N/A (backend-only change)

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This does not apply to typos!)
  • I have added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I have updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && npx lint-staged (frontend) to appease the lint gods

@laipz8200 laipz8200 changed the title Fix explicit GraphRuntimeState collaborator initialization for workflow pause and resume 🤖🤖🤖 Fix explicit GraphRuntimeState collaborator initialization for workflow pause and resume Apr 3, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-03 08:47:17.696202293 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-03 08:47:07.866198972 +0000
@@ -305,6 +305,12 @@
    --> core/tools/workflow_as_tool/provider.py:237:26
 ERROR Returned type `dict[object, str]` is not assignable to declared return type `dict[str, Any] | None` [bad-return]
    --> core/workflow/human_input_compat.py:183:16
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.graph_engine.response_coordinator.coordinator.ResponseStreamCoordinator.__init__` [bad-argument-type]
+   --> core/workflow/runtime_state.py:104:19
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.runtime.graph_runtime_state.GraphRuntimeState.attach_graph` [bad-argument-type]
+   --> core/workflow/runtime_state.py:108:38
+ERROR Missing argument `workflow_id` in function `core.workflow.runtime_state.create_graph_runtime_state` [missing-argument]
+   --> core/workflow/workflow_entry.py:421:57
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (connection_pool=ConnectionPool) [no-matching-overload]
    --> extensions/ext_redis.py:244:38
 ERROR Cannot index into `Literal['']` [bad-index]
@@ -608,31 +614,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -698,19 +704,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1626,7 +1632,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2874,45 +2880,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3566,45 +3572,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5664,21 +5670,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-03 08:47:17.696202293 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-03 08:47:07.866198972 +0000
@@ -305,6 +305,12 @@
    --> core/tools/workflow_as_tool/provider.py:237:26
 ERROR Returned type `dict[object, str]` is not assignable to declared return type `dict[str, Any] | None` [bad-return]
    --> core/workflow/human_input_compat.py:183:16
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.graph_engine.response_coordinator.coordinator.ResponseStreamCoordinator.__init__` [bad-argument-type]
+   --> core/workflow/runtime_state.py:104:19
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.runtime.graph_runtime_state.GraphRuntimeState.attach_graph` [bad-argument-type]
+   --> core/workflow/runtime_state.py:108:38
+ERROR Missing argument `workflow_id` in function `core.workflow.runtime_state.create_graph_runtime_state` [missing-argument]
+   --> core/workflow/workflow_entry.py:421:57
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (connection_pool=ConnectionPool) [no-matching-overload]
    --> extensions/ext_redis.py:244:38
 ERROR Cannot index into `Literal['']` [bad-index]
@@ -608,31 +614,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -698,19 +704,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1626,7 +1632,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2874,45 +2880,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3566,45 +3572,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5664,21 +5670,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]

@laipz8200 laipz8200 changed the title Fix explicit GraphRuntimeState collaborator initialization for workflow pause and resume fix: explicit GraphRuntimeState collaborator initialization for workflow pause and resume Apr 3, 2026
@laipz8200 laipz8200 force-pushed the locate-queue-autocreate-deps branch from 9ff119c to 76fd286 Compare April 3, 2026 08:54
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-03 08:55:44.782532319 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-03 08:55:36.476645077 +0000
@@ -305,6 +305,12 @@
    --> core/tools/workflow_as_tool/provider.py:237:26
 ERROR Returned type `dict[object, str]` is not assignable to declared return type `dict[str, Any] | None` [bad-return]
    --> core/workflow/human_input_compat.py:183:16
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.graph_engine.response_coordinator.coordinator.ResponseStreamCoordinator.__init__` [bad-argument-type]
+   --> core/workflow/runtime_state.py:104:19
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.runtime.graph_runtime_state.GraphRuntimeState.attach_graph` [bad-argument-type]
+   --> core/workflow/runtime_state.py:108:38
+ERROR Missing argument `workflow_id` in function `core.workflow.runtime_state.create_graph_runtime_state` [missing-argument]
+   --> core/workflow/workflow_entry.py:421:57
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (connection_pool=ConnectionPool) [no-matching-overload]
    --> extensions/ext_redis.py:244:38
 ERROR Cannot index into `Literal['']` [bad-index]
@@ -608,31 +614,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -698,19 +704,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1626,7 +1632,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2874,45 +2880,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3566,45 +3572,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5664,21 +5670,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-03 08:55:44.782532319 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-03 08:55:36.476645077 +0000
@@ -305,6 +305,12 @@
    --> core/tools/workflow_as_tool/provider.py:237:26
 ERROR Returned type `dict[object, str]` is not assignable to declared return type `dict[str, Any] | None` [bad-return]
    --> core/workflow/human_input_compat.py:183:16
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.graph_engine.response_coordinator.coordinator.ResponseStreamCoordinator.__init__` [bad-argument-type]
+   --> core/workflow/runtime_state.py:104:19
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.runtime.graph_runtime_state.GraphRuntimeState.attach_graph` [bad-argument-type]
+   --> core/workflow/runtime_state.py:108:38
+ERROR Missing argument `workflow_id` in function `core.workflow.runtime_state.create_graph_runtime_state` [missing-argument]
+   --> core/workflow/workflow_entry.py:421:57
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (connection_pool=ConnectionPool) [no-matching-overload]
    --> extensions/ext_redis.py:244:38
 ERROR Cannot index into `Literal['']` [bad-index]
@@ -608,31 +614,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -698,19 +704,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1626,7 +1632,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2874,45 +2880,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3566,45 +3572,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5664,21 +5670,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]

@laipz8200 laipz8200 force-pushed the locate-queue-autocreate-deps branch from 76fd286 to 4d63b07 Compare April 8, 2026 09:38
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-08 09:39:18.078920912 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-08 09:39:09.323862808 +0000
@@ -299,6 +299,12 @@
    --> core/tools/workflow_as_tool/provider.py:237:26
 ERROR Returned type `dict[object, str]` is not assignable to declared return type `dict[str, Any] | None` [bad-return]
    --> core/workflow/human_input_compat.py:183:16
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.graph_engine.response_coordinator.coordinator.ResponseStreamCoordinator.__init__` [bad-argument-type]
+   --> core/workflow/runtime_state.py:104:19
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.runtime.graph_runtime_state.GraphRuntimeState.attach_graph` [bad-argument-type]
+   --> core/workflow/runtime_state.py:108:38
+ERROR Missing argument `workflow_id` in function `core.workflow.runtime_state.create_graph_runtime_state` [missing-argument]
+   --> core/workflow/workflow_entry.py:441:57
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (connection_pool=ConnectionPool) [no-matching-overload]
    --> extensions/ext_redis.py:244:38
 ERROR Cannot index into `Literal['']` [bad-index]
@@ -612,31 +618,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -702,19 +708,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1638,7 +1644,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2886,45 +2892,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3578,45 +3584,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5676,21 +5682,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-08 09:39:18.078920912 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-08 09:39:09.323862808 +0000
@@ -299,6 +299,12 @@
    --> core/tools/workflow_as_tool/provider.py:237:26
 ERROR Returned type `dict[object, str]` is not assignable to declared return type `dict[str, Any] | None` [bad-return]
    --> core/workflow/human_input_compat.py:183:16
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.graph_engine.response_coordinator.coordinator.ResponseStreamCoordinator.__init__` [bad-argument-type]
+   --> core/workflow/runtime_state.py:104:19
+ERROR Argument `Graph` is not assignable to parameter `graph` with type `GraphProtocol` in function `graphon.runtime.graph_runtime_state.GraphRuntimeState.attach_graph` [bad-argument-type]
+   --> core/workflow/runtime_state.py:108:38
+ERROR Missing argument `workflow_id` in function `core.workflow.runtime_state.create_graph_runtime_state` [missing-argument]
+   --> core/workflow/workflow_entry.py:441:57
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (connection_pool=ConnectionPool) [no-matching-overload]
    --> extensions/ext_redis.py:244:38
 ERROR Cannot index into `Literal['']` [bad-index]
@@ -612,31 +618,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -702,19 +708,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1638,7 +1644,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2886,45 +2892,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3578,45 +3584,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5676,21 +5682,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-08 10:03:09.386615457 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-08 10:03:00.405649707 +0000
@@ -612,31 +612,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -702,19 +702,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1638,7 +1638,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2886,45 +2886,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3578,45 +3578,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5676,21 +5676,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -6002,29 +6002,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:783:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:793:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:788:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:798:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:839:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:849:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:862:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:872:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 8, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-08 10:05:14.744753541 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-08 10:05:05.309570028 +0000
@@ -612,31 +612,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -702,19 +702,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1638,7 +1638,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2886,45 +2886,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3578,45 +3578,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5676,21 +5676,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -6002,29 +6002,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:783:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:791:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:788:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:796:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:839:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:847:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:862:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:870:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 8, 2026

Codecov Report

❌ Patch coverage is 92.64706% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.94%. Comparing base (b7b03f8) to head (b8089c1).
⚠️ Report is 92 commits behind head on main.

Files with missing lines Patch % Lines
api/core/app/apps/workflow_app_runner.py 33.33% 3 Missing and 1 partial ⚠️
api/core/app/apps/workflow/app_runner.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #34519   +/-   ##
=======================================
  Coverage   83.94%   83.94%           
=======================================
  Files        4288     4289    +1     
  Lines      181078   181134   +56     
  Branches    36329    36336    +7     
=======================================
+ Hits       151997   152049   +52     
- Misses      26187    26192    +5     
+ Partials     2894     2893    -1     
Flag Coverage Δ
api 82.39% <92.64%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@laipz8200 laipz8200 marked this pull request as ready for review April 8, 2026 10:15
@laipz8200 laipz8200 requested a review from QuantumGhost as a code owner April 8, 2026 10:15
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 8, 2026
@laipz8200 laipz8200 force-pushed the locate-queue-autocreate-deps branch from badda33 to 1de23e3 Compare April 9, 2026 04:36
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-09 04:37:59.568033709 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-09 04:37:51.254877089 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1646,7 +1646,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2894,45 +2894,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3586,45 +3586,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5684,21 +5684,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -6001,6 +6001,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:168:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:189:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:209:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:216:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -6010,29 +6018,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:783:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:793:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:788:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:798:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:839:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:849:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:862:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:872:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-09 04:37:59.568033709 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-09 04:37:51.254877089 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1646,7 +1646,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2894,45 +2894,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3586,45 +3586,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5684,21 +5684,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -6001,6 +6001,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:168:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:189:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:209:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:216:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -6010,29 +6018,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:783:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:793:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:788:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:798:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:839:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:849:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:862:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:872:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-09 04:39:52.128872254 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-09 04:39:42.756900455 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1646,7 +1646,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2894,45 +2894,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3586,45 +3586,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5684,21 +5684,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -6001,6 +6001,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:166:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:187:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:207:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:214:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -6010,29 +6018,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:783:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:791:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:788:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:796:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:839:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:847:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:862:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:870:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-09 04:39:52.128872254 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-09 04:39:42.756900455 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR No matching overload found for function `redis.client.Redis.__init__` called with arguments: (host=str, port=int, decode_responses=Literal[False]) [no-matching-overload]
@@ -1646,7 +1646,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2894,45 +2894,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3586,45 +3586,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5684,21 +5684,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -6001,6 +6001,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:166:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:187:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:207:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:214:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -6010,29 +6018,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:783:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:791:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:788:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:796:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:839:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:847:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:862:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:870:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

@laipz8200 laipz8200 force-pushed the locate-queue-autocreate-deps branch from 5e11d90 to af7dad4 Compare April 10, 2026 11:23
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-10 11:24:31.817462133 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-10 11:24:22.715279026 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR Object of class `TypeEngine` has no attribute `length` [missing-attribute]
@@ -1644,7 +1644,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2892,45 +2892,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3584,45 +3584,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5682,21 +5682,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -5999,6 +5999,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:166:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:187:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:207:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:214:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -6008,29 +6016,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:791:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:802:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:796:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:807:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:847:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:858:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:870:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:881:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 10, 2026

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 39.02% 39.06% +0.04%
Strict coverage 35.89% 35.94% +0.05%
Typed symbols 18,663 18,701 +38
Untyped symbols 31,709 31,710 +1
Modules 2610 2612 +2

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-10 11:24:31.817462133 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-10 11:24:22.715279026 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR Object of class `TypeEngine` has no attribute `length` [missing-attribute]
@@ -1644,7 +1644,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2892,45 +2892,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3584,45 +3584,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5682,21 +5682,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -5999,6 +5999,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:166:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:187:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:207:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:214:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -6008,29 +6016,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:791:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:802:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:796:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:807:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:847:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:858:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:870:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:881:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

@laipz8200 laipz8200 force-pushed the locate-queue-autocreate-deps branch from af7dad4 to b8089c1 Compare April 13, 2026 03:07
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Apr 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-13 03:08:56.484029314 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-13 03:08:46.815999056 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR Object of class `TypeEngine` has no attribute `length` [missing-attribute]
@@ -1666,7 +1666,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2914,45 +2914,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3606,45 +3606,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5662,21 +5662,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -5979,6 +5979,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:166:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:187:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:207:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:214:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -5988,29 +5996,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:791:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:802:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:796:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:807:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:847:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:858:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:870:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:881:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-04-13 03:08:56.484029314 +0000
+++ /tmp/pyrefly_pr.txt	2026-04-13 03:08:46.815999056 +0000
@@ -610,31 +610,31 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
    --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
+  --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:96:20
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:104:20
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:105:20
 ERROR Attribute `file_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:156:9
-ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
    --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:157:9
+ERROR Attribute `workflow_run_service` of class `TestPauseStatePersistenceLayerTestContainers` is a read-only descriptor with no `__set__` and cannot be set [read-only]
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:158:9
 ERROR Argument `dict[str, str]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:310:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:314:21
 ERROR Argument `dict[tuple[str, str], dict[str, str] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:313:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:317:23
 ERROR Argument `dict[tuple[str, str], dict[str, str] | list[int] | str]` is not assignable to parameter `variables` with type `dict[tuple[str, str], object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:377:23
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:381:23
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:389:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:393:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:403:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:407:16
 ERROR Argument `dict[str, LiteralString]` is not assignable to parameter `outputs` with type `dict[str, object] | None` in function `TestPauseStatePersistenceLayerTestContainers._create_graph_runtime_state` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:444:21
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:448:21
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:468:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:472:16
 ERROR Object of class `FixtureFunctionDefinition` has no attribute `_workflow_run_repo` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:530:24
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:534:24
 ERROR Object of class `AdvancedChatAppGenerateEntity` has no attribute `workflow_execution_id` [missing-attribute]
-   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:533:16
+   --> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:537:16
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
   --> tests/test_containers_integration_tests/core/rag/retrieval/test_dataset_retrieval_integration.py:36:23
 ERROR Object of class `NoneType` has no attribute `id` [missing-attribute]
@@ -700,19 +700,19 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/core/repositories/test_human_input_form_repository_impl.py:42:20
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:105:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:114:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:120:40
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:129:40
 ERROR `dict[str, Any]` is not assignable to TypedDict key `data` with type `BaseNodeData` [bad-typed-dict-key]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:134:38
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:143:38
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:178:20
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
    --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:187:20
+ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:196:20
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_execution_repository.SQLAlchemyWorkflowExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:264:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:273:29
 ERROR Argument `Connection | Engine` is not assignable to parameter `session_factory` with type `Engine | sessionmaker[Unknown]` in function `core.repositories.sqlalchemy_workflow_node_execution_repository.SQLAlchemyWorkflowNodeExecutionRepository.__init__` [bad-argument-type]
-   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:270:29
+   --> tests/test_containers_integration_tests/core/workflow/test_human_input_resume_node_execution.py:279:29
 ERROR Argument `Literal['owner']` is not assignable to parameter `role` with type `SQLCoreOperations[TenantAccountRole] | TenantAccountRole` in function `models.account.TenantAccountJoin.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/helpers/execution_extra_content.py:49:14
 ERROR Object of class `TypeEngine` has no attribute `length` [missing-attribute]
@@ -1666,7 +1666,7 @@
 ERROR Argument `str | Unknown | None` is not assignable to parameter `code` with type `str` in function `celery.app.task.Task.__call__` [bad-argument-type]
    --> tests/test_containers_integration_tests/tasks/test_mail_email_code_login_task.py:381:22
 ERROR Object of class `HumanInputNodeData` has no attribute `delivery_methods` [missing-attribute]
-   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:105:26
+   --> tests/test_containers_integration_tests/tasks/test_mail_human_input_delivery_task.py:106:26
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
   --> tests/test_containers_integration_tests/tasks/test_mail_owner_transfer_task.py:64:20
 ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
@@ -2914,45 +2914,45 @@
 ERROR Object of class `NoneType` has no attribute `opening_statement` [missing-attribute]
    --> tests/unit_tests/core/app/apps/test_message_based_app_generator.py:175:9
 ERROR Object of class `ModuleType` has no attribute `TraceQueueManager` [missing-attribute]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:43:5
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:48:5
 ERROR Class member `_StubToolNode._run` overrides parent class `Node` in an inconsistent manner [bad-override]
-  --> tests/unit_tests/core/app/apps/test_pause_resume.py:80:9
+  --> tests/unit_tests/core/app/apps/test_pause_resume.py:85:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:221:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:238:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:222:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:239:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:223:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:240:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `WorkflowAppGenerateEntity` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:224:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:241:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:226:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:243:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.workflow.app_generator.WorkflowAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:227:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:244:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:230:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:247:12
 ERROR Argument `SimpleNamespace` is not assignable to parameter `app_model` with type `App` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:261:19
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:281:19
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:262:18
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:282:18
 ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | EndUser` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:263:14
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:283:14
 ERROR Argument `SimpleNamespace` is not assignable to parameter `conversation` with type `Conversation` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:264:22
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:284:22
 ERROR Argument `SimpleNamespace` is not assignable to parameter `message` with type `Message` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:265:17
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:285:17
 ERROR Argument `SimpleNamespace` is not assignable to parameter `application_generate_entity` with type `AdvancedChatAppGenerateEntity` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:266:37
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:286:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:267:39
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:287:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.apps.advanced_chat.app_generator.AdvancedChatAppGenerator.resume` [bad-argument-type]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:268:44
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:288:44
 ERROR `+` is not supported between `list[str]` and `Generator[Mapping[str, Any] | str]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR `+` is not supported between `list[str]` and `Mapping[str, Any]` [unsupported-operation]
-   --> tests/unit_tests/core/app/apps/test_pause_resume.py:272:12
+   --> tests/unit_tests/core/app/apps/test_pause_resume.py:292:12
 ERROR Cannot index into `str` [bad-index]
   --> tests/unit_tests/core/app/apps/test_streaming_utils.py:79:12
 ERROR Argument `FakeTopic` is not assignable to parameter `topic` with type `Topic` in function `core.app.apps.streaming_utils.stream_topic_events` [bad-argument-type]
@@ -3606,45 +3606,45 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.app.workflow.layers.observability.ObservabilityLayer.on_node_run_end` [bad-argument-type]
    --> tests/unit_tests/core/app/workflow/test_observability_layer_extra.py:209:31
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_execution_repository` with type `WorkflowExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:93:39
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:98:39
 ERROR Argument `_RepoRecorder` is not assignable to parameter `workflow_node_execution_repository` with type `WorkflowNodeExecutionRepository` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:94:44
+  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:99:44
 ERROR Argument `object | None` is not assignable to parameter `trace_manager` with type `TraceQueueManager | None` in function `core.app.workflow.layers.persistence.WorkflowPersistenceLayer.__init__` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:95:23
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:100:23
 ERROR Argument `None` is not assignable to parameter `command_channel` with type `CommandChannel` in function `graphon.graph_engine.layers.base.GraphEngineLayer.initialize` [bad-argument-type]
-  --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:97:55
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:102:55
 ERROR `object` is not assignable to attribute `_workflow_execution` with type `WorkflowExecution | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:105:37
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:110:37
 ERROR Cannot set item in `dict[str, WorkflowNodeExecution]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:106:49
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:111:49
 ERROR Cannot set item in `dict[str, _NodeRuntimeSnapshot]` [unsupported-operation]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:107:43
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:112:43
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:173:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:178:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:174:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:179:16
 ERROR Object of class `object` has no attribute `total_steps` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:175:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:180:16
 ERROR `SimpleNamespace` is not assignable to attribute `_graph_execution` with type `GraphExecutionProtocol | None` [bad-assignment]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:182:42
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:187:42
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:189:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:194:16
 ERROR Object of class `object` has no attribute `exceptions_count` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:190:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:195:16
 ERROR Object of class `object` has no attribute `total_tokens` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:191:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:196:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:214:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:219:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:224:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:229:16
 ERROR Object of class `object` has no attribute `error_message` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:225:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:230:16
 ERROR Object of class `object` has no attribute `status` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:236:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:241:16
 ERROR Object of class `object` has no attribute `outputs` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:237:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:242:16
 ERROR Object of class `object` has no attribute `finished_at` [missing-attribute]
-   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:238:16
+   --> tests/unit_tests/core/app/workflow/test_persistence_layer.py:243:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
    --> tests/unit_tests/core/base/test_app_generator_tts_publisher.py:166:16
 ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
@@ -5662,21 +5662,21 @@
 ERROR Class member `MockDocumentExtractorNode._run` overrides parent class `DocumentExtractorNode` in an inconsistent manner [bad-override]
    --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:563:9
 ERROR Argument `str | None` is not assignable to parameter `root_node_id` with type `str` in function `graphon.graph.graph.Graph.init` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:662:85
+   --> tests/unit_tests/core/workflow/graph_engine/test_mock_nodes.py:664:85
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:144:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:156:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:159:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:171:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.human_input.human_input_node.HumanInputNode.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:169:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:181:16
 ERROR Argument `dict[str, dict[str, Any] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:187:16
+   --> tests/unit_tests/core/workflow/graph_engine/test_parallel_human_input_join_resume.py:199:16
 ERROR Argument `Sequence[type[GraphEngineEvent]]` is not assignable to parameter `expected_sequence` with type `list[type[GraphEngineEvent]]` in function `TableTestRunner._validate_event_sequence` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:403:21
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:424:21
 ERROR `graph` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:456:23
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:477:23
 ERROR `graph_runtime_state` is uninitialized [unbound-name]
-   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:457:37
+   --> tests/unit_tests/core/workflow/graph_engine/test_table_runner.py:478:37
 ERROR Argument `Iterator[Unknown]` is not assignable to parameter `messages` with type `Generator[ToolInvokeMessage]` in function `core.workflow.nodes.agent.message_transformer.AgentMessageTransformer.transform` [bad-argument-type]
   --> tests/unit_tests/core/workflow/nodes/agent/test_message_transformer.py:16:26
 ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.base.node.Node.__init__` [bad-argument-type]
@@ -5979,6 +5979,14 @@
    --> tests/unit_tests/core/workflow/test_node_runtime.py:255:32
 ERROR Object of class `NoneType` has no attribute `storage_key` [missing-attribute]
    --> tests/unit_tests/core/workflow/test_node_runtime.py:266:12
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:166:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:187:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:207:13
+ERROR Argument `_FakeGraph` is not assignable to parameter `graph` with type `Graph` in function `core.workflow.runtime_state.bind_graph_runtime_state_to_graph` [bad-argument-type]
+   --> tests/unit_tests/core/workflow/test_runtime_state.py:214:17
 ERROR Argument `list[VariableBase]` is not assignable to parameter `variables` with type `Sequence[Variable]` in function `core.workflow.variable_pool_initializer.add_variables_to_pool` [bad-argument-type]
    --> tests/unit_tests/core/workflow/test_variable_pool.py:92:13
 ERROR Argument `TestWorkflowEntry.test_single_step_run_injects_code_limits.StubWorkflow` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
@@ -5988,29 +5996,29 @@
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:91:48
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:122:35
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:35
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:123:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:124:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `parent_graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry._WorkflowChildEngineBuilder.build_child_engine` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:204:44
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:211:44
 ERROR Argument `SimpleNamespace` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.workflow_entry.WorkflowEntry.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:273:37
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:281:37
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:388:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:396:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:443:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:451:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:512:26
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:520:26
 ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `core.workflow.workflow_entry.WorkflowEntry.single_step_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:570:30
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:578:30
 ERROR Class member `EmptySplitKey.split` overrides parent class `UserString` in an inconsistent manner [bad-override]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:791:17
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:802:17
 ERROR Argument `dict[TestMappingUserInputsBranches.test_rejects_invalid_node_variable_key.EmptySplitKey, Sequence[str]]` is not assignable to parameter `variable_mapping` with type `Mapping[str, Sequence[str]]` in function `core.workflow.workflow_entry.WorkflowEntry.mapping_user_inputs_to_variable_pool` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:796:34
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:807:34
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_success.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:847:73
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:858:73
 ERROR Argument `TestWorkflowEntryTracing.test_traced_node_run_reports_errors.FakeNode` is not assignable to parameter `node` with type `Node[Unknown]` in function `core.workflow.workflow_entry.WorkflowEntry._traced_node_run` [bad-argument-type]
-   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:870:68
+   --> tests/unit_tests/core/workflow/test_workflow_entry_helpers.py:881:68
 ERROR Missing argument `case` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]
    --> tests/unit_tests/enterprise/telemetry/test_contracts.py:111:30
 ERROR Missing argument `tenant_id` in function `enterprise.telemetry.contracts.TelemetryEnvelope.__init__` [missing-argument]

Comment thread api/core/workflow/runtime_state.py Outdated
Comment thread api/core/app/apps/workflow_app_runner.py Outdated
Comment thread api/core/workflow/runtime_state.py Outdated
Comment thread api/core/workflow/runtime_state.py Outdated
QuantumGhost
QuantumGhost previously approved these changes Apr 14, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 14, 2026
Copy link
Copy Markdown
Contributor

@QuantumGhost QuantumGhost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@laipz8200 laipz8200 closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor/Chore] Make workflow runtime-state initialization explicit

2 participants