Spaces:
Sleeping
Sleeping
Download rubric/schema.json from DerXanity/farient-deckcheck: direct link, hf CLI and curl.
- Browser
- Download file 4.51 kB
-
https://huggingface.co/spaces/DerXanity/farient-deckcheck/resolve/main/rubric/schema.json
- Command line
-
hf download hf://spaces/DerXanity/farient-deckcheck/rubric/schema.json
-
curl -L -o schema.json https://huggingface.co/spaces/DerXanity/farient-deckcheck/resolve/main/rubric/schema.json
4.51 kB
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "$id": "brand_rules_schema", | |
| "title": "Farient Brand Rules Rubric", | |
| "type": "object", | |
| "required": ["version", "metadata", "rules"], | |
| "additionalProperties": false, | |
| "properties": { | |
| "version": { | |
| "type": "string", | |
| "description": "Semantic version of the rubric" | |
| }, | |
| "metadata": { | |
| "type": "object", | |
| "required": ["must_flag_markers"], | |
| "additionalProperties": false, | |
| "properties": { | |
| "must_flag_markers": { | |
| "type": "object", | |
| "description": "Mapping of literal marker strings to their rubric-derived metadata", | |
| "minProperties": 1, | |
| "additionalProperties": { | |
| "$ref": "#/definitions/MustFlagMarker" | |
| } | |
| } | |
| } | |
| }, | |
| "rules": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "$ref": "#/definitions/BrandRule" | |
| } | |
| } | |
| }, | |
| "definitions": { | |
| "MustFlagMarker": { | |
| "type": "object", | |
| "required": ["category", "severity_default", "title_template", "rule_id"], | |
| "additionalProperties": false, | |
| "properties": { | |
| "category": { | |
| "$ref": "#/definitions/Category" | |
| }, | |
| "severity_default": { | |
| "$ref": "#/definitions/Severity" | |
| }, | |
| "title_template": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "rule_id": { | |
| "type": "string", | |
| "minLength": 1, | |
| "description": "Must resolve to the id of an existing rule in the rules array" | |
| } | |
| } | |
| }, | |
| "BrandRule": { | |
| "type": "object", | |
| "required": ["id", "category", "rule_text", "severity_default", "detection_type", "source_ref"], | |
| "additionalProperties": false, | |
| "properties": { | |
| "id": { | |
| "type": "string", | |
| "pattern": "^[a-z_]+\\.[a-z_]+$", | |
| "description": "Namespaced rule id, e.g. title_slide.no_draft" | |
| }, | |
| "category": { | |
| "$ref": "#/definitions/Category" | |
| }, | |
| "rule_text": { | |
| "type": "string", | |
| "minLength": 10, | |
| "description": "Distilled, actionable single-clause rule prose" | |
| }, | |
| "severity_default": { | |
| "$ref": "#/definitions/Severity" | |
| }, | |
| "detection_type": { | |
| "$ref": "#/definitions/DetectionType" | |
| }, | |
| "examples": { | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "do": { "type": "string" }, | |
| "dont": { "type": "string" } | |
| } | |
| }, | |
| "source_ref": { | |
| "type": "string", | |
| "pattern": "^(brand-guidelines \\(2\\)\\.md:L[0-9]+-[0-9]+|Dev Docs/PRD\\.md:L[0-9]+-[0-9]+|internal_qa_policy)$", | |
| "description": "Source reference in the form 'brand-guidelines (2).md:L<start>-<end>' or 'Dev Docs/PRD.md:L<start>-<end>' or 'internal_qa_policy'" | |
| }, | |
| "metadata": { | |
| "type": "object", | |
| "description": "Optional category-specific metadata", | |
| "properties": { | |
| "allowed_hex": { | |
| "type": "array", | |
| "description": "Deduplicated set of approved hex colors for the color_palette rule", | |
| "minItems": 1, | |
| "items": { | |
| "type": "string", | |
| "pattern": "^#[0-9A-Fa-f]{6}$" | |
| }, | |
| "uniqueItems": true | |
| }, | |
| "canonical_text": { | |
| "type": "string", | |
| "minLength": 10, | |
| "description": "Canonical confidentiality statement text for the confidentiality_statement rule" | |
| } | |
| }, | |
| "additionalProperties": false | |
| } | |
| } | |
| }, | |
| "Category": { | |
| "type": "string", | |
| "enum": [ | |
| "title_slide", | |
| "section_header", | |
| "slide_title", | |
| "confidentiality_statement", | |
| "bullets", | |
| "tables_overall", | |
| "table_title", | |
| "table_header", | |
| "table_body", | |
| "statistics_row", | |
| "client_row", | |
| "chart_title", | |
| "chart_content", | |
| "chart_source_notes", | |
| "shapes", | |
| "footnotes", | |
| "emphasis_annotations", | |
| "writing_style", | |
| "terminology", | |
| "color_palette" | |
| ] | |
| }, | |
| "Severity": { | |
| "type": "string", | |
| "enum": ["high", "medium", "low"] | |
| }, | |
| "DetectionType": { | |
| "type": "string", | |
| "enum": ["deterministic", "ai_judgment", "hybrid"] | |
| } | |
| } | |
| } | |