@stigmer/server 3.15.3-dev.20260914100347 → 3.15.3-dev.20260916211208
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.
- package/README.md +3 -3
- package/dist/archive/content-store.d.ts +35 -0
- package/dist/archive/content-store.d.ts.map +1 -0
- package/dist/archive/content-store.js +98 -0
- package/dist/archive/content-store.js.map +1 -0
- package/dist/archive/inflate.d.ts +22 -0
- package/dist/archive/inflate.d.ts.map +1 -0
- package/dist/archive/inflate.js +75 -0
- package/dist/archive/inflate.js.map +1 -0
- package/dist/archive/limits.d.ts +33 -0
- package/dist/archive/limits.d.ts.map +1 -0
- package/dist/archive/limits.js +31 -0
- package/dist/archive/limits.js.map +1 -0
- package/dist/archive/open.d.ts +24 -0
- package/dist/archive/open.d.ts.map +1 -0
- package/dist/archive/open.js +93 -0
- package/dist/archive/open.js.map +1 -0
- package/dist/{domain/skill/storage → archive}/prefilter.d.ts +5 -0
- package/dist/archive/prefilter.d.ts.map +1 -0
- package/dist/archive/prefilter.js.map +1 -0
- package/dist/archive/write.d.ts +8 -0
- package/dist/archive/write.d.ts.map +1 -0
- package/dist/archive/write.js +44 -0
- package/dist/archive/write.js.map +1 -0
- package/dist/authorization/authorizer.d.ts +98 -0
- package/dist/authorization/authorizer.d.ts.map +1 -0
- package/dist/authorization/authorizer.js +156 -0
- package/dist/authorization/authorizer.js.map +1 -0
- package/dist/authorization/derived-tuples.d.ts +42 -0
- package/dist/authorization/derived-tuples.d.ts.map +1 -0
- package/dist/authorization/derived-tuples.js +240 -0
- package/dist/authorization/derived-tuples.js.map +1 -0
- package/dist/authorization/evaluator.d.ts +66 -0
- package/dist/authorization/evaluator.d.ts.map +1 -0
- package/dist/authorization/evaluator.js +153 -0
- package/dist/authorization/evaluator.js.map +1 -0
- package/dist/authorization/facts.d.ts +29 -0
- package/dist/authorization/facts.d.ts.map +1 -0
- package/dist/authorization/facts.js +17 -0
- package/dist/authorization/facts.js.map +1 -0
- package/dist/authorization/list-read-scope.d.ts +18 -0
- package/dist/authorization/list-read-scope.d.ts.map +1 -0
- package/dist/authorization/list-read-scope.js +155 -0
- package/dist/authorization/list-read-scope.js.map +1 -0
- package/dist/authorization/model/agent.d.ts +2 -0
- package/dist/authorization/model/agent.d.ts.map +1 -0
- package/dist/authorization/model/agent.js +42 -0
- package/dist/authorization/model/agent.js.map +1 -0
- package/dist/authorization/model/agent_channel.d.ts +2 -0
- package/dist/authorization/model/agent_channel.d.ts.map +1 -0
- package/dist/authorization/model/agent_channel.js +38 -0
- package/dist/authorization/model/agent_channel.js.map +1 -0
- package/dist/authorization/model/agent_execution.d.ts +2 -0
- package/dist/authorization/model/agent_execution.d.ts.map +1 -0
- package/dist/authorization/model/agent_execution.js +25 -0
- package/dist/authorization/model/agent_execution.js.map +1 -0
- package/dist/authorization/model/agent_instance.d.ts +2 -0
- package/dist/authorization/model/agent_instance.d.ts.map +1 -0
- package/dist/authorization/model/agent_instance.js +47 -0
- package/dist/authorization/model/agent_instance.js.map +1 -0
- package/dist/authorization/model/agent_share.d.ts +2 -0
- package/dist/authorization/model/agent_share.d.ts.map +1 -0
- package/dist/authorization/model/agent_share.js +29 -0
- package/dist/authorization/model/agent_share.js.map +1 -0
- package/dist/authorization/model/api_key.d.ts +2 -0
- package/dist/authorization/model/api_key.d.ts.map +1 -0
- package/dist/authorization/model/api_key.js +27 -0
- package/dist/authorization/model/api_key.js.map +1 -0
- package/dist/authorization/model/artifact.d.ts +2 -0
- package/dist/authorization/model/artifact.d.ts.map +1 -0
- package/dist/authorization/model/artifact.js +27 -0
- package/dist/authorization/model/artifact.js.map +1 -0
- package/dist/authorization/model/channel_app.d.ts +2 -0
- package/dist/authorization/model/channel_app.d.ts.map +1 -0
- package/dist/authorization/model/channel_app.js +28 -0
- package/dist/authorization/model/channel_app.js.map +1 -0
- package/dist/authorization/model/default-of.d.ts +38 -0
- package/dist/authorization/model/default-of.d.ts.map +1 -0
- package/dist/authorization/model/default-of.js +39 -0
- package/dist/authorization/model/default-of.js.map +1 -0
- package/dist/authorization/model/environment.d.ts +2 -0
- package/dist/authorization/model/environment.d.ts.map +1 -0
- package/dist/authorization/model/environment.js +33 -0
- package/dist/authorization/model/environment.js.map +1 -0
- package/dist/authorization/model/execution_context.d.ts +2 -0
- package/dist/authorization/model/execution_context.d.ts.map +1 -0
- package/dist/authorization/model/execution_context.js +19 -0
- package/dist/authorization/model/execution_context.js.map +1 -0
- package/dist/authorization/model/iam_policy.d.ts +2 -0
- package/dist/authorization/model/iam_policy.d.ts.map +1 -0
- package/dist/authorization/model/iam_policy.js +31 -0
- package/dist/authorization/model/iam_policy.js.map +1 -0
- package/dist/authorization/model/identity_account.d.ts +2 -0
- package/dist/authorization/model/identity_account.d.ts.map +1 -0
- package/dist/authorization/model/identity_account.js +25 -0
- package/dist/authorization/model/identity_account.js.map +1 -0
- package/dist/authorization/model/index.d.ts +36 -0
- package/dist/authorization/model/index.d.ts.map +1 -0
- package/dist/authorization/model/index.js +72 -0
- package/dist/authorization/model/index.js.map +1 -0
- package/dist/authorization/model/mcp_server.d.ts +2 -0
- package/dist/authorization/model/mcp_server.d.ts.map +1 -0
- package/dist/authorization/model/mcp_server.js +37 -0
- package/dist/authorization/model/mcp_server.js.map +1 -0
- package/dist/authorization/model/memory.d.ts +2 -0
- package/dist/authorization/model/memory.d.ts.map +1 -0
- package/dist/authorization/model/memory.js +26 -0
- package/dist/authorization/model/memory.js.map +1 -0
- package/dist/authorization/model/oauth_app.d.ts +2 -0
- package/dist/authorization/model/oauth_app.d.ts.map +1 -0
- package/dist/authorization/model/oauth_app.js +30 -0
- package/dist/authorization/model/oauth_app.js.map +1 -0
- package/dist/authorization/model/organization.d.ts +2 -0
- package/dist/authorization/model/organization.d.ts.map +1 -0
- package/dist/authorization/model/organization.js +54 -0
- package/dist/authorization/model/organization.js.map +1 -0
- package/dist/authorization/model/plugin.d.ts +2 -0
- package/dist/authorization/model/plugin.d.ts.map +1 -0
- package/dist/authorization/model/plugin.js +44 -0
- package/dist/authorization/model/plugin.js.map +1 -0
- package/dist/authorization/model/project.d.ts +2 -0
- package/dist/authorization/model/project.d.ts.map +1 -0
- package/dist/authorization/model/project.js +32 -0
- package/dist/authorization/model/project.js.map +1 -0
- package/dist/authorization/model/rewrite.d.ts +127 -0
- package/dist/authorization/model/rewrite.d.ts.map +1 -0
- package/dist/authorization/model/rewrite.js +82 -0
- package/dist/authorization/model/rewrite.js.map +1 -0
- package/dist/authorization/model/schedule.d.ts +2 -0
- package/dist/authorization/model/schedule.d.ts.map +1 -0
- package/dist/authorization/model/schedule.js +29 -0
- package/dist/authorization/model/schedule.js.map +1 -0
- package/dist/authorization/model/session.d.ts +2 -0
- package/dist/authorization/model/session.d.ts.map +1 -0
- package/dist/authorization/model/session.js +38 -0
- package/dist/authorization/model/session.js.map +1 -0
- package/dist/authorization/model/skill.d.ts +2 -0
- package/dist/authorization/model/skill.d.ts.map +1 -0
- package/dist/authorization/model/skill.js +38 -0
- package/dist/authorization/model/skill.js.map +1 -0
- package/dist/authorization/model/workflow.d.ts +2 -0
- package/dist/authorization/model/workflow.d.ts.map +1 -0
- package/dist/authorization/model/workflow.js +38 -0
- package/dist/authorization/model/workflow.js.map +1 -0
- package/dist/authorization/model/workflow_execution.d.ts +2 -0
- package/dist/authorization/model/workflow_execution.d.ts.map +1 -0
- package/dist/authorization/model/workflow_execution.js +32 -0
- package/dist/authorization/model/workflow_execution.js.map +1 -0
- package/dist/authorization/model/workflow_instance.d.ts +2 -0
- package/dist/authorization/model/workflow_instance.d.ts.map +1 -0
- package/dist/authorization/model/workflow_instance.js +92 -0
- package/dist/authorization/model/workflow_instance.js.map +1 -0
- package/dist/authorization/organization-directory.d.ts +13 -0
- package/dist/authorization/organization-directory.d.ts.map +1 -0
- package/dist/authorization/organization-directory.js +83 -0
- package/dist/authorization/organization-directory.js.map +1 -0
- package/dist/authorization/person.d.ts +42 -0
- package/dist/authorization/person.d.ts.map +1 -0
- package/dist/authorization/person.js +19 -0
- package/dist/authorization/person.js.map +1 -0
- package/dist/authorization/posture.d.ts +38 -0
- package/dist/authorization/posture.d.ts.map +1 -0
- package/dist/authorization/posture.js +7 -0
- package/dist/authorization/posture.js.map +1 -0
- package/dist/authorization/schedule-fire-caller.d.ts +12 -0
- package/dist/authorization/schedule-fire-caller.d.ts.map +1 -0
- package/dist/authorization/schedule-fire-caller.js +67 -0
- package/dist/authorization/schedule-fire-caller.js.map +1 -0
- package/dist/authorization/store-test-kit.d.ts +68 -0
- package/dist/authorization/store-test-kit.d.ts.map +1 -0
- package/dist/authorization/store-test-kit.js +311 -0
- package/dist/authorization/store-test-kit.js.map +1 -0
- package/dist/authorization/tuples.d.ts +115 -0
- package/dist/authorization/tuples.d.ts.map +1 -0
- package/dist/authorization/tuples.js +83 -0
- package/dist/authorization/tuples.js.map +1 -0
- package/dist/boot/compose.d.ts.map +1 -1
- package/dist/boot/compose.js +157 -32
- package/dist/boot/compose.js.map +1 -1
- package/dist/boot/inprocess.d.ts +12 -0
- package/dist/boot/inprocess.d.ts.map +1 -1
- package/dist/boot/inprocess.js +62 -20
- package/dist/boot/inprocess.js.map +1 -1
- package/dist/domain/agent/controller.d.ts.map +1 -1
- package/dist/domain/agent/controller.js +9 -0
- package/dist/domain/agent/controller.js.map +1 -1
- package/dist/domain/iampolicy/constants.d.ts +11 -0
- package/dist/domain/iampolicy/constants.d.ts.map +1 -1
- package/dist/domain/iampolicy/constants.js +11 -0
- package/dist/domain/iampolicy/constants.js.map +1 -1
- package/dist/domain/iampolicy/membership.d.ts +72 -1
- package/dist/domain/iampolicy/membership.d.ts.map +1 -1
- package/dist/domain/iampolicy/membership.js +141 -56
- package/dist/domain/iampolicy/membership.js.map +1 -1
- package/dist/domain/identityaccount/actor.d.ts +26 -0
- package/dist/domain/identityaccount/actor.d.ts.map +1 -0
- package/dist/domain/identityaccount/actor.js +17 -0
- package/dist/domain/identityaccount/actor.js.map +1 -0
- package/dist/domain/mcpserver/controller.d.ts.map +1 -1
- package/dist/domain/mcpserver/controller.js +9 -0
- package/dist/domain/mcpserver/controller.js.map +1 -1
- package/dist/domain/plugin/archive.d.ts +37 -0
- package/dist/domain/plugin/archive.d.ts.map +1 -0
- package/dist/domain/plugin/archive.js +50 -0
- package/dist/domain/plugin/archive.js.map +1 -0
- package/dist/domain/plugin/constants.d.ts +38 -0
- package/dist/domain/plugin/constants.d.ts.map +1 -0
- package/dist/domain/plugin/constants.js +46 -0
- package/dist/domain/plugin/constants.js.map +1 -0
- package/dist/domain/plugin/controller.d.ts +25 -0
- package/dist/domain/plugin/controller.d.ts.map +1 -0
- package/dist/domain/plugin/controller.js +493 -0
- package/dist/domain/plugin/controller.js.map +1 -0
- package/dist/domain/plugin/materialize/agent.d.ts +13 -0
- package/dist/domain/plugin/materialize/agent.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/agent.js +128 -0
- package/dist/domain/plugin/materialize/agent.js.map +1 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.d.ts +22 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.js +31 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.js.map +1 -0
- package/dist/domain/plugin/materialize/identity.d.ts +28 -0
- package/dist/domain/plugin/materialize/identity.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/identity.js +40 -0
- package/dist/domain/plugin/materialize/identity.js.map +1 -0
- package/dist/domain/plugin/materialize/mcp-servers.d.ts +15 -0
- package/dist/domain/plugin/materialize/mcp-servers.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/mcp-servers.js +131 -0
- package/dist/domain/plugin/materialize/mcp-servers.js.map +1 -0
- package/dist/domain/plugin/materialize/plan.d.ts +24 -0
- package/dist/domain/plugin/materialize/plan.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/plan.js +77 -0
- package/dist/domain/plugin/materialize/plan.js.map +1 -0
- package/dist/domain/plugin/materialize/ports.d.ts +42 -0
- package/dist/domain/plugin/materialize/ports.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/ports.js +2 -0
- package/dist/domain/plugin/materialize/ports.js.map +1 -0
- package/dist/domain/plugin/materialize/skills.d.ts +12 -0
- package/dist/domain/plugin/materialize/skills.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/skills.js +44 -0
- package/dist/domain/plugin/materialize/skills.js.map +1 -0
- package/dist/domain/plugin/materialize/workflows.d.ts +15 -0
- package/dist/domain/plugin/materialize/workflows.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/workflows.js +31 -0
- package/dist/domain/plugin/materialize/workflows.js.map +1 -0
- package/dist/domain/plugin/members.d.ts +42 -0
- package/dist/domain/plugin/members.d.ts.map +1 -0
- package/dist/domain/plugin/members.js +97 -0
- package/dist/domain/plugin/members.js.map +1 -0
- package/dist/domain/plugin/overlay/documents.d.ts +31 -0
- package/dist/domain/plugin/overlay/documents.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/documents.js +38 -0
- package/dist/domain/plugin/overlay/documents.js.map +1 -0
- package/dist/domain/plugin/overlay/parse.d.ts +16 -0
- package/dist/domain/plugin/overlay/parse.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/parse.js +79 -0
- package/dist/domain/plugin/overlay/parse.js.map +1 -0
- package/dist/domain/plugin/overlay/sanitize.d.ts +10 -0
- package/dist/domain/plugin/overlay/sanitize.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/sanitize.js +101 -0
- package/dist/domain/plugin/overlay/sanitize.js.map +1 -0
- package/dist/domain/plugin/push.d.ts +133 -0
- package/dist/domain/plugin/push.d.ts.map +1 -0
- package/dist/domain/plugin/push.js +800 -0
- package/dist/domain/plugin/push.js.map +1 -0
- package/dist/domain/plugin/search-extractor.d.ts +3 -0
- package/dist/domain/plugin/search-extractor.d.ts.map +1 -0
- package/dist/domain/plugin/search-extractor.js +41 -0
- package/dist/domain/plugin/search-extractor.js.map +1 -0
- package/dist/domain/skill/constants.d.ts +6 -11
- package/dist/domain/skill/constants.d.ts.map +1 -1
- package/dist/domain/skill/constants.js +6 -11
- package/dist/domain/skill/constants.js.map +1 -1
- package/dist/domain/skill/controller.d.ts.map +1 -1
- package/dist/domain/skill/controller.js +33 -30
- package/dist/domain/skill/controller.js.map +1 -1
- package/dist/domain/skill/push.d.ts +9 -10
- package/dist/domain/skill/push.d.ts.map +1 -1
- package/dist/domain/skill/push.js +53 -122
- package/dist/domain/skill/push.js.map +1 -1
- package/dist/domain/skill/search-extractor.d.ts.map +1 -1
- package/dist/domain/skill/search-extractor.js.map +1 -1
- package/dist/domain/skill/storage/artifact-storage.d.ts +26 -29
- package/dist/domain/skill/storage/artifact-storage.d.ts.map +1 -1
- package/dist/domain/skill/storage/artifact-storage.js +6 -103
- package/dist/domain/skill/storage/artifact-storage.js.map +1 -1
- package/dist/domain/skill/storage/zip-gate.d.ts +1 -2
- package/dist/domain/skill/storage/zip-gate.d.ts.map +1 -1
- package/dist/domain/skill/storage/zip-gate.js +56 -126
- package/dist/domain/skill/storage/zip-gate.js.map +1 -1
- package/dist/domain/skill/version-resolution.d.ts +5 -5
- package/dist/domain/skill/version-resolution.d.ts.map +1 -1
- package/dist/domain/skill/version-resolution.js +34 -216
- package/dist/domain/skill/version-resolution.js.map +1 -1
- package/dist/domain/workflow/controller.d.ts.map +1 -1
- package/dist/domain/workflow/controller.js +30 -3
- package/dist/domain/workflow/controller.js.map +1 -1
- package/dist/domain/workflow/registry/data/task-kind-registry.json +1 -0
- package/dist/extensions/authorizer.d.ts +10 -5
- package/dist/extensions/authorizer.d.ts.map +1 -1
- package/dist/extensions/drivers.d.ts +4 -1
- package/dist/extensions/drivers.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.d.ts +75 -11
- package/dist/extensions/list-read-scope.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.js +40 -7
- package/dist/extensions/list-read-scope.js.map +1 -1
- package/dist/extensions/organization-directory.d.ts +13 -9
- package/dist/extensions/organization-directory.d.ts.map +1 -1
- package/dist/extensions/organization-directory.js.map +1 -1
- package/dist/extensions/resource-authorization.d.ts +33 -0
- package/dist/extensions/resource-authorization.d.ts.map +1 -1
- package/dist/extensions/schedule-fire-caller.d.ts +45 -18
- package/dist/extensions/schedule-fire-caller.d.ts.map +1 -1
- package/dist/extensions/schedule-fire-caller.js +12 -1
- package/dist/extensions/schedule-fire-caller.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/pipeline/apiresource-labels.d.ts +23 -3
- package/dist/pipeline/apiresource-labels.d.ts.map +1 -1
- package/dist/pipeline/apiresource-labels.js +20 -0
- package/dist/pipeline/apiresource-labels.js.map +1 -1
- package/dist/pipeline/apiresource-meta.d.ts +21 -0
- package/dist/pipeline/apiresource-meta.d.ts.map +1 -1
- package/dist/pipeline/apiresource-meta.js +28 -0
- package/dist/pipeline/apiresource-meta.js.map +1 -1
- package/dist/pipeline/errors.d.ts.map +1 -1
- package/dist/pipeline/errors.js.map +1 -1
- package/dist/pipeline/steps/authorization-facts.d.ts +12 -0
- package/dist/pipeline/steps/authorization-facts.d.ts.map +1 -0
- package/dist/pipeline/steps/authorization-facts.js +100 -0
- package/dist/pipeline/steps/authorization-facts.js.map +1 -0
- package/dist/pipeline/steps/authorization-tuples.d.ts.map +1 -1
- package/dist/pipeline/steps/authorization-tuples.js +7 -26
- package/dist/pipeline/steps/authorization-tuples.js.map +1 -1
- package/dist/pipeline/steps/delete.d.ts.map +1 -1
- package/dist/pipeline/steps/delete.js +1 -1
- package/dist/pipeline/steps/delete.js.map +1 -1
- package/dist/pipeline/steps/duplicate.d.ts.map +1 -1
- package/dist/pipeline/steps/duplicate.js.map +1 -1
- package/dist/pipeline/steps/guard-plugin-managed.d.ts +12 -0
- package/dist/pipeline/steps/guard-plugin-managed.d.ts.map +1 -0
- package/dist/pipeline/steps/guard-plugin-managed.js +96 -0
- package/dist/pipeline/steps/guard-plugin-managed.js.map +1 -0
- package/dist/pipeline/steps/guard-reserved-labels.d.ts +16 -2
- package/dist/pipeline/steps/guard-reserved-labels.d.ts.map +1 -1
- package/dist/pipeline/steps/guard-reserved-labels.js +11 -7
- package/dist/pipeline/steps/guard-reserved-labels.js.map +1 -1
- package/dist/pipeline/steps/helpers.d.ts.map +1 -1
- package/dist/pipeline/steps/helpers.js.map +1 -1
- package/dist/pipeline/steps/index-search.d.ts.map +1 -1
- package/dist/pipeline/steps/index-search.js.map +1 -1
- package/dist/pipeline/steps/load-existing.d.ts.map +1 -1
- package/dist/pipeline/steps/load-existing.js +1 -1
- package/dist/pipeline/steps/load-existing.js.map +1 -1
- package/dist/pipeline/steps/references.d.ts +16 -0
- package/dist/pipeline/steps/references.d.ts.map +1 -1
- package/dist/pipeline/steps/references.js +18 -0
- package/dist/pipeline/steps/references.js.map +1 -1
- package/dist/pipeline/steps/resolve-artifact-source.d.ts +35 -0
- package/dist/pipeline/steps/resolve-artifact-source.d.ts.map +1 -0
- package/dist/pipeline/steps/resolve-artifact-source.js +27 -0
- package/dist/pipeline/steps/resolve-artifact-source.js.map +1 -0
- package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts.map +1 -1
- package/dist/pipeline/steps/server-stamped-reserved-labels.js.map +1 -1
- package/dist/pipeline/steps/shapes.d.ts +18 -0
- package/dist/pipeline/steps/shapes.d.ts.map +1 -1
- package/dist/pipeline/steps/shapes.js +29 -0
- package/dist/pipeline/steps/shapes.js.map +1 -1
- package/dist/pipeline/steps/slug.d.ts.map +1 -1
- package/dist/pipeline/steps/slug.js.map +1 -1
- package/dist/pipeline/steps/validate-visibility.d.ts +9 -0
- package/dist/pipeline/steps/validate-visibility.d.ts.map +1 -1
- package/dist/pipeline/steps/validate-visibility.js +6 -1
- package/dist/pipeline/steps/validate-visibility.js.map +1 -1
- package/dist/pipeline/steps/validation.d.ts.map +1 -1
- package/dist/pipeline/steps/validation.js.map +1 -1
- package/dist/pipeline/steps/version-archive.d.ts +63 -0
- package/dist/pipeline/steps/version-archive.d.ts.map +1 -0
- package/dist/pipeline/steps/version-archive.js +129 -0
- package/dist/pipeline/steps/version-archive.js.map +1 -0
- package/dist/pipeline/steps/version-history.d.ts +49 -0
- package/dist/pipeline/steps/version-history.d.ts.map +1 -0
- package/dist/pipeline/steps/version-history.js +229 -0
- package/dist/pipeline/steps/version-history.js.map +1 -0
- package/dist/pipeline/steps/visibility-gates.d.ts +8 -0
- package/dist/pipeline/steps/visibility-gates.d.ts.map +1 -1
- package/dist/pipeline/steps/visibility-gates.js +7 -2
- package/dist/pipeline/steps/visibility-gates.js.map +1 -1
- package/dist/query/search/registry.d.ts.map +1 -1
- package/dist/query/search/registry.js +2 -0
- package/dist/query/search/registry.js.map +1 -1
- package/dist/temporal/schedule/run-starter.d.ts +1 -1
- package/dist/temporal/schedule/run-starter.d.ts.map +1 -1
- package/dist/temporal/schedule/run-starter.js +14 -1
- package/dist/temporal/schedule/run-starter.js.map +1 -1
- package/package.json +5 -4
- package/src/archive/__tests__/archive.test.ts +233 -0
- package/src/{domain/skill → archive}/__tests__/prefilter.test.ts +1 -1
- package/src/archive/content-store.ts +132 -0
- package/src/archive/inflate.ts +107 -0
- package/src/archive/limits.ts +42 -0
- package/src/archive/open.ts +131 -0
- package/src/{domain/skill/storage → archive}/prefilter.ts +5 -0
- package/src/archive/write.ts +54 -0
- package/src/authorization/README.md +124 -0
- package/src/authorization/__tests__/authorizer.test.ts +719 -0
- package/src/authorization/__tests__/derived-tuples.test.ts +802 -0
- package/src/authorization/__tests__/drivers.ts +70 -0
- package/src/authorization/__tests__/evaluator.test.ts +359 -0
- package/src/authorization/__tests__/facts.test.ts +155 -0
- package/src/authorization/__tests__/fixtures/fga/agent-channel-owner.fga.yaml +112 -0
- package/src/authorization/__tests__/fixtures/fga/agent-share-owner.fga.yaml +109 -0
- package/src/authorization/__tests__/fixtures/fga/artifact-org-and-owner.fga.yaml +128 -0
- package/src/authorization/__tests__/fixtures/fga/blueprint-private-visibility.fga.yaml +410 -0
- package/src/authorization/__tests__/fixtures/fga/channel-app-owner.fga.yaml +125 -0
- package/src/authorization/__tests__/fixtures/fga/channel-participation.fga.yaml +201 -0
- package/src/authorization/__tests__/fixtures/fga/channel-session-visibility.fga.yaml +187 -0
- package/src/authorization/__tests__/fixtures/fga/cross-org-share-creation.fga.yaml +98 -0
- package/src/authorization/__tests__/fixtures/fga/default-instance-inheritance.fga.yaml +271 -0
- package/src/authorization/__tests__/fixtures/fga/memory-subject-only.fga.yaml +72 -0
- package/src/authorization/__tests__/fixtures/fga/org-admin-owner-inheritance.fga.yaml +328 -0
- package/src/authorization/__tests__/fixtures/fga/org-shared-environment.fga.yaml +144 -0
- package/src/authorization/__tests__/fixtures/fga/platform-visibility.fga.yaml +223 -0
- package/src/authorization/__tests__/fixtures/fga/provider-standing-viewer.fga.yaml +40 -0
- package/src/authorization/__tests__/fixtures/fga/public-visibility-setter.fga.yaml +52 -0
- package/src/authorization/__tests__/fixtures/fga/reserved-label-writer.fga.yaml +41 -0
- package/src/authorization/__tests__/fixtures/fga/schedule-owner.fga.yaml +113 -0
- package/src/authorization/__tests__/fixtures/fga/schedule-session-visibility.fga.yaml +214 -0
- package/src/authorization/__tests__/fixtures/fga/session-personal-resource.fga.yaml +117 -0
- package/src/authorization/__tests__/fixtures/fga/workflow-execution-sharing.fga.yaml +192 -0
- package/src/authorization/__tests__/list-read-scope.measure.test.ts +317 -0
- package/src/authorization/__tests__/list-read-scope.test.ts +796 -0
- package/src/authorization/__tests__/organization-directory.test.ts +236 -0
- package/src/authorization/__tests__/person.test.ts +114 -0
- package/src/authorization/__tests__/posture.test.ts +25 -0
- package/src/authorization/__tests__/schedule-fire-caller.test.ts +134 -0
- package/src/authorization/__tests__/store-tests.test.ts +306 -0
- package/src/authorization/__tests__/support.ts +101 -0
- package/src/authorization/__tests__/tuples.test.ts +62 -0
- package/src/authorization/__tests__/wire-permissions.test.ts +154 -0
- package/src/authorization/authorizer.ts +208 -0
- package/src/authorization/derived-tuples.ts +384 -0
- package/src/authorization/evaluator.ts +283 -0
- package/src/authorization/facts.ts +47 -0
- package/src/authorization/list-read-scope.ts +216 -0
- package/src/authorization/model/__tests__/registry.test.ts +317 -0
- package/src/authorization/model/agent.ts +64 -0
- package/src/authorization/model/agent_channel.ts +49 -0
- package/src/authorization/model/agent_execution.ts +33 -0
- package/src/authorization/model/agent_instance.ts +66 -0
- package/src/authorization/model/agent_share.ts +40 -0
- package/src/authorization/model/api_key.ts +28 -0
- package/src/authorization/model/artifact.ts +38 -0
- package/src/authorization/model/channel_app.ts +39 -0
- package/src/authorization/model/default-of.ts +99 -0
- package/src/authorization/model/environment.ts +48 -0
- package/src/authorization/model/execution_context.ts +20 -0
- package/src/authorization/model/iam_policy.ts +42 -0
- package/src/authorization/model/identity_account.ts +26 -0
- package/src/authorization/model/index.ts +108 -0
- package/src/authorization/model/mcp_server.ts +59 -0
- package/src/authorization/model/memory.ts +27 -0
- package/src/authorization/model/oauth_app.ts +42 -0
- package/src/authorization/model/organization.ts +55 -0
- package/src/authorization/model/plugin.ts +66 -0
- package/src/authorization/model/project.ts +47 -0
- package/src/authorization/model/rewrite.ts +213 -0
- package/src/authorization/model/schedule.ts +40 -0
- package/src/authorization/model/session.ts +50 -0
- package/src/authorization/model/skill.ts +60 -0
- package/src/authorization/model/workflow.ts +60 -0
- package/src/authorization/model/workflow_execution.ts +44 -0
- package/src/authorization/model/workflow_instance.ts +122 -0
- package/src/authorization/organization-directory.ts +114 -0
- package/src/authorization/person.ts +68 -0
- package/src/authorization/posture.ts +49 -0
- package/src/authorization/schedule-fire-caller.ts +91 -0
- package/src/authorization/store-test-kit.ts +454 -0
- package/src/authorization/tuples.ts +190 -0
- package/src/boot/compose.ts +175 -38
- package/src/boot/inprocess.ts +108 -30
- package/src/domain/agent/controller.ts +11 -0
- package/src/domain/iampolicy/__tests__/membership.test.ts +357 -3
- package/src/domain/iampolicy/constants.ts +12 -0
- package/src/domain/iampolicy/membership.ts +221 -66
- package/src/domain/identityaccount/actor.ts +44 -0
- package/src/domain/mcpserver/controller.ts +11 -0
- package/src/domain/plugin/__tests__/materialize.test.ts +303 -0
- package/src/domain/plugin/__tests__/overlay-parse.test.ts +85 -0
- package/src/domain/plugin/__tests__/plugin.test.ts +681 -0
- package/src/domain/plugin/__tests__/sanitize.test.ts +174 -0
- package/src/domain/plugin/archive.ts +89 -0
- package/src/domain/plugin/constants.ts +53 -0
- package/src/domain/plugin/controller.ts +913 -0
- package/src/domain/plugin/materialize/agent.ts +186 -0
- package/src/domain/plugin/materialize/default-agent-instructions.ts +59 -0
- package/src/domain/plugin/materialize/identity.ts +67 -0
- package/src/domain/plugin/materialize/mcp-servers.ts +175 -0
- package/src/domain/plugin/materialize/plan.ts +124 -0
- package/src/domain/plugin/materialize/ports.ts +53 -0
- package/src/domain/plugin/materialize/skills.ts +68 -0
- package/src/domain/plugin/materialize/workflows.ts +51 -0
- package/src/domain/plugin/members.ts +180 -0
- package/src/domain/plugin/overlay/documents.ts +78 -0
- package/src/domain/plugin/overlay/parse.ts +115 -0
- package/src/domain/plugin/overlay/sanitize.ts +149 -0
- package/src/domain/plugin/push.ts +1062 -0
- package/src/domain/plugin/search-extractor.ts +60 -0
- package/src/domain/skill/constants.ts +11 -14
- package/src/domain/skill/controller.ts +44 -36
- package/src/domain/skill/push.ts +61 -156
- package/src/domain/skill/search-extractor.ts +3 -1
- package/src/domain/skill/storage/artifact-storage.ts +23 -124
- package/src/domain/skill/storage/zip-gate.ts +58 -154
- package/src/domain/skill/version-resolution.ts +67 -269
- package/src/domain/workflow/controller.ts +38 -4
- package/src/domain/workflow/registry/data/task-kind-registry.json +1 -0
- package/src/extensions/__tests__/built-in-authorization-composed.test.ts +835 -0
- package/src/extensions/__tests__/composed-support.ts +32 -1
- package/src/extensions/__tests__/extension-composition.test.ts +35 -0
- package/src/extensions/__tests__/list-read-scope.test.ts +245 -3
- package/src/extensions/__tests__/role-reconciliation-composed.test.ts +209 -0
- package/src/extensions/__tests__/tier-truthfulness.test.ts +6 -14
- package/src/extensions/authorizer.ts +10 -5
- package/src/extensions/drivers.ts +4 -1
- package/src/extensions/list-read-scope.ts +116 -16
- package/src/extensions/organization-directory.ts +13 -9
- package/src/extensions/resource-authorization.ts +34 -0
- package/src/extensions/schedule-fire-caller.ts +49 -18
- package/src/index.ts +51 -1
- package/src/pipeline/__tests__/inherited-authorization-parent.test.ts +51 -0
- package/src/pipeline/__tests__/router-transport.test.ts +1 -3
- package/src/pipeline/apiresource-labels.ts +31 -3
- package/src/pipeline/apiresource-meta.ts +37 -0
- package/src/pipeline/errors.ts +5 -5
- package/src/pipeline/steps/__tests__/authorize-annotation-completeness.test.ts +1 -20
- package/src/pipeline/steps/__tests__/guard-memory-capture.test.ts +3 -9
- package/src/pipeline/steps/__tests__/guard-plugin-managed.test.ts +151 -0
- package/src/pipeline/steps/__tests__/guard-reserved-labels.test.ts +83 -8
- package/src/pipeline/steps/authorization-facts.ts +131 -0
- package/src/pipeline/steps/authorization-tuples.ts +7 -28
- package/src/pipeline/steps/delete.ts +11 -3
- package/src/pipeline/steps/duplicate.ts +8 -2
- package/src/pipeline/steps/guard-plugin-managed.ts +133 -0
- package/src/pipeline/steps/guard-reserved-labels.ts +29 -8
- package/src/pipeline/steps/helpers.ts +4 -1
- package/src/pipeline/steps/index-search.ts +28 -15
- package/src/pipeline/steps/load-existing.ts +12 -3
- package/src/pipeline/steps/references.ts +36 -2
- package/src/pipeline/steps/resolve-artifact-source.ts +66 -0
- package/src/pipeline/steps/server-stamped-reserved-labels.ts +2 -1
- package/src/pipeline/steps/shapes.ts +31 -0
- package/src/pipeline/steps/slug.ts +7 -2
- package/src/pipeline/steps/validate-visibility.ts +9 -2
- package/src/pipeline/steps/validation.ts +3 -1
- package/src/pipeline/steps/version-archive.ts +225 -0
- package/src/pipeline/steps/version-history.ts +362 -0
- package/src/pipeline/steps/visibility-gates.ts +12 -9
- package/src/query/README.md +1 -1
- package/src/query/search/__tests__/criteria.test.ts +6 -7
- package/src/query/search/__tests__/query-store.test.ts +9 -2
- package/src/query/search/__tests__/registry.test.ts +6 -4
- package/src/query/search/registry.ts +6 -1
- package/src/temporal/schedule/__tests__/run-starter.test.ts +86 -24
- package/src/temporal/schedule/run-starter.ts +31 -8
- package/dist/domain/skill/storage/prefilter.d.ts.map +0 -1
- package/dist/domain/skill/storage/prefilter.js.map +0 -1
- /package/dist/{domain/skill/storage → archive}/prefilter.js +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# Pinned copy of stigmer-cloud backend/services/stigmer-server/fga/tests/schedule-session-visibility.fga.yaml
|
|
2
|
+
# at commit b87dd1170 (the OpenFGA store test the cloud runs against its live model).
|
|
3
|
+
# The body below is byte-identical to the source; the cloud re-runs the LIVE
|
|
4
|
+
# file against this evaluator at the re-pin, so a stale copy is caught there.
|
|
5
|
+
# Store tests for schedule-session read-only observability (the session
|
|
6
|
+
# `schedule` structural link — project DD-012 D-E, the channel-session
|
|
7
|
+
# idiom's second application).
|
|
8
|
+
#
|
|
9
|
+
# A session created by the schedule runtime carries a single
|
|
10
|
+
# session#schedule@schedule:<id>
|
|
11
|
+
# tuple and inherits the schedule's viewer set (creator owner + org admins
|
|
12
|
+
# via `admin from organization` on schedule + explicit grantees) into
|
|
13
|
+
# can_view ONLY — `viewer from schedule` is composed into session.can_view,
|
|
14
|
+
# deliberately NOT into session.viewer, so schedule observers never gain
|
|
15
|
+
# can_create_execution_in / can_edit / can_delete / can_grant_access
|
|
16
|
+
# (injecting a console message into an unattended run is not
|
|
17
|
+
# observability). Executions follow through agent_execution's
|
|
18
|
+
# `can_view: viewer or can_view from session`.
|
|
19
|
+
#
|
|
20
|
+
# The personal-session invariant is untouched: console sessions never carry
|
|
21
|
+
# a schedule tuple, so `viewer from schedule` resolves to nothing for them
|
|
22
|
+
# (pinned below and by session-personal-resource.fga.yaml).
|
|
23
|
+
#
|
|
24
|
+
# Run with:
|
|
25
|
+
# fga model test --tests schedule-session-visibility.fga.yaml
|
|
26
|
+
#
|
|
27
|
+
# Scenario: org "acme" has admin alice, member bob (who created the
|
|
28
|
+
# fee-reminder schedule and owns it), member carol (no relation to the
|
|
29
|
+
# schedule), and member dave (an explicit schedule viewer grant — the
|
|
30
|
+
# console "share this schedule" affordance). "rival" is another org whose
|
|
31
|
+
# admin eve must see nothing. The schedule session is owned by acme's
|
|
32
|
+
# system-schedule account; bob also has a normal personal console session
|
|
33
|
+
# to prove the invariant.
|
|
34
|
+
name: schedule-session-visibility
|
|
35
|
+
model_file: ../model/fga.mod
|
|
36
|
+
|
|
37
|
+
tuples:
|
|
38
|
+
# --- Org roles ---
|
|
39
|
+
- user: identity_account:alice
|
|
40
|
+
relation: admin
|
|
41
|
+
object: organization:acme
|
|
42
|
+
- user: identity_account:bob
|
|
43
|
+
relation: member
|
|
44
|
+
object: organization:acme
|
|
45
|
+
- user: identity_account:carol
|
|
46
|
+
relation: member
|
|
47
|
+
object: organization:acme
|
|
48
|
+
- user: identity_account:dave
|
|
49
|
+
relation: member
|
|
50
|
+
object: organization:acme
|
|
51
|
+
- user: identity_account:eve
|
|
52
|
+
relation: admin
|
|
53
|
+
object: organization:rival
|
|
54
|
+
|
|
55
|
+
# --- The Schedule (tuples written on create: org link + creator owner) ---
|
|
56
|
+
- user: organization:acme
|
|
57
|
+
relation: organization
|
|
58
|
+
object: schedule:fee-reminder
|
|
59
|
+
- user: identity_account:bob
|
|
60
|
+
relation: owner
|
|
61
|
+
object: schedule:fee-reminder
|
|
62
|
+
# dave's explicit viewer grant on the schedule (never on the session):
|
|
63
|
+
- user: identity_account:dave
|
|
64
|
+
relation: viewer
|
|
65
|
+
object: schedule:fee-reminder
|
|
66
|
+
|
|
67
|
+
# --- The schedule session (owned by the org's system-schedule account) ---
|
|
68
|
+
- user: organization:acme
|
|
69
|
+
relation: organization
|
|
70
|
+
object: session:scheduled-run
|
|
71
|
+
- user: identity_account:sys-schedule-acme
|
|
72
|
+
relation: owner
|
|
73
|
+
object: session:scheduled-run
|
|
74
|
+
# The structural link written by ScheduleSessionLinkStep:
|
|
75
|
+
- user: schedule:fee-reminder
|
|
76
|
+
relation: schedule
|
|
77
|
+
object: session:scheduled-run
|
|
78
|
+
|
|
79
|
+
# --- An execution inside the schedule session ---
|
|
80
|
+
- user: session:scheduled-run
|
|
81
|
+
relation: session
|
|
82
|
+
object: agent_execution:scheduled-run-1
|
|
83
|
+
|
|
84
|
+
# --- bob's ordinary personal console session (NO schedule tuple) ---
|
|
85
|
+
- user: organization:acme
|
|
86
|
+
relation: organization
|
|
87
|
+
object: session:bobs-chat
|
|
88
|
+
- user: identity_account:bob
|
|
89
|
+
relation: owner
|
|
90
|
+
object: session:bobs-chat
|
|
91
|
+
- user: session:bobs-chat
|
|
92
|
+
relation: session
|
|
93
|
+
object: agent_execution:bobs-run-1
|
|
94
|
+
|
|
95
|
+
tests:
|
|
96
|
+
- name: schedule creator can view the run but only view it
|
|
97
|
+
check:
|
|
98
|
+
- user: identity_account:bob
|
|
99
|
+
object: session:scheduled-run
|
|
100
|
+
assertions:
|
|
101
|
+
can_view: true
|
|
102
|
+
can_create_execution_in: false
|
|
103
|
+
can_edit: false
|
|
104
|
+
can_delete: false
|
|
105
|
+
can_grant_access: false
|
|
106
|
+
can_view_access: false
|
|
107
|
+
|
|
108
|
+
- name: org admin inherits view through the schedule, read-only
|
|
109
|
+
check:
|
|
110
|
+
- user: identity_account:alice
|
|
111
|
+
object: session:scheduled-run
|
|
112
|
+
assertions:
|
|
113
|
+
can_view: true
|
|
114
|
+
can_create_execution_in: false
|
|
115
|
+
can_edit: false
|
|
116
|
+
can_delete: false
|
|
117
|
+
can_grant_access: false
|
|
118
|
+
|
|
119
|
+
- name: plain org member without schedule access sees nothing
|
|
120
|
+
check:
|
|
121
|
+
- user: identity_account:carol
|
|
122
|
+
object: session:scheduled-run
|
|
123
|
+
assertions:
|
|
124
|
+
can_view: false
|
|
125
|
+
can_create_execution_in: false
|
|
126
|
+
|
|
127
|
+
- name: another org's admin sees nothing
|
|
128
|
+
check:
|
|
129
|
+
- user: identity_account:eve
|
|
130
|
+
object: session:scheduled-run
|
|
131
|
+
assertions:
|
|
132
|
+
can_view: false
|
|
133
|
+
|
|
134
|
+
- name: the system-schedule account keeps full session ownership
|
|
135
|
+
check:
|
|
136
|
+
- user: identity_account:sys-schedule-acme
|
|
137
|
+
object: session:scheduled-run
|
|
138
|
+
assertions:
|
|
139
|
+
can_view: true
|
|
140
|
+
can_create_execution_in: true
|
|
141
|
+
can_edit: true
|
|
142
|
+
can_delete: true
|
|
143
|
+
|
|
144
|
+
- name: executions inherit read-only schedule observability
|
|
145
|
+
check:
|
|
146
|
+
- user: identity_account:bob
|
|
147
|
+
object: agent_execution:scheduled-run-1
|
|
148
|
+
assertions:
|
|
149
|
+
can_view: true
|
|
150
|
+
can_edit: false
|
|
151
|
+
- user: identity_account:alice
|
|
152
|
+
object: agent_execution:scheduled-run-1
|
|
153
|
+
assertions:
|
|
154
|
+
can_view: true
|
|
155
|
+
can_edit: false
|
|
156
|
+
- user: identity_account:carol
|
|
157
|
+
object: agent_execution:scheduled-run-1
|
|
158
|
+
assertions:
|
|
159
|
+
can_view: false
|
|
160
|
+
|
|
161
|
+
- name: an explicit schedule viewer grant reaches the run read-only
|
|
162
|
+
check:
|
|
163
|
+
# dave holds schedule viewer only — he can open the runs, still
|
|
164
|
+
# read-only, and gains nothing on the schedule's management levers.
|
|
165
|
+
- user: identity_account:dave
|
|
166
|
+
object: session:scheduled-run
|
|
167
|
+
assertions:
|
|
168
|
+
can_view: true
|
|
169
|
+
can_create_execution_in: false
|
|
170
|
+
can_edit: false
|
|
171
|
+
- user: identity_account:dave
|
|
172
|
+
object: agent_execution:scheduled-run-1
|
|
173
|
+
assertions:
|
|
174
|
+
can_view: true
|
|
175
|
+
can_edit: false
|
|
176
|
+
|
|
177
|
+
- name: personal-session invariant is untouched by the schedule model
|
|
178
|
+
check:
|
|
179
|
+
# Admin still has no path into a console session (no schedule tuple).
|
|
180
|
+
- user: identity_account:alice
|
|
181
|
+
object: session:bobs-chat
|
|
182
|
+
assertions:
|
|
183
|
+
can_view: false
|
|
184
|
+
can_edit: false
|
|
185
|
+
can_delete: false
|
|
186
|
+
- user: identity_account:alice
|
|
187
|
+
object: agent_execution:bobs-run-1
|
|
188
|
+
assertions:
|
|
189
|
+
can_view: false
|
|
190
|
+
# And the owner's own access is unchanged.
|
|
191
|
+
- user: identity_account:bob
|
|
192
|
+
object: session:bobs-chat
|
|
193
|
+
assertions:
|
|
194
|
+
can_view: true
|
|
195
|
+
can_edit: true
|
|
196
|
+
can_create_execution_in: true
|
|
197
|
+
|
|
198
|
+
- name: list viewable sessions resolves the schedule chain
|
|
199
|
+
list_objects:
|
|
200
|
+
- user: identity_account:alice
|
|
201
|
+
type: session
|
|
202
|
+
assertions:
|
|
203
|
+
can_view:
|
|
204
|
+
- session:scheduled-run
|
|
205
|
+
- user: identity_account:bob
|
|
206
|
+
type: session
|
|
207
|
+
assertions:
|
|
208
|
+
can_view:
|
|
209
|
+
- session:scheduled-run
|
|
210
|
+
- session:bobs-chat
|
|
211
|
+
- user: identity_account:carol
|
|
212
|
+
type: session
|
|
213
|
+
assertions:
|
|
214
|
+
can_view: []
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Pinned copy of stigmer-cloud backend/services/stigmer-server/fga/tests/session-personal-resource.fga.yaml
|
|
2
|
+
# at commit b87dd1170 (the OpenFGA store test the cloud runs against its live model).
|
|
3
|
+
# The body below is byte-identical to the source; the cloud re-runs the LIVE
|
|
4
|
+
# file against this evaluator at the re-pin, so a stale copy is caught there.
|
|
5
|
+
# Store tests for the session personal-resource model, including owner
|
|
6
|
+
# deletability (2026-07-08-owner-session-delete changelog entry).
|
|
7
|
+
#
|
|
8
|
+
# Sessions are always private: no visibility tuples are ever written, so
|
|
9
|
+
# access is owner + explicit viewer grants only. Org admins have no implicit
|
|
10
|
+
# access, and platform operators have no session-delete override — the
|
|
11
|
+
# platform-level can_delete_session relation was removed in favor of
|
|
12
|
+
# `can_delete: owner` on the session itself (deletion no longer threatens
|
|
13
|
+
# the billing trail; usage records are immutable and denormalized).
|
|
14
|
+
#
|
|
15
|
+
# Agent executions inherit ALL access from their parent session
|
|
16
|
+
# (`owner from session`), so the execution assertions here pin the
|
|
17
|
+
# inheritance that session cascade-delete relies on.
|
|
18
|
+
#
|
|
19
|
+
# Run with:
|
|
20
|
+
# fga model test --tests session-personal-resource.fga.yaml
|
|
21
|
+
#
|
|
22
|
+
# Scenario: org "acme" has admin alice, member bob (session creator), and
|
|
23
|
+
# member carol. dana is a platform operator with no relation to the session.
|
|
24
|
+
name: session-personal-resource
|
|
25
|
+
model_file: ../model/fga.mod
|
|
26
|
+
|
|
27
|
+
tuples:
|
|
28
|
+
# --- Org roles ---
|
|
29
|
+
- user: identity_account:alice
|
|
30
|
+
relation: admin
|
|
31
|
+
object: organization:acme
|
|
32
|
+
- user: identity_account:bob
|
|
33
|
+
relation: member
|
|
34
|
+
object: organization:acme
|
|
35
|
+
- user: identity_account:carol
|
|
36
|
+
relation: member
|
|
37
|
+
object: organization:acme
|
|
38
|
+
|
|
39
|
+
# --- Platform operator (no relation to the session) ---
|
|
40
|
+
- user: identity_account:dana
|
|
41
|
+
relation: operator
|
|
42
|
+
object: platform:stigmer
|
|
43
|
+
|
|
44
|
+
# --- bob's session (tuples written on create) ---
|
|
45
|
+
- user: organization:acme
|
|
46
|
+
relation: organization
|
|
47
|
+
object: session:bobs-chat
|
|
48
|
+
- user: identity_account:bob
|
|
49
|
+
relation: owner
|
|
50
|
+
object: session:bobs-chat
|
|
51
|
+
|
|
52
|
+
# --- carol holds an explicit viewer grant on the session ---
|
|
53
|
+
- user: identity_account:carol
|
|
54
|
+
relation: viewer
|
|
55
|
+
object: session:bobs-chat
|
|
56
|
+
|
|
57
|
+
# --- an execution inside the session ---
|
|
58
|
+
- user: session:bobs-chat
|
|
59
|
+
relation: session
|
|
60
|
+
object: agent_execution:run-1
|
|
61
|
+
|
|
62
|
+
tests:
|
|
63
|
+
- name: owner has full control including delete
|
|
64
|
+
check:
|
|
65
|
+
- user: identity_account:bob
|
|
66
|
+
object: session:bobs-chat
|
|
67
|
+
assertions:
|
|
68
|
+
can_view: true
|
|
69
|
+
can_edit: true
|
|
70
|
+
can_delete: true
|
|
71
|
+
can_create_execution_in: true
|
|
72
|
+
can_grant_access: true
|
|
73
|
+
|
|
74
|
+
- name: explicit viewer can view and run, but not edit or delete
|
|
75
|
+
check:
|
|
76
|
+
- user: identity_account:carol
|
|
77
|
+
object: session:bobs-chat
|
|
78
|
+
assertions:
|
|
79
|
+
can_view: true
|
|
80
|
+
can_create_execution_in: true
|
|
81
|
+
can_edit: false
|
|
82
|
+
can_delete: false
|
|
83
|
+
can_grant_access: false
|
|
84
|
+
|
|
85
|
+
- name: org admin has no implicit access to a personal session
|
|
86
|
+
check:
|
|
87
|
+
- user: identity_account:alice
|
|
88
|
+
object: session:bobs-chat
|
|
89
|
+
assertions:
|
|
90
|
+
can_view: false
|
|
91
|
+
can_edit: false
|
|
92
|
+
can_delete: false
|
|
93
|
+
|
|
94
|
+
- name: platform operator has no session-delete override
|
|
95
|
+
check:
|
|
96
|
+
- user: identity_account:dana
|
|
97
|
+
object: session:bobs-chat
|
|
98
|
+
assertions:
|
|
99
|
+
can_view: false
|
|
100
|
+
can_delete: false
|
|
101
|
+
|
|
102
|
+
- name: execution access is inherited from the parent session
|
|
103
|
+
check:
|
|
104
|
+
- user: identity_account:bob
|
|
105
|
+
object: agent_execution:run-1
|
|
106
|
+
assertions:
|
|
107
|
+
can_view: true
|
|
108
|
+
can_edit: true
|
|
109
|
+
- user: identity_account:carol
|
|
110
|
+
object: agent_execution:run-1
|
|
111
|
+
assertions:
|
|
112
|
+
can_view: true
|
|
113
|
+
can_edit: false
|
|
114
|
+
- user: identity_account:alice
|
|
115
|
+
object: agent_execution:run-1
|
|
116
|
+
assertions:
|
|
117
|
+
can_view: false
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Pinned copy of stigmer-cloud backend/services/stigmer-server/fga/tests/workflow-execution-sharing.fga.yaml
|
|
2
|
+
# at commit b87dd1170 (the OpenFGA store test the cloud runs against its live model).
|
|
3
|
+
# The body below is byte-identical to the source; the cloud re-runs the LIVE
|
|
4
|
+
# file against this evaluator at the re-pin, so a stale copy is caught there.
|
|
5
|
+
# Store tests for workflow_execution sharing and run observability.
|
|
6
|
+
#
|
|
7
|
+
# Two independent axes govern who can read a run's inputs/outputs:
|
|
8
|
+
#
|
|
9
|
+
# 1. Per-execution sharing — the triggerer (owner) grants viewer on a single
|
|
10
|
+
# workflow_execution. Enabled by the new can_grant_access / can_view_access
|
|
11
|
+
# relations (mirrors session.fga).
|
|
12
|
+
# 2. Instance-level run observability — opt-in via the workflow_instance's
|
|
13
|
+
# `execution_viewer` relation, inherited by every execution through
|
|
14
|
+
# `viewer = ... or execution_viewer from workflow_instance`.
|
|
15
|
+
#
|
|
16
|
+
# The critical invariant: making an instance org-RUNNABLE (instance#viewer for
|
|
17
|
+
# org members) must NOT leak run history. Only execution_viewer does that.
|
|
18
|
+
#
|
|
19
|
+
# Run with:
|
|
20
|
+
# fga model test --tests workflow-execution-sharing.fga.yaml
|
|
21
|
+
#
|
|
22
|
+
# Scenario: org "acme" with members alice (triggerer), bob, carol; outsider
|
|
23
|
+
# org with member mallory. inst1 is org-runnable but keeps runs private; inst2
|
|
24
|
+
# opts into org-wide run observability.
|
|
25
|
+
name: workflow-execution-sharing
|
|
26
|
+
model_file: ../model/fga.mod
|
|
27
|
+
|
|
28
|
+
tuples:
|
|
29
|
+
# --- Org memberships ---
|
|
30
|
+
- user: identity_account:alice
|
|
31
|
+
relation: member
|
|
32
|
+
object: organization:acme
|
|
33
|
+
- user: identity_account:bob
|
|
34
|
+
relation: member
|
|
35
|
+
object: organization:acme
|
|
36
|
+
- user: identity_account:carol
|
|
37
|
+
relation: member
|
|
38
|
+
object: organization:acme
|
|
39
|
+
- user: identity_account:vera
|
|
40
|
+
relation: viewer
|
|
41
|
+
object: organization:acme
|
|
42
|
+
- user: identity_account:mallory
|
|
43
|
+
relation: member
|
|
44
|
+
object: organization:outsider
|
|
45
|
+
|
|
46
|
+
# --- inst1: ORG-RUNNABLE instance, runs stay PRIVATE (no execution_viewer) ---
|
|
47
|
+
- user: organization:acme
|
|
48
|
+
relation: organization
|
|
49
|
+
object: workflow_instance:inst1
|
|
50
|
+
- user: identity_account:alice
|
|
51
|
+
relation: owner
|
|
52
|
+
object: workflow_instance:inst1
|
|
53
|
+
# Everyone in the org can SEE the instance (cloud#257 viewer shape;
|
|
54
|
+
# RUNNING it is additionally gated in Java on can_create_execution_in)...
|
|
55
|
+
- user: organization:acme#viewer
|
|
56
|
+
relation: viewer
|
|
57
|
+
object: workflow_instance:inst1
|
|
58
|
+
# ...but NO execution_viewer tuple, so run history is not shared.
|
|
59
|
+
|
|
60
|
+
# run1: alice's run on inst1, no explicit grants.
|
|
61
|
+
- user: organization:acme
|
|
62
|
+
relation: organization
|
|
63
|
+
object: workflow_execution:run1
|
|
64
|
+
- user: workflow_instance:inst1
|
|
65
|
+
relation: workflow_instance
|
|
66
|
+
object: workflow_execution:run1
|
|
67
|
+
- user: identity_account:alice
|
|
68
|
+
relation: owner
|
|
69
|
+
object: workflow_execution:run1
|
|
70
|
+
|
|
71
|
+
# run1b: alice's run on inst1, explicitly shared with bob (per-execution).
|
|
72
|
+
- user: organization:acme
|
|
73
|
+
relation: organization
|
|
74
|
+
object: workflow_execution:run1b
|
|
75
|
+
- user: workflow_instance:inst1
|
|
76
|
+
relation: workflow_instance
|
|
77
|
+
object: workflow_execution:run1b
|
|
78
|
+
- user: identity_account:alice
|
|
79
|
+
relation: owner
|
|
80
|
+
object: workflow_execution:run1b
|
|
81
|
+
- user: identity_account:bob
|
|
82
|
+
relation: viewer
|
|
83
|
+
object: workflow_execution:run1b
|
|
84
|
+
|
|
85
|
+
# --- inst2: opts into ORG-WIDE run observability (execution_viewer) ---
|
|
86
|
+
- user: organization:acme
|
|
87
|
+
relation: organization
|
|
88
|
+
object: workflow_instance:inst2
|
|
89
|
+
- user: identity_account:alice
|
|
90
|
+
relation: owner
|
|
91
|
+
object: workflow_instance:inst2
|
|
92
|
+
- user: organization:acme#viewer
|
|
93
|
+
relation: execution_viewer
|
|
94
|
+
object: workflow_instance:inst2
|
|
95
|
+
|
|
96
|
+
# run2: alice's run on inst2.
|
|
97
|
+
- user: organization:acme
|
|
98
|
+
relation: organization
|
|
99
|
+
object: workflow_execution:run2
|
|
100
|
+
- user: workflow_instance:inst2
|
|
101
|
+
relation: workflow_instance
|
|
102
|
+
object: workflow_execution:run2
|
|
103
|
+
- user: identity_account:alice
|
|
104
|
+
relation: owner
|
|
105
|
+
object: workflow_execution:run2
|
|
106
|
+
|
|
107
|
+
tests:
|
|
108
|
+
- name: triggerer always sees and can manage sharing of their own run
|
|
109
|
+
check:
|
|
110
|
+
- user: identity_account:alice
|
|
111
|
+
object: workflow_execution:run1
|
|
112
|
+
assertions:
|
|
113
|
+
can_view: true
|
|
114
|
+
can_grant_access: true
|
|
115
|
+
can_view_access: true
|
|
116
|
+
|
|
117
|
+
- name: org-runnable instance does NOT leak run history to teammates
|
|
118
|
+
check:
|
|
119
|
+
# bob and carol can see/run inst1, but cannot read alice's run1.
|
|
120
|
+
- user: identity_account:bob
|
|
121
|
+
object: workflow_execution:run1
|
|
122
|
+
assertions:
|
|
123
|
+
can_view: false
|
|
124
|
+
can_view_access: false
|
|
125
|
+
- user: identity_account:carol
|
|
126
|
+
object: workflow_execution:run1
|
|
127
|
+
assertions:
|
|
128
|
+
can_view: false
|
|
129
|
+
|
|
130
|
+
- name: per-execution share grants exactly the named teammate
|
|
131
|
+
check:
|
|
132
|
+
- user: identity_account:bob
|
|
133
|
+
object: workflow_execution:run1b
|
|
134
|
+
assertions:
|
|
135
|
+
can_view: true
|
|
136
|
+
can_view_access: true
|
|
137
|
+
# A viewer cannot re-share (only the owner can grant).
|
|
138
|
+
- user: identity_account:bob
|
|
139
|
+
object: workflow_execution:run1b
|
|
140
|
+
assertions:
|
|
141
|
+
can_grant_access: false
|
|
142
|
+
# Another org member not on the grant sees nothing.
|
|
143
|
+
- user: identity_account:carol
|
|
144
|
+
object: workflow_execution:run1b
|
|
145
|
+
assertions:
|
|
146
|
+
can_view: false
|
|
147
|
+
|
|
148
|
+
- name: instance execution_viewer opt-in shares all runs org-wide
|
|
149
|
+
check:
|
|
150
|
+
- user: identity_account:bob
|
|
151
|
+
object: workflow_execution:run2
|
|
152
|
+
assertions:
|
|
153
|
+
can_view: true
|
|
154
|
+
- user: identity_account:carol
|
|
155
|
+
object: workflow_execution:run2
|
|
156
|
+
assertions:
|
|
157
|
+
can_view: true
|
|
158
|
+
# cloud#257: run observability is a pure read grant, so the org's
|
|
159
|
+
# read-only viewers are exactly its audience.
|
|
160
|
+
- user: identity_account:vera
|
|
161
|
+
object: workflow_execution:run2
|
|
162
|
+
assertions:
|
|
163
|
+
can_view: true
|
|
164
|
+
# Outsiders never gain access through org-scoped observability.
|
|
165
|
+
- user: identity_account:mallory
|
|
166
|
+
object: workflow_execution:run2
|
|
167
|
+
assertions:
|
|
168
|
+
can_view: false
|
|
169
|
+
|
|
170
|
+
- name: run privacy holds against org viewers exactly as against members
|
|
171
|
+
check:
|
|
172
|
+
# No execution_viewer opt-in on inst1 → vera reads the instance but
|
|
173
|
+
# never alice's run history.
|
|
174
|
+
- user: identity_account:vera
|
|
175
|
+
object: workflow_instance:inst1
|
|
176
|
+
context:
|
|
177
|
+
allow: false
|
|
178
|
+
assertions:
|
|
179
|
+
can_view: true
|
|
180
|
+
- user: identity_account:vera
|
|
181
|
+
object: workflow_execution:run1
|
|
182
|
+
assertions:
|
|
183
|
+
can_view: false
|
|
184
|
+
|
|
185
|
+
- name: list a teammate's viewable runs reflects both sharing axes
|
|
186
|
+
list_objects:
|
|
187
|
+
- user: identity_account:bob
|
|
188
|
+
type: workflow_execution
|
|
189
|
+
assertions:
|
|
190
|
+
can_view:
|
|
191
|
+
- workflow_execution:run1b
|
|
192
|
+
- workflow_execution:run2
|