{
  "phase_id": "phase-02",
  "category_id": "architecture_engineering_core",
  "doc_id": "brps",
  "source_path": "/home/yeff/public_html/devon/panel/data/brps.md",
  "documentation_branch_status": "CUSTOM_BRANCH",
  "bucket_statuses_from_docs_index": {
    "Prerequisites": "ACTIVE",
    "Installation": "ACTIVE",
    "Configuration": "ACTIVE",
    "Validation": "ACTIVE",
    "Observable Evidence": "ACTIVE",
    "Failure Modes & Recovery": "ACTIVE",
    "Completion & Promotion": "ACTIVE"
  },
  "exported_at": "2026-04-28T05:56:48.644291+00:00",
  "export_rule": "docs/json export generated from real panel/data source plus docs/index.php branch evidence; no authored content invented by export patch",
  "source_payload": {
    "source_format": "markdown",
    "raw_markdown": "# BRPS — BUILD, RELEASE & PROMOTION SPEC\nversion: v1.0\nstatus: ACTIVE\nparent: master_architecture_index.md\nphase: 02\nphase_name: Architecture & Engineering Canon\ndocument_role: build_release_and_promotion_standard_for_phase_02\n\n---\n\n## 1. OBJECTIVE\n\nDefine canonical build, release, promotion and rollback rules.\n\n---\n\n## 2. BUILD PRINCIPLE\n\nA build is valid only if:\n- inputs are known\n- version is known\n- contract impact is known\n- validation path exists\n\n---\n\n## 3. RELEASE PRINCIPLE\n\nA release is valid only if:\n- build passed\n- validation passed\n- audit path exists\n- rollback path exists\n- packaging audit exists\n- SBOM exists\n- production package does not expose sourcemap\n- production package does not expose sensitive artifacts\n\n---\n\n## 4. PROMOTION PRINCIPLE\n\nPromotion to higher environment is valid only if:\n- sandbox-first rule is respected\n- promotion gate passes\n- rollback readiness is confirmed\n- evidence is registered\n- operator code, runtime artifacts and debug artifacts remain separated\n- environment exposure policy is respected\n\n---\n\n## 5. ROLLBACK PRINCIPLE\n\nRollback is mandatory capability, not optional convenience.\n\n---\n\n## 6. ACCEPTANCE CRITERIA\n\nBRPS is valid only if:\n- build rule is explicit\n- release rule is explicit\n- promotion rule is explicit\n- rollback rule is explicit\n- packaging audit rule is explicit\n- SBOM rule is explicit\n- production artifact exposure rule is explicit\n"
  },
  "transition_status": "ACTIVE_DH_MIRROR",
  "hardening_status": "HARDENING_PARTIAL",
  "engine_grade_final": false,
  "validation_mode": "schema_backed_transition",
  "parser_readiness": "medium",
  "hardening_priority": "extract_structural_fields_from_dh_text",
  "structural_contract": {
    "hardening_status": "HARDENING_PARTIAL",
    "engine_grade_final": false,
    "transition_status": "ACTIVE_DH_MIRROR",
    "doc_id": "brps",
    "category_id": "architecture_engineering_core",
    "phase_id": "phase-02",
    "hardening_lane": "dh_text_to_structural_contract",
    "patch_type": "extract_structural_fields",
    "created_at": "2026-04-28T15:40:28.154126+00:00",
    "authority": {
      "authority_owner": "brps.md",
      "canonical_role": "build release promotion authority",
      "authority_scope": "governs when build, release, packaging hygiene and promotion evidence are mature enough to move downstream without exposing debug artifacts or unverified delivery state",
      "promotion_decision_domain": [
        "build readiness",
        "release artifact hygiene",
        "promotion gating",
        "packaging evidence",
        "delivery traceability"
      ],
      "not_authority_for": [
        "runtime execution ownership",
        "security policy ownership",
        "schema field ownership owned by css.md"
      ]
    },
    "required_before": [
      "delivery layer",
      "release promotion",
      "runtime materialization",
      "future panel promotion timeline"
    ],
    "hard_dependencies": [
      "cas.md",
      "cgs.md",
      "acs.md",
      "css.md"
    ],
    "feeds_operational_ui": [
      "promotion_timeline",
      "release_evidence_drawer",
      "dependency_drawer",
      "future_panel_delivery_gate_reader"
    ],
    "bucket_contracts": {
      "Prerequisites": {
        "contract_role": "prove brps.md is materially present, phase-bound and dependency-bound before downstream consumers use it",
        "required_structural_fields": [
          "authority_owner",
          "canonical_role",
          "required_before",
          "hard_dependencies",
          "promotion_decision_domain"
        ],
        "validation_mode": "schema_backed_transition",
        "parser_readiness": "medium"
      },
      "Installation": {
        "contract_role": "make brps available as a Documentation Hub mirror with fixed technical identity and branch binding",
        "required_structural_fields": [
          "doc_id",
          "category_id",
          "phase_id",
          "documentation_branch_status",
          "source_path",
          "expected_bindings"
        ],
        "validation_mode": "schema_backed_transition",
        "parser_readiness": "medium"
      },
      "Configuration": {
        "contract_role": "bind brps authority scope, dependency boundaries and forbidden ownership classes into parseable structure",
        "required_structural_fields": [
          "authority_scope",
          "not_authority_for",
          "promotion_decision_domain",
          "boundary_rules"
        ],
        "validation_mode": "schema_backed_transition",
        "parser_readiness": "medium"
      },
      "Validation": {
        "contract_role": "convert brps into deterministic PASS, FAIL and MISSING checks for identity, binding, source and authority boundary",
        "required_structural_fields": [
          "validation_checks",
          "pass_criteria",
          "fail_criteria",
          "missing_criteria"
        ],
        "validation_mode": "schema_backed_transition",
        "parser_readiness": "medium"
      },
      "Observable Evidence": {
        "contract_role": "expose file paths, DH branch binding, source payload shape and mirror path proving brps is observable",
        "required_structural_fields": [
          "evidence_paths",
          "expected_bindings",
          "observable_checks"
        ],
        "validation_mode": "schema_backed_transition",
        "parser_readiness": "medium"
      },
      "Failure Modes & Recovery": {
        "contract_role": "recover missing source, wrong binding, dependency break, authority overreach and false promotion for brps",
        "required_structural_fields": [
          "failure_modes",
          "recovery_actions",
          "rollback_or_safe_state"
        ],
        "validation_mode": "schema_backed_transition",
        "parser_readiness": "medium"
      },
      "Completion & Promotion": {
        "contract_role": "promote brps only as hardened DH mirror input, not as final engine-grade contract",
        "required_structural_fields": [
          "done_when",
          "not_done_when",
          "promotion_gate",
          "canonization_gate"
        ],
        "validation_mode": "schema_backed_transition",
        "parser_readiness": "medium"
      }
    },
    "validation_checks": [
      {
        "check_id": "brps_doc_identity",
        "type": "exact_value",
        "path": "$.doc_id",
        "expected": "brps",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_category_binding",
        "type": "exact_value",
        "path": "$.category_id",
        "expected": "architecture_engineering_core",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_phase_binding",
        "type": "exact_value",
        "path": "$.phase_id",
        "expected": "phase-02",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_branch_status",
        "type": "exact_value",
        "path": "$.documentation_branch_status",
        "expected": "CUSTOM_BRANCH",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_authority_owner_declared",
        "type": "exact_value",
        "path": "$.structural_contract.authority.authority_owner",
        "expected": "brps.md",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_not_engine_final",
        "type": "exact_value",
        "path": "$.engine_grade_final",
        "expected": false,
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_source_markdown_present",
        "type": "non_empty_string",
        "path": "$.source_payload.raw_markdown",
        "on_missing": "MISSING",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_depends_on_cas_md",
        "type": "array_contains",
        "path": "$.structural_contract.hard_dependencies",
        "expected": "cas.md",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_depends_on_cgs_md",
        "type": "array_contains",
        "path": "$.structural_contract.hard_dependencies",
        "expected": "cgs.md",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_depends_on_acs_md",
        "type": "array_contains",
        "path": "$.structural_contract.hard_dependencies",
        "expected": "acs.md",
        "on_fail": "FAIL"
      },
      {
        "check_id": "brps_depends_on_css_md",
        "type": "array_contains",
        "path": "$.structural_contract.hard_dependencies",
        "expected": "css.md",
        "on_fail": "FAIL"
      }
    ],
    "evidence_paths": [
      "/home/yeff/public_html/devon/panel/data/brps.md",
      "/home/yeff/public_html/devon/docs/index.php",
      "/home/yeff/public_html/devon/panel/data/hub_index.json",
      "/home/yeff/public_html/devon/panel/data/master_architecture_index.md",
      "/home/yeff/public_html/devon/docs/json/phase-02/brps.json",
      "/home/yeff/public_html/devon/docs/json/phase-02/_phase02_hardening_queue.json"
    ],
    "expected_bindings": [
      {
        "binding": "docs_index_custom_branch",
        "expected": "if (doc.id === \"brps\" && state.categoryId === \"architecture_engineering_core\")"
      },
      {
        "binding": "hub_index_phase",
        "expected_phase_id": "phase-02"
      },
      {
        "binding": "hub_index_category",
        "expected_category_id": "architecture_engineering_core"
      }
    ],
    "failure_modes": [
      {
        "failure_id": "brps_source_missing",
        "status": "MISSING",
        "meaning": "brps source cannot be read from declared source path",
        "recovery_action": "restore /home/yeff/public_html/devon/panel/data/brps.md or the declared mirror source before hardening can continue"
      },
      {
        "failure_id": "brps_unbound_from_phase02",
        "status": "FAIL",
        "meaning": "brps is present but not bound to phase-02 / architecture_engineering_core",
        "recovery_action": "restore hub_index and docs/index binding to the canonical Phase 02 category"
      },
      {
        "failure_id": "brps_dependency_missing",
        "status": "MISSING",
        "meaning": "brps cannot prove declared hard dependencies",
        "recovery_action": "restore declared dependencies or block promotion until dependency validation passes"
      },
      {
        "failure_id": "brps_authority_overreach",
        "status": "FAIL",
        "meaning": "brps claims authority outside its declared scope",
        "recovery_action": "revoke overreaching authority and route the claim to the owning document or contract"
      },
      {
        "failure_id": "brps_false_engine_promotion",
        "status": "FAIL",
        "meaning": "brps is promoted as engine-grade final while still in DH mirror transition",
        "recovery_action": "restore ACTIVE_DH_MIRROR / HARDENING_PARTIAL and require deterministic schema validation before final promotion"
      }
    ],
    "promotion_gates": {
      "done_when": [
        "brps source exists materially",
        "brps is registered under Phase 02",
        "brps has a custom Documentation Hub branch",
        "brps JSON mirror contains structural_contract",
        "brps exposes authority, dependencies, evidence paths, validation checks and promotion gates as parseable fields"
      ],
      "not_done_when": [
        "source payload is missing",
        "category binding is wrong",
        "declared dependency is absent",
        "authority scope is overreached",
        "engine_grade_final is set true before deterministic schema validation exists"
      ],
      "promotion_gate": "brps may move to HARDENING_PARTIAL after structural_contract exists and verifies, but must not become engine_grade_final until all decisive checks are schema-backed and deterministic.",
      "canonization_gate": "brps remains an ACTIVE_DH_MIRROR until authority, dependency, evidence, failure and promotion checks can be consumed without semantic prose interpretation."
    },
    "parser_readiness_after_patch": "medium",
    "blocked_until_engine_grade_final": [
      "all validation checks resolve from JSON key paths",
      "all required dependencies are machine-checkable",
      "all authority boundaries produce deterministic FAIL when violated",
      "future operational panel can consume the contract without reading source prose"
    ],
    "mirror_type": "markdown_mirror",
    "schema_binding": {
      "required_keys": [
        "source_payload",
        "structural_contract"
      ],
      "source_payload_key_paths": [
        "$.source_payload",
        "$.structural_contract",
        "$.bucket_statuses_from_docs_index"
      ],
      "expected_values": {
        "$.phase_id": "phase-02",
        "$.category_id": "architecture_engineering_core",
        "$.doc_id": "brps",
        "$.engine_grade_final": false,
        "$.transition_status": "ACTIVE_DH_MIRROR"
      },
      "allowed_statuses": [
        "PASS",
        "FAIL",
        "MISSING",
        "ACTIVE_DH_MIRROR",
        "HARDENING_PARTIAL"
      ],
      "deterministic_fail_modes": [
        "wrong_doc_id",
        "wrong_category_id",
        "wrong_phase_id",
        "missing_source_payload",
        "authority_overreach",
        "false_engine_promotion"
      ],
      "missing_criteria": [
        "source payload absent",
        "declared source file absent",
        "hard dependency absent where required"
      ],
      "schema_backed_validation": true
    },
    "boundary_rules": [
      {
        "rule_id": "no_unrestricted_promotion_without_package_evidence",
        "meaning": "release promotion needs auditable package evidence",
        "fail_state": "FAIL when release promotes without packaging audit"
      },
      {
        "rule_id": "debug_artifact_block",
        "meaning": "production delivery must not expose sourcemaps or debug-sensitive artifacts",
        "fail_state": "FAIL when debug artifact is included in promotion"
      },
      {
        "rule_id": "runtime_not_release_proof",
        "meaning": "runtime visibility does not prove release hygiene",
        "fail_state": "FAIL when runtime presence is treated as packaging validation"
      }
    ],
    "promotion_boundary_rules": [
      {
        "rule_id": "no_unrestricted_promotion_without_package_evidence",
        "meaning": "release promotion needs auditable package evidence",
        "fail_state": "FAIL when release promotes without packaging audit"
      },
      {
        "rule_id": "debug_artifact_block",
        "meaning": "production delivery must not expose sourcemaps or debug-sensitive artifacts",
        "fail_state": "FAIL when debug artifact is included in promotion"
      },
      {
        "rule_id": "runtime_not_release_proof",
        "meaning": "runtime visibility does not prove release hygiene",
        "fail_state": "FAIL when runtime presence is treated as packaging validation"
      }
    ],
    "source_signal_audit": {
      "raw_markdown_contains_role_terms": true,
      "matched_role_lines_sample": [
        "document_role: build_release_and_promotion_standard_for_phase_02",
        "Define canonical build, release, promotion and rollback rules.",
        "- contract impact is known"
      ],
      "audit_note": "source_signal_audit is evidence support only; structural_contract remains governed by Phase 02 queue, hub binding and canonical master registration"
    }
  }
}
