@bluefly/openstandardagents 0.2.8 → 0.3.0
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/CHANGELOG.md +1772 -185
- package/README.md +517 -161
- package/bin/ossa-generate +9 -16
- package/bin/quickstart +514 -0
- package/dist/adapters/anthropic/client.d.ts +144 -0
- package/dist/adapters/anthropic/client.d.ts.map +1 -0
- package/dist/adapters/anthropic/client.js +364 -0
- package/dist/adapters/anthropic/client.js.map +1 -0
- package/dist/adapters/anthropic/config.d.ts +149 -0
- package/dist/adapters/anthropic/config.d.ts.map +1 -0
- package/dist/adapters/anthropic/config.js +157 -0
- package/dist/adapters/anthropic/config.js.map +1 -0
- package/dist/adapters/anthropic/index.d.ts +40 -0
- package/dist/adapters/anthropic/index.d.ts.map +1 -0
- package/dist/adapters/anthropic/index.js +40 -0
- package/dist/adapters/anthropic/index.js.map +1 -0
- package/dist/adapters/anthropic/messages.d.ts +93 -0
- package/dist/adapters/anthropic/messages.d.ts.map +1 -0
- package/dist/adapters/anthropic/messages.js +318 -0
- package/dist/adapters/anthropic/messages.js.map +1 -0
- package/dist/adapters/anthropic/runtime.d.ts +136 -0
- package/dist/adapters/anthropic/runtime.d.ts.map +1 -0
- package/dist/adapters/anthropic/runtime.js +287 -0
- package/dist/adapters/anthropic/runtime.js.map +1 -0
- package/dist/adapters/anthropic/tools.d.ts +126 -0
- package/dist/adapters/anthropic/tools.d.ts.map +1 -0
- package/dist/adapters/anthropic/tools.js +329 -0
- package/dist/adapters/anthropic/tools.js.map +1 -0
- package/dist/adapters/crewai-adapter.d.ts +57 -0
- package/dist/adapters/crewai-adapter.d.ts.map +1 -0
- package/dist/adapters/crewai-adapter.js +164 -0
- package/dist/adapters/crewai-adapter.js.map +1 -0
- package/dist/adapters/drupal/index.d.ts +109 -0
- package/dist/adapters/drupal/index.d.ts.map +1 -0
- package/dist/adapters/drupal/index.js +292 -0
- package/dist/adapters/drupal/index.js.map +1 -0
- package/dist/adapters/langchain-adapter.d.ts +45 -0
- package/dist/adapters/langchain-adapter.d.ts.map +1 -0
- package/dist/adapters/langchain-adapter.js +133 -0
- package/dist/adapters/langchain-adapter.js.map +1 -0
- package/dist/adapters/langflow-adapter.d.ts +50 -0
- package/dist/adapters/langflow-adapter.d.ts.map +1 -0
- package/dist/adapters/langflow-adapter.js +232 -0
- package/dist/adapters/langflow-adapter.js.map +1 -0
- package/dist/adapters/openapi-adapter.d.ts +93 -0
- package/dist/adapters/openapi-adapter.d.ts.map +1 -0
- package/dist/adapters/openapi-adapter.js +311 -0
- package/dist/adapters/openapi-adapter.js.map +1 -0
- package/dist/adapters/symfony/index.d.ts +163 -0
- package/dist/adapters/symfony/index.d.ts.map +1 -0
- package/dist/adapters/symfony/index.js +271 -0
- package/dist/adapters/symfony/index.js.map +1 -0
- package/dist/cli/commands/agents-md.command.d.ts +7 -0
- package/dist/cli/commands/agents-md.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md.command.js +148 -0
- package/dist/cli/commands/agents-md.command.js.map +1 -0
- package/dist/cli/commands/contract.command.d.ts +10 -0
- package/dist/cli/commands/contract.command.d.ts.map +1 -0
- package/dist/cli/commands/contract.command.js +402 -0
- package/dist/cli/commands/contract.command.js.map +1 -0
- package/dist/cli/commands/dependencies.command.d.ts +10 -0
- package/dist/cli/commands/dependencies.command.d.ts.map +1 -0
- package/dist/cli/commands/dependencies.command.js +318 -0
- package/dist/cli/commands/dependencies.command.js.map +1 -0
- package/dist/cli/commands/deploy.command.d.ts +4 -0
- package/dist/cli/commands/deploy.command.d.ts.map +1 -0
- package/dist/cli/commands/deploy.command.js +172 -0
- package/dist/cli/commands/deploy.command.js.map +1 -0
- package/dist/cli/commands/deploy.d.ts +22 -0
- package/dist/cli/commands/deploy.d.ts.map +1 -0
- package/dist/cli/commands/deploy.js +319 -0
- package/dist/cli/commands/deploy.js.map +1 -0
- package/dist/cli/commands/export.command.d.ts +7 -0
- package/dist/cli/commands/export.command.d.ts.map +1 -0
- package/dist/cli/commands/export.command.js +56 -0
- package/dist/cli/commands/export.command.js.map +1 -0
- package/dist/cli/commands/generate.command.d.ts +7 -0
- package/dist/cli/commands/generate.command.d.ts.map +1 -0
- package/dist/cli/commands/generate.command.js +66 -0
- package/dist/cli/commands/generate.command.js.map +1 -0
- package/dist/cli/commands/github-sync.command.d.ts +3 -0
- package/dist/cli/commands/github-sync.command.d.ts.map +1 -0
- package/dist/cli/commands/github-sync.command.js +51 -0
- package/dist/cli/commands/github-sync.command.js.map +1 -0
- package/dist/cli/commands/gitlab-agent.command.d.ts +8 -0
- package/dist/cli/commands/gitlab-agent.command.d.ts.map +1 -0
- package/dist/cli/commands/gitlab-agent.command.js +201 -0
- package/dist/cli/commands/gitlab-agent.command.js.map +1 -0
- package/dist/cli/commands/import.command.d.ts +7 -0
- package/dist/cli/commands/import.command.d.ts.map +1 -0
- package/dist/cli/commands/import.command.js +36 -0
- package/dist/cli/commands/import.command.js.map +1 -0
- package/dist/cli/commands/info.command.d.ts +3 -0
- package/dist/cli/commands/info.command.d.ts.map +1 -0
- package/dist/cli/commands/info.command.js +45 -0
- package/dist/cli/commands/info.command.js.map +1 -0
- package/dist/cli/commands/init.command.d.ts +7 -0
- package/dist/cli/commands/init.command.d.ts.map +1 -0
- package/dist/cli/commands/init.command.js +139 -0
- package/dist/cli/commands/init.command.js.map +1 -0
- package/dist/cli/commands/install.command.d.ts +3 -0
- package/dist/cli/commands/install.command.d.ts.map +1 -0
- package/dist/cli/commands/install.command.js +44 -0
- package/dist/cli/commands/install.command.js.map +1 -0
- package/dist/cli/commands/migrate.command.d.ts +22 -0
- package/dist/cli/commands/migrate.command.d.ts.map +1 -0
- package/dist/cli/commands/migrate.command.js +157 -0
- package/dist/cli/commands/migrate.command.js.map +1 -0
- package/dist/cli/commands/publish.command.d.ts +3 -0
- package/dist/cli/commands/publish.command.d.ts.map +1 -0
- package/dist/cli/commands/publish.command.js +76 -0
- package/dist/cli/commands/publish.command.js.map +1 -0
- package/dist/cli/commands/quickstart.command.d.ts +10 -0
- package/dist/cli/commands/quickstart.command.d.ts.map +1 -0
- package/dist/cli/commands/quickstart.command.js +257 -0
- package/dist/cli/commands/quickstart.command.js.map +1 -0
- package/dist/cli/commands/release.command.d.ts +8 -0
- package/dist/cli/commands/release.command.d.ts.map +1 -0
- package/dist/cli/commands/release.command.js +641 -0
- package/dist/cli/commands/release.command.js.map +1 -0
- package/dist/cli/commands/run.command.d.ts +7 -0
- package/dist/cli/commands/run.command.d.ts.map +1 -0
- package/dist/cli/commands/run.command.js +125 -0
- package/dist/cli/commands/run.command.js.map +1 -0
- package/dist/cli/commands/schema.command.d.ts +7 -0
- package/dist/cli/commands/schema.command.d.ts.map +1 -0
- package/dist/cli/commands/schema.command.js +76 -0
- package/dist/cli/commands/schema.command.js.map +1 -0
- package/dist/cli/commands/search.command.d.ts +3 -0
- package/dist/cli/commands/search.command.d.ts.map +1 -0
- package/dist/cli/commands/search.command.js +45 -0
- package/dist/cli/commands/search.command.js.map +1 -0
- package/dist/cli/commands/setup.command.d.ts +11 -0
- package/dist/cli/commands/setup.command.d.ts.map +1 -0
- package/dist/cli/commands/setup.command.js +350 -0
- package/dist/cli/commands/setup.command.js.map +1 -0
- package/dist/cli/commands/sync.command.d.ts +3 -0
- package/dist/cli/commands/sync.command.d.ts.map +1 -0
- package/dist/cli/commands/sync.command.js +51 -0
- package/dist/cli/commands/sync.command.js.map +1 -0
- package/dist/cli/commands/test.command.d.ts +3 -0
- package/dist/cli/commands/test.command.d.ts.map +1 -0
- package/dist/cli/commands/test.command.js +91 -0
- package/dist/cli/commands/test.command.js.map +1 -0
- package/dist/cli/commands/validate.command.d.ts +7 -0
- package/dist/cli/commands/validate.command.d.ts.map +1 -0
- package/dist/cli/commands/validate.command.js +143 -0
- package/dist/cli/commands/validate.command.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +148 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/utils/error-formatter.d.ts +19 -0
- package/dist/cli/utils/error-formatter.d.ts.map +1 -0
- package/dist/cli/utils/error-formatter.js +330 -0
- package/dist/cli/utils/error-formatter.js.map +1 -0
- package/dist/deploy/base-driver.d.ts +39 -0
- package/dist/deploy/base-driver.d.ts.map +1 -0
- package/dist/deploy/base-driver.js +63 -0
- package/dist/deploy/base-driver.js.map +1 -0
- package/dist/deploy/docker-driver.d.ts +32 -0
- package/dist/deploy/docker-driver.d.ts.map +1 -0
- package/dist/deploy/docker-driver.js +246 -0
- package/dist/deploy/docker-driver.js.map +1 -0
- package/dist/deploy/index.d.ts +15 -0
- package/dist/deploy/index.d.ts.map +1 -0
- package/dist/deploy/index.js +28 -0
- package/dist/deploy/index.js.map +1 -0
- package/dist/deploy/k8s-driver.d.ts +40 -0
- package/dist/deploy/k8s-driver.d.ts.map +1 -0
- package/dist/deploy/k8s-driver.js +372 -0
- package/dist/deploy/k8s-driver.js.map +1 -0
- package/dist/deploy/local-driver.d.ts +20 -0
- package/dist/deploy/local-driver.d.ts.map +1 -0
- package/dist/deploy/local-driver.js +150 -0
- package/dist/deploy/local-driver.js.map +1 -0
- package/dist/deploy/types.d.ts +103 -0
- package/dist/deploy/types.d.ts.map +1 -0
- package/dist/deploy/types.js +6 -0
- package/dist/deploy/types.js.map +1 -0
- package/dist/di-container.d.ts.map +1 -1
- package/dist/di-container.js +14 -0
- package/dist/di-container.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/mesh/client.d.ts +144 -0
- package/dist/mesh/client.d.ts.map +1 -0
- package/dist/mesh/client.js +424 -0
- package/dist/mesh/client.js.map +1 -0
- package/dist/mesh/discovery.d.ts +176 -0
- package/dist/mesh/discovery.d.ts.map +1 -0
- package/dist/mesh/discovery.js +288 -0
- package/dist/mesh/discovery.js.map +1 -0
- package/dist/mesh/index.d.ts +89 -0
- package/dist/mesh/index.d.ts.map +1 -0
- package/dist/mesh/index.js +92 -0
- package/dist/mesh/index.js.map +1 -0
- package/dist/mesh/routing.d.ts +158 -0
- package/dist/mesh/routing.d.ts.map +1 -0
- package/dist/mesh/routing.js +360 -0
- package/dist/mesh/routing.js.map +1 -0
- package/dist/mesh/types.d.ts +439 -0
- package/dist/mesh/types.d.ts.map +1 -0
- package/dist/mesh/types.js +6 -0
- package/dist/mesh/types.js.map +1 -0
- package/dist/messaging/broker.d.ts +76 -0
- package/dist/messaging/broker.d.ts.map +1 -0
- package/dist/messaging/broker.js +145 -0
- package/dist/messaging/broker.js.map +1 -0
- package/dist/messaging/channels.d.ts +70 -0
- package/dist/messaging/channels.d.ts.map +1 -0
- package/dist/messaging/channels.js +183 -0
- package/dist/messaging/channels.js.map +1 -0
- package/dist/messaging/index.d.ts +10 -0
- package/dist/messaging/index.d.ts.map +1 -0
- package/dist/messaging/index.js +10 -0
- package/dist/messaging/index.js.map +1 -0
- package/dist/messaging/protocols/memory.d.ts +83 -0
- package/dist/messaging/protocols/memory.d.ts.map +1 -0
- package/dist/messaging/protocols/memory.js +293 -0
- package/dist/messaging/protocols/memory.js.map +1 -0
- package/dist/messaging/protocols/redis.d.ts +83 -0
- package/dist/messaging/protocols/redis.d.ts.map +1 -0
- package/dist/messaging/protocols/redis.js +223 -0
- package/dist/messaging/protocols/redis.js.map +1 -0
- package/dist/messaging/types.d.ts +180 -0
- package/dist/messaging/types.d.ts.map +1 -0
- package/dist/messaging/types.js +6 -0
- package/dist/messaging/types.js.map +1 -0
- package/dist/repositories/manifest.repository.d.ts +1 -1
- package/dist/repositories/manifest.repository.d.ts.map +1 -1
- package/dist/repositories/manifest.repository.js +7 -6
- package/dist/repositories/manifest.repository.js.map +1 -1
- package/dist/repositories/schema.repository.d.ts +4 -0
- package/dist/repositories/schema.repository.d.ts.map +1 -1
- package/dist/repositories/schema.repository.js +10 -3
- package/dist/repositories/schema.repository.js.map +1 -1
- package/dist/sdk/events/cloudevents-emitter.d.ts +56 -0
- package/dist/sdk/events/cloudevents-emitter.d.ts.map +1 -0
- package/dist/sdk/events/cloudevents-emitter.js +101 -0
- package/dist/sdk/events/cloudevents-emitter.js.map +1 -0
- package/dist/sdk/events/index.d.ts +2 -0
- package/dist/sdk/events/index.d.ts.map +1 -0
- package/dist/sdk/events/index.js +2 -0
- package/dist/sdk/events/index.js.map +1 -0
- package/dist/sdk/tracing/index.d.ts +2 -0
- package/dist/sdk/tracing/index.d.ts.map +1 -0
- package/dist/sdk/tracing/index.js +2 -0
- package/dist/sdk/tracing/index.js.map +1 -0
- package/dist/sdk/tracing/w3c-baggage.d.ts +40 -0
- package/dist/sdk/tracing/w3c-baggage.d.ts.map +1 -0
- package/dist/sdk/tracing/w3c-baggage.js +148 -0
- package/dist/sdk/tracing/w3c-baggage.js.map +1 -0
- package/dist/services/agent-services/qdrant.service.d.ts +60 -0
- package/dist/services/agent-services/qdrant.service.d.ts.map +1 -0
- package/dist/services/agent-services/qdrant.service.js +168 -0
- package/dist/services/agent-services/qdrant.service.js.map +1 -0
- package/dist/services/agents-md/agents-md.service.d.ts +61 -0
- package/dist/services/agents-md/agents-md.service.d.ts.map +1 -0
- package/dist/services/agents-md/agents-md.service.js +348 -0
- package/dist/services/agents-md/agents-md.service.js.map +1 -0
- package/dist/services/deployment/deployment.service.d.ts +19 -0
- package/dist/services/deployment/deployment.service.d.ts.map +1 -0
- package/dist/services/deployment/deployment.service.js +87 -0
- package/dist/services/deployment/deployment.service.js.map +1 -0
- package/dist/services/generation.service.d.ts +3 -1
- package/dist/services/generation.service.d.ts.map +1 -1
- package/dist/services/generation.service.js +34 -68
- package/dist/services/generation.service.js.map +1 -1
- package/dist/services/github-sync/github-client.js +2 -2
- package/dist/services/github-sync/github-client.js.map +1 -1
- package/dist/services/github-sync/schemas.d.ts +1 -1
- package/dist/services/github-sync/schemas.d.ts.map +1 -1
- package/dist/services/github-sync/schemas.js.map +1 -1
- package/dist/services/github-sync/sync.service.d.ts.map +1 -1
- package/dist/services/github-sync/sync.service.js +4 -2
- package/dist/services/github-sync/sync.service.js.map +1 -1
- package/dist/services/gitlab-agent.service.d.ts.map +1 -1
- package/dist/services/gitlab-agent.service.js +3 -1
- package/dist/services/gitlab-agent.service.js.map +1 -1
- package/dist/services/messaging/example.d.ts +6 -0
- package/dist/services/messaging/example.d.ts.map +1 -0
- package/dist/services/messaging/example.js +260 -0
- package/dist/services/messaging/example.js.map +1 -0
- package/dist/services/messaging/index.d.ts +81 -0
- package/dist/services/messaging/index.d.ts.map +1 -0
- package/dist/services/messaging/index.js +85 -0
- package/dist/services/messaging/index.js.map +1 -0
- package/dist/services/messaging/memory-broker.d.ts +103 -0
- package/dist/services/messaging/memory-broker.d.ts.map +1 -0
- package/dist/services/messaging/memory-broker.js +435 -0
- package/dist/services/messaging/memory-broker.js.map +1 -0
- package/dist/services/messaging/messaging.service.d.ts +150 -0
- package/dist/services/messaging/messaging.service.d.ts.map +1 -0
- package/dist/services/messaging/messaging.service.js +456 -0
- package/dist/services/messaging/messaging.service.js.map +1 -0
- package/dist/services/messaging/messaging.types.d.ts +319 -0
- package/dist/services/messaging/messaging.types.d.ts.map +1 -0
- package/dist/services/messaging/messaging.types.js +68 -0
- package/dist/services/messaging/messaging.types.js.map +1 -0
- package/dist/services/migration.service.d.ts +45 -4
- package/dist/services/migration.service.d.ts.map +1 -1
- package/dist/services/migration.service.js +248 -31
- package/dist/services/migration.service.js.map +1 -1
- package/dist/services/registry/registry.service.d.ts +39 -0
- package/dist/services/registry/registry.service.d.ts.map +1 -0
- package/dist/services/registry/registry.service.js +169 -0
- package/dist/services/registry/registry.service.js.map +1 -0
- package/dist/services/release-automation/base-crud.service.d.ts.map +1 -1
- package/dist/services/release-automation/base-crud.service.js.map +1 -1
- package/dist/services/release-automation/merge-request.service.d.ts.map +1 -1
- package/dist/services/release-automation/merge-request.service.js +4 -4
- package/dist/services/release-automation/merge-request.service.js.map +1 -1
- package/dist/services/release-automation/milestone.service.d.ts.map +1 -1
- package/dist/services/release-automation/milestone.service.js.map +1 -1
- package/dist/services/release-automation/release.service.d.ts +4 -4
- package/dist/services/release-automation/release.service.d.ts.map +1 -1
- package/dist/services/release-automation/release.service.js +1 -3
- package/dist/services/release-automation/release.service.js.map +1 -1
- package/dist/services/release-automation/schemas/release.schema.d.ts +3 -3
- package/dist/services/release-automation/schemas/release.schema.d.ts.map +1 -1
- package/dist/services/release-automation/schemas/release.schema.js +11 -23
- package/dist/services/release-automation/schemas/release.schema.js.map +1 -1
- package/dist/services/release-automation/tag.service.d.ts.map +1 -1
- package/dist/services/release-automation/tag.service.js +4 -1
- package/dist/services/release-automation/tag.service.js.map +1 -1
- package/dist/services/release-automation/webhook.service.d.ts +2 -2
- package/dist/services/release-automation/webhook.service.d.ts.map +1 -1
- package/dist/services/release-automation/webhook.service.js +30 -17
- package/dist/services/release-automation/webhook.service.js.map +1 -1
- package/dist/services/runtime/anthropic.adapter.d.ts +145 -0
- package/dist/services/runtime/anthropic.adapter.d.ts.map +1 -0
- package/dist/services/runtime/anthropic.adapter.js +525 -0
- package/dist/services/runtime/anthropic.adapter.js.map +1 -0
- package/dist/services/runtime/azure.adapter.d.ts +389 -0
- package/dist/services/runtime/azure.adapter.d.ts.map +1 -0
- package/dist/services/runtime/azure.adapter.js +515 -0
- package/dist/services/runtime/azure.adapter.js.map +1 -0
- package/dist/services/runtime/bedrock.adapter.d.ts +170 -0
- package/dist/services/runtime/bedrock.adapter.d.ts.map +1 -0
- package/dist/services/runtime/bedrock.adapter.js +667 -0
- package/dist/services/runtime/bedrock.adapter.js.map +1 -0
- package/dist/services/runtime/claude/capability-mapper.d.ts.map +1 -1
- package/dist/services/runtime/claude/capability-mapper.js.map +1 -1
- package/dist/services/runtime/claude/claude-adapter.d.ts +1 -1
- package/dist/services/runtime/claude/claude-adapter.d.ts.map +1 -1
- package/dist/services/runtime/claude/claude-adapter.js +4 -8
- package/dist/services/runtime/claude/claude-adapter.js.map +1 -1
- package/dist/services/runtime/claude/manifest-parser.d.ts.map +1 -1
- package/dist/services/runtime/claude/manifest-parser.js +2 -2
- package/dist/services/runtime/claude/manifest-parser.js.map +1 -1
- package/dist/services/runtime/gemini.adapter.d.ts +190 -0
- package/dist/services/runtime/gemini.adapter.d.ts.map +1 -0
- package/dist/services/runtime/gemini.adapter.js +603 -0
- package/dist/services/runtime/gemini.adapter.js.map +1 -0
- package/dist/services/runtime/mistral.adapter.d.ts +201 -0
- package/dist/services/runtime/mistral.adapter.d.ts.map +1 -0
- package/dist/services/runtime/mistral.adapter.js +654 -0
- package/dist/services/runtime/mistral.adapter.js.map +1 -0
- package/dist/services/runtime/ollama.adapter.d.ts +187 -0
- package/dist/services/runtime/ollama.adapter.d.ts.map +1 -0
- package/dist/services/runtime/ollama.adapter.js +525 -0
- package/dist/services/runtime/ollama.adapter.js.map +1 -0
- package/dist/services/runtime/openai.adapter.d.ts.map +1 -1
- package/dist/services/runtime/openai.adapter.js.map +1 -1
- package/dist/services/test-runner/test-runner.service.d.ts +21 -0
- package/dist/services/test-runner/test-runner.service.d.ts.map +1 -0
- package/dist/services/test-runner/test-runner.service.js +91 -0
- package/dist/services/test-runner/test-runner.service.js.map +1 -0
- package/dist/services/validation.service.d.ts.map +1 -1
- package/dist/services/validation.service.js +38 -13
- package/dist/services/validation.service.js.map +1 -1
- package/dist/services/validators/anthropic.validator.d.ts.map +1 -1
- package/dist/services/validators/anthropic.validator.js +2 -5
- package/dist/services/validators/anthropic.validator.js.map +1 -1
- package/dist/services/validators/autogen.validator.d.ts.map +1 -1
- package/dist/services/validators/autogen.validator.js +1 -2
- package/dist/services/validators/autogen.validator.js.map +1 -1
- package/dist/services/validators/contract.validator.d.ts +90 -0
- package/dist/services/validators/contract.validator.d.ts.map +1 -0
- package/dist/services/validators/contract.validator.js +508 -0
- package/dist/services/validators/contract.validator.js.map +1 -0
- package/dist/services/validators/crewai.validator.d.ts.map +1 -1
- package/dist/services/validators/crewai.validator.js.map +1 -1
- package/dist/services/validators/cursor.validator.d.ts.map +1 -1
- package/dist/services/validators/cursor.validator.js.map +1 -1
- package/dist/services/validators/dependencies.validator.d.ts +104 -0
- package/dist/services/validators/dependencies.validator.d.ts.map +1 -0
- package/dist/services/validators/dependencies.validator.js +386 -0
- package/dist/services/validators/dependencies.validator.js.map +1 -0
- package/dist/services/validators/index.d.ts +1 -0
- package/dist/services/validators/index.d.ts.map +1 -1
- package/dist/services/validators/index.js +1 -0
- package/dist/services/validators/index.js.map +1 -1
- package/dist/services/validators/langchain.validator.d.ts.map +1 -1
- package/dist/services/validators/langchain.validator.js +4 -13
- package/dist/services/validators/langchain.validator.js.map +1 -1
- package/dist/services/validators/langflow.validator.d.ts.map +1 -1
- package/dist/services/validators/langflow.validator.js +1 -2
- package/dist/services/validators/langflow.validator.js.map +1 -1
- package/dist/services/validators/langgraph.validator.d.ts.map +1 -1
- package/dist/services/validators/langgraph.validator.js +1 -2
- package/dist/services/validators/langgraph.validator.js.map +1 -1
- package/dist/services/validators/llamaindex.validator.d.ts.map +1 -1
- package/dist/services/validators/llamaindex.validator.js +4 -13
- package/dist/services/validators/llamaindex.validator.js.map +1 -1
- package/dist/services/validators/messaging.validator.d.ts +77 -0
- package/dist/services/validators/messaging.validator.d.ts.map +1 -0
- package/dist/services/validators/messaging.validator.js +296 -0
- package/dist/services/validators/messaging.validator.js.map +1 -0
- package/dist/services/validators/openai.validator.d.ts.map +1 -1
- package/dist/services/validators/openai.validator.js +1 -6
- package/dist/services/validators/openai.validator.js.map +1 -1
- package/dist/services/validators/vercel-ai.validator.d.ts.map +1 -1
- package/dist/services/validators/vercel-ai.validator.js +1 -3
- package/dist/services/validators/vercel-ai.validator.js.map +1 -1
- package/dist/spec/extensions/a2a-messaging.md +471 -0
- package/dist/spec/extensions/manifest-extensions.md +550 -0
- package/dist/spec/registry/README.md +472 -0
- package/dist/spec/registry/openapi.yaml +1124 -0
- package/dist/spec/registry/registry-api.schema.json +731 -0
- package/dist/spec/registry/registry-spec.md +2239 -0
- package/dist/spec/schema/agent-test.schema.json +117 -0
- package/dist/spec/schema/components/activity-stream.schema.json +94 -0
- package/dist/spec/schema/components/constraints.schema.json +84 -0
- package/dist/spec/schema/components/dependencies.schema.json +147 -0
- package/dist/spec/schema/components/encryption.schema.json +115 -0
- package/dist/spec/schema/components/identity.schema.json +48 -0
- package/dist/spec/schema/components/index.json +37 -0
- package/dist/spec/schema/components/llm-config.schema.json +67 -0
- package/dist/spec/schema/components/metadata.schema.json +37 -0
- package/dist/spec/schema/components/tool.schema.json +64 -0
- package/dist/spec/schema/extensions/a2a.extension.schema.json +127 -0
- package/dist/spec/v0.2.8/ossa-0.2.8.schema.json +95 -1
- package/dist/spec/v0.2.9/a2a-protocol.md +1337 -0
- package/dist/spec/v0.2.9/agent.md +1946 -0
- package/dist/spec/v0.2.9/capabilities/index.yaml +25 -0
- package/dist/spec/v0.2.9/capabilities/memory.yaml +251 -0
- package/dist/spec/v0.2.9/capability-schema.md +576 -0
- package/dist/spec/v0.2.9/compliance-profiles.md +533 -0
- package/dist/spec/v0.2.9/conformance-testing.md +1527 -0
- package/dist/spec/v0.2.9/gitlab-duo-integration.md +621 -0
- package/dist/spec/v0.2.9/ossa-0.2.9.schema.json +3699 -0
- package/dist/spec/v0.2.9/runtime-semantics.md +464 -0
- package/dist/spec/v0.2.9/security-model.md +1245 -0
- package/dist/spec/v0.2.9/semantic-conventions.md +347 -0
- package/dist/spec/v0.2.9/types.ts +522 -0
- package/dist/spec/v0.3.0/UNIFIED-SCHEMA.md +120 -0
- package/dist/spec/v0.3.0/adapters/drupal.md +541 -0
- package/dist/spec/v0.3.0/adapters/symfony.md +659 -0
- package/dist/spec/v0.3.0/agent-test.schema.json +75 -0
- package/dist/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +110 -0
- package/dist/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/dist/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/dist/spec/v0.3.0/extensions/drupal.md +417 -0
- package/dist/spec/v0.3.0/ossa-0.3.0.schema.json +2787 -0
- package/dist/spec/v0.3.0/protocols/sse.md +494 -0
- package/dist/spec/v0.3.0/protocols/webrtc.md +600 -0
- package/dist/spec/v0.3.0/protocols/websocket.md +362 -0
- package/dist/spec/v0.3.0/schemas/agent-unified.yaml +165 -0
- package/dist/spec/v0.3.0/schemas/capabilities.yaml +102 -0
- package/dist/spec/v0.3.0/schemas/functions.yaml +75 -0
- package/dist/spec/v0.3.0/schemas/messaging/channel.schema.json +245 -0
- package/dist/spec/v0.3.0/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/dist/spec/v0.3.0/schemas/messaging/message.schema.json +205 -0
- package/dist/spec/v0.3.0/schemas/messaging/subscription.schema.json +214 -0
- package/dist/spec/v0.3.0/schemas/runtime.yaml +102 -0
- package/dist/spec/v0.3.0/schemas/taxonomy.yaml +533 -0
- package/dist/spec/v0.3.0/schemas/unified-llm.yaml +91 -0
- package/dist/spec/v0.3.0/taxonomy.yaml +256 -0
- package/dist/testing/fixtures.d.ts +61 -0
- package/dist/testing/fixtures.d.ts.map +1 -0
- package/dist/testing/fixtures.js +291 -0
- package/dist/testing/fixtures.js.map +1 -0
- package/dist/testing/index.d.ts +10 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +10 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/reporters/base.d.ts +24 -0
- package/dist/testing/reporters/base.d.ts.map +1 -0
- package/dist/testing/reporters/base.js +5 -0
- package/dist/testing/reporters/base.js.map +1 -0
- package/dist/testing/reporters/console.d.ts +18 -0
- package/dist/testing/reporters/console.d.ts.map +1 -0
- package/dist/testing/reporters/console.js +76 -0
- package/dist/testing/reporters/console.js.map +1 -0
- package/dist/testing/reporters/json.d.ts +29 -0
- package/dist/testing/reporters/json.d.ts.map +1 -0
- package/dist/testing/reporters/json.js +40 -0
- package/dist/testing/reporters/json.js.map +1 -0
- package/dist/testing/runner.d.ts +96 -0
- package/dist/testing/runner.d.ts.map +1 -0
- package/dist/testing/runner.js +401 -0
- package/dist/testing/runner.js.map +1 -0
- package/dist/transports/index.d.ts +8 -0
- package/dist/transports/index.d.ts.map +1 -0
- package/dist/transports/index.js +11 -0
- package/dist/transports/index.js.map +1 -0
- package/dist/transports/sse.d.ts +166 -0
- package/dist/transports/sse.d.ts.map +1 -0
- package/dist/transports/sse.js +309 -0
- package/dist/transports/sse.js.map +1 -0
- package/dist/transports/webrtc.d.ts +183 -0
- package/dist/transports/webrtc.d.ts.map +1 -0
- package/dist/transports/webrtc.js +478 -0
- package/dist/transports/webrtc.js.map +1 -0
- package/dist/transports/websocket.d.ts +204 -0
- package/dist/transports/websocket.d.ts.map +1 -0
- package/dist/transports/websocket.js +397 -0
- package/dist/transports/websocket.js.map +1 -0
- package/dist/types/generated/ossa-0.3.0.types.d.ts +316 -0
- package/dist/types/generated/ossa-0.3.0.types.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.0.types.js +8 -0
- package/dist/types/generated/ossa-0.3.0.types.js.map +1 -0
- package/dist/types/generated/ossa-0.3.0.zod.d.ts +17 -0
- package/dist/types/generated/ossa-0.3.0.zod.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.0.zod.js +3 -0
- package/dist/types/generated/ossa-0.3.0.zod.js.map +1 -0
- package/dist/types/index.d.ts +124 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +8 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/messaging.d.ts +116 -0
- package/dist/types/messaging.d.ts.map +1 -0
- package/dist/types/messaging.js +6 -0
- package/dist/types/messaging.js.map +1 -0
- package/dist/types/policy.d.ts +377 -0
- package/dist/types/policy.d.ts.map +1 -0
- package/dist/types/policy.js +84 -0
- package/dist/types/policy.js.map +1 -0
- package/dist/types/task.d.ts +222 -0
- package/dist/types/task.d.ts.map +1 -0
- package/dist/types/task.js +40 -0
- package/dist/types/task.js.map +1 -0
- package/dist/types/workflow.d.ts +283 -0
- package/dist/types/workflow.d.ts.map +1 -0
- package/dist/types/workflow.js +51 -0
- package/dist/types/workflow.js.map +1 -0
- package/dist/utils/path-validator.d.ts +24 -0
- package/dist/utils/path-validator.d.ts.map +1 -0
- package/dist/utils/path-validator.js +70 -0
- package/dist/utils/path-validator.js.map +1 -0
- package/dist/utils/version.d.ts +17 -8
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +84 -30
- package/dist/utils/version.js.map +1 -1
- package/dist/utils/yaml-parser.d.ts +23 -0
- package/dist/utils/yaml-parser.d.ts.map +1 -0
- package/dist/utils/yaml-parser.js +34 -0
- package/dist/utils/yaml-parser.js.map +1 -0
- package/examples/adapters/drupal-eca-mapping.yaml +153 -0
- package/examples/adapters/drupal-eca-task.yaml +48 -0
- package/examples/adapters/drupal-flowdrop-mapping.yaml +463 -0
- package/examples/adapters/drupal-maestro-mapping.yaml +369 -0
- package/examples/adapters/mistral-README.md +367 -0
- package/examples/adapters/mistral-agent.yaml +147 -0
- package/examples/adapters/symfony-messenger-task.yaml +135 -0
- package/examples/adapters/symfony-messenger-workflow.yaml +352 -0
- package/examples/adk-integration/code-review-workflow.yml +1 -1
- package/examples/adk-integration/customer-support.yml +1 -1
- package/examples/adk-integration/data-pipeline.yml +1 -1
- package/examples/advanced/reasoning-agent.yaml +136 -0
- package/examples/advanced/workflows/hybrid-model-strategy.yaml +1 -18
- package/examples/agent-manifests/critics/critic-agent.yaml +1 -1
- package/examples/agent-manifests/governors/governor-agent.yaml +1 -1
- package/examples/agent-manifests/integrators/integrator-agent.yaml +1 -1
- package/examples/agent-manifests/judges/judge-agent.yaml +1 -1
- package/examples/agent-manifests/monitors/monitor-agent.yaml +1 -1
- package/examples/agent-manifests/orchestrators/orchestrator-agent.yaml +1 -1
- package/examples/agent-manifests/sample-compliant-agent.yaml +1 -1
- package/examples/agent-manifests/workers/worker-agent.yaml +1 -1
- package/examples/agent-mesh/README.ts +311 -0
- package/examples/agent-mesh/basic-usage.ts +461 -0
- package/examples/agents/architecture-healer-enterprise.yaml +143 -0
- package/examples/agents/dependency-healer-npm.yaml +81 -0
- package/examples/agents/spec-healer-openapi.yaml +59 -0
- package/examples/agents/wiki-healer-production.yaml +131 -0
- package/examples/agents-md/code-agent.ossa.json +100 -0
- package/examples/agents-md/monorepo-agent.ossa.yaml +180 -0
- package/examples/anthropic/claude-assistant.ossa.json +1 -1
- package/examples/anthropic-adapter-example.ts +374 -0
- package/examples/anthropic-simple.ts +70 -0
- package/examples/autogen/multi-agent.ossa.json +1 -1
- package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +37 -0
- package/examples/bridges/.gitlab-ci.yml +293 -0
- package/examples/bridges/k8s/deployment.yaml +14 -14
- package/examples/ci/multi-project-release-example.yml +401 -0
- package/examples/claude-code/code-reviewer.ossa.yaml +1 -1
- package/examples/claude-code/ossa-validator.ossa.yaml +2 -2
- package/examples/common_npm/agent-router.ossa.yaml +1 -1
- package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +1 -1
- package/examples/contracts/data-consumer.ossa.yaml +171 -0
- package/examples/contracts/data-producer-v2.ossa.yaml +227 -0
- package/examples/contracts/data-producer.ossa.yaml +217 -0
- package/examples/coordinator-agent/README.md +180 -0
- package/examples/coordinator-agent/index.ts +440 -0
- package/examples/coordinator-agent/manifest.yaml +41 -0
- package/examples/crewai/research-team.ossa.json +1 -1
- package/examples/cursor/code-review-agent.ossa.json +1 -1
- package/examples/drupal/ai_agents_ossa-module/.agents/example-agent/agent.ossa.yaml +37 -0
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
- package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +1 -1
- package/examples/extensions/agents-md-advanced.yml +177 -0
- package/examples/extensions/agents-md-basic.yml +74 -0
- package/examples/extensions/agents-md-sync.yml +96 -0
- package/examples/extensions/agents-md-v1.yml +175 -0
- package/examples/extensions/drupal-v1.yml +1 -1
- package/examples/extensions/encryption-multi-provider.yaml +120 -0
- package/examples/extensions/kagent-v1.yml +2 -2
- package/examples/extensions/knowledge-sources.yaml +59 -0
- package/examples/extensions/mcp-full-featured.yaml +150 -0
- package/examples/getting-started/01-minimal-agent.ossa.yaml +376 -0
- package/examples/getting-started/02-agent-with-tools.ossa.yaml +866 -0
- package/examples/getting-started/03-agent-with-safety.ossa.yaml +868 -0
- package/examples/getting-started/04-agent-with-messaging.ossa.yaml +829 -0
- package/examples/getting-started/05-workflow-composition.ossa.yaml +209 -0
- package/examples/getting-started/README.md +69 -0
- package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
- package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +4 -4
- package/examples/kagent/compliance-validator.ossa.yaml +1 -1
- package/examples/kagent/cost-optimizer.ossa.yaml +1 -1
- package/examples/kagent/documentation-agent.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter-v1.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +1 -1
- package/examples/kagent/k8s-troubleshooter.ossa.yaml +1 -1
- package/examples/kagent/security-scanner.ossa.yaml +1 -1
- package/examples/langchain/chain-agent.ossa.json +1 -1
- package/examples/langflow/workflow-agent.ossa.json +1 -1
- package/examples/langgraph/state-machine-agent.ossa.json +1 -1
- package/examples/llamaindex/rag-agent.ossa.json +1 -1
- package/examples/messaging/dependency-healer.ossa.yaml +354 -0
- package/examples/messaging/incident-responder.ossa.yaml +477 -0
- package/examples/messaging/routing-rules.ossa.yaml +307 -0
- package/examples/messaging/security-scanner.ossa.yaml +328 -0
- package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
- package/examples/mistral-adapter-example.ts +435 -0
- package/examples/mistral-simple.ts +56 -0
- package/examples/multi-agent/conditional-router.ossa.yaml +1 -1
- package/examples/multi-agent/parallel-execution.ossa.yaml +1 -1
- package/examples/multi-agent/sequential-pipeline.ossa.yaml +1 -1
- package/examples/observability/activity-stream-full.yaml +133 -0
- package/examples/observability/gitlab-ci-template.yml +304 -0
- package/examples/openai/basic-agent.ossa.yaml +1 -1
- package/examples/openai/multi-tool-agent.ossa.json +1 -1
- package/examples/openai/swarm-agent.ossa.json +1 -1
- package/examples/production/document-analyzer-openai.yml +1 -1
- package/examples/quickstart/support-agent.ossa.yaml +1 -1
- package/examples/rag-agent/README.md +136 -0
- package/examples/rag-agent/index.ts +272 -0
- package/examples/rag-agent/manifest.yaml +45 -0
- package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +163 -0
- package/examples/real-world/rag-documentation-assistant.ossa.yaml +235 -0
- package/examples/reference-implementations/README.md +321 -0
- package/examples/reference-implementations/curl-scripts/01-search-agents.sh +72 -0
- package/examples/reference-implementations/curl-scripts/02-get-agent-details.sh +74 -0
- package/examples/reference-implementations/curl-scripts/03-publish-agent.sh +136 -0
- package/examples/reference-implementations/curl-scripts/04-a2a-messaging.sh +178 -0
- package/examples/reference-implementations/curl-scripts/05-discovery.sh +98 -0
- package/examples/reference-implementations/curl-scripts/README.md +277 -0
- package/examples/reference-implementations/python-client/README.md +282 -0
- package/examples/reference-implementations/python-client/examples/basic_usage.py +84 -0
- package/examples/reference-implementations/python-client/examples/publish_agent.py +137 -0
- package/examples/reference-implementations/python-client/ossa_client/__init__.py +80 -0
- package/examples/reference-implementations/python-client/ossa_client/agents.py +240 -0
- package/examples/reference-implementations/python-client/ossa_client/client.py +164 -0
- package/examples/reference-implementations/python-client/ossa_client/discovery.py +153 -0
- package/examples/reference-implementations/python-client/ossa_client/messaging.py +227 -0
- package/examples/reference-implementations/python-client/requirements.txt +2 -0
- package/examples/reference-implementations/python-client/setup.py +40 -0
- package/examples/reference-implementations/typescript-client/README.md +227 -0
- package/examples/reference-implementations/typescript-client/examples/basic-usage.ts +86 -0
- package/examples/reference-implementations/typescript-client/examples/messaging.ts +185 -0
- package/examples/reference-implementations/typescript-client/examples/publish-agent.ts +138 -0
- package/examples/reference-implementations/typescript-client/package.json +40 -0
- package/examples/reference-implementations/typescript-client/src/agents.ts +285 -0
- package/examples/reference-implementations/typescript-client/src/client.ts +161 -0
- package/examples/reference-implementations/typescript-client/src/discovery.ts +244 -0
- package/examples/reference-implementations/typescript-client/src/index.ts +67 -0
- package/examples/reference-implementations/typescript-client/src/messaging.ts +385 -0
- package/examples/reference-implementations/typescript-client/tsconfig.json +25 -0
- package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +465 -0
- package/examples/schema/reusable-components.yaml +95 -0
- package/examples/tasks/batch-email-sender.yaml +105 -0
- package/examples/tasks/data-transform.yaml +82 -0
- package/examples/tasks/publish-content.yaml +86 -0
- package/examples/templates/ossa-compliance.yaml +1 -1
- package/examples/unified/security-scanner.ossa.yaml +311 -0
- package/examples/vercel/edge-agent.ossa.json +1 -1
- package/examples/workflow-agent/README.md +175 -0
- package/examples/workflow-agent/index.ts +408 -0
- package/examples/workflow-agent/manifest.yaml +41 -0
- package/examples/workflows/batch-email-campaign.yaml +140 -0
- package/examples/workflows/content-review-publish.yaml +156 -0
- package/examples/workflows/simple-etl.yaml +151 -0
- package/openapi/agent-communication.yaml +1113 -0
- package/openapi/agent-crud.yaml +1124 -0
- package/openapi/agent-discovery.yaml +677 -0
- package/openapi/agent-identity.yaml +620 -0
- package/openapi/protocols/sse-streams.yaml +479 -0
- package/openapi/protocols/websocket-events.yaml +427 -0
- package/openapi/schemas/discovery.json +488 -0
- package/package.json +93 -33
- package/schemas/agent.json +523 -0
- package/schemas/communication.json +897 -0
- package/schemas/identity.json +482 -0
- package/spec/extensions/a2a-messaging.md +471 -0
- package/spec/extensions/manifest-extensions.md +550 -0
- package/spec/registry/README.md +472 -0
- package/spec/registry/openapi.yaml +1124 -0
- package/spec/registry/registry-api.schema.json +731 -0
- package/spec/registry/registry-spec.md +2239 -0
- package/spec/schema/agent-test.schema.json +117 -0
- package/spec/schema/components/activity-stream.schema.json +94 -0
- package/spec/schema/components/constraints.schema.json +84 -0
- package/spec/schema/components/dependencies.schema.json +147 -0
- package/spec/schema/components/encryption.schema.json +115 -0
- package/spec/schema/components/identity.schema.json +48 -0
- package/spec/schema/components/index.json +37 -0
- package/spec/schema/components/llm-config.schema.json +67 -0
- package/spec/schema/components/metadata.schema.json +37 -0
- package/spec/schema/components/tool.schema.json +64 -0
- package/spec/schema/extensions/a2a.extension.schema.json +127 -0
- package/spec/v0.2.8/ossa-0.2.8.schema.json +95 -1
- package/spec/v0.2.9/a2a-protocol.md +1337 -0
- package/spec/v0.2.9/agent.md +1946 -0
- package/spec/v0.2.9/capabilities/index.yaml +25 -0
- package/spec/v0.2.9/capabilities/memory.yaml +251 -0
- package/spec/v0.2.9/capability-schema.md +576 -0
- package/spec/v0.2.9/compliance-profiles.md +533 -0
- package/spec/v0.2.9/conformance-testing.md +1527 -0
- package/spec/v0.2.9/gitlab-duo-integration.md +621 -0
- package/spec/v0.2.9/ossa-0.2.9.schema.json +3699 -0
- package/spec/v0.2.9/runtime-semantics.md +464 -0
- package/spec/v0.2.9/security-model.md +1245 -0
- package/spec/v0.2.9/semantic-conventions.md +347 -0
- package/spec/v0.2.9/types.ts +522 -0
- package/spec/v0.3.0/UNIFIED-SCHEMA.md +120 -0
- package/spec/v0.3.0/adapters/drupal.md +541 -0
- package/spec/v0.3.0/adapters/symfony.md +659 -0
- package/spec/v0.3.0/agent-test.schema.json +75 -0
- package/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +110 -0
- package/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/spec/v0.3.0/extensions/drupal.md +417 -0
- package/spec/v0.3.0/ossa-0.3.0.schema.json +2787 -0
- package/spec/v0.3.0/protocols/sse.md +494 -0
- package/spec/v0.3.0/protocols/webrtc.md +600 -0
- package/spec/v0.3.0/protocols/websocket.md +362 -0
- package/spec/v0.3.0/schemas/agent-unified.yaml +165 -0
- package/spec/v0.3.0/schemas/capabilities.yaml +102 -0
- package/spec/v0.3.0/schemas/functions.yaml +75 -0
- package/spec/v0.3.0/schemas/messaging/channel.schema.json +245 -0
- package/spec/v0.3.0/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/spec/v0.3.0/schemas/messaging/message.schema.json +205 -0
- package/spec/v0.3.0/schemas/messaging/subscription.schema.json +214 -0
- package/spec/v0.3.0/schemas/runtime.yaml +102 -0
- package/spec/v0.3.0/schemas/taxonomy.yaml +533 -0
- package/spec/v0.3.0/schemas/unified-llm.yaml +91 -0
- package/spec/v0.3.0/taxonomy.yaml +256 -0
- package/.cursorrules +0 -84
- package/.devfile.yaml +0 -87
- package/.env.example +0 -63
- package/.eslintrc.cjs +0 -43
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -63
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -40
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -39
- package/.github/dependabot.yml +0 -58
- package/.github/workflows/ci.yml +0 -154
- package/.github/workflows/codeql.yml +0 -41
- package/.github/workflows/dependabot-auto-merge.yml +0 -28
- package/.github/workflows/dependabot-comment.yml +0 -34
- package/.github/workflows/pr-comment.yml +0 -33
- package/.github/workflows/release.yml +0 -103
- package/.husky/pre-commit +0 -5
- package/.kiro/config.json +0 -21
- package/.kiro/settings/mcp.json +0 -61
- package/.kiro/specs/scripts-migration-api-first/design.md +0 -883
- package/.kiro/specs/scripts-migration-api-first/requirements.md +0 -165
- package/.kiro/specs/scripts-migration-api-first/tasks.md +0 -539
- package/.kiro/specs/website-brand-identity/design.md +0 -1060
- package/.kiro/specs/website-brand-identity/requirements.md +0 -287
- package/.kiro/specs/website-brand-identity/tasks.md +0 -981
- package/.prettierignore +0 -7
- package/.prettierrc.json +0 -10
- package/.redocly.yaml +0 -9
- package/.releaserc.json +0 -85
- package/.version.json +0 -6
- package/.wiki-config.json +0 -24
- package/CODEOWNERS +0 -75
- package/CONTRIBUTING.md +0 -267
- package/bin/validate-ossa-0.2.2.ts +0 -244
- package/bin/validate-ossa-0.2.4.ts +0 -244
- package/docs/brand-guide/01-brand-overview.md +0 -37
- package/docs/brand-guide/02-logo-usage.md +0 -43
- package/docs/brand-guide/03-color-palette.md +0 -70
- package/docs/brand-guide/04-typography.md +0 -82
- package/docs/brand-guide/05-voice-and-tone.md +0 -108
- package/docs/brand-guide/06-visual-elements.md +0 -137
- package/docs/brand-guide/07-application-examples.md +0 -153
- package/docs/brand-guide/OssaLogo/OssA_Logo.svg +0 -21
- package/docs/brand-guide/OssaLogo/brand.af +0 -0
- package/docs/brand-guide/README.md +0 -107
- package/docs/comparison.md +0 -315
- package/docs/operations/automation-roadmap.md +0 -245
- package/docs/operations/github-sync-strategy.md +0 -357
- package/eslint-report.json +0 -1
- package/gl-code-quality-report.json +0 -62
- package/infrastructure/docker-compose.yml +0 -33
- package/infrastructure/gitlab-agent/rbac.yaml +0 -126
- package/infrastructure/gitlab-agent/values.yaml +0 -150
- package/infrastructure/k8s/monitoring/00-namespace.yaml +0 -7
- package/infrastructure/k8s/monitoring/01-prometheus.yaml +0 -142
- package/infrastructure/k8s/monitoring/02-grafana.yaml +0 -63
- package/infrastructure/k8s/monitoring/03-lightweight.yaml +0 -121
- package/infrastructure/k8s/monitoring/README.md +0 -73
- package/infrastructure/k8s/monitoring/deploy.sh +0 -38
- package/junit.xml +0 -1
- package/llms-ctx-full.txt +0 -39
- package/llms-ctx.txt +0 -39
- package/llms.txt +0 -47
- package/release.config.js +0 -79
- package/scripts/README.md +0 -103
- package/scripts/auto-rebase-mrs.ts +0 -106
- package/scripts/batch-dependabot.sh +0 -57
- package/scripts/bump-version.ts +0 -57
- package/scripts/configure-gitlab-branch-protection.ts +0 -95
- package/scripts/create-issue-helper.ts +0 -238
- package/scripts/create-milestone-issue.ts +0 -73
- package/scripts/enhanced-version-manager.ts +0 -257
- package/scripts/eslint-to-codequality.cjs +0 -34
- package/scripts/fix-schema-formats.js +0 -82
- package/scripts/gen-types.ts +0 -51
- package/scripts/gen-zod.ts +0 -51
- package/scripts/generate-agents-catalog.ts +0 -77
- package/scripts/generate-api-docs.ts +0 -218
- package/scripts/generate-cli-docs.ts +0 -410
- package/scripts/generate-config-docs.ts +0 -109
- package/scripts/generate-errors-docs.ts +0 -76
- package/scripts/generate-examples-docs.ts +0 -99
- package/scripts/generate-llms-ctx.sh +0 -17
- package/scripts/generate-schema-docs.ts +0 -317
- package/scripts/generate-types-docs.ts +0 -48
- package/scripts/lowercase-docs.ts +0 -43
- package/scripts/manage-milestone-mrs.ts +0 -279
- package/scripts/process-doc-templates.ts +0 -37
- package/scripts/rebase-all-mrs.sh +0 -75
- package/scripts/schemas/package.schema.ts +0 -75
- package/scripts/setup-branch-protection.sh +0 -33
- package/scripts/sync-github-pr.sh +0 -48
- package/scripts/sync-version.js +0 -32
- package/scripts/sync-version.ts +0 -39
- package/scripts/sync-versions.ts +0 -488
- package/scripts/sync-wiki.sh +0 -50
- package/scripts/validate-all.js +0 -127
- package/scripts/validate-schema.ts +0 -50
- package/test-results/junit.xml +0 -299
- package/test-results.xml +0 -1
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
# OSSA Security Model
|
|
2
|
+
|
|
3
|
+
**Version**: 0.2.9
|
|
4
|
+
**Status**: Draft
|
|
5
|
+
**Last Updated**: 2025-12-04
|
|
6
|
+
|
|
7
|
+
This document defines the security model for OSSA-compliant agents, including identity management, authentication, authorization, secrets handling, sandboxing, and audit logging.
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
The OSSA security model operates on **deny-by-default** principles with defense-in-depth:
|
|
12
|
+
|
|
13
|
+
1. **Identity**: Every agent has a cryptographically verifiable identity
|
|
14
|
+
2. **Authentication**: Agents authenticate using mTLS, JWT, or OIDC
|
|
15
|
+
3. **Authorization**: RBAC/ABAC policies control agent capabilities
|
|
16
|
+
4. **Secrets**: Never embedded in manifests; always externalized
|
|
17
|
+
5. **Sandboxing**: Agents run in isolated environments with resource limits
|
|
18
|
+
6. **Audit**: All security events are logged in OpenTelemetry-compatible format
|
|
19
|
+
|
|
20
|
+
```yaml
|
|
21
|
+
apiVersion: ossa/v0.2.9
|
|
22
|
+
kind: Agent
|
|
23
|
+
metadata:
|
|
24
|
+
name: secure-agent
|
|
25
|
+
spec:
|
|
26
|
+
security:
|
|
27
|
+
identity:
|
|
28
|
+
urn: ossa:agent:acme:secure-agent:1.0.0
|
|
29
|
+
attestation:
|
|
30
|
+
type: x509
|
|
31
|
+
certificate_ref: ${vault:pki/agent-cert}
|
|
32
|
+
|
|
33
|
+
authentication:
|
|
34
|
+
methods:
|
|
35
|
+
- mtls
|
|
36
|
+
- jwt
|
|
37
|
+
jwt:
|
|
38
|
+
issuer: https://auth.acme.com
|
|
39
|
+
audience: ossa-runtime
|
|
40
|
+
|
|
41
|
+
authorization:
|
|
42
|
+
rbac:
|
|
43
|
+
role: worker
|
|
44
|
+
policies:
|
|
45
|
+
- allow: tools.read
|
|
46
|
+
- deny: tools.delete
|
|
47
|
+
|
|
48
|
+
sandbox:
|
|
49
|
+
isolation: container
|
|
50
|
+
resources:
|
|
51
|
+
memory: 512Mi
|
|
52
|
+
cpu: 1000m
|
|
53
|
+
network:
|
|
54
|
+
egress:
|
|
55
|
+
- https://api.github.com
|
|
56
|
+
- https://api.gitlab.com
|
|
57
|
+
|
|
58
|
+
audit:
|
|
59
|
+
enabled: true
|
|
60
|
+
events:
|
|
61
|
+
- agent_started
|
|
62
|
+
- capability_invoked
|
|
63
|
+
- secret_accessed
|
|
64
|
+
- policy_violation
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Agent Identity
|
|
70
|
+
|
|
71
|
+
Every OSSA agent MUST have a globally unique identity expressed as a URN.
|
|
72
|
+
|
|
73
|
+
### URN Format
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
ossa:agent:<organization>:<name>:<version>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Examples**:
|
|
80
|
+
- `ossa:agent:acme:code-reviewer:1.2.0`
|
|
81
|
+
- `ossa:agent:github:security-scanner:2.0.0`
|
|
82
|
+
- `ossa:agent:gitlab:merge-approver:3.1.0`
|
|
83
|
+
|
|
84
|
+
### Identity Schema
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
spec:
|
|
88
|
+
security:
|
|
89
|
+
identity:
|
|
90
|
+
urn: string # Required: Agent URN
|
|
91
|
+
attestation:
|
|
92
|
+
type: x509 | jwt | spiffe # Required: Attestation type
|
|
93
|
+
certificate_ref?: string # For x509/SPIFFE
|
|
94
|
+
jwt_ref?: string # For JWT
|
|
95
|
+
trust_anchor: string # Trust root CA/issuer
|
|
96
|
+
|
|
97
|
+
labels: # Optional: Identity labels
|
|
98
|
+
organization: string
|
|
99
|
+
team: string
|
|
100
|
+
environment: dev | staging | prod
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Attestation Types
|
|
104
|
+
|
|
105
|
+
#### X.509 Certificate Attestation
|
|
106
|
+
|
|
107
|
+
Agents present X.509 certificates signed by a trusted CA.
|
|
108
|
+
|
|
109
|
+
```yaml
|
|
110
|
+
attestation:
|
|
111
|
+
type: x509
|
|
112
|
+
certificate_ref: ${vault:pki/certs/agent-cert}
|
|
113
|
+
trust_anchor: ${vault:pki/ca/root-ca}
|
|
114
|
+
|
|
115
|
+
# Optional: Certificate validation rules
|
|
116
|
+
validation:
|
|
117
|
+
require_san: true
|
|
118
|
+
allowed_sans:
|
|
119
|
+
- DNS:secure-agent.acme.com
|
|
120
|
+
- URI:ossa:agent:acme:secure-agent:1.0.0
|
|
121
|
+
check_revocation: true
|
|
122
|
+
ocsp_endpoints:
|
|
123
|
+
- https://ocsp.acme.com
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Trust Chain**:
|
|
127
|
+
1. Runtime validates certificate against trust anchor
|
|
128
|
+
2. Checks SAN matches agent URN
|
|
129
|
+
3. Verifies certificate not revoked (OCSP/CRL)
|
|
130
|
+
4. Extracts identity from certificate Subject/SAN
|
|
131
|
+
|
|
132
|
+
#### JWT Attestation
|
|
133
|
+
|
|
134
|
+
Agents present JWT tokens with OSSA-specific claims.
|
|
135
|
+
|
|
136
|
+
```yaml
|
|
137
|
+
attestation:
|
|
138
|
+
type: jwt
|
|
139
|
+
jwt_ref: ${env:OSSA_AGENT_TOKEN}
|
|
140
|
+
trust_anchor: https://auth.acme.com/.well-known/jwks.json
|
|
141
|
+
|
|
142
|
+
# Required JWT claims
|
|
143
|
+
claims:
|
|
144
|
+
iss: https://auth.acme.com
|
|
145
|
+
sub: ossa:agent:acme:secure-agent:1.0.0
|
|
146
|
+
aud: ossa-runtime
|
|
147
|
+
ossa.agent.id: secure-agent
|
|
148
|
+
ossa.agent.version: 1.0.0
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**JWT Structure**:
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"iss": "https://auth.acme.com",
|
|
155
|
+
"sub": "ossa:agent:acme:secure-agent:1.0.0",
|
|
156
|
+
"aud": "ossa-runtime",
|
|
157
|
+
"exp": 1735747200,
|
|
158
|
+
"iat": 1735660800,
|
|
159
|
+
"ossa.agent.id": "secure-agent",
|
|
160
|
+
"ossa.agent.version": "1.0.0",
|
|
161
|
+
"ossa.agent.capabilities": ["code_review", "security_scan"]
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
#### SPIFFE SVID Attestation
|
|
166
|
+
|
|
167
|
+
Agents use SPIFFE Verifiable Identity Documents for zero-trust environments.
|
|
168
|
+
|
|
169
|
+
```yaml
|
|
170
|
+
attestation:
|
|
171
|
+
type: spiffe
|
|
172
|
+
spiffe_id: spiffe://acme.com/agent/secure-agent
|
|
173
|
+
trust_bundle_ref: ${vault:spiffe/bundles/acme}
|
|
174
|
+
|
|
175
|
+
workload_api:
|
|
176
|
+
socket_path: unix:///run/spire/agent.sock
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**SPIFFE Integration**:
|
|
180
|
+
- Agent retrieves X.509-SVID from SPIRE Workload API
|
|
181
|
+
- SVID contains SPIFFE ID matching agent URN
|
|
182
|
+
- Runtime validates against trust bundle
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Authentication Methods
|
|
187
|
+
|
|
188
|
+
OSSA supports multiple authentication methods for different deployment scenarios.
|
|
189
|
+
|
|
190
|
+
### mTLS (Mutual TLS)
|
|
191
|
+
|
|
192
|
+
**Use Case**: Service-to-service authentication, Kubernetes, SPIFFE
|
|
193
|
+
|
|
194
|
+
```yaml
|
|
195
|
+
authentication:
|
|
196
|
+
methods:
|
|
197
|
+
- mtls
|
|
198
|
+
|
|
199
|
+
mtls:
|
|
200
|
+
client_certificate_ref: ${vault:pki/agent-cert}
|
|
201
|
+
client_key_ref: ${vault:pki/agent-key}
|
|
202
|
+
ca_bundle_ref: ${vault:pki/ca-bundle}
|
|
203
|
+
|
|
204
|
+
# Optional: TLS configuration
|
|
205
|
+
min_tls_version: "1.3"
|
|
206
|
+
cipher_suites:
|
|
207
|
+
- TLS_AES_256_GCM_SHA384
|
|
208
|
+
- TLS_CHACHA20_POLY1305_SHA256
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**Workflow**:
|
|
212
|
+
1. Agent presents client certificate during TLS handshake
|
|
213
|
+
2. Runtime validates certificate against CA bundle
|
|
214
|
+
3. Runtime extracts identity from certificate Subject/SAN
|
|
215
|
+
4. Connection established with mutual authentication
|
|
216
|
+
|
|
217
|
+
### Bearer Token (JWT)
|
|
218
|
+
|
|
219
|
+
**Use Case**: API authentication, token-based flows
|
|
220
|
+
|
|
221
|
+
```yaml
|
|
222
|
+
authentication:
|
|
223
|
+
methods:
|
|
224
|
+
- jwt
|
|
225
|
+
|
|
226
|
+
jwt:
|
|
227
|
+
token_ref: ${vault:secret/agent-jwt}
|
|
228
|
+
issuer: https://auth.acme.com
|
|
229
|
+
audience: ossa-runtime
|
|
230
|
+
|
|
231
|
+
# Optional: Token validation
|
|
232
|
+
validation:
|
|
233
|
+
require_expiration: true
|
|
234
|
+
clock_skew_seconds: 300
|
|
235
|
+
required_claims:
|
|
236
|
+
- ossa.agent.id
|
|
237
|
+
- ossa.agent.version
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Token Lifecycle**:
|
|
241
|
+
- **Issue**: Auth server issues JWT with OSSA claims
|
|
242
|
+
- **Present**: Agent includes JWT in `Authorization: Bearer <token>` header
|
|
243
|
+
- **Validate**: Runtime validates signature, expiration, claims
|
|
244
|
+
- **Rotate**: Agents refresh tokens before expiration
|
|
245
|
+
|
|
246
|
+
### OIDC (OpenID Connect)
|
|
247
|
+
|
|
248
|
+
**Use Case**: Federated identity, SSO integration
|
|
249
|
+
|
|
250
|
+
```yaml
|
|
251
|
+
authentication:
|
|
252
|
+
methods:
|
|
253
|
+
- oidc
|
|
254
|
+
|
|
255
|
+
oidc:
|
|
256
|
+
issuer: https://auth.acme.com
|
|
257
|
+
client_id: ossa-agent-secure-agent
|
|
258
|
+
client_secret_ref: ${vault:secret/oidc-client-secret}
|
|
259
|
+
|
|
260
|
+
scopes:
|
|
261
|
+
- openid
|
|
262
|
+
- profile
|
|
263
|
+
- ossa:agent
|
|
264
|
+
|
|
265
|
+
# Optional: Discovery endpoint override
|
|
266
|
+
discovery_url: https://auth.acme.com/.well-known/openid-configuration
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
**Flow**:
|
|
270
|
+
1. Agent initiates OIDC authorization code flow
|
|
271
|
+
2. User authenticates (if interactive) or client credentials grant
|
|
272
|
+
3. Agent exchanges code for ID token + access token
|
|
273
|
+
4. Runtime validates ID token signature and claims
|
|
274
|
+
|
|
275
|
+
### API Key
|
|
276
|
+
|
|
277
|
+
**Use Case**: Simple authentication, dev/testing environments
|
|
278
|
+
|
|
279
|
+
```yaml
|
|
280
|
+
authentication:
|
|
281
|
+
methods:
|
|
282
|
+
- api_key
|
|
283
|
+
|
|
284
|
+
api_key:
|
|
285
|
+
key_ref: ${vault:secret/api-key}
|
|
286
|
+
header_name: X-OSSA-API-Key
|
|
287
|
+
|
|
288
|
+
# Optional: Key properties
|
|
289
|
+
scopes:
|
|
290
|
+
- tools.read
|
|
291
|
+
- tools.execute
|
|
292
|
+
rate_limit:
|
|
293
|
+
requests_per_minute: 100
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
**Security Considerations**:
|
|
297
|
+
- API keys MUST be scoped to specific capabilities
|
|
298
|
+
- API keys MUST be rotatable without downtime
|
|
299
|
+
- API keys SHOULD have expiration dates
|
|
300
|
+
- API keys MUST NOT be logged in plaintext
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Authorization Model
|
|
305
|
+
|
|
306
|
+
OSSA uses **Role-Based Access Control (RBAC)** with **Attribute-Based Access Control (ABAC)** extensions.
|
|
307
|
+
|
|
308
|
+
### RBAC Roles
|
|
309
|
+
|
|
310
|
+
#### Orchestrator
|
|
311
|
+
|
|
312
|
+
**Capabilities**: Full control over agent lifecycle and delegation
|
|
313
|
+
|
|
314
|
+
```yaml
|
|
315
|
+
authorization:
|
|
316
|
+
rbac:
|
|
317
|
+
role: orchestrator
|
|
318
|
+
|
|
319
|
+
permissions:
|
|
320
|
+
- agents.create
|
|
321
|
+
- agents.delete
|
|
322
|
+
- agents.delegate
|
|
323
|
+
- tools.*
|
|
324
|
+
- state.read
|
|
325
|
+
- state.write
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
**Use Case**: Multi-agent orchestrators, workflow engines
|
|
329
|
+
|
|
330
|
+
#### Worker
|
|
331
|
+
|
|
332
|
+
**Capabilities**: Execute assigned tasks, read state, invoke tools
|
|
333
|
+
|
|
334
|
+
```yaml
|
|
335
|
+
authorization:
|
|
336
|
+
rbac:
|
|
337
|
+
role: worker
|
|
338
|
+
|
|
339
|
+
permissions:
|
|
340
|
+
- tools.read
|
|
341
|
+
- tools.execute
|
|
342
|
+
- state.read
|
|
343
|
+
- state.write # Own state only
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
**Use Case**: Specialized agents, task executors
|
|
347
|
+
|
|
348
|
+
#### Auditor
|
|
349
|
+
|
|
350
|
+
**Capabilities**: Read-only access for compliance and monitoring
|
|
351
|
+
|
|
352
|
+
```yaml
|
|
353
|
+
authorization:
|
|
354
|
+
rbac:
|
|
355
|
+
role: auditor
|
|
356
|
+
|
|
357
|
+
permissions:
|
|
358
|
+
- tools.read
|
|
359
|
+
- state.read
|
|
360
|
+
- audit.read
|
|
361
|
+
- metrics.read
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
**Use Case**: Compliance agents, monitoring dashboards
|
|
365
|
+
|
|
366
|
+
### ABAC Attributes
|
|
367
|
+
|
|
368
|
+
Extend RBAC with context-aware policies.
|
|
369
|
+
|
|
370
|
+
```yaml
|
|
371
|
+
authorization:
|
|
372
|
+
rbac:
|
|
373
|
+
role: worker
|
|
374
|
+
|
|
375
|
+
abac:
|
|
376
|
+
attributes:
|
|
377
|
+
- name: environment
|
|
378
|
+
value: production
|
|
379
|
+
- name: region
|
|
380
|
+
value: us-east-1
|
|
381
|
+
- name: compliance
|
|
382
|
+
value: hipaa
|
|
383
|
+
|
|
384
|
+
policies:
|
|
385
|
+
- condition: environment == "production"
|
|
386
|
+
effect: deny
|
|
387
|
+
actions:
|
|
388
|
+
- tools.delete
|
|
389
|
+
|
|
390
|
+
- condition: compliance == "hipaa" && tool.type == "external_api"
|
|
391
|
+
effect: allow
|
|
392
|
+
actions:
|
|
393
|
+
- tools.execute
|
|
394
|
+
require_audit: true
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### Policy Enforcement Points
|
|
398
|
+
|
|
399
|
+
Policies are enforced at multiple points:
|
|
400
|
+
|
|
401
|
+
1. **Startup**: Validate agent has required permissions
|
|
402
|
+
2. **Runtime**: Check policy before each operation
|
|
403
|
+
3. **Tool Invocation**: Enforce per-tool policies
|
|
404
|
+
4. **State Access**: Validate read/write permissions
|
|
405
|
+
|
|
406
|
+
```typescript
|
|
407
|
+
interface PolicyEnforcement {
|
|
408
|
+
// Called before agent initialization
|
|
409
|
+
validateStartup(manifest: AgentManifest): PolicyResult;
|
|
410
|
+
|
|
411
|
+
// Called before each operation
|
|
412
|
+
enforcePolicy(
|
|
413
|
+
operation: Operation,
|
|
414
|
+
context: SecurityContext
|
|
415
|
+
): boolean;
|
|
416
|
+
|
|
417
|
+
// Called before tool invocation
|
|
418
|
+
checkToolPolicy(
|
|
419
|
+
tool: string,
|
|
420
|
+
action: string,
|
|
421
|
+
context: SecurityContext
|
|
422
|
+
): boolean;
|
|
423
|
+
|
|
424
|
+
// Called before state access
|
|
425
|
+
checkStatePolicy(
|
|
426
|
+
key: string,
|
|
427
|
+
operation: 'read' | 'write',
|
|
428
|
+
context: SecurityContext
|
|
429
|
+
): boolean;
|
|
430
|
+
}
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
### Deny-by-Default
|
|
434
|
+
|
|
435
|
+
**CRITICAL**: OSSA runtimes MUST implement deny-by-default policies.
|
|
436
|
+
|
|
437
|
+
- If no policy allows an operation, it is **DENIED**
|
|
438
|
+
- Explicit deny ALWAYS overrides allow
|
|
439
|
+
- Permissions are additive (multiple roles accumulate)
|
|
440
|
+
|
|
441
|
+
```yaml
|
|
442
|
+
# Example: Default deny policy
|
|
443
|
+
authorization:
|
|
444
|
+
default_policy: deny
|
|
445
|
+
|
|
446
|
+
policies:
|
|
447
|
+
- effect: allow
|
|
448
|
+
actions:
|
|
449
|
+
- tools.read
|
|
450
|
+
resources:
|
|
451
|
+
- gitlab-api
|
|
452
|
+
- github-api
|
|
453
|
+
|
|
454
|
+
- effect: deny
|
|
455
|
+
actions:
|
|
456
|
+
- tools.delete
|
|
457
|
+
resources:
|
|
458
|
+
- "*" # Deny all deletions
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
463
|
+
## Secrets Management
|
|
464
|
+
|
|
465
|
+
**ABSOLUTE REQUIREMENT**: Secrets MUST NEVER be embedded in agent manifests.
|
|
466
|
+
|
|
467
|
+
### Prohibited
|
|
468
|
+
|
|
469
|
+
```yaml
|
|
470
|
+
# ❌ NEVER DO THIS
|
|
471
|
+
spec:
|
|
472
|
+
tools:
|
|
473
|
+
- name: gitlab-api
|
|
474
|
+
type: http
|
|
475
|
+
config:
|
|
476
|
+
api_key: glpat-supersecretkey123 # NEVER embed secrets!
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
### Required
|
|
480
|
+
|
|
481
|
+
```yaml
|
|
482
|
+
# ✅ ALWAYS DO THIS
|
|
483
|
+
spec:
|
|
484
|
+
tools:
|
|
485
|
+
- name: gitlab-api
|
|
486
|
+
type: http
|
|
487
|
+
config:
|
|
488
|
+
api_key_ref: ${vault:secret/gitlab/api-key}
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
### Secret Reference Syntax
|
|
492
|
+
|
|
493
|
+
Secrets are referenced using provider-specific URIs:
|
|
494
|
+
|
|
495
|
+
```
|
|
496
|
+
${<provider>:<path>[:<key>][?<options>]}
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
**Examples**:
|
|
500
|
+
- `${vault:secret/data/gitlab/api-key}`
|
|
501
|
+
- `${k8s:secrets/ossa-secrets:gitlab-token}`
|
|
502
|
+
- `${env:GITLAB_API_KEY}`
|
|
503
|
+
- `${aws:secretsmanager/gitlab-api-key}`
|
|
504
|
+
- `${azure:keyvault/gitlab-api-key}`
|
|
505
|
+
|
|
506
|
+
### Storage Options
|
|
507
|
+
|
|
508
|
+
#### HashiCorp Vault
|
|
509
|
+
|
|
510
|
+
```yaml
|
|
511
|
+
secrets:
|
|
512
|
+
provider: vault
|
|
513
|
+
config:
|
|
514
|
+
address: https://vault.acme.com
|
|
515
|
+
namespace: ossa-agents
|
|
516
|
+
auth:
|
|
517
|
+
method: kubernetes
|
|
518
|
+
role: ossa-agent
|
|
519
|
+
|
|
520
|
+
# Optional: TLS configuration
|
|
521
|
+
tls:
|
|
522
|
+
ca_cert_ref: ${file:/etc/vault/ca.crt}
|
|
523
|
+
client_cert_ref: ${file:/etc/vault/client.crt}
|
|
524
|
+
client_key_ref: ${file:/etc/vault/client.key}
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
**Reference Syntax**:
|
|
528
|
+
- KV v2: `${vault:secret/data/path/to/secret:key}`
|
|
529
|
+
- PKI: `${vault:pki/issue/agent-role:certificate}`
|
|
530
|
+
- Database: `${vault:database/creds/readonly:password}`
|
|
531
|
+
|
|
532
|
+
#### Kubernetes Secrets
|
|
533
|
+
|
|
534
|
+
```yaml
|
|
535
|
+
secrets:
|
|
536
|
+
provider: kubernetes
|
|
537
|
+
config:
|
|
538
|
+
namespace: ossa-agents
|
|
539
|
+
service_account: ossa-agent-sa
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
**Reference Syntax**:
|
|
543
|
+
- `${k8s:secrets/secret-name:key-name}`
|
|
544
|
+
- `${k8s:configmaps/config-name:key-name}`
|
|
545
|
+
|
|
546
|
+
#### Environment Variables
|
|
547
|
+
|
|
548
|
+
```yaml
|
|
549
|
+
secrets:
|
|
550
|
+
provider: env
|
|
551
|
+
config:
|
|
552
|
+
allowed_prefixes:
|
|
553
|
+
- OSSA_
|
|
554
|
+
- AGENT_
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
**Reference Syntax**:
|
|
558
|
+
- `${env:OSSA_API_KEY}`
|
|
559
|
+
- `${env:AGENT_SECRET_TOKEN}`
|
|
560
|
+
|
|
561
|
+
**Security Note**: Environment variables are acceptable for dev/testing but NOT recommended for production.
|
|
562
|
+
|
|
563
|
+
#### AWS Secrets Manager
|
|
564
|
+
|
|
565
|
+
```yaml
|
|
566
|
+
secrets:
|
|
567
|
+
provider: aws
|
|
568
|
+
config:
|
|
569
|
+
region: us-east-1
|
|
570
|
+
auth:
|
|
571
|
+
method: iam_role
|
|
572
|
+
role_arn: arn:aws:iam::123456789012:role/ossa-agent
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
**Reference Syntax**:
|
|
576
|
+
- `${aws:secretsmanager/secret-name}`
|
|
577
|
+
- `${aws:secretsmanager/secret-name:version-id}`
|
|
578
|
+
|
|
579
|
+
#### Azure Key Vault
|
|
580
|
+
|
|
581
|
+
```yaml
|
|
582
|
+
secrets:
|
|
583
|
+
provider: azure
|
|
584
|
+
config:
|
|
585
|
+
vault_url: https://ossa-vault.vault.azure.net
|
|
586
|
+
auth:
|
|
587
|
+
method: managed_identity
|
|
588
|
+
client_id: 12345678-1234-1234-1234-123456789012
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
**Reference Syntax**:
|
|
592
|
+
- `${azure:keyvault/secret-name}`
|
|
593
|
+
- `${azure:keyvault/secret-name:version}`
|
|
594
|
+
|
|
595
|
+
### Secret Rotation Policy
|
|
596
|
+
|
|
597
|
+
Secrets MUST support rotation without agent restart.
|
|
598
|
+
|
|
599
|
+
```yaml
|
|
600
|
+
secrets:
|
|
601
|
+
rotation:
|
|
602
|
+
enabled: true
|
|
603
|
+
check_interval: 300s # Check every 5 minutes
|
|
604
|
+
|
|
605
|
+
# Optional: Rotation notifications
|
|
606
|
+
notification:
|
|
607
|
+
webhook: https://alerts.acme.com/secret-rotated
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
**Rotation Flow**:
|
|
611
|
+
1. Secret updated in provider (Vault, K8s, etc.)
|
|
612
|
+
2. Agent detects change (polling or webhook)
|
|
613
|
+
3. Agent reloads secret value
|
|
614
|
+
4. Agent uses new secret for subsequent operations
|
|
615
|
+
5. Old secret remains valid for grace period
|
|
616
|
+
|
|
617
|
+
### Secret Lifecycle Events
|
|
618
|
+
|
|
619
|
+
Agents MUST emit audit events for secret operations:
|
|
620
|
+
|
|
621
|
+
```yaml
|
|
622
|
+
audit:
|
|
623
|
+
events:
|
|
624
|
+
- secret_accessed # Secret read from provider
|
|
625
|
+
- secret_rotated # Secret value changed
|
|
626
|
+
- secret_access_denied # Secret access failed
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
---
|
|
630
|
+
|
|
631
|
+
## Sandboxing Requirements
|
|
632
|
+
|
|
633
|
+
Agents MUST run in isolated execution environments with resource limits.
|
|
634
|
+
|
|
635
|
+
### Isolation Levels
|
|
636
|
+
|
|
637
|
+
#### Process Isolation
|
|
638
|
+
|
|
639
|
+
**Minimum viable isolation** for dev/testing.
|
|
640
|
+
|
|
641
|
+
```yaml
|
|
642
|
+
sandbox:
|
|
643
|
+
isolation: process
|
|
644
|
+
|
|
645
|
+
resources:
|
|
646
|
+
memory: 256Mi
|
|
647
|
+
cpu: 500m
|
|
648
|
+
|
|
649
|
+
# Process-level restrictions
|
|
650
|
+
restrictions:
|
|
651
|
+
read_only_filesystem: false
|
|
652
|
+
allow_network: true
|
|
653
|
+
allow_ipc: false
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
**Mechanisms**: Process namespaces, resource limits (cgroups)
|
|
657
|
+
|
|
658
|
+
#### Container Isolation
|
|
659
|
+
|
|
660
|
+
**Recommended for production** deployments.
|
|
661
|
+
|
|
662
|
+
```yaml
|
|
663
|
+
sandbox:
|
|
664
|
+
isolation: container
|
|
665
|
+
|
|
666
|
+
resources:
|
|
667
|
+
memory: 512Mi
|
|
668
|
+
cpu: 1000m
|
|
669
|
+
ephemeral_storage: 1Gi
|
|
670
|
+
|
|
671
|
+
container:
|
|
672
|
+
image: ossa-runtime:latest
|
|
673
|
+
read_only_root: true
|
|
674
|
+
allow_privilege_escalation: false
|
|
675
|
+
run_as_non_root: true
|
|
676
|
+
run_as_user: 1000
|
|
677
|
+
|
|
678
|
+
seccomp_profile: runtime/default
|
|
679
|
+
apparmor_profile: ossa-agent
|
|
680
|
+
```
|
|
681
|
+
|
|
682
|
+
**Mechanisms**: Docker, containerd, Podman
|
|
683
|
+
|
|
684
|
+
#### VM Isolation
|
|
685
|
+
|
|
686
|
+
**Maximum security** for untrusted agents.
|
|
687
|
+
|
|
688
|
+
```yaml
|
|
689
|
+
sandbox:
|
|
690
|
+
isolation: vm
|
|
691
|
+
|
|
692
|
+
resources:
|
|
693
|
+
memory: 2Gi
|
|
694
|
+
cpu: 2000m
|
|
695
|
+
disk: 10Gi
|
|
696
|
+
|
|
697
|
+
vm:
|
|
698
|
+
hypervisor: firecracker
|
|
699
|
+
kernel: vmlinux-5.10
|
|
700
|
+
init: /sbin/init
|
|
701
|
+
|
|
702
|
+
# Firecracker-specific config
|
|
703
|
+
firecracker:
|
|
704
|
+
vsock: true
|
|
705
|
+
balloon: true
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
**Mechanisms**: Firecracker, gVisor, Kata Containers
|
|
709
|
+
|
|
710
|
+
### Resource Limits
|
|
711
|
+
|
|
712
|
+
All isolation levels MUST enforce resource limits.
|
|
713
|
+
|
|
714
|
+
```yaml
|
|
715
|
+
sandbox:
|
|
716
|
+
resources:
|
|
717
|
+
memory: 512Mi # Max memory
|
|
718
|
+
cpu: 1000m # Max CPU (1 core)
|
|
719
|
+
ephemeral_storage: 1Gi # Max disk usage
|
|
720
|
+
|
|
721
|
+
# Optional: Request vs. limit (Kubernetes-style)
|
|
722
|
+
requests:
|
|
723
|
+
memory: 256Mi
|
|
724
|
+
cpu: 500m
|
|
725
|
+
|
|
726
|
+
limits:
|
|
727
|
+
memory: 512Mi
|
|
728
|
+
cpu: 1000m
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
**Enforcement**:
|
|
732
|
+
- **Memory**: OOM kill if exceeded
|
|
733
|
+
- **CPU**: Throttling if exceeded
|
|
734
|
+
- **Disk**: Write failure if exceeded
|
|
735
|
+
|
|
736
|
+
### Syscall Filtering
|
|
737
|
+
|
|
738
|
+
Restrict syscalls available to agent processes.
|
|
739
|
+
|
|
740
|
+
```yaml
|
|
741
|
+
sandbox:
|
|
742
|
+
syscall_filter:
|
|
743
|
+
default_action: SCMP_ACT_ERRNO
|
|
744
|
+
|
|
745
|
+
allowed_syscalls:
|
|
746
|
+
- read
|
|
747
|
+
- write
|
|
748
|
+
- open
|
|
749
|
+
- close
|
|
750
|
+
- stat
|
|
751
|
+
- fstat
|
|
752
|
+
- lstat
|
|
753
|
+
- poll
|
|
754
|
+
- mmap
|
|
755
|
+
- munmap
|
|
756
|
+
- brk
|
|
757
|
+
- rt_sigaction
|
|
758
|
+
- rt_sigprocmask
|
|
759
|
+
- ioctl
|
|
760
|
+
- socket
|
|
761
|
+
- connect
|
|
762
|
+
- sendto
|
|
763
|
+
- recvfrom
|
|
764
|
+
|
|
765
|
+
denied_syscalls:
|
|
766
|
+
- ptrace # Prevent debugging
|
|
767
|
+
- reboot # Prevent system reboot
|
|
768
|
+
- kexec_load # Prevent kernel loading
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
**Mechanisms**: seccomp-bpf, AppArmor, SELinux
|
|
772
|
+
|
|
773
|
+
### Network Policy
|
|
774
|
+
|
|
775
|
+
Control network access with egress/ingress rules.
|
|
776
|
+
|
|
777
|
+
```yaml
|
|
778
|
+
sandbox:
|
|
779
|
+
network:
|
|
780
|
+
# Egress rules (outbound)
|
|
781
|
+
egress:
|
|
782
|
+
- protocol: https
|
|
783
|
+
destinations:
|
|
784
|
+
- api.github.com
|
|
785
|
+
- api.gitlab.com
|
|
786
|
+
- registry.npmjs.org
|
|
787
|
+
ports:
|
|
788
|
+
- 443
|
|
789
|
+
|
|
790
|
+
- protocol: http
|
|
791
|
+
destinations:
|
|
792
|
+
- internal-api.acme.com
|
|
793
|
+
ports:
|
|
794
|
+
- 8080
|
|
795
|
+
|
|
796
|
+
# Ingress rules (inbound)
|
|
797
|
+
ingress:
|
|
798
|
+
- protocol: http
|
|
799
|
+
sources:
|
|
800
|
+
- 10.0.0.0/8 # Internal network
|
|
801
|
+
ports:
|
|
802
|
+
- 8080
|
|
803
|
+
|
|
804
|
+
# Default deny
|
|
805
|
+
default_policy: deny
|
|
806
|
+
```
|
|
807
|
+
|
|
808
|
+
**Enforcement**:
|
|
809
|
+
- **iptables**: Linux firewall rules
|
|
810
|
+
- **Network Policies**: Kubernetes NetworkPolicy
|
|
811
|
+
- **DNS filtering**: Allowed domains only
|
|
812
|
+
|
|
813
|
+
### Filesystem Restrictions
|
|
814
|
+
|
|
815
|
+
Control filesystem access with read/write permissions.
|
|
816
|
+
|
|
817
|
+
```yaml
|
|
818
|
+
sandbox:
|
|
819
|
+
filesystem:
|
|
820
|
+
read_only_paths:
|
|
821
|
+
- /usr
|
|
822
|
+
- /lib
|
|
823
|
+
- /lib64
|
|
824
|
+
- /etc
|
|
825
|
+
|
|
826
|
+
read_write_paths:
|
|
827
|
+
- /tmp
|
|
828
|
+
- /var/tmp
|
|
829
|
+
- /workspace
|
|
830
|
+
|
|
831
|
+
masked_paths:
|
|
832
|
+
- /proc/kcore
|
|
833
|
+
- /proc/latency_stats
|
|
834
|
+
- /sys/firmware
|
|
835
|
+
|
|
836
|
+
# Optional: Mount volumes
|
|
837
|
+
volumes:
|
|
838
|
+
- name: workspace
|
|
839
|
+
path: /workspace
|
|
840
|
+
read_only: false
|
|
841
|
+
size: 1Gi
|
|
842
|
+
```
|
|
843
|
+
|
|
844
|
+
---
|
|
845
|
+
|
|
846
|
+
## Audit Logging
|
|
847
|
+
|
|
848
|
+
All security-relevant events MUST be logged in **OpenTelemetry-compatible format**.
|
|
849
|
+
|
|
850
|
+
### Required Events
|
|
851
|
+
|
|
852
|
+
| Event Type | Description | Required Attributes |
|
|
853
|
+
|------------|-------------|---------------------|
|
|
854
|
+
| `agent_started` | Agent initialization | `ossa.agent.id`, `ossa.instance.id`, `security.identity.urn` |
|
|
855
|
+
| `agent_stopped` | Agent shutdown | `ossa.agent.id`, `ossa.instance.id`, `shutdown_reason` |
|
|
856
|
+
| `capability_invoked` | Tool/capability execution | `ossa.capability.name`, `ossa.tool.name`, `security.user.id` |
|
|
857
|
+
| `secret_accessed` | Secret retrieved | `secret.provider`, `secret.path`, `access_result` |
|
|
858
|
+
| `secret_rotated` | Secret value changed | `secret.provider`, `secret.path`, `rotation_trigger` |
|
|
859
|
+
| `policy_violation` | Authorization denied | `policy.id`, `policy.effect`, `violation_reason` |
|
|
860
|
+
| `authentication_success` | Auth succeeded | `auth.method`, `auth.principal`, `auth.source_ip` |
|
|
861
|
+
| `authentication_failure` | Auth failed | `auth.method`, `auth.principal`, `auth.failure_reason` |
|
|
862
|
+
| `authorization_denied` | Authz failed | `authz.action`, `authz.resource`, `authz.principal` |
|
|
863
|
+
| `network_connection` | External network call | `network.peer.address`, `network.protocol`, `network.status` |
|
|
864
|
+
|
|
865
|
+
### Log Format
|
|
866
|
+
|
|
867
|
+
Audit logs MUST be structured as OpenTelemetry log records.
|
|
868
|
+
|
|
869
|
+
```json
|
|
870
|
+
{
|
|
871
|
+
"timestamp": "2025-12-04T15:30:00.000Z",
|
|
872
|
+
"severity_text": "INFO",
|
|
873
|
+
"severity_number": 9,
|
|
874
|
+
"body": "Capability invoked",
|
|
875
|
+
"attributes": {
|
|
876
|
+
"event.name": "capability_invoked",
|
|
877
|
+
"ossa.agent.id": "secure-agent",
|
|
878
|
+
"ossa.agent.version": "1.0.0",
|
|
879
|
+
"ossa.instance.id": "550e8400-e29b-41d4-a716-446655440000",
|
|
880
|
+
"ossa.session.id": "abc123",
|
|
881
|
+
"ossa.capability.name": "code_review",
|
|
882
|
+
"ossa.tool.name": "gitlab-api",
|
|
883
|
+
"security.user.id": "alice@acme.com",
|
|
884
|
+
"security.source_ip": "192.168.1.100"
|
|
885
|
+
},
|
|
886
|
+
"resource": {
|
|
887
|
+
"service.name": "ossa-runtime",
|
|
888
|
+
"service.version": "0.2.9",
|
|
889
|
+
"deployment.environment": "production"
|
|
890
|
+
},
|
|
891
|
+
"trace_id": "5b8aa5a2d2c872e8321cf37308d69df2",
|
|
892
|
+
"span_id": "051581bf3cb55c13"
|
|
893
|
+
}
|
|
894
|
+
```
|
|
895
|
+
|
|
896
|
+
### Retention and Immutability
|
|
897
|
+
|
|
898
|
+
Audit logs MUST be:
|
|
899
|
+
|
|
900
|
+
1. **Immutable**: Write-once, tamper-evident storage
|
|
901
|
+
2. **Retained**: Per compliance requirements (7 years for FedRAMP)
|
|
902
|
+
3. **Encrypted**: At-rest encryption with key rotation
|
|
903
|
+
4. **Searchable**: Indexed for compliance queries
|
|
904
|
+
|
|
905
|
+
```yaml
|
|
906
|
+
audit:
|
|
907
|
+
enabled: true
|
|
908
|
+
|
|
909
|
+
retention:
|
|
910
|
+
days: 2555 # 7 years
|
|
911
|
+
immutable: true
|
|
912
|
+
|
|
913
|
+
storage:
|
|
914
|
+
backend: elasticsearch
|
|
915
|
+
encryption:
|
|
916
|
+
enabled: true
|
|
917
|
+
algorithm: AES-256-GCM
|
|
918
|
+
key_ref: ${vault:secret/audit-encryption-key}
|
|
919
|
+
|
|
920
|
+
index_pattern: ossa-audit-logs-%{+YYYY.MM.dd}
|
|
921
|
+
|
|
922
|
+
events:
|
|
923
|
+
- agent_started
|
|
924
|
+
- agent_stopped
|
|
925
|
+
- capability_invoked
|
|
926
|
+
- secret_accessed
|
|
927
|
+
- secret_rotated
|
|
928
|
+
- policy_violation
|
|
929
|
+
- authentication_success
|
|
930
|
+
- authentication_failure
|
|
931
|
+
- authorization_denied
|
|
932
|
+
- network_connection
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
### OpenTelemetry Integration
|
|
936
|
+
|
|
937
|
+
Export audit logs using OpenTelemetry Log Exporter.
|
|
938
|
+
|
|
939
|
+
```typescript
|
|
940
|
+
import { LoggerProvider, BatchLogRecordProcessor } from '@opentelemetry/sdk-logs';
|
|
941
|
+
import { OTLPLogExporter } from '@opentelemetry/exporter-logs-otlp-http';
|
|
942
|
+
|
|
943
|
+
const logExporter = new OTLPLogExporter({
|
|
944
|
+
url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT + '/v1/logs',
|
|
945
|
+
headers: {
|
|
946
|
+
'Authorization': `Bearer ${process.env.OTEL_API_KEY}`
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
|
|
950
|
+
const loggerProvider = new LoggerProvider();
|
|
951
|
+
loggerProvider.addLogRecordProcessor(new BatchLogRecordProcessor(logExporter));
|
|
952
|
+
|
|
953
|
+
const logger = loggerProvider.getLogger('ossa-security-audit', '0.2.9');
|
|
954
|
+
|
|
955
|
+
// Emit audit event
|
|
956
|
+
logger.emit({
|
|
957
|
+
severityText: 'INFO',
|
|
958
|
+
body: 'Capability invoked',
|
|
959
|
+
attributes: {
|
|
960
|
+
'event.name': 'capability_invoked',
|
|
961
|
+
'ossa.agent.id': manifest.metadata.name,
|
|
962
|
+
'ossa.capability.name': capability.name,
|
|
963
|
+
'security.user.id': context.userId
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
---
|
|
969
|
+
|
|
970
|
+
## Security Best Practices
|
|
971
|
+
|
|
972
|
+
### 1. Principle of Least Privilege
|
|
973
|
+
|
|
974
|
+
Agents SHOULD request minimum permissions required.
|
|
975
|
+
|
|
976
|
+
```yaml
|
|
977
|
+
# ❌ Bad: Request all permissions
|
|
978
|
+
authorization:
|
|
979
|
+
rbac:
|
|
980
|
+
role: orchestrator # Too broad
|
|
981
|
+
|
|
982
|
+
# ✅ Good: Request specific permissions
|
|
983
|
+
authorization:
|
|
984
|
+
rbac:
|
|
985
|
+
role: worker
|
|
986
|
+
policies:
|
|
987
|
+
- allow: tools.execute
|
|
988
|
+
resources:
|
|
989
|
+
- gitlab-api
|
|
990
|
+
```
|
|
991
|
+
|
|
992
|
+
### 2. Defense in Depth
|
|
993
|
+
|
|
994
|
+
Layer multiple security controls.
|
|
995
|
+
|
|
996
|
+
```yaml
|
|
997
|
+
security:
|
|
998
|
+
# Layer 1: Identity
|
|
999
|
+
identity:
|
|
1000
|
+
urn: ossa:agent:acme:secure-agent:1.0.0
|
|
1001
|
+
attestation:
|
|
1002
|
+
type: x509
|
|
1003
|
+
|
|
1004
|
+
# Layer 2: Authentication
|
|
1005
|
+
authentication:
|
|
1006
|
+
methods:
|
|
1007
|
+
- mtls
|
|
1008
|
+
|
|
1009
|
+
# Layer 3: Authorization
|
|
1010
|
+
authorization:
|
|
1011
|
+
rbac:
|
|
1012
|
+
role: worker
|
|
1013
|
+
|
|
1014
|
+
# Layer 4: Sandboxing
|
|
1015
|
+
sandbox:
|
|
1016
|
+
isolation: container
|
|
1017
|
+
|
|
1018
|
+
# Layer 5: Network isolation
|
|
1019
|
+
network:
|
|
1020
|
+
egress:
|
|
1021
|
+
- https://api.gitlab.com
|
|
1022
|
+
|
|
1023
|
+
# Layer 6: Audit
|
|
1024
|
+
audit:
|
|
1025
|
+
enabled: true
|
|
1026
|
+
```
|
|
1027
|
+
|
|
1028
|
+
### 3. Secrets Hygiene
|
|
1029
|
+
|
|
1030
|
+
- **NEVER** commit secrets to version control
|
|
1031
|
+
- **ALWAYS** use secret references
|
|
1032
|
+
- **ROTATE** secrets regularly
|
|
1033
|
+
- **LIMIT** secret access to minimum required agents
|
|
1034
|
+
|
|
1035
|
+
### 4. Audit Everything
|
|
1036
|
+
|
|
1037
|
+
Enable comprehensive audit logging.
|
|
1038
|
+
|
|
1039
|
+
```yaml
|
|
1040
|
+
audit:
|
|
1041
|
+
enabled: true
|
|
1042
|
+
events:
|
|
1043
|
+
- agent_started
|
|
1044
|
+
- agent_stopped
|
|
1045
|
+
- capability_invoked
|
|
1046
|
+
- secret_accessed
|
|
1047
|
+
- policy_violation
|
|
1048
|
+
- authentication_success
|
|
1049
|
+
- authentication_failure
|
|
1050
|
+
- authorization_denied
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1053
|
+
### 5. Compliance Mapping
|
|
1054
|
+
|
|
1055
|
+
Map security controls to compliance frameworks.
|
|
1056
|
+
|
|
1057
|
+
```yaml
|
|
1058
|
+
metadata:
|
|
1059
|
+
annotations:
|
|
1060
|
+
compliance.ossa.io/fedramp: AC-2,AC-3,AU-2,AU-9,SC-8,SC-13
|
|
1061
|
+
compliance.ossa.io/soc2: CC6.1,CC6.2,C1.1
|
|
1062
|
+
compliance.ossa.io/hipaa: 164.308(a)(3),164.312(a)(1),164.312(e)(1)
|
|
1063
|
+
```
|
|
1064
|
+
|
|
1065
|
+
See [compliance-profiles.md](./compliance-profiles.md) for full control mappings.
|
|
1066
|
+
|
|
1067
|
+
---
|
|
1068
|
+
|
|
1069
|
+
## TypeScript Types
|
|
1070
|
+
|
|
1071
|
+
```typescript
|
|
1072
|
+
export interface SecuritySpec {
|
|
1073
|
+
identity: AgentIdentity;
|
|
1074
|
+
authentication: AuthenticationConfig;
|
|
1075
|
+
authorization: AuthorizationConfig;
|
|
1076
|
+
secrets?: SecretsConfig;
|
|
1077
|
+
sandbox: SandboxConfig;
|
|
1078
|
+
audit: AuditConfig;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export interface AgentIdentity {
|
|
1082
|
+
urn: string; // ossa:agent:<org>:<name>:<version>
|
|
1083
|
+
attestation: AttestationConfig;
|
|
1084
|
+
labels?: Record<string, string>;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
export interface AttestationConfig {
|
|
1088
|
+
type: 'x509' | 'jwt' | 'spiffe';
|
|
1089
|
+
certificate_ref?: string;
|
|
1090
|
+
jwt_ref?: string;
|
|
1091
|
+
trust_anchor: string;
|
|
1092
|
+
validation?: ValidationRules;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
export interface AuthenticationConfig {
|
|
1096
|
+
methods: ('mtls' | 'jwt' | 'oidc' | 'api_key')[];
|
|
1097
|
+
mtls?: MutualTLSConfig;
|
|
1098
|
+
jwt?: JWTConfig;
|
|
1099
|
+
oidc?: OIDCConfig;
|
|
1100
|
+
api_key?: APIKeyConfig;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
export interface AuthorizationConfig {
|
|
1104
|
+
rbac: RBACConfig;
|
|
1105
|
+
abac?: ABACConfig;
|
|
1106
|
+
policies?: Policy[];
|
|
1107
|
+
default_policy?: 'allow' | 'deny';
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export interface RBACConfig {
|
|
1111
|
+
role: 'orchestrator' | 'worker' | 'auditor';
|
|
1112
|
+
permissions?: string[];
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export interface SandboxConfig {
|
|
1116
|
+
isolation: 'process' | 'container' | 'vm';
|
|
1117
|
+
resources: ResourceLimits;
|
|
1118
|
+
network?: NetworkPolicy;
|
|
1119
|
+
filesystem?: FilesystemPolicy;
|
|
1120
|
+
syscall_filter?: SyscallFilter;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
export interface ResourceLimits {
|
|
1124
|
+
memory: string; // e.g., "512Mi"
|
|
1125
|
+
cpu: string; // e.g., "1000m"
|
|
1126
|
+
ephemeral_storage?: string;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
export interface AuditConfig {
|
|
1130
|
+
enabled: boolean;
|
|
1131
|
+
events: AuditEvent[];
|
|
1132
|
+
retention?: RetentionPolicy;
|
|
1133
|
+
storage?: StorageConfig;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
export type AuditEvent =
|
|
1137
|
+
| 'agent_started'
|
|
1138
|
+
| 'agent_stopped'
|
|
1139
|
+
| 'capability_invoked'
|
|
1140
|
+
| 'secret_accessed'
|
|
1141
|
+
| 'secret_rotated'
|
|
1142
|
+
| 'policy_violation'
|
|
1143
|
+
| 'authentication_success'
|
|
1144
|
+
| 'authentication_failure'
|
|
1145
|
+
| 'authorization_denied'
|
|
1146
|
+
| 'network_connection';
|
|
1147
|
+
```
|
|
1148
|
+
|
|
1149
|
+
---
|
|
1150
|
+
|
|
1151
|
+
## Validation CLI
|
|
1152
|
+
|
|
1153
|
+
```bash
|
|
1154
|
+
# Validate security configuration
|
|
1155
|
+
ossa validate --security manifest.yaml
|
|
1156
|
+
|
|
1157
|
+
# Check RBAC permissions
|
|
1158
|
+
ossa rbac check --agent secure-agent --action tools.execute
|
|
1159
|
+
|
|
1160
|
+
# Test secret references
|
|
1161
|
+
ossa secrets test manifest.yaml
|
|
1162
|
+
|
|
1163
|
+
# Audit log query
|
|
1164
|
+
ossa audit query --event capability_invoked --since 1h
|
|
1165
|
+
|
|
1166
|
+
# Generate security report
|
|
1167
|
+
ossa security-report --format pdf manifest.yaml
|
|
1168
|
+
```
|
|
1169
|
+
|
|
1170
|
+
---
|
|
1171
|
+
|
|
1172
|
+
## Runtime Enforcement Pseudo-Code
|
|
1173
|
+
|
|
1174
|
+
```typescript
|
|
1175
|
+
class OSSASecurityRuntime {
|
|
1176
|
+
async validateAgent(manifest: AgentManifest): Promise<void> {
|
|
1177
|
+
// 1. Validate identity
|
|
1178
|
+
await this.validateIdentity(manifest.spec.security.identity);
|
|
1179
|
+
|
|
1180
|
+
// 2. Authenticate agent
|
|
1181
|
+
await this.authenticate(manifest.spec.security.authentication);
|
|
1182
|
+
|
|
1183
|
+
// 3. Authorize startup
|
|
1184
|
+
await this.authorize(manifest.spec.security.authorization);
|
|
1185
|
+
|
|
1186
|
+
// 4. Initialize sandbox
|
|
1187
|
+
await this.initializeSandbox(manifest.spec.security.sandbox);
|
|
1188
|
+
|
|
1189
|
+
// 5. Setup audit logging
|
|
1190
|
+
await this.initializeAudit(manifest.spec.security.audit);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
async executeCapability(
|
|
1194
|
+
capability: string,
|
|
1195
|
+
context: SecurityContext
|
|
1196
|
+
): Promise<void> {
|
|
1197
|
+
// 1. Check authorization
|
|
1198
|
+
if (!this.isAuthorized(capability, context)) {
|
|
1199
|
+
await this.auditEvent('authorization_denied', { capability, context });
|
|
1200
|
+
throw new AuthorizationError('Access denied');
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
// 2. Audit invocation
|
|
1204
|
+
await this.auditEvent('capability_invoked', { capability, context });
|
|
1205
|
+
|
|
1206
|
+
// 3. Execute with sandbox
|
|
1207
|
+
try {
|
|
1208
|
+
await this.sandbox.execute(capability, context);
|
|
1209
|
+
} catch (error) {
|
|
1210
|
+
await this.auditEvent('capability_failed', { capability, error });
|
|
1211
|
+
throw error;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
async accessSecret(secretRef: string): Promise<string> {
|
|
1216
|
+
// 1. Parse secret reference
|
|
1217
|
+
const { provider, path } = this.parseSecretRef(secretRef);
|
|
1218
|
+
|
|
1219
|
+
// 2. Check authorization
|
|
1220
|
+
if (!this.isAuthorized(`secrets.read.${provider}`, context)) {
|
|
1221
|
+
await this.auditEvent('secret_access_denied', { secretRef });
|
|
1222
|
+
throw new AuthorizationError('Secret access denied');
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
// 3. Retrieve secret
|
|
1226
|
+
const value = await this.secretsProvider.get(provider, path);
|
|
1227
|
+
|
|
1228
|
+
// 4. Audit access
|
|
1229
|
+
await this.auditEvent('secret_accessed', { provider, path });
|
|
1230
|
+
|
|
1231
|
+
return value;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
```
|
|
1235
|
+
|
|
1236
|
+
---
|
|
1237
|
+
|
|
1238
|
+
## References
|
|
1239
|
+
|
|
1240
|
+
- [SPIFFE/SPIRE](https://spiffe.io/) - Zero-trust identity framework
|
|
1241
|
+
- [NIST SP 800-204](https://csrc.nist.gov/publications/detail/sp/800-204/final) - Security Strategies for Microservices
|
|
1242
|
+
- [OpenTelemetry Logs](https://opentelemetry.io/docs/specs/otel/logs/) - Log data model
|
|
1243
|
+
- [seccomp-bpf](https://www.kernel.org/doc/html/latest/userspace-api/seccomp_filter.html) - Syscall filtering
|
|
1244
|
+
- [OSSA Compliance Profiles](./compliance-profiles.md) - Framework mappings
|
|
1245
|
+
- [OSSA Semantic Conventions](./semantic-conventions.md) - Observability attributes
|