@open-mercato/cli 0.6.7-develop.6685.1.77c0a5591b → 0.6.7-develop.6687.1.46a258e592
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 +2 -3
- package/build.mjs +21 -5
- 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 +80 -0
- package/dist/agentic/guides/contracts.md +92 -0
- package/dist/agentic/guides/extensions.md +104 -0
- package/dist/agentic/guides/integrations.md +81 -0
- package/dist/agentic/guides/module-facts.json +217 -81
- package/dist/agentic/guides/module-system.md +12 -127
- package/dist/agentic/guides/modules/ai_assistant.md +1 -1
- package/dist/agentic/guides/modules/api_docs.md +1 -1
- package/dist/agentic/guides/modules/api_keys.md +1 -1
- package/dist/agentic/guides/modules/attachments.md +2 -2
- package/dist/agentic/guides/modules/audit_logs.md +2 -2
- package/dist/agentic/guides/modules/auth.md +1 -1
- package/dist/agentic/guides/modules/business_rules.md +1 -1
- package/dist/agentic/guides/modules/catalog.md +5 -5
- package/dist/agentic/guides/modules/channel_gmail.md +1 -1
- package/dist/agentic/guides/modules/channel_imap.md +1 -1
- package/dist/agentic/guides/modules/checkout.md +1 -1
- package/dist/agentic/guides/modules/communication_channels.md +1 -1
- package/dist/agentic/guides/modules/configs.md +1 -1
- package/dist/agentic/guides/modules/content.md +1 -1
- package/dist/agentic/guides/modules/currencies.md +1 -1
- package/dist/agentic/guides/modules/customer_accounts.md +1 -1
- package/dist/agentic/guides/modules/customers.md +2 -2
- package/dist/agentic/guides/modules/dashboards.md +1 -1
- package/dist/agentic/guides/modules/data_sync.md +1 -1
- package/dist/agentic/guides/modules/dictionaries.md +1 -1
- package/dist/agentic/guides/modules/directory.md +1 -1
- package/dist/agentic/guides/modules/entities.md +2 -2
- package/dist/agentic/guides/modules/events.md +1 -1
- package/dist/agentic/guides/modules/feature_toggles.md +1 -1
- package/dist/agentic/guides/modules/gateway_stripe.md +1 -1
- package/dist/agentic/guides/modules/generators.md +1 -1
- package/dist/agentic/guides/modules/inbox_ops.md +1 -1
- package/dist/agentic/guides/modules/integrations.md +1 -1
- package/dist/agentic/guides/modules/messages.md +1 -1
- package/dist/agentic/guides/modules/notifications.md +1 -1
- package/dist/agentic/guides/modules/onboarding.md +1 -1
- package/dist/agentic/guides/modules/payment_gateways.md +1 -1
- package/dist/agentic/guides/modules/perspectives.md +1 -1
- package/dist/agentic/guides/modules/planner.md +1 -1
- package/dist/agentic/guides/modules/portal.md +1 -1
- package/dist/agentic/guides/modules/progress.md +1 -1
- package/dist/agentic/guides/modules/query_index.md +2 -2
- package/dist/agentic/guides/modules/record_locks.md +1 -1
- package/dist/agentic/guides/modules/resources.md +1 -1
- package/dist/agentic/guides/modules/sales.md +17 -17
- package/dist/agentic/guides/modules/scheduler.md +1 -1
- package/dist/agentic/guides/modules/search.md +1 -1
- package/dist/agentic/guides/modules/security.md +1 -1
- package/dist/agentic/guides/modules/shipping_carriers.md +1 -1
- package/dist/agentic/guides/modules/sso.md +1 -1
- package/dist/agentic/guides/modules/staff.md +2 -2
- package/dist/agentic/guides/modules/storage_s3.md +1 -1
- package/dist/agentic/guides/modules/sync_akeneo.md +1 -1
- package/dist/agentic/guides/modules/sync_excel.md +1 -1
- package/dist/agentic/guides/modules/system_status_overlays.md +1 -1
- package/dist/agentic/guides/modules/translations.md +1 -1
- package/dist/agentic/guides/modules/webhooks.md +2 -2
- package/dist/agentic/guides/modules/wms.md +2 -2
- package/dist/agentic/guides/modules/workflows.md +1 -1
- package/dist/agentic/guides/testing-debugging.md +74 -0
- package/dist/agentic/guides/upstream/AGENTS.md +297 -0
- package/dist/agentic/guides/upstream/BACKWARD_COMPATIBILITY.md +303 -0
- package/dist/agentic/guides/upstream/manifest.json +8 -0
- package/dist/agentic/shared/AGENTS.md.template +123 -311
- package/dist/agentic/shared/ai/agentic.config.json +1 -0
- package/dist/agentic/shared/ai/harness/README.md +48 -0
- package/dist/agentic/shared/ai/harness/RELEASE.md +57 -0
- package/dist/agentic/shared/ai/harness/cases.json +13487 -0
- package/dist/agentic/shared/ai/harness/cases.schema.json +132 -0
- package/dist/agentic/shared/ai/harness/fixtures/index.json +49 -0
- package/dist/agentic/shared/ai/harness/fixtures/seeds.json +162 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-policy.md +20 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-response.schema.json +43 -0
- package/dist/agentic/shared/ai/harness/generated-code-review-result.schema.json +110 -0
- package/dist/agentic/shared/ai/harness/release-matrix.json +133 -0
- package/dist/agentic/shared/ai/harness/release-result.schema.json +219 -0
- package/dist/agentic/shared/ai/harness/result.schema.json +76 -0
- package/dist/agentic/shared/ai/harness/routing-response.schema.json +12 -0
- package/dist/agentic/shared/ai/harness/target-validation-result.schema.json +73 -0
- package/dist/agentic/shared/ai/harness/validators.json +78 -0
- package/dist/agentic/shared/ai/harness/writable-ast-oracles.mjs +1768 -0
- package/dist/agentic/shared/ai/harness/writable-behavior-oracles.mjs +1096 -0
- package/dist/agentic/shared/ai/review-checklist.md +36 -0
- package/dist/agentic/shared/ai/skills/om-auto-review-pr/SKILL.md +4 -0
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/SKILL.md +20 -241
- package/dist/agentic/shared/ai/skills/om-backend-ui-design/references/crud-surfaces.md +16 -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 +13 -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 +16 -601
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/integrity-and-concurrency.md +19 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/migration-workflow.md +13 -0
- package/dist/agentic/shared/ai/skills/om-data-model-design/references/schema-design.md +14 -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 +14 -310
- package/dist/agentic/shared/ai/skills/om-eject-and-customize/references/decision-and-procedure.md +17 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/SKILL.md +28 -0
- package/dist/agentic/shared/ai/skills/om-evolve-harness/references/case-template.md +89 -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/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 +17 -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 +15 -156
- package/dist/agentic/shared/ai/skills/om-implement-spec/references/phases-and-gates.md +12 -0
- package/dist/agentic/shared/ai/skills/om-integration-builder/SKILL.md +24 -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 +14 -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-module-scaffold/SKILL.md +20 -820
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/api-and-domain.md +19 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/business-one-shot-blueprints.md +107 -0
- package/dist/agentic/shared/ai/skills/om-module-scaffold/references/data-and-migrations.md +12 -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 +21 -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-system-extension/SKILL.md +19 -843
- package/dist/agentic/shared/ai/skills/om-system-extension/references/extension-branches.md +18 -0
- package/dist/agentic/shared/ai/skills/om-system-extension/references/mechanism-selector.md +25 -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 +38 -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 +16 -467
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/diagnosis-map.md +16 -0
- package/dist/agentic/shared/ai/skills/om-troubleshooter/references/regression-oracles.md +14 -0
- package/dist/agentic/shared/ai/skills/tiers.json +137 -20
- package/dist/agentic/shared/ai/skills/tiers.schema.json +52 -40
- package/dist/agentic/shared/scripts/agent-harness-tool-server.mjs +174 -0
- package/dist/agentic/shared/scripts/evaluate-agent-harness.mjs +2783 -0
- package/dist/agentic/shared/scripts/execution-sandbox.mjs +329 -0
- package/dist/agentic/shared/scripts/framework-context.mjs +894 -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 +1761 -0
- package/dist/lib/__integration__/TC-INT-008.spec.js +87 -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 +418 -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-facts-discovery.js +41 -7
- package/dist/lib/generators/module-facts-discovery.js.map +2 -2
- package/dist/lib/generators/module-facts.js +65 -17
- package/dist/lib/generators/module-facts.js.map +2 -2
- package/dist/lib/generators/module-registry.js +5 -4
- package/dist/lib/generators/module-registry.js.map +2 -2
- package/dist/lib/resolver.js +2 -0
- package/dist/lib/resolver.js.map +2 -2
- package/package.json +5 -5
- package/src/lib/__integration__/TC-INT-008.spec.ts +103 -8
- package/src/lib/__tests__/agentic-init.test.ts +41 -5
- package/src/lib/__tests__/agentic-setup.ownership.test.ts +380 -0
- package/src/lib/__tests__/injection-widget-id-validation.test.ts +184 -0
- package/src/lib/agentic-init.ts +15 -3
- package/src/lib/agentic-setup.ts +526 -224
- package/src/lib/generators/__tests__/module-facts.bc-guard.test.ts +6 -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-subset.test.ts +18 -0
- package/src/lib/generators/extensions/injection-widgets.ts +51 -0
- package/src/lib/generators/module-facts-discovery.ts +58 -7
- package/src/lib/generators/module-facts.ts +84 -20
- package/src/lib/generators/module-registry.ts +8 -4
- package/src/lib/resolver.ts +3 -0
- 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,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"policy": {
|
|
4
|
+
"invalidStructuredOutputRetries": 1,
|
|
5
|
+
"rawTranscriptsCommitted": false,
|
|
6
|
+
"mandatoryFailuresWaivable": false
|
|
7
|
+
},
|
|
8
|
+
"releaseSuite": {
|
|
9
|
+
"supportedRunners": ["codex", "claude"],
|
|
10
|
+
"requireGeneratedCodeReview": true,
|
|
11
|
+
"validationCommands": ["yarn generate", "yarn typecheck", "yarn lint", "yarn build"]
|
|
12
|
+
},
|
|
13
|
+
"deterministic": {
|
|
14
|
+
"caseIds": "all"
|
|
15
|
+
},
|
|
16
|
+
"routing": {
|
|
17
|
+
"required": {
|
|
18
|
+
"caseIds": "all"
|
|
19
|
+
},
|
|
20
|
+
"portability": {
|
|
21
|
+
"caseIds": [
|
|
22
|
+
"OMH-009", "OMH-011", "OMH-012", "OMH-014", "OMH-026", "OMH-027", "OMH-029", "OMH-031",
|
|
23
|
+
"OMH-042", "OMH-045", "OMH-049", "OMH-054", "OMH-057", "OMH-060", "OMH-061", "OMH-070",
|
|
24
|
+
"OMH-093", "OMH-105", "OMH-107", "OMH-115", "OMH-122", "OMH-128", "OMH-130", "OMH-133",
|
|
25
|
+
"OMH-137", "OMH-140", "OMH-144", "OMH-146", "OMH-149", "OMH-150", "OMH-151", "OMH-153",
|
|
26
|
+
"OMH-156", "OMH-163", "OMH-164", "OMH-165", "OMH-171", "OMH-172", "OMH-181", "OMH-185",
|
|
27
|
+
"OMH-188", "OMH-189", "OMH-190", "OMH-191", "OMH-192"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"runners": {
|
|
31
|
+
"codex": { "modelSelector": "default" },
|
|
32
|
+
"claude": { "modelSelector": "sonnet" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"writable": [
|
|
36
|
+
{ "caseId": "OMH-009" },
|
|
37
|
+
{ "caseId": "OMH-011" },
|
|
38
|
+
{ "caseId": "OMH-012" },
|
|
39
|
+
{ "caseId": "OMH-014" },
|
|
40
|
+
{ "caseId": "OMH-026" },
|
|
41
|
+
{ "caseId": "OMH-027" },
|
|
42
|
+
{ "caseId": "OMH-029" },
|
|
43
|
+
{ "caseId": "OMH-031" },
|
|
44
|
+
{ "caseId": "OMH-042" },
|
|
45
|
+
{ "caseId": "OMH-045" },
|
|
46
|
+
{ "caseId": "OMH-049" },
|
|
47
|
+
{ "caseId": "OMH-054" },
|
|
48
|
+
{ "caseId": "OMH-057" },
|
|
49
|
+
{ "caseId": "OMH-060" },
|
|
50
|
+
{ "caseId": "OMH-061" },
|
|
51
|
+
{ "caseId": "OMH-070" },
|
|
52
|
+
{ "caseId": "OMH-093" },
|
|
53
|
+
{ "caseId": "OMH-105" },
|
|
54
|
+
{ "caseId": "OMH-107" },
|
|
55
|
+
{ "caseId": "OMH-115" },
|
|
56
|
+
{ "caseId": "OMH-122" },
|
|
57
|
+
{ "caseId": "OMH-128" },
|
|
58
|
+
{ "caseId": "OMH-130" },
|
|
59
|
+
{ "caseId": "OMH-133" },
|
|
60
|
+
{ "caseId": "OMH-137" },
|
|
61
|
+
{ "caseId": "OMH-140" },
|
|
62
|
+
{ "caseId": "OMH-144" },
|
|
63
|
+
{ "caseId": "OMH-146" },
|
|
64
|
+
{ "caseId": "OMH-149" },
|
|
65
|
+
{ "caseId": "OMH-150" },
|
|
66
|
+
{ "caseId": "OMH-151" },
|
|
67
|
+
{ "caseId": "OMH-153" },
|
|
68
|
+
{ "caseId": "OMH-156" },
|
|
69
|
+
{ "caseId": "OMH-163" },
|
|
70
|
+
{ "caseId": "OMH-164" },
|
|
71
|
+
{ "caseId": "OMH-165" },
|
|
72
|
+
{ "caseId": "OMH-171" },
|
|
73
|
+
{ "caseId": "OMH-172" },
|
|
74
|
+
{ "caseId": "OMH-181" },
|
|
75
|
+
{ "caseId": "OMH-185" },
|
|
76
|
+
{ "caseId": "OMH-188" },
|
|
77
|
+
{ "caseId": "OMH-189" },
|
|
78
|
+
{ "caseId": "OMH-190" },
|
|
79
|
+
{ "caseId": "OMH-191" },
|
|
80
|
+
{ "caseId": "OMH-192" }
|
|
81
|
+
],
|
|
82
|
+
"generatedCodeReview": {
|
|
83
|
+
"required": true,
|
|
84
|
+
"skill": "om-code-review",
|
|
85
|
+
"caseIds": [
|
|
86
|
+
"OMH-009", "OMH-011", "OMH-012", "OMH-014", "OMH-026", "OMH-027",
|
|
87
|
+
"OMH-029", "OMH-031", "OMH-042", "OMH-045", "OMH-049", "OMH-054",
|
|
88
|
+
"OMH-057", "OMH-060", "OMH-061", "OMH-070",
|
|
89
|
+
"OMH-093", "OMH-105", "OMH-107", "OMH-115", "OMH-122", "OMH-128",
|
|
90
|
+
"OMH-130", "OMH-133", "OMH-137", "OMH-140", "OMH-144", "OMH-146",
|
|
91
|
+
"OMH-149", "OMH-150", "OMH-151", "OMH-153", "OMH-156", "OMH-163",
|
|
92
|
+
"OMH-164", "OMH-165", "OMH-171", "OMH-172", "OMH-181", "OMH-185",
|
|
93
|
+
"OMH-188", "OMH-189", "OMH-190", "OMH-191", "OMH-192"
|
|
94
|
+
],
|
|
95
|
+
"runners": {
|
|
96
|
+
"codex": { "modelSelector": "default" },
|
|
97
|
+
"claude": { "modelSelector": "sonnet" }
|
|
98
|
+
},
|
|
99
|
+
"maxChangedFiles": 16,
|
|
100
|
+
"maxChangedBytes": 262144,
|
|
101
|
+
"maxContextFiles": 32,
|
|
102
|
+
"maxContextBytes": 524288
|
|
103
|
+
},
|
|
104
|
+
"generatedTests": {
|
|
105
|
+
"required": true,
|
|
106
|
+
"entries": [
|
|
107
|
+
{
|
|
108
|
+
"caseId": "OMH-163",
|
|
109
|
+
"runner": "jest",
|
|
110
|
+
"artifact": "src/modules/quote_approval/commands/__tests__/approve-quote.test.ts",
|
|
111
|
+
"network": "none"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"caseId": "OMH-164",
|
|
115
|
+
"runner": "playwright-api",
|
|
116
|
+
"artifact": "src/modules/customer_api/__integration__/TC-API-CUSTOMERS-001.spec.ts",
|
|
117
|
+
"network": "loopback"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"caseId": "OMH-165",
|
|
121
|
+
"runner": "playwright-browser",
|
|
122
|
+
"artifact": "src/modules/portal_quote_approval/__integration__/TC-PORTAL-QUOTE-001.spec.ts",
|
|
123
|
+
"network": "loopback"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"caseId": "OMH-192",
|
|
127
|
+
"runner": "jest",
|
|
128
|
+
"artifact": "src/modules/library/commands/__tests__/crm-loans.test.ts",
|
|
129
|
+
"network": "none"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -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,76 @@
|
|
|
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
|
+
"actualContext": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"required": ["paths", "files", "bytes", "estimatedTokens", "initialPaths", "initialFiles", "initialBytes", "estimatedInitialTokens", "metadataPaths", "metadataEntries", "metadataBytes"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"paths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
34
|
+
"files": { "type": "integer", "minimum": 0 },
|
|
35
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
36
|
+
"estimatedTokens": { "type": "integer", "minimum": 0 },
|
|
37
|
+
"initialPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
38
|
+
"initialFiles": { "type": "integer", "minimum": 0 },
|
|
39
|
+
"initialBytes": { "type": "integer", "minimum": 0 },
|
|
40
|
+
"estimatedInitialTokens": { "type": "integer", "minimum": 0 },
|
|
41
|
+
"metadataPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
42
|
+
"metadataEntries": { "type": "integer", "minimum": 0 },
|
|
43
|
+
"metadataBytes": { "type": "integer", "minimum": 0 }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"declaredContext": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": ["paths", "files", "bytes", "estimatedTokens", "initialPaths", "initialFiles", "initialBytes", "estimatedInitialTokens", "metadataPaths", "metadataEntries", "metadataBytes"],
|
|
50
|
+
"properties": {
|
|
51
|
+
"paths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
52
|
+
"files": { "type": "integer", "minimum": 0 },
|
|
53
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
54
|
+
"estimatedTokens": { "type": "integer", "minimum": 0 },
|
|
55
|
+
"initialPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
56
|
+
"initialFiles": { "type": "integer", "minimum": 0 },
|
|
57
|
+
"initialBytes": { "type": "integer", "minimum": 0 },
|
|
58
|
+
"estimatedInitialTokens": { "type": "integer", "minimum": 0 },
|
|
59
|
+
"metadataPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
60
|
+
"metadataEntries": { "type": "integer", "minimum": 0 },
|
|
61
|
+
"metadataBytes": { "type": "integer", "minimum": 0 }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"writable": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["changedPaths", "beforeOraclePassed", "afterOraclePassed", "targetFingerprint"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"changedPaths": { "type": "array", "uniqueItems": true, "items": { "type": "string" } },
|
|
70
|
+
"beforeOraclePassed": { "type": "boolean" },
|
|
71
|
+
"afterOraclePassed": { "type": "boolean" },
|
|
72
|
+
"targetFingerprint": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
"violations": { "type": "array", "items": { "type": "string", "maxLength": 4096 } }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -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,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"catalog": {
|
|
4
|
+
"expectedCaseCount": 192,
|
|
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"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"validators": {
|
|
36
|
+
"catalog.schema": { "kind": "catalog", "implementation": "validateCaseShape" },
|
|
37
|
+
"catalog.relations": { "kind": "catalog", "implementation": "validateRelations" },
|
|
38
|
+
"catalog.bc-coverage": { "kind": "catalog", "implementation": "validateBackwardCompatibilityCoverage" },
|
|
39
|
+
"owner.reference": { "kind": "static", "implementation": "validateOwnerReference" },
|
|
40
|
+
"router.contract": { "kind": "routing", "implementation": "validateRoutingResult" },
|
|
41
|
+
"context.budget": { "kind": "routing", "implementation": "validateContextBudget" },
|
|
42
|
+
"context.forbidden": { "kind": "routing", "implementation": "validateForbiddenContext" },
|
|
43
|
+
"patterns.forbidden": { "kind": "routing", "implementation": "validateForbiddenPatterns" },
|
|
44
|
+
"skills.reference": { "kind": "static", "implementation": "validateSkillReference" },
|
|
45
|
+
"safety.mandatory": { "kind": "catalog", "implementation": "validateMandatoryCases" },
|
|
46
|
+
"writable.allowed-paths": { "kind": "oracle", "implementation": "validateAllowedWrites" },
|
|
47
|
+
"oracle.artifacts": { "kind": "oracle", "implementation": "validateExpectedArtifacts" },
|
|
48
|
+
"oracle.module.entity": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
49
|
+
"oracle.module.crud": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
50
|
+
"oracle.module.command": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
51
|
+
"oracle.module.ui": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
52
|
+
"oracle.module.complete": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
53
|
+
"oracle.umes.form-field": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
54
|
+
"oracle.umes.data-table": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
55
|
+
"oracle.umes.page-override": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
56
|
+
"oracle.umes.interceptor": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
57
|
+
"oracle.integration.data-sync": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
58
|
+
"oracle.integration.rest-client": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
59
|
+
"oracle.ai.agent": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
60
|
+
"oracle.workflow.call-api": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
61
|
+
"oracle.regression.fail-closed": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
62
|
+
"oracle.regression.atomic": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
63
|
+
"oracle.regression.null-roundtrip": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
64
|
+
"oracle.regression.cursor": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
65
|
+
"oracle.business.command": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
66
|
+
"oracle.business.ui-surface": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
67
|
+
"oracle.business.async-operation": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
68
|
+
"oracle.business.ai-safe-agent": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
69
|
+
"oracle.business.provider-adapter": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
70
|
+
"oracle.business.booking-overlap": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
71
|
+
"oracle.business.provider-transport": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
72
|
+
"oracle.umes.response-enricher": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
73
|
+
"oracle.workflow.durable-timer": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] },
|
|
74
|
+
"oracle.regression.crm-library": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
75
|
+
"oracle.business.data-flow": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs", "writable-behavior-oracles.mjs"] },
|
|
76
|
+
"oracle.business.test-authoring": { "kind": "oracle", "implementation": "trusted-executable", "runners": ["writable-ast-oracles.mjs"] }
|
|
77
|
+
}
|
|
78
|
+
}
|