agenticstar-platform 3.2.1__tar.gz → 3.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. agenticstar_platform-3.3.0/.gitignore +270 -0
  2. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/PKG-INFO +60 -5
  3. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/README.md +59 -4
  4. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/__init__.py +1 -1
  5. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/events/handlers.py +37 -4
  6. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/runner.py +3 -1
  7. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/azure.py +15 -2
  8. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/base.py +54 -8
  9. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/gcs.py +17 -1
  10. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/s3.py +48 -14
  11. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/pyproject.toml +1 -1
  12. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/events/test_handler_type_routing.py +60 -3
  13. agenticstar_platform-3.3.0/tests/events/test_notify_token.py +101 -0
  14. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/runner/test_marketplace_runner_started_fence.py +21 -0
  15. agenticstar_platform-3.3.0/tests/storage/test_download_version.py +225 -0
  16. agenticstar_platform-3.3.0/tests/storage/test_s3_credential.py +178 -0
  17. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/LICENSE +0 -0
  18. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/_config_utils.py +0 -0
  19. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/ROW_HASH_SPEC.md +0 -0
  20. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/__init__.py +0 -0
  21. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/action_audit.py +0 -0
  22. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/guardrail_alerts.py +0 -0
  23. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/audit/row_hash_fixture.json +0 -0
  24. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/__init__.py +0 -0
  25. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/client.py +0 -0
  26. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/config.py +0 -0
  27. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/exceptions.py +0 -0
  28. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/auth/models.py +0 -0
  29. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/common/__init__.py +0 -0
  30. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/common/context_manager.py +0 -0
  31. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/common/secrets.py +0 -0
  32. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/common/validation.py +0 -0
  33. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/__init__.py +0 -0
  34. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/api_manager.py +0 -0
  35. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/completion_report.py +0 -0
  36. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/config.py +0 -0
  37. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/config_access.py +0 -0
  38. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/data_access.py +0 -0
  39. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/execution_access.py +0 -0
  40. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/factory.py +0 -0
  41. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/manager.py +0 -0
  42. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/pod_runtime.py +0 -0
  43. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/started_fence.py +0 -0
  44. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/telemetry_access.py +0 -0
  45. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/db/wire_types.py +0 -0
  46. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/events/__init__.py +0 -0
  47. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/events/emitter.py +0 -0
  48. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/events/models.py +0 -0
  49. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/events/types.py +0 -0
  50. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/README.md +0 -0
  51. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/__init__.py +0 -0
  52. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/__main__.py +0 -0
  53. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/checks.py +0 -0
  54. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/docker-compose.yml +0 -0
  55. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/doctor.py +0 -0
  56. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/lab_config.py +0 -0
  57. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/offline_embedding.py +0 -0
  58. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/run_lab.py +0 -0
  59. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/lab/seed.py +0 -0
  60. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/memory/__init__.py +0 -0
  61. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/memory/semantic.py +0 -0
  62. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/metering/__init__.py +0 -0
  63. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/metering/meter.py +0 -0
  64. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/policy/__init__.py +0 -0
  65. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/policy/internal_operations.py +0 -0
  66. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/policy/model.py +0 -0
  67. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/__init__.py +0 -0
  68. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/base.py +0 -0
  69. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/embedding.py +0 -0
  70. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/rag/qdrant_manager.py +0 -0
  71. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/runtime.py +0 -0
  72. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/security/__init__.py +0 -0
  73. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/security/aws.py +0 -0
  74. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/security/azure.py +0 -0
  75. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/security/base.py +0 -0
  76. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/security/content_safety_validator.py +0 -0
  77. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/security/factory.py +0 -0
  78. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/security/gcp.py +0 -0
  79. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/__init__.py +0 -0
  80. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/storage/paths.py +0 -0
  81. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/__init__.py +0 -0
  82. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/canonical.py +0 -0
  83. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/child.py +0 -0
  84. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/context.py +0 -0
  85. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/envelope.py +0 -0
  86. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/errors.py +0 -0
  87. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/files.py +0 -0
  88. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/runner.py +0 -0
  89. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/runtime_client.py +0 -0
  90. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/schema.py +0 -0
  91. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/agenticstar_platform/workflow/testing.py +0 -0
  92. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/docs/agenticstar_platform.html +0 -0
  93. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/docs/examples/workflow_mock_send_agent.py +0 -0
  94. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/docs/examples/workflow_reply_agent.py +0 -0
  95. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/docs/index.html +0 -0
  96. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/docs/search.js +0 -0
  97. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/__init__.py +0 -0
  98. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/audit/__init__.py +0 -0
  99. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/audit/test_action_audit_30.py +0 -0
  100. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/audit/test_row_hash_fixture.py +0 -0
  101. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/auth/__init__.py +0 -0
  102. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/auth/test_auth_type_bearer_only.py +0 -0
  103. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/auth/test_get_user_path_encoding.py +0 -0
  104. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/auth/test_mcp_tokens_expiry.py +0 -0
  105. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/auth/test_mcp_tokens_rejected.py +0 -0
  106. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/db/__init__.py +0 -0
  107. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/db/test_api_manager_drain_and_headers.py +0 -0
  108. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/db/test_completion_report.py +0 -0
  109. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/db/test_data_access_identifier_validation.py +0 -0
  110. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/db/test_manager_execute_query_dispatch.py +0 -0
  111. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/db/test_telemetry_tools_used_contract.py +0 -0
  112. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/db/test_wire_param_types.py +0 -0
  113. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/events/__init__.py +0 -0
  114. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/lab/test_lab_contract.py +0 -0
  115. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/lab/test_lab_docker.py +0 -0
  116. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/memory/__init__.py +0 -0
  117. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/memory/test_semantic_converter_base_url.py +0 -0
  118. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/metering/__init__.py +0 -0
  119. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/metering/test_meter_cache_split.py +0 -0
  120. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/policy/__init__.py +0 -0
  121. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/policy/test_a2a_connection_rule.py +0 -0
  122. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/policy/test_decision_layer.py +0 -0
  123. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/policy/test_evaluate_decision_table.py +0 -0
  124. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/policy/test_policy_model.py +0 -0
  125. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/policy/test_scoped_forbid.py +0 -0
  126. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/rag/__init__.py +0 -0
  127. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/rag/test_embedding_dimensions.py +0 -0
  128. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/rag/test_qdrant_error_hierarchy.py +0 -0
  129. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/rag/test_qdrant_get_statistics.py +0 -0
  130. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/runner/__init__.py +0 -0
  131. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/runner/test_marketplace_runner_contract.py +0 -0
  132. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/runner/test_marketplace_runner_db_fallback.py +0 -0
  133. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/security/__init__.py +0 -0
  134. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/security/test_azure_connect_retry.py +0 -0
  135. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/security/test_azure_prompt_shield_documents.py +0 -0
  136. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/security/test_factory_vertex_ai_safety.py +0 -0
  137. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/security/test_gcp_vertex_ai_safety.py +0 -0
  138. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/storage/__init__.py +0 -0
  139. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/storage/test_azure_credential.py +0 -0
  140. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/test_lazy_import_contract.py +0 -0
  141. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/test_readme_quickstart.py +0 -0
  142. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/test_storage_provider_extra_contract.py +0 -0
  143. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/workflow/__init__.py +0 -0
  144. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/workflow/agent_fixtures.py +0 -0
  145. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/workflow/test_child_failure_summary.py +0 -0
  146. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/workflow/test_workflow_incomplete.py +0 -0
  147. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/workflow/test_workflow_runner.py +0 -0
  148. {agenticstar_platform-3.2.1 → agenticstar_platform-3.3.0}/tests/workflow/test_workflow_testing.py +0 -0
