@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,271 @@
|
|
|
1
|
+
# Pinned copy of stigmer-cloud backend/services/stigmer-server/fga/tests/default-instance-inheritance.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 default-instance structural inheritance (default_of).
|
|
6
|
+
#
|
|
7
|
+
# A blueprint's system-managed default instance carries a single
|
|
8
|
+
# instance#default_of@<blueprint>:<id>
|
|
9
|
+
# tuple and inherits the blueprint's ENTIRE viewer set through
|
|
10
|
+
# `viewer from default_of` — org members, public users (allow_public), and
|
|
11
|
+
# platform users (identity_provider#platform_user). No enum-derived
|
|
12
|
+
# visibility tuples are ever written on default instances, so their access
|
|
13
|
+
# can never drift from the template's.
|
|
14
|
+
#
|
|
15
|
+
# Run with:
|
|
16
|
+
# fga model test --tests default-instance-inheritance.fga.yaml
|
|
17
|
+
#
|
|
18
|
+
# Scenario: "planton" is a platform org owning identity_provider:idp1 which
|
|
19
|
+
# manages customer org "acme". Planton authors agents/workflows at every
|
|
20
|
+
# visibility level; each has a default instance linked via default_of.
|
|
21
|
+
# Alice (acme member) reaches default instances of platform-shared
|
|
22
|
+
# blueprints; planton members reach default instances of org-visible ones;
|
|
23
|
+
# everyone reaches default instances of public ones; personal instances
|
|
24
|
+
# never leak.
|
|
25
|
+
name: default-instance-inheritance
|
|
26
|
+
model_file: ../model/fga.mod
|
|
27
|
+
|
|
28
|
+
tuples:
|
|
29
|
+
# --- Platform tenancy: idp1 is owned by planton and manages acme ---
|
|
30
|
+
- user: organization:planton
|
|
31
|
+
relation: organization
|
|
32
|
+
object: identity_provider:idp1
|
|
33
|
+
- user: organization:acme
|
|
34
|
+
relation: managed_org
|
|
35
|
+
object: identity_provider:idp1
|
|
36
|
+
|
|
37
|
+
# --- Org memberships ---
|
|
38
|
+
- user: identity_account:swarup
|
|
39
|
+
relation: owner
|
|
40
|
+
object: organization:planton
|
|
41
|
+
- user: identity_account:priya
|
|
42
|
+
relation: member
|
|
43
|
+
object: organization:planton
|
|
44
|
+
- user: identity_account:veda
|
|
45
|
+
relation: viewer
|
|
46
|
+
object: organization:planton
|
|
47
|
+
- user: identity_account:alice
|
|
48
|
+
relation: member
|
|
49
|
+
object: organization:acme
|
|
50
|
+
- user: identity_account:mallory
|
|
51
|
+
relation: member
|
|
52
|
+
object: organization:outsider
|
|
53
|
+
|
|
54
|
+
# --- Platform-shared agent + its default instance ---
|
|
55
|
+
# PLATFORM carries the org floor tuple too (viewer@org#viewer — the org's
|
|
56
|
+
# full read audience), exactly as VisibilityTupleReconciler writes it.
|
|
57
|
+
- user: organization:planton
|
|
58
|
+
relation: organization
|
|
59
|
+
object: agent:sara
|
|
60
|
+
- user: identity_account:swarup
|
|
61
|
+
relation: owner
|
|
62
|
+
object: agent:sara
|
|
63
|
+
- user: identity_provider:idp1#platform_user
|
|
64
|
+
relation: platform_viewer
|
|
65
|
+
object: agent:sara
|
|
66
|
+
- user: organization:planton#viewer
|
|
67
|
+
relation: viewer
|
|
68
|
+
object: agent:sara
|
|
69
|
+
- user: organization:planton
|
|
70
|
+
relation: organization
|
|
71
|
+
object: agent_instance:sara-default
|
|
72
|
+
- user: agent:sara
|
|
73
|
+
relation: agent
|
|
74
|
+
object: agent_instance:sara-default
|
|
75
|
+
- user: identity_account:swarup
|
|
76
|
+
relation: owner
|
|
77
|
+
object: agent_instance:sara-default
|
|
78
|
+
- user: agent:sara
|
|
79
|
+
relation: default_of
|
|
80
|
+
object: agent_instance:sara-default
|
|
81
|
+
|
|
82
|
+
# --- Alice's personal instance of the shared agent (NO default_of) ---
|
|
83
|
+
- user: organization:acme
|
|
84
|
+
relation: organization
|
|
85
|
+
object: agent_instance:alice-personal
|
|
86
|
+
- user: agent:sara
|
|
87
|
+
relation: agent
|
|
88
|
+
object: agent_instance:alice-personal
|
|
89
|
+
- user: identity_account:alice
|
|
90
|
+
relation: owner
|
|
91
|
+
object: agent_instance:alice-personal
|
|
92
|
+
|
|
93
|
+
# --- Org-visible agent + its default instance ---
|
|
94
|
+
# ORG visibility is an explicit viewer tuple (viewer@org#viewer) — the
|
|
95
|
+
# unconditional `viewer from organization` grant is gone (private is real).
|
|
96
|
+
- user: organization:planton
|
|
97
|
+
relation: organization
|
|
98
|
+
object: agent:internal-bot
|
|
99
|
+
- user: identity_account:swarup
|
|
100
|
+
relation: owner
|
|
101
|
+
object: agent:internal-bot
|
|
102
|
+
- user: organization:planton#viewer
|
|
103
|
+
relation: viewer
|
|
104
|
+
object: agent:internal-bot
|
|
105
|
+
- user: organization:planton
|
|
106
|
+
relation: organization
|
|
107
|
+
object: agent_instance:internal-default
|
|
108
|
+
- user: agent:internal-bot
|
|
109
|
+
relation: agent
|
|
110
|
+
object: agent_instance:internal-default
|
|
111
|
+
- user: identity_account:swarup
|
|
112
|
+
relation: owner
|
|
113
|
+
object: agent_instance:internal-default
|
|
114
|
+
- user: agent:internal-bot
|
|
115
|
+
relation: default_of
|
|
116
|
+
object: agent_instance:internal-default
|
|
117
|
+
|
|
118
|
+
# --- Public agent + its default instance ---
|
|
119
|
+
# PUBLIC carries the org floor tuple too (viewer@org#viewer).
|
|
120
|
+
- user: organization:planton
|
|
121
|
+
relation: organization
|
|
122
|
+
object: agent:public-bot
|
|
123
|
+
- user: identity_account:swarup
|
|
124
|
+
relation: owner
|
|
125
|
+
object: agent:public-bot
|
|
126
|
+
- user: identity_account:*
|
|
127
|
+
relation: viewer
|
|
128
|
+
object: agent:public-bot
|
|
129
|
+
condition:
|
|
130
|
+
name: allow_public
|
|
131
|
+
- user: organization:planton#viewer
|
|
132
|
+
relation: viewer
|
|
133
|
+
object: agent:public-bot
|
|
134
|
+
- user: organization:planton
|
|
135
|
+
relation: organization
|
|
136
|
+
object: agent_instance:public-bot-default
|
|
137
|
+
- user: agent:public-bot
|
|
138
|
+
relation: agent
|
|
139
|
+
object: agent_instance:public-bot-default
|
|
140
|
+
- user: identity_account:swarup
|
|
141
|
+
relation: owner
|
|
142
|
+
object: agent_instance:public-bot-default
|
|
143
|
+
- user: agent:public-bot
|
|
144
|
+
relation: default_of
|
|
145
|
+
object: agent_instance:public-bot-default
|
|
146
|
+
|
|
147
|
+
# --- Platform-shared workflow + its default instance ---
|
|
148
|
+
- user: organization:planton
|
|
149
|
+
relation: organization
|
|
150
|
+
object: workflow:onboarding
|
|
151
|
+
- user: identity_account:swarup
|
|
152
|
+
relation: owner
|
|
153
|
+
object: workflow:onboarding
|
|
154
|
+
- user: identity_provider:idp1#platform_user
|
|
155
|
+
relation: platform_viewer
|
|
156
|
+
object: workflow:onboarding
|
|
157
|
+
- user: organization:planton#viewer
|
|
158
|
+
relation: viewer
|
|
159
|
+
object: workflow:onboarding
|
|
160
|
+
- user: organization:planton
|
|
161
|
+
relation: organization
|
|
162
|
+
object: workflow_instance:onboarding-default
|
|
163
|
+
- user: workflow:onboarding
|
|
164
|
+
relation: workflow
|
|
165
|
+
object: workflow_instance:onboarding-default
|
|
166
|
+
- user: identity_account:swarup
|
|
167
|
+
relation: owner
|
|
168
|
+
object: workflow_instance:onboarding-default
|
|
169
|
+
- user: workflow:onboarding
|
|
170
|
+
relation: default_of
|
|
171
|
+
object: workflow_instance:onboarding-default
|
|
172
|
+
|
|
173
|
+
tests:
|
|
174
|
+
- name: managed-org member reaches the default instance of a platform-shared agent
|
|
175
|
+
check:
|
|
176
|
+
- user: identity_account:alice
|
|
177
|
+
object: agent_instance:sara-default
|
|
178
|
+
context:
|
|
179
|
+
allow: false
|
|
180
|
+
assertions:
|
|
181
|
+
can_view: true
|
|
182
|
+
can_execute: true
|
|
183
|
+
can_edit: false
|
|
184
|
+
can_delete: false
|
|
185
|
+
|
|
186
|
+
- name: outsiders get nothing from the default_of link
|
|
187
|
+
check:
|
|
188
|
+
- user: identity_account:mallory
|
|
189
|
+
object: agent_instance:sara-default
|
|
190
|
+
context:
|
|
191
|
+
allow: false
|
|
192
|
+
assertions:
|
|
193
|
+
can_view: false
|
|
194
|
+
can_execute: false
|
|
195
|
+
|
|
196
|
+
- name: personal instances never leak through the parent agent
|
|
197
|
+
check:
|
|
198
|
+
# Swarup owns the agent itself, but alice's personal instance has no
|
|
199
|
+
# default_of tuple — only she (its owner) can reach it.
|
|
200
|
+
- user: identity_account:swarup
|
|
201
|
+
object: agent_instance:alice-personal
|
|
202
|
+
context:
|
|
203
|
+
allow: false
|
|
204
|
+
assertions:
|
|
205
|
+
can_view: false
|
|
206
|
+
- user: identity_account:alice
|
|
207
|
+
object: agent_instance:alice-personal
|
|
208
|
+
context:
|
|
209
|
+
allow: false
|
|
210
|
+
assertions:
|
|
211
|
+
can_view: true
|
|
212
|
+
can_edit: true
|
|
213
|
+
|
|
214
|
+
- name: org members reach the default instance of an org-visible agent
|
|
215
|
+
check:
|
|
216
|
+
- user: identity_account:priya
|
|
217
|
+
object: agent_instance:internal-default
|
|
218
|
+
context:
|
|
219
|
+
allow: false
|
|
220
|
+
assertions:
|
|
221
|
+
can_view: true
|
|
222
|
+
can_execute: true
|
|
223
|
+
can_edit: false
|
|
224
|
+
# cloud#257: the default_of chain reaches org viewer-role users too —
|
|
225
|
+
# the viewer-shaped org tuple on the parent agent is the org's full
|
|
226
|
+
# read audience, and the default instance inherits it structurally.
|
|
227
|
+
- user: identity_account:veda
|
|
228
|
+
object: agent_instance:internal-default
|
|
229
|
+
context:
|
|
230
|
+
allow: false
|
|
231
|
+
assertions:
|
|
232
|
+
can_view: true
|
|
233
|
+
can_edit: false
|
|
234
|
+
# Managed-org membership grants nothing on non-platform-shared agents.
|
|
235
|
+
- user: identity_account:alice
|
|
236
|
+
object: agent_instance:internal-default
|
|
237
|
+
context:
|
|
238
|
+
allow: false
|
|
239
|
+
assertions:
|
|
240
|
+
can_view: false
|
|
241
|
+
|
|
242
|
+
- name: everyone reaches the default instance of a public agent
|
|
243
|
+
check:
|
|
244
|
+
- user: identity_account:mallory
|
|
245
|
+
object: agent_instance:public-bot-default
|
|
246
|
+
context:
|
|
247
|
+
allow: true
|
|
248
|
+
assertions:
|
|
249
|
+
can_view: true
|
|
250
|
+
|
|
251
|
+
- name: managed-org member reaches the default instance of a platform-shared workflow
|
|
252
|
+
check:
|
|
253
|
+
- user: identity_account:alice
|
|
254
|
+
object: workflow_instance:onboarding-default
|
|
255
|
+
context:
|
|
256
|
+
allow: false
|
|
257
|
+
assertions:
|
|
258
|
+
can_view: true
|
|
259
|
+
can_execute: true
|
|
260
|
+
can_edit: false
|
|
261
|
+
|
|
262
|
+
- name: list managed-org member's viewable agent instances resolves the default_of chain
|
|
263
|
+
list_objects:
|
|
264
|
+
- user: identity_account:alice
|
|
265
|
+
type: agent_instance
|
|
266
|
+
context:
|
|
267
|
+
allow: false
|
|
268
|
+
assertions:
|
|
269
|
+
can_view:
|
|
270
|
+
- agent_instance:sara-default
|
|
271
|
+
- agent_instance:alice-personal
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Pinned copy of stigmer-cloud backend/services/stigmer-server/fga/tests/memory-subject-only.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
|
+
# Memory is subject-only (DD-004 as ratified): the identity account the
|
|
6
|
+
# memory is ABOUT is its only principal. These tests pin the platform's
|
|
7
|
+
# strictest model — org membership grants nothing, org ADMINSHIP grants
|
|
8
|
+
# nothing (admins govern the memory_enabled switch, never the content),
|
|
9
|
+
# and nothing is grantable.
|
|
10
|
+
|
|
11
|
+
name: memory-subject-only
|
|
12
|
+
model_file: ../model/fga.mod
|
|
13
|
+
|
|
14
|
+
tuples:
|
|
15
|
+
# Org membership and adminship — proving both grant nothing on memories.
|
|
16
|
+
- user: identity_account:alice
|
|
17
|
+
relation: member
|
|
18
|
+
object: organization:acme
|
|
19
|
+
- user: identity_account:mallory
|
|
20
|
+
relation: member
|
|
21
|
+
object: organization:acme
|
|
22
|
+
- user: identity_account:ana
|
|
23
|
+
relation: admin
|
|
24
|
+
object: organization:acme
|
|
25
|
+
|
|
26
|
+
# Alice's memory (the config-driven create tuples: org + subject).
|
|
27
|
+
- user: organization:acme
|
|
28
|
+
relation: organization
|
|
29
|
+
object: memory:mem-alice-terse
|
|
30
|
+
- user: identity_account:alice
|
|
31
|
+
relation: subject
|
|
32
|
+
object: memory:mem-alice-terse
|
|
33
|
+
|
|
34
|
+
tests:
|
|
35
|
+
- name: the subject has full control over their own memory
|
|
36
|
+
check:
|
|
37
|
+
- user: identity_account:alice
|
|
38
|
+
object: memory:mem-alice-terse
|
|
39
|
+
assertions:
|
|
40
|
+
can_view: true
|
|
41
|
+
can_edit: true
|
|
42
|
+
can_delete: true
|
|
43
|
+
|
|
44
|
+
- name: a fellow org member sees and touches nothing
|
|
45
|
+
check:
|
|
46
|
+
- user: identity_account:mallory
|
|
47
|
+
object: memory:mem-alice-terse
|
|
48
|
+
assertions:
|
|
49
|
+
can_view: false
|
|
50
|
+
can_edit: false
|
|
51
|
+
can_delete: false
|
|
52
|
+
|
|
53
|
+
- name: an org ADMIN sees and touches nothing — the setting, never the entries
|
|
54
|
+
check:
|
|
55
|
+
- user: identity_account:ana
|
|
56
|
+
object: memory:mem-alice-terse
|
|
57
|
+
assertions:
|
|
58
|
+
can_view: false
|
|
59
|
+
can_edit: false
|
|
60
|
+
can_delete: false
|
|
61
|
+
|
|
62
|
+
- name: list-objects returns only the subject's own records
|
|
63
|
+
list_objects:
|
|
64
|
+
- user: identity_account:alice
|
|
65
|
+
type: memory
|
|
66
|
+
assertions:
|
|
67
|
+
can_view:
|
|
68
|
+
- memory:mem-alice-terse
|
|
69
|
+
- user: identity_account:mallory
|
|
70
|
+
type: memory
|
|
71
|
+
assertions:
|
|
72
|
+
can_view: []
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
# Pinned copy of stigmer-cloud backend/services/stigmer-server/fga/tests/org-admin-owner-inheritance.fga.yaml
|
|
2
|
+
# at commit 2ec420161 (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 org-admin owner inheritance (T08).
|
|
6
|
+
#
|
|
7
|
+
# Blueprint kinds — agent, agent_share, agent_channel, channel_app,
|
|
8
|
+
# schedule, skill, workflow, project — compose org admins into `owner`:
|
|
9
|
+
#
|
|
10
|
+
# define owner: [identity_account] or admin from organization
|
|
11
|
+
#
|
|
12
|
+
# This is the GitHub-org-admin model (precedent: mcp_server, iam_policy,
|
|
13
|
+
# invitation): every org asset has an operator of last resort, so
|
|
14
|
+
# machine-provisioned and ex-employee resources stay manageable. Because
|
|
15
|
+
# owner feeds viewer (and can_execute on agents), admins also see, list,
|
|
16
|
+
# and run PRIVATE blueprints — a deliberate, accepted trade recorded in the
|
|
17
|
+
# T08 design decision.
|
|
18
|
+
#
|
|
19
|
+
# The four personal/secret kinds — agent_instance, environment, session,
|
|
20
|
+
# workflow_instance — deliberately do NOT inherit. Their fixtures below
|
|
21
|
+
# carry the organization tuple, so these tests would fail loudly if
|
|
22
|
+
# inheritance were ever wrongly added to them.
|
|
23
|
+
#
|
|
24
|
+
# Run with:
|
|
25
|
+
# fga model test --tests org-admin-owner-inheritance.fga.yaml
|
|
26
|
+
#
|
|
27
|
+
# Scenario: org "acme" has org owner root, org admin ana, and plain member
|
|
28
|
+
# dave. carol (a plain member) created one PRIVATE resource of each
|
|
29
|
+
# inherited kind, plus one of each excluded kind. zara is an admin of the
|
|
30
|
+
# unrelated org "other".
|
|
31
|
+
name: org-admin-owner-inheritance
|
|
32
|
+
model_file: ../model/fga.mod
|
|
33
|
+
|
|
34
|
+
tuples:
|
|
35
|
+
# --- Org roles ---
|
|
36
|
+
- user: identity_account:root
|
|
37
|
+
relation: owner
|
|
38
|
+
object: organization:acme
|
|
39
|
+
- user: identity_account:ana
|
|
40
|
+
relation: admin
|
|
41
|
+
object: organization:acme
|
|
42
|
+
- user: identity_account:dave
|
|
43
|
+
relation: member
|
|
44
|
+
object: organization:acme
|
|
45
|
+
- user: identity_account:carol
|
|
46
|
+
relation: member
|
|
47
|
+
object: organization:acme
|
|
48
|
+
- user: identity_account:zara
|
|
49
|
+
relation: admin
|
|
50
|
+
object: organization:other
|
|
51
|
+
|
|
52
|
+
# --- carol's PRIVATE blueprints (creation tuples only) ---
|
|
53
|
+
- user: organization:acme
|
|
54
|
+
relation: organization
|
|
55
|
+
object: agent:carols-bot
|
|
56
|
+
- user: identity_account:carol
|
|
57
|
+
relation: owner
|
|
58
|
+
object: agent:carols-bot
|
|
59
|
+
- user: organization:acme
|
|
60
|
+
relation: organization
|
|
61
|
+
object: agent_share:carols-bot-share
|
|
62
|
+
- user: identity_account:carol
|
|
63
|
+
relation: owner
|
|
64
|
+
object: agent_share:carols-bot-share
|
|
65
|
+
- user: organization:acme
|
|
66
|
+
relation: organization
|
|
67
|
+
object: agent_channel:carols-bot-slack
|
|
68
|
+
- user: identity_account:carol
|
|
69
|
+
relation: owner
|
|
70
|
+
object: agent_channel:carols-bot-slack
|
|
71
|
+
- user: organization:acme
|
|
72
|
+
relation: organization
|
|
73
|
+
object: channel_app:carols-slack-app
|
|
74
|
+
- user: identity_account:carol
|
|
75
|
+
relation: owner
|
|
76
|
+
object: channel_app:carols-slack-app
|
|
77
|
+
- user: organization:acme
|
|
78
|
+
relation: organization
|
|
79
|
+
object: schedule:carols-reminders
|
|
80
|
+
- user: identity_account:carol
|
|
81
|
+
relation: owner
|
|
82
|
+
object: schedule:carols-reminders
|
|
83
|
+
- user: organization:acme
|
|
84
|
+
relation: organization
|
|
85
|
+
object: skill:carols-notes
|
|
86
|
+
- user: identity_account:carol
|
|
87
|
+
relation: owner
|
|
88
|
+
object: skill:carols-notes
|
|
89
|
+
- user: organization:acme
|
|
90
|
+
relation: organization
|
|
91
|
+
object: workflow:carols-flow
|
|
92
|
+
- user: identity_account:carol
|
|
93
|
+
relation: owner
|
|
94
|
+
object: workflow:carols-flow
|
|
95
|
+
- user: organization:acme
|
|
96
|
+
relation: organization
|
|
97
|
+
object: project:carols-project
|
|
98
|
+
- user: identity_account:carol
|
|
99
|
+
relation: owner
|
|
100
|
+
object: project:carols-project
|
|
101
|
+
|
|
102
|
+
# --- carol's personal resources (organization tuple present, so a
|
|
103
|
+
# wrongly-added inheritance WOULD resolve — these must stay denied) ---
|
|
104
|
+
- user: organization:acme
|
|
105
|
+
relation: organization
|
|
106
|
+
object: agent_instance:carols-instance
|
|
107
|
+
- user: agent:carols-bot
|
|
108
|
+
relation: agent
|
|
109
|
+
object: agent_instance:carols-instance
|
|
110
|
+
- user: identity_account:carol
|
|
111
|
+
relation: owner
|
|
112
|
+
object: agent_instance:carols-instance
|
|
113
|
+
- user: organization:acme
|
|
114
|
+
relation: organization
|
|
115
|
+
object: environment:carols-secrets
|
|
116
|
+
- user: identity_account:carol
|
|
117
|
+
relation: owner
|
|
118
|
+
object: environment:carols-secrets
|
|
119
|
+
- user: identity_account:carol
|
|
120
|
+
relation: creator
|
|
121
|
+
object: environment:carols-secrets
|
|
122
|
+
- user: organization:acme
|
|
123
|
+
relation: organization
|
|
124
|
+
object: session:carols-chat
|
|
125
|
+
- user: identity_account:carol
|
|
126
|
+
relation: owner
|
|
127
|
+
object: session:carols-chat
|
|
128
|
+
|
|
129
|
+
tests:
|
|
130
|
+
- name: org admin inherits full management of every blueprint kind
|
|
131
|
+
check:
|
|
132
|
+
- user: identity_account:ana
|
|
133
|
+
object: agent:carols-bot
|
|
134
|
+
context:
|
|
135
|
+
allow: false
|
|
136
|
+
assertions:
|
|
137
|
+
can_view: true
|
|
138
|
+
can_edit: true
|
|
139
|
+
can_delete: true
|
|
140
|
+
can_grant_access: true
|
|
141
|
+
can_execute: true
|
|
142
|
+
- user: identity_account:ana
|
|
143
|
+
object: agent_share:carols-bot-share
|
|
144
|
+
assertions:
|
|
145
|
+
can_view: true
|
|
146
|
+
can_edit: true
|
|
147
|
+
can_delete: true
|
|
148
|
+
can_grant_access: true
|
|
149
|
+
- user: identity_account:ana
|
|
150
|
+
object: agent_channel:carols-bot-slack
|
|
151
|
+
assertions:
|
|
152
|
+
can_view: true
|
|
153
|
+
can_edit: true
|
|
154
|
+
can_delete: true
|
|
155
|
+
can_grant_access: true
|
|
156
|
+
- user: identity_account:ana
|
|
157
|
+
object: channel_app:carols-slack-app
|
|
158
|
+
assertions:
|
|
159
|
+
can_view: true
|
|
160
|
+
can_edit: true
|
|
161
|
+
can_delete: true
|
|
162
|
+
can_grant_access: true
|
|
163
|
+
- user: identity_account:ana
|
|
164
|
+
object: schedule:carols-reminders
|
|
165
|
+
assertions:
|
|
166
|
+
can_view: true
|
|
167
|
+
can_edit: true
|
|
168
|
+
can_delete: true
|
|
169
|
+
can_grant_access: true
|
|
170
|
+
- user: identity_account:ana
|
|
171
|
+
object: skill:carols-notes
|
|
172
|
+
context:
|
|
173
|
+
allow: false
|
|
174
|
+
assertions:
|
|
175
|
+
can_view: true
|
|
176
|
+
can_edit: true
|
|
177
|
+
can_delete: true
|
|
178
|
+
can_grant_access: true
|
|
179
|
+
- user: identity_account:ana
|
|
180
|
+
object: workflow:carols-flow
|
|
181
|
+
context:
|
|
182
|
+
allow: false
|
|
183
|
+
assertions:
|
|
184
|
+
can_view: true
|
|
185
|
+
can_edit: true
|
|
186
|
+
can_delete: true
|
|
187
|
+
can_grant_access: true
|
|
188
|
+
- user: identity_account:ana
|
|
189
|
+
object: project:carols-project
|
|
190
|
+
assertions:
|
|
191
|
+
can_view: true
|
|
192
|
+
can_edit: true
|
|
193
|
+
can_delete: true
|
|
194
|
+
can_grant_access: true
|
|
195
|
+
|
|
196
|
+
- name: org owner inherits through the admin hierarchy
|
|
197
|
+
check:
|
|
198
|
+
- user: identity_account:root
|
|
199
|
+
object: agent:carols-bot
|
|
200
|
+
context:
|
|
201
|
+
allow: false
|
|
202
|
+
assertions:
|
|
203
|
+
can_edit: true
|
|
204
|
+
can_delete: true
|
|
205
|
+
can_grant_access: true
|
|
206
|
+
- user: identity_account:root
|
|
207
|
+
object: agent_share:carols-bot-share
|
|
208
|
+
assertions:
|
|
209
|
+
can_edit: true
|
|
210
|
+
can_delete: true
|
|
211
|
+
- user: identity_account:root
|
|
212
|
+
object: agent_channel:carols-bot-slack
|
|
213
|
+
assertions:
|
|
214
|
+
can_edit: true
|
|
215
|
+
can_delete: true
|
|
216
|
+
|
|
217
|
+
- name: plain org member still has nothing on private blueprints
|
|
218
|
+
check:
|
|
219
|
+
- user: identity_account:dave
|
|
220
|
+
object: agent:carols-bot
|
|
221
|
+
context:
|
|
222
|
+
allow: false
|
|
223
|
+
assertions:
|
|
224
|
+
can_view: false
|
|
225
|
+
can_edit: false
|
|
226
|
+
can_delete: false
|
|
227
|
+
can_grant_access: false
|
|
228
|
+
- user: identity_account:dave
|
|
229
|
+
object: agent_share:carols-bot-share
|
|
230
|
+
assertions:
|
|
231
|
+
can_view: false
|
|
232
|
+
can_edit: false
|
|
233
|
+
- user: identity_account:dave
|
|
234
|
+
object: agent_channel:carols-bot-slack
|
|
235
|
+
assertions:
|
|
236
|
+
can_view: false
|
|
237
|
+
can_edit: false
|
|
238
|
+
- user: identity_account:dave
|
|
239
|
+
object: channel_app:carols-slack-app
|
|
240
|
+
assertions:
|
|
241
|
+
can_view: false
|
|
242
|
+
can_edit: false
|
|
243
|
+
- user: identity_account:dave
|
|
244
|
+
object: schedule:carols-reminders
|
|
245
|
+
assertions:
|
|
246
|
+
can_view: false
|
|
247
|
+
can_edit: false
|
|
248
|
+
|
|
249
|
+
- name: admin of an unrelated org has nothing
|
|
250
|
+
check:
|
|
251
|
+
- user: identity_account:zara
|
|
252
|
+
object: agent:carols-bot
|
|
253
|
+
context:
|
|
254
|
+
allow: false
|
|
255
|
+
assertions:
|
|
256
|
+
can_view: false
|
|
257
|
+
can_edit: false
|
|
258
|
+
can_delete: false
|
|
259
|
+
- user: identity_account:zara
|
|
260
|
+
object: project:carols-project
|
|
261
|
+
assertions:
|
|
262
|
+
can_view: false
|
|
263
|
+
can_edit: false
|
|
264
|
+
|
|
265
|
+
- name: personal kinds stay admin-excluded (privacy invariant)
|
|
266
|
+
check:
|
|
267
|
+
- user: identity_account:ana
|
|
268
|
+
object: agent_instance:carols-instance
|
|
269
|
+
context:
|
|
270
|
+
allow: false
|
|
271
|
+
assertions:
|
|
272
|
+
can_view: false
|
|
273
|
+
can_edit: false
|
|
274
|
+
can_delete: false
|
|
275
|
+
- user: identity_account:ana
|
|
276
|
+
object: environment:carols-secrets
|
|
277
|
+
assertions:
|
|
278
|
+
can_view: false
|
|
279
|
+
can_edit: false
|
|
280
|
+
can_delete: false
|
|
281
|
+
can_read_secrets: false
|
|
282
|
+
- user: identity_account:ana
|
|
283
|
+
object: session:carols-chat
|
|
284
|
+
assertions:
|
|
285
|
+
can_view: false
|
|
286
|
+
can_edit: false
|
|
287
|
+
can_delete: false
|
|
288
|
+
# The org OWNER is admin-and-above — the exclusion must hold for
|
|
289
|
+
# them too.
|
|
290
|
+
- user: identity_account:root
|
|
291
|
+
object: environment:carols-secrets
|
|
292
|
+
assertions:
|
|
293
|
+
can_view: false
|
|
294
|
+
can_read_secrets: false
|
|
295
|
+
|
|
296
|
+
- name: creator keeps everything (inheritance adds, never subtracts)
|
|
297
|
+
check:
|
|
298
|
+
- user: identity_account:carol
|
|
299
|
+
object: agent:carols-bot
|
|
300
|
+
context:
|
|
301
|
+
allow: false
|
|
302
|
+
assertions:
|
|
303
|
+
can_view: true
|
|
304
|
+
can_edit: true
|
|
305
|
+
can_delete: true
|
|
306
|
+
can_grant_access: true
|
|
307
|
+
|
|
308
|
+
- name: admin's listable resources include private blueprints, never personal kinds
|
|
309
|
+
list_objects:
|
|
310
|
+
- user: identity_account:ana
|
|
311
|
+
type: agent
|
|
312
|
+
context:
|
|
313
|
+
allow: false
|
|
314
|
+
assertions:
|
|
315
|
+
can_view:
|
|
316
|
+
- agent:carols-bot
|
|
317
|
+
can_edit:
|
|
318
|
+
- agent:carols-bot
|
|
319
|
+
- user: identity_account:ana
|
|
320
|
+
type: agent_instance
|
|
321
|
+
context:
|
|
322
|
+
allow: false
|
|
323
|
+
assertions:
|
|
324
|
+
can_view: []
|
|
325
|
+
- user: identity_account:ana
|
|
326
|
+
type: session
|
|
327
|
+
assertions:
|
|
328
|
+
can_view: []
|