@thebackstoryis/engineering-with-ai 0.2.9
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/Docs/README.md +50 -0
- package/Docs/adoption/consultancy-and-multi-project-rollout.md +135 -0
- package/Docs/adoption/non-technical-team-guide.md +126 -0
- package/Docs/archaeology-technology-and-hosting-discovery.md +212 -0
- package/Docs/blast-radius-and-impact-routing-guide.md +325 -0
- package/Docs/blueprints/internal-blueprint-catalogue.md +146 -0
- package/Docs/blueprints/maintaining-organisation-blueprints.md +154 -0
- package/Docs/blueprints/validation-and-troubleshooting.md +168 -0
- package/Docs/cli-reference.md +113 -0
- package/Docs/completed-phase-evidence-amendments.md +74 -0
- package/Docs/consultancy-network-rollout-control-plane-guide.md +202 -0
- package/Docs/context-aware-delivery-companion-guide.md +198 -0
- package/Docs/context-aware-delivery-companion-user-guide.md +184 -0
- package/Docs/context-management-and-token-efficiency.md +113 -0
- package/Docs/design-systems/design-system-implementation-guide.md +85 -0
- package/Docs/design-systems/design-system-pack-authoring-guide.md +95 -0
- package/Docs/design-systems/design-system-review-guide.md +51 -0
- package/Docs/design-systems/design-system-user-guide.md +96 -0
- package/Docs/design-systems/product-owner-guide.md +49 -0
- package/Docs/designing-organisation-blueprint-packs.md +384 -0
- package/Docs/developer-delivery-guide.md +224 -0
- package/Docs/error-reporting-guide.md +110 -0
- package/Docs/error-reporting-provider-guide.md +49 -0
- package/Docs/examples/error-report-adapter.md +70 -0
- package/Docs/examples/meeting-review.md +76 -0
- package/Docs/examples/minimal-design-system.md +67 -0
- package/Docs/examples/prototype-review-inputs.md +175 -0
- package/Docs/examples/reproducible-archaeology-depth-example.md +144 -0
- package/Docs/examples/test-scenario-input.md +68 -0
- package/Docs/examples/worked-examples.md +147 -0
- package/Docs/existing-project-onboarding-guide.md +214 -0
- package/Docs/explanation/core-concepts.md +26 -0
- package/Docs/explanation/delivery-workflow.md +48 -0
- package/Docs/governance/governance-team-guide.md +139 -0
- package/Docs/governed-starter-project-materialisation-guide.md +284 -0
- package/Docs/guide-catalogue.md +117 -0
- package/Docs/guided-discovery-facilitator-guide.md +172 -0
- package/Docs/guided-intent-workspace-guide.md +109 -0
- package/Docs/guided-phase-evidence-drafting-guide.md +119 -0
- package/Docs/human-approval-and-assurance-guide.md +146 -0
- package/Docs/knowledge-proposals-implementer-guide.md +106 -0
- package/Docs/knowledge-proposals-user-guide.md +247 -0
- package/Docs/maintainers/context-benchmarks.md +29 -0
- package/Docs/maintainers/contributing.md +58 -0
- package/Docs/maintainers/evidence-depth-acceptance.md +72 -0
- package/Docs/maintainers/verification-walkthroughs.md +104 -0
- package/Docs/meeting-evidence-implementer-guide.md +132 -0
- package/Docs/meeting-evidence-user-guide.md +200 -0
- package/Docs/operations/dashboard-and-delivery-state.md +153 -0
- package/Docs/operations/dashboard-configuration.md +87 -0
- package/Docs/operations/installation-updating-and-entitlements.md +135 -0
- package/Docs/operations/premium-personas-setup.md +76 -0
- package/Docs/operations/troubleshooting-and-recovery.md +205 -0
- package/Docs/organisation-rollout-guide.md +142 -0
- package/Docs/persona-entitlement-provider-guide.md +199 -0
- package/Docs/persona-guided-prototype-iteration.md +129 -0
- package/Docs/personas/organisation-specific-personas.md +103 -0
- package/Docs/personas/persona-authoring-cookbook.md +176 -0
- package/Docs/personas/persona-engagement-ui.md +133 -0
- package/Docs/personas/persona-governance.md +118 -0
- package/Docs/platform-export-analysis-guide.md +336 -0
- package/Docs/policies/governance-owner-guide.md +36 -0
- package/Docs/policies/implementation-guide.md +42 -0
- package/Docs/policies/organisation-policy-design-gates.md +58 -0
- package/Docs/policies/policy-pack-authoring-guide.md +108 -0
- package/Docs/policies/product-owner-guide.md +43 -0
- package/Docs/policies/technical-owner-guide.md +37 -0
- package/Docs/product-owner-guide.md +327 -0
- package/Docs/project-portfolio-orchestration-guide.md +199 -0
- package/Docs/quality/manual-qa-and-acceptance.md +162 -0
- package/Docs/quality/persona-driven-test-scenarios.md +172 -0
- package/Docs/quality/reproducible-archaeology-depth-review-checklist.md +89 -0
- package/Docs/reference/capabilities-and-project-layout.md +678 -0
- package/Docs/reference/cli-and-configuration.md +398 -0
- package/Docs/reference/contributions-api.md +23 -0
- package/Docs/reference/security-adapter-authoring.md +81 -0
- package/Docs/reference/starter-adapter-authoring.md +74 -0
- package/Docs/repository-source-map-guide.md +381 -0
- package/Docs/reproducible-archaeology-and-discovery-depth.md +292 -0
- package/Docs/screen-prototype-creation-guide.md +324 -0
- package/Docs/security-validation-guide.md +353 -0
- package/Docs/solution-readiness-review-guide.md +123 -0
- package/Docs/standards/project-standards-authoring.md +157 -0
- package/Docs/team-hub-guide.md +162 -0
- package/Docs/team-hub-resource-registry-guide.md +167 -0
- package/Docs/tutorials/first-delivery.md +83 -0
- package/Docs/tutorials/first-session.md +62 -0
- package/Docs/using-lifecycle-hooks.md +381 -0
- package/Docs/working-with-personas.md +274 -0
- package/LICENSE +165 -0
- package/README.md +96 -0
- package/agents-src/claude/ewai-security-reviewer.md +15 -0
- package/bin/ewai +5 -0
- package/config/archaeology-record-families.yaml +59 -0
- package/config/delivery-artifacts.yaml +121 -0
- package/config/delivery-stages.yaml +77 -0
- package/config/design-system.schema.json +46 -0
- package/config/error-reporting.schema.json +79 -0
- package/config/evidence-depth.schema.json +53 -0
- package/config/intent.schema.json +90 -0
- package/config/knowledge-proposals-proposal.schema.json +34 -0
- package/config/lifecycle-event.schema.json +68 -0
- package/config/lifecycle-handler.schema.json +45 -0
- package/config/lifecycle-hook-ack.schema.json +19 -0
- package/config/meeting-evidence-candidate.schema.json +102 -0
- package/config/organisation-policy.schema.json +137 -0
- package/config/pack.schema.json +250 -0
- package/config/persona-pack.schema.json +21 -0
- package/config/persona.schema.json +17 -0
- package/config/policy-evaluation.schema.json +77 -0
- package/config/policy-facts.schema.json +140 -0
- package/config/portfolio.schema.json +68 -0
- package/config/project.schema.json +313 -0
- package/config/prototype-iteration.schema.json +128 -0
- package/config/rollout.schema.json +87 -0
- package/config/security-adapter.schema.json +31 -0
- package/config/security-scan-request.schema.json +64 -0
- package/config/security-scan-response.schema.json +52 -0
- package/config/security-validation-policy.schema.json +74 -0
- package/config/starter-source-acknowledgement.schema.json +13 -0
- package/config/starter-source-adapter.schema.json +38 -0
- package/config/starter-source-request.schema.json +61 -0
- package/package.json +77 -0
- package/packs/core/pack.yaml +7 -0
- package/packs/design-systems/default/experience-promise.md +9 -0
- package/packs/design-systems/default/intentional-review.md +10 -0
- package/packs/design-systems/default/interaction-and-entry.md +9 -0
- package/packs/design-systems/default/meaningful-content-and-states.md +9 -0
- package/packs/design-systems/default/pack.yaml +44 -0
- package/packs/design-systems/default/principles.md +10 -0
- package/packs/personas/core/pack.yaml +7 -0
- package/packs/personas/core/personas/archaeologist.md +37 -0
- package/packs/personas/core/personas/end-user.md +17 -0
- package/packs/personas/core/personas/maintainer.md +17 -0
- package/packs/personas/core/personas/operator.md +17 -0
- package/packs/personas/core/personas/specs-knowledge-curator.md +35 -0
- package/packs/technologies/laravel/pack.yaml +30 -0
- package/packs/technologies/laravel-nuxt/pack.yaml +30 -0
- package/packs/technologies/nuxt/pack.yaml +30 -0
- package/packs/technologies/power-platform/pack.yaml +31 -0
- package/packs/technologies/salesforce/pack.yaml +25 -0
- package/public/app.js +4896 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/assets/backstory-icon.png +0 -0
- package/public/dashboard-navigation.js +98 -0
- package/public/favicon-16.png +0 -0
- package/public/favicon-32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +789 -0
- package/public/styles.css +2693 -0
- package/public/team-hub/app.js +202 -0
- package/public/team-hub/index.html +79 -0
- package/public/team-hub/styles.css +90 -0
- package/scripts/publication-check.mjs +140 -0
- package/scripts/setup.mjs +21 -0
- package/skills-src/ewai-archaeology/SKILL.md +334 -0
- package/skills-src/ewai-archaeology/agents/openai.yaml +4 -0
- package/skills-src/ewai-archaeology/references/archaeology-contract.md +201 -0
- package/skills-src/ewai-archaeology/references/lifecycle-reconstruction.md +177 -0
- package/skills-src/ewai-archaeology/references/maximum-detail-reconstruction.md +97 -0
- package/skills-src/ewai-archaeology/references/model-routing.md +26 -0
- package/skills-src/ewai-architecture/SKILL.md +108 -0
- package/skills-src/ewai-architecture/agents/openai.yaml +4 -0
- package/skills-src/ewai-architecture/references/architecture-contract.md +176 -0
- package/skills-src/ewai-context/SKILL.md +68 -0
- package/skills-src/ewai-context/agents/openai.yaml +4 -0
- package/skills-src/ewai-context-import/SKILL.md +118 -0
- package/skills-src/ewai-context-import/agents/openai.yaml +4 -0
- package/skills-src/ewai-context-import/references/context-import-contract.md +106 -0
- package/skills-src/ewai-dashboard-configuration/SKILL.md +20 -0
- package/skills-src/ewai-deliver/SKILL.md +122 -0
- package/skills-src/ewai-deliver/references/delivery-evidence.md +92 -0
- package/skills-src/ewai-deliver/references/phase-routing.md +31 -0
- package/skills-src/ewai-design-system-apply/SKILL.md +27 -0
- package/skills-src/ewai-design-system-apply/agents/openai.yaml +4 -0
- package/skills-src/ewai-design-system-apply/references/application-contract.md +36 -0
- package/skills-src/ewai-design-system-author/SKILL.md +28 -0
- package/skills-src/ewai-design-system-author/agents/openai.yaml +4 -0
- package/skills-src/ewai-design-system-author/references/authoring-contract.md +38 -0
- package/skills-src/ewai-design-system-review/SKILL.md +26 -0
- package/skills-src/ewai-design-system-review/agents/openai.yaml +4 -0
- package/skills-src/ewai-design-system-review/references/review-contract.md +40 -0
- package/skills-src/ewai-error-reporting/SKILL.md +46 -0
- package/skills-src/ewai-error-reporting/agents/openai.yaml +4 -0
- package/skills-src/ewai-error-reporting/references/provider-contract.md +74 -0
- package/skills-src/ewai-evidence-depth/SKILL.md +72 -0
- package/skills-src/ewai-evidence-depth/agents/openai.yaml +4 -0
- package/skills-src/ewai-evidence-depth/references/evidence-depth-contract.md +127 -0
- package/skills-src/ewai-intent/SKILL.md +68 -0
- package/skills-src/ewai-intent/agents/openai.yaml +4 -0
- package/skills-src/ewai-intent/references/intent-contract.md +42 -0
- package/skills-src/ewai-knowledge-proposals/SKILL.md +105 -0
- package/skills-src/ewai-knowledge-proposals/agents/openai.yaml +4 -0
- package/skills-src/ewai-knowledge-proposals/references/proposal-contract.md +59 -0
- package/skills-src/ewai-meeting-evidence/SKILL.md +106 -0
- package/skills-src/ewai-meeting-evidence/agents/openai.yaml +4 -0
- package/skills-src/ewai-meeting-evidence/references/candidate-contract.md +64 -0
- package/skills-src/ewai-organisation-policy/SKILL.md +62 -0
- package/skills-src/ewai-organisation-policy/agents/openai.yaml +4 -0
- package/skills-src/ewai-organisation-policy/references/policy-contract.md +94 -0
- package/skills-src/ewai-palace-housekeeping/SKILL.md +55 -0
- package/skills-src/ewai-palace-housekeeping/agents/openai.yaml +4 -0
- package/skills-src/ewai-persona-entitlement/SKILL.md +60 -0
- package/skills-src/ewai-persona-entitlement/agents/openai.yaml +4 -0
- package/skills-src/ewai-phase-evidence/SKILL.md +79 -0
- package/skills-src/ewai-phase-evidence/agents/openai.yaml +4 -0
- package/skills-src/ewai-pipeline/SKILL.md +130 -0
- package/skills-src/ewai-pipeline/agents/openai.yaml +4 -0
- package/skills-src/ewai-pipeline/references/cli.md +86 -0
- package/skills-src/ewai-pipeline/references/specs-contract.md +16 -0
- package/skills-src/ewai-portfolio/SKILL.md +70 -0
- package/skills-src/ewai-portfolio/agents/openai.yaml +4 -0
- package/skills-src/ewai-portfolio/references/portfolio-contract.md +67 -0
- package/skills-src/ewai-project-discovery/SKILL.md +95 -0
- package/skills-src/ewai-project-discovery/agents/openai.yaml +4 -0
- package/skills-src/ewai-project-discovery/references/discovery-contract.md +34 -0
- package/skills-src/ewai-prototype-iteration/SKILL.md +30 -0
- package/skills-src/ewai-prototype-iteration/agents/openai.yaml +4 -0
- package/skills-src/ewai-prototype-iteration/references/review-contract.md +49 -0
- package/skills-src/ewai-retro/SKILL.md +48 -0
- package/skills-src/ewai-retro/agents/openai.yaml +4 -0
- package/skills-src/ewai-retro/references/asset-routing.md +14 -0
- package/skills-src/ewai-rollout/SKILL.md +74 -0
- package/skills-src/ewai-rollout/agents/openai.yaml +4 -0
- package/skills-src/ewai-rollout/references/rollout-contract.md +74 -0
- package/skills-src/ewai-shape-intents/SKILL.md +84 -0
- package/skills-src/ewai-shape-intents/agents/openai.yaml +4 -0
- package/skills-src/ewai-shape-intents/references/intent-mapping-contract.md +109 -0
- package/skills-src/ewai-solution-readiness/SKILL.md +55 -0
- package/skills-src/ewai-solution-readiness/agents/openai.yaml +4 -0
- package/skills-src/ewai-standards-check/SKILL.md +93 -0
- package/skills-src/ewai-standards-check/agents/openai.yaml +4 -0
- package/skills-src/ewai-standards-check/references/report-contract.md +116 -0
- package/skills-src/ewai-test-scenarios/SKILL.md +94 -0
- package/skills-src/ewai-test-scenarios/agents/openai.yaml +4 -0
- package/skills-src/ewai-test-scenarios/references/scenario-contract.md +88 -0
- package/src/afk-worker.mjs +16 -0
- package/src/archaeology.mjs +1333 -0
- package/src/checkin.mjs +261 -0
- package/src/cli.mjs +2427 -0
- package/src/companion-guidance.mjs +257 -0
- package/src/companion-opening.mjs +62 -0
- package/src/companion.mjs +256 -0
- package/src/context.mjs +210 -0
- package/src/dashboard-preferences.mjs +80 -0
- package/src/delivery-artifacts.mjs +204 -0
- package/src/delivery-documents.mjs +248 -0
- package/src/delivery-gates.mjs +317 -0
- package/src/delivery.mjs +1433 -0
- package/src/design-system-application.mjs +291 -0
- package/src/design-system-authoring.mjs +101 -0
- package/src/design-systems.mjs +466 -0
- package/src/discovery.mjs +1314 -0
- package/src/error-reporting.mjs +323 -0
- package/src/evidence-depth.mjs +543 -0
- package/src/execution-state.mjs +243 -0
- package/src/install.mjs +166 -0
- package/src/intent-dependencies.mjs +117 -0
- package/src/intent-maps.mjs +402 -0
- package/src/intents.mjs +747 -0
- package/src/knowledge-proposals.mjs +717 -0
- package/src/launcher.mjs +51 -0
- package/src/meeting-evidence.mjs +703 -0
- package/src/network-rollout.mjs +386 -0
- package/src/organisation-blueprints.mjs +438 -0
- package/src/organisation-policies.mjs +448 -0
- package/src/packs.mjs +44 -0
- package/src/paths.mjs +62 -0
- package/src/persona-entitlements.mjs +438 -0
- package/src/persona-licence-config.mjs +98 -0
- package/src/persona-website-provider.mjs +134 -0
- package/src/persona-zip.mjs +87 -0
- package/src/personas.mjs +159 -0
- package/src/platform-metadata-analysis.mjs +314 -0
- package/src/policy-design-gates.mjs +623 -0
- package/src/policy-gate-integration.mjs +318 -0
- package/src/portfolio.mjs +509 -0
- package/src/power-platform-source-map.mjs +190 -0
- package/src/project.mjs +449 -0
- package/src/prototype-iterations.mjs +730 -0
- package/src/repository-source-map.mjs +603 -0
- package/src/runtime/afk-conductor.mjs +973 -0
- package/src/runtime/context-assembly.mjs +457 -0
- package/src/runtime/context-benchmarks.mjs +115 -0
- package/src/runtime/dashboard-actions.mjs +109 -0
- package/src/runtime/dashboard-handoffs.mjs +149 -0
- package/src/runtime/dashboard-server.mjs +1272 -0
- package/src/runtime/dashboard.mjs +197 -0
- package/src/runtime/database.mjs +789 -0
- package/src/runtime/error-reporting.mjs +581 -0
- package/src/runtime/evidence-depth-workspace.mjs +412 -0
- package/src/runtime/execution-leases.mjs +299 -0
- package/src/runtime/guided-discovery.mjs +350 -0
- package/src/runtime/guided-intents.mjs +517 -0
- package/src/runtime/impact-analysis.mjs +535 -0
- package/src/runtime/intents.mjs +222 -0
- package/src/runtime/knowledge.mjs +86 -0
- package/src/runtime/lifecycle-hooks.mjs +1239 -0
- package/src/runtime/mcp-config.mjs +110 -0
- package/src/runtime/mcp-server.mjs +1885 -0
- package/src/runtime/palace.mjs +362 -0
- package/src/runtime/paths.mjs +58 -0
- package/src/runtime/persona-engagement.mjs +255 -0
- package/src/runtime/phase-contributions.mjs +594 -0
- package/src/runtime/policy-workspace.mjs +170 -0
- package/src/runtime/prototype-iterations.mjs +235 -0
- package/src/runtime/provider-adapters.mjs +163 -0
- package/src/runtime/repository-index.mjs +838 -0
- package/src/runtime/runs.mjs +185 -0
- package/src/runtime/security-validation.mjs +1230 -0
- package/src/runtime/starter-materialisation.mjs +1155 -0
- package/src/runtime/team-hub-client.mjs +479 -0
- package/src/runtime/team-hub-database.mjs +288 -0
- package/src/runtime/team-hub-server.mjs +191 -0
- package/src/runtime/team-hub.mjs +110 -0
- package/src/runtime/tree-sitter-index.mjs +390 -0
- package/src/runtime/version.mjs +1 -0
- package/src/runtime/work.mjs +633 -0
- package/src/salesforce-source-map.mjs +212 -0
- package/src/security-validation-config.mjs +224 -0
- package/src/solution-readiness.mjs +620 -0
- package/src/starter-materialisation-contract.mjs +407 -0
- package/src/task-graph.mjs +544 -0
- package/src/team-hub-resources.mjs +239 -0
- package/src/team-hub.mjs +242 -0
- package/src/test-scenarios.mjs +622 -0
- package/src/validation-config.mjs +289 -0
- package/templates/SPECS/1.Scope/personas/registry.yaml +12 -0
- package/templates/SPECS/5.Strategy/patterns/context-packet.md +119 -0
- package/templates/SPECS/6.Build/_tracker-template.md +16 -0
- package/templates/SPECS/pipeline.yaml +62 -0
- package/templates/discovery-answers.yaml +86 -0
- package/templates/intent-body.md +21 -0
- package/tests/fixtures/context-benchmarks.json +9 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineeringwithai.dev/schemas/evidence-depth.schema.json",
|
|
4
|
+
"title": "EWAI evidence depth contracts",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{ "$ref": "#/$defs/preparation" },
|
|
7
|
+
{ "$ref": "#/$defs/run" },
|
|
8
|
+
{ "$ref": "#/$defs/comparison" }
|
|
9
|
+
],
|
|
10
|
+
"$defs": {
|
|
11
|
+
"depth": { "enum": ["bounded", "standard", "deep"] },
|
|
12
|
+
"dimensionId": { "enum": ["architecture", "data", "security", "product", "delivery", "governance", "operations"] },
|
|
13
|
+
"preparation": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["schema", "preparationDigest", "dimensions", "gaps", "activePersonas"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema": { "const": "ewai.evidence-depth-preparation/v1" },
|
|
18
|
+
"preparationDigest": { "type": "string" },
|
|
19
|
+
"dimensions": { "type": "array", "minItems": 7, "maxItems": 7 },
|
|
20
|
+
"gaps": { "type": "array", "maxItems": 200 },
|
|
21
|
+
"activePersonas": { "type": "array", "maxItems": 8 }
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": true
|
|
24
|
+
},
|
|
25
|
+
"run": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": ["schema", "runId", "contentDigest", "preparationDigest", "dimensions", "gaps", "grouping"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"schema": { "const": "ewai.evidence-depth-run/v1" },
|
|
30
|
+
"runId": { "type": "string" },
|
|
31
|
+
"contentDigest": { "type": "string" },
|
|
32
|
+
"preparationDigest": { "type": "string" },
|
|
33
|
+
"dimensions": { "type": "array", "minItems": 7, "maxItems": 7 },
|
|
34
|
+
"gaps": { "type": "array", "maxItems": 200 },
|
|
35
|
+
"grouping": { "type": "object" }
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": true
|
|
38
|
+
},
|
|
39
|
+
"comparison": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"required": ["schema", "leftRunId", "rightRunId", "changes", "unexplained", "reproducible"],
|
|
42
|
+
"properties": {
|
|
43
|
+
"schema": { "const": "ewai.evidence-depth-comparison/v1" },
|
|
44
|
+
"leftRunId": { "type": "string" },
|
|
45
|
+
"rightRunId": { "type": "string" },
|
|
46
|
+
"changes": { "type": "object" },
|
|
47
|
+
"unexplained": { "type": "array" },
|
|
48
|
+
"reproducible": { "type": "boolean" }
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": true
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineeringwith.ai/schemas/intent-v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "slug", "title", "status", "personas"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "ewai.intent/v1" },
|
|
8
|
+
"slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
9
|
+
"title": { "type": "string", "minLength": 1 },
|
|
10
|
+
"status": { "enum": ["draft", "ready", "superseded", "retired"] },
|
|
11
|
+
"intent_map": {
|
|
12
|
+
"type": ["string", "null"],
|
|
13
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
14
|
+
},
|
|
15
|
+
"personas": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": ["ref", "role", "depth"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"ref": { "type": "string", "minLength": 1 },
|
|
22
|
+
"role": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
23
|
+
"depth": { "type": "integer", "minimum": 1, "maximum": 5 },
|
|
24
|
+
"reason": { "type": "string" }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"relationships": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": ["type", "target"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"type": {
|
|
35
|
+
"enum": [
|
|
36
|
+
"depends-on",
|
|
37
|
+
"enables",
|
|
38
|
+
"complements",
|
|
39
|
+
"conflicts-with",
|
|
40
|
+
"supersedes",
|
|
41
|
+
"relates-to"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"target": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*/[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
47
|
+
},
|
|
48
|
+
"rationale": { "type": "string" }
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"delivery_shape": {
|
|
54
|
+
"type": ["object", "null"],
|
|
55
|
+
"required": ["recommendation", "reason", "suggested_children", "blocking_questions", "reviewed_decision"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"recommendation": {
|
|
58
|
+
"enum": ["single", "split", "decision-required"]
|
|
59
|
+
},
|
|
60
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
61
|
+
"suggested_children": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"domain": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
67
|
+
"slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
68
|
+
"title": { "type": "string" },
|
|
69
|
+
"outcome": { "type": "string" },
|
|
70
|
+
"depends_on": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": { "type": "string" }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"additionalProperties": false
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"blocking_questions": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": { "type": "string" }
|
|
81
|
+
},
|
|
82
|
+
"reviewed_decision": {
|
|
83
|
+
"type": ["string", "null"],
|
|
84
|
+
"enum": ["keep-as-one", "split", "refine-split", "defer", null]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": false
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineering-with-ai.local/schemas/knowledge-proposal.json",
|
|
4
|
+
"title": "EWAI knowledge proposal bundle",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "sourceRef", "sourceDigest", "proposals"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {"const": "ewai.knowledge-proposal-bundle/v1"},
|
|
10
|
+
"sourceRef": {"type": "string", "pattern": "^(meeting-evidence|retrospective):[a-z0-9][a-z0-9.-]{0,119}$"},
|
|
11
|
+
"sourceDigest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
12
|
+
"proposals": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 1,
|
|
15
|
+
"maxItems": 200,
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": ["id", "kind", "title", "destination", "evidenceAnchors", "rationale", "uncertainty", "relationships", "proposedMarkdown"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"id": {"type": "string", "pattern": "^KNP-[0-9]{3,}$"},
|
|
22
|
+
"kind": {"enum": ["project-persona", "system", "process", "data-concept", "journey", "requirement", "feature-candidate", "risk", "policy", "constraint", "standard", "decision", "pattern", "anti-pattern", "runbook", "sop"]},
|
|
23
|
+
"title": {"type": "string", "minLength": 1, "maxLength": 200},
|
|
24
|
+
"destination": {"type": "string", "minLength": 1, "maxLength": 300},
|
|
25
|
+
"evidenceAnchors": {"type": "array", "minItems": 1, "maxItems": 30, "items": {"type": "string", "minLength": 1, "maxLength": 180}},
|
|
26
|
+
"rationale": {"type": "string", "minLength": 1, "maxLength": 1600},
|
|
27
|
+
"uncertainty": {"type": "string", "maxLength": 1200},
|
|
28
|
+
"relationships": {"type": "array", "maxItems": 30, "items": {"type": "string", "minLength": 1, "maxLength": 300}},
|
|
29
|
+
"proposedMarkdown": {"type": "string", "minLength": 1, "maxLength": 100000}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineeringwithai.dev/schemas/lifecycle-event/v1",
|
|
4
|
+
"title": "EWAI lifecycle event envelope",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "id", "name", "occurredAt", "project", "scope", "facts", "source", "evidence", "personas", "stream", "idempotencyKey"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "ewai.lifecycle-event/v1" },
|
|
10
|
+
"id": { "type": "string", "format": "uuid" },
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 120,
|
|
15
|
+
"examples": ["ewai.knowledge-proposals.materialised", "ewai.policy.evaluation.recorded"]
|
|
16
|
+
},
|
|
17
|
+
"occurredAt": { "type": "string", "format": "date-time" },
|
|
18
|
+
"project": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"required": ["id", "name"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 120 },
|
|
24
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 160 }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"scope": { "type": "object" },
|
|
28
|
+
"facts": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"description": "Event-specific bounded safe facts from the runtime lifecycle catalogue. Policy events contain identifiers, outcomes and digests only; policy source bodies are never included."
|
|
31
|
+
},
|
|
32
|
+
"source": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["key"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"key": { "type": "string", "minLength": 1, "maxLength": 400 },
|
|
38
|
+
"revision": { "type": "string", "maxLength": 200 }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"evidence": { "type": "array", "maxItems": 24, "items": { "type": "string", "minLength": 1, "maxLength": 400 } },
|
|
42
|
+
"personas": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"maxItems": 12,
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["id", "name", "tier", "reason"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
51
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
52
|
+
"tier": { "enum": ["core", "premium", "personal", "project"] },
|
|
53
|
+
"reason": { "type": "string", "minLength": 1, "maxLength": 300 }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"stream": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["id", "sequence"],
|
|
61
|
+
"properties": {
|
|
62
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 200 },
|
|
63
|
+
"sequence": { "type": "integer", "minimum": 1 }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"idempotencyKey": { "type": "string", "minLength": 16, "maxLength": 160 }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineeringwithai.dev/schemas/lifecycle-handler/v1",
|
|
4
|
+
"title": "EWAI lifecycle handler manifest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "id", "name", "publisher", "version", "compatibility", "entrypoint", "digest", "events", "limits"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "ewai.lifecycle-handler/v1" },
|
|
10
|
+
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{2,127}$" },
|
|
11
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 120 },
|
|
12
|
+
"publisher": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": ["id", "name"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{1,79}$" },
|
|
18
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 120 }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][0-9A-Za-z.-]+)?$" },
|
|
22
|
+
"compatibility": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": ["protocols", "eventSchemas"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"protocols": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string" } },
|
|
28
|
+
"eventSchemas": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string" } }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"entrypoint": { "type": "string", "minLength": 1, "maxLength": 240 },
|
|
32
|
+
"digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
33
|
+
"events": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 120 } },
|
|
34
|
+
"limits": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["timeoutMs", "maxOutputBytes"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"timeoutMs": { "type": "integer", "minimum": 100, "maximum": 30000 },
|
|
40
|
+
"maxOutputBytes": { "type": "integer", "minimum": 256, "maximum": 65536 }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"description": { "type": "string", "maxLength": 500 }
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineeringwithai.dev/schemas/lifecycle-hook-ack/v1",
|
|
4
|
+
"title": "EWAI lifecycle hook acknowledgement",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "status"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": { "const": "ewai.lifecycle-hook-ack/v1" },
|
|
10
|
+
"status": { "enum": ["accepted", "rejected"] },
|
|
11
|
+
"code": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{0,79}$" },
|
|
12
|
+
"message": { "type": "string", "maxLength": 500 },
|
|
13
|
+
"metadata": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"maxProperties": 12,
|
|
16
|
+
"additionalProperties": { "type": ["string", "number", "boolean", "null"] }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineeringwithai.dev/schemas/meeting-evidence-candidate.schema.json",
|
|
4
|
+
"title": "EWAI meeting evidence candidate bundle",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"sourceId",
|
|
10
|
+
"sourceDigest",
|
|
11
|
+
"candidates"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schema": {
|
|
15
|
+
"const": "ewai.meeting-candidate-bundle/v1"
|
|
16
|
+
},
|
|
17
|
+
"sourceId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^meeting\\\\.[a-z0-9][a-z0-9-]{0,59}\\\\.[a-f0-9]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"sourceDigest": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
24
|
+
},
|
|
25
|
+
"candidates": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"minItems": 1,
|
|
28
|
+
"maxItems": 500,
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": [
|
|
33
|
+
"id",
|
|
34
|
+
"type",
|
|
35
|
+
"observedStatement",
|
|
36
|
+
"interpretation",
|
|
37
|
+
"lineAnchors",
|
|
38
|
+
"confidence"
|
|
39
|
+
],
|
|
40
|
+
"properties": {
|
|
41
|
+
"id": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^MEC-[0-9]{3,}$"
|
|
44
|
+
},
|
|
45
|
+
"type": {
|
|
46
|
+
"enum": [
|
|
47
|
+
"task",
|
|
48
|
+
"decision",
|
|
49
|
+
"process",
|
|
50
|
+
"risk",
|
|
51
|
+
"system",
|
|
52
|
+
"policy",
|
|
53
|
+
"requirement",
|
|
54
|
+
"assumption",
|
|
55
|
+
"open-question"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"observedStatement": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"minLength": 1,
|
|
61
|
+
"maxLength": 600
|
|
62
|
+
},
|
|
63
|
+
"interpretation": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"minLength": 1,
|
|
66
|
+
"maxLength": 1000
|
|
67
|
+
},
|
|
68
|
+
"lineAnchors": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"minItems": 1,
|
|
71
|
+
"maxItems": 20,
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": [
|
|
76
|
+
"start",
|
|
77
|
+
"end"
|
|
78
|
+
],
|
|
79
|
+
"properties": {
|
|
80
|
+
"start": {
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 1
|
|
83
|
+
},
|
|
84
|
+
"end": {
|
|
85
|
+
"type": "integer",
|
|
86
|
+
"minimum": 1
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"confidence": {
|
|
92
|
+
"enum": [
|
|
93
|
+
"low",
|
|
94
|
+
"medium",
|
|
95
|
+
"high"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://engineeringwith.ai/schemas/organisation-policy-v1.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": ["schema", "id", "title", "version", "publisher", "provenance", "review_roles", "unmatched_outcome", "rules"],
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema": { "const": "ewai.organisation-policy/v1" },
|
|
8
|
+
"id": { "$ref": "#/$defs/slug" },
|
|
9
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
10
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" },
|
|
11
|
+
"publisher": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["id", "name"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "$ref": "#/$defs/slug" },
|
|
16
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 160 }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"provenance": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["kind", "summary", "sources"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"kind": { "enum": ["owner-declared", "regulatory", "contractual", "adapted"] },
|
|
25
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 800 },
|
|
26
|
+
"sources": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"maxItems": 40,
|
|
30
|
+
"items": { "$ref": "#/$defs/sourceReference" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": false
|
|
34
|
+
},
|
|
35
|
+
"review_roles": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"maxItems": 40,
|
|
38
|
+
"items": { "$ref": "#/$defs/reviewRole" }
|
|
39
|
+
},
|
|
40
|
+
"unmatched_outcome": { "$ref": "#/$defs/outcome" },
|
|
41
|
+
"rules": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"minItems": 1,
|
|
44
|
+
"maxItems": 500,
|
|
45
|
+
"items": { "$ref": "#/$defs/rule" }
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"$defs": {
|
|
50
|
+
"slug": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
51
|
+
"valueId": { "type": "string", "minLength": 1, "maxLength": 120, "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$" },
|
|
52
|
+
"outcome": { "enum": ["allow", "deny", "review-required", "allow-with-controls", "unassessed"] },
|
|
53
|
+
"sourceReference": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"required": ["id", "label"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": { "$ref": "#/$defs/slug" },
|
|
58
|
+
"label": { "type": "string", "minLength": 1, "maxLength": 240 }
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
},
|
|
62
|
+
"reviewRole": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": ["id", "name"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"id": { "$ref": "#/$defs/slug" },
|
|
67
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 160 }
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
},
|
|
71
|
+
"conditionValues": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"minItems": 1,
|
|
74
|
+
"maxItems": 40,
|
|
75
|
+
"uniqueItems": true,
|
|
76
|
+
"items": { "$ref": "#/$defs/valueId" }
|
|
77
|
+
},
|
|
78
|
+
"conditions": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"minProperties": 1,
|
|
81
|
+
"properties": {
|
|
82
|
+
"resource": { "$ref": "#/$defs/conditionValues" },
|
|
83
|
+
"operation": { "$ref": "#/$defs/conditionValues" },
|
|
84
|
+
"data_entity": { "$ref": "#/$defs/conditionValues" },
|
|
85
|
+
"data_classification": { "$ref": "#/$defs/conditionValues" },
|
|
86
|
+
"actor": { "$ref": "#/$defs/conditionValues" },
|
|
87
|
+
"environment": { "$ref": "#/$defs/conditionValues" },
|
|
88
|
+
"destination": { "$ref": "#/$defs/conditionValues" },
|
|
89
|
+
"model": { "$ref": "#/$defs/conditionValues" },
|
|
90
|
+
"ai_use": { "$ref": "#/$defs/conditionValues" },
|
|
91
|
+
"retention": { "$ref": "#/$defs/conditionValues" }
|
|
92
|
+
},
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
},
|
|
95
|
+
"control": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"required": ["id", "title", "description", "evidence"],
|
|
98
|
+
"properties": {
|
|
99
|
+
"id": { "$ref": "#/$defs/slug" },
|
|
100
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
101
|
+
"description": { "type": "string", "minLength": 1, "maxLength": 800 },
|
|
102
|
+
"evidence": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"minItems": 1,
|
|
105
|
+
"maxItems": 5,
|
|
106
|
+
"uniqueItems": true,
|
|
107
|
+
"items": { "enum": ["claim", "task", "automated-test", "named-human", "specialist-review"] }
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"additionalProperties": false
|
|
111
|
+
},
|
|
112
|
+
"exception": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"required": ["permitted"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"permitted": { "type": "boolean" },
|
|
117
|
+
"review_role": { "$ref": "#/$defs/slug" }
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
},
|
|
121
|
+
"rule": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"required": ["id", "title", "description", "when", "outcome", "controls", "exceptions"],
|
|
124
|
+
"properties": {
|
|
125
|
+
"id": { "$ref": "#/$defs/slug" },
|
|
126
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
127
|
+
"description": { "type": "string", "minLength": 1, "maxLength": 1200 },
|
|
128
|
+
"when": { "$ref": "#/$defs/conditions" },
|
|
129
|
+
"outcome": { "$ref": "#/$defs/outcome" },
|
|
130
|
+
"review_role": { "$ref": "#/$defs/slug" },
|
|
131
|
+
"controls": { "type": "array", "maxItems": 40, "items": { "$ref": "#/$defs/control" } },
|
|
132
|
+
"exceptions": { "$ref": "#/$defs/exception" }
|
|
133
|
+
},
|
|
134
|
+
"additionalProperties": false
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|