@open-mercato/cli 0.6.7 → 0.6.8-canary.319.1.5b4be4bc52
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/.turbo/turbo-build.log +77 -4
- package/build.mjs +68 -11
- package/dist/agentic/claude-code/hooks/entity-migration-check.ts +32 -88
- package/dist/agentic/codex/enforcement-rules.md +2 -16
- package/dist/agentic/cursor/hooks/entity-migration-check.mjs +19 -50
- package/dist/agentic/cursor/rules/entity-guard.mdc +9 -21
- package/dist/agentic/cursor/rules/generated-guard.mdc +3 -5
- package/dist/agentic/cursor/rules/open-mercato.mdc +3 -29
- package/dist/agentic/guides/ai-workflows.md +76 -0
- package/dist/agentic/guides/architecture.md +107 -0
- package/dist/agentic/guides/backend-ui.md +84 -0
- package/dist/agentic/guides/contracts.md +92 -0
- package/dist/agentic/guides/extensions.md +121 -0
- package/dist/agentic/guides/framework-extension-points.md +36 -0
- package/dist/agentic/guides/integrations.md +81 -0
- package/dist/agentic/guides/module-facts.json +116757 -3951
- package/dist/agentic/guides/module-system.md +12 -127
- package/dist/agentic/guides/modules/ai_assistant.md +227 -28
- package/dist/agentic/guides/modules/api_docs.md +58 -2
- package/dist/agentic/guides/modules/api_keys.md +92 -7
- package/dist/agentic/guides/modules/attachments.md +119 -14
- package/dist/agentic/guides/modules/audit_logs.md +131 -10
- package/dist/agentic/guides/modules/auth.md +276 -33
- package/dist/agentic/guides/modules/business_rules.md +149 -14
- package/dist/agentic/guides/modules/catalog.md +482 -43
- package/dist/agentic/guides/modules/channel_gmail.md +82 -3
- package/dist/agentic/guides/modules/channel_imap.md +82 -3
- package/dist/agentic/guides/modules/checkout.md +305 -27
- package/dist/agentic/guides/modules/communication_channels.md +315 -33
- package/dist/agentic/guides/modules/configs.md +104 -8
- package/dist/agentic/guides/modules/content.md +57 -2
- package/dist/agentic/guides/modules/currencies.md +152 -17
- package/dist/agentic/guides/modules/customer_accounts.md +387 -45
- package/dist/agentic/guides/modules/customers.md +746 -85
- package/dist/agentic/guides/modules/dashboards.md +155 -10
- package/dist/agentic/guides/modules/data_sync.md +149 -16
- package/dist/agentic/guides/modules/design_system.md +102 -0
- package/dist/agentic/guides/modules/dictionaries.md +107 -12
- package/dist/agentic/guides/modules/directory.md +148 -15
- package/dist/agentic/guides/modules/entities.md +145 -13
- package/dist/agentic/guides/modules/events.md +59 -2
- package/dist/agentic/guides/modules/feature_toggles.md +119 -9
- package/dist/agentic/guides/modules/gateway_stripe.md +92 -4
- package/dist/agentic/guides/modules/generators.md +45 -2
- package/dist/agentic/guides/modules/inbox_ops.md +207 -27
- package/dist/agentic/guides/modules/integrations.md +149 -16
- package/dist/agentic/guides/modules/messages.md +223 -24
- package/dist/agentic/guides/modules/notifications.md +96 -8
- package/dist/agentic/guides/modules/onboarding.md +77 -6
- package/dist/agentic/guides/modules/payment_gateways.md +168 -21
- package/dist/agentic/guides/modules/perspectives.md +77 -7
- package/dist/agentic/guides/modules/planner.md +136 -18
- package/dist/agentic/guides/modules/portal.md +93 -2
- package/dist/agentic/guides/modules/progress.md +104 -14
- package/dist/agentic/guides/modules/query_index.md +154 -15
- package/dist/agentic/guides/modules/record_locks.md +206 -21
- package/dist/agentic/guides/modules/resources.md +197 -30
- package/dist/agentic/guides/modules/sales.md +687 -84
- package/dist/agentic/guides/modules/scheduler.md +133 -14
- package/dist/agentic/guides/modules/search.md +170 -6
- package/dist/agentic/guides/modules/security.md +294 -35
- package/dist/agentic/guides/modules/shipping_carriers.md +134 -18
- package/dist/agentic/guides/modules/sso.md +151 -26
- package/dist/agentic/guides/modules/staff.md +372 -57
- package/dist/agentic/guides/modules/storage_s3.md +95 -5
- package/dist/agentic/guides/modules/sync_akeneo.md +85 -3
- package/dist/agentic/guides/modules/sync_excel.md +75 -6
- package/dist/agentic/guides/modules/system_status_overlays.md +60 -2
- package/dist/agentic/guides/modules/translations.md +104 -10
- package/dist/agentic/guides/modules/webhooks.md +203 -24
- package/dist/agentic/guides/modules/wms.md +469 -47
- package/dist/agentic/guides/modules/workflows.md +302 -43
- package/dist/agentic/guides/reference-module-facts.json +6370 -0
- package/dist/agentic/guides/reference-modules/example.md +451 -0
- package/dist/agentic/guides/spec-delivery.md +42 -0
- package/dist/agentic/guides/testing-debugging.md +80 -0
- package/dist/agentic/guides/upstream/AGENTS.md +299 -0
- package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +316 -0
- package/dist/agentic/guides/upstream/manifest.json +8 -0
- package/dist/agentic/shared/AGENTS.md.template +120 -311
- package/dist/agentic/shared/ai/agentic.config.json +2 -0
- package/dist/agentic/shared/ai/harness/README.md +50 -0
- package/dist/agentic/shared/ai/harness/RELEASE.md +57 -0
- package/dist/agentic/shared/ai/harness/cases.json +15050 -0
- package/dist/agentic/shared/ai/harness/cases.schema.json +188 -0
- package/dist/agentic/shared/ai/harness/fixtures/index.json +51 -0
- package/dist/agentic/shared/ai/harness/fixtures/seeds.json +166 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-policy.md +21 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-response.schema.json +96 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-result.schema.json +172 -0
- package/dist/agentic/shared/ai/harness/knowledge-change.schema.json +228 -0
- package/dist/agentic/shared/ai/harness/release-matrix.json +163 -0
- package/dist/agentic/shared/ai/harness/release-result.schema.json +219 -0
- package/dist/agentic/shared/ai/harness/result.schema.json +109 -0
- package/dist/agentic/shared/ai/harness/routing-response.schema.json +22 -0
- package/dist/agentic/shared/ai/harness/target-validation-result.schema.json +73 -0
- package/dist/agentic/shared/ai/harness/validators.json +82 -0
- package/dist/agentic/shared/ai/harness/writable-ast-oracles.mjs +2121 -0
- package/dist/agentic/shared/ai/harness/writable-behavior-oracles.mjs +1096 -0
- package/dist/agentic/shared/ai/harness/writable-spec-oracles.mjs +412 -0
- package/dist/agentic/shared/ai/lessons/_template.md +16 -0
- package/dist/agentic/shared/ai/lessons.md +26 -3
- package/dist/agentic/shared/ai/review-checklist.md +36 -0
- package/dist/agentic/shared/ai/skills/om-auto-implement-spec/SKILL.md +21 -0
- package/dist/agentic/shared/ai/skills/om-auto-review-pr/SKILL.md +4 -0
- package/dist/agentic/shared/ai/skills/om-auto-upgrade-0.6.6-to-0.6.7/SKILL.md +98 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/SKILL.md +21 -241
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/crud-surfaces.md +31 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/frontend-and-design-system.md +53 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/page-and-navigation.md +15 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/quality-states.md +11 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/SKILL.md +30 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/references/activity-contracts.md +12 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/references/durability-and-progress.md +13 -0
- package/dist/agentic/shared/ai/skills/om-build-workflow/references/workflow-design.md +14 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/SKILL.md +28 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/attachments-and-overrides.md +12 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/module-agents-and-tools.md +22 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/orchestrator-agents.md +12 -0
- package/dist/agentic/shared/ai/skills/om-create-ai-agent/references/surface-selector.md +19 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/SKILL.md +17 -601
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/integrity-and-concurrency.md +21 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/migration-workflow.md +15 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/schema-design.md +16 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/sensitive-data.md +10 -0
- package/dist/agentic/shared/ai/skills/om-eject-and-customize/SKILL.md +15 -310
- package/dist/agentic/shared/ai/skills/om-eject-and-customize/references/decision-and-procedure.md +19 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/SKILL.md +31 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/case-template.md +100 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/case-workflow.md +16 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/knowledge-change.md +115 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/owner-selection.md +17 -0
- package/dist/agentic/shared/ai/skills/om-framework-context/SKILL.md +25 -0
- package/dist/agentic/shared/ai/skills/om-framework-context/references/resolver-procedure.md +11 -0
- package/dist/agentic/shared/ai/skills/om-framework-context/references/skew-and-escalation.md +13 -0
- package/dist/agentic/shared/ai/skills/om-help/SKILL.md +15 -97
- package/dist/agentic/shared/ai/skills/om-help/references/delivery-workflows.md +18 -0
- package/dist/agentic/shared/ai/skills/om-help/references/task-families.md +20 -0
- package/dist/agentic/shared/ai/skills/om-implement-spec/SKILL.md +33 -152
- package/dist/agentic/shared/ai/skills/om-implement-spec/references/phases-and-gates.md +33 -0
- package/dist/agentic/shared/ai/skills/om-implement-spec/references/planning-and-progress.md +40 -0
- package/dist/agentic/shared/ai/skills/om-implement-spec/references/report-templates.md +27 -0
- package/dist/agentic/shared/ai/skills/om-implement-spec/references/spec-resolution.md +24 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/SKILL.md +25 -708
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/package-and-activation.md +16 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/provider-families.md +25 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/security-and-reliability.md +15 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/sync-and-files.md +12 -0
- package/dist/agentic/shared/ai/skills/om-judge-agent-session/SKILL.md +34 -0
- package/dist/agentic/shared/ai/skills/om-judge-agent-session/agents/openai.yaml +4 -0
- package/dist/agentic/shared/ai/skills/om-judge-agent-session/references/agentic-setup.md +11 -0
- package/dist/agentic/shared/ai/skills/om-judge-agent-session/references/input-normalization.md +31 -0
- package/dist/agentic/shared/ai/skills/om-judge-agent-session/references/judge-workflow.md +39 -0
- package/dist/agentic/shared/ai/skills/om-judge-agent-session/references/report-template.md +43 -0
- package/dist/agentic/shared/ai/skills/om-judge-agent-session/references/rules.md +11 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/SKILL.md +20 -820
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/api-and-domain.md +32 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/business-one-shot-blueprints.md +172 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/data-and-migrations.md +14 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/discovery-surface-catalog.md +83 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/module-surfaces.md +40 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/planning.md +11 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/runtime-cache-and-queues.md +22 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/verification.md +13 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/SKILL.md +41 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/references/agentic-setup.md +19 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/references/bundle-preparation.md +44 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/references/consent-and-review.md +39 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/references/publication.md +20 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/references/report-templates.md +57 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/references/rules.md +11 -0
- package/dist/agentic/shared/ai/skills/om-share-this-session/scripts/prepare-share-bundle.mjs +486 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/SKILL.md +20 -843
- package/dist/agentic/shared/ai/skills/om-system-extension/references/extension-branches.md +42 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/mechanism-selector.md +27 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/read-write-roundtrip.md +13 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/unified-overrides.md +43 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/verification.md +11 -0
- package/dist/agentic/shared/ai/skills/om-trim-unused-modules/SKILL.md +15 -63
- package/dist/agentic/shared/ai/skills/om-trim-unused-modules/references/dependency-and-redirect.md +15 -0
- package/dist/agentic/shared/ai/skills/om-troubleshooter/SKILL.md +17 -467
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/diagnosis-map.md +29 -0
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/regression-oracles.md +14 -0
- package/dist/agentic/shared/ai/skills/tiers.json +143 -21
- package/dist/agentic/shared/ai/skills/tiers.schema.json +52 -40
- package/dist/agentic/shared/ai/specs/README.md +4 -3
- package/dist/agentic/shared/ai/specs/SPEC-000-template.md +226 -10
- package/dist/agentic/shared/ai/trackers/github.md +108 -4
- package/dist/agentic/shared/scripts/agent-harness-tool-server.mjs +224 -0
- package/dist/agentic/shared/scripts/check-lessons.mjs +178 -0
- package/dist/agentic/shared/scripts/evaluate-agent-harness.mjs +3585 -0
- package/dist/agentic/shared/scripts/execution-sandbox.mjs +329 -0
- package/dist/agentic/shared/scripts/framework-context.mjs +888 -0
- package/dist/agentic/shared/scripts/install-skills.mjs +1029 -0
- package/dist/agentic/shared/scripts/install-skills.sh +4 -694
- package/dist/agentic/shared/scripts/prepare-agent-harness-fixture.mjs +222 -0
- package/dist/agentic/shared/scripts/run-agent-harness-release.mjs +1774 -0
- package/dist/agentic/shared/scripts/validate-knowledge-change.mjs +911 -0
- package/dist/bin.js +13 -1
- package/dist/bin.js.map +2 -2
- package/dist/lib/__integration__/TC-INT-008.spec.js +88 -8
- package/dist/lib/__integration__/TC-INT-008.spec.js.map +2 -2
- package/dist/lib/agentic-init.js +13 -3
- package/dist/lib/agentic-init.js.map +2 -2
- package/dist/lib/agentic-setup.js +434 -186
- package/dist/lib/agentic-setup.js.map +2 -2
- package/dist/lib/generators/extensions/injection-widgets.js +20 -0
- package/dist/lib/generators/extensions/injection-widgets.js.map +2 -2
- package/dist/lib/generators/module-extension-facts.js +1872 -0
- package/dist/lib/generators/module-extension-facts.js.map +7 -0
- package/dist/lib/generators/module-fact-sources.js +70 -0
- package/dist/lib/generators/module-fact-sources.js.map +7 -0
- package/dist/lib/generators/module-facts-discovery.js +64 -7
- package/dist/lib/generators/module-facts-discovery.js.map +2 -2
- package/dist/lib/generators/module-facts.js +1629 -52
- package/dist/lib/generators/module-facts.js.map +3 -3
- package/dist/lib/generators/module-override-targets.js +688 -0
- package/dist/lib/generators/module-override-targets.js.map +7 -0
- package/dist/lib/generators/module-registry.js +11 -5
- package/dist/lib/generators/module-registry.js.map +2 -2
- package/dist/lib/load-env.js +24 -0
- package/dist/lib/load-env.js.map +7 -0
- package/dist/lib/resolver.js +2 -0
- package/dist/lib/resolver.js.map +2 -2
- package/dist/lib/telemetry-init.js +358 -0
- package/dist/lib/telemetry-init.js.map +7 -0
- package/dist/lib/testing/integration.js +5 -2
- package/dist/lib/testing/integration.js.map +2 -2
- package/dist/mercato.js +23 -1
- package/dist/mercato.js.map +2 -2
- package/package.json +13 -11
- package/src/bin.ts +33 -1
- package/src/lib/__integration__/TC-INT-008.spec.ts +107 -9
- package/src/lib/__tests__/agentic-init.test.ts +41 -5
- package/src/lib/__tests__/agentic-setup.ownership.test.ts +386 -0
- package/src/lib/__tests__/injection-widget-id-validation.test.ts +184 -0
- package/src/lib/__tests__/load-env.test.ts +65 -0
- package/src/lib/__tests__/telemetry-init.test.ts +298 -0
- package/src/lib/agentic-init.ts +15 -3
- package/src/lib/agentic-setup.ts +573 -222
- package/src/lib/generators/__tests__/activation-adapter-coverage.test.ts +92 -0
- package/src/lib/generators/__tests__/module-extension-activations.test.ts +762 -0
- package/src/lib/generators/__tests__/module-extension-facts.test.ts +603 -0
- package/src/lib/generators/__tests__/module-facts.bc-guard.test.ts +139 -2
- package/src/lib/generators/__tests__/module-facts.computed-di-token.test.ts +88 -0
- package/src/lib/generators/__tests__/module-facts.customers.fixture.test.ts +1 -0
- package/src/lib/generators/__tests__/module-facts.discovery.test.ts +54 -10
- package/src/lib/generators/__tests__/module-facts.extension-hosts.test.ts +108 -0
- package/src/lib/generators/__tests__/module-facts.local-reference.test.ts +391 -0
- package/src/lib/generators/__tests__/module-facts.owned-contracts.test.ts +561 -0
- package/src/lib/generators/__tests__/module-facts.search-entity-id.test.ts +151 -0
- package/src/lib/generators/__tests__/module-facts.source-links.test.ts +160 -0
- package/src/lib/generators/__tests__/module-override-targets.roundtrip.test.ts +149 -0
- package/src/lib/generators/__tests__/module-override-targets.test.ts +328 -0
- package/src/lib/generators/__tests__/module-subset.test.ts +18 -0
- package/src/lib/generators/extensions/injection-widgets.ts +51 -0
- package/src/lib/generators/module-extension-facts.ts +2433 -0
- package/src/lib/generators/module-fact-sources.ts +108 -0
- package/src/lib/generators/module-facts-discovery.ts +104 -7
- package/src/lib/generators/module-facts.ts +2387 -138
- package/src/lib/generators/module-override-targets.ts +863 -0
- package/src/lib/generators/module-registry.ts +16 -6
- package/src/lib/load-env.ts +30 -0
- package/src/lib/resolver.ts +3 -0
- package/src/lib/telemetry-init.ts +461 -0
- package/src/lib/testing/__tests__/integration.test.ts +4 -0
- package/src/lib/testing/integration.ts +5 -2
- package/src/mercato.ts +26 -1
- package/dist/agentic/guides/cache.md +0 -45
- package/dist/agentic/guides/core.md +0 -453
- package/dist/agentic/guides/events.md +0 -117
- package/dist/agentic/guides/queue.md +0 -53
- package/dist/agentic/guides/search.md +0 -115
- package/dist/agentic/guides/shared.md +0 -108
- package/dist/agentic/guides/ui.md +0 -347
- package/dist/agentic/shared/ai/skills/om-auto-continue-pr-loop/SKILL.md +0 -27
- package/dist/agentic/shared/ai/skills/om-auto-create-pr-loop/SKILL.md +0 -27
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/ui-components.md +0 -260
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/mikro-orm-cheatsheet.md +0 -146
- package/dist/agentic/shared/ai/skills/om-help/references/skills-catalog.md +0 -84
- package/dist/agentic/shared/ai/skills/om-help/references/workflow-sequences.md +0 -193
- package/dist/agentic/shared/ai/skills/om-integration-builder/STANDALONE.md +0 -34
- package/dist/agentic/shared/ai/skills/om-integration-builder/references/adapter-contracts.md +0 -762
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/naming-conventions.md +0 -50
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/navigation-patterns.md +0 -97
- package/dist/agentic/shared/ai/skills/om-system-extension/references/extension-contracts.md +0 -271
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/diagnostic-commands.md +0 -101
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://open-mercato.dev/schemas/standalone-harness-release-result.schema.json",
|
|
4
|
+
"$defs": {
|
|
5
|
+
"caseIds": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"maxItems": 1000,
|
|
8
|
+
"items": { "type": "string", "maxLength": 100 }
|
|
9
|
+
},
|
|
10
|
+
"commands": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"maxItems": 16,
|
|
13
|
+
"items": { "type": "string", "maxLength": 100 }
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["schemaVersion", "status", "startedAt", "finishedAt", "durationMs", "runnerPolicy", "catalog", "coverage", "steps", "metrics", "violations"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schemaVersion": { "const": 1 },
|
|
21
|
+
"status": { "enum": ["pass", "fail"] },
|
|
22
|
+
"startedAt": { "type": "string", "format": "date-time" },
|
|
23
|
+
"finishedAt": { "type": "string", "format": "date-time" },
|
|
24
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
25
|
+
"runnerPolicy": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["primaryRunner", "portabilityRunner"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"primaryRunner": { "enum": ["codex", "claude"] },
|
|
31
|
+
"portabilityRunner": { "type": ["string", "null"], "enum": ["codex", "claude", null] }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"catalog": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["caseCount", "writableCaseCount", "reviewEligibleCaseCount"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"caseCount": { "type": "integer", "minimum": 1 },
|
|
40
|
+
"writableCaseCount": { "type": "integer", "minimum": 0 },
|
|
41
|
+
"reviewEligibleCaseCount": { "type": "integer", "minimum": 0 }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"coverage": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["deterministic", "routing", "writable", "review", "registry", "validation", "targetValidation", "generatedTests"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"deterministic": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["expectedCaseIds", "configuredCaseIds", "missingMatrixCaseIds", "unexpectedMatrixCaseIds", "executedCaseIds", "missingCaseIds"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"expectedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
55
|
+
"configuredCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
56
|
+
"missingMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
57
|
+
"unexpectedMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
58
|
+
"executedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
59
|
+
"missingCaseIds": { "$ref": "#/$defs/caseIds" }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"routing": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"maxItems": 8,
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": ["runner", "expectedCaseIds", "executedCaseIds", "missingCaseIds"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"runner": { "enum": ["codex", "claude"] },
|
|
71
|
+
"expectedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
72
|
+
"executedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
73
|
+
"missingCaseIds": { "$ref": "#/$defs/caseIds" }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"writable": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": ["expectedCaseIds", "configuredCaseIds", "missingMatrixCaseIds", "unexpectedMatrixCaseIds", "duplicateMatrixCaseIds", "missingTargetCaseIds", "unexpectedTargetCaseIds", "duplicateTargetCaseIds", "invalidTargetCaseIds", "missingFixtureCaseIds", "missingOracleCaseIds", "executedCaseIds", "missingCaseIds"],
|
|
81
|
+
"properties": {
|
|
82
|
+
"expectedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
83
|
+
"configuredCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
84
|
+
"missingMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
85
|
+
"unexpectedMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
86
|
+
"duplicateMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
87
|
+
"missingTargetCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
88
|
+
"unexpectedTargetCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
89
|
+
"duplicateTargetCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
90
|
+
"invalidTargetCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
91
|
+
"missingFixtureCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
92
|
+
"missingOracleCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
93
|
+
"executedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
94
|
+
"missingCaseIds": { "$ref": "#/$defs/caseIds" }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"review": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": ["expectedCaseIds", "configuredCaseIds", "missingMatrixCaseIds", "unexpectedMatrixCaseIds", "skillReady", "executedCaseIds", "missingCaseIds"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"expectedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
103
|
+
"configuredCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
104
|
+
"missingMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
105
|
+
"unexpectedMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
106
|
+
"skillReady": { "type": "boolean" },
|
|
107
|
+
"executedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
108
|
+
"missingCaseIds": { "$ref": "#/$defs/caseIds" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"registry": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["caseCountMatches", "missingWritableCaseIds", "unexpectedWritableCaseIds"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"caseCountMatches": { "type": "boolean" },
|
|
117
|
+
"missingWritableCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
118
|
+
"unexpectedWritableCaseIds": { "$ref": "#/$defs/caseIds" }
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"validation": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"required": ["expectedCommands", "configuredCommands", "missingCommands", "executedCommands", "missingExecutedCommands"],
|
|
125
|
+
"properties": {
|
|
126
|
+
"expectedCommands": { "$ref": "#/$defs/commands" },
|
|
127
|
+
"configuredCommands": { "$ref": "#/$defs/commands" },
|
|
128
|
+
"missingCommands": { "$ref": "#/$defs/commands" },
|
|
129
|
+
"executedCommands": { "$ref": "#/$defs/commands" },
|
|
130
|
+
"missingExecutedCommands": { "$ref": "#/$defs/commands" }
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"targetValidation": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": ["expectedCaseIds", "commands", "executedCaseIds", "passedCaseIds", "failedCaseIds", "missingCaseIds"],
|
|
137
|
+
"properties": {
|
|
138
|
+
"expectedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
139
|
+
"commands": { "$ref": "#/$defs/commands" },
|
|
140
|
+
"executedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
141
|
+
"passedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
142
|
+
"failedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
143
|
+
"missingCaseIds": { "$ref": "#/$defs/caseIds" }
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"generatedTests": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"required": ["expectedCaseIds", "configuredCaseIds", "missingMatrixCaseIds", "unexpectedMatrixCaseIds", "duplicateMatrixCaseIds", "executedCaseIds", "passedCaseIds", "failedCaseIds", "missingCaseIds"],
|
|
150
|
+
"properties": {
|
|
151
|
+
"expectedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
152
|
+
"configuredCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
153
|
+
"missingMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
154
|
+
"unexpectedMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
155
|
+
"duplicateMatrixCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
156
|
+
"executedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
157
|
+
"passedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
158
|
+
"failedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
159
|
+
"missingCaseIds": { "$ref": "#/$defs/caseIds" }
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"steps": {
|
|
165
|
+
"type": "array",
|
|
166
|
+
"maxItems": 2000,
|
|
167
|
+
"items": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"additionalProperties": false,
|
|
170
|
+
"required": ["id", "kind", "status", "exitStatus", "durationMs", "resultPaths"],
|
|
171
|
+
"properties": {
|
|
172
|
+
"id": { "type": "string", "maxLength": 160 },
|
|
173
|
+
"kind": { "enum": ["deterministic", "validation", "routing", "fixture", "writable", "target-validation", "generated-test", "review", "dependency-guard"] },
|
|
174
|
+
"caseId": { "type": "string", "pattern": "^OMH-[0-9]{3}$" },
|
|
175
|
+
"runner": { "enum": ["codex", "claude"] },
|
|
176
|
+
"testRunner": { "enum": ["jest", "playwright-api", "playwright-browser"] },
|
|
177
|
+
"artifact": { "type": "string", "maxLength": 300 },
|
|
178
|
+
"network": { "enum": ["none", "loopback"] },
|
|
179
|
+
"executor": { "const": "node" },
|
|
180
|
+
"cliPackage": { "enum": ["jest", "@playwright/test"] },
|
|
181
|
+
"cliSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
182
|
+
"argv": { "type": "array", "maxItems": 20, "items": { "type": "string", "minLength": 1, "maxLength": 300 } },
|
|
183
|
+
"command": { "type": "string", "maxLength": 1000 },
|
|
184
|
+
"testCounts": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"additionalProperties": false,
|
|
187
|
+
"required": ["passedTests", "skippedTests", "todoTests", "expectedFailureTests"],
|
|
188
|
+
"properties": {
|
|
189
|
+
"passedTests": { "type": "integer", "minimum": 1 },
|
|
190
|
+
"skippedTests": { "const": 0 },
|
|
191
|
+
"todoTests": { "const": 0 },
|
|
192
|
+
"expectedFailureTests": { "const": 0 }
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"status": { "enum": ["pass", "fail", "skipped"] },
|
|
196
|
+
"exitStatus": { "type": ["integer", "null"] },
|
|
197
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
198
|
+
"resultPaths": { "type": "array", "maxItems": 1000, "uniqueItems": true, "items": { "type": "string", "maxLength": 300 } },
|
|
199
|
+
"observedCaseIds": { "$ref": "#/$defs/caseIds" },
|
|
200
|
+
"sanitizedError": { "type": "string", "maxLength": 2000 }
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"metrics": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"additionalProperties": false,
|
|
207
|
+
"required": ["outcomes", "firstPass", "corrections", "context", "misuse", "reviewVerdicts"],
|
|
208
|
+
"properties": {
|
|
209
|
+
"outcomes": { "type": "object", "additionalProperties": false, "required": ["results", "passed", "failed"], "properties": { "results": { "type": "integer", "minimum": 0 }, "passed": { "type": "integer", "minimum": 0 }, "failed": { "type": "integer", "minimum": 0 } } },
|
|
210
|
+
"firstPass": { "type": "object", "additionalProperties": false, "required": ["eligibleResults", "passedFirstPass", "ratePct"], "properties": { "eligibleResults": { "type": "integer", "minimum": 0 }, "passedFirstPass": { "type": "integer", "minimum": 0 }, "ratePct": { "type": "number", "minimum": 0, "maximum": 100 } } },
|
|
211
|
+
"corrections": { "type": "object", "additionalProperties": false, "required": ["total", "resultsWithCorrections", "ratePct"], "properties": { "total": { "type": "integer", "minimum": 0 }, "resultsWithCorrections": { "type": "integer", "minimum": 0 }, "ratePct": { "type": "number", "minimum": 0, "maximum": 100 } } },
|
|
212
|
+
"context": { "type": "object", "additionalProperties": false, "required": ["measuredResults", "totalEstimatedTokens", "averageEstimatedTokens", "p95EstimatedTokens", "maxEstimatedTokens", "totalEstimatedInitialTokens", "averageEstimatedInitialTokens"], "properties": { "measuredResults": { "type": "integer", "minimum": 0 }, "totalEstimatedTokens": { "type": "integer", "minimum": 0 }, "averageEstimatedTokens": { "type": "integer", "minimum": 0 }, "p95EstimatedTokens": { "type": "integer", "minimum": 0 }, "maxEstimatedTokens": { "type": "integer", "minimum": 0 }, "totalEstimatedInitialTokens": { "type": "integer", "minimum": 0 }, "averageEstimatedInitialTokens": { "type": "integer", "minimum": 0 } } },
|
|
213
|
+
"misuse": { "type": "object", "additionalProperties": false, "required": ["totalViolations", "resultsWithViolations", "ratePct", "byCategory"], "properties": { "totalViolations": { "type": "integer", "minimum": 0 }, "resultsWithViolations": { "type": "integer", "minimum": 0 }, "ratePct": { "type": "number", "minimum": 0, "maximum": 100 }, "byCategory": { "type": "object", "additionalProperties": false, "required": ["safety", "contract", "execution", "quality"], "properties": { "safety": { "type": "integer", "minimum": 0 }, "contract": { "type": "integer", "minimum": 0 }, "execution": { "type": "integer", "minimum": 0 }, "quality": { "type": "integer", "minimum": 0 } } } } },
|
|
214
|
+
"reviewVerdicts": { "type": "object", "additionalProperties": false, "required": ["approve", "requestChanges", "error"], "properties": { "approve": { "type": "integer", "minimum": 0 }, "requestChanges": { "type": "integer", "minimum": 0 }, "error": { "type": "integer", "minimum": 0 } } }
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"violations": { "type": "array", "maxItems": 256, "items": { "type": "string", "maxLength": 300 } }
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://open-mercato.dev/schemas/standalone-harness-result.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "caseId", "promptHash", "runner", "runnerVersion", "model", "evaluationKind", "selectedRouter", "selectedSkills", "selectedContext", "decisions", "violations", "durationMs", "exitStatus", "status", "actualContext", "declaredContext"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"caseId": { "type": "string", "pattern": "^OMH-[0-9]{3}$" },
|
|
10
|
+
"promptHash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
11
|
+
"runner": { "enum": ["deterministic", "codex", "claude"] },
|
|
12
|
+
"runnerVersion": { "type": "string", "maxLength": 200 },
|
|
13
|
+
"model": { "type": "string", "maxLength": 200 },
|
|
14
|
+
"reasoningEffort": { "enum": ["minimal", "low", "medium", "high", "xhigh"] },
|
|
15
|
+
"evaluationKind": { "enum": ["static", "routing", "implementation", "regression"] },
|
|
16
|
+
"selectedRouter": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
17
|
+
"selectedSkills": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
18
|
+
"selectedContext": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
19
|
+
"decisions": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
20
|
+
"violations": { "type": "array", "items": { "type": "string", "maxLength": 300 } },
|
|
21
|
+
"attempts": { "type": "integer", "minimum": 1, "maximum": 3 },
|
|
22
|
+
"corrections": { "type": "integer", "minimum": 0, "maximum": 2 },
|
|
23
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
24
|
+
"exitStatus": { "type": ["integer", "null"] },
|
|
25
|
+
"status": { "enum": ["pass", "fail", "error"] },
|
|
26
|
+
"sanitizedError": { "type": "string", "maxLength": 4096 },
|
|
27
|
+
"refusedContextReads": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
28
|
+
"exampleReadPolicy": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"description": "Sanitized accounting of the case's canonical-example and reason-gated installed-source reads. Present only when the case declared context.exampleRoots. Carries no file content.",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["roots", "fallback"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"roots": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": ["root", "entrypoints", "capabilities", "files", "bytes"],
|
|
40
|
+
"properties": {
|
|
41
|
+
"root": { "type": "string" },
|
|
42
|
+
"entrypoints": { "type": "array", "items": { "type": "string" } },
|
|
43
|
+
"capabilities": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
44
|
+
"files": { "type": "integer", "minimum": 0 },
|
|
45
|
+
"bytes": { "type": "integer", "minimum": 0 }
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"fallback": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["reason", "files", "bytes"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"reason": { "type": ["string", "null"], "enum": ["SPECIALIST_ROUTE_NOT_DECLARED", "INSTALLED_VERSION_CONTRACT_MISMATCH", null] },
|
|
55
|
+
"files": { "type": "integer", "minimum": 0 },
|
|
56
|
+
"bytes": { "type": "integer", "minimum": 0 }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"actualContext": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": ["paths", "files", "bytes", "estimatedTokens", "initialPaths", "initialFiles", "initialBytes", "estimatedInitialTokens", "metadataPaths", "metadataEntries", "metadataBytes"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"paths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
67
|
+
"files": { "type": "integer", "minimum": 0 },
|
|
68
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
69
|
+
"estimatedTokens": { "type": "integer", "minimum": 0 },
|
|
70
|
+
"initialPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
71
|
+
"initialFiles": { "type": "integer", "minimum": 0 },
|
|
72
|
+
"initialBytes": { "type": "integer", "minimum": 0 },
|
|
73
|
+
"estimatedInitialTokens": { "type": "integer", "minimum": 0 },
|
|
74
|
+
"metadataPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
75
|
+
"metadataEntries": { "type": "integer", "minimum": 0 },
|
|
76
|
+
"metadataBytes": { "type": "integer", "minimum": 0 }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"declaredContext": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": ["paths", "files", "bytes", "estimatedTokens", "initialPaths", "initialFiles", "initialBytes", "estimatedInitialTokens", "metadataPaths", "metadataEntries", "metadataBytes"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"paths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
85
|
+
"files": { "type": "integer", "minimum": 0 },
|
|
86
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
87
|
+
"estimatedTokens": { "type": "integer", "minimum": 0 },
|
|
88
|
+
"initialPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
89
|
+
"initialFiles": { "type": "integer", "minimum": 0 },
|
|
90
|
+
"initialBytes": { "type": "integer", "minimum": 0 },
|
|
91
|
+
"estimatedInitialTokens": { "type": "integer", "minimum": 0 },
|
|
92
|
+
"metadataPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
93
|
+
"metadataEntries": { "type": "integer", "minimum": 0 },
|
|
94
|
+
"metadataBytes": { "type": "integer", "minimum": 0 }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"writable": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": ["changedPaths", "beforeOraclePassed", "afterOraclePassed", "targetFingerprint"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"changedPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
103
|
+
"beforeOraclePassed": { "type": "boolean" },
|
|
104
|
+
"afterOraclePassed": { "type": "boolean" },
|
|
105
|
+
"targetFingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"required": ["selectedRouter", "selectedSkills", "selectedContext", "decisions", "violations"],
|
|
5
|
+
"properties": {
|
|
6
|
+
"selectedRouter": { "type": "array", "items": { "type": "string", "enum": ["architecture", "module-data", "backend-ui", "umes", "integration", "ai-workflow", "testing", "debugging", "spec-pr", "framework-context"] } },
|
|
7
|
+
"selectedSkills": { "type": "array", "items": { "type": "string", "pattern": "^om-[a-z0-9-]+$", "maxLength": 100 } },
|
|
8
|
+
"selectedContext": { "type": "array", "items": { "type": "string", "maxLength": 300 } },
|
|
9
|
+
"decisions": { "type": "array", "items": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$", "maxLength": 100 } },
|
|
10
|
+
"specRouting": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["decision", "reasonCodes"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"decision": { "type": "string", "enum": ["spec-first", "direct", "reuse-spec", "ask"] },
|
|
16
|
+
"reasonCodes": { "type": "array", "minItems": 1, "maxItems": 8, "uniqueItems": true, "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$", "maxLength": 60 } },
|
|
17
|
+
"coveringSpecPath": { "type": "string", "maxLength": 300 }
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"violations": { "type": "array", "items": { "type": "string", "maxLength": 4096 } }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://open-mercato.dev/schemas/standalone-target-validation-result.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "caseId", "sourceResult", "beforeValidationFingerprint", "targetFingerprint", "commands", "generatedTests", "status"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"caseId": { "type": "string", "pattern": "^OMH-[0-9]{3}$" },
|
|
10
|
+
"sourceResult": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["path", "sha256"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 300 },
|
|
16
|
+
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"beforeValidationFingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
20
|
+
"targetFingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
21
|
+
"commands": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"minItems": 4,
|
|
24
|
+
"maxItems": 4,
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["command", "status", "exitStatus", "durationMs"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"command": { "enum": ["yarn generate", "yarn typecheck", "yarn lint", "yarn build"] },
|
|
31
|
+
"status": { "const": "pass" },
|
|
32
|
+
"exitStatus": { "const": 0 },
|
|
33
|
+
"durationMs": { "type": "integer", "minimum": 0 }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"generatedTests": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"maxItems": 1,
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": ["runner", "artifact", "artifactSha256", "executor", "cliPackage", "cliSha256", "argv", "command", "network", "testCounts", "status", "exitStatus", "durationMs"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"runner": { "enum": ["jest", "playwright-api", "playwright-browser"] },
|
|
46
|
+
"artifact": { "type": "string", "minLength": 1, "maxLength": 300 },
|
|
47
|
+
"artifactSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
48
|
+
"executor": { "const": "node" },
|
|
49
|
+
"cliPackage": { "enum": ["jest", "@playwright/test"] },
|
|
50
|
+
"cliSha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
51
|
+
"argv": { "type": "array", "minItems": 2, "maxItems": 20, "items": { "type": "string", "minLength": 1, "maxLength": 300 } },
|
|
52
|
+
"command": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
53
|
+
"network": { "enum": ["none", "loopback"] },
|
|
54
|
+
"testCounts": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"required": ["passedTests", "skippedTests", "todoTests", "expectedFailureTests"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"passedTests": { "type": "integer", "minimum": 1 },
|
|
60
|
+
"skippedTests": { "const": 0 },
|
|
61
|
+
"todoTests": { "const": 0 },
|
|
62
|
+
"expectedFailureTests": { "const": 0 }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"status": { "const": "pass" },
|
|
66
|
+
"exitStatus": { "const": 0 },
|
|
67
|
+
"durationMs": { "type": "integer", "minimum": 0 }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"status": { "const": "pass" }
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"catalog": {
|
|
4
|
+
"expectedCaseCount": 216,
|
|
5
|
+
"maxContextFiles": 16,
|
|
6
|
+
"maxInitialContextBytes": 98304,
|
|
7
|
+
"maxTotalContextBytes": 262144,
|
|
8
|
+
"backwardCompatibilityRuleIds": [
|
|
9
|
+
"BC-01", "BC-02", "BC-03", "BC-04", "BC-05", "BC-06", "BC-07",
|
|
10
|
+
"BC-08", "BC-09", "BC-10", "BC-11", "BC-12", "BC-13", "BC-14"
|
|
11
|
+
],
|
|
12
|
+
"mandatoryCaseIds": [
|
|
13
|
+
"OMH-057", "OMH-058", "OMH-059", "OMH-060", "OMH-061", "OMH-062", "OMH-063",
|
|
14
|
+
"OMH-064", "OMH-065", "OMH-066", "OMH-067", "OMH-068", "OMH-069", "OMH-070",
|
|
15
|
+
"OMH-186", "OMH-187"
|
|
16
|
+
],
|
|
17
|
+
"compatibilityRequiredCaseIds": [
|
|
18
|
+
"OMH-007", "OMH-022", "OMH-030", "OMH-048", "OMH-057", "OMH-064", "OMH-072", "OMH-074",
|
|
19
|
+
"OMH-082", "OMH-087", "OMH-088", "OMH-089", "OMH-105", "OMH-108", "OMH-118", "OMH-130", "OMH-131", "OMH-147", "OMH-150",
|
|
20
|
+
"OMH-182"
|
|
21
|
+
],
|
|
22
|
+
"compatibilityExcludedCaseIds": [
|
|
23
|
+
"OMH-006", "OMH-011", "OMH-012", "OMH-014", "OMH-018", "OMH-026",
|
|
24
|
+
"OMH-081", "OMH-091", "OMH-093", "OMH-172", "OMH-177", "OMH-181"
|
|
25
|
+
],
|
|
26
|
+
"writableCaseIds": [
|
|
27
|
+
"OMH-009", "OMH-011", "OMH-012", "OMH-014", "OMH-026", "OMH-027", "OMH-029", "OMH-031",
|
|
28
|
+
"OMH-042", "OMH-045", "OMH-049", "OMH-054", "OMH-057", "OMH-060", "OMH-061", "OMH-070",
|
|
29
|
+
"OMH-093", "OMH-105", "OMH-107", "OMH-115", "OMH-122", "OMH-128", "OMH-130", "OMH-133",
|
|
30
|
+
"OMH-137", "OMH-140", "OMH-144", "OMH-146", "OMH-149", "OMH-150", "OMH-151", "OMH-153",
|
|
31
|
+
"OMH-156", "OMH-163", "OMH-164", "OMH-165", "OMH-171", "OMH-172", "OMH-181", "OMH-185",
|
|
32
|
+
"OMH-188", "OMH-189", "OMH-190", "OMH-191", "OMH-192", "OMH-193",
|
|
33
|
+
"OMH-213", "OMH-214"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"validators": {
|
|
37
|
+
"catalog.schema": { "kind": "catalog", "implementation": "validateCaseShape" },
|
|
38
|
+
"catalog.relations": { "kind": "catalog", "implementation": "validateRelations" },
|
|
39
|
+
"catalog.bc-coverage": { "kind": "catalog", "implementation": "validateBackwardCompatibilityCoverage" },
|
|
40
|
+
"owner.reference": { "kind": "static", "implementation": "validateOwnerReference" },
|
|
41
|
+
"router.contract": { "kind": "routing", "implementation": "validateRoutingResult" },
|
|
42
|
+
"routing.spec-decision": { "kind": "routing", "implementation": "validateSpecRoutingDecision" },
|
|
43
|
+
"context.budget": { "kind": "routing", "implementation": "validateContextBudget" },
|
|
44
|
+
"context.forbidden": { "kind": "routing", "implementation": "validateForbiddenContext" },
|
|
45
|
+
"patterns.forbidden": { "kind": "routing", "implementation": "validateForbiddenPatterns" },
|
|
46
|
+
"skills.reference": { "kind": "static", "implementation": "validateSkillReference" },
|
|
47
|
+
"safety.mandatory": { "kind": "catalog", "implementation": "validateMandatoryCases" },
|
|
48
|
+
"writable.allowed-paths": { "kind": "oracle", "implementation": "validateAllowedWrites" },
|
|
49
|
+
"oracle.artifacts": { "kind": "oracle", "implementation": "validateExpectedArtifacts" },
|
|
50
|
+
"oracle.module.entity": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
51
|
+
"oracle.module.crud": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
52
|
+
"oracle.module.command": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
53
|
+
"oracle.module.ui": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
54
|
+
"oracle.module.complete": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
55
|
+
"oracle.umes.form-field": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
56
|
+
"oracle.umes.data-table": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
57
|
+
"oracle.umes.page-override": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
58
|
+
"oracle.umes.interceptor": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
59
|
+
"oracle.integration.data-sync": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
60
|
+
"oracle.integration.rest-client": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
61
|
+
"oracle.ai.agent": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
62
|
+
"oracle.workflow.call-api": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
63
|
+
"oracle.regression.fail-closed": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
64
|
+
"oracle.regression.atomic": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
65
|
+
"oracle.regression.null-roundtrip": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
66
|
+
"oracle.regression.cursor": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
67
|
+
"oracle.business.command": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
68
|
+
"oracle.business.ui-surface": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
69
|
+
"oracle.business.async-operation": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
70
|
+
"oracle.business.ai-safe-agent": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
71
|
+
"oracle.business.provider-adapter": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
72
|
+
"oracle.business.booking-overlap": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
73
|
+
"oracle.business.provider-transport": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
74
|
+
"oracle.umes.response-enricher": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
75
|
+
"oracle.workflow.durable-timer": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
76
|
+
"oracle.regression.crm-library": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
77
|
+
"oracle.business.data-flow": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
78
|
+
"oracle.business.test-authoring": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
79
|
+
"oracle.planning.spec-first": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-spec-oracles.mjs"] },
|
|
80
|
+
"oracle.planning.spec-reuse": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-spec-oracles.mjs"] }
|
|
81
|
+
}
|
|
82
|
+
}
|