@@ -0,0 +1,270 @@
1
+ ### Project-specific ###
2
+ # Logs
3
+ logs/
4
+
5
+ # Data
6
+ data/
7
+
8
+ # Workspace
9
+ workspace/
10
+
11
+ # Memo
12
+ memo/
13
+
14
+ # Instructions (sensitive configuration)
15
+ instructions/
16
+
17
+ ### CLI Frontend (Go) ###
18
+ # Go binaries
19
+ cli-frontend/agenticai
20
+ cli-frontend/agenticai-*
21
+ cli-frontend/*.exe
22
+
23
+ # Python backend (compiled for development/debug)
24
+ cli-frontend/python-backend/
25
+
26
+ # Claude Code MCP (downloaded/configured)
27
+ cli-frontend/claude-code/
28
+ cli-frontend/claude_code_config.py
29
+
30
+ # Bundled tools (Playwright & Marp)
31
+ cli-frontend/bundled-tools/
32
+ cli-frontend/bundled_tools_config.py
33
+
34
+ # Distribution packages
35
+ cli-frontend/dist-package/
36
+ cli-frontend/releases/*.tar.gz
37
+ cli-frontend/releases/*.zip
38
+
39
+ # Legacy Node/TypeScript (removed but keep for safety)
40
+ cli-frontend/node_modules/
41
+ cli-frontend/package.json
42
+ cli-frontend/package-lock.json
43
+ cli-frontend/dist/
44
+ cli-frontend/build/
45
+
46
+ # Test artifacts
47
+ cli-frontend/*.test
48
+ cli-frontend/*.out
49
+ cli-frontend/coverage/
50
+
51
+ # Temporary files
52
+ cli-frontend/.tmp/
53
+
54
+ ### Python ###
55
+ # Byte-compiled / optimized / DLL files
56
+ __pycache__/
57
+ *.py[cod]
58
+ *$py.class
59
+
60
+ # C extensions
61
+ *.so
62
+
63
+ # Distribution / packaging
64
+ .Python
65
+ build/
66
+ develop-eggs/
67
+ dist/
68
+ downloads/
69
+ eggs/
70
+ .eggs/
71
+ lib/
72
+ lib64/
73
+ parts/
74
+ sdist/
75
+ var/
76
+ wheels/
77
+ share/python-wheels/
78
+ *.egg-info/
79
+ .installed.cfg
80
+ *.egg
81
+ MANIFEST
82
+
83
+ # PyInstaller
84
+ # Usually these files are written by a python script from a template
85
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
86
+ *.manifest
87
+ *.spec
88
+
89
+ # Installer logs
90
+ pip-log.txt
91
+ pip-delete-this-directory.txt
92
+
93
+ # Unit test / coverage reports
94
+ htmlcov/
95
+ .tox/
96
+ .nox/
97
+ .coverage
98
+ .coverage.*
99
+ .cache
100
+ nosetests.xml
101
+ coverage.xml
102
+ *.cover
103
+ *.py,cover
104
+ .hypothesis/
105
+ .pytest_cache/
106
+ cover/
107
+
108
+ # Translations
109
+ *.mo
110
+ *.pot
111
+
112
+ # Django stuff:
113
+ *.log
114
+ local_settings.py
115
+ db.sqlite3
116
+ db.sqlite3-journal
117
+
118
+ # Flask stuff:
119
+ instance/
120
+ .webassets-cache
121
+
122
+ # Scrapy stuff:
123
+ .scrapy
124
+
125
+ # Sphinx documentation
126
+ docs/_build/
127
+
128
+ # PyBuilder
129
+ .pybuilder/
130
+ target/
131
+
132
+ # Jupyter Notebook
133
+ .ipynb_checkpoints
134
+
135
+ # IPython
136
+ profile_default/
137
+ ipython_config.py
138
+
139
+ # pyenv
140
+ # For a library or package, you might want to ignore these files since the code is
141
+ # intended to run in multiple environments; otherwise, check them in:
142
+ # .python-version
143
+
144
+ # pipenv
145
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
146
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
147
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
148
+ # install all needed dependencies.
149
+ #Pipfile.lock
150
+
151
+ # UV
152
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
153
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
154
+ # commonly ignored for libraries.
155
+ #uv.lock
156
+
157
+ # poetry
158
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
159
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
160
+ # commonly ignored for libraries.
161
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
162
+ #poetry.lock
163
+
164
+ # pdm
165
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
166
+ #pdm.lock
167
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
168
+ # in version control.
169
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
170
+ .pdm.toml
171
+ .pdm-python
172
+ .pdm-build/
173
+
174
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
175
+ __pypackages__/
176
+
177
+ # Celery stuff
178
+ celerybeat-schedule
179
+ celerybeat.pid
180
+
181
+ # SageMath parsed files
182
+ *.sage.py
183
+
184
+ # Environments
185
+ .env
186
+ .env.docker
187
+ .venv
188
+ env/
189
+ venv/
190
+ ENV/
191
+ env.bak/
192
+ venv.bak/
193
+ config.toml
194
+
195
+ # Claude configuration
196
+ .claude/
197
+ CLAUDE.local.md
198
+
199
+ # Spyder project settings
200
+ .spyderproject
201
+ .spyproject
202
+
203
+ # Rope project settings
204
+ .ropeproject
205
+
206
+ # mkdocs documentation
207
+ /site
208
+
209
+ # mypy
210
+ .mypy_cache/
211
+ .dmypy.json
212
+ dmypy.json
213
+
214
+ # Pyre type checker
215
+ .pyre/
216
+
217
+ # pytype static type analyzer
218
+ .pytype/
219
+
220
+ # Cython debug symbols
221
+ cython_debug/
222
+
223
+ # PyCharm
224
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
225
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
226
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
227
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
228
+ .idea/
229
+
230
+ # PyPI configuration file
231
+ .pypirc
232
+
233
+ ### Visual Studio Code ###
234
+ .vscode/*
235
+ !.vscode/settings.json
236
+ !.vscode/tasks.json
237
+ !.vscode/launch.json
238
+ !.vscode/extensions.json
239
+ !.vscode/*.code-snippets
240
+
241
+ # Local History for Visual Studio Code
242
+ .history/
243
+
244
+ # Built Visual Studio Code Extensions
245
+ *.vsix
246
+
247
+ # sqlite db
248
+ *.db
249
+
250
+ # OSX
251
+ .DS_Store
252
+
253
+ .vscode/settings.json
254
+
255
+ # Helm
256
+ helm/*/charts/
257
+ helm/*/*.tgz
258
+
259
+ # GAIA benchmark: secrets-containing config (use .sample as template)
260
+ gaia_benchmark/gaia_config.toml
261
+ gaia_benchmark/config_gaia_pod.toml
262
+ gaia_pipeline/.env
263
+ # GAIA benchmark: runtime/dataset artifacts
264
+ gaia_benchmark/data/
265
+ gaia_benchmark/results/
266
+ gaia_benchmark/workspace/
267
+
268
+ # LLM routing override (opt-in). 実 llm.toml は commit / イメージ同梱しない
269
+ # (誤って本番 Pod が direct に落ちる事故防止。配布は mount 経由)。.example はテンプレとして追跡。
270
+ llm.toml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: agenticstar-platform
3
- Version: 3.2.1
3
+ Version: 3.3.0
4
4
  Summary: AGENTICSTAR Platform SDK - Enterprise AI Agent Infrastructure
5
5
  Project-URL: Homepage, https://developers.fd.agenticstar.tm.softbank.jp/
6
6
  Project-URL: Documentation, https://developers.fd.agenticstar.tm.softbank.jp/
@@ -224,6 +224,7 @@ Environment variable contract:
224
224
  | `REQUEST_SOURCE` / `AGENT_ID` | Same as above (optional) | — |
225
225
  | `DB_HOST` / `DB_PORT` / `DB_DATABASE` / `DB_USER` / `DB_PASSWORD` | Env var settings at agent registration (`PostgreSQLConfig.from_env()` contract) | ✅ |
226
226
  | `WEBHOOK_URL` | Env var settings at agent registration | ✅ |
227
+ | `ASTER_NOTIFY_TOKEN` | Injected by the Marketplace executor for each execution (SDK >= 3.2.2 sends it as `Authorization: Bearer` on the webhook notification) | — |
227
228
 
228
229
  Terminal event rules:
229
230
 
@@ -235,7 +236,8 @@ Terminal event rules:
235
236
  If you need the low-level API (to compose handlers yourself), pass
236
237
  `create_marketplace_handler(data_access, webhook_url, user_id, conversation_id, message_id)`
237
238
  (a composite handler for DB persistence + webhook notification; requires the `[db]` + `[webhook]`
238
- extras) directly to `EventEmitter`, as before.
239
+ extras) directly to `EventEmitter`, as before. Without a `token_provider`, it sends the
240
+ `ASTER_NOTIFY_TOKEN` env var as `Authorization: Bearer` when it is set (SDK >= 3.2.2).
239
241
 
240
242
  ### 2.4 Report completion for a cycle execution (SDK >= 3.0.14, `mp-chat/1`)
241
243
 
@@ -471,6 +473,39 @@ config = AzureBlobConfig.from_dict({
471
473
  client = AzureBlobStorageClient(config)
472
474
  ```
473
475
 
476
+ S3 without access keys (3.2.3): leave `aws_access_key_id` and `aws_secret_access_key` both out (or
477
+ empty). The client then passes no keys and lets boto3 find the credentials with its default
478
+ credential chain (for example IRSA on EKS, environment variables, `~/.aws` files, EKS Pod Identity
479
+ or an EC2 instance role; boto3 decides which one is used first). This is what an EKS Pod with IRSA
480
+ needs; do not also give that Pod `AWS_ACCESS_KEY_ID` in its env, which boto3 checks before IRSA.
481
+ The role needs S3 access to the bucket. Give both keys or neither: only one of them raises
482
+ `StorageConfigError`.
483
+
484
+ ```python
485
+ from agenticstar_platform.storage import S3StorageClient, S3Config
486
+
487
+ config = S3Config.from_dict({
488
+ "bucket_name": "your-bucket",
489
+ "region_name": "us-east-1",
490
+ })
491
+ client = S3StorageClient(config)
492
+ ```
493
+
494
+ A specific version (3.3.0): `download_file(object_name, download_path, version_id=...)` downloads that
495
+ version of the object instead of the latest one. The value is the Azure Blob `versionId`, the S3
496
+ `VersionId` or the GCS generation (a number as a string). A version that does not exist, and an empty
497
+ value, fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS). To keep
498
+ the older version when an object is overwritten or deleted, turn on versioning (Azure: blob versioning of
499
+ the storage account; S3 and GCS: versioning of the bucket); versions kept earlier stay readable after it is
500
+ turned off. Without `version_id` the latest version is downloaded, as before.
501
+
502
+ ```python
503
+ # S3: pass the VersionId that S3 returned for the object
504
+ result = await client.download_file(
505
+ "users/u1/report.docx", "/tmp/report.docx", version_id="3HL4kqtJlcpXroDTDmJ.rmSpXd3dIbrHY"
506
+ )
507
+ ```
508
+
474
509
  ### Telemetry / LLM Usage Tracking (Marketplace)
475
510
 
476
511
  `TelemetryAccess` (under `db` module) writes records to the `ai_telemetry` table. **Unknown fields are stored in the `metadata` jsonb column automatically** — no schema migration is required to add new tracking dimensions.
@@ -734,8 +769,9 @@ async def run(context):
734
769
 
735
770
  **Ending a step as not completed** (SDK ≥ 3.2.1). When your agent cannot complete the step and running it again would
736
771
  give the same result — the instructions are missing, a setting is wrong — call `context.incomplete(reason, comment)` and
737
- return. The platform does not retry the step automatically; it asks a person to check it and shows the reason and the
738
- comment in the execution record.
772
+ return. The platform does not retry the step automatically; it asks a person to check it and shows the reason in the
773
+ execution record. A platform that reads the end-of-run report (below) also shows the comment there; Marketplace 3.2.0
774
+ does not show the comment.
739
775
 
740
776
  ```python
741
777
  async def run(context):
@@ -1107,6 +1143,25 @@ See the [developer portal](https://developers.fd.agenticstar.tm.softbank.jp/) fo
1107
1143
 
1108
1144
  ## Changelog
1109
1145
 
1146
+ ### 3.3.0 (2026-11-09) — storage: download a specific version (`download_file(..., version_id=...)`)
1147
+
1148
+ - **`download_file` takes an optional `version_id`** on `AzureBlobStorageClient`, `S3StorageClient` and `GCSStorageClient` (and on `StorageClientProtocol` / `StorageClientBase`). With it, the client checks and downloads that version: the Azure Blob `versionId`, the S3 `VersionId`, or the GCS generation given as a string of digits. A version that does not exist and an empty value fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS); on GCS a value that is not a number fails the same way. Without `version_id` the client calls the storage exactly as before and downloads the latest version.
1149
+ - A storage client of your own that implements `StorageClientBase` should accept the new keyword argument; a caller that does not pass it is unaffected.
1150
+
1151
+ ### 3.2.3 (2026-11-04) — storage: S3 without access keys (IRSA) / events: a failed run ends the chat message
1152
+
1153
+ 3.2.2 was not published to PyPI; 3.2.3 includes its change (the notify token below).
1154
+
1155
+ - **`S3StorageClient` works without access keys.** Leave `aws_access_key_id` and `aws_secret_access_key` both out (or empty) and the client passes no keys and lets boto3 find the credentials with its default credential chain (for example IRSA on EKS with `AWS_ROLE_ARN` + `AWS_WEB_IDENTITY_TOKEN_FILE`, environment variables, `~/.aws` files, EKS Pod Identity or an EC2 instance role; boto3 decides the order). Before, the client raised `StorageConfigError: S3 requires aws_access_key_id and aws_secret_access_key` on an EKS runner Pod that has only IRSA. Giving only one of the two keys still raises `StorageConfigError` (it is a configuration mistake, and the client does not silently fall back to other credentials). Both keys work as before, exactly as given (a non-blank key is not stripped); an empty or whitespace-only key, including a `SecretStr`, counts as not given. With no keys the client is created even when boto3 finds no credentials; the first call then fails (for example `object_exists()` returns `False`). `S3Config` keeps its field order, so positional construction is unchanged; `S3Config.from_dict` no longer requires the two keys.
1156
+ - **A failed run ends the chat message.** `create_marketplace_handler` (and so `run_marketplace_agent`) now sends `COMPLETION_FAILURE` with `finish_reason: "stop"`, the same as the platform's own agent worker. The chat front ends a message only on `"stop"`; with the previous `"error"` the failure text was added but the message kept showing as in progress. The failure is told by the message text, as before. `WebhookEventHandler` used on its own keeps `"error"` by default, so a receiver of your own that tells failures by `"error"` is unchanged; the new argument `failure_finish_reason="stop"` sends what the chat front expects. If you pointed `create_marketplace_handler` at a receiver of your own that needs `"error"`, build `WebhookEventHandler` yourself instead.
1157
+ - docs: "Ending a step as not completed" now says that the execution record shows the reason, and that the comment is shown only by a platform that reads the end-of-run report (Marketplace 3.2.0 does not show it). In 3.2.1 and 3.2.2 that section said the record shows the comment. The SDK's behavior is unchanged.
1158
+
1159
+ ### 3.2.2 (2026-10-30) — events: the webhook notification carries the execution's notify token (`ASTER_NOTIFY_TOKEN`)
1160
+
1161
+ - **`create_marketplace_handler(...)` sends `Authorization: Bearer <token>` on the webhook notification when the `ASTER_NOTIFY_TOKEN` env var is set.** The Marketplace executor issues this token for each execution and passes it to the agent Pod; the platform checks it when it receives the notification. Without a `token_provider` argument, the handler reads the env var each time it sends. When the env var is missing or empty, no `Authorization` header is sent, as before. A `token_provider` you pass is used as before, and the env var is not read. `run_marketplace_agent` uses this default, so a runner agent sends the token without code changes.
1162
+ - `WebhookEventHandler` used on its own does not read `ASTER_NOTIFY_TOKEN`; as before, it sends an `Authorization` header only when you give one (through its `token_provider` or `headers`).
1163
+ - To use it, rebuild the agent image with this SDK.
1164
+
1110
1165
  ### 3.2.1 (2026-10-28) — workflow: end a step as not completed (`context.incomplete`) with an end-of-run report / a fake runtime for testing (`agenticstar_platform.workflow.testing`)
1111
1166
 
1112
1167
  - **New `WorkflowContext.incomplete(reason, comment=None)`.** An agent that cannot complete its step, where running it again would give the same result (missing instructions, a wrong setting), ends the step as `incomplete` with `reason` as the reason code. The platform does not retry it automatically and asks a person to check it. `reason` follows the rules of `report_completion()` (lowercase snake_case of at most 32 characters; any other value becomes `incomplete` with a warning); `comment` is cut at 2,048 UTF-16 code units. The declaration comes after an audit persistence failure, cancellation, the deadline, the execution being closed elsewhere, a pod stop signal and a denied tool call, and before an exception (an exception after the declaration still ends as `incomplete`), an invalid output, a skip and a missing required output. A second declaration is not recorded. See "Ending a step as not completed" in the Workflow Runner section.
@@ -1553,4 +1608,4 @@ Marketplace SDK reliability fixes (surfaced while building agents from the guide
1553
1608
 
1554
1609
  ## Version
1555
1610
 
1556
- 3.2.1
1611
+ 3.3.0
@@ -143,6 +143,7 @@ Environment variable contract:
143
143
  | `REQUEST_SOURCE` / `AGENT_ID` | Same as above (optional) | — |
144
144
  | `DB_HOST` / `DB_PORT` / `DB_DATABASE` / `DB_USER` / `DB_PASSWORD` | Env var settings at agent registration (`PostgreSQLConfig.from_env()` contract) | ✅ |
145
145
  | `WEBHOOK_URL` | Env var settings at agent registration | ✅ |
146
+ | `ASTER_NOTIFY_TOKEN` | Injected by the Marketplace executor for each execution (SDK >= 3.2.2 sends it as `Authorization: Bearer` on the webhook notification) | — |
146
147
 
147
148
  Terminal event rules:
148
149
 
@@ -154,7 +155,8 @@ Terminal event rules:
154
155
  If you need the low-level API (to compose handlers yourself), pass
155
156
  `create_marketplace_handler(data_access, webhook_url, user_id, conversation_id, message_id)`
156
157
  (a composite handler for DB persistence + webhook notification; requires the `[db]` + `[webhook]`
157
- extras) directly to `EventEmitter`, as before.
158
+ extras) directly to `EventEmitter`, as before. Without a `token_provider`, it sends the
159
+ `ASTER_NOTIFY_TOKEN` env var as `Authorization: Bearer` when it is set (SDK >= 3.2.2).
158
160
 
159
161
  ### 2.4 Report completion for a cycle execution (SDK >= 3.0.14, `mp-chat/1`)
160
162
 
@@ -390,6 +392,39 @@ config = AzureBlobConfig.from_dict({
390
392
  client = AzureBlobStorageClient(config)
391
393
  ```
392
394
 
395
+ S3 without access keys (3.2.3): leave `aws_access_key_id` and `aws_secret_access_key` both out (or
396
+ empty). The client then passes no keys and lets boto3 find the credentials with its default
397
+ credential chain (for example IRSA on EKS, environment variables, `~/.aws` files, EKS Pod Identity
398
+ or an EC2 instance role; boto3 decides which one is used first). This is what an EKS Pod with IRSA
399
+ needs; do not also give that Pod `AWS_ACCESS_KEY_ID` in its env, which boto3 checks before IRSA.
400
+ The role needs S3 access to the bucket. Give both keys or neither: only one of them raises
401
+ `StorageConfigError`.
402
+
403
+ ```python
404
+ from agenticstar_platform.storage import S3StorageClient, S3Config
405
+
406
+ config = S3Config.from_dict({
407
+ "bucket_name": "your-bucket",
408
+ "region_name": "us-east-1",
409
+ })
410
+ client = S3StorageClient(config)
411
+ ```
412
+
413
+ A specific version (3.3.0): `download_file(object_name, download_path, version_id=...)` downloads that
414
+ version of the object instead of the latest one. The value is the Azure Blob `versionId`, the S3
415
+ `VersionId` or the GCS generation (a number as a string). A version that does not exist, and an empty
416
+ value, fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS). To keep
417
+ the older version when an object is overwritten or deleted, turn on versioning (Azure: blob versioning of
418
+ the storage account; S3 and GCS: versioning of the bucket); versions kept earlier stay readable after it is
419
+ turned off. Without `version_id` the latest version is downloaded, as before.
420
+
421
+ ```python
422
+ # S3: pass the VersionId that S3 returned for the object
423
+ result = await client.download_file(
424
+ "users/u1/report.docx", "/tmp/report.docx", version_id="3HL4kqtJlcpXroDTDmJ.rmSpXd3dIbrHY"
425
+ )
426
+ ```
427
+
393
428
  ### Telemetry / LLM Usage Tracking (Marketplace)
394
429
 
395
430
  `TelemetryAccess` (under `db` module) writes records to the `ai_telemetry` table. **Unknown fields are stored in the `metadata` jsonb column automatically** — no schema migration is required to add new tracking dimensions.
@@ -653,8 +688,9 @@ async def run(context):
653
688
 
654
689
  **Ending a step as not completed** (SDK ≥ 3.2.1). When your agent cannot complete the step and running it again would
655
690
  give the same result — the instructions are missing, a setting is wrong — call `context.incomplete(reason, comment)` and
656
- return. The platform does not retry the step automatically; it asks a person to check it and shows the reason and the
657
- comment in the execution record.
691
+ return. The platform does not retry the step automatically; it asks a person to check it and shows the reason in the
692
+ execution record. A platform that reads the end-of-run report (below) also shows the comment there; Marketplace 3.2.0
693
+ does not show the comment.
658
694
 
659
695
  ```python
660
696
  async def run(context):
@@ -1026,6 +1062,25 @@ See the [developer portal](https://developers.fd.agenticstar.tm.softbank.jp/) fo
1026
1062
 
1027
1063
  ## Changelog
1028
1064
 
1065
+ ### 3.3.0 (2026-11-09) — storage: download a specific version (`download_file(..., version_id=...)`)
1066
+
1067
+ - **`download_file` takes an optional `version_id`** on `AzureBlobStorageClient`, `S3StorageClient` and `GCSStorageClient` (and on `StorageClientProtocol` / `StorageClientBase`). With it, the client checks and downloads that version: the Azure Blob `versionId`, the S3 `VersionId`, or the GCS generation given as a string of digits. A version that does not exist and an empty value fail like a missing object (`BLOB_NOT_FOUND` on Azure, `OBJECT_NOT_FOUND` on S3 and GCS); on GCS a value that is not a number fails the same way. Without `version_id` the client calls the storage exactly as before and downloads the latest version.
1068
+ - A storage client of your own that implements `StorageClientBase` should accept the new keyword argument; a caller that does not pass it is unaffected.
1069
+
1070
+ ### 3.2.3 (2026-11-04) — storage: S3 without access keys (IRSA) / events: a failed run ends the chat message
1071
+
1072
+ 3.2.2 was not published to PyPI; 3.2.3 includes its change (the notify token below).
1073
+
1074
+ - **`S3StorageClient` works without access keys.** Leave `aws_access_key_id` and `aws_secret_access_key` both out (or empty) and the client passes no keys and lets boto3 find the credentials with its default credential chain (for example IRSA on EKS with `AWS_ROLE_ARN` + `AWS_WEB_IDENTITY_TOKEN_FILE`, environment variables, `~/.aws` files, EKS Pod Identity or an EC2 instance role; boto3 decides the order). Before, the client raised `StorageConfigError: S3 requires aws_access_key_id and aws_secret_access_key` on an EKS runner Pod that has only IRSA. Giving only one of the two keys still raises `StorageConfigError` (it is a configuration mistake, and the client does not silently fall back to other credentials). Both keys work as before, exactly as given (a non-blank key is not stripped); an empty or whitespace-only key, including a `SecretStr`, counts as not given. With no keys the client is created even when boto3 finds no credentials; the first call then fails (for example `object_exists()` returns `False`). `S3Config` keeps its field order, so positional construction is unchanged; `S3Config.from_dict` no longer requires the two keys.
1075
+ - **A failed run ends the chat message.** `create_marketplace_handler` (and so `run_marketplace_agent`) now sends `COMPLETION_FAILURE` with `finish_reason: "stop"`, the same as the platform's own agent worker. The chat front ends a message only on `"stop"`; with the previous `"error"` the failure text was added but the message kept showing as in progress. The failure is told by the message text, as before. `WebhookEventHandler` used on its own keeps `"error"` by default, so a receiver of your own that tells failures by `"error"` is unchanged; the new argument `failure_finish_reason="stop"` sends what the chat front expects. If you pointed `create_marketplace_handler` at a receiver of your own that needs `"error"`, build `WebhookEventHandler` yourself instead.
1076
+ - docs: "Ending a step as not completed" now says that the execution record shows the reason, and that the comment is shown only by a platform that reads the end-of-run report (Marketplace 3.2.0 does not show it). In 3.2.1 and 3.2.2 that section said the record shows the comment. The SDK's behavior is unchanged.
1077
+
1078
+ ### 3.2.2 (2026-10-30) — events: the webhook notification carries the execution's notify token (`ASTER_NOTIFY_TOKEN`)
1079
+
1080
+ - **`create_marketplace_handler(...)` sends `Authorization: Bearer <token>` on the webhook notification when the `ASTER_NOTIFY_TOKEN` env var is set.** The Marketplace executor issues this token for each execution and passes it to the agent Pod; the platform checks it when it receives the notification. Without a `token_provider` argument, the handler reads the env var each time it sends. When the env var is missing or empty, no `Authorization` header is sent, as before. A `token_provider` you pass is used as before, and the env var is not read. `run_marketplace_agent` uses this default, so a runner agent sends the token without code changes.
1081
+ - `WebhookEventHandler` used on its own does not read `ASTER_NOTIFY_TOKEN`; as before, it sends an `Authorization` header only when you give one (through its `token_provider` or `headers`).
1082
+ - To use it, rebuild the agent image with this SDK.
1083
+
1029
1084
  ### 3.2.1 (2026-10-28) — workflow: end a step as not completed (`context.incomplete`) with an end-of-run report / a fake runtime for testing (`agenticstar_platform.workflow.testing`)
1030
1085
 
1031
1086
  - **New `WorkflowContext.incomplete(reason, comment=None)`.** An agent that cannot complete its step, where running it again would give the same result (missing instructions, a wrong setting), ends the step as `incomplete` with `reason` as the reason code. The platform does not retry it automatically and asks a person to check it. `reason` follows the rules of `report_completion()` (lowercase snake_case of at most 32 characters; any other value becomes `incomplete` with a warning); `comment` is cut at 2,048 UTF-16 code units. The declaration comes after an audit persistence failure, cancellation, the deadline, the execution being closed elsewhere, a pod stop signal and a denied tool call, and before an exception (an exception after the declaration still ends as `incomplete`), an invalid output, a skip and a missing required output. A second declaration is not recorded. See "Ending a step as not completed" in the Workflow Runner section.
@@ -1472,4 +1527,4 @@ Marketplace SDK reliability fixes (surfaced while building agents from the guide
1472
1527
 
1473
1528
  ## Version
1474
1529
 
1475
- 3.2.1
1530
+ 3.3.0
@@ -9,7 +9,7 @@ import importlib
9
9
  import importlib.util
10
10
  from typing import TYPE_CHECKING
11
11
 
12
- __version__ = "3.2.1"
12
+ __version__ = "3.3.0"
13
13
 
14
14
  # Common utilities are internal - not exported as public API
15
15
  # Use agenticstar_platform.common for internal SDK development only
@@ -33,6 +33,7 @@ Example:
33
33
  import asyncio
34
34
  import json
35
35
  import logging
36
+ import os
36
37
  from typing import Any, Callable, Dict, List, Optional
37
38
 
38
39
  from .types import EventType
@@ -249,6 +250,7 @@ class WebhookEventHandler:
249
250
  chunk_type_map: Optional[Dict[EventType, str]] = None,
250
251
  request_source: Optional[str] = None,
251
252
  message_type_map: Optional[Dict[EventType, str]] = None,
253
+ failure_finish_reason: str = "error",
252
254
  ):
253
255
  """
254
256
  WebhookEventHandlerを初期化
@@ -269,6 +271,10 @@ class WebhookEventHandler:
269
271
  message_type_map: EventType→トップレベルtypeのカスタムマッピング
270
272
  (オプション)。省略時は HITL系→"vnc_hitl_event"、
271
273
  PROGRESS_MESSAGE→"progress_message" を切り替えるデフォルトを使用。
274
+ failure_finish_reason: COMPLETION_FAILURE の finish_reason(既定 "error"。3.2.3)。
275
+ AgenticStar のチャット画面(chatboardfront の監視)へ送るときは "stop" にする:
276
+ 受信側は "stop" のときだけメッセージを終わらせ、"error" は読まない(本体の worker も
277
+ 失敗を "stop" で送る)。create_marketplace_handler はこれを "stop" にして作る
272
278
 
273
279
  Example:
274
280
  >>> handler = WebhookEventHandler(
@@ -309,10 +315,10 @@ class WebhookEventHandler:
309
315
  EventType.FINAL_RESULT: None,
310
316
  }
311
317
 
312
- # finish_reasonマッピング
318
+ # finish_reasonマッピング(失敗の値は failure_finish_reason。既定 "error" は従来どおり)
313
319
  self._finish_reason_map = {
314
320
  EventType.COMPLETION_SUCCESS: "stop",
315
- EventType.COMPLETION_FAILURE: "error",
321
+ EventType.COMPLETION_FAILURE: failure_finish_reason,
316
322
  }
317
323
 
318
324
  logger.debug(
@@ -502,6 +508,20 @@ class CompositeEventHandler:
502
508
  return None
503
509
 
504
510
 
511
+ # 完了の知らせ(/webhook/notify)に付ける実行ごとのトークンの env。
512
+ # Marketplace executor が実行ごとに発行し、会話の Pod に渡す。受信側(front の監視)が
513
+ # Authorization: Bearer で確かめる。
514
+ NOTIFY_TOKEN_ENV = "ASTER_NOTIFY_TOKEN"
515
+
516
+
517
+ def _notify_token_from_env() -> Optional[str]:
518
+ """env ASTER_NOTIFY_TOKEN から知らせのトークンを返す(無い・空なら None)
519
+
520
+ create_marketplace_handler の既定の token_provider。送るたびに env を読む。
521
+ """
522
+ return os.environ.get(NOTIFY_TOKEN_ENV) or None
523
+
524
+
505
525
  def create_marketplace_handler(
506
526
  data_access: Any,
507
527
  webhook_url: str,
@@ -522,12 +542,19 @@ def create_marketplace_handler(
522
542
  user_id: ユーザーID
523
543
  conversation_id: 会話ID
524
544
  message_id: メッセージID
525
- token_provider: 認証トークン取得関数(オプション)
545
+ token_provider: 認証トークン取得関数(オプション)。
546
+ 省略時(None)は env ASTER_NOTIFY_TOKEN を送るたびに読む既定の関数を使い、
547
+ 値があれば Webhook に Authorization: Bearer <値> を付ける。env が無い・空なら付けない
548
+ (Marketplace executor が実行ごとに発行して Pod に渡すトークン。呼び出し側のコードは
549
+ 変えなくてよい。SDK 3.2.2 から)。明示した場合はその関数だけを使い、env は読まない。
526
550
  request_source: リクエスト発信元("internal" / "external")。
527
551
  受信側で Progress SSE 配信 と 外部Webhook送信 の振り分けに使われる。
528
552
  外部API経由(extapi)からの呼び出しでは "external" を指定すること。
529
553
  通常はPod起動スクリプトで os.environ.get("REQUEST_SOURCE", "internal") を渡す。
530
554
 
555
+ 失敗の完了(COMPLETION_FAILURE)は finish_reason "stop" で送る(3.2.3。チャット画面は "stop" で
556
+ メッセージを終わらせる。WebhookEventHandler の既定 "error" とは違う)。
557
+
531
558
  Returns:
532
559
  CompositeEventHandler: DB + Webhookの複合ハンドラー
533
560
 
@@ -561,8 +588,14 @@ def create_marketplace_handler(
561
588
  webhook_url=webhook_url,
562
589
  conversation_id=conversation_id,
563
590
  message_id=message_id,
564
- token_provider=token_provider,
591
+ token_provider=(
592
+ token_provider if token_provider is not None else _notify_token_from_env
593
+ ),
565
594
  request_source=request_source,
595
+ # 失敗も "stop"(3.2.3): 受信側のチャット画面(chatboardfront の監視)は "stop" のときだけ
596
+ # メッセージを終わらせ、"error" は読まない。本体の worker も COMPLETION_FAILURE を "stop" で送る
597
+ # (src/subscribers/common.py の get_finish_reason)。失敗の中身は本文で伝わる
598
+ failure_finish_reason="stop",
566
599
  )
567
600
 
568
601
  return CompositeEventHandler([db_handler, webhook_handler])
@@ -67,7 +67,7 @@ from .db import DataAccess, PostgreSQLConfig, create_postgresql_manager
67
67
  from .db.execution_access import ExecutionAccess
68
68
  from .db.started_fence import StartedFenceTaken, take_started_fence
69
69
  from .events import EventEmitter, EventType
70
- from .events.handlers import create_marketplace_handler
70
+ from .events.handlers import NOTIFY_TOKEN_ENV, create_marketplace_handler
71
71
 
72
72
  logger = logging.getLogger(__name__)
73
73
 
@@ -315,6 +315,8 @@ async def arun_marketplace_agent(
315
315
  conversation_id=identity["CONVERSATION_ID"],
316
316
  message_id=identity["MESSAGE_ID"],
317
317
  request_source=request_source or env.get("REQUEST_SOURCE", "internal"),
318
+ # 完了の知らせの実行ごとのトークン(3.2.2)。identity・WEBHOOK_URL と同じく渡された env から読む
319
+ token_provider=lambda: env.get(NOTIFY_TOKEN_ENV) or None,
318
320
  )
319
321
 
320
322
  execution_id = identity["EXECUTION_ID"]
@@ -360,6 +360,7 @@ class AzureBlobStorageClient(StorageClientBase):
360
360
  self,
361
361
  object_name: str,
362
362
  download_path: str,
363
+ version_id: Optional[str] = None,
363
364
  ) -> DownloadResult:
364
365
  """
365
366
  ファイルをダウンロード(ストリーミング)
@@ -370,6 +371,8 @@ class AzureBlobStorageClient(StorageClientBase):
370
371
  Args:
371
372
  object_name: ダウンロードするBlob名
372
373
  download_path: ダウンロード先のローカルパス
374
+ version_id: Blob の版 (versionId)。指せばその版を取る (無い版は BLOB_NOT_FOUND)。
375
+ 省略時は最新
373
376
 
374
377
  Returns:
375
378
  DownloadResult: ダウンロード結果
@@ -400,12 +403,22 @@ class AzureBlobStorageClient(StorageClientBase):
400
403
  error_code="STORAGE_NOT_ENABLED",
401
404
  )
402
405
 
406
+ if version_id is not None and not version_id.strip():
407
+ return DownloadResult(
408
+ success=False,
409
+ object_name=object_name,
410
+ error=f"Blob not found: {object_name}",
411
+ error_code="BLOB_NOT_FOUND",
412
+ )
413
+
403
414
  try:
404
415
  blob_client = self._get_blob_client(object_name)
416
+ # 版を指すときだけ version_id を渡す (省略時は今までと同じ呼び方で最新)
417
+ version_kwargs = {"version_id": version_id} if version_id is not None else {}
405
418
 
406
419
  # 存在確認
407
420
  exists = await asyncio.get_event_loop().run_in_executor(
408
- None, blob_client.exists
421
+ None, lambda: blob_client.exists(**version_kwargs)
409
422
  )
410
423
  if not exists:
411
424
  return DownloadResult(
@@ -422,7 +435,7 @@ class AzureBlobStorageClient(StorageClientBase):
422
435
  # ストリーミングダウンロード(メモリ効率化)
423
436
  def _streaming_download():
424
437
  with open(download_path_obj, 'wb') as f:
425
- download_stream = blob_client.download_blob()
438
+ download_stream = blob_client.download_blob(**version_kwargs)
426
439
  # chunks()でチャンク単位でダウンロード
427
440
  for chunk in download_stream.chunks():
428
441
  f.write(chunk)