actions-runtime 1.1.0__tar.gz → 1.1.2__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.
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/PKG-INFO +1 -1
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/build.py +20 -32
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/pyproject.toml +2 -2
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/__init__.py +1 -1
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_download_rcc.py +22 -32
- actions_runtime-1.1.2/src/actions/server/_rcc_platform.py +55 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_rcc_runtime_adapter.py +2 -2
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_server.py +8 -0
- actions_runtime-1.1.2/src/actions/server/decisions/__init__.py +1 -0
- actions_runtime-1.1.2/src/actions/server/decisions/api.py +102 -0
- actions_runtime-1.1.2/src/actions/server/decisions/fixtures.py +57 -0
- actions_runtime-1.1.2/src/actions/server/decisions/models.py +146 -0
- actions_runtime-1.1.2/src/actions/server/decisions/openai.py +201 -0
- actions_runtime-1.1.2/src/actions/server/decisions/service.py +327 -0
- actions_runtime-1.1.2/src/actions/server/decisions/work_items.py +541 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/package_revision_compiler.py +4 -4
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/bootstrap.py +2 -2
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/rcc_execution.py +1 -1
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_execution.py +1 -1
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_validation.py +1 -1
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/sql_service.py +4 -2
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/README.md +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/oauth2/actions-oauth-config.yaml +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/oauth2/oauth-config.yaml +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/README.md +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/__main__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_action_package_handler.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_actions_cloud.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_actions_import.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_actions_process_pool.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_actions_run.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_actions_run_helpers.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_action_package.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_action_routes.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_analytics.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_oauth2.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_robots.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_run.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_schedules.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_secrets.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_triggers.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_api_work_items.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_app.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_artifact_storage.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_ask_user.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_browser_session.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/build_executable.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/entitlements.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/file_from_function.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/mcp_bundle.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/process_call.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/py.typed +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/rcc_bundle.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/root_dir.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/signing.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/version_from_github_actions.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/workflows.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_build_common/zip_assets.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_cli_helpers.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_cli_impl.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/action_package_handling/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/action_package_handling/cli_errors.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/app_mutex.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/autoexit.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/callback.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/gallery.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/gen_certificate.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/locations.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/ls_protocols.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/monitor.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/null.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/oauth2_settings.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/_conda_deps.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/_deps_protocols.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/_package_deps.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/_pip_deps.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/analyzer.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/conda_cloud.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/conda_impl/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/conda_impl/conda_channel.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/conda_impl/conda_match_spec.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/conda_impl/conda_path.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/conda_impl/conda_url.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/conda_impl/conda_version.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/pip_impl/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/pip_impl/pip_distlib_util.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/pip_impl/pip_packaging_structure.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/pip_impl/pip_packaging_version.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_deps/pypi_cloud.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/package_exclude.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/process.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/process_logging.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/protocols.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/py.typed +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/run_in_thread.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/system_mutex.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/termcolors/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/text.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/tools.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/uris.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/url_callback_server.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/wait_for.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_common/yaml_with_location.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_community_expose.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_community_expose_lifecycle.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_database.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_datadir_commands.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_datadir_restore.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_devenv.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_directory_publication.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_encryption.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_errors.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_errors_action_server.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_gen_ids.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_local_authorization.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_local_provider_setup.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_mode.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_models.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_new_project.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_new_project_helpers.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_notifications.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_oauth2.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_oauth2_config.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_portable_paths.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_preload_actions/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_preload_actions/preload_actions.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_preload_actions/preload_actions_autoexit.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_preload_actions/preload_actions_server_main.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_preload_actions/preload_actions_streams.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_preload_actions/preload_actions_teardown.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_protocols.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_rcc.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_rcc_robot_utils.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/auth.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/callback.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/constants.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/log_custom_handler.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/log_formatter.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/process.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/run_in_thread.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robo_utils/system_mutex.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robot_artifacts.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_robot_inputs.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_runs_state_cache.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_scheduler.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_selftest.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_server_websockets.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_settings.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_slugify.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_static_contents.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_storage.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_triggers.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_user_session.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_watcher.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_whitelist.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_work_items_import.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/_work_items_paths.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/api.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/bin/.gitignore +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/canvas_lifecycle.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/cli.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/_invoice_task.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/canvas.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/canvas_mcp.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/generated.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/invoice_effects.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/invoice_worker.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/invoices.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/knowledge.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/knowledge_execution.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/knowledge_normalization.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/knowledge_operations.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/knowledge_values.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/knowledge_versions.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/parquet_gate.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/reconciliation.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/review.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/review_models.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/sealed_duckdb.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/sealed_postgres.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/sealed_sources.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/data_queries/service.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/canonical.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/capability_bundle.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/capability_bundle_compiler.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/foundry_repository.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/foundry_service.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/foundry_values.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/ids.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/logical_bindings.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/provider_registry.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/source_manifest.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/source_read.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/deployments/source_staging.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/env/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/activated_execution.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/app_sessions.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/authoring.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/authoring_bindings.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/authoring_values.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/authoring_work_items.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/boot.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/discovery.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/execution_port.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/execution_profiles.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/execution_selection.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/generated_knowledge.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/generic_execution_port.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/generic_input_view.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/generic_output_view.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/generic_projection.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/generic_view.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/generic_work_item_execution.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/headless_discovery.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/internal_child_admission.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/internal_child_ipc_server.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/internal_child_lifecycle.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/internal_delegation.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/invocation_discovery.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/knowledge_authority.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/knowledge_host.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/knowledge_models.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/logical_execution.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/logical_preparation.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/logical_receipts.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/mcp.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/model_invocation_publication.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/models.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/package_registry.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/provider_bootstrap.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/provider_catalog.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/provider_config.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/provider_execution.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/provider_models.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/provider_registry.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/reviewed_view.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_authoring.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_execution_selection.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_journal.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_lifecycle.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_package_admission.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_package_builder.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_receipts.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_retained_projection.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_runtime_profile.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_runtime_runner.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_validation_store.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/robot_work_item_authority.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/run_output_transport.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/runtime_profile.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/sql_authoring.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/sql_authorization.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/standalone_execution.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/foundry/work_item_execution.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/index.html +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/admission.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/api.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/authorization.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/composite.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/contracts.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/generic_service.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/mcp.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/model_publication.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/native_completion.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/native_runs.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/managed_work_items/publication_policy.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/mcp/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/mcp/gateway_metadata.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/mcp/resource_routing.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/mcp/setup_mcp_server_from_actions.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/mcp/setup_mcp_server_v2.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/mcp/task_adapter.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/mcp/task_wire.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_action_enabled.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_action_managed_params.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_action_options.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_code_verifier.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_foundry_records.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_invoice_reviews.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_is_consequential.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_knowledge_revisions.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_mcp_catalog_names.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_mcp_resource_routing.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_provider_registry.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_request_id_to_run.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_robot_run_columns.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_run_child_lineage.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_run_execution_intent.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_run_outputs.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_run_task_receipts.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_schedules.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_add_session_and_indexes.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_align_schema_indexes.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_allow_package_less_canvas.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_initial.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_reconcile_run_columns.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/migrations/migration_reconcile_schema.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/_package_build.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/_package_build_cli.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/_package_metadata.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/_package_publish.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/_package_publish_api.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/_package_reader.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/package/package_exclude.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/py.typed +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/cancellation_confirmation.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/claimed_intent.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/claimed_task_state.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/detached.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/filesystem.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/models.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/service.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/task_host.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/task_service.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/transport.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/run_outputs/types.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/action-templates.yaml +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/action-templates.zip +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/zips/advanced.zip +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/zips/basic.zip +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/zips/canvas-query.zip +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/zips/mcp-v2-showcase.zip +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/zips/minimal.zip +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/templates/zips/workflow-producer-consumer.zip +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/README.md +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/action_package_handling/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/action_package_handling/cli_errors.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/gen_certificate.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/ls_protocols.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/oauth2_settings.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/_conda_deps.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/_deps_protocols.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/_package_deps.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/_pip_deps.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/analyzer.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/conda_cloud.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/conda_impl/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_channel.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_match_spec.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_path.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_url.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/conda_impl/conda_version.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/pip_impl/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/pip_impl/pip_distlib_util.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/pip_impl/pip_packaging_structure.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/pip_impl/pip_packaging_version.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/package_deps/pypi_cloud.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/termcolors/__init__.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/url_callback_server.py +0 -0
- {actions_runtime-1.1.0 → actions_runtime-1.1.2}/src/actions/server/vendored_deps/yaml_with_location.py +0 -0
|
@@ -10,7 +10,7 @@ log = logging.getLogger(__name__)
|
|
|
10
10
|
|
|
11
11
|
# Note: referenced here and in actions.server._download_rcc
|
|
12
12
|
# Using joshyorko/rcc open-source version
|
|
13
|
-
RCC_VERSION = "18.19.
|
|
13
|
+
RCC_VERSION = "18.19.12"
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
CURDIR = Path(__file__).parent.absolute()
|
|
@@ -127,46 +127,34 @@ def _download_rcc():
|
|
|
127
127
|
|
|
128
128
|
if sys.platform == "win32":
|
|
129
129
|
rcc_path = (
|
|
130
|
-
CURDIR
|
|
131
|
-
/ "src"
|
|
132
|
-
/ "actions"
|
|
133
|
-
/ "server"
|
|
134
|
-
/ "bin"
|
|
135
|
-
/ f"rcc-{RCC_VERSION}.exe"
|
|
130
|
+
CURDIR / "src" / "actions" / "server" / "bin" / f"rcc-{RCC_VERSION}.exe"
|
|
136
131
|
)
|
|
137
132
|
else:
|
|
138
|
-
rcc_path =
|
|
139
|
-
CURDIR / "src" / "actions" / "server" / "bin" / f"rcc-{RCC_VERSION}"
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
machine = platform.machine()
|
|
143
|
-
is_64 = not machine or "64" in machine
|
|
133
|
+
rcc_path = CURDIR / "src" / "actions" / "server" / "bin" / f"rcc-{RCC_VERSION}"
|
|
144
134
|
|
|
145
|
-
#
|
|
146
|
-
|
|
147
|
-
if sys.platform == "win32":
|
|
148
|
-
if is_64:
|
|
149
|
-
asset_name = "rcc-windows64.exe"
|
|
150
|
-
else:
|
|
151
|
-
raise RuntimeError("Unsupported platform (windows 32 bits)")
|
|
135
|
+
# Build isolation does not install actions.server or its runtime dependencies.
|
|
136
|
+
import runpy
|
|
152
137
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
else:
|
|
157
|
-
asset_name = "rcc-macos64"
|
|
158
|
-
|
|
159
|
-
else:
|
|
160
|
-
if is_64:
|
|
161
|
-
asset_name = "rcc-linux64"
|
|
162
|
-
else:
|
|
163
|
-
raise RuntimeError("Unsupported platform (linux 32 bits)")
|
|
138
|
+
contract = runpy.run_path(str(CURDIR / "src/actions/server/_rcc_platform.py"))
|
|
139
|
+
asset_name = contract["rcc_asset_name"](sys.platform, platform.machine())
|
|
140
|
+
contract["expected_sha256"](RCC_VERSION, asset_name)
|
|
164
141
|
|
|
165
142
|
# GitHub releases URL format
|
|
166
143
|
rcc_url = f"https://github.com/joshyorko/rcc/releases/download/v{RCC_VERSION}/{asset_name}"
|
|
167
144
|
|
|
168
145
|
print(f"Downloading '{rcc_url}' to '{rcc_path}'")
|
|
169
|
-
|
|
146
|
+
import tempfile
|
|
147
|
+
|
|
148
|
+
rcc_path.parent.mkdir(parents=True, exist_ok=True)
|
|
149
|
+
with tempfile.NamedTemporaryFile(dir=rcc_path.parent, delete=False) as stream:
|
|
150
|
+
temporary = Path(stream.name)
|
|
151
|
+
try:
|
|
152
|
+
_download_with_resume(rcc_url, temporary)
|
|
153
|
+
contract["verify_rcc"](temporary, RCC_VERSION, asset_name)
|
|
154
|
+
temporary.replace(rcc_path)
|
|
155
|
+
finally:
|
|
156
|
+
temporary.unlink(missing_ok=True)
|
|
157
|
+
return rcc_path
|
|
170
158
|
|
|
171
159
|
|
|
172
160
|
def build(*args, **kwarg):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "actions-runtime"
|
|
3
|
-
version = "1.1.
|
|
3
|
+
version = "1.1.2"
|
|
4
4
|
description = "Actions Runtime — serve Python actions through HTTP and MCP"
|
|
5
5
|
authors = ["Joshua Yorko"]
|
|
6
6
|
maintainers = ["Joshua Yorko"]
|
|
@@ -13,7 +13,7 @@ include = [
|
|
|
13
13
|
{ path = "oauth2/*.yaml", format = "sdist" },
|
|
14
14
|
"src/actions/server/_static_contents.py",
|
|
15
15
|
{ path = "src/actions/server/_oauth2_config.py", format = ["sdist", "wheel"] },
|
|
16
|
-
{ path = "src/actions/server/bin/rcc-18.19.
|
|
16
|
+
{ path = "src/actions/server/bin/rcc-18.19.12*", format = ["sdist", "wheel"] },
|
|
17
17
|
"src/actions/server/templates/action-templates.zip",
|
|
18
18
|
"src/actions/server/templates/action-templates.yaml",
|
|
19
19
|
]
|
|
@@ -8,7 +8,7 @@ log = logging.getLogger(__name__)
|
|
|
8
8
|
|
|
9
9
|
# Note: also referenced in action_server/build.py
|
|
10
10
|
# Using joshyorko/rcc open-source version
|
|
11
|
-
RCC_VERSION = "18.19.
|
|
11
|
+
RCC_VERSION = "18.19.12"
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def get_default_rcc_location() -> Path:
|
|
@@ -29,6 +29,11 @@ def download_rcc(
|
|
|
29
29
|
"""
|
|
30
30
|
import os
|
|
31
31
|
|
|
32
|
+
from actions.server._rcc_platform import expected_sha256, rcc_asset_name, verify_rcc
|
|
33
|
+
|
|
34
|
+
asset_name = rcc_asset_name(sys.platform, platform.machine())
|
|
35
|
+
expected_sha256(RCC_VERSION, asset_name)
|
|
36
|
+
|
|
32
37
|
from actions.server._common.system_mutex import timed_acquire_mutex
|
|
33
38
|
|
|
34
39
|
if target:
|
|
@@ -38,35 +43,13 @@ def download_rcc(
|
|
|
38
43
|
|
|
39
44
|
if not force:
|
|
40
45
|
if rcc_path.exists():
|
|
46
|
+
verify_rcc(rcc_path, RCC_VERSION, asset_name)
|
|
41
47
|
return rcc_path
|
|
42
48
|
|
|
43
49
|
log.info(f"RCC not available at: {rcc_path}. Downloading.")
|
|
44
50
|
|
|
45
51
|
rcc_path.parent.mkdir(parents=True, exist_ok=True)
|
|
46
52
|
|
|
47
|
-
machine = platform.machine()
|
|
48
|
-
is_64 = not machine or "64" in machine
|
|
49
|
-
|
|
50
|
-
# Using joshyorko/rcc GitHub releases
|
|
51
|
-
# Asset names: rcc-windows64.exe, rcc-macosarm64, rcc-macos64, rcc-linux64
|
|
52
|
-
if sys.platform == "win32":
|
|
53
|
-
if is_64:
|
|
54
|
-
asset_name = "rcc-windows64.exe"
|
|
55
|
-
else:
|
|
56
|
-
raise RuntimeError("Unsupported platform (windows 32 bits)")
|
|
57
|
-
|
|
58
|
-
elif sys.platform == "darwin":
|
|
59
|
-
if machine == "arm64":
|
|
60
|
-
asset_name = "rcc-macosarm64"
|
|
61
|
-
else:
|
|
62
|
-
asset_name = "rcc-macos64"
|
|
63
|
-
|
|
64
|
-
else:
|
|
65
|
-
if is_64:
|
|
66
|
-
asset_name = "rcc-linux64"
|
|
67
|
-
else:
|
|
68
|
-
raise RuntimeError("Unsupported platform (linux 32 bits)")
|
|
69
|
-
|
|
70
53
|
# GitHub releases URL format
|
|
71
54
|
rcc_url = f"https://github.com/joshyorko/rcc/releases/download/v{RCC_VERSION}/{asset_name}"
|
|
72
55
|
|
|
@@ -81,18 +64,25 @@ def download_rcc(
|
|
|
81
64
|
):
|
|
82
65
|
if not force and rcc_path.exists():
|
|
83
66
|
# It was downloaded by some other process while we were waiting for the mutex.
|
|
67
|
+
verify_rcc(rcc_path, RCC_VERSION, asset_name)
|
|
84
68
|
return rcc_path
|
|
85
69
|
|
|
86
70
|
import actions_http
|
|
87
71
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
72
|
+
temporary = rcc_path.with_name(rcc_path.name + ".download")
|
|
73
|
+
try:
|
|
74
|
+
status = actions_http.download_with_resume(
|
|
75
|
+
rcc_url, temporary, make_executable=True, overwrite_existing=True
|
|
76
|
+
)
|
|
77
|
+
if status.status in (
|
|
78
|
+
actions_http.DownloadStatus.HTTP_ERROR,
|
|
79
|
+
actions_http.DownloadStatus.PARTIAL,
|
|
80
|
+
):
|
|
81
|
+
raise RuntimeError(f"Failed to download RCC: {status.status}")
|
|
82
|
+
verify_rcc(temporary, RCC_VERSION, asset_name)
|
|
83
|
+
temporary.replace(rcc_path)
|
|
84
|
+
finally:
|
|
85
|
+
temporary.unlink(missing_ok=True)
|
|
96
86
|
|
|
97
87
|
return rcc_path
|
|
98
88
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""Dependency-free RCC platform contract shared by wheel builds and startup."""
|
|
2
|
+
|
|
3
|
+
import hashlib
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
# Add only an official joshyorko/rcc release digest after checking its published
|
|
7
|
+
# checksum and trust metadata. Candidate builds must never populate this table.
|
|
8
|
+
LINUX_ARM64_RELEASE_SHA256: dict[str, str] = {
|
|
9
|
+
"18.19.12": "e161f9d750776c376ef19ba15676b166447bc12096d208de2ecbbe51899cb1d2",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def rcc_asset_name(system: str, machine: str) -> str:
|
|
14
|
+
machine = machine.lower()
|
|
15
|
+
assets = {
|
|
16
|
+
("linux", "x86_64"): "rcc-linux64",
|
|
17
|
+
("linux", "amd64"): "rcc-linux64",
|
|
18
|
+
("linux", "aarch64"): "rcc-linuxarm64",
|
|
19
|
+
("linux", "arm64"): "rcc-linuxarm64",
|
|
20
|
+
("darwin", "arm64"): "rcc-macosarm64",
|
|
21
|
+
("darwin", "aarch64"): "rcc-macosarm64",
|
|
22
|
+
("darwin", "x86_64"): "rcc-macos64",
|
|
23
|
+
("win32", "amd64"): "rcc-windows64.exe",
|
|
24
|
+
("win32", "x86_64"): "rcc-windows64.exe",
|
|
25
|
+
}
|
|
26
|
+
try:
|
|
27
|
+
return assets[system, machine]
|
|
28
|
+
except KeyError:
|
|
29
|
+
raise RuntimeError(f"Unsupported RCC platform: {system}/{machine}") from None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def expected_sha256(version: str, asset: str) -> str | None:
|
|
33
|
+
if asset != "rcc-linuxarm64":
|
|
34
|
+
return None
|
|
35
|
+
digest = LINUX_ARM64_RELEASE_SHA256.get(version)
|
|
36
|
+
if digest is None:
|
|
37
|
+
raise RuntimeError(
|
|
38
|
+
f"RCC {version} Linux ARM64 requires an official release checksum "
|
|
39
|
+
"and verified trust metadata; candidate builds are test-only."
|
|
40
|
+
)
|
|
41
|
+
return digest
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def verify_rcc(path: Path, version: str, asset: str) -> None:
|
|
45
|
+
digest = expected_sha256(version, asset)
|
|
46
|
+
if digest is None:
|
|
47
|
+
return
|
|
48
|
+
with path.open("rb") as stream:
|
|
49
|
+
header = stream.read(20)
|
|
50
|
+
stream.seek(0)
|
|
51
|
+
actual = hashlib.file_digest(stream, "sha256").hexdigest()
|
|
52
|
+
if actual != digest:
|
|
53
|
+
raise RuntimeError(f"RCC checksum mismatch for {asset}")
|
|
54
|
+
if header[:6] != b"\x7fELF\x02\x01" or header[18:20] != b"\xb7\x00":
|
|
55
|
+
raise RuntimeError("RCC Linux ARM64 must be a little-endian AArch64 ELF64")
|
|
@@ -21,9 +21,9 @@ from urllib.parse import urlsplit
|
|
|
21
21
|
|
|
22
22
|
from actions.server._common.process import ProcessTreeCleanupResult
|
|
23
23
|
|
|
24
|
-
RCC_VERSION = "v18.19.
|
|
24
|
+
RCC_VERSION = "v18.19.12"
|
|
25
25
|
# Read compatibility preserves immutable plans; executable checks stay primary-pinned.
|
|
26
|
-
RCC_METADATA_VERSIONS = frozenset((RCC_VERSION, "v18.19.7", "v18.19.3"))
|
|
26
|
+
RCC_METADATA_VERSIONS = frozenset((RCC_VERSION, "v18.19.8", "v18.19.7", "v18.19.3"))
|
|
27
27
|
RCC_CONTRACT_VERSION = "rcc-runtime/v1"
|
|
28
28
|
_DIGEST_RE = re.compile(r"^sha256:[0-9a-f]{64}$")
|
|
29
29
|
_PROVIDER_PROFILE_RE = re.compile(r"^[a-z0-9][a-z0-9._-]{0,62}$")
|
|
@@ -21,6 +21,7 @@ if typing.TYPE_CHECKING:
|
|
|
21
21
|
from asyncio.events import AbstractEventLoop
|
|
22
22
|
|
|
23
23
|
from .data_queries.canvas_mcp import InvoiceCanvasMcp
|
|
24
|
+
from .decisions.work_items import ClaimedDecisionService
|
|
24
25
|
from .foundry.mcp import CanvasMcp
|
|
25
26
|
from .managed_work_items.api import Authenticate as ManagedAuthenticate
|
|
26
27
|
from .managed_work_items.contracts import ManagedWorkItemsPort
|
|
@@ -513,6 +514,7 @@ def start_server(
|
|
|
513
514
|
canvas_foundry: "CanvasMcp | None" = None,
|
|
514
515
|
managed_work_items: "ManagedWorkItemsPort | None" = None,
|
|
515
516
|
managed_authenticate: "ManagedAuthenticate | None" = None,
|
|
517
|
+
claimed_decisions: "ClaimedDecisionService | None" = None,
|
|
516
518
|
) -> None:
|
|
517
519
|
import threading
|
|
518
520
|
from dataclasses import asdict
|
|
@@ -700,6 +702,12 @@ def start_server(
|
|
|
700
702
|
create_managed_work_items_router(managed_work_items, managed_authenticate),
|
|
701
703
|
include_in_schema=settings.full_openapi_spec,
|
|
702
704
|
)
|
|
705
|
+
from .decisions.api import create_router as create_decisions_router
|
|
706
|
+
|
|
707
|
+
app.include_router(
|
|
708
|
+
create_decisions_router(claimed_decisions, managed_authenticate),
|
|
709
|
+
include_in_schema=settings.full_openapi_spec,
|
|
710
|
+
)
|
|
703
711
|
app.include_router(
|
|
704
712
|
run_api_router,
|
|
705
713
|
include_in_schema=settings.full_openapi_spec,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Optional decision services; managed transport requires trusted host injection."""
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"""Default-off authenticated projection beside managed Work Items."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal
|
|
4
|
+
|
|
5
|
+
from fastapi import APIRouter, Request
|
|
6
|
+
from fastapi.responses import JSONResponse
|
|
7
|
+
from pydantic import ValidationError
|
|
8
|
+
from starlette.concurrency import run_in_threadpool
|
|
9
|
+
|
|
10
|
+
from actions.server.managed_work_items.api import Authenticate, ManagedError
|
|
11
|
+
from actions.server.managed_work_items.contracts import API_PREFIX, ManagedCaller
|
|
12
|
+
from actions.server.run_outputs.service import AccessDenied
|
|
13
|
+
|
|
14
|
+
from .models import Value
|
|
15
|
+
from .openai import ProviderFailure
|
|
16
|
+
from .work_items import ClaimedDecisionService, ClaimedEvaluation, ClaimedReceipt
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Resolve(Value):
|
|
20
|
+
receipt: ClaimedReceipt
|
|
21
|
+
evaluation: ClaimedEvaluation
|
|
22
|
+
decision: Literal["approve", "reject"]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def create_router(
|
|
26
|
+
service: ClaimedDecisionService | None, authenticate: Authenticate | None
|
|
27
|
+
) -> APIRouter:
|
|
28
|
+
router = APIRouter(prefix=API_PREFIX + "/decisions")
|
|
29
|
+
|
|
30
|
+
def error(code, status):
|
|
31
|
+
return JSONResponse(
|
|
32
|
+
status_code=status,
|
|
33
|
+
content={
|
|
34
|
+
"schema_version": "actions.claimed-decision/v1",
|
|
35
|
+
"error": {"code": code},
|
|
36
|
+
},
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
async def invoke(request, operation, receipt_id=None):
|
|
40
|
+
if service is None or authenticate is None:
|
|
41
|
+
return error("unconfigured", 503)
|
|
42
|
+
try:
|
|
43
|
+
try:
|
|
44
|
+
caller = await authenticate(request)
|
|
45
|
+
if not isinstance(caller, ManagedCaller):
|
|
46
|
+
return error("not_authenticated", 401)
|
|
47
|
+
except Exception:
|
|
48
|
+
return error("not_authenticated", 401)
|
|
49
|
+
if operation == "read":
|
|
50
|
+
result = await run_in_threadpool(service.status, caller, receipt_id)
|
|
51
|
+
else:
|
|
52
|
+
body = bytearray()
|
|
53
|
+
async for chunk in request.stream():
|
|
54
|
+
body.extend(chunk)
|
|
55
|
+
if len(body) > 65536:
|
|
56
|
+
return error("request_too_large", 413)
|
|
57
|
+
if operation == "evaluate":
|
|
58
|
+
command = ClaimedEvaluation.model_validate_json(body)
|
|
59
|
+
result = await run_in_threadpool(service.evaluate, caller, command)
|
|
60
|
+
else:
|
|
61
|
+
command = Resolve.model_validate_json(body)
|
|
62
|
+
result = await run_in_threadpool(
|
|
63
|
+
service.resolve,
|
|
64
|
+
caller,
|
|
65
|
+
command.receipt,
|
|
66
|
+
command.evaluation,
|
|
67
|
+
command.decision,
|
|
68
|
+
)
|
|
69
|
+
return JSONResponse(result.model_dump(mode="json"))
|
|
70
|
+
except (ValueError, ValidationError):
|
|
71
|
+
return error("invalid_request", 422)
|
|
72
|
+
except ManagedError as exc:
|
|
73
|
+
return error(exc.code, exc.STATUSES[exc.code])
|
|
74
|
+
except AccessDenied:
|
|
75
|
+
return error("forbidden", 403)
|
|
76
|
+
except ProviderFailure as exc:
|
|
77
|
+
code = (
|
|
78
|
+
"evaluation_uncertain"
|
|
79
|
+
if str(exc) == "evaluation_uncertain"
|
|
80
|
+
else "provider_unavailable"
|
|
81
|
+
)
|
|
82
|
+
return error(code, 409 if code == "evaluation_uncertain" else 503)
|
|
83
|
+
except Exception:
|
|
84
|
+
return error("storage_unavailable", 503)
|
|
85
|
+
|
|
86
|
+
@router.post("/evaluate")
|
|
87
|
+
async def evaluate(request: Request):
|
|
88
|
+
return await invoke(request, "evaluate")
|
|
89
|
+
|
|
90
|
+
@router.post("/resolve")
|
|
91
|
+
async def resolve(request: Request):
|
|
92
|
+
return await invoke(request, "resolve")
|
|
93
|
+
|
|
94
|
+
@router.get("/{receipt_id}")
|
|
95
|
+
async def read(request: Request, receipt_id: str):
|
|
96
|
+
if len(receipt_id) != 64 or any(
|
|
97
|
+
c not in "0123456789abcdef" for c in receipt_id
|
|
98
|
+
):
|
|
99
|
+
return error("invalid_request", 422)
|
|
100
|
+
return await invoke(request, "read", receipt_id)
|
|
101
|
+
|
|
102
|
+
return router
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Deterministic synthetic document classifier for offline conformance fixtures."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import hashlib
|
|
6
|
+
import json
|
|
7
|
+
|
|
8
|
+
from .models import Answer, DecisionInput, OptionProbability, ProviderResult, Usage
|
|
9
|
+
from .openai import ProviderFailure
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SyntheticDocumentProvider:
|
|
13
|
+
identity = "synthetic-document/v1"
|
|
14
|
+
model = "synthetic-document/v1"
|
|
15
|
+
categories = ("invoice", "credit_note", "other")
|
|
16
|
+
|
|
17
|
+
def evaluate(self, request: DecisionInput) -> ProviderResult:
|
|
18
|
+
request = DecisionInput.model_validate(request)
|
|
19
|
+
try:
|
|
20
|
+
document = json.loads(request.evidence)
|
|
21
|
+
if not isinstance(document, dict) or set(document) != {"document_type"}:
|
|
22
|
+
raise ValueError("synthetic document shape required")
|
|
23
|
+
selected = document["document_type"]
|
|
24
|
+
if selected not in self.categories:
|
|
25
|
+
raise ValueError("synthetic document type required")
|
|
26
|
+
if len(request.questions) != 1:
|
|
27
|
+
raise ValueError("one classifier question required")
|
|
28
|
+
question = request.questions[0]
|
|
29
|
+
if (
|
|
30
|
+
question.kind != "choice"
|
|
31
|
+
or tuple(o.value for o in question.options) != self.categories
|
|
32
|
+
):
|
|
33
|
+
raise ValueError("synthetic classifier options required")
|
|
34
|
+
answer = Answer(
|
|
35
|
+
name=question.name,
|
|
36
|
+
kind="choice",
|
|
37
|
+
choice=selected,
|
|
38
|
+
confidence=1.0,
|
|
39
|
+
probabilities=tuple(
|
|
40
|
+
OptionProbability(
|
|
41
|
+
value=value, probability=1.0 if value == selected else 0.0
|
|
42
|
+
)
|
|
43
|
+
for value in self.categories
|
|
44
|
+
),
|
|
45
|
+
)
|
|
46
|
+
result = ProviderResult(
|
|
47
|
+
answers=(answer,),
|
|
48
|
+
model=self.model,
|
|
49
|
+
response_digest="sha256:"
|
|
50
|
+
+ hashlib.sha256(answer.model_dump_json().encode()).hexdigest(),
|
|
51
|
+
request_id=None,
|
|
52
|
+
usage=Usage(input_tokens=0),
|
|
53
|
+
)
|
|
54
|
+
result.validate_input(request)
|
|
55
|
+
return result
|
|
56
|
+
except Exception:
|
|
57
|
+
raise ProviderFailure("invalid_synthetic_input") from None
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"""Versioned, bounded decision contracts. Probabilities never grant authority."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import math
|
|
6
|
+
from typing import Annotated, Literal
|
|
7
|
+
|
|
8
|
+
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
|
9
|
+
|
|
10
|
+
Probability = Annotated[float, Field(ge=0, le=1, allow_inf_nan=False)]
|
|
11
|
+
Digest = Annotated[str, Field(pattern=r"^sha256:[0-9a-f]{64}$")]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Value(BaseModel):
|
|
15
|
+
model_config = ConfigDict(
|
|
16
|
+
frozen=True, strict=True, extra="forbid", revalidate_instances="always"
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class Option(Value):
|
|
21
|
+
value: str = Field(min_length=1, max_length=64)
|
|
22
|
+
description: str = Field(default="", max_length=512)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class Question(Value):
|
|
26
|
+
name: str = Field(pattern=r"^[a-z][a-z0-9_]{0,63}$")
|
|
27
|
+
kind: Literal["choice", "check", "score"]
|
|
28
|
+
instructions: str = Field(min_length=1, max_length=2048)
|
|
29
|
+
options: tuple[Option, ...] = Field(default=(), max_length=32)
|
|
30
|
+
|
|
31
|
+
@model_validator(mode="after")
|
|
32
|
+
def valid_options(self):
|
|
33
|
+
if self.kind == "check":
|
|
34
|
+
if self.options:
|
|
35
|
+
raise ValueError("check does not take options")
|
|
36
|
+
elif not 2 <= len(self.options) <= (10 if self.kind == "score" else 32):
|
|
37
|
+
raise ValueError("bounded options required")
|
|
38
|
+
if len({o.value for o in self.options}) != len(self.options):
|
|
39
|
+
raise ValueError("unique options required")
|
|
40
|
+
return self
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class DecisionInput(Value):
|
|
44
|
+
schema_version: Literal["actions.decisions/v1"] = "actions.decisions/v1"
|
|
45
|
+
# Trusted composition supplies only approved extracts, never complete payloads.
|
|
46
|
+
evidence: str = Field(min_length=1, max_length=8192)
|
|
47
|
+
questions: tuple[Question, ...] = Field(min_length=1, max_length=16)
|
|
48
|
+
policy_revision: Digest
|
|
49
|
+
|
|
50
|
+
@model_validator(mode="after")
|
|
51
|
+
def unique_names(self):
|
|
52
|
+
if len({q.name for q in self.questions}) != len(self.questions):
|
|
53
|
+
raise ValueError("unique question names required")
|
|
54
|
+
return self
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class OptionProbability(Value):
|
|
58
|
+
value: str | int
|
|
59
|
+
probability: Probability
|
|
60
|
+
label: str | None = Field(default=None, max_length=64)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class Answer(Value):
|
|
64
|
+
name: str
|
|
65
|
+
kind: Literal["choice", "check", "score"]
|
|
66
|
+
choice: str | None = None
|
|
67
|
+
probability: Probability | None = None
|
|
68
|
+
score: float | None = Field(default=None, allow_inf_nan=False)
|
|
69
|
+
confidence: Probability | None = None
|
|
70
|
+
probabilities: tuple[OptionProbability, ...] = ()
|
|
71
|
+
|
|
72
|
+
def validate_question(self, question: Question) -> None:
|
|
73
|
+
if self.name != question.name or self.kind != question.kind:
|
|
74
|
+
raise ValueError("answer does not match question")
|
|
75
|
+
if self.kind == "check":
|
|
76
|
+
if (
|
|
77
|
+
self.probability is None
|
|
78
|
+
or any(
|
|
79
|
+
x is not None for x in (self.choice, self.score, self.confidence)
|
|
80
|
+
)
|
|
81
|
+
or self.probabilities
|
|
82
|
+
):
|
|
83
|
+
raise ValueError("invalid predicate answer")
|
|
84
|
+
return
|
|
85
|
+
if self.confidence is None or self.probability is not None:
|
|
86
|
+
raise ValueError("explicit confidence required")
|
|
87
|
+
expected = (
|
|
88
|
+
tuple(o.value for o in question.options)
|
|
89
|
+
if self.kind == "choice"
|
|
90
|
+
else tuple(range(len(question.options)))
|
|
91
|
+
)
|
|
92
|
+
actual = tuple(p.value for p in self.probabilities)
|
|
93
|
+
if len(actual) != len(expected) or set(actual) != set(expected):
|
|
94
|
+
raise ValueError("complete unique distribution required")
|
|
95
|
+
if not math.isclose(
|
|
96
|
+
sum(p.probability for p in self.probabilities), 1, abs_tol=1e-6
|
|
97
|
+
):
|
|
98
|
+
raise ValueError("probabilities must sum to one")
|
|
99
|
+
if self.kind == "choice":
|
|
100
|
+
if (
|
|
101
|
+
self.choice not in expected
|
|
102
|
+
or self.score is not None
|
|
103
|
+
or any(p.label is not None for p in self.probabilities)
|
|
104
|
+
):
|
|
105
|
+
raise ValueError("invalid choice answer")
|
|
106
|
+
else:
|
|
107
|
+
if self.choice is not None or self.score is None:
|
|
108
|
+
raise ValueError("invalid score answer")
|
|
109
|
+
if not 0 <= self.score <= len(question.options) - 1:
|
|
110
|
+
raise ValueError("score outside declared levels")
|
|
111
|
+
for p in self.probabilities:
|
|
112
|
+
if (
|
|
113
|
+
not isinstance(p.value, int)
|
|
114
|
+
or p.label != question.options[p.value].value
|
|
115
|
+
):
|
|
116
|
+
raise ValueError("invalid score level")
|
|
117
|
+
weighted = sum(int(p.value) * p.probability for p in self.probabilities)
|
|
118
|
+
if not math.isclose(self.score, weighted, abs_tol=1e-6):
|
|
119
|
+
raise ValueError("score differs from distribution")
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class Usage(Value):
|
|
123
|
+
input_tokens: int = Field(ge=0)
|
|
124
|
+
cached_tokens: int = Field(default=0, ge=0)
|
|
125
|
+
cache_write_tokens: int = Field(default=0, ge=0)
|
|
126
|
+
output_tokens: int = Field(default=0, ge=0)
|
|
127
|
+
|
|
128
|
+
@model_validator(mode="after")
|
|
129
|
+
def valid_cache_counts(self):
|
|
130
|
+
if self.cached_tokens + self.cache_write_tokens > self.input_tokens:
|
|
131
|
+
raise ValueError("cache counts exceed input")
|
|
132
|
+
return self
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class ProviderResult(Value):
|
|
136
|
+
answers: tuple[Answer, ...]
|
|
137
|
+
model: str = Field(min_length=1, max_length=128)
|
|
138
|
+
response_digest: Digest
|
|
139
|
+
request_id: str | None = Field(default=None, max_length=256)
|
|
140
|
+
usage: Usage
|
|
141
|
+
|
|
142
|
+
def validate_input(self, request: DecisionInput) -> None:
|
|
143
|
+
if len(self.answers) != len(request.questions):
|
|
144
|
+
raise ValueError("missing or unexpected answers")
|
|
145
|
+
for answer, question in zip(self.answers, request.questions):
|
|
146
|
+
answer.validate_question(question)
|