microsoft/hve-core
Publicmirrored from https://github.com/microsoft/hve-coreAvailable
scripts/linting/schemas/adr-config.schema.json
57lines · modecode
| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "https://github.com/microsoft/hve-core/schemas/adr-config.schema.json", |
| 4 | "title": "ADR Per-Project Config Schema", |
| 5 | "description": "Schema for the per-project ADR configuration file at docs/planning/adrs/.adr-config.yml. Consumed by the ADR Planner agent on session start to resolve the project slug, default decision status, ID format, source template, and the most recently issued decision ID. Six fields per GP-13.", |
| 6 | "type": "object", |
| 7 | "required": [ |
| 8 | "project_slug", |
| 9 | "owner", |
| 10 | "default_status", |
| 11 | "decision_id_format", |
| 12 | "template_source", |
| 13 | "last_decision_id" |
| 14 | ], |
| 15 | "additionalProperties": false, |
| 16 | "properties": { |
| 17 | "project_slug": { |
| 18 | "type": "string", |
| 19 | "minLength": 1, |
| 20 | "description": "Kebab-case identifier of the owning project." |
| 21 | }, |
| 22 | "owner": { |
| 23 | "type": "string", |
| 24 | "minLength": 1, |
| 25 | "description": "Team or person accountable for ADRs in this project." |
| 26 | }, |
| 27 | "default_status": { |
| 28 | "type": "string", |
| 29 | "enum": [ |
| 30 | "proposed", |
| 31 | "accepted", |
| 32 | "rejected", |
| 33 | "deprecated", |
| 34 | "superseded", |
| 35 | "withdrawn" |
| 36 | ], |
| 37 | "description": "Default MADR v4.0.0 status applied to newly captured ADRs." |
| 38 | }, |
| 39 | "decision_id_format": { |
| 40 | "type": "string", |
| 41 | "enum": [ |
| 42 | "NNNN" |
| 43 | ], |
| 44 | "description": "ADR ID format token; only zero-padded four-digit (NNNN) is supported per GP-16." |
| 45 | }, |
| 46 | "template_source": { |
| 47 | "type": "string", |
| 48 | "minLength": 1, |
| 49 | "description": "Source template identifier the ADR Planner renders for this project: one of the starter template tokens ('madr-v4' or 'y-statement') or a workspace-relative path to a BYO template (per adr-byo-template.instructions.md)." |
| 50 | }, |
| 51 | "last_decision_id": { |
| 52 | "type": "string", |
| 53 | "pattern": "^\\d{4}$", |
| 54 | "description": "Four-digit zero-padded ID of the most recently issued ADR; '0000' for new projects." |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | |