Files
harness-lab/spec/schemas/profile.schema.json
T
Suslov-MD 5b514272cf feat: схемы отчёта аудита, профили/пресеты и движок разрешения (BHL-019, BHL-012, BHL-013)
- spec/schemas: evidence, audit-finding, audit-report (BHL-019)
- spec/schemas: profile, preset с явным relax_to (BHL-012)
- packages/bhl: resolve.ts + bhl profile resolve — порядок не влияет,
  конфликты параметров и ослаблений, provenance и applicability (BHL-012, BHL-013)
- tests: корневые схемы 13/13, пакет 17/17
2026-11-28 23:36:53 +03:00

41 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://baseline-harness.dev/spec/schemas/profile.schema.json",
"title": "Profile",
"description": "Композиционный профиль (D-013, D-002): набор требований и переопределений параметров. Ослабление только явное (relax_to).",
"type": "object",
"additionalProperties": false,
"required": ["id", "title", "description", "requirements"],
"properties": {
"id": { "type": "string", "pattern": "^prof-[a-z0-9]+(-[a-z0-9]+)*$" },
"title": { "type": "string", "minLength": 3 },
"description": { "type": "string", "minLength": 10 },
"requirements": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["requirement"],
"properties": {
"requirement": { "type": "string", "pattern": "^req-[a-z0-9]+(-[a-z0-9]+)*$" },
"relax_to": { "enum": ["SHOULD", "MAY"] },
"note": { "type": "string", "minLength": 3 }
}
}
},
"parameter_overrides": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["parameter", "value"],
"properties": {
"parameter": { "type": "string", "pattern": "^param-[a-z0-9]+(-[a-z0-9]+)*$" },
"value": {}
}
}
}
}
}