@bluefly/openstandardagents 0.3.1 → 0.3.2
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/.devfile.yaml +87 -0
- package/.gitlab-ci-trigger +1 -0
- package/.wiki-config.json +24 -0
- package/CHANGELOG.md +212 -1
- package/README.md +31 -56
- package/dist/adapters/anthropic/runtime.js +2 -2
- package/dist/adapters/anthropic/runtime.js.map +1 -1
- package/dist/bot/architecture-validator-bot.d.ts +8 -0
- package/dist/bot/architecture-validator-bot.d.ts.map +1 -0
- package/dist/bot/architecture-validator-bot.js +15 -0
- package/dist/bot/architecture-validator-bot.js.map +1 -0
- package/dist/bot/ci-pipeline-bot.d.ts +7 -0
- package/dist/bot/ci-pipeline-bot.d.ts.map +1 -0
- package/dist/bot/ci-pipeline-bot.js +7 -0
- package/dist/bot/ci-pipeline-bot.js.map +1 -0
- package/dist/bot/compliance-bot.d.ts +56 -0
- package/dist/bot/compliance-bot.d.ts.map +1 -0
- package/dist/bot/compliance-bot.js +203 -0
- package/dist/bot/compliance-bot.js.map +1 -0
- package/dist/bot/dependency-updater-bot.d.ts +9 -0
- package/dist/bot/dependency-updater-bot.d.ts.map +1 -0
- package/dist/bot/dependency-updater-bot.js +9 -0
- package/dist/bot/dependency-updater-bot.js.map +1 -0
- package/dist/bot/security-scanner-bot.d.ts +11 -0
- package/dist/bot/security-scanner-bot.d.ts.map +1 -0
- package/dist/bot/security-scanner-bot.js +21 -0
- package/dist/bot/security-scanner-bot.js.map +1 -0
- package/dist/cli/commands/agent-card.command.d.ts +11 -0
- package/dist/cli/commands/agent-card.command.d.ts.map +1 -0
- package/dist/cli/commands/agent-card.command.js +285 -0
- package/dist/cli/commands/agent-card.command.js.map +1 -0
- package/dist/cli/commands/agents.command.d.ts +11 -0
- package/dist/cli/commands/agents.command.d.ts.map +1 -0
- package/dist/cli/commands/agents.command.js +326 -0
- package/dist/cli/commands/agents.command.js.map +1 -0
- package/dist/cli/commands/generate.command.d.ts +13 -2
- package/dist/cli/commands/generate.command.d.ts.map +1 -1
- package/dist/cli/commands/generate.command.js +204 -29
- package/dist/cli/commands/generate.command.js.map +1 -1
- package/dist/cli/commands/registry.command.d.ts +14 -0
- package/dist/cli/commands/registry.command.d.ts.map +1 -0
- package/dist/cli/commands/registry.command.js +428 -0
- package/dist/cli/commands/registry.command.js.map +1 -0
- package/dist/cli/commands/workspace.command.d.ts +14 -0
- package/dist/cli/commands/workspace.command.d.ts.map +1 -0
- package/dist/cli/commands/workspace.command.js +467 -0
- package/dist/cli/commands/workspace.command.js.map +1 -0
- package/dist/cli/index.js +9 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/di-container.d.ts.map +1 -1
- package/dist/di-container.js +20 -0
- package/dist/di-container.js.map +1 -1
- package/dist/services/codegen/codegen.service.d.ts +75 -0
- package/dist/services/codegen/codegen.service.d.ts.map +1 -0
- package/dist/services/codegen/codegen.service.js +136 -0
- package/dist/services/codegen/codegen.service.js.map +1 -0
- package/dist/services/codegen/generators/manifest.generator.d.ts +41 -0
- package/dist/services/codegen/generators/manifest.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/manifest.generator.js +178 -0
- package/dist/services/codegen/generators/manifest.generator.js.map +1 -0
- package/dist/services/codegen/generators/openapi.generator.d.ts +46 -0
- package/dist/services/codegen/generators/openapi.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/openapi.generator.js +157 -0
- package/dist/services/codegen/generators/openapi.generator.js.map +1 -0
- package/dist/services/codegen/generators/types.generator.d.ts +27 -0
- package/dist/services/codegen/generators/types.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/types.generator.js +97 -0
- package/dist/services/codegen/generators/types.generator.js.map +1 -0
- package/dist/services/codegen/generators/vscode.generator.d.ts +43 -0
- package/dist/services/codegen/generators/vscode.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/vscode.generator.js +163 -0
- package/dist/services/codegen/generators/vscode.generator.js.map +1 -0
- package/dist/services/codegen/generators/zod.generator.d.ts +31 -0
- package/dist/services/codegen/generators/zod.generator.d.ts.map +1 -0
- package/dist/services/codegen/generators/zod.generator.js +134 -0
- package/dist/services/codegen/generators/zod.generator.js.map +1 -0
- package/dist/services/codegen/index.d.ts +33 -0
- package/dist/services/codegen/index.d.ts.map +1 -0
- package/dist/services/codegen/index.js +36 -0
- package/dist/services/codegen/index.js.map +1 -0
- package/dist/spec/extensions/openapi/ossa-openapi-extensions.schema.json +804 -0
- package/dist/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +1 -1
- package/dist/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/dist/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/dist/spec/v0.3.0/runtime-bindings/anthropic.yaml +209 -0
- package/dist/spec/v0.3.1/examples/agent-with-identity.ossa.yaml +68 -0
- package/dist/spec/v0.3.1/examples/drupal-content-writer.ossa.yaml +1 -1
- package/dist/spec/v0.3.1/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/dist/spec/v0.3.1/examples/multi-provider-identity.ossa.yaml +236 -0
- package/dist/spec/v0.3.1/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/dist/spec/v0.3.1/extensions/agent-identity.yaml +594 -0
- package/dist/spec/v0.3.1/ossa-0.3.1.schema.json +300 -21
- package/dist/spec/v0.3.2/MIGRATION-v0.3.1-to-v0.3.2.md +293 -0
- package/dist/spec/v0.3.2/UNIFIED-SCHEMA.md +120 -0
- package/dist/spec/v0.3.2/access_tiers.yaml +375 -0
- package/dist/spec/v0.3.2/adapters/drupal.md +541 -0
- package/dist/spec/v0.3.2/adapters/symfony.md +659 -0
- package/dist/spec/v0.3.2/agent-test.schema.json +75 -0
- package/dist/spec/v0.3.2/examples/access-tiers/README.md +106 -0
- package/dist/spec/v0.3.2/examples/access-tiers/code-critic.ossa.yaml +119 -0
- package/dist/spec/v0.3.2/examples/access-tiers/compliance-governor.ossa.yaml +234 -0
- package/dist/spec/v0.3.2/examples/access-tiers/deployment-operator.ossa.yaml +201 -0
- package/dist/spec/v0.3.2/examples/access-tiers/doc-generator.ossa.yaml +117 -0
- package/dist/spec/v0.3.2/examples/access-tiers/security-scanner.ossa.yaml +133 -0
- package/dist/spec/v0.3.2/examples/agent-with-identity.ossa.yaml +68 -0
- package/dist/spec/v0.3.2/examples/drupal-content-writer.ossa.yaml +110 -0
- package/dist/spec/v0.3.2/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/dist/spec/v0.3.2/examples/multi-provider-identity.ossa.yaml +236 -0
- package/dist/spec/v0.3.2/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/dist/spec/v0.3.2/examples/tasks/data-transform.ossa.yaml +147 -0
- package/dist/spec/v0.3.2/examples/tasks/publish-content.ossa.yaml +125 -0
- package/dist/spec/v0.3.2/examples/workflows/content-publishing.ossa.yaml +190 -0
- package/dist/spec/v0.3.2/examples/workflows/deployment-pipeline.ossa.yaml +247 -0
- package/dist/spec/v0.3.2/extensions/agent-identity.yaml +594 -0
- package/dist/spec/v0.3.2/extensions/drupal.md +417 -0
- package/dist/spec/v0.3.2/infrastructure/service-ports.yaml +324 -0
- package/dist/spec/{v0.3.1/ossa-0.3.0.schema.json → v0.3.2/ossa-0.3.2.schema.json} +563 -34
- package/dist/spec/v0.3.2/protocols/delegation.yaml +239 -0
- package/dist/spec/v0.3.2/protocols/sse.md +494 -0
- package/dist/spec/v0.3.2/protocols/webrtc.md +600 -0
- package/dist/spec/v0.3.2/protocols/websocket.md +362 -0
- package/dist/spec/v0.3.2/runtime/RUNTIME.md +457 -0
- package/dist/spec/v0.3.2/runtime/memory-model.yaml +871 -0
- package/dist/spec/v0.3.2/runtime/runtime.yaml +926 -0
- package/dist/spec/v0.3.2/schemas/agent-unified.yaml +165 -0
- package/dist/spec/v0.3.2/schemas/capabilities.yaml +102 -0
- package/dist/spec/v0.3.2/schemas/functions.yaml +75 -0
- package/dist/spec/v0.3.2/schemas/messaging/channel.schema.json +245 -0
- package/dist/spec/v0.3.2/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/dist/spec/v0.3.2/schemas/messaging/message.schema.json +205 -0
- package/dist/spec/v0.3.2/schemas/messaging/subscription.schema.json +214 -0
- package/dist/spec/v0.3.2/schemas/runtime.yaml +102 -0
- package/dist/spec/v0.3.2/schemas/taxonomy.yaml +533 -0
- package/dist/spec/v0.3.2/schemas/unified-llm.yaml +91 -0
- package/dist/spec/v0.3.2/taxonomy.yaml +363 -0
- package/dist/types/generated/ossa-0.3.2.types.d.ts +367 -0
- package/dist/types/generated/ossa-0.3.2.types.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.2.types.js +10 -0
- package/dist/types/generated/ossa-0.3.2.types.js.map +1 -0
- package/dist/types/generated/ossa-0.3.2.zod.d.ts +36 -0
- package/dist/types/generated/ossa-0.3.2.zod.d.ts.map +1 -0
- package/dist/types/generated/ossa-0.3.2.zod.js +25 -0
- package/dist/types/generated/ossa-0.3.2.zod.js.map +1 -0
- package/examples/adapters/drupal-eca-mapping.yaml +1 -1
- package/examples/adapters/drupal-eca-task.yaml +1 -1
- package/examples/adapters/drupal-flowdrop-mapping.yaml +1 -1
- package/examples/adapters/drupal-maestro-mapping.yaml +1 -1
- package/examples/adapters/mistral-agent.yaml +1 -1
- package/examples/adapters/symfony-messenger-task.yaml +1 -1
- package/examples/adapters/symfony-messenger-workflow.yaml +1 -1
- 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 +1 -1
- package/examples/advanced/workflows/hybrid-model-strategy.yaml +1 -1
- 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/agents/architecture-healer-enterprise.yaml +1 -1
- package/examples/agents/dependency-healer-npm.yaml +1 -1
- package/examples/agents/spec-healer-openapi.yaml +1 -1
- package/examples/agents/wiki-healer-production.yaml +1 -1
- package/examples/agents-md/code-agent.ossa.json +36 -11
- package/examples/agents-md/monorepo-agent.ossa.yaml +1 -1
- package/examples/anthropic/claude-assistant.ossa.json +4 -4
- package/examples/autogen/multi-agent.ossa.json +2 -2
- package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +1 -1
- package/examples/claude-code/code-reviewer.ossa.yaml +1 -1
- package/examples/claude-code/ossa-validator.ossa.yaml +1 -1
- package/examples/common_npm/agent-router.ossa.yaml +1 -1
- package/examples/contracts/data-consumer.ossa.yaml +1 -1
- package/examples/contracts/data-producer-v2.ossa.yaml +1 -1
- package/examples/contracts/data-producer.ossa.yaml +1 -1
- package/examples/crewai/research-team.ossa.json +2 -2
- package/examples/cursor/code-review-agent.ossa.json +2 -2
- package/examples/drupal/ai_agents_ossa-module/.agents/example-agent/agent.ossa.yaml +1 -1
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
- package/examples/extensions/agents-md-advanced.yml +1 -1
- package/examples/extensions/agents-md-basic.yml +1 -1
- package/examples/extensions/agents-md-sync.yml +1 -1
- package/examples/extensions/agents-md-v1.yml +1 -1
- package/examples/extensions/drupal-v1.yml +1 -1
- package/examples/extensions/encryption-multi-provider.yaml +4 -4
- package/examples/extensions/kagent-v1.yml +1 -1
- package/examples/extensions/knowledge-sources.yaml +1 -1
- package/examples/extensions/mcp-full-featured.yaml +1 -1
- package/examples/getting-started/01-minimal-agent.ossa.yaml +3 -3
- package/examples/getting-started/02-agent-with-tools.ossa.yaml +1 -1
- package/examples/getting-started/03-agent-with-safety.ossa.yaml +1 -1
- package/examples/getting-started/04-agent-with-messaging.ossa.yaml +2 -2
- package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
- 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.ossa.yaml +1 -1
- package/examples/kagent/security-scanner.ossa.yaml +1 -1
- package/examples/langchain/chain-agent.ossa.json +2 -2
- package/examples/langflow/workflow-agent.ossa.json +2 -2
- package/examples/langgraph/state-machine-agent.ossa.json +2 -2
- package/examples/llamaindex/rag-agent.ossa.json +2 -2
- package/examples/messaging/dependency-healer.ossa.yaml +1 -1
- package/examples/messaging/incident-responder.ossa.yaml +1 -1
- package/examples/messaging/routing-rules.ossa.yaml +3 -3
- package/examples/messaging/security-scanner.ossa.yaml +1 -1
- package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
- 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 +1 -1
- package/examples/openai/basic-agent.ossa.yaml +1 -1
- package/examples/openai/multi-tool-agent.ossa.json +2 -2
- package/examples/openai/swarm-agent.ossa.json +2 -2
- package/examples/production/document-analyzer-openai.yml +1 -1
- package/examples/quickstart/support-agent.ossa.yaml +1 -1
- package/examples/real-world/gitlab-cicd-optimizer.ossa.yaml +1 -1
- package/examples/real-world/rag-documentation-assistant.ossa.yaml +1 -1
- package/examples/runtime-adapters/bedrock-claude-example.ossa.yaml +1 -1
- package/examples/schema/reusable-components.yaml +1 -1
- package/examples/showcase/ci-pipeline.ossa.yaml +59 -0
- package/examples/showcase/code-assistant.ossa.yaml +118 -0
- package/examples/showcase/code-reviewer.ossa.yaml +61 -0
- package/examples/showcase/compliance-validator.ossa.yaml +62 -0
- package/examples/showcase/content-writer.ossa.yaml +67 -0
- package/examples/showcase/data-transformer.ossa.yaml +78 -0
- package/examples/showcase/doc-generator.ossa.yaml +68 -0
- package/examples/showcase/security-scanner.ossa.yaml +65 -0
- package/examples/showcase/test-generator.ossa.yaml +63 -0
- package/examples/showcase/workflow-orchestrator.ossa.yaml +129 -0
- package/examples/tasks/batch-email-sender.yaml +1 -1
- package/examples/tasks/data-transform.yaml +1 -1
- package/examples/tasks/publish-content.yaml +1 -1
- package/examples/templates/ossa-compliance.yaml +1 -1
- package/examples/unified/security-scanner.ossa.yaml +1 -1
- package/examples/vercel/edge-agent.ossa.json +2 -2
- package/examples/workflows/batch-email-campaign.yaml +1 -1
- package/examples/workflows/content-review-publish.yaml +1 -1
- package/examples/workflows/simple-etl.yaml +1 -1
- package/llms-ctx-full.txt +39 -0
- package/llms-ctx.txt +39 -0
- package/openapi/agent-communication.yaml +1 -1
- package/openapi/agent-crud.yaml +8 -8
- package/openapi/agent-discovery.yaml +2 -2
- package/openapi/agent-identity.yaml +8 -8
- package/openapi/cli-commands.openapi.yaml +231 -0
- package/openapi/core/ossa-core-api.openapi.yaml +1 -1
- package/openapi/core/ossa-registry-api.openapi.yaml +1 -1
- package/openapi/core/ossa-registry.openapi.yaml +1 -1
- package/openapi/core/unified-agent-gateway.openapi.yaml +1 -1
- package/openapi/github-sync.yaml +1 -1
- package/openapi/protocols/sse-streams.yaml +1 -1
- package/openapi/protocols/websocket-events.yaml +2 -2
- package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/critic-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/governor-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/helm-generator.openapi.yaml +1 -1
- package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/judge-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +1 -1
- package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +1 -1
- package/openapi/reference-implementations/worker-agent-api.openapi.yaml +2 -2
- package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +1 -1
- package/package.json +13 -3
- package/spec/extensions/openapi/ossa-openapi-extensions.schema.json +804 -0
- package/spec/v0.3.0/examples/drupal-content-writer.ossa.yaml +1 -1
- package/spec/v0.3.0/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/spec/v0.3.0/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/spec/v0.3.0/runtime-bindings/anthropic.yaml +209 -0
- package/spec/v0.3.1/examples/agent-with-identity.ossa.yaml +68 -0
- package/spec/v0.3.1/examples/drupal-content-writer.ossa.yaml +1 -1
- package/spec/v0.3.1/examples/drupal-moderation-assistant.ossa.yaml +1 -1
- package/spec/v0.3.1/examples/multi-provider-identity.ossa.yaml +236 -0
- package/spec/v0.3.1/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +1 -1
- package/spec/v0.3.1/extensions/agent-identity.yaml +594 -0
- package/spec/v0.3.1/ossa-0.3.1.schema.json +300 -21
- package/spec/v0.3.2/MIGRATION-v0.3.1-to-v0.3.2.md +293 -0
- package/spec/v0.3.2/UNIFIED-SCHEMA.md +120 -0
- package/spec/v0.3.2/access_tiers.yaml +375 -0
- package/spec/v0.3.2/adapters/drupal.md +541 -0
- package/spec/v0.3.2/adapters/symfony.md +659 -0
- package/spec/v0.3.2/agent-test.schema.json +75 -0
- package/spec/v0.3.2/examples/access-tiers/README.md +106 -0
- package/spec/v0.3.2/examples/access-tiers/code-critic.ossa.yaml +119 -0
- package/spec/v0.3.2/examples/access-tiers/compliance-governor.ossa.yaml +234 -0
- package/spec/v0.3.2/examples/access-tiers/deployment-operator.ossa.yaml +201 -0
- package/spec/v0.3.2/examples/access-tiers/doc-generator.ossa.yaml +117 -0
- package/spec/v0.3.2/examples/access-tiers/security-scanner.ossa.yaml +133 -0
- package/spec/v0.3.2/examples/agent-with-identity.ossa.yaml +68 -0
- package/spec/v0.3.2/examples/drupal-content-writer.ossa.yaml +110 -0
- package/spec/v0.3.2/examples/drupal-moderation-assistant.ossa.yaml +96 -0
- package/spec/v0.3.2/examples/multi-provider-identity.ossa.yaml +236 -0
- package/spec/v0.3.2/examples/quick-wins/complete-agent-with-quick-wins.ossa.yaml +144 -0
- package/spec/v0.3.2/examples/tasks/data-transform.ossa.yaml +147 -0
- package/spec/v0.3.2/examples/tasks/publish-content.ossa.yaml +125 -0
- package/spec/v0.3.2/examples/workflows/content-publishing.ossa.yaml +190 -0
- package/spec/v0.3.2/examples/workflows/deployment-pipeline.ossa.yaml +247 -0
- package/spec/v0.3.2/extensions/agent-identity.yaml +594 -0
- package/spec/v0.3.2/extensions/drupal.md +417 -0
- package/spec/v0.3.2/infrastructure/service-ports.yaml +324 -0
- package/spec/{v0.3.1/ossa-0.3.0.schema.json → v0.3.2/ossa-0.3.2.schema.json} +563 -34
- package/spec/v0.3.2/protocols/delegation.yaml +239 -0
- package/spec/v0.3.2/protocols/sse.md +494 -0
- package/spec/v0.3.2/protocols/webrtc.md +600 -0
- package/spec/v0.3.2/protocols/websocket.md +362 -0
- package/spec/v0.3.2/runtime/RUNTIME.md +457 -0
- package/spec/v0.3.2/runtime/memory-model.yaml +871 -0
- package/spec/v0.3.2/runtime/runtime.yaml +926 -0
- package/spec/v0.3.2/schemas/agent-unified.yaml +165 -0
- package/spec/v0.3.2/schemas/capabilities.yaml +102 -0
- package/spec/v0.3.2/schemas/functions.yaml +75 -0
- package/spec/v0.3.2/schemas/messaging/channel.schema.json +245 -0
- package/spec/v0.3.2/schemas/messaging/delivery-receipt.schema.json +192 -0
- package/spec/v0.3.2/schemas/messaging/message.schema.json +205 -0
- package/spec/v0.3.2/schemas/messaging/subscription.schema.json +214 -0
- package/spec/v0.3.2/schemas/runtime.yaml +102 -0
- package/spec/v0.3.2/schemas/taxonomy.yaml +533 -0
- package/spec/v0.3.2/schemas/unified-llm.yaml +91 -0
- package/spec/v0.3.2/taxonomy.yaml +363 -0
- package/examples/common_npm/agent-router.v0.2.2.ossa.yaml +0 -60
- package/examples/drupal/gitlab-ml-recommender.v0.2.2.ossa.yaml +0 -68
- package/examples/kagent/k8s-troubleshooter-v1.v0.2.2.ossa.yaml +0 -106
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# ============================================================================
|
|
2
|
+
# OSSA Task: Content Publishing
|
|
3
|
+
# ============================================================================
|
|
4
|
+
# Deterministic task for publishing content - no LLM decision-making
|
|
5
|
+
# Use kind: Task for pure functions, batch operations, and system integrations
|
|
6
|
+
#
|
|
7
|
+
# @see https://openstandardagents.org/spec/v0.3.2/task
|
|
8
|
+
# ============================================================================
|
|
9
|
+
|
|
10
|
+
apiVersion: ossa/v0.3.2
|
|
11
|
+
kind: Task
|
|
12
|
+
metadata:
|
|
13
|
+
name: publish-content
|
|
14
|
+
version: 1.0.0
|
|
15
|
+
labels:
|
|
16
|
+
domain: content-management
|
|
17
|
+
tier: tier_2_write_limited
|
|
18
|
+
annotations:
|
|
19
|
+
ossa.io/description: "Publish content to production with validation"
|
|
20
|
+
ossa.io/category: "content"
|
|
21
|
+
ossa.io/compliance: "SOC2"
|
|
22
|
+
|
|
23
|
+
spec:
|
|
24
|
+
# Execution configuration
|
|
25
|
+
execution:
|
|
26
|
+
type: transactional # all-or-nothing (rollback on failure)
|
|
27
|
+
runtime: drupal # target runtime
|
|
28
|
+
entrypoint: "Drupal\\ossa_content\\Task\\PublishContentTask::execute"
|
|
29
|
+
timeout_seconds: 60
|
|
30
|
+
|
|
31
|
+
# Required capabilities (bound at runtime)
|
|
32
|
+
capabilities:
|
|
33
|
+
- publish_content
|
|
34
|
+
- invalidate_cache
|
|
35
|
+
- send_notification
|
|
36
|
+
|
|
37
|
+
# Input validation schema
|
|
38
|
+
input:
|
|
39
|
+
type: object
|
|
40
|
+
required:
|
|
41
|
+
- content_id
|
|
42
|
+
- content_type
|
|
43
|
+
properties:
|
|
44
|
+
content_id:
|
|
45
|
+
type: string
|
|
46
|
+
pattern: "^[a-zA-Z0-9_-]+$"
|
|
47
|
+
description: "Unique content identifier"
|
|
48
|
+
content_type:
|
|
49
|
+
type: string
|
|
50
|
+
enum:
|
|
51
|
+
- article
|
|
52
|
+
- page
|
|
53
|
+
- product
|
|
54
|
+
- announcement
|
|
55
|
+
notify_subscribers:
|
|
56
|
+
type: boolean
|
|
57
|
+
default: true
|
|
58
|
+
schedule_at:
|
|
59
|
+
type: string
|
|
60
|
+
format: date-time
|
|
61
|
+
description: "Optional scheduled publish time"
|
|
62
|
+
|
|
63
|
+
# Output schema
|
|
64
|
+
output:
|
|
65
|
+
type: object
|
|
66
|
+
required:
|
|
67
|
+
- success
|
|
68
|
+
- published_url
|
|
69
|
+
properties:
|
|
70
|
+
success:
|
|
71
|
+
type: boolean
|
|
72
|
+
published_url:
|
|
73
|
+
type: string
|
|
74
|
+
format: uri
|
|
75
|
+
published_at:
|
|
76
|
+
type: string
|
|
77
|
+
format: date-time
|
|
78
|
+
cache_invalidated:
|
|
79
|
+
type: boolean
|
|
80
|
+
notifications_sent:
|
|
81
|
+
type: integer
|
|
82
|
+
minimum: 0
|
|
83
|
+
|
|
84
|
+
# Batch processing support
|
|
85
|
+
batch:
|
|
86
|
+
enabled: true
|
|
87
|
+
parallelism: 5
|
|
88
|
+
retry: 3
|
|
89
|
+
backoff_seconds: 10
|
|
90
|
+
|
|
91
|
+
# Error handling
|
|
92
|
+
error_handling:
|
|
93
|
+
on_failure: rollback
|
|
94
|
+
retryable_errors:
|
|
95
|
+
- NETWORK_TIMEOUT
|
|
96
|
+
- DATABASE_LOCK
|
|
97
|
+
- CACHE_UNAVAILABLE
|
|
98
|
+
fatal_errors:
|
|
99
|
+
- CONTENT_NOT_FOUND
|
|
100
|
+
- VALIDATION_ERROR
|
|
101
|
+
- PERMISSION_DENIED
|
|
102
|
+
|
|
103
|
+
# Runtime bindings (how capabilities map to concrete implementations)
|
|
104
|
+
runtime:
|
|
105
|
+
drupal:
|
|
106
|
+
publish_content:
|
|
107
|
+
service: "@content_moderation.moderation_information"
|
|
108
|
+
method: "transitionContent"
|
|
109
|
+
invalidate_cache:
|
|
110
|
+
service: "@cache.render"
|
|
111
|
+
method: "invalidateAll"
|
|
112
|
+
send_notification:
|
|
113
|
+
service: "@ossa_notifications.subscriber_notifier"
|
|
114
|
+
method: "notifySubscribers"
|
|
115
|
+
|
|
116
|
+
symfony:
|
|
117
|
+
publish_content:
|
|
118
|
+
service: "App\\Service\\ContentPublisher"
|
|
119
|
+
method: "publish"
|
|
120
|
+
invalidate_cache:
|
|
121
|
+
service: "symfony.cache.adapter.redis"
|
|
122
|
+
method: "clear"
|
|
123
|
+
send_notification:
|
|
124
|
+
service: "App\\Notification\\SubscriberNotifier"
|
|
125
|
+
method: "send"
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# ============================================================================
|
|
2
|
+
# OSSA Workflow: Content Publishing Pipeline
|
|
3
|
+
# ============================================================================
|
|
4
|
+
# Composes Tasks and Agents into an executable content publishing pipeline
|
|
5
|
+
# Demonstrates step dependencies, conditional execution, and error handling
|
|
6
|
+
#
|
|
7
|
+
# @see https://openstandardagents.org/spec/v0.3.2/workflow
|
|
8
|
+
# ============================================================================
|
|
9
|
+
|
|
10
|
+
apiVersion: ossa/v0.3.2
|
|
11
|
+
kind: Workflow
|
|
12
|
+
metadata:
|
|
13
|
+
name: content-publishing-pipeline
|
|
14
|
+
version: 1.0.0
|
|
15
|
+
labels:
|
|
16
|
+
domain: content-management
|
|
17
|
+
tier: tier_3_write_elevated
|
|
18
|
+
annotations:
|
|
19
|
+
ossa.io/description: "End-to-end content publishing with review and approval"
|
|
20
|
+
ossa.io/category: "publishing"
|
|
21
|
+
ossa.io/compliance: "SOC2,GDPR"
|
|
22
|
+
|
|
23
|
+
spec:
|
|
24
|
+
# Workflow triggers
|
|
25
|
+
triggers:
|
|
26
|
+
- type: webhook
|
|
27
|
+
endpoint: /api/v1/publish
|
|
28
|
+
methods: [POST]
|
|
29
|
+
authentication:
|
|
30
|
+
type: bearer
|
|
31
|
+
scope: publish:content
|
|
32
|
+
- type: schedule
|
|
33
|
+
cron: "0 9 * * 1-5" # Weekdays at 9am
|
|
34
|
+
timezone: "America/New_York"
|
|
35
|
+
- type: event
|
|
36
|
+
source: cms
|
|
37
|
+
event_type: content.ready_for_publish
|
|
38
|
+
|
|
39
|
+
# Input schema
|
|
40
|
+
inputs:
|
|
41
|
+
type: object
|
|
42
|
+
required:
|
|
43
|
+
- content_id
|
|
44
|
+
properties:
|
|
45
|
+
content_id:
|
|
46
|
+
type: string
|
|
47
|
+
priority:
|
|
48
|
+
type: string
|
|
49
|
+
enum: [low, normal, high, critical]
|
|
50
|
+
default: normal
|
|
51
|
+
skip_review:
|
|
52
|
+
type: boolean
|
|
53
|
+
default: false
|
|
54
|
+
notify_channels:
|
|
55
|
+
type: array
|
|
56
|
+
items:
|
|
57
|
+
type: string
|
|
58
|
+
enum: [email, slack, teams, webhook]
|
|
59
|
+
default: [email]
|
|
60
|
+
|
|
61
|
+
# Output schema
|
|
62
|
+
outputs:
|
|
63
|
+
type: object
|
|
64
|
+
properties:
|
|
65
|
+
published_url:
|
|
66
|
+
type: string
|
|
67
|
+
format: uri
|
|
68
|
+
review_comments:
|
|
69
|
+
type: array
|
|
70
|
+
items:
|
|
71
|
+
type: string
|
|
72
|
+
notifications_sent:
|
|
73
|
+
type: integer
|
|
74
|
+
total_duration_ms:
|
|
75
|
+
type: integer
|
|
76
|
+
|
|
77
|
+
# Workflow steps
|
|
78
|
+
steps:
|
|
79
|
+
# Step 1: Validate content (Task - deterministic)
|
|
80
|
+
- id: validate
|
|
81
|
+
name: "Validate Content"
|
|
82
|
+
ref: tasks/validate-content
|
|
83
|
+
kind: Task
|
|
84
|
+
input:
|
|
85
|
+
content_id: "${{ inputs.content_id }}"
|
|
86
|
+
strict: true
|
|
87
|
+
on_failure: halt
|
|
88
|
+
|
|
89
|
+
# Step 2: AI Review (Agent - agentic, conditional)
|
|
90
|
+
- id: review
|
|
91
|
+
name: "AI Content Review"
|
|
92
|
+
ref: agents/content-reviewer
|
|
93
|
+
kind: Agent
|
|
94
|
+
condition: "${{ !inputs.skip_review }}"
|
|
95
|
+
input:
|
|
96
|
+
content: "${{ steps.validate.output.content }}"
|
|
97
|
+
guidelines: "brand-voice,accessibility,seo"
|
|
98
|
+
timeout_seconds: 120
|
|
99
|
+
on_failure: continue
|
|
100
|
+
output_mapping:
|
|
101
|
+
review_score: "${{ output.score }}"
|
|
102
|
+
suggestions: "${{ output.suggestions }}"
|
|
103
|
+
|
|
104
|
+
# Step 3: Human approval gate (conditional on review score)
|
|
105
|
+
- id: approval
|
|
106
|
+
name: "Human Approval"
|
|
107
|
+
type: approval
|
|
108
|
+
condition: "${{ steps.review.output.review_score < 0.8 }}"
|
|
109
|
+
approvers:
|
|
110
|
+
- role: content-manager
|
|
111
|
+
- role: editor-in-chief
|
|
112
|
+
require: 1
|
|
113
|
+
timeout_hours: 24
|
|
114
|
+
escalation:
|
|
115
|
+
after_hours: 4
|
|
116
|
+
to: [senior-editor]
|
|
117
|
+
|
|
118
|
+
# Step 4: Publish content (Task - transactional)
|
|
119
|
+
- id: publish
|
|
120
|
+
name: "Publish Content"
|
|
121
|
+
ref: tasks/publish-content
|
|
122
|
+
kind: Task
|
|
123
|
+
depends_on: [validate, review]
|
|
124
|
+
input:
|
|
125
|
+
content_id: "${{ inputs.content_id }}"
|
|
126
|
+
content_type: "${{ steps.validate.output.content_type }}"
|
|
127
|
+
notify_subscribers: true
|
|
128
|
+
on_failure: rollback
|
|
129
|
+
|
|
130
|
+
# Step 5: Send notifications (Task - batch)
|
|
131
|
+
- id: notify
|
|
132
|
+
name: "Send Notifications"
|
|
133
|
+
ref: tasks/send-notifications
|
|
134
|
+
kind: Task
|
|
135
|
+
depends_on: [publish]
|
|
136
|
+
input:
|
|
137
|
+
channels: "${{ inputs.notify_channels }}"
|
|
138
|
+
message:
|
|
139
|
+
title: "New content published"
|
|
140
|
+
url: "${{ steps.publish.output.published_url }}"
|
|
141
|
+
priority: "${{ inputs.priority }}"
|
|
142
|
+
on_failure: continue
|
|
143
|
+
|
|
144
|
+
# Step 6: Analytics tracking (parallel, fire-and-forget)
|
|
145
|
+
- id: analytics
|
|
146
|
+
name: "Track Analytics"
|
|
147
|
+
ref: tasks/track-analytics
|
|
148
|
+
kind: Task
|
|
149
|
+
depends_on: [publish]
|
|
150
|
+
async: true
|
|
151
|
+
input:
|
|
152
|
+
event: content_published
|
|
153
|
+
properties:
|
|
154
|
+
content_id: "${{ inputs.content_id }}"
|
|
155
|
+
published_at: "${{ steps.publish.output.published_at }}"
|
|
156
|
+
|
|
157
|
+
# Shared workflow context
|
|
158
|
+
context:
|
|
159
|
+
variables:
|
|
160
|
+
environment: "${{ env.ENVIRONMENT }}"
|
|
161
|
+
trace_id: "${{ uuid() }}"
|
|
162
|
+
secrets:
|
|
163
|
+
- name: CMS_API_KEY
|
|
164
|
+
ref: vault://secret/cms/api-key
|
|
165
|
+
- name: NOTIFICATION_TOKEN
|
|
166
|
+
ref: vault://secret/notifications/token
|
|
167
|
+
|
|
168
|
+
# Concurrency control
|
|
169
|
+
concurrency:
|
|
170
|
+
group: "publish-${{ inputs.content_id }}"
|
|
171
|
+
cancel_in_progress: false
|
|
172
|
+
|
|
173
|
+
# Error handling
|
|
174
|
+
error_handling:
|
|
175
|
+
on_failure: compensate
|
|
176
|
+
compensation_steps:
|
|
177
|
+
- id: rollback-publish
|
|
178
|
+
name: "Rollback Publication"
|
|
179
|
+
ref: tasks/unpublish-content
|
|
180
|
+
kind: Task
|
|
181
|
+
input:
|
|
182
|
+
content_id: "${{ inputs.content_id }}"
|
|
183
|
+
- id: notify-failure
|
|
184
|
+
name: "Notify Team"
|
|
185
|
+
ref: tasks/send-alert
|
|
186
|
+
kind: Task
|
|
187
|
+
input:
|
|
188
|
+
channel: ops-alerts
|
|
189
|
+
message: "Publishing workflow failed for ${{ inputs.content_id }}"
|
|
190
|
+
severity: high
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# ============================================================================
|
|
2
|
+
# OSSA Workflow: Deployment Pipeline
|
|
3
|
+
# ============================================================================
|
|
4
|
+
# Multi-stage deployment workflow with rollback capabilities
|
|
5
|
+
# Demonstrates environment promotion, canary deployments, and approval gates
|
|
6
|
+
#
|
|
7
|
+
# @see https://openstandardagents.org/spec/v0.3.2/workflow
|
|
8
|
+
# ============================================================================
|
|
9
|
+
|
|
10
|
+
apiVersion: ossa/v0.3.2
|
|
11
|
+
kind: Workflow
|
|
12
|
+
metadata:
|
|
13
|
+
name: deployment-pipeline
|
|
14
|
+
version: 1.0.0
|
|
15
|
+
labels:
|
|
16
|
+
domain: infrastructure
|
|
17
|
+
tier: tier_3_write_elevated
|
|
18
|
+
annotations:
|
|
19
|
+
ossa.io/description: "Production deployment with staged rollout and monitoring"
|
|
20
|
+
ossa.io/category: "deployment"
|
|
21
|
+
ossa.io/compliance: "SOC2,ISO27001"
|
|
22
|
+
|
|
23
|
+
spec:
|
|
24
|
+
triggers:
|
|
25
|
+
- type: event
|
|
26
|
+
source: ci
|
|
27
|
+
event_type: build.completed
|
|
28
|
+
filter:
|
|
29
|
+
branch: main
|
|
30
|
+
status: success
|
|
31
|
+
- type: webhook
|
|
32
|
+
endpoint: /api/v1/deploy
|
|
33
|
+
methods: [POST]
|
|
34
|
+
authentication:
|
|
35
|
+
type: bearer
|
|
36
|
+
scope: deploy:production
|
|
37
|
+
|
|
38
|
+
inputs:
|
|
39
|
+
type: object
|
|
40
|
+
required:
|
|
41
|
+
- artifact_id
|
|
42
|
+
- version
|
|
43
|
+
properties:
|
|
44
|
+
artifact_id:
|
|
45
|
+
type: string
|
|
46
|
+
description: "Container image or artifact identifier"
|
|
47
|
+
version:
|
|
48
|
+
type: string
|
|
49
|
+
pattern: "^v?[0-9]+\\.[0-9]+\\.[0-9]+"
|
|
50
|
+
environment:
|
|
51
|
+
type: string
|
|
52
|
+
enum: [staging, production]
|
|
53
|
+
default: staging
|
|
54
|
+
canary_percentage:
|
|
55
|
+
type: integer
|
|
56
|
+
minimum: 0
|
|
57
|
+
maximum: 100
|
|
58
|
+
default: 10
|
|
59
|
+
rollback_on_failure:
|
|
60
|
+
type: boolean
|
|
61
|
+
default: true
|
|
62
|
+
|
|
63
|
+
outputs:
|
|
64
|
+
type: object
|
|
65
|
+
properties:
|
|
66
|
+
deployment_id:
|
|
67
|
+
type: string
|
|
68
|
+
status:
|
|
69
|
+
type: string
|
|
70
|
+
enum: [success, partial, failed, rolled_back]
|
|
71
|
+
endpoints:
|
|
72
|
+
type: array
|
|
73
|
+
items:
|
|
74
|
+
type: string
|
|
75
|
+
format: uri
|
|
76
|
+
metrics:
|
|
77
|
+
type: object
|
|
78
|
+
properties:
|
|
79
|
+
duration_ms:
|
|
80
|
+
type: integer
|
|
81
|
+
pods_updated:
|
|
82
|
+
type: integer
|
|
83
|
+
health_check_passed:
|
|
84
|
+
type: boolean
|
|
85
|
+
|
|
86
|
+
steps:
|
|
87
|
+
# Pre-deployment validation
|
|
88
|
+
- id: validate-artifact
|
|
89
|
+
name: "Validate Artifact"
|
|
90
|
+
ref: tasks/validate-artifact
|
|
91
|
+
kind: Task
|
|
92
|
+
input:
|
|
93
|
+
artifact_id: "${{ inputs.artifact_id }}"
|
|
94
|
+
version: "${{ inputs.version }}"
|
|
95
|
+
checks:
|
|
96
|
+
- signature
|
|
97
|
+
- vulnerability-scan
|
|
98
|
+
- compliance
|
|
99
|
+
|
|
100
|
+
# Staging deployment (always runs first)
|
|
101
|
+
- id: deploy-staging
|
|
102
|
+
name: "Deploy to Staging"
|
|
103
|
+
ref: tasks/deploy-kubernetes
|
|
104
|
+
kind: Task
|
|
105
|
+
depends_on: [validate-artifact]
|
|
106
|
+
condition: "${{ inputs.environment == 'staging' || inputs.environment == 'production' }}"
|
|
107
|
+
input:
|
|
108
|
+
cluster: staging-cluster
|
|
109
|
+
namespace: "${{ env.APP_NAMESPACE }}"
|
|
110
|
+
image: "${{ inputs.artifact_id }}:${{ inputs.version }}"
|
|
111
|
+
replicas: 2
|
|
112
|
+
timeout_seconds: 300
|
|
113
|
+
|
|
114
|
+
# Staging health check
|
|
115
|
+
- id: health-staging
|
|
116
|
+
name: "Staging Health Check"
|
|
117
|
+
ref: tasks/health-check
|
|
118
|
+
kind: Task
|
|
119
|
+
depends_on: [deploy-staging]
|
|
120
|
+
input:
|
|
121
|
+
endpoints:
|
|
122
|
+
- "${{ steps.deploy-staging.output.service_url }}/health"
|
|
123
|
+
- "${{ steps.deploy-staging.output.service_url }}/ready"
|
|
124
|
+
timeout_seconds: 60
|
|
125
|
+
retry: 5
|
|
126
|
+
on_failure: halt
|
|
127
|
+
|
|
128
|
+
# AI-powered smoke test (Agent)
|
|
129
|
+
- id: smoke-test
|
|
130
|
+
name: "AI Smoke Test"
|
|
131
|
+
ref: agents/test-runner
|
|
132
|
+
kind: Agent
|
|
133
|
+
depends_on: [health-staging]
|
|
134
|
+
input:
|
|
135
|
+
target_url: "${{ steps.deploy-staging.output.service_url }}"
|
|
136
|
+
test_suite: smoke
|
|
137
|
+
generate_report: true
|
|
138
|
+
timeout_seconds: 180
|
|
139
|
+
|
|
140
|
+
# Production approval gate
|
|
141
|
+
- id: prod-approval
|
|
142
|
+
name: "Production Approval"
|
|
143
|
+
type: approval
|
|
144
|
+
condition: "${{ inputs.environment == 'production' }}"
|
|
145
|
+
depends_on: [smoke-test]
|
|
146
|
+
approvers:
|
|
147
|
+
- role: sre-lead
|
|
148
|
+
- role: release-manager
|
|
149
|
+
require: 2
|
|
150
|
+
timeout_hours: 8
|
|
151
|
+
metadata:
|
|
152
|
+
staging_results: "${{ steps.smoke-test.output.report_url }}"
|
|
153
|
+
version: "${{ inputs.version }}"
|
|
154
|
+
|
|
155
|
+
# Canary deployment (production only)
|
|
156
|
+
- id: deploy-canary
|
|
157
|
+
name: "Canary Deployment"
|
|
158
|
+
ref: tasks/deploy-kubernetes
|
|
159
|
+
kind: Task
|
|
160
|
+
condition: "${{ inputs.environment == 'production' }}"
|
|
161
|
+
depends_on: [prod-approval]
|
|
162
|
+
input:
|
|
163
|
+
cluster: production-cluster
|
|
164
|
+
namespace: "${{ env.APP_NAMESPACE }}"
|
|
165
|
+
image: "${{ inputs.artifact_id }}:${{ inputs.version }}"
|
|
166
|
+
strategy: canary
|
|
167
|
+
canary_weight: "${{ inputs.canary_percentage }}"
|
|
168
|
+
timeout_seconds: 300
|
|
169
|
+
|
|
170
|
+
# Canary monitoring (Agent - observes metrics)
|
|
171
|
+
- id: monitor-canary
|
|
172
|
+
name: "Monitor Canary"
|
|
173
|
+
ref: agents/deployment-monitor
|
|
174
|
+
kind: Agent
|
|
175
|
+
condition: "${{ inputs.environment == 'production' }}"
|
|
176
|
+
depends_on: [deploy-canary]
|
|
177
|
+
input:
|
|
178
|
+
deployment_id: "${{ steps.deploy-canary.output.deployment_id }}"
|
|
179
|
+
duration_minutes: 15
|
|
180
|
+
thresholds:
|
|
181
|
+
error_rate: 0.01
|
|
182
|
+
latency_p99_ms: 500
|
|
183
|
+
success_rate: 0.99
|
|
184
|
+
timeout_seconds: 1200
|
|
185
|
+
|
|
186
|
+
# Full production rollout
|
|
187
|
+
- id: deploy-full
|
|
188
|
+
name: "Full Production Rollout"
|
|
189
|
+
ref: tasks/deploy-kubernetes
|
|
190
|
+
kind: Task
|
|
191
|
+
condition: "${{ inputs.environment == 'production' && steps.monitor-canary.output.healthy }}"
|
|
192
|
+
depends_on: [monitor-canary]
|
|
193
|
+
input:
|
|
194
|
+
cluster: production-cluster
|
|
195
|
+
namespace: "${{ env.APP_NAMESPACE }}"
|
|
196
|
+
image: "${{ inputs.artifact_id }}:${{ inputs.version }}"
|
|
197
|
+
strategy: rolling
|
|
198
|
+
max_unavailable: 1
|
|
199
|
+
max_surge: 2
|
|
200
|
+
|
|
201
|
+
# Post-deployment notification
|
|
202
|
+
- id: notify-success
|
|
203
|
+
name: "Notify Success"
|
|
204
|
+
ref: tasks/send-notifications
|
|
205
|
+
kind: Task
|
|
206
|
+
depends_on: [deploy-full]
|
|
207
|
+
input:
|
|
208
|
+
channels: [slack, email]
|
|
209
|
+
template: deployment-success
|
|
210
|
+
data:
|
|
211
|
+
version: "${{ inputs.version }}"
|
|
212
|
+
environment: "${{ inputs.environment }}"
|
|
213
|
+
endpoints: "${{ steps.deploy-full.output.endpoints }}"
|
|
214
|
+
|
|
215
|
+
context:
|
|
216
|
+
variables:
|
|
217
|
+
trace_id: "${{ uuid() }}"
|
|
218
|
+
secrets:
|
|
219
|
+
- name: KUBECONFIG
|
|
220
|
+
ref: vault://secret/k8s/kubeconfig
|
|
221
|
+
- name: REGISTRY_TOKEN
|
|
222
|
+
ref: vault://secret/registry/token
|
|
223
|
+
|
|
224
|
+
concurrency:
|
|
225
|
+
group: "deploy-${{ inputs.environment }}"
|
|
226
|
+
cancel_in_progress: false
|
|
227
|
+
|
|
228
|
+
error_handling:
|
|
229
|
+
on_failure: compensate
|
|
230
|
+
compensation_steps:
|
|
231
|
+
- id: rollback
|
|
232
|
+
name: "Rollback Deployment"
|
|
233
|
+
ref: tasks/rollback-deployment
|
|
234
|
+
kind: Task
|
|
235
|
+
condition: "${{ inputs.rollback_on_failure }}"
|
|
236
|
+
input:
|
|
237
|
+
cluster: "${{ context.last_cluster }}"
|
|
238
|
+
deployment_id: "${{ context.last_deployment_id }}"
|
|
239
|
+
target_version: "${{ context.previous_version }}"
|
|
240
|
+
- id: notify-failure
|
|
241
|
+
name: "Alert On-Call"
|
|
242
|
+
ref: tasks/send-alert
|
|
243
|
+
kind: Task
|
|
244
|
+
input:
|
|
245
|
+
channel: pagerduty
|
|
246
|
+
severity: critical
|
|
247
|
+
message: "Deployment failed for version ${{ inputs.version }}"
|