@bluefly/openstandardagents 0.3.5 → 0.3.6
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 +7 -0
- package/CHANGELOG.md +60 -1
- package/README.md +41 -31
- package/bin/ossa +2 -23
- package/bin/postinstall +3 -2
- package/dist/adapters/crewai/converter.d.ts +17 -0
- package/dist/adapters/crewai/converter.d.ts.map +1 -0
- package/dist/adapters/crewai/converter.js +110 -0
- package/dist/adapters/crewai/converter.js.map +1 -0
- package/dist/adapters/crewai/index.d.ts +7 -0
- package/dist/adapters/crewai/index.d.ts.map +1 -0
- package/dist/adapters/crewai/index.js +6 -0
- package/dist/adapters/crewai/index.js.map +1 -0
- package/dist/adapters/crewai/types.d.ts +29 -0
- package/dist/adapters/crewai/types.d.ts.map +1 -0
- package/dist/adapters/crewai/types.js +5 -0
- package/dist/adapters/crewai/types.js.map +1 -0
- package/dist/adapters/docker/generators.d.ts +19 -0
- package/dist/adapters/docker/generators.d.ts.map +1 -0
- package/dist/adapters/docker/generators.js +93 -0
- package/dist/adapters/docker/generators.js.map +1 -0
- package/dist/adapters/docker/index.d.ts +7 -0
- package/dist/adapters/docker/index.d.ts.map +1 -0
- package/dist/adapters/docker/index.js +6 -0
- package/dist/adapters/docker/index.js.map +1 -0
- package/dist/adapters/docker/types.d.ts +17 -0
- package/dist/adapters/docker/types.d.ts.map +1 -0
- package/dist/adapters/docker/types.js +5 -0
- package/dist/adapters/docker/types.js.map +1 -0
- package/dist/adapters/gitlab/converter.d.ts +25 -0
- package/dist/adapters/gitlab/converter.d.ts.map +1 -0
- package/dist/adapters/gitlab/converter.js +96 -0
- package/dist/adapters/gitlab/converter.js.map +1 -0
- package/dist/adapters/gitlab/index.d.ts +7 -0
- package/dist/adapters/gitlab/index.d.ts.map +1 -0
- package/dist/adapters/gitlab/index.js +6 -0
- package/dist/adapters/gitlab/index.js.map +1 -0
- package/dist/adapters/gitlab/types.d.ts +22 -0
- package/dist/adapters/gitlab/types.d.ts.map +1 -0
- package/dist/adapters/gitlab/types.js +5 -0
- package/dist/adapters/gitlab/types.js.map +1 -0
- package/dist/adapters/kubernetes/generator.d.ts +29 -0
- package/dist/adapters/kubernetes/generator.d.ts.map +1 -0
- package/dist/adapters/kubernetes/generator.js +133 -0
- package/dist/adapters/kubernetes/generator.js.map +1 -0
- package/dist/adapters/kubernetes/index.d.ts +7 -0
- package/dist/adapters/kubernetes/index.d.ts.map +1 -0
- package/dist/adapters/kubernetes/index.js +6 -0
- package/dist/adapters/kubernetes/index.js.map +1 -0
- package/dist/adapters/kubernetes/types.d.ts +17 -0
- package/dist/adapters/kubernetes/types.d.ts.map +1 -0
- package/dist/adapters/kubernetes/types.js +5 -0
- package/dist/adapters/kubernetes/types.js.map +1 -0
- package/dist/adapters/langchain/converter.d.ts +21 -0
- package/dist/adapters/langchain/converter.d.ts.map +1 -0
- package/dist/adapters/langchain/converter.js +143 -0
- package/dist/adapters/langchain/converter.js.map +1 -0
- package/dist/adapters/langchain/index.d.ts +7 -0
- package/dist/adapters/langchain/index.d.ts.map +1 -0
- package/dist/adapters/langchain/index.js +6 -0
- package/dist/adapters/langchain/index.js.map +1 -0
- package/dist/adapters/langchain/types.d.ts +27 -0
- package/dist/adapters/langchain/types.d.ts.map +1 -0
- package/dist/adapters/langchain/types.js +5 -0
- package/dist/adapters/langchain/types.js.map +1 -0
- package/dist/adapters/n8n/converter.d.ts +17 -0
- package/dist/adapters/n8n/converter.d.ts.map +1 -0
- package/dist/adapters/n8n/converter.js +77 -0
- package/dist/adapters/n8n/converter.js.map +1 -0
- package/dist/adapters/n8n/index.d.ts +7 -0
- package/dist/adapters/n8n/index.d.ts.map +1 -0
- package/dist/adapters/n8n/index.js +6 -0
- package/dist/adapters/n8n/index.js.map +1 -0
- package/dist/adapters/n8n/types.d.ts +23 -0
- package/dist/adapters/n8n/types.d.ts.map +1 -0
- package/dist/adapters/n8n/types.js +5 -0
- package/dist/adapters/n8n/types.js.map +1 -0
- package/dist/adapters/opentelemetry.adapter.d.ts +1 -1
- package/dist/adapters/temporal/converter.d.ts +17 -0
- package/dist/adapters/temporal/converter.d.ts.map +1 -0
- package/dist/adapters/temporal/converter.js +96 -0
- package/dist/adapters/temporal/converter.js.map +1 -0
- package/dist/adapters/temporal/index.d.ts +7 -0
- package/dist/adapters/temporal/index.d.ts.map +1 -0
- package/dist/adapters/temporal/index.js +6 -0
- package/dist/adapters/temporal/index.js.map +1 -0
- package/dist/adapters/temporal/types.d.ts +23 -0
- package/dist/adapters/temporal/types.d.ts.map +1 -0
- package/dist/adapters/temporal/types.js +5 -0
- package/dist/adapters/temporal/types.js.map +1 -0
- package/dist/bot/agent-compliance.js +1 -1
- package/dist/bot/agent-compliance.js.map +1 -1
- package/dist/bot/agent-security_scanner.d.ts +1 -1
- package/dist/bot/agent-security_scanner.d.ts.map +1 -1
- package/dist/bot/agent-security_scanner.js.map +1 -1
- package/dist/cli/commands/agent-create.command.d.ts +18 -0
- package/dist/cli/commands/agent-create.command.d.ts.map +1 -0
- package/dist/cli/commands/agent-create.command.js +437 -0
- package/dist/cli/commands/agent-create.command.js.map +1 -0
- package/dist/cli/commands/agent-wizard.command.d.ts +21 -0
- package/dist/cli/commands/agent-wizard.command.d.ts.map +1 -0
- package/dist/cli/commands/agent-wizard.command.js +1136 -0
- package/dist/cli/commands/agent-wizard.command.js.map +1 -0
- package/dist/cli/commands/agents-md/batch.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/batch.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/batch.command.js +63 -0
- package/dist/cli/commands/agents-md/batch.command.js.map +1 -0
- package/dist/cli/commands/agents-md/generate.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/generate.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/generate.command.js +43 -0
- package/dist/cli/commands/agents-md/generate.command.js.map +1 -0
- package/dist/cli/commands/agents-md/list.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/list.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/list.command.js +59 -0
- package/dist/cli/commands/agents-md/list.command.js.map +1 -0
- package/dist/cli/commands/agents-md/validate.command.d.ts +3 -0
- package/dist/cli/commands/agents-md/validate.command.d.ts.map +1 -0
- package/dist/cli/commands/agents-md/validate.command.js +42 -0
- package/dist/cli/commands/agents-md/validate.command.js.map +1 -0
- package/dist/cli/commands/agents-md.command.d.ts +1 -1
- package/dist/cli/commands/agents-md.command.d.ts.map +1 -1
- package/dist/cli/commands/agents-md.command.js +40 -122
- package/dist/cli/commands/agents-md.command.js.map +1 -1
- package/dist/cli/commands/audit.d.ts +8 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +238 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/build.command.d.ts +7 -0
- package/dist/cli/commands/build.command.d.ts.map +1 -0
- package/dist/cli/commands/build.command.js +314 -0
- package/dist/cli/commands/build.command.js.map +1 -0
- package/dist/cli/commands/capability/validate.d.ts +3 -0
- package/dist/cli/commands/capability/validate.d.ts.map +1 -0
- package/dist/cli/commands/capability/validate.js +60 -0
- package/dist/cli/commands/capability/validate.js.map +1 -0
- package/dist/cli/commands/deploy.command.d.ts +5 -2
- package/dist/cli/commands/deploy.command.d.ts.map +1 -1
- package/dist/cli/commands/deploy.command.js +50 -154
- package/dist/cli/commands/deploy.command.js.map +1 -1
- package/dist/cli/commands/enhance.command.d.ts +10 -0
- package/dist/cli/commands/enhance.command.d.ts.map +1 -0
- package/dist/cli/commands/enhance.command.js +119 -0
- package/dist/cli/commands/enhance.command.js.map +1 -0
- package/dist/cli/commands/examples.command.d.ts +10 -0
- package/dist/cli/commands/examples.command.d.ts.map +1 -0
- package/dist/cli/commands/examples.command.js +73 -0
- package/dist/cli/commands/examples.command.js.map +1 -0
- package/dist/cli/commands/export.command.d.ts +2 -2
- package/dist/cli/commands/export.command.d.ts.map +1 -1
- package/dist/cli/commands/export.command.js +109 -37
- package/dist/cli/commands/export.command.js.map +1 -1
- package/dist/cli/commands/generate/conformance.d.ts +3 -0
- package/dist/cli/commands/generate/conformance.d.ts.map +1 -0
- package/dist/cli/commands/generate/conformance.js +106 -0
- package/dist/cli/commands/generate/conformance.js.map +1 -0
- package/dist/cli/commands/github-sync.command.js +1 -1
- package/dist/cli/commands/identity/plan.d.ts +3 -0
- package/dist/cli/commands/identity/plan.d.ts.map +1 -0
- package/dist/cli/commands/identity/plan.js +198 -0
- package/dist/cli/commands/identity/plan.js.map +1 -0
- package/dist/cli/commands/install.command.d.ts.map +1 -1
- package/dist/cli/commands/install.command.js +29 -32
- package/dist/cli/commands/install.command.js.map +1 -1
- package/dist/cli/commands/knowledge-index.command.d.ts +11 -0
- package/dist/cli/commands/knowledge-index.command.d.ts.map +1 -0
- package/dist/cli/commands/knowledge-index.command.js +111 -0
- package/dist/cli/commands/knowledge-index.command.js.map +1 -0
- package/dist/cli/commands/knowledge-query.command.d.ts +11 -0
- package/dist/cli/commands/knowledge-query.command.d.ts.map +1 -0
- package/dist/cli/commands/knowledge-query.command.js +118 -0
- package/dist/cli/commands/knowledge-query.command.js.map +1 -0
- package/dist/cli/commands/knowledge.command.d.ts +11 -0
- package/dist/cli/commands/knowledge.command.d.ts.map +1 -0
- package/dist/cli/commands/knowledge.command.js +16 -0
- package/dist/cli/commands/knowledge.command.js.map +1 -0
- package/dist/cli/commands/migrate.command.d.ts +2 -17
- package/dist/cli/commands/migrate.command.d.ts.map +1 -1
- package/dist/cli/commands/migrate.command.js +86 -144
- package/dist/cli/commands/migrate.command.js.map +1 -1
- package/dist/cli/commands/publish.command.d.ts.map +1 -1
- package/dist/cli/commands/publish.command.js +36 -106
- package/dist/cli/commands/publish.command.js.map +1 -1
- package/dist/cli/commands/release.command.d.ts +10 -0
- package/dist/cli/commands/release.command.d.ts.map +1 -0
- package/dist/cli/commands/release.command.js +73 -0
- package/dist/cli/commands/release.command.js.map +1 -0
- package/dist/cli/commands/scaffold.command.d.ts.map +1 -1
- package/dist/cli/commands/scaffold.command.js +14 -4
- package/dist/cli/commands/scaffold.command.js.map +1 -1
- package/dist/cli/commands/search.command.d.ts.map +1 -1
- package/dist/cli/commands/search.command.js +33 -33
- package/dist/cli/commands/search.command.js.map +1 -1
- package/dist/cli/commands/skills.command.d.ts +10 -0
- package/dist/cli/commands/skills.command.d.ts.map +1 -0
- package/dist/cli/commands/skills.command.js +135 -0
- package/dist/cli/commands/skills.command.js.map +1 -0
- package/dist/cli/commands/taxonomy.command.d.ts +10 -0
- package/dist/cli/commands/taxonomy.command.d.ts.map +1 -0
- package/dist/cli/commands/taxonomy.command.js +379 -0
- package/dist/cli/commands/taxonomy.command.js.map +1 -0
- package/dist/cli/commands/template.command.d.ts +7 -0
- package/dist/cli/commands/template.command.d.ts.map +1 -0
- package/dist/cli/commands/template.command.js +159 -0
- package/dist/cli/commands/template.command.js.map +1 -0
- package/dist/cli/commands/update.command.d.ts +3 -0
- package/dist/cli/commands/update.command.d.ts.map +1 -0
- package/dist/cli/commands/update.command.js +43 -0
- package/dist/cli/commands/update.command.js.map +1 -0
- package/dist/cli/commands/validate.command.d.ts.map +1 -1
- package/dist/cli/commands/validate.command.js +43 -0
- package/dist/cli/commands/validate.command.js.map +1 -1
- package/dist/cli/commands/wizard.command.d.ts.map +1 -1
- package/dist/cli/commands/wizard.command.js +29 -3
- package/dist/cli/commands/wizard.command.js.map +1 -1
- package/dist/cli/commands/workspace.command.js +3 -1
- package/dist/cli/commands/workspace.command.js.map +1 -1
- package/dist/cli/index.d.ts +2 -11
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +24 -229
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/utils/error-formatter.js.map +1 -1
- package/dist/cli/utils/output.d.ts +1 -0
- package/dist/cli/utils/output.d.ts.map +1 -1
- package/dist/cli/utils/output.js +2 -1
- package/dist/cli/utils/output.js.map +1 -1
- package/dist/cli/wizard/data/agent-types.d.ts +7 -0
- package/dist/cli/wizard/data/agent-types.d.ts.map +1 -0
- package/dist/cli/wizard/data/agent-types.js +192 -0
- package/dist/cli/wizard/data/agent-types.js.map +1 -0
- package/dist/cli/wizard/data/llm-providers.d.ts +10 -0
- package/dist/cli/wizard/data/llm-providers.d.ts.map +1 -0
- package/dist/cli/wizard/data/llm-providers.js +176 -0
- package/dist/cli/wizard/data/llm-providers.js.map +1 -0
- package/dist/cli/wizard/data/taxonomy.d.ts +39 -0
- package/dist/cli/wizard/data/taxonomy.d.ts.map +1 -0
- package/dist/cli/wizard/data/taxonomy.js +134 -0
- package/dist/cli/wizard/data/taxonomy.js.map +1 -0
- package/dist/cli/wizard/data/templates.d.ts +10 -0
- package/dist/cli/wizard/data/templates.d.ts.map +1 -0
- package/dist/cli/wizard/data/templates.js +228 -0
- package/dist/cli/wizard/data/templates.js.map +1 -0
- package/dist/cli/wizard/steps/01-agent-type.d.ts +7 -0
- package/dist/cli/wizard/steps/01-agent-type.d.ts.map +1 -0
- package/dist/cli/wizard/steps/01-agent-type.js +35 -0
- package/dist/cli/wizard/steps/01-agent-type.js.map +1 -0
- package/dist/cli/wizard/steps/02-basic-info.d.ts +7 -0
- package/dist/cli/wizard/steps/02-basic-info.d.ts.map +1 -0
- package/dist/cli/wizard/steps/02-basic-info.js +81 -0
- package/dist/cli/wizard/steps/02-basic-info.js.map +1 -0
- package/dist/cli/wizard/steps/03-domain-capability.d.ts +7 -0
- package/dist/cli/wizard/steps/03-domain-capability.d.ts.map +1 -0
- package/dist/cli/wizard/steps/03-domain-capability.js +98 -0
- package/dist/cli/wizard/steps/03-domain-capability.js.map +1 -0
- package/dist/cli/wizard/steps/04-llm-config.d.ts +7 -0
- package/dist/cli/wizard/steps/04-llm-config.d.ts.map +1 -0
- package/dist/cli/wizard/steps/04-llm-config.js +86 -0
- package/dist/cli/wizard/steps/04-llm-config.js.map +1 -0
- package/dist/cli/wizard/steps/05-tools.d.ts +7 -0
- package/dist/cli/wizard/steps/05-tools.d.ts.map +1 -0
- package/dist/cli/wizard/steps/05-tools.js +172 -0
- package/dist/cli/wizard/steps/05-tools.js.map +1 -0
- package/dist/cli/wizard/steps/06-autonomy.d.ts +7 -0
- package/dist/cli/wizard/steps/06-autonomy.d.ts.map +1 -0
- package/dist/cli/wizard/steps/06-autonomy.js +87 -0
- package/dist/cli/wizard/steps/06-autonomy.js.map +1 -0
- package/dist/cli/wizard/steps/07-observability.d.ts +7 -0
- package/dist/cli/wizard/steps/07-observability.d.ts.map +1 -0
- package/dist/cli/wizard/steps/07-observability.js +149 -0
- package/dist/cli/wizard/steps/07-observability.js.map +1 -0
- package/dist/cli/wizard/steps/08-deployment.d.ts +7 -0
- package/dist/cli/wizard/steps/08-deployment.d.ts.map +1 -0
- package/dist/cli/wizard/steps/08-deployment.js +120 -0
- package/dist/cli/wizard/steps/08-deployment.js.map +1 -0
- package/dist/cli/wizard/steps/09-advanced.d.ts +7 -0
- package/dist/cli/wizard/steps/09-advanced.d.ts.map +1 -0
- package/dist/cli/wizard/steps/09-advanced.js +160 -0
- package/dist/cli/wizard/steps/09-advanced.js.map +1 -0
- package/dist/cli/wizard/steps/10-review.d.ts +7 -0
- package/dist/cli/wizard/steps/10-review.d.ts.map +1 -0
- package/dist/cli/wizard/steps/10-review.js +109 -0
- package/dist/cli/wizard/steps/10-review.js.map +1 -0
- package/dist/cli/wizard/steps/12-agents-folder.d.ts +7 -0
- package/dist/cli/wizard/steps/12-agents-folder.d.ts.map +1 -0
- package/dist/cli/wizard/steps/12-agents-folder.js +101 -0
- package/dist/cli/wizard/steps/12-agents-folder.js.map +1 -0
- package/dist/cli/wizard/steps/13-openapi-generation.d.ts +7 -0
- package/dist/cli/wizard/steps/13-openapi-generation.d.ts.map +1 -0
- package/dist/cli/wizard/steps/13-openapi-generation.js +60 -0
- package/dist/cli/wizard/steps/13-openapi-generation.js.map +1 -0
- package/dist/cli/wizard/steps/14-workspace-registration.d.ts +7 -0
- package/dist/cli/wizard/steps/14-workspace-registration.d.ts.map +1 -0
- package/dist/cli/wizard/steps/14-workspace-registration.js +65 -0
- package/dist/cli/wizard/steps/14-workspace-registration.js.map +1 -0
- package/dist/cli/wizard/steps/15-cost-estimation.d.ts +7 -0
- package/dist/cli/wizard/steps/15-cost-estimation.d.ts.map +1 -0
- package/dist/cli/wizard/steps/15-cost-estimation.js +119 -0
- package/dist/cli/wizard/steps/15-cost-estimation.js.map +1 -0
- package/dist/cli/wizard/steps/16-best-practices.d.ts +7 -0
- package/dist/cli/wizard/steps/16-best-practices.d.ts.map +1 -0
- package/dist/cli/wizard/steps/16-best-practices.js +180 -0
- package/dist/cli/wizard/steps/16-best-practices.js.map +1 -0
- package/dist/cli/wizard/steps/index.d.ts +15 -0
- package/dist/cli/wizard/steps/index.d.ts.map +1 -0
- package/dist/cli/wizard/steps/index.js +15 -0
- package/dist/cli/wizard/steps/index.js.map +1 -0
- package/dist/cli/wizard/types.d.ts +94 -0
- package/dist/cli/wizard/types.d.ts.map +1 -0
- package/dist/cli/wizard/types.js +6 -0
- package/dist/cli/wizard/types.js.map +1 -0
- package/dist/cli/wizard/ui/console.d.ts +26 -0
- package/dist/cli/wizard/ui/console.d.ts.map +1 -0
- package/dist/cli/wizard/ui/console.js +104 -0
- package/dist/cli/wizard/ui/console.js.map +1 -0
- package/dist/cli/wizard/validators/index.d.ts +11 -0
- package/dist/cli/wizard/validators/index.d.ts.map +1 -0
- package/dist/cli/wizard/validators/index.js +35 -0
- package/dist/cli/wizard/validators/index.js.map +1 -0
- package/dist/di-container.d.ts.map +1 -1
- package/dist/di-container.js +16 -0
- package/dist/di-container.js.map +1 -1
- package/dist/index.d.ts +7 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -31
- package/dist/index.js.map +1 -1
- package/dist/repositories/manifest.repository.js +1 -1
- package/dist/repositories/manifest.repository.js.map +1 -1
- package/dist/repositories/schema.repository.d.ts.map +1 -1
- package/dist/repositories/schema.repository.js +7 -4
- package/dist/repositories/schema.repository.js.map +1 -1
- package/dist/runtime/langflow.runtime.d.ts +2 -2
- package/dist/sdks/kagent/crd-generator.d.ts +21 -0
- package/dist/sdks/kagent/crd-generator.d.ts.map +1 -0
- package/dist/sdks/kagent/crd-generator.js +101 -0
- package/dist/sdks/kagent/crd-generator.js.map +1 -0
- package/dist/sdks/kagent/crd-parser.d.ts +13 -0
- package/dist/sdks/kagent/crd-parser.d.ts.map +1 -0
- package/dist/sdks/kagent/crd-parser.js +91 -0
- package/dist/sdks/kagent/crd-parser.js.map +1 -0
- package/dist/sdks/kagent/index.d.ts +10 -0
- package/dist/sdks/kagent/index.d.ts.map +1 -0
- package/dist/sdks/kagent/index.js +9 -0
- package/dist/sdks/kagent/index.js.map +1 -0
- package/dist/sdks/kagent/runtime-adapter.d.ts +45 -0
- package/dist/sdks/kagent/runtime-adapter.d.ts.map +1 -0
- package/dist/sdks/kagent/runtime-adapter.js +129 -0
- package/dist/sdks/kagent/runtime-adapter.js.map +1 -0
- package/dist/sdks/kagent/types.d.ts +91 -0
- package/dist/sdks/kagent/types.d.ts.map +1 -0
- package/dist/sdks/kagent/types.js +5 -0
- package/dist/sdks/kagent/types.js.map +1 -0
- package/dist/sdks/kagent/validator.d.ts +17 -0
- package/dist/sdks/kagent/validator.d.ts.map +1 -0
- package/dist/sdks/kagent/validator.js +73 -0
- package/dist/sdks/kagent/validator.js.map +1 -0
- package/dist/sdks/shared/types.d.ts +1 -1
- package/dist/sdks/typescript/types.d.ts +3 -3
- package/dist/sdks/typescript/types.js +3 -3
- package/dist/services/agents-md/agents-md.service.d.ts.map +1 -1
- package/dist/services/agents-md/agents-md.service.js +0 -6
- package/dist/services/agents-md/agents-md.service.js.map +1 -1
- package/dist/services/agents-md/repo-agents-md.service.d.ts +87 -0
- package/dist/services/agents-md/repo-agents-md.service.d.ts.map +1 -0
- package/dist/services/agents-md/repo-agents-md.service.js +202 -0
- package/dist/services/agents-md/repo-agents-md.service.js.map +1 -0
- package/dist/services/ai-architect.service.d.ts +48 -0
- package/dist/services/ai-architect.service.d.ts.map +1 -0
- package/dist/services/ai-architect.service.js +273 -0
- package/dist/services/ai-architect.service.js.map +1 -0
- package/dist/services/audit.d.ts +80 -0
- package/dist/services/audit.d.ts.map +1 -0
- package/dist/services/audit.js +245 -0
- package/dist/services/audit.js.map +1 -0
- package/dist/services/codegen/generators/openapi-zod.generator.js +1 -1
- package/dist/services/git.service.d.ts +10 -1
- package/dist/services/git.service.d.ts.map +1 -1
- package/dist/services/git.service.js +42 -2
- package/dist/services/git.service.js.map +1 -1
- package/dist/services/knowledge-generation.service.d.ts +46 -0
- package/dist/services/knowledge-generation.service.d.ts.map +1 -0
- package/dist/services/knowledge-generation.service.js +96 -0
- package/dist/services/knowledge-generation.service.js.map +1 -0
- package/dist/services/knowledge.service.d.ts +88 -0
- package/dist/services/knowledge.service.d.ts.map +1 -0
- package/dist/services/knowledge.service.js +214 -0
- package/dist/services/knowledge.service.js.map +1 -0
- package/dist/services/migration-transform.service.d.ts +11 -3
- package/dist/services/migration-transform.service.d.ts.map +1 -1
- package/dist/services/migration-transform.service.js +69 -10
- package/dist/services/migration-transform.service.js.map +1 -1
- package/dist/services/registry.service.d.ts +34 -0
- package/dist/services/registry.service.d.ts.map +1 -0
- package/dist/services/registry.service.js +161 -0
- package/dist/services/registry.service.js.map +1 -0
- package/dist/services/release-automation/release-agent.service.d.ts +39 -0
- package/dist/services/release-automation/release-agent.service.d.ts.map +1 -0
- package/dist/services/release-automation/release-agent.service.js +42 -0
- package/dist/services/release-automation/release-agent.service.js.map +1 -0
- package/dist/services/skills/claude-skills.service.d.ts +51 -0
- package/dist/services/skills/claude-skills.service.d.ts.map +1 -0
- package/dist/services/skills/claude-skills.service.js +252 -0
- package/dist/services/skills/claude-skills.service.js.map +1 -0
- package/dist/services/structure/agents-folder.service.d.ts +37 -0
- package/dist/services/structure/agents-folder.service.d.ts.map +1 -0
- package/dist/services/structure/agents-folder.service.js +318 -0
- package/dist/services/structure/agents-folder.service.js.map +1 -0
- package/dist/services/taxonomy-validator.service.d.ts +25 -0
- package/dist/services/taxonomy-validator.service.d.ts.map +1 -0
- package/dist/services/taxonomy-validator.service.js +149 -0
- package/dist/services/taxonomy-validator.service.js.map +1 -0
- package/dist/services/taxonomy.service.d.ts +132 -0
- package/dist/services/taxonomy.service.d.ts.map +1 -0
- package/dist/services/taxonomy.service.js +330 -0
- package/dist/services/taxonomy.service.js.map +1 -0
- package/dist/services/template-processor.service.d.ts +34 -0
- package/dist/services/template-processor.service.d.ts.map +1 -0
- package/dist/services/template-processor.service.js +112 -0
- package/dist/services/template-processor.service.js.map +1 -0
- package/dist/services/template.service.d.ts +54 -0
- package/dist/services/template.service.d.ts.map +1 -0
- package/dist/services/template.service.js +154 -0
- package/dist/services/template.service.js.map +1 -0
- package/dist/spec/ossa-audit-api.yaml +311 -0
- package/dist/spec/registry/registry-api.yaml +144 -0
- package/dist/spec/schema/components/adapter.schema.json +33 -0
- package/dist/spec/schema/components/identity.schema.json +78 -0
- package/dist/spec/v0.3/CHANGELOG.md +2 -2
- package/dist/spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md +552 -0
- package/dist/spec/v0.3/README.md +2 -2
- package/dist/spec/v0.3/ossa-0.3.6.schema.json +17604 -0
- package/dist/spec/v0.3/ossa-v0.3.schema.json +15824 -0
- package/dist/spec/v0.3.6/CHANGELOG.md +171 -0
- package/dist/spec/v0.3.6/README.md +382 -0
- package/dist/spec/v0.3.6/taxonomy.yaml +506 -0
- package/dist/testing/fixtures.d.ts.map +1 -1
- package/dist/testing/fixtures.js +6 -0
- package/dist/testing/fixtures.js.map +1 -1
- package/dist/testing/runner.d.ts.map +1 -1
- package/dist/testing/runner.js +4 -20
- package/dist/testing/runner.js.map +1 -1
- package/dist/types/architect.d.ts +48 -0
- package/dist/types/architect.d.ts.map +1 -0
- package/dist/types/architect.js +7 -0
- package/dist/types/architect.js.map +1 -0
- package/dist/types/identity.d.ts +78 -401
- package/dist/types/identity.d.ts.map +1 -1
- package/dist/types/identity.js +5 -7
- package/dist/types/identity.js.map +1 -1
- package/dist/types/identity.zod.d.ts +5 -5
- package/dist/types/index.d.ts +69 -41
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/personality.zod.d.ts +24 -24
- package/dist/types/prompts.zod.d.ts +4 -4
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +73 -46
- package/dist/utils/version.js.map +1 -1
- package/dist/validation/__tests__/error-codes.test.d.ts +5 -0
- package/dist/validation/__tests__/error-codes.test.d.ts.map +1 -0
- package/dist/validation/__tests__/error-codes.test.js +252 -0
- package/dist/validation/__tests__/error-codes.test.js.map +1 -0
- package/dist/validation/enhanced-validator.d.ts +38 -0
- package/dist/validation/enhanced-validator.d.ts.map +1 -0
- package/dist/validation/enhanced-validator.js +242 -0
- package/dist/validation/enhanced-validator.js.map +1 -0
- package/dist/validation/error-codes.d.ts +170 -0
- package/dist/validation/error-codes.d.ts.map +1 -0
- package/dist/validation/error-codes.js +1159 -0
- package/dist/validation/error-codes.js.map +1 -0
- package/dist/validation/error-formatter.d.ts +81 -0
- package/dist/validation/error-formatter.d.ts.map +1 -0
- package/dist/validation/error-formatter.js +375 -0
- package/dist/validation/error-formatter.js.map +1 -0
- package/dist/validation/index.d.ts +16 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +20 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/linter.d.ts +36 -0
- package/dist/validation/linter.d.ts.map +1 -0
- package/dist/validation/linter.js +453 -0
- package/dist/validation/linter.js.map +1 -0
- package/dist/validation/validator.d.ts +38 -0
- package/dist/validation/validator.d.ts.map +1 -0
- package/dist/validation/validator.js +262 -0
- package/dist/validation/validator.js.map +1 -0
- package/examples/a2a/agent-handoff.ossa.yaml +1 -1
- package/examples/a2a/service-discovery.ossa.yaml +1 -1
- 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/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/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/monorepo-agent.ossa.yaml +1 -1
- package/examples/autonomous-evolution/self-evolving-agent.ossa.yaml +1 -1
- package/examples/build-once-use-everywhere/README.md +184 -0
- package/examples/build-once-use-everywhere/agent.ossa.yaml +38 -0
- package/examples/build-once-use-everywhere/deploy-config.yaml +32 -0
- 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 +5 -3
- package/examples/contracts/data-producer.ossa.yaml +1 -1
- package/examples/drupal/gitlab-ml-recommender.ossa.yaml +1 -1
- package/examples/economics/marketplace-agent.ossa.json +210 -0
- package/examples/extensions/encryption-multi-provider.yaml +4 -4
- package/examples/extensions/knowledge-sources.yaml +1 -1
- package/examples/extensions/mcp-full-featured.yaml +1 -1
- package/examples/genetics/breeding-agent.ossa.json +194 -0
- 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/hello-world-complete.ossa.yaml +1 -1
- package/examples/integration-patterns/agent-to-agent-orchestration.ossa.yaml +1 -1
- 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/lifecycle/mentoring-agent.ossa.json +293 -0
- package/examples/mcp/database-mcp.ossa.yaml +1 -1
- package/examples/mcp/filesystem-mcp.ossa.yaml +1 -1
- 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 +1 -1
- package/examples/messaging/security-scanner.ossa.yaml +1 -1
- package/examples/migration-guides/from-langchain-to-ossa.yaml +4 -4
- package/examples/migrations/crewai-to-ossa/README.md +66 -0
- package/examples/migrations/langchain/01-python-react-agent-after.ossa.yaml +2 -2
- package/examples/migrations/langchain/02-typescript-conversational-after.ossa.yaml +2 -2
- package/examples/migrations/langchain/03-sequential-chain-after.ossa.yaml +2 -2
- package/examples/migrations/langchain/04-config-based-after.ossa.yaml +2 -2
- package/examples/migrations/langchain-to-ossa/README.md +73 -0
- package/examples/migrations/swarm-to-ossa/COMPARISON.md +350 -0
- package/examples/migrations/swarm-to-ossa/INDEX.md +355 -0
- package/examples/migrations/swarm-to-ossa/MIGRATION-FLOW.md +410 -0
- package/examples/migrations/swarm-to-ossa/QUICKSTART.md +453 -0
- package/examples/migrations/swarm-to-ossa/README.md +665 -0
- package/examples/migrations/swarm-to-ossa/after-handoffs.ossa.yaml +482 -0
- package/examples/migrations/swarm-to-ossa/after-triage-agent.ossa.yaml +315 -0
- package/examples/migrations/swarm-to-ossa/before-handoffs.py +373 -0
- package/examples/migrations/swarm-to-ossa/before-triage-agent.py +234 -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/multi-platform/single-manifest/README.md +72 -0
- package/examples/multi-platform/single-manifest/agent.ossa.yaml +32 -0
- package/examples/observability/activity-stream-full.yaml +1 -1
- package/examples/openai/basic-agent.ossa.yaml +1 -1
- package/examples/ossa-templates/11-react-performance-expert.ossa.yaml +1 -1
- package/examples/ossa-templates/12-typescript-type-safety-expert.ossa.yaml +1 -1
- package/examples/ossa-templates/13-accessibility-champion.ossa.yaml +1 -1
- package/examples/ossa-templates/14-security-hardening-agent.ossa.yaml +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/registry/agents/code-reviewer/agent.yaml +1 -1
- package/examples/registry/agents/security-scanner/agent.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 +1 -1
- package/examples/showcase/code-assistant.ossa.yaml +1 -1
- package/examples/showcase/code-reviewer.ossa.yaml +1 -1
- package/examples/showcase/compliance-validator.ossa.yaml +1 -1
- package/examples/showcase/content-writer.ossa.yaml +1 -1
- package/examples/showcase/data-transformer.ossa.yaml +1 -1
- package/examples/showcase/doc-generator.ossa.yaml +1 -1
- package/examples/showcase/security-scanner.ossa.yaml +1 -1
- package/examples/showcase/test-generator.ossa.yaml +1 -1
- package/examples/showcase/workflow-orchestrator.ossa.yaml +1 -1
- package/examples/swarm/pso-optimizer.ossa.json +171 -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/v0.3.6/full-featured-v0.3.6.ossa.yaml +304 -0
- package/examples/v0.3.6/gitlab-duo-composite-identity.ossa.yaml +119 -0
- package/examples/v0.3.6/knowledge-graph-integration.ossa.yaml +109 -0
- package/examples/v0.3.6/token-efficiency-economy.ossa.yaml +111 -0
- package/examples/v0.3.6-features/README.md +433 -0
- package/examples/v0.3.6-features/genetics-breeding-advanced.ossa.yaml +496 -0
- package/examples/v0.3.6-features/genetics-breeding-simple.ossa.yaml +304 -0
- package/examples/v0.3.6-features/genetics-fitness-scoring.ossa.yaml +551 -0
- package/examples/validation/error-codes-demo.ts +254 -0
- 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/openapi/agents-md-service.yaml +338 -0
- package/openapi/cli-commands.openapi.yaml +0 -28
- package/openapi/ossa-cli-enhancements.openapi.yaml +148 -0
- package/openapi/release-automation.openapi.yaml +144 -0
- package/package.json +35 -12
- package/schemas/capability-contract.v0.json +116 -0
- package/schemas/identity.lock.schema.json +59 -0
- package/schemas/identity.plan.schema.json +132 -0
- package/spec/ossa-audit-api.yaml +311 -0
- package/spec/registry/registry-api.yaml +144 -0
- package/spec/schema/components/adapter.schema.json +33 -0
- package/spec/schema/components/identity.schema.json +78 -0
- package/spec/v0.3/CHANGELOG.md +2 -2
- package/spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md +552 -0
- package/spec/v0.3/README.md +2 -2
- package/spec/v0.3/ossa-0.3.6.schema.json +17604 -0
- package/spec/v0.3/ossa-v0.3.schema.json +15824 -0
- package/spec/v0.3.6/CHANGELOG.md +171 -0
- package/spec/v0.3.6/README.md +382 -0
- package/spec/v0.3.6/taxonomy.yaml +506 -0
- package/src/dev-cli/src/index.ts +0 -0
- package/templates/agent-types/analyzer/cost-analyzer.yaml +38 -0
- package/templates/agent-types/analyzer/performance-profiler.yaml +38 -0
- package/templates/agent-types/analyzer/security-scanner.yaml +36 -0
- package/templates/agent-types/backend/api-validator.yaml +37 -0
- package/templates/agent-types/backend/load-balancer.yaml +39 -0
- package/templates/agent-types/content/content-generator.yaml +40 -0
- package/templates/agent-types/content/seo-optimizer.yaml +39 -0
- package/templates/agent-types/data/data-processor.yaml +38 -0
- package/templates/agent-types/data/report-generator.yaml +40 -0
- package/templates/agent-types/development/code-generator.yaml +39 -0
- package/templates/agent-types/development/dependency-updater.yaml +38 -0
- package/templates/agent-types/frontend/accessibility-checker.yaml +38 -0
- package/templates/agent-types/frontend/ui-tester.yaml +38 -0
- package/templates/agent-types/infrastructure/deployment-automator.yaml +39 -0
- package/templates/agent-types/infrastructure/resource-optimizer.yaml +38 -0
- package/templates/agent-types/monitor/health-checker.yaml +37 -0
- package/templates/agent-types/monitor/log-analyzer.yaml +37 -0
- package/templates/agent-types/orchestrator/multi-agent-coordinator.yaml +38 -0
- package/templates/agent-types/orchestrator/workflow-manager.yaml +39 -0
- package/templates/agent-types/security/compliance-checker.yaml +38 -0
- package/templates/agent-types/security/vulnerability-scanner.yaml +38 -0
- package/templates/agent-types/worker/api-tester.yaml +43 -0
- package/templates/agent-types/worker/code-reviewer.yaml +39 -0
- package/templates/agent-types/worker/database-migrator.yaml +38 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
apiVersion: ossa/v0.3.6
|
|
2
|
+
kind: Agent
|
|
3
|
+
metadata:
|
|
4
|
+
name: codebase-navigator
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
description: "Intelligent codebase navigation with 98% token reduction via knowledge graph"
|
|
7
|
+
efficiency_tier: economy
|
|
8
|
+
labels:
|
|
9
|
+
feature: knowledge-graph
|
|
10
|
+
optimization: 98-percent
|
|
11
|
+
use-case: codebase-understanding
|
|
12
|
+
|
|
13
|
+
spec:
|
|
14
|
+
role: "Expert codebase navigator that understands project structure through knowledge graph indexing"
|
|
15
|
+
|
|
16
|
+
llm:
|
|
17
|
+
provider: anthropic
|
|
18
|
+
model: claude-sonnet-4
|
|
19
|
+
temperature: 0.2
|
|
20
|
+
|
|
21
|
+
# Token Efficiency via Knowledge Graph (v0.3.6+)
|
|
22
|
+
token_efficiency:
|
|
23
|
+
enabled: true
|
|
24
|
+
|
|
25
|
+
# Knowledge Graph Configuration: 98% savings
|
|
26
|
+
knowledge_graph:
|
|
27
|
+
enabled: true
|
|
28
|
+
max_context_tokens: 10000 # vs 500k+ for full codebase
|
|
29
|
+
indexing_strategy: selective # Only index changed files
|
|
30
|
+
|
|
31
|
+
# Estimated savings
|
|
32
|
+
# Before: 500,000 tokens (full codebase in context)
|
|
33
|
+
# After: 10,000 tokens (knowledge graph queries)
|
|
34
|
+
# Reduction: 98%
|
|
35
|
+
|
|
36
|
+
# Knowledge Graph via MCP (GitLab Duo or local)
|
|
37
|
+
extensions:
|
|
38
|
+
mcp:
|
|
39
|
+
servers:
|
|
40
|
+
- name: gitlab-kg
|
|
41
|
+
description: "GitLab Knowledge Graph MCP server"
|
|
42
|
+
transport: http
|
|
43
|
+
oauth2:
|
|
44
|
+
enabled: true
|
|
45
|
+
registration_endpoint: https://gitlab.com/oauth/applications
|
|
46
|
+
scopes:
|
|
47
|
+
- api
|
|
48
|
+
- read_repository
|
|
49
|
+
|
|
50
|
+
tools:
|
|
51
|
+
- name: query_codebase
|
|
52
|
+
description: "Semantic code search via knowledge graph"
|
|
53
|
+
server: gitlab-kg
|
|
54
|
+
schema:
|
|
55
|
+
type: object
|
|
56
|
+
properties:
|
|
57
|
+
query:
|
|
58
|
+
type: string
|
|
59
|
+
description: "Natural language query (e.g., 'find authentication functions')"
|
|
60
|
+
index_types:
|
|
61
|
+
type: array
|
|
62
|
+
items:
|
|
63
|
+
enum: [files, classes, functions, dependencies]
|
|
64
|
+
max_results:
|
|
65
|
+
type: integer
|
|
66
|
+
default: 10
|
|
67
|
+
|
|
68
|
+
- name: get_relationships
|
|
69
|
+
description: "Get code relationships (imports, extends, calls)"
|
|
70
|
+
server: gitlab-kg
|
|
71
|
+
schema:
|
|
72
|
+
type: object
|
|
73
|
+
properties:
|
|
74
|
+
entity_id:
|
|
75
|
+
type: string
|
|
76
|
+
description: "Entity to get relationships for"
|
|
77
|
+
relationship_types:
|
|
78
|
+
type: array
|
|
79
|
+
items:
|
|
80
|
+
enum: [imports, extends, calls, depends_on]
|
|
81
|
+
|
|
82
|
+
- name: traverse_dependencies
|
|
83
|
+
description: "Traverse dependency graph"
|
|
84
|
+
server: gitlab-kg
|
|
85
|
+
schema:
|
|
86
|
+
type: object
|
|
87
|
+
properties:
|
|
88
|
+
start_node:
|
|
89
|
+
type: string
|
|
90
|
+
max_depth:
|
|
91
|
+
type: integer
|
|
92
|
+
default: 3
|
|
93
|
+
|
|
94
|
+
# Capabilities
|
|
95
|
+
capabilities:
|
|
96
|
+
- name: code-understanding
|
|
97
|
+
type: tool
|
|
98
|
+
description: "Understand codebase structure via knowledge graph"
|
|
99
|
+
available: true
|
|
100
|
+
|
|
101
|
+
autonomy:
|
|
102
|
+
level: semi_autonomous
|
|
103
|
+
approval_required: false # No approval needed for queries
|
|
104
|
+
|
|
105
|
+
observability:
|
|
106
|
+
enabled: true
|
|
107
|
+
metrics:
|
|
108
|
+
track_tokens: true
|
|
109
|
+
track_queries: true
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
apiVersion: ossa/v0.3.6
|
|
2
|
+
kind: Agent
|
|
3
|
+
metadata:
|
|
4
|
+
name: cost-optimized-code-reviewer
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
description: "Code review agent with significant cost optimization through token efficiency"
|
|
7
|
+
efficiency_tier: economy # Enables aggressive optimization
|
|
8
|
+
labels:
|
|
9
|
+
cost-tier: economy
|
|
10
|
+
use-case: code-review
|
|
11
|
+
optimization: aggressive
|
|
12
|
+
|
|
13
|
+
spec:
|
|
14
|
+
role: "Expert code reviewer focused on security, performance, and best practices"
|
|
15
|
+
|
|
16
|
+
llm:
|
|
17
|
+
provider: anthropic
|
|
18
|
+
model: claude-opus-4
|
|
19
|
+
temperature: 0.3
|
|
20
|
+
max_tokens: 4096
|
|
21
|
+
|
|
22
|
+
# Token Efficiency Configuration (v0.3.6+)
|
|
23
|
+
# Achieves significant cost optimization vs baseline
|
|
24
|
+
token_efficiency:
|
|
25
|
+
enabled: true
|
|
26
|
+
|
|
27
|
+
# Context Management: 70% savings
|
|
28
|
+
context_management:
|
|
29
|
+
strategy: semantic_pruning
|
|
30
|
+
pruning:
|
|
31
|
+
enabled: true
|
|
32
|
+
threshold: 0.3 # Keep only 30% most relevant context
|
|
33
|
+
max_tokens: 50000 # Hard limit on context size
|
|
34
|
+
preserve_recent: 5 # Always keep last 5 messages
|
|
35
|
+
summarization:
|
|
36
|
+
enabled: true
|
|
37
|
+
model: haiku # Use cheap model for summaries
|
|
38
|
+
compression_ratio: 0.3 # Compress to 30% of original
|
|
39
|
+
trigger_threshold: 50000 # Summarize when context exceeds 50k tokens
|
|
40
|
+
|
|
41
|
+
# Prompt Caching: 90% savings on repeated context (Anthropic)
|
|
42
|
+
prompt_caching:
|
|
43
|
+
enabled: true
|
|
44
|
+
provider: anthropic
|
|
45
|
+
strategy: hybrid
|
|
46
|
+
cache_breakpoints:
|
|
47
|
+
- system_prompt # Cache system prompt (always static)
|
|
48
|
+
- knowledge_base # Cache React best practices
|
|
49
|
+
- tools # Cache tool definitions
|
|
50
|
+
min_tokens: 1024
|
|
51
|
+
ttl: 300 # 5 minutes
|
|
52
|
+
estimated_savings: 90
|
|
53
|
+
|
|
54
|
+
# Token Budget: Hard limits
|
|
55
|
+
token_budget:
|
|
56
|
+
enabled: true
|
|
57
|
+
input_limit: 100000 # Max 100k input tokens
|
|
58
|
+
output_limit: 4096 # Max 4k output tokens
|
|
59
|
+
enforcement: hard # Block if exceeded
|
|
60
|
+
overflow_behavior: summarize # Summarize if over budget
|
|
61
|
+
|
|
62
|
+
# Tool Output Limits: Prevent massive tool outputs
|
|
63
|
+
tool_output_limits:
|
|
64
|
+
enabled: true
|
|
65
|
+
max_tokens_per_tool: 5000
|
|
66
|
+
max_total_tokens: 50000
|
|
67
|
+
truncation_strategy: smart
|
|
68
|
+
large_output_handling: summarize
|
|
69
|
+
|
|
70
|
+
# Estimated Savings (for documentation)
|
|
71
|
+
estimated_savings:
|
|
72
|
+
percentage: 95
|
|
73
|
+
baseline_cost: 10.00
|
|
74
|
+
optimized_cost: 0.50
|
|
75
|
+
|
|
76
|
+
# Knowledge sources for code quality
|
|
77
|
+
mandatory_knowledge_sources:
|
|
78
|
+
- source_id: react-best-practices
|
|
79
|
+
enforcement_level: query
|
|
80
|
+
triggers:
|
|
81
|
+
- "**/*.tsx"
|
|
82
|
+
- "**/*.jsx"
|
|
83
|
+
- source_id: typescript-standards
|
|
84
|
+
enforcement_level: validate
|
|
85
|
+
triggers:
|
|
86
|
+
- "**/*.ts"
|
|
87
|
+
- "**/*.tsx"
|
|
88
|
+
|
|
89
|
+
tools:
|
|
90
|
+
- type: mcp
|
|
91
|
+
name: gitlab-mr-tools
|
|
92
|
+
description: "GitLab MR operations"
|
|
93
|
+
- type: function
|
|
94
|
+
name: code-analysis
|
|
95
|
+
description: "Static code analysis"
|
|
96
|
+
|
|
97
|
+
autonomy:
|
|
98
|
+
level: assisted
|
|
99
|
+
approval_required:
|
|
100
|
+
- merge_request
|
|
101
|
+
- code_change
|
|
102
|
+
|
|
103
|
+
observability:
|
|
104
|
+
enabled: true
|
|
105
|
+
tracing:
|
|
106
|
+
enabled: true
|
|
107
|
+
provider: opentelemetry
|
|
108
|
+
metrics:
|
|
109
|
+
track_tokens: true
|
|
110
|
+
track_cost: true
|
|
111
|
+
track_latency: true
|
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
# OSSA v0.3.6 Features: Working Examples
|
|
2
|
+
|
|
3
|
+
This directory contains comprehensive working examples demonstrating the revolutionary features introduced in OSSA v0.3.6, including agent genetics, decentralized identity, economics, lifecycle management, and team collaboration.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
OSSA v0.3.6 transforms agent systems into a fully-realized ecosystem with:
|
|
8
|
+
|
|
9
|
+
- **🧬 Agent Genetics**: Breeding, evolution, and lineage tracking
|
|
10
|
+
- **🆔 Decentralized Identity**: W3C DID-based trust and reputation
|
|
11
|
+
- **💰 Agent Economics**: Marketplace, wallets, and smart contracts
|
|
12
|
+
- **📈 Agent Lifecycle**: Birth through retirement with legacy preservation
|
|
13
|
+
- **🤝 Team Collaboration**: Multi-agent coordination
|
|
14
|
+
|
|
15
|
+
## Agent Genetics Examples
|
|
16
|
+
|
|
17
|
+
### 1. Simple Two-Parent Breeding
|
|
18
|
+
|
|
19
|
+
**File**: [`genetics-breeding-simple.ossa.yaml`](./genetics-breeding-simple.ossa.yaml)
|
|
20
|
+
|
|
21
|
+
**Demonstrates**:
|
|
22
|
+
- Basic two-parent breeding
|
|
23
|
+
- Complementary trait inheritance
|
|
24
|
+
- Generation 1 agent creation
|
|
25
|
+
- Fitness evaluation fundamentals
|
|
26
|
+
- Breeding eligibility criteria
|
|
27
|
+
|
|
28
|
+
**Scenario**:
|
|
29
|
+
```yaml
|
|
30
|
+
Parent 1 (Fast Reviewer): fitness 0.78 (speed: 0.92, accuracy: 0.73)
|
|
31
|
+
Parent 2 (Accurate Reviewer): fitness 0.81 (speed: 0.68, accuracy: 0.94)
|
|
32
|
+
Offspring (Balanced): fitness 0.86 (speed: 0.85, accuracy: 0.87)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Key Learning Points**:
|
|
36
|
+
- How to structure parent DIDs
|
|
37
|
+
- Trait attribution to specific parents
|
|
38
|
+
- Expression levels (0.0-1.0 scale)
|
|
39
|
+
- Calculating aggregate fitness scores
|
|
40
|
+
|
|
41
|
+
**Use This Example When**:
|
|
42
|
+
- Starting with agent genetics
|
|
43
|
+
- Learning basic breeding concepts
|
|
44
|
+
- Understanding trait inheritance
|
|
45
|
+
- Implementing simple fitness evaluation
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
### 2. Multi-Generation Evolution
|
|
50
|
+
|
|
51
|
+
**File**: [`genetics-breeding-advanced.ossa.yaml`](./genetics-breeding-advanced.ossa.yaml)
|
|
52
|
+
|
|
53
|
+
**Demonstrates**:
|
|
54
|
+
- Multi-generation breeding (Generation 5)
|
|
55
|
+
- Complete genealogical tree (62 ancestors)
|
|
56
|
+
- Beneficial mutations accumulation
|
|
57
|
+
- Fitness progression tracking
|
|
58
|
+
- Inbreeding analysis
|
|
59
|
+
- Elite breeding strategies
|
|
60
|
+
|
|
61
|
+
**Scenario**:
|
|
62
|
+
```yaml
|
|
63
|
+
Generation 0: 32 founder agents (fitness: 0.65 average)
|
|
64
|
+
Generation 1: 16 first-gen agents (fitness: 0.72 average)
|
|
65
|
+
Generation 2: 8 second-gen agents (fitness: 0.79 average)
|
|
66
|
+
Generation 3: 4 third-gen agents (fitness: 0.86 average)
|
|
67
|
+
Generation 4: 2 fourth-gen agents (fitness: 0.91 average)
|
|
68
|
+
Generation 5: 1 elite agent (fitness: 0.96)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Key Learning Points**:
|
|
72
|
+
- How to track complete lineage
|
|
73
|
+
- Managing ancestor DIDs across generations
|
|
74
|
+
- Mutation tracking and retention
|
|
75
|
+
- Generational fitness progression
|
|
76
|
+
- Inbreeding coefficient calculation
|
|
77
|
+
- Elite selection strategies
|
|
78
|
+
|
|
79
|
+
**Use This Example When**:
|
|
80
|
+
- Implementing long-term evolution
|
|
81
|
+
- Optimizing agent populations
|
|
82
|
+
- Tracking genetic diversity
|
|
83
|
+
- Analyzing breeding programs
|
|
84
|
+
- Planning multi-generation strategies
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
### 3. Fitness-Based Selection
|
|
89
|
+
|
|
90
|
+
**File**: [`genetics-fitness-scoring.ossa.yaml`](./genetics-fitness-scoring.oss.yaml)
|
|
91
|
+
|
|
92
|
+
**Demonstrates**:
|
|
93
|
+
- Multi-dimensional fitness evaluation
|
|
94
|
+
- Custom domain-specific metrics
|
|
95
|
+
- Weighted aggregate scoring
|
|
96
|
+
- Population-relative performance
|
|
97
|
+
- Tournament selection strategy
|
|
98
|
+
- Pareto frontier analysis
|
|
99
|
+
|
|
100
|
+
**Scenario**:
|
|
101
|
+
```yaml
|
|
102
|
+
Standard Metrics: speed (0.87), accuracy (0.92), efficiency (0.86), adaptability (0.88)
|
|
103
|
+
Custom Metrics: statistical_rigor (0.93), model_accuracy (0.91), interpretability (0.88)
|
|
104
|
+
Aggregate Score: 0.89 (weighted average across 12 metrics)
|
|
105
|
+
Population Rank: 88th percentile (top 12% of 250 agents)
|
|
106
|
+
Pareto Optimal: No (dominated by 1 agent with higher accuracy + efficiency)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Key Learning Points**:
|
|
110
|
+
- How to define custom fitness metrics
|
|
111
|
+
- Weighted scoring methodology
|
|
112
|
+
- Population-relative percentile ranking
|
|
113
|
+
- Multi-objective optimization (Pareto)
|
|
114
|
+
- Tournament selection implementation
|
|
115
|
+
- Elite metric identification
|
|
116
|
+
|
|
117
|
+
**Use This Example When**:
|
|
118
|
+
- Designing fitness functions
|
|
119
|
+
- Implementing selection strategies
|
|
120
|
+
- Comparing agents in populations
|
|
121
|
+
- Optimizing for multiple objectives
|
|
122
|
+
- Analyzing breeding candidate quality
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Related Documentation
|
|
127
|
+
|
|
128
|
+
### Tutorials
|
|
129
|
+
- **[Agent Genetics Tutorial](../../docs/tutorials/v0.3.6-agent-genetics.md)**: Comprehensive guide to evolutionary AI in OSSA
|
|
130
|
+
- Conceptual foundations (genetic algorithms, neuroevolution)
|
|
131
|
+
- Schema deep-dive (parents, traits, fitness, eligibility)
|
|
132
|
+
- Best practices for breeding programs
|
|
133
|
+
- Academic context and references
|
|
134
|
+
|
|
135
|
+
### Specification
|
|
136
|
+
- **[v0.3.6 Features Overview](../../docs/v0.3.6-features.md)**: Complete feature specification
|
|
137
|
+
- **[Migration Guide](../../spec/v0.3/MIGRATION-v0.3.5-to-v0.3.6.md)**: Upgrading from v0.3.5
|
|
138
|
+
- **[Schema Reference](../../spec/v0.3/ossa-0.3.6.schema.json)**: JSON Schema definitions
|
|
139
|
+
|
|
140
|
+
### Other v0.3.6 Examples
|
|
141
|
+
- **[Full-Featured Agent](./full-featured-v0.3.6.ossa.yaml)**: All v0.3.6 features in one manifest
|
|
142
|
+
- **[Economics Example](../economics/)**: Marketplace, wallets, contracts
|
|
143
|
+
- **[Lifecycle Example](../lifecycle/)**: Birth through retirement
|
|
144
|
+
- **[Swarm Example](../swarm/)**: Multi-agent coordination
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Quick Start
|
|
149
|
+
|
|
150
|
+
### 1. Validate Examples
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
# Validate simple breeding example
|
|
154
|
+
ossa validate examples/v0.3.6-features/genetics-breeding-simple.ossa.yaml
|
|
155
|
+
|
|
156
|
+
# Validate all genetics examples
|
|
157
|
+
ossa validate examples/v0.3.6-features/genetics-*.ossa.yaml
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### 2. Inspect Genetics
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# Show genetics information
|
|
164
|
+
ossa inspect genetics-breeding-simple.ossa.yaml --section genetics
|
|
165
|
+
|
|
166
|
+
# Analyze lineage
|
|
167
|
+
ossa lineage --agent genetics-breeding-advanced.ossa.yaml --show-tree
|
|
168
|
+
|
|
169
|
+
# Calculate inbreeding
|
|
170
|
+
ossa lineage --agent genetics-breeding-advanced.ossa.yaml --inbreeding
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### 3. Compare Fitness
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Compare two agents
|
|
177
|
+
ossa fitness compare \
|
|
178
|
+
genetics-breeding-simple.ossa.yaml \
|
|
179
|
+
genetics-fitness-scoring.ossa.yaml
|
|
180
|
+
|
|
181
|
+
# Analyze population
|
|
182
|
+
ossa fitness population examples/v0.3.6-features/genetics-*.ossa.yaml
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 4. Simulate Breeding
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Breed two agents (simulation)
|
|
189
|
+
ossa breed \
|
|
190
|
+
--parent1 genetics-breeding-simple.ossa.yaml \
|
|
191
|
+
--parent2 genetics-fitness-scoring.ossa.yaml \
|
|
192
|
+
--output offspring-gen4.ossa.yaml
|
|
193
|
+
|
|
194
|
+
# Evaluate offspring
|
|
195
|
+
ossa evaluate offspring-gen4.ossa.yaml --dataset validation-set.json
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Breeding Strategies Comparison
|
|
201
|
+
|
|
202
|
+
| Strategy | Selection Method | Diversity | Convergence | Use Case |
|
|
203
|
+
|----------|-----------------|-----------|-------------|----------|
|
|
204
|
+
| **Elite** | Top N agents | Low | Fast | Final optimization |
|
|
205
|
+
| **Tournament** | Random subsets | Medium | Medium | Ongoing evolution |
|
|
206
|
+
| **Roulette** | Fitness-proportionate | High | Slow | Early exploration |
|
|
207
|
+
| **Rank-based** | Rank ordering | Medium | Medium | Varied populations |
|
|
208
|
+
|
|
209
|
+
**Implemented in Examples**:
|
|
210
|
+
- `genetics-breeding-simple.ossa.yaml`: Complementary selection (manual)
|
|
211
|
+
- `genetics-breeding-advanced.ossa.yaml`: Elite selection (top performers)
|
|
212
|
+
- `genetics-fitness-scoring.ossa.yaml`: Tournament selection (k=5)
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## Fitness Metrics Catalog
|
|
217
|
+
|
|
218
|
+
### Standard Metrics (OSSA Core)
|
|
219
|
+
|
|
220
|
+
| Metric | Range | Description | Measurement |
|
|
221
|
+
|--------|-------|-------------|-------------|
|
|
222
|
+
| `speed` | 0.0-1.0 | Task completion velocity | Tasks/hour vs baseline |
|
|
223
|
+
| `accuracy` | 0.0-1.0 | Correctness of outputs | Precision & recall |
|
|
224
|
+
| `efficiency` | 0.0-1.0 | Resource utilization | 1 - (cost / baseline) |
|
|
225
|
+
| `adaptability` | 0.0-1.0 | Novel task performance | Performance on unseen data |
|
|
226
|
+
|
|
227
|
+
### Custom Metrics (Domain-Specific)
|
|
228
|
+
|
|
229
|
+
**Security Agents**:
|
|
230
|
+
- `vulnerability_detection_rate`: 0.0-1.0 (TP rate)
|
|
231
|
+
- `false_positive_rate`: 0.0-1.0 (invert: 1 - FP rate)
|
|
232
|
+
- `exploit_generation_quality`: 0.0-1.0 (expert ratings)
|
|
233
|
+
|
|
234
|
+
**Code Review Agents**:
|
|
235
|
+
- `bug_detection_accuracy`: 0.0-1.0 (validated bugs found)
|
|
236
|
+
- `review_thoroughness`: 0.0-1.0 (code coverage)
|
|
237
|
+
- `comment_helpfulness`: 0.0-1.0 (developer ratings)
|
|
238
|
+
|
|
239
|
+
**Data Analysis Agents** (see `genetics-fitness-scoring.ossa.yaml`):
|
|
240
|
+
- `statistical_rigor`: 0.0-1.0 (methodology soundness)
|
|
241
|
+
- `model_accuracy`: 0.0-1.0 (R², F1, AUC-ROC)
|
|
242
|
+
- `interpretability`: 0.0-1.0 (clarity of insights)
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Breeding Best Practices
|
|
247
|
+
|
|
248
|
+
### 1. Define Clear Fitness Metrics
|
|
249
|
+
|
|
250
|
+
✅ **Good**:
|
|
251
|
+
```yaml
|
|
252
|
+
fitness:
|
|
253
|
+
score: 0.89
|
|
254
|
+
metrics:
|
|
255
|
+
speed: 0.87 # Tasks/hour measured consistently
|
|
256
|
+
accuracy: 0.92 # F1 score on validation set
|
|
257
|
+
custom_metrics:
|
|
258
|
+
domain_metric: 0.85 # Well-defined domain measure
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
❌ **Bad**:
|
|
262
|
+
```yaml
|
|
263
|
+
fitness:
|
|
264
|
+
score: 0.89 # Unclear how calculated, no breakdown
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### 2. Maintain Genetic Diversity
|
|
268
|
+
|
|
269
|
+
- Use **tournament selection** (k=5-10) for balanced exploration/exploitation
|
|
270
|
+
- Monitor **inbreeding coefficient** (keep < 0.2)
|
|
271
|
+
- Introduce **outcrossing** every 3-5 generations
|
|
272
|
+
- Limit **generation depth** (max 10-15 for most applications)
|
|
273
|
+
|
|
274
|
+
### 3. Track Lineage Properly
|
|
275
|
+
|
|
276
|
+
```yaml
|
|
277
|
+
# Always include complete lineage
|
|
278
|
+
genetics:
|
|
279
|
+
generation: 3
|
|
280
|
+
parent_dids: [...] # Direct parents
|
|
281
|
+
ancestor_dids: [...] # All ancestors (2^(g+1) - 2)
|
|
282
|
+
inherited_traits: [...] # Attributed to parents
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### 4. Document Mutations
|
|
286
|
+
|
|
287
|
+
```yaml
|
|
288
|
+
mutations:
|
|
289
|
+
- mutation_type: capability_enhancement
|
|
290
|
+
description: "Specific capability added"
|
|
291
|
+
beneficial: true
|
|
292
|
+
generation_introduced: 3
|
|
293
|
+
introduced_by: "did:ossa:breeder-agent"
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### 5. Validate on Holdout Data
|
|
297
|
+
|
|
298
|
+
```python
|
|
299
|
+
# Prevent overfitting
|
|
300
|
+
training_fitness = evaluate(agent, training_set)
|
|
301
|
+
validation_fitness = evaluate(agent, validation_set)
|
|
302
|
+
|
|
303
|
+
if training_fitness - validation_fitness > 0.15:
|
|
304
|
+
warnings.warn("Agent may be overfitted")
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
## Common Patterns
|
|
310
|
+
|
|
311
|
+
### Pattern 1: Complementary Trait Breeding
|
|
312
|
+
|
|
313
|
+
**Goal**: Combine strengths from two specialists
|
|
314
|
+
|
|
315
|
+
```yaml
|
|
316
|
+
# Parent 1: Fast but less accurate
|
|
317
|
+
# Parent 2: Accurate but slower
|
|
318
|
+
# Offspring: Balanced (inherits best of both)
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
**Example**: `genetics-breeding-simple.ossa.yaml`
|
|
322
|
+
|
|
323
|
+
### Pattern 2: Multi-Generation Optimization
|
|
324
|
+
|
|
325
|
+
**Goal**: Continuously improve over many generations
|
|
326
|
+
|
|
327
|
+
```yaml
|
|
328
|
+
# Gen 0 → Gen 1 → Gen 2 → ... → Gen N
|
|
329
|
+
# Each generation selects top performers as parents
|
|
330
|
+
# Track fitness progression: 0.65 → 0.72 → 0.79 → 0.86 → 0.91 → 0.96
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
**Example**: `genetics-breeding-advanced.ossa.yaml`
|
|
334
|
+
|
|
335
|
+
### Pattern 3: Tournament Selection
|
|
336
|
+
|
|
337
|
+
**Goal**: Maintain diversity while selecting for fitness
|
|
338
|
+
|
|
339
|
+
```bash
|
|
340
|
+
# 1. Randomly sample k agents from population
|
|
341
|
+
# 2. Select the fittest from the k agents
|
|
342
|
+
# 3. Repeat to get second parent
|
|
343
|
+
# 4. Breed the two selected parents
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
**Example**: `genetics-fitness-scoring.ossa.yaml`
|
|
347
|
+
|
|
348
|
+
### Pattern 4: Pareto Optimization
|
|
349
|
+
|
|
350
|
+
**Goal**: Optimize for multiple conflicting objectives
|
|
351
|
+
|
|
352
|
+
```yaml
|
|
353
|
+
# Objectives: accuracy (maximize), efficiency (maximize)
|
|
354
|
+
# Find agents on Pareto frontier (no dominated solutions)
|
|
355
|
+
# Trade-offs: High accuracy + low efficiency vs. Low accuracy + high efficiency
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
**Example**: `genetics-fitness-scoring.ossa.yaml` (Pareto analysis section)
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
## Troubleshooting
|
|
363
|
+
|
|
364
|
+
### Issue: Fitness Stagnates After Few Generations
|
|
365
|
+
|
|
366
|
+
**Symptoms**: Fitness stops improving after Gen 3-5
|
|
367
|
+
|
|
368
|
+
**Causes**:
|
|
369
|
+
- Genetic bottleneck (too few parents)
|
|
370
|
+
- Premature convergence (elite selection too aggressive)
|
|
371
|
+
- Local optimum (insufficient exploration)
|
|
372
|
+
|
|
373
|
+
**Solutions**:
|
|
374
|
+
- Increase population size
|
|
375
|
+
- Use tournament selection instead of elite selection
|
|
376
|
+
- Introduce mutations (5-10% mutation rate)
|
|
377
|
+
- Outcross with unrelated agents
|
|
378
|
+
|
|
379
|
+
### Issue: High Inbreeding Coefficient
|
|
380
|
+
|
|
381
|
+
**Symptoms**: `inbreeding_coefficient > 0.3`
|
|
382
|
+
|
|
383
|
+
**Causes**:
|
|
384
|
+
- Small founding population
|
|
385
|
+
- Repeated breeding of same elite agents
|
|
386
|
+
- Insufficient genetic diversity
|
|
387
|
+
|
|
388
|
+
**Solutions**:
|
|
389
|
+
- Introduce new founder agents
|
|
390
|
+
- Use larger tournament sizes (k=10+)
|
|
391
|
+
- Enforce minimum genetic distance between parents
|
|
392
|
+
- Outcross every 3 generations
|
|
393
|
+
|
|
394
|
+
### Issue: Overfitting to Training Data
|
|
395
|
+
|
|
396
|
+
**Symptoms**: High training fitness, low validation fitness
|
|
397
|
+
|
|
398
|
+
**Causes**:
|
|
399
|
+
- Breeding optimized for training set only
|
|
400
|
+
- Lack of diversity in breeding tasks
|
|
401
|
+
- Too many generations without fresh data
|
|
402
|
+
|
|
403
|
+
**Solutions**:
|
|
404
|
+
- Validate on holdout datasets
|
|
405
|
+
- Use cross-validation for fitness evaluation
|
|
406
|
+
- Introduce novel tasks periodically
|
|
407
|
+
- Track `adaptability` metric explicitly
|
|
408
|
+
|
|
409
|
+
---
|
|
410
|
+
|
|
411
|
+
## Academic References
|
|
412
|
+
|
|
413
|
+
- **Eiben & Smith (2015)**: *Introduction to Evolutionary Computing* - Foundational text
|
|
414
|
+
- **Deb et al. (2002)**: NSGA-II algorithm for multi-objective optimization
|
|
415
|
+
- **Stanley & Miikkulainen (2002)**: NEAT (NeuroEvolution of Augmenting Topologies)
|
|
416
|
+
- **Koza (1992)**: *Genetic Programming* - Evolving programs through selection
|
|
417
|
+
|
|
418
|
+
See **[Agent Genetics Tutorial](../../docs/tutorials/v0.3.6-agent-genetics.md)** for complete references.
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
## Contributing
|
|
423
|
+
|
|
424
|
+
Found an issue or have a suggestion? Open an issue at:
|
|
425
|
+
https://gitlab.com/blueflyio/openstandardagents/-/issues
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
**License**: MIT License — Copyright © 2026 Bluefly IO
|
|
430
|
+
|
|
431
|
+
**Version**: OSSA v0.3.6
|
|
432
|
+
|
|
433
|
+
**Last Updated**: 2026-01-27
|