@bluefly/openstandardagents 0.4.9 → 0.5.1
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/.version.json +3 -3
- package/CHANGELOG.md +35 -4
- package/README.md +77 -62
- package/dist/.version.json +3 -3
- package/dist/adapters/a2a/a2a-protocol.js +4 -2
- package/dist/adapters/a2a/a2a-tool.js +4 -2
- package/dist/adapters/a2a/mcp-integration.d.ts +2 -1
- package/dist/adapters/a2a/mcp-integration.js +6 -3
- package/dist/adapters/browser/browser-exporter.d.ts +26 -0
- package/dist/adapters/browser/browser-exporter.js +73 -0
- package/dist/adapters/browser/browser-runner.d.ts +23 -0
- package/dist/adapters/browser/browser-runner.js +46 -0
- package/dist/adapters/browser/index.d.ts +9 -0
- package/dist/adapters/browser/index.js +9 -0
- package/dist/adapters/claude-code/adapter.js +2 -2
- package/dist/adapters/docker/generators.js +19 -19
- package/dist/adapters/docker/index.d.ts +2 -0
- package/dist/adapters/docker/index.js +2 -0
- package/dist/adapters/docker/openclaw-bridge.d.ts +57 -0
- package/dist/adapters/docker/openclaw-bridge.js +173 -0
- package/dist/adapters/drupal/generator.js +76 -76
- package/dist/adapters/drupal/index.d.ts +1 -0
- package/dist/adapters/drupal/index.js +2 -0
- package/dist/adapters/drupal/twig-renderer.d.ts +23 -0
- package/dist/adapters/drupal/twig-renderer.js +99 -0
- package/dist/adapters/gitlab/agent-generator.js +2 -1
- package/dist/adapters/openai-agents/adapter.js +2 -2
- package/dist/api/index.js +2 -1
- package/dist/api/routes/mcp.router.js +3 -1
- package/dist/api/routes/wizard.router.js +3 -1
- package/dist/cli/commands/agent/discover-type.command.js +1 -1
- package/dist/cli/commands/agent-card.command.js +37 -10
- package/dist/cli/commands/agents-sync.command.d.ts +2 -2
- package/dist/cli/commands/agents-sync.command.js +27 -17
- package/dist/cli/commands/catalog/config.js +1 -1
- package/dist/cli/commands/catalog/validate.command.js +2 -2
- package/dist/cli/commands/config.command.js +2 -2
- package/dist/cli/commands/daemon.command.js +32 -8
- package/dist/cli/commands/discover.d.ts +1 -1
- package/dist/cli/commands/discover.js +16 -8
- package/dist/cli/commands/economics.command.d.ts +9 -0
- package/dist/cli/commands/economics.command.js +113 -0
- package/dist/cli/commands/export.command.js +6 -3
- package/dist/cli/commands/mcp.command.js +3 -1
- package/dist/cli/commands/memory.command.d.ts +18 -0
- package/dist/cli/commands/memory.command.js +168 -0
- package/dist/cli/commands/publish.command.js +7 -4
- package/dist/cli/commands/serve-builder-routes.js +1 -1
- package/dist/cli/commands/usie-skills.command.d.ts +24 -0
- package/dist/cli/commands/usie-skills.command.js +297 -0
- package/dist/cli/commands/validate.command.js +8 -1
- package/dist/cli/commands/verify.d.ts +3 -3
- package/dist/cli/commands/verify.js +12 -6
- package/dist/cli/commands/workspace.command.d.ts +1 -0
- package/dist/cli/commands/workspace.command.js +28 -4
- package/dist/cli/index.js +12 -0
- package/dist/cli/schema-driven/schema-loader.js +5 -5
- package/dist/cli/workspace-validate.d.ts +23 -0
- package/dist/cli/workspace-validate.js +117 -0
- package/dist/data/platform-matrix.js +1 -4
- package/dist/generated/types.d.ts +97 -97
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/mcp-server/index.js +658 -982
- package/dist/mesh/discovery-gkg.d.ts +26 -0
- package/dist/mesh/discovery-gkg.js +92 -0
- package/dist/messenger/Handler/AgentBatchHandler.js +3 -2
- package/dist/messenger/Handler/AgentExecutionHandler.js +6 -1
- package/dist/package.json +43 -14
- package/dist/sdks/shared/types.d.ts +1 -1
- package/dist/services/agent-card-generator.js +6 -2
- package/dist/services/daemon/audit-log.service.js +3 -1
- package/dist/services/daemon/execution.service.js +8 -4
- package/dist/services/daemon/fs-watcher.service.js +6 -7
- package/dist/services/daemon/pairing.service.js +2 -1
- package/dist/services/daemon/skill-aggregator.service.js +105 -21
- package/dist/services/daemon/sse-endpoints.js +1 -1
- package/dist/services/daemon/ws-server.js +10 -3
- package/dist/services/export/langchain/langchain-exporter.js +2 -2
- package/dist/services/export/langchain/memory-generator.js +2 -2
- package/dist/services/export/testing/test-generator.js +1 -1
- package/dist/services/governance/cedar-provider.js +12 -8
- package/dist/services/governance/cedar-validator.service.js +1 -1
- package/dist/services/mcp/bridge.service.js +40 -9
- package/dist/services/openapi-extensions-validation.d.ts +20 -0
- package/dist/services/openapi-extensions-validation.js +193 -0
- package/dist/services/release-automation/merge-request.service.d.ts +4 -4
- package/dist/services/release-automation/release-buttons.js +3 -3
- package/dist/services/release-automation/schemas/release.schema.d.ts +3 -3
- package/dist/services/runtime/openai.adapter.d.ts +46 -13
- package/dist/services/runtime/openai.adapter.js +169 -131
- package/dist/services/skill-registry.service.d.ts +1 -1
- package/dist/services/skills-pipeline/skills-research.service.js +47 -7
- package/dist/services/taxonomy-service.d.ts +3 -3
- package/dist/services/trust/trust.service.js +6 -4
- package/dist/services/validation-zod.service.js +3 -22
- package/dist/services/validators/index.d.ts +1 -0
- package/dist/services/validators/index.js +1 -0
- package/dist/services/validators/registry.d.ts +21 -0
- package/dist/services/validators/registry.js +42 -0
- package/dist/skills/test-skill/package.json +1 -1
- package/dist/spec/extensions/cognition.schema.json +87 -0
- package/dist/spec/extensions/role-manifest.md +188 -0
- package/dist/spec/layer4-economics/duadp-examples.json +44 -0
- package/dist/spec/v0.4/agent.schema.json +14 -0
- package/dist/spec/v0.4/extensions/mcp/README.md +1 -1
- package/dist/spec/v0.5/agent-builder-openapi.yaml +230 -0
- package/dist/spec/v0.5/agent.schema.json +34 -2
- package/dist/spec/v0.5/extensions/cognition/cognition.schema.json +78 -1
- package/dist/spec/v0.5/extensions/economics/context-pack.schema.json +91 -0
- package/dist/spec/v0.5/extensions/economics/execution-profile.schema.json +148 -0
- package/dist/spec/v0.5/extensions/economics/failure-semantics.schema.json +32 -0
- package/dist/spec/v0.5/extensions/economics/replay-packet.schema.json +120 -0
- package/dist/spec/v0.5/memory-hierarchy.yaml +120 -0
- package/dist/spec/v0.5/role.schema.json +268 -0
- package/dist/spec/v1/agent-card.schema.json +254 -0
- package/dist/types/cognition.zod.d.ts +312 -0
- package/dist/types/cognition.zod.js +223 -0
- package/dist/types/identity.zod.d.ts +5 -5
- package/dist/types/index.d.ts +54 -6
- package/dist/types/index.js +6 -2
- package/dist/types/personality.zod.d.ts +3 -3
- package/dist/types/role.d.ts +126 -0
- package/dist/types/role.js +38 -0
- package/dist/utils/http-client.d.ts +22 -0
- package/dist/utils/http-client.js +51 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/proxy-resolver.d.ts +36 -0
- package/dist/utils/proxy-resolver.js +59 -0
- package/dist/utils/user-agent.d.ts +11 -0
- package/dist/utils/user-agent.js +17 -0
- package/dist/validation/validator.js +1 -1
- package/dist/validation/version-compliance.js +1 -1
- package/examples/agents/01-customer-support-bot/agent.ossa.yaml +24 -31
- package/examples/agents/05-sales-assistant/agent.ossa.yaml +35 -23
- package/examples/agents/07-research-assistant/agent.ossa.yaml +27 -21
- package/examples/agents/10-meeting-assistant/agent.ossa.yaml +27 -35
- package/examples/agents/security-audit-agent.ossa.yaml +234 -0
- package/examples/agentscope/react-assistant/README.md +1 -1
- package/examples/agentscope/react-assistant/agent.ossa.yaml +37 -33
- package/examples/drupal/content-moderator.ossa.yaml +2 -2
- package/examples/drupal/drupal-contributor-agent/.eslintrc.json +58 -0
- package/examples/drupal/drupal-contributor-agent/.prettierrc.json +10 -0
- package/examples/drupal/drupal-contributor-agent/package.json +55 -0
- package/examples/drupal/drupal-contributor-agent/src/core/index.ts +10 -0
- package/examples/drupal/drupal-contributor-agent/src/index.ts +17 -0
- package/examples/drupal/drupal-contributor-agent/src/types/index.ts +180 -0
- package/examples/drupal/drupal-contributor-agent/tsconfig.json +36 -0
- package/examples/drupal/drupal-contributor.ossa.yaml +247 -0
- package/examples/export/langchain/production-agent-with-memory/README.md +1 -1
- package/examples/export/langchain/production-agent-with-memory/agent.ossa.yaml +13 -23
- package/examples/export/langchain/production-agent-with-streaming/agent.ossa.yaml +1 -15
- package/examples/export/langchain/production-agent-with-tools/agent.ossa.yaml +28 -29
- package/examples/getting-started/01-minimal-agent.ossa.yaml +1 -1
- 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 +1 -1
- package/examples/getting-started/05-workflow-composition.ossa.yaml +1 -1
- package/examples/getting-started/README.md +3 -3
- package/examples/getting-started/hello-world-complete.ossa.yaml +1 -1
- package/examples/gitlab-agents/gitlab-ci-agent.ossa.yaml +221 -0
- package/examples/hierarchical-agent.ossa.yaml +10 -53
- package/examples/kagent/ossa-kagent-anthropic.ossa.yaml +2 -25
- package/examples/kagent/ossa-kagent-mcp-tools.ossa.yaml +2 -30
- package/examples/kagent/ossa-kagent-multi-tool.ossa.yaml +2 -18
- package/examples/kagent/ossa-kagent-poc.ossa.yaml +2 -16
- package/examples/pipeline-agent.ossa.yaml +3 -3
- package/examples/platform-specific/claude-code-subagent.yaml +1 -1
- package/examples/platform-specific/cursor-coding-agent.yaml +1 -1
- package/examples/platform-specific/warp-terminal-agent.yaml +1 -1
- package/examples/production-ready/01-customer-support-bot/agent.ossa.yaml +24 -31
- package/examples/production-ready/05-sales-assistant/agent.ossa.yaml +35 -23
- package/examples/production-ready/07-research-assistant/agent.ossa.yaml +27 -19
- package/examples/production-ready/10-meeting-assistant/agent.ossa.yaml +27 -35
- package/examples/roles/drupal-developer.role.yaml +37 -0
- package/examples/roles/platform-operator.role.yaml +28 -0
- package/examples/roles/security-auditor.role.yaml +27 -0
- package/examples/swarm-agent.ossa.yaml +13 -51
- package/examples/team-agent.ossa.yaml +12 -61
- package/examples/team-lead-teammate.ossa.yaml +12 -17
- package/openapi/agent-cognition-sessions.yaml +580 -0
- package/openapi/agent-communication.yaml +260 -212
- package/openapi/agent-crud.yaml +237 -207
- package/openapi/agent-discovery.yaml +119 -81
- package/openapi/agent-identity.yaml +219 -187
- package/openapi/agent-taxonomy.yaml +95 -38
- package/openapi/agents-md-service.yaml +103 -30
- package/openapi/cli/openapi.yaml +147 -40
- package/openapi/core/ossa-core-api.openapi.yaml +327 -271
- package/openapi/core/ossa-registry-api.openapi.yaml +299 -236
- package/openapi/core/ossa-registry.openapi.yaml +299 -159
- package/openapi/core/unified-agent-gateway.openapi.yaml +234 -170
- package/openapi/daemon-api.openapi.yaml +323 -181
- package/openapi/dev-cli/openapi.yaml +137 -113
- package/openapi/github-sync.yaml +62 -19
- package/openapi/marketplace-plugin.openapi.yaml +539 -466
- package/openapi/ossa-api.openapi.yaml +354 -213
- package/openapi/ossa-cli-enhancements.openapi.yaml +109 -90
- package/openapi/ossa-cli.yaml +260 -184
- package/openapi/protocols/sse-streams.yaml +66 -74
- package/openapi/protocols/websocket-events.yaml +61 -54
- package/openapi/reference-implementations/aiflow-bridge-api.openapi.yaml +37 -20
- package/openapi/reference-implementations/compliance-agent-api.openapi.yaml +35 -23
- package/openapi/reference-implementations/crewai-agent-api.openapi.yaml +29 -18
- package/openapi/reference-implementations/critic-agent-api.openapi.yaml +45 -19
- package/openapi/reference-implementations/document-analyzer-api.openapi.yaml +30 -24
- package/openapi/reference-implementations/drupal-agent-api.openapi.yaml +101 -50
- package/openapi/reference-implementations/getting-started-hello-world-api.openapi.yaml +33 -22
- package/openapi/reference-implementations/gitlab-ml-recommender-api.openapi.yaml +20 -16
- package/openapi/reference-implementations/governor-agent-api.openapi.yaml +41 -23
- package/openapi/reference-implementations/helm-generator.openapi.yaml +88 -46
- package/openapi/reference-implementations/integrator-agent-api.openapi.yaml +30 -20
- package/openapi/reference-implementations/judge-agent-api.openapi.yaml +22 -16
- package/openapi/reference-implementations/k8s-troubleshooter-api.openapi.yaml +32 -18
- package/openapi/reference-implementations/langchain-agent-api.openapi.yaml +32 -21
- package/openapi/reference-implementations/monitor-agent-api.openapi.yaml +34 -21
- package/openapi/reference-implementations/orchestrator-agent-api.openapi.yaml +49 -27
- package/openapi/reference-implementations/quickstart-support-agent-api.openapi.yaml +27 -19
- package/openapi/reference-implementations/self-evolving-ecosystem.openapi.yaml +427 -293
- package/openapi/reference-implementations/worker-agent-api.openapi.yaml +34 -23
- package/openapi/reference-implementations/workflow-orchestrator-api.openapi.yaml +35 -21
- package/openapi/release-automation.openapi.yaml +48 -14
- package/openapi/schemas/common/agent.yaml +30 -29
- package/openapi/schemas/common/economics.yaml +98 -0
- package/openapi/schemas/common/errors.yaml +13 -3
- package/openapi/schemas/common/metadata.yaml +22 -7
- package/openapi/schemas/common/pagination.yaml +18 -6
- package/openapi/schemas/common/security.yaml +13 -5
- package/openapi/schemas/index.yaml +49 -42
- package/openapi/uadp-asyncapi.yaml +5 -3
- package/openapi/uadp-openapi.yaml +243 -165
- package/openapi/version-management.openapi.yaml +142 -135
- package/package.json +43 -14
- package/spec/extensions/cognition.schema.json +87 -0
- package/spec/extensions/role-manifest.md +188 -0
- package/spec/layer4-economics/duadp-examples.json +44 -0
- package/spec/v0.4/agent.schema.json +14 -0
- package/spec/v0.4/extensions/mcp/README.md +1 -1
- package/spec/v0.5/agent-builder-openapi.yaml +230 -0
- package/spec/v0.5/agent.schema.json +34 -2
- package/spec/v0.5/extensions/cognition/cognition.schema.json +78 -1
- package/spec/v0.5/extensions/economics/context-pack.schema.json +91 -0
- package/spec/v0.5/extensions/economics/execution-profile.schema.json +148 -0
- package/spec/v0.5/extensions/economics/failure-semantics.schema.json +32 -0
- package/spec/v0.5/extensions/economics/replay-packet.schema.json +120 -0
- package/spec/v0.5/memory-hierarchy.yaml +120 -0
- package/spec/v0.5/role.schema.json +268 -0
- package/spec/v1/agent-card.schema.json +254 -0
- package/dist/adapters/a2a/__tests__/mcp-integration.spec.d.ts +0 -5
- package/dist/adapters/a2a/__tests__/mcp-integration.spec.js +0 -268
- package/dist/adapters/a2a/__tests__/mcp-transport.spec.d.ts +0 -5
- package/dist/adapters/a2a/__tests__/mcp-transport.spec.js +0 -203
- package/dist/mcp-server/__tests__/mcp-server.spec.d.ts +0 -8
- package/dist/mcp-server/__tests__/mcp-server.spec.js +0 -557
- package/dist/validation/__tests__/error-codes.test.d.ts +0 -5
- package/dist/validation/__tests__/error-codes.test.js +0 -252
- package/dist/version-management/core/version-manager.test.d.ts +0 -2
- package/dist/version-management/core/version-manager.test.js +0 -210
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
openapi: 3.1.0
|
|
2
|
+
info:
|
|
3
|
+
title: OSSA Agent Builder API
|
|
4
|
+
version: 0.5.1
|
|
5
|
+
description: |
|
|
6
|
+
Canonical builder API for creating and deploying OSSA agents.
|
|
7
|
+
Owned by ossa-studio (studio.blueflyagents.com) per OWNERSHIP.md.
|
|
8
|
+
Triggers ossa-deploy pipeline for build/score/publish lifecycle.
|
|
9
|
+
contact:
|
|
10
|
+
name: BlueFly.io
|
|
11
|
+
url: https://bluefly.io
|
|
12
|
+
license:
|
|
13
|
+
name: MIT
|
|
14
|
+
servers:
|
|
15
|
+
- url: http://localhost:3000
|
|
16
|
+
description: Local development
|
|
17
|
+
- url: https://studio.blueflyagents.com
|
|
18
|
+
description: Production (moved from agents.blueflyagents.com/wizard)
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/api/agent-builder/generate:
|
|
22
|
+
post:
|
|
23
|
+
summary: Generate an OSSA agent manifest
|
|
24
|
+
operationId: generateAgent
|
|
25
|
+
requestBody:
|
|
26
|
+
required: true
|
|
27
|
+
content:
|
|
28
|
+
application/json:
|
|
29
|
+
schema:
|
|
30
|
+
$ref: '#/components/schemas/AgentBuilderRequest'
|
|
31
|
+
responses:
|
|
32
|
+
'200':
|
|
33
|
+
description: Manifest generated successfully
|
|
34
|
+
content:
|
|
35
|
+
application/json:
|
|
36
|
+
schema:
|
|
37
|
+
$ref: '#/components/schemas/AgentBuilderResult'
|
|
38
|
+
'400':
|
|
39
|
+
description: Invalid request — version gate rejects manifests < ossa/v0.5.0
|
|
40
|
+
'500':
|
|
41
|
+
description: Build pipeline error
|
|
42
|
+
|
|
43
|
+
/api/agent-builder/deploy:
|
|
44
|
+
post:
|
|
45
|
+
summary: Deploy agent via ossa-deploy pipeline
|
|
46
|
+
operationId: deployAgent
|
|
47
|
+
requestBody:
|
|
48
|
+
required: true
|
|
49
|
+
content:
|
|
50
|
+
application/json:
|
|
51
|
+
schema:
|
|
52
|
+
$ref: '#/components/schemas/DeployRequest'
|
|
53
|
+
responses:
|
|
54
|
+
'202':
|
|
55
|
+
description: Deploy queued
|
|
56
|
+
content:
|
|
57
|
+
application/json:
|
|
58
|
+
schema:
|
|
59
|
+
$ref: '#/components/schemas/DeployResult'
|
|
60
|
+
'400':
|
|
61
|
+
description: Invalid manifest or version
|
|
62
|
+
'503':
|
|
63
|
+
description: ossa-deploy unavailable
|
|
64
|
+
|
|
65
|
+
/api/agent-builder/memory:
|
|
66
|
+
post:
|
|
67
|
+
summary: Configure memory tier for an agent
|
|
68
|
+
operationId: configureMemory
|
|
69
|
+
requestBody:
|
|
70
|
+
required: true
|
|
71
|
+
content:
|
|
72
|
+
application/json:
|
|
73
|
+
schema:
|
|
74
|
+
$ref: '#/components/schemas/MemoryConfig'
|
|
75
|
+
responses:
|
|
76
|
+
'200':
|
|
77
|
+
description: Memory configured
|
|
78
|
+
'400':
|
|
79
|
+
description: Invalid memory config
|
|
80
|
+
|
|
81
|
+
/api/agent-builder/options:
|
|
82
|
+
get:
|
|
83
|
+
summary: Get all available builder options
|
|
84
|
+
operationId: getBuilderOptions
|
|
85
|
+
responses:
|
|
86
|
+
'200':
|
|
87
|
+
description: Available options
|
|
88
|
+
content:
|
|
89
|
+
application/json:
|
|
90
|
+
schema:
|
|
91
|
+
$ref: '#/components/schemas/BuilderOptions'
|
|
92
|
+
|
|
93
|
+
components:
|
|
94
|
+
schemas:
|
|
95
|
+
AgentBuilderRequest:
|
|
96
|
+
type: object
|
|
97
|
+
required: [kind, apiVersion, metadata]
|
|
98
|
+
properties:
|
|
99
|
+
kind:
|
|
100
|
+
type: string
|
|
101
|
+
enum: [Agent, Task, Workflow]
|
|
102
|
+
apiVersion:
|
|
103
|
+
type: string
|
|
104
|
+
description: Must be ossa/v0.5.0 or later; older versions are rejected
|
|
105
|
+
example: ossa/v0.5.0
|
|
106
|
+
metadata:
|
|
107
|
+
type: object
|
|
108
|
+
properties:
|
|
109
|
+
name:
|
|
110
|
+
type: string
|
|
111
|
+
displayName:
|
|
112
|
+
type: string
|
|
113
|
+
description:
|
|
114
|
+
type: string
|
|
115
|
+
spec:
|
|
116
|
+
type: object
|
|
117
|
+
|
|
118
|
+
AgentBuilderResult:
|
|
119
|
+
type: object
|
|
120
|
+
properties:
|
|
121
|
+
manifestYaml:
|
|
122
|
+
type: string
|
|
123
|
+
agentName:
|
|
124
|
+
type: string
|
|
125
|
+
apiVersion:
|
|
126
|
+
type: string
|
|
127
|
+
example: ossa/v0.5.0
|
|
128
|
+
steps:
|
|
129
|
+
type: array
|
|
130
|
+
items:
|
|
131
|
+
type: object
|
|
132
|
+
properties:
|
|
133
|
+
step:
|
|
134
|
+
type: string
|
|
135
|
+
stdout:
|
|
136
|
+
type: string
|
|
137
|
+
exitCode:
|
|
138
|
+
type: integer
|
|
139
|
+
|
|
140
|
+
DeployRequest:
|
|
141
|
+
type: object
|
|
142
|
+
required: [manifestPath, sourceRepo]
|
|
143
|
+
properties:
|
|
144
|
+
manifestPath:
|
|
145
|
+
type: string
|
|
146
|
+
description: Path to manifest within the source repo
|
|
147
|
+
sourceRepo:
|
|
148
|
+
type: string
|
|
149
|
+
sourceRef:
|
|
150
|
+
type: string
|
|
151
|
+
default: main
|
|
152
|
+
requestedBy:
|
|
153
|
+
type: string
|
|
154
|
+
options:
|
|
155
|
+
type: object
|
|
156
|
+
properties:
|
|
157
|
+
score:
|
|
158
|
+
type: boolean
|
|
159
|
+
default: true
|
|
160
|
+
publish:
|
|
161
|
+
type: boolean
|
|
162
|
+
default: true
|
|
163
|
+
openMr:
|
|
164
|
+
type: boolean
|
|
165
|
+
default: true
|
|
166
|
+
|
|
167
|
+
DeployResult:
|
|
168
|
+
type: object
|
|
169
|
+
properties:
|
|
170
|
+
jobId:
|
|
171
|
+
type: string
|
|
172
|
+
format: uuid
|
|
173
|
+
status:
|
|
174
|
+
type: string
|
|
175
|
+
enum: [queued, running, complete, failed]
|
|
176
|
+
score:
|
|
177
|
+
type: number
|
|
178
|
+
artifactUrl:
|
|
179
|
+
type: string
|
|
180
|
+
format: uri
|
|
181
|
+
mrUrl:
|
|
182
|
+
type: string
|
|
183
|
+
format: uri
|
|
184
|
+
duadpDid:
|
|
185
|
+
type: string
|
|
186
|
+
nullable: true
|
|
187
|
+
errors:
|
|
188
|
+
type: array
|
|
189
|
+
items:
|
|
190
|
+
type: string
|
|
191
|
+
pipelineUrl:
|
|
192
|
+
type: string
|
|
193
|
+
format: uri
|
|
194
|
+
|
|
195
|
+
MemoryConfig:
|
|
196
|
+
type: object
|
|
197
|
+
required: [agentName, tier]
|
|
198
|
+
properties:
|
|
199
|
+
agentName:
|
|
200
|
+
type: string
|
|
201
|
+
tier:
|
|
202
|
+
type: string
|
|
203
|
+
enum: [global, domain, agent]
|
|
204
|
+
collection:
|
|
205
|
+
type: string
|
|
206
|
+
description: 'Naming: global.<collection>, <domain>.<collection>, <domain>.<agent>.<collection>'
|
|
207
|
+
|
|
208
|
+
BuilderOptions:
|
|
209
|
+
type: object
|
|
210
|
+
properties:
|
|
211
|
+
apiVersions:
|
|
212
|
+
type: array
|
|
213
|
+
items:
|
|
214
|
+
type: string
|
|
215
|
+
example: ['ossa/v0.5.0', 'ossa/v0.5.1']
|
|
216
|
+
kinds:
|
|
217
|
+
type: array
|
|
218
|
+
items:
|
|
219
|
+
type: string
|
|
220
|
+
example: [Agent, Task, Workflow]
|
|
221
|
+
platforms:
|
|
222
|
+
type: array
|
|
223
|
+
items:
|
|
224
|
+
type: string
|
|
225
|
+
example: [docker, kubernetes, serverless]
|
|
226
|
+
memoryTiers:
|
|
227
|
+
type: array
|
|
228
|
+
items:
|
|
229
|
+
type: string
|
|
230
|
+
example: [global, domain, agent]
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
"type": "string",
|
|
26
26
|
"enum": [
|
|
27
27
|
"Agent",
|
|
28
|
+
"Role",
|
|
28
29
|
"Task",
|
|
29
30
|
"Workflow",
|
|
30
31
|
"Flow"
|
|
31
32
|
],
|
|
32
|
-
"description": "Resource type: Agent (agentic loops), Task (deterministic steps), Workflow (composition), or Flow (streaming)"
|
|
33
|
+
"description": "Resource type: Agent (agentic loops), Role (IDE operator overlay), Task (deterministic steps), Workflow (composition), or Flow (streaming)"
|
|
33
34
|
},
|
|
34
35
|
"metadata": {
|
|
35
36
|
"$ref": "#/definitions/Metadata"
|
|
@@ -1380,7 +1381,7 @@
|
|
|
1380
1381
|
},
|
|
1381
1382
|
"Cognition": {
|
|
1382
1383
|
"type": "object",
|
|
1383
|
-
"description": "Reasoning pattern, thought trace configuration, and
|
|
1384
|
+
"description": "Reasoning pattern, thought trace configuration, governance, session capabilities, hypothesis behavior, and alignment gates for auditable agent cognition (v0.5.0 draft). First-class spec-level primitive for NIST/FedRAMP alignment.",
|
|
1384
1385
|
"properties": {
|
|
1385
1386
|
"pattern": {
|
|
1386
1387
|
"type": "string",
|
|
@@ -1424,6 +1425,37 @@
|
|
|
1424
1425
|
"audit_required": { "type": "boolean", "default": false }
|
|
1425
1426
|
},
|
|
1426
1427
|
"additionalProperties": false
|
|
1428
|
+
},
|
|
1429
|
+
"session": {
|
|
1430
|
+
"type": "object",
|
|
1431
|
+
"description": "Session capabilities for collaborative multi-agent interactions",
|
|
1432
|
+
"properties": {
|
|
1433
|
+
"joinable": { "type": "boolean", "description": "Can this agent join collaborative sessions" },
|
|
1434
|
+
"maxConcurrent": { "type": "integer", "minimum": 1, "default": 1, "description": "Maximum concurrent sessions" },
|
|
1435
|
+
"role": { "type": "string", "enum": ["leader", "contributor", "observer"], "default": "contributor" },
|
|
1436
|
+
"conflictBehavior": { "type": "string", "enum": ["pause", "yield", "escalate"], "default": "pause" }
|
|
1437
|
+
},
|
|
1438
|
+
"additionalProperties": false
|
|
1439
|
+
},
|
|
1440
|
+
"hypothesis": {
|
|
1441
|
+
"type": "object",
|
|
1442
|
+
"description": "Hypothesis declaration behavior for transparent agent reasoning",
|
|
1443
|
+
"properties": {
|
|
1444
|
+
"declaresIntent": { "type": "boolean", "default": true, "description": "Whether the agent declares its intent before acting" },
|
|
1445
|
+
"confidenceThreshold": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.7, "description": "Minimum confidence to proceed without review" },
|
|
1446
|
+
"requiresAlignment": { "type": "boolean", "default": false, "description": "Must pass alignment gate before executing" }
|
|
1447
|
+
},
|
|
1448
|
+
"additionalProperties": false
|
|
1449
|
+
},
|
|
1450
|
+
"alignmentGate": {
|
|
1451
|
+
"type": "object",
|
|
1452
|
+
"description": "Alignment gate configuration for hypothesis validation before execution",
|
|
1453
|
+
"properties": {
|
|
1454
|
+
"enabled": { "type": "boolean", "default": false },
|
|
1455
|
+
"arbiter": { "type": "string", "enum": ["human", "compliance-engine", "consensus"], "default": "human" },
|
|
1456
|
+
"timeout": { "type": "string", "default": "5m", "pattern": "^\\d+[smhd]$", "description": "Max wait time for alignment decision" }
|
|
1457
|
+
},
|
|
1458
|
+
"additionalProperties": false
|
|
1427
1459
|
}
|
|
1428
1460
|
},
|
|
1429
1461
|
"additionalProperties": false
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://openstandardagents.org/schemas/v0.5/extensions/cognition.schema.json",
|
|
4
4
|
"title": "OSSA Cognition Extension (v0.5.0 draft)",
|
|
5
|
-
"description": "Reasoning pattern, thought schema, trace configuration, and
|
|
5
|
+
"description": "Reasoning pattern, thought schema, trace configuration, governance, session capabilities, hypothesis behavior, and alignment gates for auditable agent cognition. First-class spec-level primitive for NIST/FedRAMP alignment.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"pattern": {
|
|
@@ -88,6 +88,83 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"additionalProperties": false
|
|
91
|
+
},
|
|
92
|
+
"session": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"description": "Session capabilities for collaborative multi-agent interactions",
|
|
95
|
+
"properties": {
|
|
96
|
+
"joinable": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "Can this agent join collaborative sessions"
|
|
99
|
+
},
|
|
100
|
+
"maxConcurrent": {
|
|
101
|
+
"type": "integer",
|
|
102
|
+
"minimum": 1,
|
|
103
|
+
"default": 1,
|
|
104
|
+
"description": "Maximum number of concurrent sessions this agent can participate in"
|
|
105
|
+
},
|
|
106
|
+
"role": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": ["leader", "contributor", "observer"],
|
|
109
|
+
"default": "contributor",
|
|
110
|
+
"description": "Default role this agent assumes in collaborative sessions"
|
|
111
|
+
},
|
|
112
|
+
"conflictBehavior": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": ["pause", "yield", "escalate"],
|
|
115
|
+
"default": "pause",
|
|
116
|
+
"description": "How the agent handles conflicts during collaborative sessions"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
},
|
|
121
|
+
"hypothesis": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"description": "Hypothesis declaration behavior for transparent agent reasoning",
|
|
124
|
+
"properties": {
|
|
125
|
+
"declaresIntent": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": true,
|
|
128
|
+
"description": "Whether the agent declares its intent before acting"
|
|
129
|
+
},
|
|
130
|
+
"confidenceThreshold": {
|
|
131
|
+
"type": "number",
|
|
132
|
+
"minimum": 0,
|
|
133
|
+
"maximum": 1,
|
|
134
|
+
"default": 0.7,
|
|
135
|
+
"description": "Minimum confidence score required to proceed without review"
|
|
136
|
+
},
|
|
137
|
+
"requiresAlignment": {
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"default": false,
|
|
140
|
+
"description": "Whether the agent must pass an alignment gate before executing hypotheses"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
},
|
|
145
|
+
"alignmentGate": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"description": "Alignment gate configuration for hypothesis validation before execution",
|
|
148
|
+
"properties": {
|
|
149
|
+
"enabled": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"default": false,
|
|
152
|
+
"description": "Whether the alignment gate is active"
|
|
153
|
+
},
|
|
154
|
+
"arbiter": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"enum": ["human", "compliance-engine", "consensus"],
|
|
157
|
+
"default": "human",
|
|
158
|
+
"description": "Who or what arbitrates alignment decisions"
|
|
159
|
+
},
|
|
160
|
+
"timeout": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"default": "5m",
|
|
163
|
+
"pattern": "^\\d+[smhd]$",
|
|
164
|
+
"description": "Maximum time to wait for alignment decision (e.g. 5m, 30s, 1h)"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"additionalProperties": false
|
|
91
168
|
}
|
|
92
169
|
},
|
|
93
170
|
"additionalProperties": false
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://openstandardagents.org/schemas/v0.5.0/context-pack.schema.json",
|
|
4
|
+
"title": "OSSA v0.5.0 Context Pack Schema",
|
|
5
|
+
"description": "ContextPack defines a reusable, versioned, and token-scored bundle of context to reduce redundancy and increase determinism.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"apiVersion",
|
|
9
|
+
"kind",
|
|
10
|
+
"metadata",
|
|
11
|
+
"spec"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"apiVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^ossa/v0\\.5.*$"
|
|
17
|
+
},
|
|
18
|
+
"kind": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "ContextPack"
|
|
21
|
+
},
|
|
22
|
+
"metadata": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": [
|
|
25
|
+
"name"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"namespace": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"version": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"spec": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": [
|
|
42
|
+
"content"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"content": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": [
|
|
50
|
+
"type",
|
|
51
|
+
"value"
|
|
52
|
+
],
|
|
53
|
+
"properties": {
|
|
54
|
+
"type": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"text",
|
|
58
|
+
"code",
|
|
59
|
+
"file",
|
|
60
|
+
"embedding",
|
|
61
|
+
"reference",
|
|
62
|
+
"dynamic-query"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"value": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"token_score": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"description": "The measured token cost of this specific content block."
|
|
71
|
+
},
|
|
72
|
+
"metadata": {
|
|
73
|
+
"type": "object"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"total_tokens": {
|
|
79
|
+
"type": "integer"
|
|
80
|
+
},
|
|
81
|
+
"ttl_seconds": {
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"default": 3600
|
|
84
|
+
},
|
|
85
|
+
"compression_policy": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://openstandardagents.org/schemas/v0.5.0/execution-profile.schema.json",
|
|
4
|
+
"title": "OSSA v0.5.0 Execution Profile Schema",
|
|
5
|
+
"description": "ExecutionProfile defines the runtime economic and performance policy for an agent execution. It abstracts model selection into intent-based profiles.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"apiVersion",
|
|
9
|
+
"kind",
|
|
10
|
+
"metadata",
|
|
11
|
+
"spec"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"apiVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"pattern": "^ossa/v0\\.5.*$"
|
|
17
|
+
},
|
|
18
|
+
"kind": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "ExecutionProfile"
|
|
21
|
+
},
|
|
22
|
+
"metadata": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": [
|
|
25
|
+
"name"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"namespace": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"spec": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": [
|
|
39
|
+
"profile_type"
|
|
40
|
+
],
|
|
41
|
+
"properties": {
|
|
42
|
+
"profile_type": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"micro-audit",
|
|
46
|
+
"fast-route",
|
|
47
|
+
"balanced-work",
|
|
48
|
+
"deep-reason",
|
|
49
|
+
"long-context",
|
|
50
|
+
"strict-structured",
|
|
51
|
+
"human-gated"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"economics": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"cost_ceiling_usd": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"minimum": 0
|
|
60
|
+
},
|
|
61
|
+
"context_budget_tokens": {
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"minimum": 0
|
|
64
|
+
},
|
|
65
|
+
"compute_budget_units": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"minimum": 0
|
|
68
|
+
},
|
|
69
|
+
"token_sovereignty": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": [
|
|
72
|
+
"provider-managed",
|
|
73
|
+
"local-encrypted",
|
|
74
|
+
"ephemeral"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"performance": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"latency_target_ms": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"minimum": 0
|
|
85
|
+
},
|
|
86
|
+
"priority": {
|
|
87
|
+
"type": "integer",
|
|
88
|
+
"minimum": 0,
|
|
89
|
+
"maximum": 100
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"reliability": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"max_retries": {
|
|
97
|
+
"type": "integer",
|
|
98
|
+
"minimum": 0
|
|
99
|
+
},
|
|
100
|
+
"failure_semantics": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"enum": [
|
|
103
|
+
"fail-fast",
|
|
104
|
+
"graceful-degradation",
|
|
105
|
+
"retry-with-fallback"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"escalation_rules": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"items": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"on_failure": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"action": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"enum": [
|
|
119
|
+
"retry",
|
|
120
|
+
"fail",
|
|
121
|
+
"escalate-to-human",
|
|
122
|
+
"fallback-profile"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"fallback_profile_id": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"audit": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"replay_required": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"default": false
|
|
139
|
+
},
|
|
140
|
+
"compression_policy": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schema.openstandardagents.org/v0.5.0/extensions/economics/failure-semantics.json",
|
|
4
|
+
"title": "Failure Semantics",
|
|
5
|
+
"description": "Standardized failure classes for agent executions.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"failure_class": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"enum": [
|
|
11
|
+
"context_insufficient",
|
|
12
|
+
"policy_denied",
|
|
13
|
+
"budget_exceeded",
|
|
14
|
+
"capability_unavailable",
|
|
15
|
+
"projection_conflict",
|
|
16
|
+
"state_challenged",
|
|
17
|
+
"confidence_too_low",
|
|
18
|
+
"human_required",
|
|
19
|
+
"provider_degraded"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"details": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"recoverable": {
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
},
|
|
28
|
+
"escalation_path": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|