@aisdlc/core 4.3.1 → 4.5.0

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/dist/index.d.cts CHANGED
@@ -325,6 +325,10 @@ interface QualityPolicy {
325
325
  supported_extensions: string[];
326
326
  exclude_patterns: string[];
327
327
  test_patterns?: string[];
328
+ require_function_unit_tests?: boolean;
329
+ require_ui_component_tests?: boolean;
330
+ ui_component_patterns?: string[];
331
+ ui_test_patterns?: string[];
328
332
  }
329
333
  interface FunctionMetrics {
330
334
  functionName: string;
@@ -380,6 +384,7 @@ interface QualityGateOptions {
380
384
  thresholds?: QualityThresholds;
381
385
  requireCoverageReport?: boolean;
382
386
  requireFunctionUnitTests?: boolean;
387
+ requireUiComponentTests?: boolean;
383
388
  baseline?: boolean | string;
384
389
  baselinePath?: string;
385
390
  updateBaseline?: boolean;
@@ -389,6 +394,10 @@ interface UntestedFunctionItem {
389
394
  file: string;
390
395
  functionName: string;
391
396
  }
397
+ interface UntestedUiComponentItem {
398
+ file: string;
399
+ componentName: string;
400
+ }
392
401
  interface QualityGateResult {
393
402
  success: boolean;
394
403
  totalFiles: number;
@@ -400,6 +409,7 @@ interface QualityGateResult {
400
409
  policy: QualityPolicy;
401
410
  coverageViolations?: string[];
402
411
  untestedFunctions?: UntestedFunctionItem[];
412
+ untestedUiComponents?: UntestedUiComponentItem[];
403
413
  reportMarkdown?: string;
404
414
  baselineViolationsCount?: number;
405
415
  toleratedViolationsCount?: number;
@@ -773,6 +783,8 @@ interface GherkinSyncCheckResult {
773
783
  inSync: boolean;
774
784
  outOfSyncFiles: string[];
775
785
  missingFiles: string[];
786
+ orphanFeatureFiles?: string[];
787
+ missingStepFiles?: string[];
776
788
  totalFeatures: number;
777
789
  }
778
790
  type GherkinScaffoldLanguage = 'ts' | 'py' | 'go' | 'rs' | 'cs';
@@ -1725,12 +1737,17 @@ declare function readNormalizedCoverage(rootDir?: string, options?: {
1725
1737
  */
1726
1738
  declare const DEFAULT_UNIT_TEST_PATTERNS: readonly string[];
1727
1739
  declare const DEFAULT_TEST_ARTIFACT_PATTERNS: readonly string[];
1740
+ declare const DEFAULT_UI_COMPONENT_PATTERNS: readonly string[];
1741
+ declare const DEFAULT_UI_TEST_PATTERNS: readonly string[];
1728
1742
  interface CompiledTestMatcher {
1729
1743
  matches: (relativeOrFilePath: string) => boolean;
1730
1744
  }
1731
1745
  declare function compileTestPatterns(customPatterns?: readonly string[], includeFeatureFiles?: boolean): CompiledTestMatcher;
1732
1746
  declare function isPolyglotUnitTestFile(filePath: string, customPatterns?: readonly string[]): boolean;
1733
1747
  declare function isPolyglotTestArtifact(filePath: string, customPatterns?: readonly string[]): boolean;
1748
+ declare function compilePatternList(patterns: readonly string[]): CompiledTestMatcher;
1749
+ declare function isUiComponentFile(filePath: string, customPatterns?: readonly string[]): boolean;
1750
+ declare function isUiTestFile(filePath: string, customPatterns?: readonly string[]): boolean;
1734
1751
 
1735
1752
  /**
1736
1753
  * AI-SDLC: TypeScript/JavaScript Real AST Static Analysis Engine
@@ -2903,7 +2920,7 @@ declare function emitCiOutput(key: string, value: string, env?: NodeJS.ProcessEn
2903
2920
  */
2904
2921
  declare const REVIEW_VERDICTS: readonly ["COMPLIANT", "SUGGESTIONS", "BLOCKING"];
2905
2922
  type ReviewVerdict = (typeof REVIEW_VERDICTS)[number];
2906
- declare const REVIEWER_ROLES: readonly ["agent-code-reviewer", "agent-security-auditor", "agent-compliance-checker", "agent-privacy-officer", "agent-expert-user", "auditor", "reviewer"];
2923
+ declare const REVIEWER_ROLES: readonly ["agent-auditor", "agent-adversary", "agent-privacy-officer", "agent-expert-user", "agent-code-reviewer", "agent-security-auditor", "agent-compliance-checker", "auditor", "reviewer"];
2907
2924
  type ReviewerRole = (typeof REVIEWER_ROLES)[number];
2908
2925
  interface SubmitReviewReportOptions {
2909
2926
  rootDir?: string;
@@ -2942,7 +2959,7 @@ declare const STARTER_ARCH_ADR = "---\nid: ADR-001-DECISION-NAME\ntype: architec
2942
2959
  declare const STARTER_ARCH_ARCHITECTURE_CONSTRAINTS = "---\nid: ARCH-CONSTR-001\ntype: architecture-constraints\ntitle: \"02. Architecture Constraints\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 2\nnaf-perspective: \"Architecture Constraints\"\nconstraints:\n - CON-TECH-001\n - ACON-ORG-001\nlicense-policy: \"license-policy.yaml\"\nsupersedes: null\nsuperseded-by: null\n---\n\n# 02. Architecture Constraints (arc42 Sec. 2 / NAF Constraints)\n\n## 1. Non-Negotiable Technical Constraints (`CON-*`)\nLimitations imposed by hardware, underlying platform, operating systems, network protocols, or binary compatibility:\n\n| Constraint ID | Constraint Name | Description and Technical Rationale |\n| :--- | :--- | :--- |\n| `CON-TECH-001` | Cross-Platform Compatibility | Mandatory support for Linux x86_64, ARM64, and Windows Server |\n| `CON-TECH-002` | Fixed Runtime and Toolchain | Execution on Node.js LTS 20+ and deterministic packaging with pnpm |\n| `CON-TECH-003` | Controlled Dynamic Memory | 512 MB maximum memory consumption limit per containerized process |\n\n---\n\n## 2. Organizational and Process Constraints (`ACON-*`)\nGovernance rules, organizational standards, and team conventions:\n\n| Constraint ID | Name | Binding Directive |\n| :--- | :--- | :--- |\n| `ACON-ORG-001` | 4-Tier Git Governance | Strict flow: task \u2794 feat \u2794 release \u2794 main |\n| `ACON-ORG-002` | Inalienable Human Sovereignty | Strict ban on unattended AI auto-approval of PRs |\n\n---\n\n## 3. Open Source License Compliance (`LIC-POL-*`)\nIn accordance with `license-policy.yaml`:\n- **Permissive (ALLOW)**: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC.\n- **Weak Copyleft (REVIEW_REQUIRED)**: LGPL-2.1+, MPL-2.0 (restricted to dynamically linked decoupled libraries).\n- **Strong Copyleft / Viral (DENY)**: GPLv2, GPLv3, AGPLv3 (strictly prohibited in dependency tree).\n\n---\n\n## 4. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-24 | Lead Architect | Initial constraints definition | CHG-ARCH-001 |\n";
2943
2960
  declare const STARTER_ARCH_COMPONENT = "---\nid: CMP-NAME-001\ntype: component\ntitle: Architecture Component Name\nstatus: proposed # proposed, accepted, deprecated, retired\nversion: \"1.0.0\"\nschema-version: \"1.0\"\nlevel: 1 # 1: Bounded Context / Root System, 2: Subsystem / Container, 3: Executable Unit / DLL / Function\nbounded-context: \"Bounded Context Name\" # Domain bounded context in DDD\nparent-component: null # null for Level 1; parent component ID (CMP-PARENT-001) for Level > 1\nimplementation-type: service # service | dll | function | composite\nimplements-use-cases:\n - UC-ACTION-001\nsatisfies-requirements:\n - FR-FEATURE-001\n - SEC-REQ-CONTROL-001\nhosted-in-enclave: SEC-ENC-DMZ-001 # Optional: mandatory only if operating in physical/logical network enclave\ninterfaces:\n # By implementation-type:\n # - service: REST/HTTP, gRPC, WebSocket, Kafka, MQTT, IPC\n # - dll: C-ABI, Native-ABI, FFI\n # - function: Function-Call, In-Process API, CLI, GUI\n - name: \"API / Interface Contract\"\n protocol: \"WebSocket\"\n contract-spec: \"docs/architecture/08_cross_cutting/data_models/ingestion_asyncapi.yaml\"\nsupersedes: null\nsuperseded-by: null\n---\n\n# CMP-NAME-001: Architecture Component Name\n\n## 1. Purpose, Responsibility, and Bounded Context\nDefines the single responsibility of the component, its domain Bounded Context alignment, and abstraction level within the overall architecture.\n\n## 2. Structure and Connectivity Diagram (arc42 Sec. 5 / NAF v4)\n```mermaid\ngraph TD\n Client[Actor / External Client] -->|Protocol / Interface| CMP[CMP-NAME-001]\n CMP -->|In-Process / Network / C-ABI| SubModule[Subcomponent or Persistence]\n```\n\n## 3. Interface Contracts and Execution Policies\n- **Execution Mechanism**: Lifecycle specification (autonomous daemon/service, dynamic loading via `LoadLibrary`/`dlopen` if DLL, or direct function invocation).\n- **Fault Tolerance and Performance**: Memory bounds, target latency, concurrency, or failure isolation.\n\n---\n\n## 4. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-14 | Lead Architect | Initial component architecture definition | CHG-ARCH-001 |\n";
2944
2961
  declare const STARTER_ARCH_CONTEXT_AND_SCOPE = "---\nid: ARCH-CTX-001\ntype: context-and-scope\ntitle: \"03. System Context and Scope\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 3\nnaf-perspective: \"Operational Perspective\"\noperational-exchanges:\n - OIE-CHANNEL-001\ncontext-boundaries:\n - CTX-PERIMETER-001\nsupersedes: null\nsuperseded-by: null\n---\n\n# 03. Context and Scope (arc42 Sec. 3 / NAF Operational)\n\n## 1. Business Context\nModels conceptual boundaries of the system with respect to users, collaborating external systems, and external data sources.\n\n### 1.1 Business Context Diagram\n```mermaid\ngraph LR\n User[Actor / End User] -->|Service Request| System([AI-SDLC System])\n System -->|Query / Enrichment| ExtService[External System / Partner API]\n System -->|Audit Record| SIEM[SIEM / Audit System]\n```\n\n### 1.2 Operational Information Exchanges (`OIE-*`)\n| Exchange ID | Source / Target | Payload / Message | Protocol / Channel | Format |\n| :--- | :--- | :--- | :--- | :--- |\n| `OIE-COMM-001` | User \u2794 System | Operation Request | HTTPS / REST | JSON (Schema v1) |\n| `OIE-NOTIF-002`| System \u2794 User | Events and Notifications | WebSocket / WSS | JSON Streaming |\n| `OIE-AUDIT-003`| System \u2794 SIEM | Immutable Audit Trails | Syslog / TLS | RFC 5424 |\n\n---\n\n## 2. Technical Context and Perimeter Infrastructure\nModels physical and logical channels crossing system boundaries (DMZ networks, load balancers, firewalls, and reverse proxies).\n\n### 2.1 Technical Context Diagram\n```mermaid\ngraph TD\n Client[Client / Browser / App] -->|TLS 1.3 / Port 443| LB[Reverse Proxy / WAF]\n LB -->|mTLS / DMZ Internal Network| Gateway[API Gateway / Ingestion]\n Gateway -->|gRPC / IPC| Core[Domain Services]\n```\n\n---\n\n## 3. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-24 | Lead Architect | Initial context and scope definition | CHG-ARCH-001 |\n";
2945
- declare const STARTER_ARCH_CROSS_CUTTING_CONCEPTS = "---\nid: ARCH-CROSS-001\ntype: cross-cutting-concepts\ntitle: \"08. Cross-Cutting Concepts\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 8\nnaf-perspective: \"Information & Security\"\ndata-models:\n - DATA-MODEL-001\nsecurity-enclaves:\n - SEC-ENC-DMZ-001\nsecurity-policies:\n - SEC-POL-TLS-001\nsupersedes: null\nsuperseded-by: null\n---\n\n# 08. Cross-Cutting Concepts (arc42 Sec. 8 / NAF Information & Security)\n\n## 1. Cross-Cutting Security Concept and Zero Trust Model\nDescribes global security approach, authentication, authorization, and enclave isolation (`SEC-ENC-*`):\n\n### 1.1 Machine-to-Machine (M2M) Identity and Authentication\n- All inter-service communication requires mutual authentication (mTLS) with regularly rotated x509 certificates.\n- Private keys are safeguarded in secure enclaves (TPM, HSM, or centralized secret vaults).\n\n### 1.2 Binding Security Policies (`SEC-POL-*`)\n| Policy ID | Scope | Control Description |\n| :--- | :--- | :--- |\n| `SEC-POL-TLS-001` | Network Communications | Mandatory TLS 1.3 with modern cipher suites (ECDHE-ECDSA-AES256-GCM) |\n| `SEC-POL-ZERO-LEAK`| Data at Rest | AES-256 volume encryption and strict PII log masking |\n\n---\n\n## 2. Cross-Cutting Data Models and Schemas (`DATA-*`)\nSpecifies exchange schemas and canonical interfaces:\n\n| Model ID | Format / Schema | Specification Path | Purpose |\n| :--- | :--- | :--- | :--- |\n| `DATA-SCHEMA-001` | JSON Schema / OpenAPI 3.1 | `docs/architecture/08_cross_cutting/data_models/api.json` | External API contract |\n| `DATA-EVENT-002` | AsyncAPI / Protobuf | `docs/architecture/08_cross_cutting/data_models/events.yaml`| Internal async events |\n\n---\n\n## 3. Observability, Metrics, and Immutable Auditing\n- **Distributed Tracing**: W3C Trace Context (`traceparent`) injection via OpenTelemetry.\n- **Operational Metrics**: Prometheus RED metrics exposition (Rate, Errors, Duration).\n- **Structured Logging**: Deterministic JSON format with mandatory fields (`timestamp`, `level`, `trace_id`, `component_id`).\n\n---\n\n## 4. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-24 | Lead Architect | Initial cross-cutting concepts definition | CHG-ARCH-001 |\n";
2962
+ declare const STARTER_ARCH_CROSS_CUTTING_CONCEPTS = "---\nid: ARCH-CROSS-001\ntype: cross-cutting-concepts\ntitle: \"08. Cross-Cutting Concepts\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 8\nnaf-perspective: \"Information & Security\"\ndata-models:\n - DATA-MODEL-001\nsecurity-enclaves:\n - SEC-ENC-DMZ-001\nsecurity-policies:\n - SEC-POL-TLS-001\nsupersedes: null\nsuperseded-by: null\n---\n\n# 08. Cross-Cutting Concepts (arc42 Sec. 8 / NAF Information & Security)\n\n## 1. Cross-Cutting Security Concept and Zero Trust Model\nDescribes global security approach, authentication, authorization, and enclave isolation (`SEC-ENC-*`):\n\n### 1.1 Machine-to-Machine (M2M) Identity and Authentication\n- All inter-service communication requires mutual authentication (mTLS) with regularly rotated x509 certificates.\n- Private keys are safeguarded in secure enclaves (TPM, HSM, or centralized secret vaults).\n\n### 1.2 Binding Security Policies (`SEC-POL-*`)\n| Policy ID | Scope | Control Description |\n| :--- | :--- | :--- |\n| `SEC-POL-TLS-001` | Network Communications | Mandatory TLS 1.3 with modern cipher suites (ECDHE-ECDSA-AES256-GCM) |\n| `SEC-POL-ZERO-LEAK`| Data at Rest | AES-256 volume encryption and strict PII log masking |\n\n---\n\n## 2. Cross-Cutting Data Models and Schemas (`DATA-*`)\nSpecifies exchange schemas and canonical interfaces:\n\n| Model ID | Format / Schema | Specification Path | Purpose |\n| :--- | :--- | :--- | :--- |\n| `DATA-SCHEMA-001` | JSON Schema / OpenAPI 3.1 | `docs/architecture/08_cross_cutting/data_models/api.json` | External API contract |\n| `DATA-EVENT-002` | AsyncAPI / Protobuf | `docs/architecture/08_cross_cutting/data_models/events.yaml`| Internal async events |\n\n---\n\n## 3. Observability, Persistent Telemetry, and Immutable Auditing\n- **Distributed Tracing**: W3C Trace Context (`traceparent`) injection via OpenTelemetry with persistent span export (`.observability/traces/traces.otlp.jsonl`).\n- **Operational Metrics**: Prometheus RED metrics exposition (Rate, Errors, Duration) with periodic local snapshots (`.observability/metrics/metrics.prom`) for offline backfill and optional Grafana dashboards.\n- **Structured Logging**: Deterministic JSONL format with mandatory fields (`timestamp`, `level`, `trace_id`, `component_id`), PII redaction, and rolling local persistence (`OBS_STORAGE_PATH`).\n- **Offline Export & Shutdown Flush**: Guaranteed `ITelemetryStore.flush()` on process exit and `ITelemetryExporter` supporting JSONL, CSV, OpenMetrics, and OTLP exports without requiring a live collector.\n\n---\n\n## 4. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-24 | Lead Architect | Initial cross-cutting concepts definition | CHG-ARCH-001 |\n";
2946
2963
  declare const STARTER_ARCH_DEPLOYMENT_VIEW = "---\nid: ARCH-DEP-001\ntype: deployment-view\ntitle: \"07. Deployment and Infrastructure View\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 7\nnaf-perspective: \"Resource / Deployment\"\ndeployment-nodes:\n - RES-NODE-001\n - RES-CLUSTER-002\nenclaves-mapped:\n - SEC-ENC-DMZ-001\n - SEC-ENC-INTERNAL-002\nsupersedes: null\nsuperseded-by: null\n---\n\n# 07. Deployment View (arc42 Sec. 7 / NAF Resource Deployment)\n\n## 1. Infrastructure Topology and Network Enclaves\nMaps physical and logical component distribution across compute nodes, Kubernetes clusters, availability zones, and segmented security enclaves.\n\n### 1.1 Deployment Topology Diagram\n```mermaid\ngraph TD\n subgraph Internet[\"Public Internet\"]\n Users[Clients / Browsers]\n end\n\n subgraph EnclaveDMZ[\"Enclave: SEC-ENC-DMZ-001 (Perimeter Network)\"]\n WAF[WAF / Reverse Proxy]\n IngestService[\"Pod: CMP-INGEST-001 (Node.js LTS)\"]\n end\n\n subgraph EnclaveInternal[\"Enclave: SEC-ENC-INTERNAL-002 (Private Network)\"]\n CoreService[\"Pod: CMP-CORE-001 (Worker Pool)\"]\n DB[(DB Cluster: PostgreSQL / Storage)]\n end\n\n Users -->|HTTPS / TLS 1.3| WAF\n WAF -->|mTLS| IngestService\n IngestService -->|Isolated Internal Network| CoreService\n CoreService -->|Encrypted Connection / TLS| DB\n```\n\n---\n\n## 2. Node and Execution Resources Inventory (`RES-*` / `DEP-*`)\n\n| Resource ID | Node Type | Associated Enclave | Min CPU / RAM | Deployed Components |\n| :--- | :--- | :--- | :--- | :--- |\n| `RES-NODE-DMZ-01` | VM / Kubernetes Node | `SEC-ENC-DMZ-001` | 2 vCPU / 4 GB | `CMP-INGEST-001` |\n| `RES-NODE-CORE-01`| VM / Worker Node | `SEC-ENC-INTERNAL-002` | 4 vCPU / 8 GB | `CMP-CORE-001` |\n| `RES-NODE-DB-01` | Managed Instance | `SEC-ENC-INTERNAL-002` | 4 vCPU / 16 GB | Immutable Storage |\n\n---\n\n## 3. Network Policies and Traffic Isolation\n- **Perimeter Control**: External access strictly restricted to port 443 via WAF.\n- **Lateral Isolation**: Perimeter network (`SEC-ENC-DMZ-001`) has no direct visibility into internal database.\n- **Encrypted Channels**: All inter-node connections operate under mTLS with certificates issued by internal CA.\n\n---\n\n## 4. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-24 | Lead Architect | Initial deployment view definition | CHG-ARCH-001 |\n";
2947
2964
  declare const STARTER_ARCH_GLOSSARY = "---\nid: ARCH-GLOSS-001\ntype: architecture-glossary\ntitle: \"12. Architecture Glossary and Terms Taxonomy\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 12\nnaf-perspective: \"Taxonomy & Terms\"\ncites-domain-terms:\n - TERM-TELEMETRY-001\n - TERM-ENCLAVE-001\ncites-bounded-contexts:\n - BC-CORE-GOVERNANCE\nsupersedes: null\nsuperseded-by: null\n---\n\n# 12. Architecture Glossary (arc42 Sec. 12 / NAF Taxonomy)\n\n## 1. Canonical Domain Terms (`TERM-*`)\nOfficial definitions and references for business and product domain terms:\n\n| Term / ID | Canonical Definition | Reference Bounded Context |\n| :--- | :--- | :--- |\n| `TERM-ENCLAVE-001` | Logically or physically isolated network zone with strict access and encryption policies | Architecture / Cybersecurity |\n| `TERM-HANDOFF-001` | Immutable canonical context handoff contract between development and engineering agents | AI-SDLC Governance |\n| `TERM-PDAC-001` | Product-Definition-as-Code: product modeling and 360\u00B0 traceability in Git repositories | Core Engine |\n\n---\n\n## 2. Technical Abbreviations and Acronyms\nGlossary of architectural concepts used across system documentation:\n\n| Acronym | Full Meaning | Definition in System Context |\n| :--- | :--- | :--- |\n| **arc42** | Architecture Communication Template | Modular standard to document and communicate software architectures |\n| **NAF v4** | NATO Architecture Framework v4 | Enterprise architecture framework for critical, interoperable systems |\n| **ADR** | Architecture Decision Record | Immutable record of a significant architectural decision |\n| **mTLS** | Mutual Transport Layer Security | Bidirectional cryptographic certificate authentication |\n| **RTM** | Requirements Traceability Matrix | 360\u00B0 traceability matrix between requirements, code, and tests |\n\n---\n\n## 3. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-24 | Lead Architect | Initial architecture glossary definition | CHG-ARCH-001 |\n";
2948
2965
  declare const STARTER_ARCH_INTRODUCTION_AND_GOALS = "---\nid: ARCH-INTRO-001\ntype: architecture-introduction\ntitle: \"01. Introduction and System Goals\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 1\nnaf-perspective: \"Enterprise & Capability\"\ncites-product-actors:\n - ACT-NAME-001\ncites-quality-goals:\n - QR-LATENCY-001\n - QR-AVAILABILITY-001\ncites-journeys:\n - JRN-MAIN-001\nsupersedes: null\nsuperseded-by: null\n---\n\n# 01. Introduction and System Goals (arc42 Sec. 1 / NAF Enterprise)\n\n## 1. System Vision and Executive Summary\nDescribes core system mission, the business problem it solves, and value delivered to users and organization.\n\n### 1.1 Mission Statement\n> *The [System Name] system provides [key capability] for [target audience], guaranteeing [key security, performance, or reliability guarantees].*\n\n---\n\n## 2. Priority Quality Goals (Canonical ProductShape Citations)\nLists top 3 to 5 critical quality goals, linking directly to non-functional requirements (`QR-*`) defined in ProductShape:\n\n| Priority | Quality Goal | Requirement ID | Architectural Rationale |\n| :---: | :--- | :--- | :--- |\n| **1** | High Availability and Resilience | `QR-AVAILABILITY-001` | Decoupled architecture, active redundancy, and automated failover |\n| **2** | Real-Time Latency / Performance | `QR-LATENCY-001` | Asynchronous processing pipeline, low-latency queues |\n| **3** | Zero Trust Security | `SEC-REQ-AUTH-001` | Strict mTLS authentication and enclave isolation |\n\n---\n\n## 3. Stakeholder and Primary Actors Matrix\nMapping of system stakeholders with architectural expectations:\n\n| Role / Stakeholder | Actor ID | Architectural Expectations |\n| :--- | :--- | :--- |\n| **System Operators** | `ACT-OPERATOR-001` | Observability dashboards, early alerting, and auditability |\n| **End Users** | `ACT-USER-001` | Consistent response times and secure interfaces |\n| **Security Team** | `ACT-SEC-AUDITOR` | Zero secrets leakage and immutable access logging |\n\n---\n\n## 4. Revision History and Version Control\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | 2026-09-24 | Lead Architect | Initial architecture goals definition | CHG-ARCH-001 |\n";
@@ -2985,7 +3002,7 @@ declare const CPP_CLANG_TIDY = "# AI-SDLC: Immutable C/C++ Clang-Tidy Guardrails
2985
3002
  declare const CPP_CMAKE_STRICT = "# AI-SDLC: Immutable C/C++ Compiler & CTest Guardrails\nif(MSVC)\n add_compile_options(/W4 /WX /permissive-)\nelse()\n add_compile_options(-Wall -Wextra -Wpedantic -Werror -Wnull-dereference -Wunused-result)\nendif()\n\nset(CMAKE_CXX_CLANG_TIDY \"clang-tidy\")\nset(CMAKE_C_CLANG_TIDY \"clang-tidy\")\n";
2986
3003
  declare const STARTER_ANTIGRAVITY_HOOKS_JSON = "{\n \"branch-guard\": {\n \"enabled\": true,\n \"PreToolUse\": [\n {\n \"matcher\": \"edit_file|write_file\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"node scripts/guard-branch.cjs\",\n \"timeout\": 10\n }\n ]\n }\n ]\n }\n}\n";
2987
3004
  declare const STARTER_AGENT_GUARD_WRAPPER_CJS = "#!/usr/bin/env node\n// Forwarding wrapper or direct execution from .agent\nrequire('../../scripts/guard-branch.cjs');\n";
2988
- declare const STARTER_GUARD_BRANCH_CJS = "#!/usr/bin/env node\n/**\n * AI-SDLC: Antigravity PreToolUse Branch & Immutable Coding Rules Guard Hook\n * 1. Prevents AI agents from modifying or writing files directly on protected branches (main, master, release/*).\n * 2. Prevents AI agents from modifying or weakening deployed coding rules files once created.\n */\n\nconst { execSync } = require('child_process');\nconst path = require('path');\n\nconst PROTECTED_CODING_RULES_FILES = [\n 'Directory.Build.props',\n 'tsconfig.strict.json',\n 'eslint.config.mjs',\n 'gradle/init.d/aisdlc-strict.init.gradle.kts',\n 'config/pmd/aisdlc-ruleset.xml',\n 'config/detekt/detekt.yml',\n '.cargo/config.toml',\n '.clippy.toml',\n '.golangci.yml',\n '.clang-tidy',\n 'cmake/AisdlcStrictCompiler.cmake',\n '.github/CODEOWNERS',\n];\n\nfunction getWorkingBranch(cwd) {\n try {\n const sym = execSync('git symbolic-ref --short HEAD', {\n cwd,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'ignore'],\n }).trim();\n if (sym) return sym;\n } catch {}\n\n try {\n return execSync('git rev-parse --abbrev-ref HEAD', {\n cwd,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'ignore'],\n }).trim();\n } catch {}\n\n return '';\n}\n\nfunction isProtectedCodingRulesTarget(targetPath, cwd) {\n if (!targetPath) return false;\n const resolved = path.resolve(cwd, targetPath);\n\n const norm = resolved.replace(/\\\\/g, '/');\n const rel = path.relative(cwd, resolved).replace(/\\\\/g, '/');\n return PROTECTED_CODING_RULES_FILES.some(\n (ruleFile) => rel === ruleFile || norm.endsWith('/' + ruleFile)\n ) || rel.startsWith('templates/coding-rules/');\n}\n\nfunction evaluateGuardDecision(payload) {\n const targetPath = payload.toolCall?.args?.Path || '';\n const workspacePaths = payload.workspacePaths || [];\n const cwd = workspacePaths[0] || process.cwd();\n const resolvedPath = targetPath ? path.resolve(cwd, targetPath) : '';\n const normPath = resolvedPath.replace(/\\\\/g, '/');\n\n if (isProtectedCodingRulesTarget(resolvedPath, cwd)) {\n return {\n decision: 'deny',\n reason: `\u274C [AI-SDLC Immutable Coding Rules Guard] BLOCKED: AI agents are forbidden from modifying protected coding rules file '${path.basename(targetPath)}'. Fix the source or test code to satisfy the compiler/linter rules instead of altering the rule configuration.`,\n };\n }\n\n if (\n normPath.includes('/.gemini/') ||\n normPath.includes('/brain/') ||\n normPath.includes('/scratch/')\n ) {\n return { decision: 'allow' };\n }\n\n const branch = getWorkingBranch(cwd);\n if (/^(main|master|release\\/.*)$/.test(branch)) {\n return {\n decision: 'deny',\n reason: `\u274C [AI-SDLC Security Guard] BLOCKED: Direct file modifications on protected branch '${branch}' are forbidden. You must create and checkout a new working branch first before editing files (e.g. 'git checkout -b feat/<CHG-ID>-<slug>' or 'git checkout -b task/<PARENT-ID>/<TSK-ID>-<slug>').`,\n };\n }\n\n return { decision: 'allow' };\n}\n\nfunction main() {\n let input = '';\n process.stdin.setEncoding('utf-8');\n process.stdin.on('data', (chunk) => {\n input += chunk;\n });\n process.stdin.on('end', () => {\n try {\n const payload = input.trim() ? JSON.parse(input) : {};\n console.log(JSON.stringify(evaluateGuardDecision(payload)));\n } catch {\n console.log(JSON.stringify({ decision: 'allow' }));\n }\n });\n}\n\nmain();\n";
3005
+ declare const STARTER_GUARD_BRANCH_CJS = "#!/usr/bin/env node\n/**\n * AI-SDLC: Antigravity PreToolUse Branch, Coding Rules & SDD Increment Guard Hook\n * 1. Prevents AI agents from modifying or writing files directly on protected branches (main, master, release/*).\n * 2. Prevents AI agents from modifying or weakening deployed coding rules files once created.\n * 3. Enforces an active SDD increment in specs/changes/active/ before modifying source, test, or Anti-Bypass paths.\n */\n\nconst { execSync } = require('child_process');\nconst fs = require('fs');\nconst path = require('path');\n\nconst PROTECTED_CODING_RULES_FILES = [\n 'Directory.Build.props',\n 'tsconfig.strict.json',\n 'eslint.config.mjs',\n 'gradle/init.d/aisdlc-strict.init.gradle.kts',\n 'config/pmd/aisdlc-ruleset.xml',\n 'config/detekt/detekt.yml',\n '.cargo/config.toml',\n '.clippy.toml',\n '.golangci.yml',\n '.clang-tidy',\n 'cmake/AisdlcStrictCompiler.cmake',\n '.github/CODEOWNERS',\n];\n\nconst PROTECTED_BYPASS_PATTERNS = [\n /^schemas\\//i,\n /^examples\\/security\\//i,\n /^specs\\/security\\//i,\n /^specs\\/privacy\\//i,\n /^packages\\/security\\//i,\n /enclaves?\\//i,\n /SEC-ENC-/,\n /quality-policy\\.ya?ml$/i,\n /license-policy\\.ya?ml$/i,\n /privacy-policy\\.ya?ml$/i,\n /08_security_concept\\.md$/i,\n /09_decisions\\//i,\n /migrations?\\//i,\n /^\\.github\\/CODEOWNERS$/,\n];\n\nconst STANDARD_SDD_ARTIFACTS = ['spec.md', 'design.md', 'tasks.md', 'handoff.yaml'];\n\nfunction getWorkingBranch(cwd) {\n try {\n const sym = execSync('git symbolic-ref --short HEAD', {\n cwd,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'ignore'],\n }).trim();\n if (sym) return sym;\n } catch {}\n\n try {\n return execSync('git rev-parse --abbrev-ref HEAD', {\n cwd,\n encoding: 'utf-8',\n stdio: ['pipe', 'pipe', 'ignore'],\n }).trim();\n } catch {}\n\n return '';\n}\n\nfunction isProtectedCodingRulesTarget(targetPath, cwd) {\n if (!targetPath) return false;\n const resolved = path.resolve(cwd, targetPath);\n const norm = resolved.replace(/\\\\/g, '/');\n const rel = path.relative(cwd, resolved).replace(/\\\\/g, '/');\n return (\n PROTECTED_CODING_RULES_FILES.some(\n (ruleFile) => rel === ruleFile || norm.endsWith('/' + ruleFile)\n ) || rel.startsWith('templates/coding-rules/')\n );\n}\n\nfunction isSourceOrTestTarget(relPath) {\n if (!relPath) return false;\n return /^(src|lib|packages|tests)\\//.test(relPath.replace(/\\\\/g, '/'));\n}\n\nfunction isProtectedBypassPath(relPath) {\n if (!relPath) return false;\n const norm = relPath.replace(/\\\\/g, '/');\n return PROTECTED_BYPASS_PATTERNS.some((re) => re.test(norm));\n}\n\nfunction detectChangeDirProfile(changeDir) {\n for (const fileName of ['spec.md', 'proposal.md', 'handoff.yaml']) {\n const fullPath = path.join(changeDir, fileName);\n if (!fs.existsSync(fullPath)) continue;\n try {\n const content = fs.readFileSync(fullPath, 'utf-8');\n const match = content.match(/^\\s*profile:\\s*['\"]?(patch|standard|critical)['\"]?\\s*$/m);\n if (match) return match[1];\n } catch {}\n }\n return 'standard';\n}\n\nfunction extractBranchChangePrefix(branch) {\n if (!branch) return '';\n const match = String(branch).match(/((?:chg|patch)-\\d+)/i);\n return match ? match[1].toLowerCase() : '';\n}\n\nfunction matchesBranchPrefix(dirName, branchPrefix) {\n if (!branchPrefix) return true;\n const lower = dirName.toLowerCase();\n return lower === branchPrefix || lower.startsWith(branchPrefix + '-');\n}\n\nfunction listActiveChangeDirs(activeRoot, branchPrefix) {\n if (!fs.existsSync(activeRoot)) return [];\n try {\n return fs\n .readdirSync(activeRoot, { withFileTypes: true })\n .filter((entry) => entry.isDirectory() && matchesBranchPrefix(entry.name, branchPrefix))\n .map((entry) => path.join(activeRoot, entry.name));\n } catch {\n return [];\n }\n}\n\nfunction isSatisfiedChangeDir(changeDir, requiresFullSdd) {\n const profile = detectChangeDirProfile(changeDir);\n if (profile === 'patch') {\n return !requiresFullSdd && fs.existsSync(path.join(changeDir, 'spec.md'));\n }\n return STANDARD_SDD_ARTIFACTS.every((f) => fs.existsSync(path.join(changeDir, f)));\n}\n\nfunction validateProtectedBypassOnly(candidateDirs, relTargetPath) {\n const hasPatchCandidate = candidateDirs.some(\n (dir) => detectChangeDirProfile(dir) === 'patch'\n );\n if (hasPatchCandidate) {\n return {\n valid: false,\n reason: `\u274C [AI-SDLC Anti-Bypass Guard] BLOCKED: Active SDD increment uses 'patch' profile, but '${relTargetPath}' is a protected Anti-Bypass path. Protected paths require a 'standard' or 'critical' SDD increment in specs/changes/active/ (run aisdlc-increment).`,\n };\n }\n return { valid: true };\n}\n\nfunction validateSourceOrTestEdit(candidateDirs, branchPrefix, relTargetPath, isBypass) {\n if (candidateDirs.length === 0) {\n const prefixHint = branchPrefix ? ` matching '${branchPrefix}'` : '';\n return {\n valid: false,\n reason: `\u274C [AI-SDLC SDD Increment Guard] BLOCKED: Cannot modify '${relTargetPath}' without an active SDD increment${prefixHint} in specs/changes/active/. Run the 'aisdlc-increment' skill (Step 0 -> sdd_change_new) first.`,\n };\n }\n if (candidateDirs.some((dir) => isSatisfiedChangeDir(dir, isBypass))) {\n return { valid: true };\n }\n if (isBypass) {\n return {\n valid: false,\n reason: `\u274C [AI-SDLC Anti-Bypass Guard] BLOCKED: Protected Anti-Bypass path '${relTargetPath}' cannot be modified under a 'patch' increment. A 'standard' or 'critical' SDD increment with spec.md, design.md, tasks.md, and handoff.yaml in specs/changes/active/ is required (aisdlc-increment).`,\n };\n }\n return {\n valid: false,\n reason: `\u274C [AI-SDLC SDD Increment Guard] BLOCKED: Active SDD increment in specs/changes/active/ is incomplete for standard/critical profile (requires spec.md, design.md, tasks.md, and handoff.yaml) before editing '${relTargetPath}'. Complete SDD scaffolding via aisdlc-increment first.`,\n };\n}\n\nfunction hasValidActiveSddIncrement(cwd, branch = '', relTargetPath = 'src/') {\n if (!relTargetPath || relTargetPath.startsWith('..')) return { valid: true };\n if (!fs.existsSync(path.join(cwd, 'specs', 'changes'))) return { valid: true };\n\n const isSourceOrTest = isSourceOrTestTarget(relTargetPath);\n const isBypass = isProtectedBypassPath(relTargetPath);\n if (!isSourceOrTest && !isBypass) return { valid: true };\n\n const branchPrefix = extractBranchChangePrefix(branch);\n const activeRoot = path.join(cwd, 'specs', 'changes', 'active');\n const candidateDirs = listActiveChangeDirs(activeRoot, branchPrefix);\n\n if (!isSourceOrTest) return validateProtectedBypassOnly(candidateDirs, relTargetPath);\n return validateSourceOrTestEdit(candidateDirs, branchPrefix, relTargetPath, isBypass);\n}\n\nfunction isEphemeralPath(normPath) {\n return (\n normPath.includes('/.gemini/') ||\n normPath.includes('/brain/') ||\n normPath.includes('/scratch/')\n );\n}\n\nfunction evaluateGuardDecision(payload) {\n const targetPath = payload.toolCall?.args?.Path || '';\n const cwd = (payload.workspacePaths || [])[0] || process.cwd();\n const resolvedPath = targetPath ? path.resolve(cwd, targetPath) : '';\n const normPath = resolvedPath.replace(/\\\\/g, '/');\n\n if (isProtectedCodingRulesTarget(resolvedPath, cwd)) {\n return {\n decision: 'deny',\n reason: `\u274C [AI-SDLC Immutable Coding Rules Guard] BLOCKED: AI agents are forbidden from modifying protected coding rules file '${path.basename(targetPath)}'. Fix the source or test code to satisfy the compiler/linter rules instead of altering the rule configuration.`,\n };\n }\n if (isEphemeralPath(normPath)) return { decision: 'allow' };\n\n const branch = getWorkingBranch(cwd);\n if (/^(main|master|release\\/.*)$/.test(branch)) {\n return {\n decision: 'deny',\n reason: `\u274C [AI-SDLC Security Guard] BLOCKED: Direct file modifications on protected branch '${branch}' are forbidden. You must create and checkout a new working branch first before editing files (e.g. 'git checkout -b feat/<CHG-ID>-<slug>' or 'git checkout -b task/<PARENT-ID>/<TSK-ID>-<slug>').`,\n };\n }\n\n const relPath = resolvedPath ? path.relative(cwd, resolvedPath).replace(/\\\\/g, '/') : '';\n const sddCheck = hasValidActiveSddIncrement(cwd, branch, relPath);\n if (!sddCheck.valid) return { decision: 'deny', reason: sddCheck.reason };\n\n return { decision: 'allow' };\n}\n\nfunction main() {\n let input = '';\n process.stdin.setEncoding('utf-8');\n process.stdin.on('data', (chunk) => {\n input += chunk;\n });\n process.stdin.on('end', () => {\n try {\n const payload = input.trim() ? JSON.parse(input) : {};\n console.log(JSON.stringify(evaluateGuardDecision(payload)));\n } catch {\n console.log(JSON.stringify({ decision: 'allow' }));\n }\n });\n}\n\nif (require.main === module) {\n main();\n}\n\nmodule.exports = {\n evaluateGuardDecision,\n hasValidActiveSddIncrement,\n detectChangeDirProfile,\n isSourceOrTestTarget,\n isProtectedBypassPath,\n isProtectedCodingRulesTarget,\n};\n";
2989
3006
  declare function getReferenceCodingRulesTemplates(): {
2990
3007
  relPath: string;
2991
3008
  content: string;
@@ -3012,40 +3029,40 @@ interface StarterSchemaEntry {
3012
3029
  content: string;
3013
3030
  schema: JsonSchemaRule;
3014
3031
  }
3015
- declare const SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/architecture/adr.schema.json\",\r\n \"title\": \"Architecture Decision Record Schema (Versionable)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"deciders\", \"decision-date\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ADR-[0-9]{3,4}(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"architecture-decision-record\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Decision record semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"proposed\", \"accepted\", \"rejected\", \"deprecated\", \"superseded\"]\r\n },\r\n \"deciders\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"decision-date\": {\r\n \"type\": \"string\",\r\n \"format\": \"date\"\r\n },\r\n \"affects-components\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ADR-[0-9]{3,4}(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ADR-[0-9]{3,4}(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3016
- declare const SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/architecture/component.schema.json\",\r\n \"title\": \"NAF v4 / arc42 Architecture Component Schema (Multilevel)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"level\",\r\n \"implementation-type\",\r\n \"implements-use-cases\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"component\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Architecture component semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"proposed\", \"accepted\", \"deprecated\", \"retired\"]\r\n },\r\n \"level\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 1,\r\n \"description\": \"Hierarchical architecture level (1: Bounded Context / Root System, 2: Subsystem / Container, 3: Executable Unit / DLL / Function).\"\r\n },\r\n \"bounded-context\": {\r\n \"type\": \"string\",\r\n \"description\": \"Domain-Driven Design (DDD) Bounded Context name this component belongs to.\"\r\n },\r\n \"parent-component\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Parent component identifier (null if Level 1).\"\r\n },\r\n \"implementation-type\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"service\", \"dll\", \"function\", \"composite\"],\r\n \"description\": \"Technical implementation paradigm: distributed service (service), dynamic/native library (dll), in-process module/function (function), or logical aggregator/Bounded Context (composite).\"\r\n },\r\n \"implements-use-cases\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"satisfies-requirements\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(FR|QR|CON|SEC-REQ|SAF-REQ|PRIV-REQ)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"hosted-in-enclave\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Security enclave where the component resides (optional for DLLs or in-process functions).\"\r\n },\r\n \"interfaces\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"name\", \"protocol\"],\r\n \"properties\": {\r\n \"name\": { \"type\": \"string\" },\r\n \"protocol\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"REST/HTTP\",\r\n \"gRPC\",\r\n \"WebSocket\",\r\n \"Kafka\",\r\n \"MQTT\",\r\n \"C-ABI\",\r\n \"Native-ABI\",\r\n \"FFI\",\r\n \"In-Process API\",\r\n \"Function-Call\",\r\n \"CLI\",\r\n \"GUI\",\r\n \"IPC\"\r\n ]\r\n },\r\n \"contract-spec\": { \"type\": \"string\" }\r\n }\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3017
- declare const SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/architecture/introduction-and-goals.schema.json\",\r\n \"title\": \"NAF v4 Enterprise & Capability / arc42 Introduction and System Goals Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"naf-perspective\",\r\n \"cites-product-actors\",\r\n \"cites-quality-goals\",\r\n \"cites-journeys\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ARCH-INTRO-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"architecture-introduction\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Artifact semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"proposed\", \"accepted\", \"approved\", \"deprecated\", \"superseded\"]\r\n },\r\n \"owner\": {\r\n \"type\": \"string\"\r\n },\r\n \"arc42-section\": {\r\n \"type\": \"integer\",\r\n \"const\": 1\r\n },\r\n \"naf-perspective\": {\r\n \"type\": \"string\",\r\n \"const\": \"Enterprise & Capability\"\r\n },\r\n \"cites-product-actors\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"cites-quality-goals\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(QR|SEC-REQ|PRIV-REQ)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"cites-journeys\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^JRN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Product journey identifiers (JRN-*) envisioned in this system capability scope.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ARCH-INTRO-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ARCH-INTRO-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3018
- declare const SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/compliance/license-manifest.schema.json\",\r\n \"title\": \"Static Dependencies License Manifest Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\"evaluated_dependencies\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(MAN-LIC|LIC-MAN|LIC)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Optional canonical artifact identifier.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"license-manifest\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+(\\\\.[0-9]+)?(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Manifest format version.\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": {\r\n \"type\": \"string\"\r\n },\r\n \"generated_at\": {\r\n \"type\": \"string\"\r\n },\r\n \"evaluated_dependencies\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"package\", \"version\", \"spdx_license\", \"status\"],\r\n \"properties\": {\r\n \"package\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"spdx_license\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"APPROVED\",\r\n \"REJECTED\",\r\n \"REVIEW_REQUIRED\",\r\n \"COMMERCIAL_APPROVAL_REQUIRED\",\r\n \"PENDING\"\r\n ]\r\n },\r\n \"reason\": {\r\n \"type\": \"string\"\r\n },\r\n \"approved_by\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3019
- declare const SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/compliance/license-policy.schema.json\",\r\n \"title\": \"Open Source License Policy Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\"version\", \"project\", \"default_action\", \"categories\", \"agent_guardrails\", \"ci_gates\"],\r\n \"properties\": {\r\n \"version\": {\r\n \"type\": \"string\"\r\n },\r\n \"project\": {\r\n \"type\": \"string\"\r\n },\r\n \"default_action\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"ALLOW\", \"DENY\", \"REVIEW_REQUIRED\"]\r\n },\r\n \"categories\": {\r\n \"type\": \"object\"\r\n },\r\n \"agent_guardrails\": {\r\n \"type\": \"object\",\r\n \"required\": [\"enforce_pre_check\", \"reject_unknown_licenses\"],\r\n \"properties\": {\r\n \"enforce_pre_check\": { \"type\": \"boolean\" },\r\n \"reject_unknown_licenses\": { \"type\": \"boolean\" },\r\n \"auto_reject_categories\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\r\n \"on_commercial_detected\": { \"type\": \"object\" }\r\n }\r\n },\r\n \"ci_gates\": {\r\n \"type\": \"object\",\r\n \"required\": [\"fail_on_denied\", \"generate_sbom\"],\r\n \"properties\": {\r\n \"fail_on_denied\": { \"type\": \"boolean\" },\r\n \"fail_on_missing_license\": { \"type\": \"boolean\" },\r\n \"generate_sbom\": { \"type\": \"boolean\" },\r\n \"sbom_format\": { \"type\": \"string\" },\r\n \"output_notices_file\": { \"type\": \"string\" },\r\n \"allowed_depth\": { \"type\": \"string\", \"enum\": [\"DIRECT\", \"TRANSITIVE\"] }\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3020
- declare const SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/compliance/quality-policy.schema.json\",\r\n \"title\": \"Software Quality Policy Schema (Polyglot)\",\r\n \"type\": \"object\",\r\n \"required\": [\"version\", \"project\", \"enforcement_mode\", \"coding_rules\", \"release_thresholds\", \"agent_guardrails\"],\r\n \"properties\": {\r\n \"version\": { \"type\": \"string\" },\r\n \"project\": { \"type\": \"string\" },\r\n \"enforcement_mode\": { \"type\": \"string\", \"enum\": [\"STRICT\", \"PERMISSIVE\"] },\r\n \"ratchet_mode\": { \"type\": \"boolean\" },\r\n \"scope\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"target_directories\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\r\n \"supported_extensions\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\r\n \"exclude_patterns\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }\r\n }\r\n },\r\n \"language_toolchains\": {\r\n \"type\": \"object\"\r\n },\r\n \"coding_rules\": {\r\n \"type\": \"object\",\r\n \"required\": [\"standards\", \"enforce_formatting\", \"rules\"],\r\n \"properties\": {\r\n \"standards\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } },\r\n \"enforce_formatting\": { \"type\": \"boolean\" },\r\n \"formatting_engine\": { \"type\": \"string\" },\r\n \"linter_engine\": { \"type\": \"string\" },\r\n \"rules\": { \"type\": \"object\" }\r\n }\r\n },\r\n \"release_thresholds\": {\r\n \"type\": \"object\",\r\n \"required\": [\"cyclomatic_complexity\", \"cognitive_complexity\", \"maintainability_index\", \"code_duplication\", \"test_coverage\"],\r\n \"properties\": {\r\n \"cyclomatic_complexity\": {\r\n \"type\": \"object\",\r\n \"required\": [\"max_per_function\", \"action_on_breach\"],\r\n \"properties\": {\r\n \"max_per_function\": { \"type\": \"integer\" },\r\n \"warning_at\": { \"type\": \"integer\" },\r\n \"action_on_breach\": { \"type\": \"string\" }\r\n }\r\n },\r\n \"cognitive_complexity\": {\r\n \"type\": \"object\",\r\n \"required\": [\"max_per_function\", \"action_on_breach\"],\r\n \"properties\": {\r\n \"max_per_function\": { \"type\": \"integer\" },\r\n \"warning_at\": { \"type\": \"integer\" },\r\n \"action_on_breach\": { \"type\": \"string\" }\r\n }\r\n },\r\n \"maintainability_index\": {\r\n \"type\": \"object\",\r\n \"required\": [\"min_acceptable_score\", \"action_on_breach\"],\r\n \"properties\": {\r\n \"min_acceptable_score\": { \"type\": \"number\" },\r\n \"target_score\": { \"type\": \"number\" },\r\n \"action_on_breach\": { \"type\": \"string\" }\r\n }\r\n },\r\n \"code_duplication\": {\r\n \"type\": \"object\",\r\n \"required\": [\"max_percentage\", \"action_on_breach\"],\r\n \"properties\": {\r\n \"max_percentage\": { \"type\": \"number\" },\r\n \"action_on_breach\": { \"type\": \"string\" }\r\n }\r\n },\r\n \"test_coverage\": {\r\n \"type\": \"object\",\r\n \"required\": [\"min_line_coverage_percent\", \"action_on_breach\"],\r\n \"properties\": {\r\n \"min_line_coverage_percent\": { \"type\": \"number\" },\r\n \"min_branch_coverage_percent\": { \"type\": \"number\" },\r\n \"min_function_coverage_percent\": { \"type\": \"number\" },\r\n \"action_on_breach\": { \"type\": \"string\" }\r\n }\r\n },\r\n \"technical_debt\": {\r\n \"type\": \"object\"\r\n }\r\n }\r\n },\r\n \"agent_guardrails\": {\r\n \"type\": \"object\",\r\n \"required\": [\"enforce_pre_commit_linter\", \"prevent_suppression_comments\"],\r\n \"properties\": {\r\n \"enforce_pre_commit_linter\": { \"type\": \"boolean\" },\r\n \"prevent_suppression_comments\": { \"type\": \"boolean\" },\r\n \"auto_refactor_on_high_complexity\": { \"type\": \"boolean\" }\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3021
- declare const SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/ide/mcp-config.schema.json\",\r\n \"title\": \"IDE MCP Configuration Schema (Cursor, Antigravity, VS Code)\",\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"$schema\": {\r\n \"type\": \"string\"\r\n },\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(MCP-CFG|IDE-MCP|MCP)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Optional identifier for MCP configuration artifact.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"mcp-config\"\r\n },\r\n \"mcpServers\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": {\r\n \"type\": \"object\",\r\n \"required\": [\"command\"],\r\n \"properties\": {\r\n \"command\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"args\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"env\": {\r\n \"type\": \"object\"\r\n },\r\n \"disabled\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"alwaysAllow\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"description\": \"MCP server registry format for Cursor and Antigravity.\"\r\n },\r\n \"servers\": {\r\n \"type\": \"object\",\r\n \"additionalProperties\": {\r\n \"type\": \"object\",\r\n \"required\": [\"command\"],\r\n \"properties\": {\r\n \"command\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"args\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"env\": {\r\n \"type\": \"object\"\r\n },\r\n \"disabled\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"alwaysAllow\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"description\": \"MCP server registry format for VS Code.\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3022
- declare const SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/manuals/production-manual.schema.json\",\r\n \"title\": \"AI-SDLC Production & Operations Manual Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"applies-to-version\",\r\n \"target-audience\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^MAN-PROD-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Immutable production manual identifier (e.g. MAN-PROD-SENTINELCORE).\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"production-manual\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Document semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Template schema version.\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3,\r\n \"description\": \"Descriptive title of the production manual.\"\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"applies-to-version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Software version or release this production manual applies to (e.g. v1.0.0).\"\r\n },\r\n \"target-audience\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"minItems\": 1,\r\n \"description\": \"Target technical profiles (e.g. DevOps, SRE, Release Manager, SecOps).\"\r\n },\r\n \"components-covered\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Architecture components (CMP-*) deployed and covered by the manual.\"\r\n },\r\n \"enclaves-involved\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Security enclaves (SEC-ENC-*) in which deployment executes.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^MAN-PROD-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^MAN-PROD-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3023
- declare const SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/manuals/user-manual.schema.json\",\r\n \"title\": \"AI-SDLC User Manual Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"target-audience\",\r\n \"allowed-roles\",\r\n \"applies-to-version\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^MAN-USER-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Immutable user manual identifier (e.g. MAN-USER-SENTINELCORE).\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"user-manual\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Document semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Template schema version.\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3,\r\n \"description\": \"Descriptive title of the user manual.\"\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"applies-to-version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Software version or release this manual applies to (e.g. v1.0.0).\"\r\n },\r\n \"target-audience\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"minItems\": 1,\r\n \"description\": \"Target user profiles or roles for the manual.\"\r\n },\r\n \"allowed-roles\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"minItems\": 1,\r\n \"description\": \"Formal catalog of authorized roles to operate the application (linked to ACT-*).\"\r\n },\r\n \"journeys-covered\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^JRN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Product journey identifiers (JRN-*) covered in the manual.\"\r\n },\r\n \"use-cases-covered\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Use case identifiers (UC-*) implemented across journeys.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^MAN-USER-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^MAN-USER-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3024
- declare const SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/data-asset.schema.json\",\r\n \"title\": \"Personal Data Asset & PII Inventory Schema (DATA-ASSET-*)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"classification\",\r\n \"pii-categories\",\r\n \"data-subjects\",\r\n \"retention-period\",\r\n \"erasure-method\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"data-asset\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Data asset semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"classification\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"public\",\r\n \"internal\",\r\n \"confidential-pii\",\r\n \"special-category-sensitive\"\r\n ],\r\n \"description\": \"Data sensitivity classification aligned with privacy-policy.yaml.\"\r\n },\r\n \"pii-categories\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"identifiers\",\r\n \"contact\",\r\n \"authentication\",\r\n \"financial\",\r\n \"location\",\r\n \"behavioral\",\r\n \"biometric\",\r\n \"health\",\r\n \"telemetry-operator\"\r\n ]\r\n }\r\n },\r\n \"data-subjects\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Product actors (ACT-*) whose personal data is stored or processed.\"\r\n },\r\n \"fields\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"name\", \"sensitivity\", \"masking-strategy\"],\r\n \"properties\": {\r\n \"name\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"sensitivity\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"public\", \"internal\", \"pii\", \"special-category\"]\r\n },\r\n \"masking-strategy\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"none\",\r\n \"redact\",\r\n \"sha256-salt\",\r\n \"tokenize\",\r\n \"aes-256-gcm\",\r\n \"truncate\"\r\n ]\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"retention-period\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^([0-9]+(d|m|y)|session-only|indefinite-anonymized)$\",\r\n \"description\": \"Maximum retention TTL (e.g. 30d, 12m, 5y, session-only, indefinite-anonymized).\"\r\n },\r\n \"erasure-method\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"hard-delete\",\r\n \"crypto-shredding\",\r\n \"irreversible-anonymization\"\r\n ]\r\n },\r\n \"owner-bounded-context\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(BC|CMP)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3025
- declare const SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/privacy-policy.schema.json\",\r\n \"title\": \"Privacy-by-Design as Code Governance Policy Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"version\",\r\n \"project\",\r\n \"regulatory_frameworks\",\r\n \"default_action\",\r\n \"classifications\",\r\n \"agent_guardrails\",\r\n \"ci_gates\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(PRIV-POL|POL-PRIV)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"privacy-policy\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"project\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"regulatory_frameworks\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"GDPR\", \"LOPDGDD\", \"ISO-27701\", \"CCPA\", \"HIPAA\", \"LGPD\"]\r\n }\r\n },\r\n \"default_action\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"DENY_UNREGISTERED_PII\", \"ALLOW\", \"REVIEW_REQUIRED\"]\r\n },\r\n \"classifications\": {\r\n \"type\": \"object\",\r\n \"required\": [\"public\", \"internal\", \"confidential_pii\", \"special_category_sensitive\"],\r\n \"additionalProperties\": {\r\n \"type\": \"object\",\r\n \"required\": [\"action\", \"encryption_at_rest\", \"encryption_in_transit\", \"allow_in_logs\", \"allow_in_ai_prompts\"],\r\n \"properties\": {\r\n \"action\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"ALLOW\", \"STRICT_GOVERNANCE\", \"DPIA_APPROVAL_REQUIRED\", \"DENY\"]\r\n },\r\n \"description\": { \"type\": \"string\" },\r\n \"exception_requires\": { \"type\": \"string\" },\r\n \"require_ropa_entry\": { \"type\": \"boolean\" },\r\n \"require_dpia_artifact\": { \"type\": \"boolean\" },\r\n \"encryption_at_rest\": { \"type\": \"boolean\" },\r\n \"encryption_in_transit\": { \"type\": \"boolean\" },\r\n \"require_field_level_encryption\": { \"type\": \"boolean\" },\r\n \"allow_in_logs\": { \"type\": \"boolean\" },\r\n \"log_masking_strategy\": { \"type\": \"string\" },\r\n \"allow_in_ai_prompts\": { \"type\": \"boolean\" },\r\n \"max_retention_days\": { \"type\": \"integer\", \"minimum\": 1 },\r\n \"require_right_to_erasure\": { \"type\": \"boolean\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"cross_border_transfers\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"allowed_regions\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"require_scc_for_third_countries\": { \"type\": \"boolean\" },\r\n \"approved_subprocessors\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"agent_guardrails\": {\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"forbid_real_pii_in_tests\",\r\n \"forbid_pii_in_console_or_logger\",\r\n \"require_dto_projection_for_pii\"\r\n ],\r\n \"properties\": {\r\n \"forbid_real_pii_in_tests\": { \"type\": \"boolean\" },\r\n \"forbid_pii_in_console_or_logger\": { \"type\": \"boolean\" },\r\n \"require_dto_projection_for_pii\": { \"type\": \"boolean\" },\r\n \"on_special_category_detected\": {\r\n \"type\": \"object\",\r\n \"required\": [\"action\", \"notification_tag\", \"message\"],\r\n \"properties\": {\r\n \"action\": { \"type\": \"string\" },\r\n \"notification_tag\": { \"type\": \"string\" },\r\n \"message\": { \"type\": \"string\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"ci_gates\": {\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"fail_on_unregistered_pii\",\r\n \"fail_on_pii_in_logs\",\r\n \"fail_on_missing_retention_policy\",\r\n \"generate_ropa_inventory\",\r\n \"output_ropa_file\",\r\n \"output_privacy_report\"\r\n ],\r\n \"properties\": {\r\n \"fail_on_unregistered_pii\": { \"type\": \"boolean\" },\r\n \"fail_on_pii_in_logs\": { \"type\": \"boolean\" },\r\n \"fail_on_missing_retention_policy\": { \"type\": \"boolean\" },\r\n \"fail_on_unapproved_subprocessor\": { \"type\": \"boolean\" },\r\n \"generate_ropa_inventory\": { \"type\": \"boolean\" },\r\n \"output_ropa_file\": { \"type\": \"string\" },\r\n \"output_privacy_report\": { \"type\": \"string\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3026
- declare const SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/privacy-req.schema.json\",\r\n \"title\": \"Privacy Requirement & Technical Control Schema (PRIV-REQ-*)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"privacy-principle\",\r\n \"linddun-category\",\r\n \"governs-ropa\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"privacy-requirement\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Privacy requirement semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"privacy-principle\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"data-minimization\",\r\n \"purpose-limitation\",\r\n \"storage-limitation\",\r\n \"accuracy\",\r\n \"integrity-and-confidentiality\",\r\n \"transparency-and-consent\",\r\n \"data-subject-rights-arco\",\r\n \"pseudonymization-anonymization\"\r\n ]\r\n },\r\n \"linddun-category\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"linkability\",\r\n \"identifiability\",\r\n \"non-repudiation\",\r\n \"detectability\",\r\n \"disclosure-of-information\",\r\n \"unawareness\",\r\n \"non-compliance\"\r\n ],\r\n \"description\": \"LINDDUN privacy threat category mitigated by this control.\"\r\n },\r\n \"governs-ropa\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Upstream ROPA records (PRIV-ROPA-*) governed by this privacy requirement.\"\r\n },\r\n \"protects-data-assets\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"enforced-in-enclave\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"compliance-references\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"acceptance-format\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"gherkin\", \"declarative-prose\"]\r\n },\r\n \"cucumber-tags\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3027
- declare const SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/privacy-ropa.schema.json\",\r\n \"title\": \"Record of Processing Activities Schema (PRIV-ROPA-* / GDPR Art. 30)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"lawful-basis\",\r\n \"processing-purpose\",\r\n \"use-cases\",\r\n \"data-assets\",\r\n \"data-subjects\",\r\n \"retention-ttl\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"privacy-ropa\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"ROPA record semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"lawful-basis\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"consent\",\r\n \"contract\",\r\n \"legal-obligation\",\r\n \"vital-interests\",\r\n \"public-task\",\r\n \"legitimate-interests\"\r\n ],\r\n \"description\": \"Lawful basis for processing under GDPR Art. 6.1.\"\r\n },\r\n \"special-category-condition\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"enum\": [\r\n null,\r\n \"explicit-consent\",\r\n \"employment-social-security\",\r\n \"vital-interests\",\r\n \"public-interest\",\r\n \"preventive-medicine\",\r\n \"public-health\"\r\n ],\r\n \"description\": \"GDPR Art. 9.2 condition when processing special category data.\"\r\n },\r\n \"processing-purpose\": {\r\n \"type\": \"string\",\r\n \"minLength\": 10\r\n },\r\n \"use-cases\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Upstream Use Cases (UC-*) that trigger this data processing activity.\"\r\n },\r\n \"data-assets\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Personal Data Assets (DATA-ASSET-*) processed in this activity.\"\r\n },\r\n \"data-subjects\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"retention-ttl\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^([0-9]+(d|m|y)|session-only|indefinite-anonymized)$\"\r\n },\r\n \"cross-border-transfer\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"transfer-safeguards\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"enum\": [null, \"adequacy-decision\", \"scc\", \"bcr\", \"derogation\"]\r\n },\r\n \"subprocessors\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"dpia-required\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"dpia-reference\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^DPIA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"mitigated-by\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Privacy requirements (PRIV-REQ-*) governing and enforcing this processing activity.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3028
- declare const SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/product/actor.schema.json\",\r\n \"title\": \"ProductShape Actor Schema (Versionable)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"role-type\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"actor\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Artifact semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Schema specification version used.\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"role-type\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"human-user\", \"ai-agent\", \"external-system\", \"sensor-iot\"]\r\n },\r\n \"description\": {\r\n \"type\": \"string\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Identifier of the actor superseded by this version or artifact.\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Identifier of the new actor superseding this one upon deprecation/retirement.\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3029
- declare const SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/product/bounded-context.schema.json\",\r\n \"title\": \"Domain-Driven Design (DDD) Bounded Context Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"domain-type\",\r\n \"responsibilities\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Immutable Bounded Context identifier (e.g. BC-AI-SDLC-GOVERNANCE).\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"bounded-context\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Bounded context document semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Template schema version.\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3,\r\n \"description\": \"Descriptive title of the Bounded Context.\"\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"domain-type\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"core\", \"supporting\", \"generic\"],\r\n \"description\": \"DDD subdomain classification: core differentiator, supporting capability, or generic commodity.\"\r\n },\r\n \"strategic-classification\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"evolutionary-stage\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"genesis\", \"custom-built\", \"product-rental\", \"commodity\"]\r\n },\r\n \"business-model-role\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"differentiator\", \"operational\", \"enabler\"]\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"responsibilities\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"minItems\": 1,\r\n \"description\": \"List of functional boundaries and core domain responsibilities encapsulated within this context.\"\r\n },\r\n \"ubiquitous-language-terms\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Ubiquitous language terms (TERM-*) governed within this bounded context.\"\r\n },\r\n \"context-mapping\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"upstream-dependencies\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"downstream-dependents\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"integration-patterns\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"pattern\": {\r\n \"type\": \"string\"\r\n },\r\n \"related-context\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"components-involved\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Architecture components (CMP-*) implementing this bounded context.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3030
- declare const SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/product/business-rule.schema.json\",\r\n \"title\": \"ProductShape Business Rule Schema (Versionable)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"enforcement-level\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"business-rule\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Business rule semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"enforcement-level\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"strict-invariant\", \"override-with-approval\", \"guideline\"]\r\n },\r\n \"defined-in\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"uses-terms\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3031
- declare const SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/product/journey.schema.json\",\r\n \"title\": \"Customer / Operator Journey Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"persona\",\r\n \"stages\",\r\n \"touchpoints\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^JRN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"journey\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Journey semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"persona\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Actor (persona) starring in this journey.\"\r\n },\r\n \"stages\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Sequential journey stages (e.g. Awareness, Onboarding, Activation, Retention).\"\r\n },\r\n \"touchpoints\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Touchpoints between persona and system at each stage.\"\r\n },\r\n \"related-use-cases\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"System use cases related to this journey.\"\r\n },\r\n \"pain-points\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Frictions or issues detected along the user journey.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"]\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"]\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3032
- declare const SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/product/requirement.schema.json\",\r\n \"title\": \"ProductShape Requirement Schema (Strict Test Validation Enforced)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"category\", \"derives-from\", \"verifiable-by\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(FR|QR|CON)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"requirement\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Requirement semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"category\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"functional\", \"quality\", \"constraint\"]\r\n },\r\n \"derives-from\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(UC|BR|CON|CAP|GOAL)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Product Traceability: Origin Use Cases, Rules, Constraints, or Capabilities.\"\r\n },\r\n \"verifiable-by\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"cucumber-bdd\", \"automated-unit-test\", \"integration-test\", \"performance-benchmark\", \"security-audit\", \"inspection\"],\r\n \"description\": \"Mandatory formal verification method.\"\r\n },\r\n \"acceptance-format\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"gherkin\", \"declarative-prose\"],\r\n \"description\": \"Acceptance criteria format.\"\r\n },\r\n \"cucumber-tags\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\r\n },\r\n \"description\": \"Cucumber tags for filtering and executing BDD tests.\"\r\n },\r\n \"enforce-bdd-variants\": {\r\n \"type\": \"boolean\",\r\n \"description\": \"When true, enforces all 3 BDD scenario categories (@nominal, @boundary, @invalid).\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^(FR|QR|CON)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^(FR|QR|CON)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3033
- declare const SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/product/term.schema.json\",\r\n \"title\": \"Domain Glossary Term Schema (Ubiquitous Language)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"definition\",\r\n \"bounded-context\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"term\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Term semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 2,\r\n \"description\": \"Canonical name of the term in the domain ubiquitous language.\"\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"definition\": {\r\n \"type\": \"string\",\r\n \"minLength\": 10,\r\n \"description\": \"Precise and unambiguous definition of the term in the domain context.\"\r\n },\r\n \"bounded-context\": {\r\n \"type\": \"string\",\r\n \"description\": \"DDD Bounded Context this term belongs to (e.g. FlightControl, Telemetry, Billing).\"\r\n },\r\n \"synonyms\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Synonyms or alternative terms used colloquially that map to this canonical term.\"\r\n },\r\n \"anti-terms\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Incorrect or ambiguous terms that MUST NOT be used for this concept.\"\r\n },\r\n \"related-terms\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Glossary terms semantically related.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"]\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"]\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3034
- declare const SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/product/use-case.schema.json\",\r\n \"title\": \"ProductShape Use Case Schema (Versionable)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"primary-actor\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"use-case\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Use case semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\",\r\n \"description\": \"Template schema version.\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"primary-actor\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"supporting-actors\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"governed-by\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"uses-terms\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"in-context\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"alternative-flows\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"oneOf\": [\r\n { \"type\": \"string\", \"minLength\": 1 },\r\n {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"id\": { \"type\": \"string\" },\r\n \"name\": { \"type\": \"string\" },\r\n \"description\": { \"type\": \"string\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n ]\r\n },\r\n \"description\": \"Declared alternative flows that must be covered by tests.\"\r\n },\r\n \"exception-flows\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"oneOf\": [\r\n { \"type\": \"string\", \"minLength\": 1 },\r\n {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"id\": { \"type\": \"string\" },\r\n \"name\": { \"type\": \"string\" },\r\n \"description\": { \"type\": \"string\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n ]\r\n },\r\n \"description\": \"Declared exception flows that must be covered by tests.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3035
- declare const SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/safety/hazard.schema.json\",\r\n \"title\": \"Hazard Schema (Operational Hazard & Safety Risk Analysis)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"severity\",\r\n \"probability\",\r\n \"fault-tolerance-time-ms\",\r\n \"mitigated-by\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^HAZ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"hazard\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Hazard semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"severity\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"catastrophic\", \"critical\", \"major\", \"minor\", \"negligible\"],\r\n \"description\": \"Hazard severity per functional safety classification (DO-178C / ISO 26262).\"\r\n },\r\n \"probability\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"frequent\", \"probable\", \"occasional\", \"remote\", \"improbable\", \"extremely-improbable\"],\r\n \"description\": \"Probability of operational hazard occurrence.\"\r\n },\r\n \"fault-tolerance-time-ms\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0,\r\n \"description\": \"Fault tolerance time interval (FTTI) limit in milliseconds before entering safe state.\"\r\n },\r\n \"mitigated-by\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SAF-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Safety requirements mitigating this hazard.\"\r\n },\r\n \"hazardous-condition\": {\r\n \"type\": \"string\",\r\n \"description\": \"Description of the dangerous operational condition.\"\r\n },\r\n \"potential-effect\": {\r\n \"type\": \"string\",\r\n \"description\": \"Potential effect on people, aircraft, or environment if hazard materializes.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"]\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"]\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3036
- declare const SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/safety/safety-req.schema.json\",\r\n \"title\": \"Safety Requirement Schema (Functional Safety & Hazard Mitigation)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"safety-domain\",\r\n \"safety-integrity-level\",\r\n \"mitigates-hazard\",\r\n \"fail-safe-action\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SAF-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"safety-requirement\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Safety requirement semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"safety-domain\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"flight-control\",\r\n \"collision-avoidance\",\r\n \"energy-management\",\r\n \"emergency-recovery\",\r\n \"sensor-integrity\",\r\n \"propulsion\",\r\n \"telemetry\"\r\n ],\r\n \"description\": \"Operational safety domain.\"\r\n },\r\n \"safety-integrity-level\": {\r\n \"type\": \"string\",\r\n \"description\": \"Safety integrity level (e.g. DAL-A..D, ASIL-A..D, SIL-1..4).\"\r\n },\r\n \"mitigates-hazard\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^HAZ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Operational hazards mitigated by safety control.\"\r\n },\r\n \"fail-safe-action\": {\r\n \"type\": \"string\",\r\n \"description\": \"Automatic action or contingency maneuver to enter safe state.\"\r\n },\r\n \"fault-tolerance-time-ms\": {\r\n \"type\": \"number\",\r\n \"description\": \"Fault tolerance time interval limit in milliseconds (FTTI).\"\r\n },\r\n \"acceptance-format\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"gherkin\", \"declarative-prose\"]\r\n },\r\n \"cucumber-tags\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"]\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"]\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3037
- declare const SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/design.schema.json\",\r\n \"title\": \"Spec-Driven Development Technical Design Schema (DSG-*)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(DSG-[A-Z0-9]+(-[A-Z0-9]+)*|CHG-[A-Z0-9]+-DESIGN|[A-Z0-9]+(-[A-Z0-9]+)*)$\",\r\n \"description\": \"Unique identifier of the technical design specification.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"spec-design\", \"spec-change-design\", \"design\"]\r\n },\r\n \"change-id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Parent change identifier associated with this design.\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Semantic versioning (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"handoff\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^HOF-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Reference to the HOF-* sidecar.\"\r\n },\r\n \"architecture-component\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Associated architecture component.\"\r\n },\r\n \"architecture-components\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"List of architecture components covered by this technical design.\"\r\n },\r\n \"enclave\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(SEC-ENC-)?[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Zero trust security enclave.\"\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"draft\",\r\n \"proposed\",\r\n \"review\",\r\n \"approved\",\r\n \"active\",\r\n \"completed\",\r\n \"deprecated\"\r\n ]\r\n },\r\n \"author\": {\r\n \"type\": \"string\"\r\n },\r\n \"date\": {\r\n \"type\": \"string\"\r\n },\r\n \"contracts\": {\r\n \"type\": \"array\",\r\n \"description\": \"Explicit contract interfaces and methods designed for implementation and unit testing.\",\r\n \"items\": {\r\n \"oneOf\": [\r\n { \"type\": \"string\", \"minLength\": 1 },\r\n {\r\n \"type\": \"object\",\r\n \"required\": [\"methods\"],\r\n \"properties\": {\r\n \"component\": { \"type\": \"string\" },\r\n \"interface\": { \"type\": \"string\" },\r\n \"methods\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": { \"type\": \"string\", \"minLength\": 1 }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n ]\r\n }\r\n },\r\n \"citations\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"id\"],\r\n \"properties\": {\r\n \"id\": { \"type\": \"string\" },\r\n \"digest\": { \"type\": \"string\" },\r\n \"comment\": { \"type\": \"string\" },\r\n \"anchor\": { \"type\": \"string\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3038
- declare const SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/handoff.schema.json\",\r\n \"title\": \"PDaC Product Handoff Sidecar Schema (HOF-*)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"changeId\", \"subgraph\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^HOF-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Immutable identifier emitted by PDaC handoff.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"handoff\", \"product-handoff\"]\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"changeId\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(CHG|FEAT)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\"\r\n },\r\n \"createdAt\": {\r\n \"type\": \"string\"\r\n },\r\n \"subgraph\": {\r\n \"type\": \"object\",\r\n \"required\": [\"requirements\"],\r\n \"properties\": {\r\n \"requirements\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"useCases\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"businessRules\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"securityRequirements\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"abuseCases\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"privacyRequirements\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"dataAssets\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"privacyRopa\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n },\r\n \"actors\": {\r\n \"type\": \"array\",\r\n \"items\": { \"type\": \"string\" }\r\n }\r\n },\r\n \"additionalProperties\": true\r\n },\r\n \"citations\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"id\"],\r\n \"properties\": {\r\n \"id\": { \"type\": \"string\" },\r\n \"digest\": { \"type\": \"string\" },\r\n \"anchor\": { \"type\": \"string\" },\r\n \"comment\": { \"type\": \"string\" }\r\n }\r\n }\r\n }\r\n },\r\n \"additionalProperties\": true\r\n}\r\n";
3039
- declare const SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/proposal.schema.json\",\r\n \"title\": \"Spec-Driven Development Change Proposal Schema (CHG-*)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Unique identifier of the change proposal.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"spec-change-proposal\", \"proposal\"]\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"draft\",\r\n \"proposed\",\r\n \"review\",\r\n \"approved\",\r\n \"applied\",\r\n \"active\",\r\n \"completed\",\r\n \"rejected\"\r\n ]\r\n },\r\n \"author\": {\r\n \"type\": \"string\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Semantic versioning (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"date\": {\r\n \"type\": \"string\"\r\n },\r\n \"handoff\": {\r\n \"type\": \"string\",\r\n \"description\": \"Associated handoff sidecar reference.\"\r\n },\r\n \"sdd-framework-compat\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Supported SDD framework adapters.\"\r\n },\r\n \"citations\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"id\"],\r\n \"properties\": {\r\n \"id\": { \"type\": \"string\" },\r\n \"digest\": { \"type\": \"string\" },\r\n \"comment\": { \"type\": \"string\" },\r\n \"anchor\": { \"type\": \"string\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3040
- declare const SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/release-kpis.schema.json\",\r\n \"title\": \"Release Consolidated KPIs & Attribution Telemetry Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"releaseBranch\",\r\n \"baseBranch\",\r\n \"generatedAt\",\r\n \"totalCommits\",\r\n \"totalLinesAdded\",\r\n \"totalLinesDeleted\",\r\n \"totalKloc\",\r\n \"totalBugs\",\r\n \"globalDefectDensity\",\r\n \"totalTimeSeconds\",\r\n \"totalTokens\",\r\n \"totalCostUsd\",\r\n \"authorStats\",\r\n \"bugList\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(KPI-REL|REL-KPI)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Optional artifact identifier.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"release-kpis\"\r\n },\r\n \"releaseBranch\": {\r\n \"type\": \"string\"\r\n },\r\n \"baseBranch\": {\r\n \"type\": \"string\"\r\n },\r\n \"generatedAt\": {\r\n \"type\": \"string\"\r\n },\r\n \"totalCommits\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"totalLinesAdded\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"totalLinesDeleted\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"totalKloc\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"totalBugs\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"globalDefectDensity\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"totalTimeSeconds\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"totalTokens\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"totalCostUsd\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"reworkTimeSeconds\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"reworkTokens\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"reworkCostUsd\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"reworkTimePercent\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"reworkTokensPercent\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"reworkCostPercent\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"authorStats\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"authorOrModel\",\r\n \"isAgent\",\r\n \"commits\",\r\n \"linesAdded\",\r\n \"linesDeleted\",\r\n \"klocProduced\",\r\n \"bugsInjected\",\r\n \"defectInjectionRate\",\r\n \"totalTimeSeconds\",\r\n \"totalTokens\",\r\n \"estimatedCostUsd\"\r\n ],\r\n \"properties\": {\r\n \"authorOrModel\": {\r\n \"type\": \"string\"\r\n },\r\n \"isAgent\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"commits\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"linesAdded\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"linesDeleted\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"klocProduced\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"bugsInjected\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"defectInjectionRate\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"totalTimeSeconds\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"totalTokens\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n },\r\n \"estimatedCostUsd\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"bugList\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"sha\", \"subject\", \"author\", \"timeSeconds\", \"tokens\"],\r\n \"properties\": {\r\n \"sha\": {\r\n \"type\": \"string\"\r\n },\r\n \"subject\": {\r\n \"type\": \"string\"\r\n },\r\n \"author\": {\r\n \"type\": \"string\"\r\n },\r\n \"parentRef\": {\r\n \"type\": \"string\"\r\n },\r\n \"timeSeconds\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0\r\n },\r\n \"tokens\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3041
- declare const SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/session-telemetry.schema.json\",\r\n \"title\": \"Agent Session Telemetry Schema (.ai-sdlc/session-telemetry.json)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"model\",\r\n \"promptTokens\",\r\n \"completionTokens\",\r\n \"activeTimeSeconds\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(TEL-SES|SES-TEL|TEL)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Optional telemetry session identifier.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"session-telemetry\"\r\n },\r\n \"model\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1,\r\n \"description\": \"AI model name or identifier.\"\r\n },\r\n \"promptTokens\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0,\r\n \"description\": \"Total prompt tokens consumed.\"\r\n },\r\n \"completionTokens\": {\r\n \"type\": \"integer\",\r\n \"minimum\": 0,\r\n \"description\": \"Total completion tokens generated.\"\r\n },\r\n \"activeTimeSeconds\": {\r\n \"type\": \"number\",\r\n \"minimum\": 0,\r\n \"description\": \"Active session development duration in seconds.\"\r\n },\r\n \"author\": {\r\n \"type\": \"string\"\r\n },\r\n \"authorType\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"agent\", \"human\"]\r\n },\r\n \"sessionId\": {\r\n \"type\": \"string\"\r\n },\r\n \"timestamp\": {\r\n \"type\": \"string\"\r\n },\r\n \"provider\": {\r\n \"type\": \"string\"\r\n },\r\n \"confidence\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"HIGH\", \"MEDIUM\", \"LOW\"]\r\n },\r\n \"source\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3042
- declare const SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/spec.schema.json\",\r\n \"title\": \"Spec-Driven Development Delivery Specification Schema (SPEC-*)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"change-id\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SPEC-(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Unique identifier of the delivery specification.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"delivery-spec\", \"spec\"]\r\n },\r\n \"change-id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Parent change identifier associated with this specification.\"\r\n },\r\n \"profile\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"patch\", \"standard\", \"critical\"],\r\n \"description\": \"Risk and governance profile of the change.\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Semantic versioning (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"handoff\": {\r\n \"type\": \"string\",\r\n \"description\": \"Associated handoff sidecar reference.\"\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"draft\",\r\n \"proposed\",\r\n \"review\",\r\n \"approved\",\r\n \"active\",\r\n \"completed\",\r\n \"deprecated\"\r\n ]\r\n },\r\n \"verification\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"method\": {\r\n \"type\": \"string\"\r\n },\r\n \"command\": {\r\n \"type\": \"string\"\r\n },\r\n \"target\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"additionalProperties\": true\r\n },\r\n \"citations\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"id\"],\r\n \"properties\": {\r\n \"id\": { \"type\": \"string\" },\r\n \"digest\": { \"type\": \"string\" },\r\n \"comment\": { \"type\": \"string\" },\r\n \"anchor\": { \"type\": \"string\" }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"acceptance-format\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"gherkin\"],\r\n \"description\": \"Formato de aceptaci\u00F3n BDD obligatorio para especificaciones de entrega SDD.\"\r\n },\r\n \"cucumber-tags\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\r\n },\r\n \"description\": \"Etiquetas de trazabilidad BDD para ejecuci\u00F3n con Cucumber.\"\r\n },\r\n \"cucumber-feature-file\": {\r\n \"type\": \"string\",\r\n \"description\": \"Ruta personalizada de extracci\u00F3n del archivo .feature para Cucumber.\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3043
- declare const SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/tasks.schema.json\",\r\n \"title\": \"Verifiable Tasks & Human Autonomy Governance Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"change-id\", \"version\", \"tasks\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^TSK-PLAN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"task-plan\"\r\n },\r\n \"change-id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(CHG|FEAT)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 5\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"approved\", \"in-progress\", \"completed\", \"blocked\"]\r\n },\r\n \"governance-summary\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"autonomous-tasks-count\": { \"type\": \"integer\", \"minimum\": 0 },\r\n \"human-review-plan-count\": { \"type\": \"integer\", \"minimum\": 0 },\r\n \"ambiguous-count\": { \"type\": \"integer\", \"minimum\": 0 },\r\n \"high-risk-manual-count\": { \"type\": \"integer\", \"minimum\": 0 }\r\n }\r\n },\r\n \"tasks\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"title\", \"complexity\", \"risk-level\", \"autonomy-mode\", \"verification\", \"assigned-to\", \"status\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^TSK-[0-9]{3,}$\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 5\r\n },\r\n \"complexity\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"LOW\", \"MEDIUM\", \"HIGH\"]\r\n },\r\n \"risk-level\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"LOW\", \"MEDIUM\", \"HIGH\", \"CRITICAL\"]\r\n },\r\n \"autonomy-mode\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"AUTONOMOUS\",\r\n \"HUMAN_REVIEW_PLAN\",\r\n \"AMBIGUOUS\",\r\n \"HIGH_RISK_MANUAL\"\r\n ],\r\n \"description\": \"AI agent human governance and supervision mode.\"\r\n },\r\n \"verification\": {\r\n \"type\": \"object\",\r\n \"required\": [\"method\", \"command-or-criteria\"],\r\n \"properties\": {\r\n \"method\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"automated-unit-test\", \"cucumber-bdd\", \"quality-gate\", \"license-audit\", \"sast-scan\", \"privacy-audit\", \"manual-inspection\", \"smoke-test\"]\r\n },\r\n \"command-or-criteria\": {\r\n \"type\": \"string\",\r\n \"minLength\": 5\r\n }\r\n }\r\n },\r\n \"assigned-to\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"agent-developer\",\r\n \"agent-security-auditor\",\r\n \"agent-compliance-checker\",\r\n \"agent-privacy-officer\",\r\n \"agent-qa\",\r\n \"human-engineer\",\r\n \"human-architect\",\r\n \"pair-human-agent\"\r\n ]\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"PENDING\", \"IN_PROGRESS\", \"COMPLETED\", \"BLOCKED\"]\r\n },\r\n \"blocking-reason\": {\r\n \"type\": \"string\"\r\n },\r\n \"implements-components\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Architecture components (CMP-*) implemented by this atomic task.\"\r\n },\r\n \"satisfies-requirements\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(FR|QR|CON|SEC-REQ|SAF-REQ|PRIV-REQ)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Requirements satisfied by this atomic task.\"\r\n },\r\n \"implements-contracts\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"minLength\": 1\r\n },\r\n \"description\": \"Explicit interface or method contracts from design.md implemented by this task.\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n }\r\n },\r\n \"supersedes\": { \"type\": [\"string\", \"null\"] },\r\n \"superseded-by\": { \"type\": [\"string\", \"null\"] }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3044
- declare const SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/security/abuse-case.schema.json\",\r\n \"title\": \"Abuse Case Schema (Versionable)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"primary-threat-actor\", \"targets-use-case\", \"stride-category\", \"mitigated-by\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"abuse-case\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Abuse case semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"primary-threat-actor\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"targets-use-case\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"stride-category\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"spoofing\", \"tampering\", \"repudiation\", \"information-disclosure\", \"denial-of-service\", \"elevation-of-privilege\"]\r\n },\r\n \"mitigated-by\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"asvs-controls\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3045
- declare const SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/security/enclave.schema.json\",\r\n \"title\": \"Security Enclave Schema (Zero Trust Architecture Boundary)\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"title\",\r\n \"status\",\r\n \"version\",\r\n \"trust-zone\",\r\n \"perimeter-rules\",\r\n \"allowed-inbound\",\r\n \"allowed-outbound\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"security-enclave\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Security enclave semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"trust-zone\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"untrusted\", \"semi-trusted\", \"trusted\", \"highly-trusted\", \"dmz\", \"zero-trust-boundary\"],\r\n \"description\": \"Zero Trust confidence zone assigned to enclave.\"\r\n },\r\n \"trust-level\": {\r\n \"type\": \"string\",\r\n \"description\": \"Descriptive Zero Trust confidence level.\"\r\n },\r\n \"isolation\": {\r\n \"type\": \"string\",\r\n \"description\": \"Technical perimeter isolation mechanism.\"\r\n },\r\n \"perimeter-rules\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Perimeter rules defining enclave security boundary (e.g. mTLS, IP allowlist).\"\r\n },\r\n \"allowed-inbound\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(CMP|SEC-ENC)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Components or enclaves authorized to initiate inbound connections.\"\r\n },\r\n \"allowed-outbound\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(CMP|SEC-ENC)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Components or enclaves this enclave can connect to.\"\r\n },\r\n \"enforced-by\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Security requirements enforcing this enclave's rules.\"\r\n },\r\n \"authentication-mechanism\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"mtls\", \"jwt\", \"api-key\", \"oauth2\", \"none\"],\r\n \"description\": \"Authentication mechanism required at enclave perimeter.\"\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"]\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"]\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3046
- declare const SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/security/security-req.schema.json\",\r\n \"title\": \"Security Requirement Schema (Strict Test Validation Enforced)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"security-domain\", \"mitigates-abuse-case\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"security-requirement\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Security requirement semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"security-domain\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"authentication\", \"authorization\", \"cryptography\", \"input-validation\", \"audit-logging\", \"communication-security\", \"data-protection\"]\r\n },\r\n \"mitigates-abuse-case\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"description\": \"Product/Security Traceability: Abuse case or threat this control neutralizes.\"\r\n },\r\n \"enforced-in-enclave\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Architecture Traceability: Perimeter or internal security enclave.\"\r\n },\r\n \"compliance-references\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"acceptance-format\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"gherkin\", \"declarative-prose\"],\r\n \"description\": \"Mitigation criteria format.\"\r\n },\r\n \"cucumber-tags\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3047
- declare const SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/security/threat-actor.schema.json\",\r\n \"title\": \"Threat Actor Schema (Versionable)\",\r\n \"type\": \"object\",\r\n \"required\": [\"id\", \"type\", \"title\", \"status\", \"version\", \"threat-capability\", \"motivation\"],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"threat-actor\"\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Threat profile semantic version (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\r\n },\r\n \"threat-capability\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"script-kiddie\", \"advanced-persistent-threat\", \"insider-threat\", \"automated-botnet\", \"supply-chain-attacker\"]\r\n },\r\n \"motivation\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"financial-gain\", \"espionage\", \"sabotage\", \"data-theft\", \"reputational-damage\"]\r\n },\r\n \"attack-surfaces\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"supersedes\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n },\r\n \"superseded-by\": {\r\n \"type\": [\"string\", \"null\"],\r\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3048
- declare const SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON = "{\r\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\r\n \"$id\": \"https://ai-sdlc.org/schemas/workflow/agent-handoff.schema.json\",\r\n \"title\": \"Agent Workflow Handoff Block Schema\",\r\n \"type\": \"object\",\r\n \"required\": [\r\n \"id\",\r\n \"type\",\r\n \"completed-phase\",\r\n \"acting-role\",\r\n \"autonomy-mode\",\r\n \"deliverables\",\r\n \"suggested-prompt\"\r\n ],\r\n \"properties\": {\r\n \"id\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^(AHOF|HOF-WORKFLOW|HOF)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\r\n \"description\": \"Unique workflow handoff identifier.\"\r\n },\r\n \"type\": {\r\n \"type\": \"string\",\r\n \"const\": \"agent-handoff\"\r\n },\r\n \"title\": {\r\n \"type\": \"string\",\r\n \"minLength\": 3\r\n },\r\n \"version\": {\r\n \"type\": \"string\",\r\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\r\n \"description\": \"Semantic versioning (SemVer).\"\r\n },\r\n \"schema-version\": {\r\n \"type\": \"string\"\r\n },\r\n \"status\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"draft\", \"active\", \"completed\", \"transferred\"]\r\n },\r\n \"completed-phase\": {\r\n \"type\": \"string\",\r\n \"minLength\": 2,\r\n \"description\": \"Name of the completed lifecycle phase or activity.\"\r\n },\r\n \"acting-role\": {\r\n \"type\": \"string\",\r\n \"enum\": [\r\n \"agent-product-analyst\",\r\n \"agent-threat-modeler\",\r\n \"agent-privacy-officer\",\r\n \"agent-system-architect\",\r\n \"agent-qa-engineer\",\r\n \"agent-developer\",\r\n \"agent-expert-user\",\r\n \"agent-security-auditor\",\r\n \"agent-compliance-checker\",\r\n \"agent-code-reviewer\",\r\n \"agent-devops\",\r\n \"human-dev\",\r\n \"tech-lead\",\r\n \"release-manager\",\r\n \"dpo\"\r\n ],\r\n \"description\": \"Specialized role executing the handoff.\"\r\n },\r\n \"autonomy-mode\": {\r\n \"type\": \"string\",\r\n \"enum\": [\"AUTONOMOUS\", \"HUMAN_REVIEW_PLAN\", \"AMBIGUOUS\", \"HIGH_RISK_MANUAL\"],\r\n \"description\": \"Autonomy level under which the task was executed.\"\r\n },\r\n \"deliverables\": {\r\n \"type\": \"array\",\r\n \"minItems\": 1,\r\n \"items\": {\r\n \"type\": \"string\"\r\n },\r\n \"description\": \"Paths or IDs of artifacts produced during the phase.\"\r\n },\r\n \"recommended-next-roles\": {\r\n \"type\": \"array\",\r\n \"items\": {\r\n \"type\": \"object\",\r\n \"required\": [\"role\", \"rationale\"],\r\n \"properties\": {\r\n \"role\": {\r\n \"type\": \"string\"\r\n },\r\n \"rationale\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n },\r\n \"description\": \"Recommended downstream specialist roles and technical justifications.\"\r\n },\r\n \"suggested-prompt\": {\r\n \"type\": \"string\",\r\n \"minLength\": 5,\r\n \"description\": \"Suggested invocation prompt to initiate the next agent.\"\r\n },\r\n \"human-action-window\": {\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"review-and-validate\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"edit-directly\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"pause-or-divert\": {\r\n \"type\": \"boolean\"\r\n },\r\n \"delegate\": {\r\n \"type\": \"boolean\"\r\n }\r\n },\r\n \"additionalProperties\": false,\r\n \"description\": \"Actions available to the human engineer within the sovereign action window.\"\r\n }\r\n },\r\n \"additionalProperties\": false\r\n}\r\n";
3032
+ declare const SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/architecture/adr.schema.json\",\n \"title\": \"Architecture Decision Record Schema (Versionable)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"deciders\",\n \"decision-date\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^ADR-[0-9]{3,4}(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"architecture-decision-record\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Decision record semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"proposed\",\n \"accepted\",\n \"rejected\",\n \"deprecated\",\n \"superseded\"\n ]\n },\n \"deciders\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"decision-date\": {\n \"type\": \"string\",\n \"format\": \"date\"\n },\n \"affects-components\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ADR-[0-9]{3,4}(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ADR-[0-9]{3,4}(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3033
+ declare const SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/architecture/component.schema.json\",\n \"title\": \"NAF v4 / arc42 Architecture Component Schema (Multilevel)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"level\",\n \"implementation-type\",\n \"implements-use-cases\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"component\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Architecture component semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"proposed\",\n \"accepted\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"level\": {\n \"type\": \"integer\",\n \"minimum\": 1,\n \"description\": \"Hierarchical architecture level (1: Bounded Context / Root System, 2: Subsystem / Container, 3: Executable Unit / DLL / Function).\"\n },\n \"bounded-context\": {\n \"type\": \"string\",\n \"description\": \"Domain-Driven Design (DDD) Bounded Context name this component belongs to.\"\n },\n \"parent-component\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Parent component identifier (null if Level 1).\"\n },\n \"implementation-type\": {\n \"type\": \"string\",\n \"enum\": [\n \"service\",\n \"dll\",\n \"function\",\n \"composite\"\n ],\n \"description\": \"Technical implementation paradigm: distributed service (service), dynamic/native library (dll), in-process module/function (function), or logical aggregator/Bounded Context (composite).\"\n },\n \"implements-use-cases\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"satisfies-requirements\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^(FR|QR|CON|SEC-REQ|SAF-REQ|PRIV-REQ)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"hosted-in-enclave\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Security enclave where the component resides (optional for DLLs or in-process functions).\"\n },\n \"interfaces\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"name\",\n \"protocol\"\n ],\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"protocol\": {\n \"type\": \"string\",\n \"enum\": [\n \"REST/HTTP\",\n \"gRPC\",\n \"WebSocket\",\n \"Kafka\",\n \"MQTT\",\n \"C-ABI\",\n \"Native-ABI\",\n \"FFI\",\n \"In-Process API\",\n \"Function-Call\",\n \"CLI\",\n \"GUI\",\n \"IPC\"\n ]\n },\n \"contract-spec\": {\n \"type\": \"string\"\n }\n }\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3034
+ declare const SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/architecture/introduction-and-goals.schema.json\",\n \"title\": \"NAF v4 Enterprise & Capability / arc42 Introduction and System Goals Schema\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"naf-perspective\",\n \"cites-product-actors\",\n \"cites-quality-goals\",\n \"cites-journeys\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^ARCH-INTRO-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"architecture-introduction\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Artifact semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"proposed\",\n \"accepted\",\n \"approved\",\n \"deprecated\",\n \"superseded\"\n ]\n },\n \"owner\": {\n \"type\": \"string\"\n },\n \"arc42-section\": {\n \"type\": \"integer\",\n \"const\": 1\n },\n \"naf-perspective\": {\n \"type\": \"string\",\n \"const\": \"Enterprise & Capability\"\n },\n \"cites-product-actors\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"cites-quality-goals\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^(QR|SEC-REQ|PRIV-REQ)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"cites-journeys\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^JRN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Product journey identifiers (JRN-*) envisioned in this system capability scope.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ARCH-INTRO-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ARCH-INTRO-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3035
+ declare const SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/compliance/license-manifest.schema.json\",\n \"title\": \"Static Dependencies License Manifest Schema\",\n \"type\": \"object\",\n \"required\": [\n \"evaluated_dependencies\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(MAN-LIC|LIC-MAN|LIC)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Optional canonical artifact identifier.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"license-manifest\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+(\\\\.[0-9]+)?(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Manifest format version.\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"generated_at\": {\n \"type\": \"string\"\n },\n \"evaluated_dependencies\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"package\",\n \"version\",\n \"spdx_license\",\n \"status\"\n ],\n \"properties\": {\n \"package\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"version\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"spdx_license\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"APPROVED\",\n \"REJECTED\",\n \"REVIEW_REQUIRED\",\n \"COMMERCIAL_APPROVAL_REQUIRED\",\n \"PENDING\"\n ]\n },\n \"reason\": {\n \"type\": \"string\"\n },\n \"approved_by\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n }\n },\n \"additionalProperties\": false\n}";
3036
+ declare const SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/compliance/license-policy.schema.json\",\n \"title\": \"Open Source License Policy Schema\",\n \"type\": \"object\",\n \"required\": [\n \"version\",\n \"project\",\n \"default_action\",\n \"categories\",\n \"agent_guardrails\",\n \"ci_gates\"\n ],\n \"properties\": {\n \"version\": {\n \"type\": \"string\"\n },\n \"project\": {\n \"type\": \"string\"\n },\n \"default_action\": {\n \"type\": \"string\",\n \"enum\": [\n \"ALLOW\",\n \"DENY\",\n \"REVIEW_REQUIRED\"\n ]\n },\n \"categories\": {\n \"type\": \"object\"\n },\n \"agent_guardrails\": {\n \"type\": \"object\",\n \"required\": [\n \"enforce_pre_check\",\n \"reject_unknown_licenses\"\n ],\n \"properties\": {\n \"enforce_pre_check\": {\n \"type\": \"boolean\"\n },\n \"reject_unknown_licenses\": {\n \"type\": \"boolean\"\n },\n \"auto_reject_categories\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"on_commercial_detected\": {\n \"type\": \"object\"\n }\n }\n },\n \"ci_gates\": {\n \"type\": \"object\",\n \"required\": [\n \"fail_on_denied\",\n \"generate_sbom\"\n ],\n \"properties\": {\n \"fail_on_denied\": {\n \"type\": \"boolean\"\n },\n \"fail_on_missing_license\": {\n \"type\": \"boolean\"\n },\n \"generate_sbom\": {\n \"type\": \"boolean\"\n },\n \"sbom_format\": {\n \"type\": \"string\"\n },\n \"output_notices_file\": {\n \"type\": \"string\"\n },\n \"allowed_depth\": {\n \"type\": \"string\",\n \"enum\": [\n \"DIRECT\",\n \"TRANSITIVE\"\n ]\n }\n }\n }\n },\n \"additionalProperties\": false\n}";
3037
+ declare const SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/compliance/quality-policy.schema.json\",\n \"title\": \"Software Quality Policy Schema (Polyglot)\",\n \"type\": \"object\",\n \"required\": [\n \"version\",\n \"project\",\n \"enforcement_mode\",\n \"coding_rules\",\n \"release_thresholds\",\n \"agent_guardrails\"\n ],\n \"properties\": {\n \"version\": {\n \"type\": \"string\"\n },\n \"project\": {\n \"type\": \"string\"\n },\n \"enforcement_mode\": {\n \"type\": \"string\",\n \"enum\": [\n \"STRICT\",\n \"PERMISSIVE\"\n ]\n },\n \"ratchet_mode\": {\n \"type\": \"boolean\"\n },\n \"scope\": {\n \"type\": \"object\",\n \"properties\": {\n \"target_directories\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"supported_extensions\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"exclude_patterns\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n }\n },\n \"language_toolchains\": {\n \"type\": \"object\"\n },\n \"coding_rules\": {\n \"type\": \"object\",\n \"required\": [\n \"standards\",\n \"enforce_formatting\",\n \"rules\"\n ],\n \"properties\": {\n \"standards\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"enforce_formatting\": {\n \"type\": \"boolean\"\n },\n \"formatting_engine\": {\n \"type\": \"string\"\n },\n \"linter_engine\": {\n \"type\": \"string\"\n },\n \"rules\": {\n \"type\": \"object\"\n }\n }\n },\n \"release_thresholds\": {\n \"type\": \"object\",\n \"required\": [\n \"cyclomatic_complexity\",\n \"cognitive_complexity\",\n \"maintainability_index\",\n \"code_duplication\",\n \"test_coverage\"\n ],\n \"properties\": {\n \"cyclomatic_complexity\": {\n \"type\": \"object\",\n \"required\": [\n \"max_per_function\",\n \"action_on_breach\"\n ],\n \"properties\": {\n \"max_per_function\": {\n \"type\": \"integer\"\n },\n \"warning_at\": {\n \"type\": \"integer\"\n },\n \"action_on_breach\": {\n \"type\": \"string\"\n }\n }\n },\n \"cognitive_complexity\": {\n \"type\": \"object\",\n \"required\": [\n \"max_per_function\",\n \"action_on_breach\"\n ],\n \"properties\": {\n \"max_per_function\": {\n \"type\": \"integer\"\n },\n \"warning_at\": {\n \"type\": \"integer\"\n },\n \"action_on_breach\": {\n \"type\": \"string\"\n }\n }\n },\n \"maintainability_index\": {\n \"type\": \"object\",\n \"required\": [\n \"min_acceptable_score\",\n \"action_on_breach\"\n ],\n \"properties\": {\n \"min_acceptable_score\": {\n \"type\": \"number\"\n },\n \"target_score\": {\n \"type\": \"number\"\n },\n \"action_on_breach\": {\n \"type\": \"string\"\n }\n }\n },\n \"code_duplication\": {\n \"type\": \"object\",\n \"required\": [\n \"max_percentage\",\n \"action_on_breach\"\n ],\n \"properties\": {\n \"max_percentage\": {\n \"type\": \"number\"\n },\n \"action_on_breach\": {\n \"type\": \"string\"\n }\n }\n },\n \"test_coverage\": {\n \"type\": \"object\",\n \"required\": [\n \"min_line_coverage_percent\",\n \"action_on_breach\"\n ],\n \"properties\": {\n \"min_line_coverage_percent\": {\n \"type\": \"number\"\n },\n \"min_branch_coverage_percent\": {\n \"type\": \"number\"\n },\n \"min_function_coverage_percent\": {\n \"type\": \"number\"\n },\n \"action_on_breach\": {\n \"type\": \"string\"\n }\n }\n },\n \"technical_debt\": {\n \"type\": \"object\"\n }\n }\n },\n \"agent_guardrails\": {\n \"type\": \"object\",\n \"required\": [\n \"enforce_pre_commit_linter\",\n \"prevent_suppression_comments\"\n ],\n \"properties\": {\n \"enforce_pre_commit_linter\": {\n \"type\": \"boolean\"\n },\n \"prevent_suppression_comments\": {\n \"type\": \"boolean\"\n },\n \"auto_refactor_on_high_complexity\": {\n \"type\": \"boolean\"\n }\n }\n }\n },\n \"additionalProperties\": false\n}";
3038
+ declare const SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/ide/mcp-config.schema.json\",\n \"title\": \"IDE MCP Configuration Schema (Cursor, Antigravity, VS Code)\",\n \"type\": \"object\",\n \"properties\": {\n \"$schema\": {\n \"type\": \"string\"\n },\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(MCP-CFG|IDE-MCP|MCP)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Optional identifier for MCP configuration artifact.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"mcp-config\"\n },\n \"mcpServers\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"object\",\n \"required\": [\n \"command\"\n ],\n \"properties\": {\n \"command\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"args\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"env\": {\n \"type\": \"object\"\n },\n \"disabled\": {\n \"type\": \"boolean\"\n },\n \"alwaysAllow\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"additionalProperties\": false\n },\n \"description\": \"MCP server registry format for Cursor and Antigravity.\"\n },\n \"servers\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"object\",\n \"required\": [\n \"command\"\n ],\n \"properties\": {\n \"command\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"args\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"env\": {\n \"type\": \"object\"\n },\n \"disabled\": {\n \"type\": \"boolean\"\n },\n \"alwaysAllow\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"additionalProperties\": false\n },\n \"description\": \"MCP server registry format for VS Code.\"\n }\n },\n \"additionalProperties\": false\n}";
3039
+ declare const SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/manuals/production-manual.schema.json\",\n \"title\": \"AI-SDLC Production & Operations Manual Schema\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"applies-to-version\",\n \"target-audience\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^MAN-PROD-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Immutable production manual identifier (e.g. MAN-PROD-SENTINELCORE).\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"production-manual\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Document semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\",\n \"description\": \"Template schema version.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3,\n \"description\": \"Descriptive title of the production manual.\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"applies-to-version\": {\n \"type\": \"string\",\n \"description\": \"Software version or release this production manual applies to (e.g. v1.0.0).\"\n },\n \"target-audience\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"minItems\": 1,\n \"description\": \"Target technical profiles (e.g. DevOps, SRE, Release Manager, SecOps).\"\n },\n \"components-covered\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Architecture components (CMP-*) deployed and covered by the manual.\"\n },\n \"enclaves-involved\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Security enclaves (SEC-ENC-*) in which deployment executes.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^MAN-PROD-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^MAN-PROD-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3040
+ declare const SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/manuals/user-manual.schema.json\",\n \"title\": \"AI-SDLC User Manual Schema\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"target-audience\",\n \"allowed-roles\",\n \"applies-to-version\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^MAN-USER-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Immutable user manual identifier (e.g. MAN-USER-SENTINELCORE).\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"user-manual\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Document semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\",\n \"description\": \"Template schema version.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3,\n \"description\": \"Descriptive title of the user manual.\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"applies-to-version\": {\n \"type\": \"string\",\n \"description\": \"Software version or release this manual applies to (e.g. v1.0.0).\"\n },\n \"target-audience\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"minItems\": 1,\n \"description\": \"Target user profiles or roles for the manual.\"\n },\n \"allowed-roles\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"minItems\": 1,\n \"description\": \"Formal catalog of authorized roles to operate the application (linked to ACT-*).\"\n },\n \"journeys-covered\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^JRN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Product journey identifiers (JRN-*) covered in the manual.\"\n },\n \"use-cases-covered\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Use case identifiers (UC-*) implemented across journeys.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^MAN-USER-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^MAN-USER-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3041
+ declare const SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/data-asset.schema.json\",\n \"title\": \"Personal Data Asset & PII Inventory Schema (DATA-ASSET-*)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"classification\",\n \"pii-categories\",\n \"data-subjects\",\n \"retention-period\",\n \"erasure-method\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"data-asset\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Data asset semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"classification\": {\n \"type\": \"string\",\n \"enum\": [\n \"public\",\n \"internal\",\n \"confidential-pii\",\n \"special-category-sensitive\"\n ],\n \"description\": \"Data sensitivity classification aligned with privacy-policy.yaml.\"\n },\n \"pii-categories\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"identifiers\",\n \"contact\",\n \"authentication\",\n \"financial\",\n \"location\",\n \"behavioral\",\n \"biometric\",\n \"health\",\n \"telemetry-operator\"\n ]\n }\n },\n \"data-subjects\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Product actors (ACT-*) whose personal data is stored or processed.\"\n },\n \"fields\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"name\",\n \"sensitivity\",\n \"masking-strategy\"\n ],\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"sensitivity\": {\n \"type\": \"string\",\n \"enum\": [\n \"public\",\n \"internal\",\n \"pii\",\n \"special-category\"\n ]\n },\n \"masking-strategy\": {\n \"type\": \"string\",\n \"enum\": [\n \"none\",\n \"redact\",\n \"sha256-salt\",\n \"tokenize\",\n \"aes-256-gcm\",\n \"truncate\"\n ]\n }\n },\n \"additionalProperties\": false\n }\n },\n \"retention-period\": {\n \"type\": \"string\",\n \"pattern\": \"^([0-9]+(d|m|y)|session-only|indefinite-anonymized)$\",\n \"description\": \"Maximum retention TTL (e.g. 30d, 12m, 5y, session-only, indefinite-anonymized).\"\n },\n \"erasure-method\": {\n \"type\": \"string\",\n \"enum\": [\n \"hard-delete\",\n \"crypto-shredding\",\n \"irreversible-anonymization\"\n ]\n },\n \"owner-bounded-context\": {\n \"type\": \"string\",\n \"pattern\": \"^(BC|CMP)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3042
+ declare const SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/privacy-policy.schema.json\",\n \"title\": \"Privacy-by-Design as Code Governance Policy Schema\",\n \"type\": \"object\",\n \"required\": [\n \"version\",\n \"project\",\n \"regulatory_frameworks\",\n \"default_action\",\n \"classifications\",\n \"agent_guardrails\",\n \"ci_gates\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(PRIV-POL|POL-PRIV)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"privacy-policy\"\n },\n \"version\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"project\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"regulatory_frameworks\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"GDPR\",\n \"LOPDGDD\",\n \"ISO-27701\",\n \"CCPA\",\n \"HIPAA\",\n \"LGPD\"\n ]\n }\n },\n \"default_action\": {\n \"type\": \"string\",\n \"enum\": [\n \"DENY_UNREGISTERED_PII\",\n \"ALLOW\",\n \"REVIEW_REQUIRED\"\n ]\n },\n \"classifications\": {\n \"type\": \"object\",\n \"required\": [\n \"public\",\n \"internal\",\n \"confidential_pii\",\n \"special_category_sensitive\"\n ],\n \"additionalProperties\": {\n \"type\": \"object\",\n \"required\": [\n \"action\",\n \"encryption_at_rest\",\n \"encryption_in_transit\",\n \"allow_in_logs\",\n \"allow_in_ai_prompts\"\n ],\n \"properties\": {\n \"action\": {\n \"type\": \"string\",\n \"enum\": [\n \"ALLOW\",\n \"STRICT_GOVERNANCE\",\n \"DPIA_APPROVAL_REQUIRED\",\n \"DENY\"\n ]\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"exception_requires\": {\n \"type\": \"string\"\n },\n \"require_ropa_entry\": {\n \"type\": \"boolean\"\n },\n \"require_dpia_artifact\": {\n \"type\": \"boolean\"\n },\n \"encryption_at_rest\": {\n \"type\": \"boolean\"\n },\n \"encryption_in_transit\": {\n \"type\": \"boolean\"\n },\n \"require_field_level_encryption\": {\n \"type\": \"boolean\"\n },\n \"allow_in_logs\": {\n \"type\": \"boolean\"\n },\n \"log_masking_strategy\": {\n \"type\": \"string\"\n },\n \"allow_in_ai_prompts\": {\n \"type\": \"boolean\"\n },\n \"max_retention_days\": {\n \"type\": \"integer\",\n \"minimum\": 1\n },\n \"require_right_to_erasure\": {\n \"type\": \"boolean\"\n }\n },\n \"additionalProperties\": false\n }\n },\n \"cross_border_transfers\": {\n \"type\": \"object\",\n \"properties\": {\n \"allowed_regions\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"require_scc_for_third_countries\": {\n \"type\": \"boolean\"\n },\n \"approved_subprocessors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"additionalProperties\": false\n },\n \"agent_guardrails\": {\n \"type\": \"object\",\n \"required\": [\n \"forbid_real_pii_in_tests\",\n \"forbid_pii_in_console_or_logger\",\n \"require_dto_projection_for_pii\"\n ],\n \"properties\": {\n \"forbid_real_pii_in_tests\": {\n \"type\": \"boolean\"\n },\n \"forbid_pii_in_console_or_logger\": {\n \"type\": \"boolean\"\n },\n \"require_dto_projection_for_pii\": {\n \"type\": \"boolean\"\n },\n \"on_special_category_detected\": {\n \"type\": \"object\",\n \"required\": [\n \"action\",\n \"notification_tag\",\n \"message\"\n ],\n \"properties\": {\n \"action\": {\n \"type\": \"string\"\n },\n \"notification_tag\": {\n \"type\": \"string\"\n },\n \"message\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n },\n \"additionalProperties\": false\n },\n \"ci_gates\": {\n \"type\": \"object\",\n \"required\": [\n \"fail_on_unregistered_pii\",\n \"fail_on_pii_in_logs\",\n \"fail_on_missing_retention_policy\",\n \"generate_ropa_inventory\",\n \"output_ropa_file\",\n \"output_privacy_report\"\n ],\n \"properties\": {\n \"fail_on_unregistered_pii\": {\n \"type\": \"boolean\"\n },\n \"fail_on_pii_in_logs\": {\n \"type\": \"boolean\"\n },\n \"fail_on_missing_retention_policy\": {\n \"type\": \"boolean\"\n },\n \"fail_on_unapproved_subprocessor\": {\n \"type\": \"boolean\"\n },\n \"generate_ropa_inventory\": {\n \"type\": \"boolean\"\n },\n \"output_ropa_file\": {\n \"type\": \"string\"\n },\n \"output_privacy_report\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n },\n \"additionalProperties\": false\n}";
3043
+ declare const SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/privacy-req.schema.json\",\n \"title\": \"Privacy Requirement & Technical Control Schema (PRIV-REQ-*)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"privacy-principle\",\n \"linddun-category\",\n \"governs-ropa\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"privacy-requirement\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Privacy requirement semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"privacy-principle\": {\n \"type\": \"string\",\n \"enum\": [\n \"data-minimization\",\n \"purpose-limitation\",\n \"storage-limitation\",\n \"accuracy\",\n \"integrity-and-confidentiality\",\n \"transparency-and-consent\",\n \"data-subject-rights-arco\",\n \"pseudonymization-anonymization\"\n ]\n },\n \"linddun-category\": {\n \"type\": \"string\",\n \"enum\": [\n \"linkability\",\n \"identifiability\",\n \"non-repudiation\",\n \"detectability\",\n \"disclosure-of-information\",\n \"unawareness\",\n \"non-compliance\"\n ],\n \"description\": \"LINDDUN privacy threat category mitigated by this control.\"\n },\n \"governs-ropa\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Upstream ROPA records (PRIV-ROPA-*) governed by this privacy requirement.\"\n },\n \"protects-data-assets\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"enforced-in-enclave\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"compliance-references\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"acceptance-format\": {\n \"type\": \"string\",\n \"enum\": [\n \"gherkin\",\n \"declarative-prose\"\n ]\n },\n \"cucumber-tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3044
+ declare const SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/privacy/privacy-ropa.schema.json\",\n \"title\": \"Record of Processing Activities Schema (PRIV-ROPA-* / GDPR Art. 30)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"lawful-basis\",\n \"processing-purpose\",\n \"use-cases\",\n \"data-assets\",\n \"data-subjects\",\n \"retention-ttl\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"privacy-ropa\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"ROPA record semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"lawful-basis\": {\n \"type\": \"string\",\n \"enum\": [\n \"consent\",\n \"contract\",\n \"legal-obligation\",\n \"vital-interests\",\n \"public-task\",\n \"legitimate-interests\"\n ],\n \"description\": \"Lawful basis for processing under GDPR Art. 6.1.\"\n },\n \"special-category-condition\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"enum\": [\n null,\n \"explicit-consent\",\n \"employment-social-security\",\n \"vital-interests\",\n \"public-interest\",\n \"preventive-medicine\",\n \"public-health\"\n ],\n \"description\": \"GDPR Art. 9.2 condition when processing special category data.\"\n },\n \"processing-purpose\": {\n \"type\": \"string\",\n \"minLength\": 10\n },\n \"use-cases\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Upstream Use Cases (UC-*) that trigger this data processing activity.\"\n },\n \"data-assets\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^DATA-ASSET-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Personal Data Assets (DATA-ASSET-*) processed in this activity.\"\n },\n \"data-subjects\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"retention-ttl\": {\n \"type\": \"string\",\n \"pattern\": \"^([0-9]+(d|m|y)|session-only|indefinite-anonymized)$\"\n },\n \"cross-border-transfer\": {\n \"type\": \"boolean\"\n },\n \"transfer-safeguards\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"enum\": [\n null,\n \"adequacy-decision\",\n \"scc\",\n \"bcr\",\n \"derogation\"\n ]\n },\n \"subprocessors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"dpia-required\": {\n \"type\": \"boolean\"\n },\n \"dpia-reference\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^DPIA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"mitigated-by\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^PRIV-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Privacy requirements (PRIV-REQ-*) governing and enforcing this processing activity.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^PRIV-ROPA-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3045
+ declare const SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/product/actor.schema.json\",\n \"title\": \"ProductShape Actor Schema (Versionable)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"role-type\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"actor\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Artifact semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\",\n \"description\": \"Schema specification version used.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"role-type\": {\n \"type\": \"string\",\n \"enum\": [\n \"human-user\",\n \"ai-agent\",\n \"external-system\",\n \"sensor-iot\"\n ]\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Identifier of the actor superseded by this version or artifact.\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Identifier of the new actor superseding this one upon deprecation/retirement.\"\n }\n },\n \"additionalProperties\": false\n}";
3046
+ declare const SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/product/bounded-context.schema.json\",\n \"title\": \"Domain-Driven Design (DDD) Bounded Context Schema\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"domain-type\",\n \"responsibilities\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Immutable Bounded Context identifier (e.g. BC-AI-SDLC-GOVERNANCE).\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"bounded-context\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Bounded context document semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\",\n \"description\": \"Template schema version.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3,\n \"description\": \"Descriptive title of the Bounded Context.\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"domain-type\": {\n \"type\": \"string\",\n \"enum\": [\n \"core\",\n \"supporting\",\n \"generic\"\n ],\n \"description\": \"DDD subdomain classification: core differentiator, supporting capability, or generic commodity.\"\n },\n \"strategic-classification\": {\n \"type\": \"object\",\n \"properties\": {\n \"evolutionary-stage\": {\n \"type\": \"string\",\n \"enum\": [\n \"genesis\",\n \"custom-built\",\n \"product-rental\",\n \"commodity\"\n ]\n },\n \"business-model-role\": {\n \"type\": \"string\",\n \"enum\": [\n \"differentiator\",\n \"operational\",\n \"enabler\"\n ]\n }\n },\n \"additionalProperties\": false\n },\n \"responsibilities\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"minItems\": 1,\n \"description\": \"List of functional boundaries and core domain responsibilities encapsulated within this context.\"\n },\n \"ubiquitous-language-terms\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Ubiquitous language terms (TERM-*) governed within this bounded context.\"\n },\n \"context-mapping\": {\n \"type\": \"object\",\n \"properties\": {\n \"upstream-dependencies\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"downstream-dependents\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"integration-patterns\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"pattern\": {\n \"type\": \"string\"\n },\n \"related-context\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n }\n },\n \"additionalProperties\": false\n },\n \"components-involved\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Architecture components (CMP-*) implementing this bounded context.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3047
+ declare const SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/product/business-rule.schema.json\",\n \"title\": \"ProductShape Business Rule Schema (Versionable)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"enforcement-level\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"business-rule\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Business rule semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"enforcement-level\": {\n \"type\": \"string\",\n \"enum\": [\n \"strict-invariant\",\n \"override-with-approval\",\n \"guideline\"\n ]\n },\n \"defined-in\": {\n \"type\": \"string\",\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"uses-terms\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3048
+ declare const SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/product/journey.schema.json\",\n \"title\": \"Customer / Operator Journey Schema\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"persona\",\n \"stages\",\n \"touchpoints\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^JRN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"journey\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Journey semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"persona\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Actor (persona) starring in this journey.\"\n },\n \"stages\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Sequential journey stages (e.g. Awareness, Onboarding, Activation, Retention).\"\n },\n \"touchpoints\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Touchpoints between persona and system at each stage.\"\n },\n \"related-use-cases\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"System use cases related to this journey.\"\n },\n \"pain-points\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Frictions or issues detected along the user journey.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n }\n },\n \"additionalProperties\": false\n}";
3049
+ declare const SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/product/requirement.schema.json\",\n \"title\": \"ProductShape Requirement Schema (Strict Test Validation Enforced)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"category\",\n \"derives-from\",\n \"verifiable-by\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(FR|QR|CON)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"requirement\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Requirement semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"category\": {\n \"type\": \"string\",\n \"enum\": [\n \"functional\",\n \"quality\",\n \"constraint\"\n ]\n },\n \"derives-from\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^(UC|BR|CON|CAP|GOAL)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Product Traceability: Origin Use Cases, Rules, Constraints, or Capabilities.\"\n },\n \"verifiable-by\": {\n \"type\": \"string\",\n \"enum\": [\n \"cucumber-bdd\",\n \"automated-unit-test\",\n \"integration-test\",\n \"performance-benchmark\",\n \"security-audit\",\n \"inspection\"\n ],\n \"description\": \"Mandatory formal verification method.\"\n },\n \"acceptance-format\": {\n \"type\": \"string\",\n \"enum\": [\n \"gherkin\",\n \"declarative-prose\"\n ],\n \"description\": \"Acceptance criteria format.\"\n },\n \"cucumber-tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\n },\n \"description\": \"Cucumber tags for filtering and executing BDD tests.\"\n },\n \"enforce-bdd-variants\": {\n \"type\": \"boolean\",\n \"description\": \"When true, enforces all 3 BDD scenario categories (@nominal, @boundary, @invalid).\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^(FR|QR|CON)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^(FR|QR|CON)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3050
+ declare const SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/product/term.schema.json\",\n \"title\": \"Domain Glossary Term Schema (Ubiquitous Language)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"definition\",\n \"bounded-context\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"term\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Term semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 2,\n \"description\": \"Canonical name of the term in the domain ubiquitous language.\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"definition\": {\n \"type\": \"string\",\n \"minLength\": 10,\n \"description\": \"Precise and unambiguous definition of the term in the domain context.\"\n },\n \"bounded-context\": {\n \"type\": \"string\",\n \"description\": \"DDD Bounded Context this term belongs to (e.g. FlightControl, Telemetry, Billing).\"\n },\n \"synonyms\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Synonyms or alternative terms used colloquially that map to this canonical term.\"\n },\n \"anti-terms\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Incorrect or ambiguous terms that MUST NOT be used for this concept.\"\n },\n \"related-terms\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Glossary terms semantically related.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n }\n },\n \"additionalProperties\": false\n}";
3051
+ declare const SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/product/use-case.schema.json\",\n \"title\": \"ProductShape Use Case Schema (Versionable)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"primary-actor\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"use-case\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Use case semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\",\n \"description\": \"Template schema version.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"primary-actor\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"supporting-actors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"governed-by\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^BR-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"uses-terms\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^TERM-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"in-context\": {\n \"type\": \"string\",\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"alternative-flows\": {\n \"type\": \"array\",\n \"items\": {\n \"oneOf\": [\n {\n \"type\": \"string\",\n \"minLength\": 1\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n ]\n },\n \"description\": \"Declared alternative flows that must be covered by tests.\"\n },\n \"exception-flows\": {\n \"type\": \"array\",\n \"items\": {\n \"oneOf\": [\n {\n \"type\": \"string\",\n \"minLength\": 1\n },\n {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n ]\n },\n \"description\": \"Declared exception flows that must be covered by tests.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3052
+ declare const SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/safety/hazard.schema.json\",\n \"title\": \"Hazard Schema (Operational Hazard & Safety Risk Analysis)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"severity\",\n \"probability\",\n \"fault-tolerance-time-ms\",\n \"mitigated-by\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^HAZ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"hazard\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Hazard semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"severity\": {\n \"type\": \"string\",\n \"enum\": [\n \"catastrophic\",\n \"critical\",\n \"major\",\n \"minor\",\n \"negligible\"\n ],\n \"description\": \"Hazard severity per functional safety classification (DO-178C / ISO 26262).\"\n },\n \"probability\": {\n \"type\": \"string\",\n \"enum\": [\n \"frequent\",\n \"probable\",\n \"occasional\",\n \"remote\",\n \"improbable\",\n \"extremely-improbable\"\n ],\n \"description\": \"Probability of operational hazard occurrence.\"\n },\n \"fault-tolerance-time-ms\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"description\": \"Fault tolerance time interval (FTTI) limit in milliseconds before entering safe state.\"\n },\n \"mitigated-by\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^SAF-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Safety requirements mitigating this hazard.\"\n },\n \"hazardous-condition\": {\n \"type\": \"string\",\n \"description\": \"Description of the dangerous operational condition.\"\n },\n \"potential-effect\": {\n \"type\": \"string\",\n \"description\": \"Potential effect on people, aircraft, or environment if hazard materializes.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n }\n },\n \"additionalProperties\": false\n}";
3053
+ declare const SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/safety/safety-req.schema.json\",\n \"title\": \"Safety Requirement Schema (Functional Safety & Hazard Mitigation)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"safety-domain\",\n \"safety-integrity-level\",\n \"mitigates-hazard\",\n \"fail-safe-action\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^SAF-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"safety-requirement\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Safety requirement semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"safety-domain\": {\n \"type\": \"string\",\n \"enum\": [\n \"flight-control\",\n \"collision-avoidance\",\n \"energy-management\",\n \"emergency-recovery\",\n \"sensor-integrity\",\n \"propulsion\",\n \"telemetry\"\n ],\n \"description\": \"Operational safety domain.\"\n },\n \"safety-integrity-level\": {\n \"type\": \"string\",\n \"description\": \"Safety integrity level (e.g. DAL-A..D, ASIL-A..D, SIL-1..4).\"\n },\n \"mitigates-hazard\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^HAZ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Operational hazards mitigated by safety control.\"\n },\n \"fail-safe-action\": {\n \"type\": \"string\",\n \"description\": \"Automatic action or contingency maneuver to enter safe state.\"\n },\n \"fault-tolerance-time-ms\": {\n \"type\": \"number\",\n \"description\": \"Fault tolerance time interval limit in milliseconds (FTTI).\"\n },\n \"acceptance-format\": {\n \"type\": \"string\",\n \"enum\": [\n \"gherkin\",\n \"declarative-prose\"\n ]\n },\n \"cucumber-tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n }\n },\n \"additionalProperties\": false\n}";
3054
+ declare const SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/design.schema.json\",\n \"title\": \"Spec-Driven Development Technical Design Schema (DSG-*)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(DSG-[A-Z0-9]+(-[A-Z0-9]+)*|CHG-[A-Z0-9]+-DESIGN|[A-Z0-9]+(-[A-Z0-9]+)*)$\",\n \"description\": \"Unique identifier of the technical design specification.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"spec-design\",\n \"spec-change-design\",\n \"design\"\n ]\n },\n \"change-id\": {\n \"type\": \"string\",\n \"pattern\": \"^(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Parent change identifier associated with this design.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Semantic versioning (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"handoff\": {\n \"type\": \"string\",\n \"pattern\": \"^HOF-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Reference to the HOF-* sidecar.\"\n },\n \"architecture-component\": {\n \"type\": \"string\",\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Associated architecture component.\"\n },\n \"architecture-components\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"List of architecture components covered by this technical design.\"\n },\n \"enclave\": {\n \"type\": \"string\",\n \"pattern\": \"^(SEC-ENC-)?[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Zero trust security enclave.\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"proposed\",\n \"review\",\n \"approved\",\n \"active\",\n \"completed\",\n \"deprecated\"\n ]\n },\n \"author\": {\n \"type\": \"string\"\n },\n \"date\": {\n \"type\": \"string\"\n },\n \"contracts\": {\n \"type\": \"array\",\n \"description\": \"Explicit contract interfaces and methods designed for implementation and unit testing.\",\n \"items\": {\n \"oneOf\": [\n {\n \"type\": \"string\",\n \"minLength\": 1\n },\n {\n \"type\": \"object\",\n \"required\": [\n \"methods\"\n ],\n \"properties\": {\n \"component\": {\n \"type\": \"string\"\n },\n \"interface\": {\n \"type\": \"string\"\n },\n \"methods\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"minLength\": 1\n }\n }\n },\n \"additionalProperties\": false\n }\n ]\n }\n },\n \"citations\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"id\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"digest\": {\n \"type\": \"string\"\n },\n \"comment\": {\n \"type\": \"string\"\n },\n \"anchor\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n }\n },\n \"additionalProperties\": false\n}";
3055
+ declare const SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/handoff.schema.json\",\n \"title\": \"PDaC Product Handoff Sidecar Schema (HOF-*)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"changeId\",\n \"subgraph\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^HOF-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Immutable identifier emitted by PDaC handoff.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"handoff\",\n \"product-handoff\"\n ]\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"changeId\": {\n \"type\": \"string\",\n \"pattern\": \"^(CHG|FEAT)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\"\n },\n \"createdAt\": {\n \"type\": \"string\"\n },\n \"subgraph\": {\n \"type\": \"object\",\n \"required\": [\n \"requirements\"\n ],\n \"properties\": {\n \"requirements\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"useCases\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"businessRules\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"securityRequirements\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"abuseCases\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"privacyRequirements\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"dataAssets\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"privacyRopa\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"actors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"additionalProperties\": true\n },\n \"citations\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"id\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"digest\": {\n \"type\": \"string\"\n },\n \"anchor\": {\n \"type\": \"string\"\n },\n \"comment\": {\n \"type\": \"string\"\n }\n }\n }\n }\n },\n \"additionalProperties\": true\n}";
3056
+ declare const SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/proposal.schema.json\",\n \"title\": \"Spec-Driven Development Change Proposal Schema (CHG-*)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Unique identifier of the change proposal.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"spec-change-proposal\",\n \"proposal\"\n ]\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"proposed\",\n \"review\",\n \"approved\",\n \"applied\",\n \"active\",\n \"completed\",\n \"rejected\"\n ]\n },\n \"author\": {\n \"type\": \"string\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Semantic versioning (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"date\": {\n \"type\": \"string\"\n },\n \"handoff\": {\n \"type\": \"string\",\n \"description\": \"Associated handoff sidecar reference.\"\n },\n \"sdd-framework-compat\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Supported SDD framework adapters.\"\n },\n \"citations\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"id\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"digest\": {\n \"type\": \"string\"\n },\n \"comment\": {\n \"type\": \"string\"\n },\n \"anchor\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n }\n },\n \"additionalProperties\": false\n}";
3057
+ declare const SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/release-kpis.schema.json\",\n \"title\": \"Release Consolidated KPIs & Attribution Telemetry Schema\",\n \"type\": \"object\",\n \"required\": [\n \"releaseBranch\",\n \"baseBranch\",\n \"generatedAt\",\n \"totalCommits\",\n \"totalLinesAdded\",\n \"totalLinesDeleted\",\n \"totalKloc\",\n \"totalBugs\",\n \"globalDefectDensity\",\n \"totalTimeSeconds\",\n \"totalTokens\",\n \"totalCostUsd\",\n \"authorStats\",\n \"bugList\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(KPI-REL|REL-KPI)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Optional artifact identifier.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"release-kpis\"\n },\n \"releaseBranch\": {\n \"type\": \"string\"\n },\n \"baseBranch\": {\n \"type\": \"string\"\n },\n \"generatedAt\": {\n \"type\": \"string\"\n },\n \"totalCommits\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"totalLinesAdded\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"totalLinesDeleted\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"totalKloc\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"totalBugs\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"globalDefectDensity\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"totalTimeSeconds\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"totalTokens\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"totalCostUsd\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"reworkTimeSeconds\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"reworkTokens\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"reworkCostUsd\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"reworkTimePercent\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"reworkTokensPercent\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"reworkCostPercent\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"authorStats\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"authorOrModel\",\n \"isAgent\",\n \"commits\",\n \"linesAdded\",\n \"linesDeleted\",\n \"klocProduced\",\n \"bugsInjected\",\n \"defectInjectionRate\",\n \"totalTimeSeconds\",\n \"totalTokens\",\n \"estimatedCostUsd\"\n ],\n \"properties\": {\n \"authorOrModel\": {\n \"type\": \"string\"\n },\n \"isAgent\": {\n \"type\": \"boolean\"\n },\n \"commits\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"linesAdded\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"linesDeleted\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"klocProduced\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"bugsInjected\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"defectInjectionRate\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"totalTimeSeconds\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"totalTokens\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"estimatedCostUsd\": {\n \"type\": \"number\",\n \"minimum\": 0\n }\n },\n \"additionalProperties\": false\n }\n },\n \"bugList\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"sha\",\n \"subject\",\n \"author\",\n \"timeSeconds\",\n \"tokens\"\n ],\n \"properties\": {\n \"sha\": {\n \"type\": \"string\"\n },\n \"subject\": {\n \"type\": \"string\"\n },\n \"author\": {\n \"type\": \"string\"\n },\n \"parentRef\": {\n \"type\": \"string\"\n },\n \"timeSeconds\": {\n \"type\": \"number\",\n \"minimum\": 0\n },\n \"tokens\": {\n \"type\": \"integer\",\n \"minimum\": 0\n }\n },\n \"additionalProperties\": false\n }\n }\n },\n \"additionalProperties\": false\n}";
3058
+ declare const SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/session-telemetry.schema.json\",\n \"title\": \"Agent Session Telemetry Schema (.ai-sdlc/session-telemetry.json)\",\n \"type\": \"object\",\n \"required\": [\n \"model\",\n \"promptTokens\",\n \"completionTokens\",\n \"activeTimeSeconds\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(TEL-SES|SES-TEL|TEL)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Optional telemetry session identifier.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"session-telemetry\"\n },\n \"model\": {\n \"type\": \"string\",\n \"minLength\": 1,\n \"description\": \"AI model name or identifier.\"\n },\n \"promptTokens\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"description\": \"Total prompt tokens consumed.\"\n },\n \"completionTokens\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"description\": \"Total completion tokens generated.\"\n },\n \"activeTimeSeconds\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"description\": \"Active session development duration in seconds.\"\n },\n \"author\": {\n \"type\": \"string\"\n },\n \"authorType\": {\n \"type\": \"string\",\n \"enum\": [\n \"agent\",\n \"human\"\n ]\n },\n \"sessionId\": {\n \"type\": \"string\"\n },\n \"timestamp\": {\n \"type\": \"string\"\n },\n \"provider\": {\n \"type\": \"string\"\n },\n \"confidence\": {\n \"type\": \"string\",\n \"enum\": [\n \"HIGH\",\n \"MEDIUM\",\n \"LOW\"\n ]\n },\n \"source\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n}";
3059
+ declare const SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/spec.schema.json\",\n \"title\": \"Spec-Driven Development Delivery Specification Schema (SPEC-*)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"change-id\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^SPEC-(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Unique identifier of the delivery specification.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"delivery-spec\",\n \"spec\"\n ]\n },\n \"change-id\": {\n \"type\": \"string\",\n \"pattern\": \"^(CHG|FEAT|PATCH)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Parent change identifier associated with this specification.\"\n },\n \"profile\": {\n \"type\": \"string\",\n \"enum\": [\n \"patch\",\n \"standard\",\n \"critical\"\n ],\n \"description\": \"Risk and governance profile of the change.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Semantic versioning (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"handoff\": {\n \"type\": \"string\",\n \"description\": \"Associated handoff sidecar reference.\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"proposed\",\n \"review\",\n \"approved\",\n \"active\",\n \"completed\",\n \"deprecated\"\n ]\n },\n \"verification\": {\n \"type\": \"object\",\n \"properties\": {\n \"method\": {\n \"type\": \"string\"\n },\n \"command\": {\n \"type\": \"string\"\n },\n \"target\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": true\n },\n \"citations\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"id\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"digest\": {\n \"type\": \"string\"\n },\n \"comment\": {\n \"type\": \"string\"\n },\n \"anchor\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n }\n },\n \"acceptance-format\": {\n \"type\": \"string\",\n \"enum\": [\n \"gherkin\"\n ],\n \"description\": \"Formato de aceptaci\u00F3n BDD obligatorio para especificaciones de entrega SDD.\"\n },\n \"cucumber-tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\n },\n \"description\": \"Etiquetas de trazabilidad BDD para ejecuci\u00F3n con Cucumber.\"\n },\n \"cucumber-feature-file\": {\n \"type\": \"string\",\n \"description\": \"Ruta personalizada de extracci\u00F3n del archivo .feature para Cucumber.\"\n }\n },\n \"additionalProperties\": false\n}";
3060
+ declare const SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/sdd/tasks.schema.json\",\n \"title\": \"Verifiable Tasks & Human Autonomy Governance Schema\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"change-id\",\n \"version\",\n \"tasks\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^TSK-PLAN-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"task-plan\"\n },\n \"change-id\": {\n \"type\": \"string\",\n \"pattern\": \"^(CHG|FEAT)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 5\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"approved\",\n \"in-progress\",\n \"completed\",\n \"blocked\"\n ]\n },\n \"governance-summary\": {\n \"type\": \"object\",\n \"properties\": {\n \"autonomous-tasks-count\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"human-review-plan-count\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"ambiguous-count\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"high-risk-manual-count\": {\n \"type\": \"integer\",\n \"minimum\": 0\n }\n }\n },\n \"tasks\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"title\",\n \"complexity\",\n \"risk-level\",\n \"autonomy-mode\",\n \"verification\",\n \"assigned-to\",\n \"status\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^TSK-[0-9]{3,}$\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 5\n },\n \"complexity\": {\n \"type\": \"string\",\n \"enum\": [\n \"LOW\",\n \"MEDIUM\",\n \"HIGH\"\n ]\n },\n \"risk-level\": {\n \"type\": \"string\",\n \"enum\": [\n \"LOW\",\n \"MEDIUM\",\n \"HIGH\",\n \"CRITICAL\"\n ]\n },\n \"autonomy-mode\": {\n \"type\": \"string\",\n \"enum\": [\n \"AUTONOMOUS\",\n \"HUMAN_REVIEW_PLAN\",\n \"AMBIGUOUS\",\n \"HIGH_RISK_MANUAL\"\n ],\n \"description\": \"AI agent human governance and supervision mode.\"\n },\n \"verification\": {\n \"type\": \"object\",\n \"required\": [\n \"method\",\n \"command-or-criteria\"\n ],\n \"properties\": {\n \"method\": {\n \"type\": \"string\",\n \"enum\": [\n \"automated-unit-test\",\n \"cucumber-bdd\",\n \"quality-gate\",\n \"license-audit\",\n \"sast-scan\",\n \"privacy-audit\",\n \"manual-inspection\",\n \"smoke-test\"\n ]\n },\n \"command-or-criteria\": {\n \"type\": \"string\",\n \"minLength\": 5\n }\n }\n },\n \"assigned-to\": {\n \"type\": \"string\",\n \"enum\": [\n \"agent-developer\",\n \"agent-security-auditor\",\n \"agent-compliance-checker\",\n \"agent-privacy-officer\",\n \"agent-qa\",\n \"human-engineer\",\n \"human-architect\",\n \"pair-human-agent\"\n ]\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"PENDING\",\n \"IN_PROGRESS\",\n \"COMPLETED\",\n \"BLOCKED\"\n ]\n },\n \"blocking-reason\": {\n \"type\": \"string\"\n },\n \"implements-components\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^CMP-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Architecture components (CMP-*) implemented by this atomic task.\"\n },\n \"satisfies-requirements\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^(FR|QR|CON|SEC-REQ|SAF-REQ|PRIV-REQ)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Requirements satisfied by this atomic task.\"\n },\n \"implements-contracts\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"minLength\": 1\n },\n \"description\": \"Explicit interface or method contracts from design.md implemented by this task.\"\n }\n },\n \"additionalProperties\": false\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n }\n },\n \"additionalProperties\": false\n}";
3061
+ declare const SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/security/abuse-case.schema.json\",\n \"title\": \"Abuse Case Schema (Versionable)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"primary-threat-actor\",\n \"targets-use-case\",\n \"stride-category\",\n \"mitigated-by\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"abuse-case\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Abuse case semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"primary-threat-actor\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"targets-use-case\": {\n \"type\": \"string\",\n \"pattern\": \"^UC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"stride-category\": {\n \"type\": \"string\",\n \"enum\": [\n \"spoofing\",\n \"tampering\",\n \"repudiation\",\n \"information-disclosure\",\n \"denial-of-service\",\n \"elevation-of-privilege\"\n ]\n },\n \"mitigated-by\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"asvs-controls\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3062
+ declare const SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/security/enclave.schema.json\",\n \"title\": \"Security Enclave Schema (Zero Trust Architecture Boundary)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"trust-zone\",\n \"perimeter-rules\",\n \"allowed-inbound\",\n \"allowed-outbound\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"security-enclave\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Security enclave semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"trust-zone\": {\n \"type\": \"string\",\n \"enum\": [\n \"untrusted\",\n \"semi-trusted\",\n \"trusted\",\n \"highly-trusted\",\n \"dmz\",\n \"zero-trust-boundary\"\n ],\n \"description\": \"Zero Trust confidence zone assigned to enclave.\"\n },\n \"trust-level\": {\n \"type\": \"string\",\n \"description\": \"Descriptive Zero Trust confidence level.\"\n },\n \"isolation\": {\n \"type\": \"string\",\n \"description\": \"Technical perimeter isolation mechanism.\"\n },\n \"perimeter-rules\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Perimeter rules defining enclave security boundary (e.g. mTLS, IP allowlist).\"\n },\n \"allowed-inbound\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^(CMP|SEC-ENC)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Components or enclaves authorized to initiate inbound connections.\"\n },\n \"allowed-outbound\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^(CMP|SEC-ENC)-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Components or enclaves this enclave can connect to.\"\n },\n \"enforced-by\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Security requirements enforcing this enclave's rules.\"\n },\n \"authentication-mechanism\": {\n \"type\": \"string\",\n \"enum\": [\n \"mtls\",\n \"jwt\",\n \"api-key\",\n \"oauth2\",\n \"none\"\n ],\n \"description\": \"Authentication mechanism required at enclave perimeter.\"\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ]\n }\n },\n \"additionalProperties\": false\n}";
3063
+ declare const SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/security/security-req.schema.json\",\n \"title\": \"Security Requirement Schema (Strict Test Validation Enforced)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"security-domain\",\n \"mitigates-abuse-case\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"security-requirement\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Security requirement semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"security-domain\": {\n \"type\": \"string\",\n \"enum\": [\n \"authentication\",\n \"authorization\",\n \"cryptography\",\n \"input-validation\",\n \"audit-logging\",\n \"communication-security\",\n \"data-protection\"\n ]\n },\n \"mitigates-abuse-case\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^ABUSE-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"description\": \"Product/Security Traceability: Abuse case or threat this control neutralizes.\"\n },\n \"enforced-in-enclave\": {\n \"type\": \"string\",\n \"pattern\": \"^SEC-ENC-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Architecture Traceability: Perimeter or internal security enclave.\"\n },\n \"compliance-references\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"acceptance-format\": {\n \"type\": \"string\",\n \"enum\": [\n \"gherkin\",\n \"declarative-prose\"\n ],\n \"description\": \"Mitigation criteria format.\"\n },\n \"cucumber-tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"pattern\": \"^@[a-zA-Z0-9_-]+$\"\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^SEC-REQ-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3064
+ declare const SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/security/threat-actor.schema.json\",\n \"title\": \"Threat Actor Schema (Versionable)\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"title\",\n \"status\",\n \"version\",\n \"threat-capability\",\n \"motivation\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"threat-actor\"\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Threat profile semantic version (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"deprecated\",\n \"retired\"\n ]\n },\n \"threat-capability\": {\n \"type\": \"string\",\n \"enum\": [\n \"script-kiddie\",\n \"advanced-persistent-threat\",\n \"insider-threat\",\n \"automated-botnet\",\n \"supply-chain-attacker\"\n ]\n },\n \"motivation\": {\n \"type\": \"string\",\n \"enum\": [\n \"financial-gain\",\n \"espionage\",\n \"sabotage\",\n \"data-theft\",\n \"reputational-damage\"\n ]\n },\n \"attack-surfaces\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"supersedes\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\n \"string\",\n \"null\"\n ],\n \"pattern\": \"^ACT-THREAT-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}";
3065
+ declare const SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON = "{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://ai-sdlc.org/schemas/workflow/agent-handoff.schema.json\",\n \"title\": \"Agent Workflow Handoff Block Schema\",\n \"type\": \"object\",\n \"required\": [\n \"id\",\n \"type\",\n \"completed-phase\",\n \"acting-role\",\n \"autonomy-mode\",\n \"deliverables\",\n \"suggested-prompt\"\n ],\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"pattern\": \"^(AHOF|HOF-WORKFLOW|HOF)-[A-Z0-9]+(-[A-Z0-9]+)*$\",\n \"description\": \"Unique workflow handoff identifier.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"const\": \"agent-handoff\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3\n },\n \"version\": {\n \"type\": \"string\",\n \"pattern\": \"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+(-[0-9A-Za-z.-]+)?$\",\n \"description\": \"Semantic versioning (SemVer).\"\n },\n \"schema-version\": {\n \"type\": \"string\"\n },\n \"status\": {\n \"type\": \"string\",\n \"enum\": [\n \"draft\",\n \"active\",\n \"completed\",\n \"transferred\"\n ]\n },\n \"completed-phase\": {\n \"type\": \"string\",\n \"minLength\": 2,\n \"description\": \"Name of the completed lifecycle phase or activity.\"\n },\n \"acting-role\": {\n \"type\": \"string\",\n \"enum\": [\n \"agent-product-analyst\",\n \"agent-threat-modeler\",\n \"agent-privacy-officer\",\n \"agent-system-architect\",\n \"agent-qa-engineer\",\n \"agent-developer\",\n \"agent-expert-user\",\n \"agent-security-auditor\",\n \"agent-compliance-checker\",\n \"agent-code-reviewer\",\n \"agent-devops\",\n \"human-dev\",\n \"tech-lead\",\n \"release-manager\",\n \"dpo\"\n ],\n \"description\": \"Specialized role executing the handoff.\"\n },\n \"autonomy-mode\": {\n \"type\": \"string\",\n \"enum\": [\n \"AUTONOMOUS\",\n \"HUMAN_REVIEW_PLAN\",\n \"AMBIGUOUS\",\n \"HIGH_RISK_MANUAL\"\n ],\n \"description\": \"Autonomy level under which the task was executed.\"\n },\n \"deliverables\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Paths or IDs of artifacts produced during the phase.\"\n },\n \"recommended-next-roles\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\n \"role\",\n \"rationale\"\n ],\n \"properties\": {\n \"role\": {\n \"type\": \"string\"\n },\n \"rationale\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n },\n \"description\": \"Recommended downstream specialist roles and technical justifications.\"\n },\n \"suggested-prompt\": {\n \"type\": \"string\",\n \"minLength\": 5,\n \"description\": \"Suggested invocation prompt to initiate the next agent.\"\n },\n \"human-action-window\": {\n \"type\": \"object\",\n \"properties\": {\n \"review-and-validate\": {\n \"type\": \"boolean\"\n },\n \"edit-directly\": {\n \"type\": \"boolean\"\n },\n \"pause-or-divert\": {\n \"type\": \"boolean\"\n },\n \"delegate\": {\n \"type\": \"boolean\"\n }\n },\n \"additionalProperties\": false,\n \"description\": \"Actions available to the human engineer within the sovereign action window.\"\n }\n },\n \"additionalProperties\": false\n}";
3049
3066
  declare const STARTER_SCHEMAS_MAP: Record<string, JsonSchemaRule>;
3050
3067
  declare const STARTER_SCHEMAS: StarterSchemaEntry[];
3051
3068
 
@@ -3060,10 +3077,15 @@ interface StarterTemplateEntry {
3060
3077
  declare const STARTER_TEMPLATES_CI__GITLAB_CI_YML = "# ==============================================================================\r\n# AI-SDLC: GitLab CI/CD Pipeline Template\r\n# Continuous Quality Gates verification and canonical promotion of SDD changes\r\n# ==============================================================================\r\n\r\nstages:\r\n - validate\r\n - test\r\n - integrate\r\n\r\ndefault:\r\n image: node:20\r\n\r\nvariables:\r\n PNPM_HOME: \"$CI_PROJECT_DIR/.pnpm\"\r\n\r\nbefore_script:\r\n - corepack enable\r\n - corepack prepare pnpm@10 --activate\r\n - pnpm config set store-dir .pnpm-store\r\n - pnpm install --frozen-lockfile\r\n - pnpm approve-builds --all\r\n - pnpm run build\r\n\r\n# ------------------------------------------------------------------------------\r\n# Stage 1: Pre-flight and Quality Gates Verification\r\n# ------------------------------------------------------------------------------\r\nquality-gates:\r\n stage: validate\r\n rules:\r\n - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\r\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'\r\n - if: '$CI_COMMIT_BRANCH =~ /^release\\/.*/'\r\n script:\r\n - npx @aisdlc/cli check\r\n\r\n# ------------------------------------------------------------------------------\r\n# Stage 2: Unit Test Suite & Full Verification\r\n# ------------------------------------------------------------------------------\r\ntest-and-verify:\r\n stage: test\r\n rules:\r\n - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\r\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'\r\n - if: '$CI_COMMIT_BRANCH =~ /^release\\/.*/'\r\n script:\r\n - pnpm test\r\n - npx @aisdlc/cli verify all\r\n\r\n# ------------------------------------------------------------------------------\r\n# Stage 3: Post-Merge SDD Canonical Integration\r\n# ------------------------------------------------------------------------------\r\nsdd-canonical-integration:\r\n stage: integrate\r\n rules:\r\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == \"push\"'\r\n - if: '$CI_COMMIT_BRANCH =~ /^release\\/.*/ && $CI_PIPELINE_SOURCE == \"push\"'\r\n - if: '$CI_PIPELINE_SOURCE == \"web\"'\r\n variables:\r\n GIT_STRATEGY: clone\r\n GIT_DEPTH: 0\r\n script:\r\n - npx @aisdlc/cli sdd integrate --auto || true\r\n - |\r\n git config user.name \"gitlab-ci-bot\"\r\n git config user.email \"gitlab-ci-bot@noreply.gitlab.com\"\r\n git add -A\r\n if ! git diff --cached --quiet; then\r\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\r\n git push \"https://oauth2:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git\" \"HEAD:${CI_COMMIT_BRANCH}\"\r\n echo \"\u2714 Canonical integration synchronized in GitLab.\"\r\n else\r\n echo \"\u2139 No pending changes generated.\"\r\n fi\r\n";
3061
3078
  declare const STARTER_TEMPLATES_CI_AZURE_PIPELINES_YML = "# ==============================================================================\r\n# AI-SDLC: Azure DevOps Pipelines Template\r\n# Continuous Quality Gates verification and canonical promotion of SDD changes\r\n# ==============================================================================\r\n\r\ntrigger:\r\n branches:\r\n include:\r\n - main\r\n - release/*\r\n\r\npr:\r\n branches:\r\n include:\r\n - main\r\n - release/*\r\n\r\npool:\r\n vmImage: 'ubuntu-latest'\r\n\r\nstages:\r\n - stage: ValidateAndTest\r\n displayName: 'Verification & Quality Gates'\r\n jobs:\r\n - job: QualityAndTests\r\n displayName: 'Quality Gates, Linting & Tests'\r\n steps:\r\n - task: NodeTool@0\r\n inputs:\r\n versionSpec: '20.x'\r\n displayName: 'Install Node.js 20'\r\n\r\n - script: |\r\n corepack enable\r\n corepack prepare pnpm@10 --activate\r\n pnpm install --frozen-lockfile\r\n pnpm approve-builds --all\r\n pnpm run build\r\n displayName: 'Install dependencies and build monorepo'\r\n\r\n - script: |\r\n npx @aisdlc/cli check\r\n displayName: 'Run AI-SDLC pre-flight (check)'\r\n\r\n - script: |\r\n pnpm test\r\n displayName: 'Run unit test suite'\r\n\r\n - script: |\r\n npx @aisdlc/cli verify all\r\n displayName: 'Run Full Release Gate (verify all)'\r\n\r\n - stage: CanonicalIntegration\r\n displayName: 'Post-Merge SDD Canonical Integration'\r\n dependsOn: ValidateAndTest\r\n condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/main', 'refs/heads/release/'))\r\n jobs:\r\n - job: SddPromote\r\n displayName: 'Consolidate canonical SDD specifications'\r\n steps:\r\n - checkout: self\r\n persistCredentials: true\r\n fetchDepth: 0\r\n\r\n - task: NodeTool@0\r\n inputs:\r\n versionSpec: '20.x'\r\n displayName: 'Install Node.js 20'\r\n\r\n - script: |\r\n corepack enable\r\n corepack prepare pnpm@10 --activate\r\n pnpm install --frozen-lockfile\r\n pnpm approve-builds --all\r\n pnpm run build\r\n displayName: 'Install dependencies'\r\n\r\n - script: |\r\n npx @aisdlc/cli sdd integrate --auto || true\r\n name: SddIntegrate\r\n displayName: 'Detect and integrate SDD increment'\r\n\r\n - script: |\r\n git config user.name \"azure-pipelines[bot]\"\r\n git config user.email \"azure-pipelines[bot]@dev.azure.com\"\r\n git add -A\r\n if ! git diff --cached --quiet; then\r\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\r\n git push origin HEAD:$(Build.SourceBranchName)\r\n echo \"\u2714 Canonical integration synchronized in Azure DevOps.\"\r\n else\r\n echo \"\u2139 No modifications generated in working tree.\"\r\n fi\r\n displayName: 'Synchronize canonical changes to repository'\r\n";
3062
3079
  declare const STARTER_TEMPLATES_CI_BITBUCKET_PIPELINES_YML = "# ==============================================================================\r\n# AI-SDLC: Bitbucket Pipelines Template\r\n# Continuous Quality Gates verification and canonical promotion of SDD changes\r\n# ==============================================================================\r\n\r\nimage: node:20\r\n\r\ndefinitions:\r\n steps:\r\n - step: &build-and-verify\r\n name: Quality Gates & Verification\r\n script:\r\n - corepack enable\r\n - corepack prepare pnpm@10 --activate\r\n - pnpm config set store-dir $BITBUCKET_CLONE_DIR/.pnpm-store\r\n - pnpm install --frozen-lockfile\r\n - pnpm approve-builds --all\r\n - pnpm run build\r\n - npx @aisdlc/cli check\r\n - pnpm test\r\n - npx @aisdlc/cli verify all\r\n\r\n - step: &sdd-integrate\r\n name: SDD Canonical Integration\r\n script:\r\n - corepack enable\r\n - corepack prepare pnpm@10 --activate\r\n - pnpm config set store-dir $BITBUCKET_CLONE_DIR/.pnpm-store\r\n - pnpm install --frozen-lockfile\r\n - pnpm approve-builds --all\r\n - pnpm run build\r\n - npx @aisdlc/cli sdd integrate --auto || true\r\n - |\r\n git config user.name \"bitbucket-pipelines[bot]\"\r\n git config user.email \"pipelines[bot]@bitbucket.org\"\r\n git add -A\r\n if ! git diff --cached --quiet; then\r\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\r\n git push origin HEAD:$BITBUCKET_BRANCH\r\n echo \"\u2714 Canonical integration synchronized in Bitbucket.\"\r\n fi\r\n\r\npipelines:\r\n pull-requests:\r\n '**':\r\n - step: *build-and-verify\r\n\r\n branches:\r\n main:\r\n - step: *build-and-verify\r\n - step: *sdd-integrate\r\n 'release/*':\r\n - step: *build-and-verify\r\n - step: *sdd-integrate\r\n";
3063
- declare const STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML = "name: CI - AI-SDLC Quality Gates & Testing\r\n\r\non:\r\n push:\r\n branches: [ main ]\r\n pull_request:\r\n branches: [ main ]\r\n\r\njobs:\r\n verify-and-test:\r\n runs-on: ubuntu-latest\r\n strategy:\r\n matrix:\r\n node-version: [ 20.x, 22.x ]\r\n\r\n steps:\r\n - name: Checkout Code\r\n uses: actions/checkout@v4\r\n\r\n - name: Install pnpm\r\n uses: pnpm/action-setup@v4\r\n with:\r\n version: 10\r\n\r\n - name: Setup Node.js ${{ matrix.node-version }}\r\n uses: actions/setup-node@v4\r\n with:\r\n node-version: ${{ matrix.node-version }}\r\n\r\n - name: Install Dependencies\r\n run: |\r\n pnpm install --frozen-lockfile\r\n pnpm approve-builds --all\r\n\r\n - name: Build Packages\r\n run: pnpm run build\r\n\r\n - name: Run Vitest Unit & Integration Suites\r\n run: pnpm test\r\n\r\n - name: AI-SDLC Quality Gate & Full Verification\r\n run: npx @aisdlc/cli verify all\r\n";
3080
+ declare const STARTER_TEMPLATES_CI_DOCKER_COMPOSE_OBSERVABILITY_YML = "# ==============================================================================\n# AI-SDLC: Optional Local & Post-Mortem Observability Stack\n# Provides Prometheus (Apache-2.0) and Grafana (isolated optional UI container)\n# mounting local persistent telemetry stored under ./.observability/\n#\n# Usage:\n# docker compose -f templates/ci/docker-compose.observability.yml up -d\n# ==============================================================================\nservices:\n prometheus:\n image: prom/prometheus:v2.54.1\n container_name: aisdlc-prometheus\n command:\n - \"--config.file=/etc/prometheus/prometheus.yml\"\n - \"--storage.tsdb.path=/prometheus\"\n - \"--storage.tsdb.retention.time=30d\"\n - \"--web.enable-admin-api\"\n ports:\n - \"9090:9090\"\n volumes:\n - ./observability/prometheus.yml:/etc/prometheus/prometheus.yml:ro\n - ../../.observability:/observability:ro\n - prometheus_data:/prometheus\n extra_hosts:\n - \"host.docker.internal:host-gateway\"\n restart: unless-stopped\n\n grafana:\n image: grafana/grafana:11.2.2\n container_name: aisdlc-grafana\n ports:\n - \"3000:3000\"\n environment:\n - GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER:-admin}\n - GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-admin}\n - GF_USERS_ALLOW_SIGN_UP=false\n volumes:\n - ./observability/grafana-datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml:ro\n - ../../.observability:/observability:ro\n - grafana_data:/var/lib/grafana\n depends_on:\n - prometheus\n restart: unless-stopped\n\nvolumes:\n prometheus_data:\n grafana_data:\n";
3081
+ declare const STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML = "name: CI - AI-SDLC Quality Gates & Testing\r\n\r\non:\r\n push:\r\n branches: [ main ]\r\n pull_request:\r\n branches: [ main ]\r\n types: [ opened, synchronize, reopened, ready_for_review ]\r\n\r\njobs:\r\n verify-and-test:\r\n if: github.event_name != 'pull_request' || github.event.pull_request.draft == false\r\n runs-on: ubuntu-latest\r\n strategy:\r\n matrix:\r\n node-version: [ 20.x, 22.x ]\r\n\r\n steps:\r\n - name: Checkout Code\r\n uses: actions/checkout@v4\r\n\r\n - name: Install pnpm\r\n uses: pnpm/action-setup@v4\r\n with:\r\n version: 10\r\n\r\n - name: Setup Node.js ${{ matrix.node-version }}\r\n uses: actions/setup-node@v4\r\n with:\r\n node-version: ${{ matrix.node-version }}\r\n\r\n - name: Install Dependencies\r\n run: |\r\n pnpm install --frozen-lockfile\r\n pnpm approve-builds --all\r\n\r\n - name: Build Packages\r\n run: pnpm run build\r\n\r\n - name: Run Vitest Unit & Integration Suites\r\n run: pnpm test\r\n\r\n - name: AI-SDLC Quality Gate & Full Verification\r\n run: npx @aisdlc/cli verify all\r\n";
3064
3082
  declare const STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_DEPLOY_DASHBOARD_YML = "name: Deploy AI-SDLC Dashboard to GitHub Pages\r\n\r\non:\r\n push:\r\n branches:\r\n - main\r\n workflow_dispatch:\r\n\r\npermissions:\r\n contents: read\r\n pages: write\r\n id-token: write\r\n\r\nconcurrency:\r\n group: pages\r\n cancel-in-progress: false\r\n\r\njobs:\r\n deploy-dashboard:\r\n name: Build & Publish Interactive Dashboard\r\n runs-on: ubuntu-latest\r\n environment:\r\n name: github-pages\r\n url: ${{ steps.deployment.outputs.page_url }}\r\n\r\n steps:\r\n - name: Checkout Code\r\n uses: actions/checkout@v4\r\n with:\r\n fetch-depth: 0 # Full git history required for historical KPIs and telemetry\r\n\r\n - name: Setup Node.js\r\n uses: actions/setup-node@v4\r\n with:\r\n node-version: 20\r\n\r\n - name: Generate AI-SDLC Interactive Dashboard\r\n run: |\r\n mkdir -p reports\r\n npx --yes @aisdlc/cli report dashboard --output reports/index.html\r\n cp reports/index.html reports/dashboard.html\r\n touch reports/.nojekyll\r\n\r\n - name: Setup GitHub Pages\r\n uses: actions/configure-pages@v5\r\n\r\n - name: Upload Pages Artifact\r\n uses: actions/upload-pages-artifact@v3\r\n with:\r\n path: reports\r\n\r\n - name: Deploy to GitHub Pages\r\n id: deployment\r\n uses: actions/deploy-pages@v4\r\n\r\n - name: Emit Summary to GitHub Actions\r\n if: always() && steps.deployment.outcome == 'success'\r\n run: |\r\n echo \"### \uD83C\uDF10 AI-SDLC Interactive Dashboard Published\" >> $GITHUB_STEP_SUMMARY\r\n echo \"\" >> $GITHUB_STEP_SUMMARY\r\n echo \"The interactive PDaC / RTM graph, Quality Gate telemetry, and release metrics are live at:\" >> $GITHUB_STEP_SUMMARY\r\n echo \"\" >> $GITHUB_STEP_SUMMARY\r\n echo \"\uD83D\uDC49 **[Open Live Dashboard](${{ steps.deployment.outputs.page_url }})**\" >> $GITHUB_STEP_SUMMARY\r\n";
3065
- declare const STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML = "name: AI-SDLC PR KPI Aggregator\r\n\r\non:\r\n pull_request:\r\n types: [opened, synchronize, reopened]\r\n\r\npermissions:\r\n contents: read\r\n pull-requests: write\r\n\r\njobs:\r\n aggregate-kpis:\r\n name: Aggregate PR KPIs & Telemetry\r\n runs-on: ubuntu-latest\r\n\r\n steps:\r\n - name: Checkout Repository\r\n uses: actions/checkout@v4\r\n with:\r\n fetch-depth: 0\r\n\r\n - name: Install pnpm\r\n uses: pnpm/action-setup@v4\r\n with:\r\n version: 10\r\n\r\n - name: Setup Node.js\r\n uses: actions/setup-node@v4\r\n with:\r\n node-version: 20\r\n\r\n - name: Install Dependencies\r\n run: |\r\n pnpm install --frozen-lockfile\r\n\r\n - name: Calculate and Emit PR KPIs\r\n id: kpi\r\n run: |\r\n npx @aisdlc/cli kpi pr --base origin/${{ github.base_ref }} --head HEAD >> $GITHUB_STEP_SUMMARY\r\n";
3083
+ declare const STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML = "name: AI-SDLC PR KPI Aggregator\r\n\r\non:\r\n pull_request:\r\n types: [opened, synchronize, reopened, ready_for_review]\r\n\r\npermissions:\r\n contents: read\r\n pull-requests: write\r\n\r\njobs:\r\n aggregate-kpis:\r\n if: github.event.pull_request.draft == false\r\n name: Aggregate PR KPIs & Telemetry\r\n runs-on: ubuntu-latest\r\n\r\n steps:\r\n - name: Checkout Repository\r\n uses: actions/checkout@v4\r\n with:\r\n fetch-depth: 0\r\n\r\n - name: Install pnpm\r\n uses: pnpm/action-setup@v4\r\n with:\r\n version: 10\r\n\r\n - name: Setup Node.js\r\n uses: actions/setup-node@v4\r\n with:\r\n node-version: 20\r\n\r\n - name: Install Dependencies\r\n run: |\r\n pnpm install --frozen-lockfile\r\n\r\n - name: Calculate and Emit PR KPIs\r\n id: kpi\r\n run: |\r\n npx @aisdlc/cli kpi pr --base origin/${{ github.base_ref }} --head HEAD >> $GITHUB_STEP_SUMMARY\r\n";
3066
3084
  declare const STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_SDD_INTEGRATE_ON_MERGE_YML = "name: SDD Canonical Integration on Merge\r\n\r\non:\r\n pull_request:\r\n types: [closed]\r\n branches:\r\n - main\r\n - 'release/**'\r\n workflow_dispatch:\r\n inputs:\r\n change_id:\r\n description: 'SDD change ID to integrate manually (e.g. chg-001-telemetry)'\r\n required: false\r\n type: string\r\n\r\npermissions:\r\n contents: write\r\n pull-requests: read\r\n\r\nconcurrency:\r\n group: sdd-integrate-${{ github.event.pull_request.base.ref || github.ref_name }}\r\n cancel-in-progress: false\r\n\r\njobs:\r\n integrate-sdd:\r\n name: SDD Canonical Integration\r\n if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'\r\n runs-on: ubuntu-latest\r\n\r\n steps:\r\n - name: Checkout Repository\r\n uses: actions/checkout@v4\r\n with:\r\n ref: ${{ github.event.pull_request.base.ref || github.ref_name }}\r\n fetch-depth: 0\r\n token: ${{ secrets.GITHUB_TOKEN }}\r\n\r\n - name: Install pnpm\r\n uses: pnpm/action-setup@v4\r\n with:\r\n version: 10\r\n\r\n - name: Setup Node.js\r\n uses: actions/setup-node@v4\r\n with:\r\n node-version: 20\r\n\r\n - name: Install Dependencies\r\n run: |\r\n pnpm install --frozen-lockfile\r\n pnpm approve-builds --all\r\n\r\n - name: Build Packages\r\n run: pnpm run build\r\n\r\n - name: Detect and Integrate SDD Change\r\n id: integrate\r\n env:\r\n PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}\r\n PR_TITLE: ${{ github.event.pull_request.title }}\r\n PR_BODY: ${{ github.event.pull_request.body }}\r\n MANUAL_CHANGE_ID: ${{ github.event.inputs.change_id }}\r\n run: |\r\n npx @aisdlc/cli sdd integrate --auto || true\r\n\r\n - name: Commit and Push Canonical Baseline Changes\r\n run: |\r\n git config user.name \"github-actions[bot]\"\r\n git config user.email \"github-actions[bot]@users.noreply.github.com\"\r\n git add -A\r\n if ! git diff --cached --quiet; then\r\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\r\n TARGET_BRANCH=\"${{ github.event.pull_request.base.ref || github.ref_name }}\"\r\n MAX_RETRIES=3\r\n RETRY_COUNT=0\r\n DELAY=2\r\n\r\n while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do\r\n echo \"Synchronizing with remote branch $TARGET_BRANCH (pull --rebase)...\"\r\n git pull --rebase origin \"$TARGET_BRANCH\"\r\n if git push origin \"$TARGET_BRANCH\"; then\r\n echo \"\u2714 Canonical integration committed and synchronized to repository.\"\r\n exit 0\r\n fi\r\n RETRY_COUNT=$((RETRY_COUNT + 1))\r\n if [ $RETRY_COUNT -lt $MAX_RETRIES ]; then\r\n echo \"\u26A0 Push rejected (concurrency detected). Retrying in ${DELAY}s (attempt $RETRY_COUNT/$MAX_RETRIES)...\"\r\n sleep $DELAY\r\n DELAY=$((DELAY * 2))\r\n fi\r\n done\r\n\r\n echo \"\u274C Error: Failed to push canonical integration after $MAX_RETRIES attempts.\"\r\n exit 1\r\n else\r\n echo \"\u2139 No pending changes generated in working tree.\"\r\n fi\r\n";
3085
+ declare const STARTER_TEMPLATES_CI_OBSERVABILITY_GRAFANA_DATASOURCES_YML = "# ==============================================================================\n# AI-SDLC: Grafana Pre-Provisioned Datasources\n# ==============================================================================\napiVersion: 1\n\ndatasources:\n - name: Prometheus\n type: prometheus\n access: proxy\n url: http://prometheus:9090\n isDefault: true\n editable: true\n";
3086
+ declare const STARTER_TEMPLATES_CI_OBSERVABILITY_PROMETHEUS_YML = "# ==============================================================================\n# AI-SDLC: Prometheus Configuration (Live Scraping + Persistent TSDB)\n# For offline/post-mortem backfill from OpenMetrics snapshots:\n# docker exec aisdlc-prometheus promtool tsdb create-blocks-from openmetrics /observability/metrics/metrics.prom /prometheus\n# ==============================================================================\nglobal:\n scrape_interval: 15s\n evaluation_interval: 15s\n\nscrape_configs:\n - job_name: \"prometheus\"\n static_configs:\n - targets: [\"localhost:9090\"]\n\n - job_name: \"app-runtime\"\n metrics_path: \"/metrics\"\n static_configs:\n - targets: [\"host.docker.internal:9464\"]\n";
3087
+ declare const STARTER_TEMPLATES_CODING_RULES_GO__GOLANGCI_YML = "# AI-SDLC: Immutable Go & Testing Linter Guardrails\nrun:\n tests: true\n\nissues:\n max-issues-per-linter: 0\n max-same-issues: 0\n\nlinters:\n enable:\n - errcheck\n - govet\n - staticcheck\n - unused\n - ineffassign\n - testifylint\n - thelper\n - forbidigo\n\nlinters-settings:\n testifylint:\n enable-all: true\n forbidigo:\n analyze-types: true\n forbid:\n - p: ^testing\\.T\\.Skip.*$\n msg: \"Skipping unit tests with t.Skip() is forbidden by AI-SDLC.\"\n";
3088
+ declare const STARTER_TEMPLATES_CODING_RULES_KOTLIN_DETEKT_YML = "# AI-SDLC: Immutable Detekt Rules for Kotlin & Unit Tests\nbuild:\n maxIssues: 0\n\npotential-bugs:\n active: true\n IgnoredReturnValue:\n active: true\n UnreachableCode:\n active: true\n\nexceptions:\n active: true\n SwallowedException:\n active: true\n EmptyCatchBlock:\n active: true\n\nstyle:\n active: true\n ForbiddenAnnotation:\n active: true\n annotations:\n - 'org.junit.jupiter.api.Disabled'\n - 'org.junit.Ignore'\n - 'kotlin.test.Ignore'\n";
3067
3089
  declare const STARTER_TEMPLATES_COMPLIANCE_COMMERCIAL_ACQUISITION_REQUEST_TEMPLATE_MD = "---\r\nid: REQ-LIC-ACQUISITION-001\r\ntype: license-acquisition-request\r\ntitle: Commercial License Acquisition Request for [Library]\r\nstatus: pending-approval # pending-approval, approved, rejected\r\nrequested-package: \"@vendor/commercial-package\"\r\nspdx-license: \"BSL-1.1\" # or Commercial, SSPL-1.0\r\nlicense-category: commercial_acquisition_required\r\nestimated-cost: \"$1,200 / year\"\r\nbusiness-justification: \"Accelerates critical telemetry module development avoiding 4 months of in-house implementation.\"\r\n---\r\n\r\n# Commercial License Acquisition Request\r\n\r\n## 1. Package and Vendor\r\n- **Package**: `@vendor/commercial-package`\r\n- **Version**: `2.4.0`\r\n- **License Type**: BSL 1.1 / Commercial\r\n- **Official Website**: `https://vendor.example.com`\r\n\r\n## 2. Technical Justification and Evaluated Alternatives\r\n- **Why a permissive alternative (MIT/Apache 2.0) is not used**:\r\n - Open-source alternatives lack required hardware encryption protocol support.\r\n- **Impact of not acquiring the license**:\r\n - 4-month delay on product delivery milestone.\r\n\r\n## 3. Human Authorization Signatures\r\n- [ ] Tech Lead: Technical approval\r\n- [ ] Legal / IP Counsel: EULA clauses validation\r\n- [ ] Procurement / Budget Owner: Payment authorization\r\n";
3068
3090
  declare const STARTER_TEMPLATES_MANUALS_PRODUCTION_MANUAL_TEMPLATE_MD = "---\r\nid: MAN-PROD-001\r\ntype: production-manual\r\ntitle: \"Production & Operations Manual: Application Name\"\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\napplies-to-version: \"v1.0.0\"\r\ntarget-audience:\r\n - devops-engineer\r\n - sre-engineer\r\n - release-manager\r\n - secops\r\ncomponents-covered:\r\n - CMP-NAME-001\r\nenclaves-involved:\r\n - SEC-ENC-DMZ-001\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# MAN-PROD-001: Production & Operations Manual - Application Name\r\n\r\n## 1. Deterministic Release Regeneration (Reproducible Builds)\r\n\r\nThis section contains the specifications and directives required to deterministically reproduce identical bit-by-bit application artifacts or releases from their Git tag.\r\n\r\n### 1.1 Source Code Baseline\r\n\r\n- **Canonical Repository**: `https://github.com/organization/repo-name.git`\r\n- **Immutable Git Release Tag**: `v1.0.0`\r\n- **Commit SHA-256 / SHA-1**: `[VERIFIED_HEXADECIMAL_COMMIT_SHA]`\r\n- **Clean Checkout Command**:\r\n ```bash\r\n git clone --recurse-submodules https://github.com/organization/repo-name.git\r\n cd repo-name\r\n git checkout tags/v1.0.0\r\n git submodule update --init --recursive\r\n ```\r\n\r\n### 1.2 Frozen Toolchains and Build Tool Matrix\r\n\r\nTo prevent discrepancies in binary or package generation, strict usage of pinned versions of the following utilities is enforced:\r\n\r\n| Tool / Runtime | Exact Version | Toolchain Checksum / Digest | Purpose |\r\n| :--- | :--- | :--- | :--- |\r\n| **Node.js LTS** | `v22.12.0` | `sha256:node-v22.12.0-linux-x64.tar.xz` | Execution and transpilation runtime |\r\n| **pnpm** | `9.15.0` | `sha256:pnpm-v9.15.0` | Deterministic monorepo package manager |\r\n| **TypeScript (tsc)** | `5.7.2` | Pinned in `devDependencies` | Strict ECMAScript compiler |\r\n| **Docker BuildKit** | `v0.18.0` | `moby/buildkit:v0.18.0` | Hermetic OCI packaging engine |\r\n\r\n### 1.3 Libraries, Dependencies, and Vertex Graph\r\n\r\n- **Immutable Lockfile**: `pnpm-lock.yaml` (or `Cargo.lock`, `go.sum`, `requirements.lock`). Installations with open resolution are forbidden (`pnpm install --frozen-lockfile` mandatory).\r\n- **SBOM (Software Bill of Materials) Inventory**:\r\n - Format: CycloneDX JSON v1.5 / SPDX v2.3.\r\n - Compiled SBOM path: `reports/sbom-cyclonedx.json`.\r\n- **OSS License Governance**:\r\n - Binding policy: `license-policy.yaml`.\r\n - Library vertex pre-verification:\r\n ```bash\r\n pnpm verify:licenses\r\n ```\r\n\r\n### 1.4 Step-by-Step Deterministic Build Procedure\r\n\r\n1. **Step 1: Hermetic Dependency Installation**\r\n ```bash\r\n pnpm install --frozen-lockfile --ignore-scripts\r\n ```\r\n\r\n2. **Step 2: Integrity and Strict Type Checking**\r\n ```bash\r\n pnpm typecheck\r\n ```\r\n\r\n3. **Step 3: Artifact Compilation**\r\n ```bash\r\n export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)\r\n pnpm build\r\n ```\r\n\r\n4. **Step 4: Cryptographic Verification of Generated Artifact**\r\n ```bash\r\n sha256sum dist/app.bundle.js\r\n # Compare against the canonical checksum registered in official release:\r\n # Expected: [CANONICAL_SHA256_CHECKSUM]\r\n ```\r\n\r\n\r\n\r\n5. **Step 5: Sigstore / Cosign Signature and SLSA Provenance Verification**\r\n ```bash\r\n # Verify npm package provenance from registry\r\n npm audit signatures\r\n\r\n # Verify package tarball with Sigstore / Cosign (Keyless via OIDC identity)\r\n cosign verify-blob \\\r\n --bundle release-artifacts/package.tgz.bundle \\\r\n --certificate-identity-regexp \"^https://github.com/organization/repo-name/.*$\" \\\r\n --certificate-oidc-issuer \"https://token.actions.githubusercontent.com\" \\\r\n release-artifacts/package.tgz\r\n\r\n # Verify SLSA Build Provenance Attestation using GitHub CLI\r\n gh attestation verify release-artifacts/package.tgz --repo organization/repo-name\r\n ```\r\n\r\n---\r\n\r\n## 2. Version, Infrastructure, and Migration Compatibility Matrix\r\n\r\nThis section defines technical interoperability boundaries between the release version and the deployment ecosystem, ensuring safe Zero-Downtime transitions.\r\n\r\n### 2.1 Platform and Execution Runtime Compatibility\r\n\r\n| Infrastructure Component | Approved Version Range | Recommended Version | Support Status |\r\n| :--- | :--- | :--- | :---: |\r\n| **Kubernetes Cluster (K8s)** | `>= 1.28` and `<= 1.31` | `1.30.2` | \u2705 Certified |\r\n| **Container Runtime (CRI)** | containerd `>= 1.7` / CRI-O `>= 1.28` | containerd `1.7.15` | \u2705 Certified |\r\n| **Base Operating System (Host)** | Ubuntu 22.04 LTS / RHEL 9.2+ | Ubuntu 22.04 LTS (Kernel 6.x) | \u2705 Homologated |\r\n| **Language Runtime (Production)** | Node.js `>= 20.x` and `<= 22.x` | `v22.12.0 LTS` | \u2705 Hermetic |\r\n\r\n### 2.2 Data Schema and Migration Compatibility (N-1 Support)\r\n\r\nTo enable Canary or Blue-Green continuous deployments without transaction loss:\r\n\r\n| Release Version | DB Schema Version | Compatible with $N-1$ Code | Schema Migration Status |\r\n| :---: | :---: | :---: | :--- |\r\n| **`v1.0.0`** (Current) | `SCHEMA-v1.0` | \u2705 Yes (supports `v0.9.x` code) | Non-destructive additive migration (no column renaming). |\r\n| **`v0.9.x`** | `SCHEMA-v0.9` | \u2705 Previous baseline | Fully compatible during Canary drain period. |\r\n\r\n### 2.3 Interoperability Between Architecture Components (`CMP-*`)\r\n\r\n| Dependent Component | Consumed Component | Minimum Compatible Versions | Binding Protocol / Contract |\r\n| :--- | :--- | :---: | :--- |\r\n| `CMP-NAME-001` (Gateway) | `CMP-NAME-002` (Backend) | `>= v1.0.0` | gRPC / Protobuf v3 (`contract_spec.proto`) |\r\n| `CMP-NAME-001` (Gateway) | Messaging Bus / Kafka | `>= 3.5.0` | Kafka v2 Protocol with TLS mTLS |\r\n\r\n### 2.4 Homologated Upgrade & Rollback Paths\r\n\r\n| Source Version | Direct Jump to `v1.0.0` | Intermediate Migration Required | Direct Rollback Procedure |\r\n| :---: | :---: | :---: | :---: |\r\n| **`v0.9.1`** | \u2705 Allowed | \u274C Not required | `kubectl rollout undo` without data loss. |\r\n| **`v0.9.0`** | \u2705 Allowed | \u274C Not required | `kubectl rollout undo` without data loss. |\r\n| **`< v0.9.0`** | \u274C Blocked | \u2705 Must upgrade to `v0.9.1` first | Requires restore from backup snapshot. |\r\n\r\n---\r\n\r\n## 3. CI/CD Architecture and Pipelines\r\n\r\n### 3.1 Hierarchical Branching Model and Integration Triggers\r\n\r\nFollowing the AI-SDLC 4-tier standard:\r\n\r\n```text\r\nTIER 1: main (Production)\r\n \u25B2\r\n \u2514\u2500\u2500 PR Release Gate (Manual Tech Lead / Release Manager Approval)\r\n \u2502\r\nTIER 2: release/v1.0.0 (Open Version Branch)\r\n \u25B2\r\n \u2514\u2500\u2500 PR Feature Gate (Lint + Tests + Quality Gate + SAST + SBOM)\r\n \u2502\r\nTIER 3: feat/CHG-001-* (Feature / Bug)\r\n```\r\n\r\n- **Pull Request Trigger**: Executes linters, full test battery, and governance verifications without deployment.\r\n- **Release Tag Trigger (`v*.*.*`)**: Executes the full hermetic build pipeline, image signing, and continuous deployment.\r\n\r\n### 3.2 CI/CD Pipeline Flowchart\r\n\r\n```mermaid\r\nflowchart LR\r\n A[\"Git Push / Tag v1.0.0\"] --> B[\"Hermetic Checkout\"]\r\n B --> C[\"Linters & Typecheck\"]\r\n C --> D[\"Vitest: Unit & BDD\"]\r\n D --> E[\"Quality Gate: CC & MI\"]\r\n E --> F[\"SAST & Secret Scan\"]\r\n F --> G[\"SBOM & License Gate\"]\r\n G --> H[\"Deterministic Build\"]\r\n H --> I[\"Cosign / SLSA Signing\"]\r\n I --> J[\"Push to OCI Registry\"]\r\n J --> K[\"Deploy to DMZ Enclave\"]\r\n```\r\n\r\n### 3.3 Release Gate Contracts and Thresholds\r\n\r\n| Quality Gate | Tool / Command | Required Threshold | Action on Non-Compliance |\r\n| :--- | :--- | :--- | :--- |\r\n| **Lint & Typecheck** | `pnpm typecheck` | Zero errors, zero `any` | **Immediate failure** |\r\n| **Automated Tests** | `pnpm test:all` | 100% passed, Coverage >= 85% | **Immediate failure** |\r\n| **Cyclomatic Complexity** | `aisdlc verify quality` | CC <= 10 per function | **Release blocked** |\r\n| **Maintainability Index** | `aisdlc verify quality` | MI >= 50.0 / 100 | **Release blocked** |\r\n| **360\u00B0 Traceability** | `aisdlc verify traceability` | 100% of requirements linked | **Release blocked** |\r\n| **OSS Licenses** | `aisdlc verify licenses` | Zero forbidden/viral licenses | **Release blocked** |\r\n| **Cryptographic Signature & SLSA** | `cosign verify-blob` / `gh attestation verify` | Valid signature and SLSA provenance from GitHub Actions OIDC | **Deployment rejected** |\r\n\r\n---\r\n\r\n## 4. Production Deployment Strategy and Procedure\r\n\r\n### 4.1 Infrastructure Prerequisites and Network Enclaves\r\n\r\n- **Target Enclave**: `SEC-ENC-DMZ-001` (Strict segmentation without direct uncontrolled outbound internet access).\r\n- **Enabled Network Ports**:\r\n - Port `8443/TCP`: Secure WebSocket ingestion with mutual TLS (mTLS) authentication.\r\n - Port `9090/TCP`: Prometheus metrics (internal management network only).\r\n- **Secrets and Certificate Management**:\r\n - Server TLS and client root CA certificates mounted via immutable secret at `/etc/pki/tls/`.\r\n - Embedding cryptographic keys in environment variables or images is strictly forbidden.\r\n\r\n### 4.2 Rollout Strategy\r\n\r\nA **Canary strategy with progressive telemetry metrics analysis** is utilized:\r\n1. 10% of traffic is routed to the new version for 15 minutes.\r\n2. If the 5xx error rate is `<= 0.01%` and p99 latency is `<= 50ms`, traffic is promoted to 100%.\r\n\r\n### 4.3 Step-by-Step Deployment Procedure\r\n\r\n1. **Step 1: Pre-deployment and State Snapshot**\r\n ```bash\r\n # Check cluster health and record baseline\r\n kubectl get pods -n production -l app=system\r\n kubectl exec -it system-db-0 -- /backup/create-snapshot.sh\r\n ```\r\n\r\n2. **Step 2: Deployment Manifest Application**\r\n ```bash\r\n kubectl apply -f deploy/production/canary-deployment.yaml\r\n kubectl rollout status deployment/system-service -n production --timeout=180s\r\n ```\r\n\r\n3. **Step 3: Health Verification and Smoke Tests**\r\n ```bash\r\n curl -f --cacert /etc/pki/tls/ca.crt https://127.0.0.1:8443/healthz\r\n curl -f --cacert /etc/pki/tls/ca.crt https://127.0.0.1:8443/readyz\r\n pnpm test:example\r\n ```\r\n\r\n### 4.4 Rollback Plan (Immediate Rollback)\r\n\r\n- **Objective Rollback Activation Criteria**:\r\n - mTLS handshake failure rate `> 1.0%`.\r\n - Ingestion p99 latency `> 100ms` for 2 continuous minutes.\r\n - Critical `CrashLoopBackOff` alert on more than 20% of instances.\r\n- **Rollback Execution Command**:\r\n ```bash\r\n kubectl rollout undo deployment/system-service -n production\r\n kubectl rollout status deployment/system-service -n production\r\n ```\r\n\r\n---\r\n\r\n## 5. Likely Errors Resolution and Troubleshooting (Runbooks)\r\n\r\nThis section documents the most frequent runtime and deployment failures along with diagnosis and immediate mitigation procedures.\r\n\r\n### 5.1 Frequent Incidents and Solutions Matrix\r\n\r\n#### Incident 1: Dependency Vertex Inconsistency or Drift (Build Failure)\r\n- **Symptom**: `pnpm install --frozen-lockfile` command fails in CI with error `ERR_PNPM_LOCKFILE_OUTDATED`.\r\n- **Root Cause**: `package.json` was modified without updating `pnpm-lock.yaml`.\r\n- **Diagnosis**:\r\n ```bash\r\n git diff HEAD^ package.json pnpm-lock.yaml\r\n ```\r\n- **Mitigation**:\r\n 1. On the feature branch, run `pnpm install` locally to regenerate the deterministic lockfile.\r\n 2. Verify no restricted-license dependencies were introduced via `pnpm verify:licenses`.\r\n 3. Commit both files together in an atomic commit.\r\n\r\n---\r\n\r\n#### Incident 2: mTLS Handshake Failure or Enclave Certificate Rejected\r\n- **Symptom**: Clients receive error `ERR_TLS_CERT_ALTNAME_INVALID` or connection closed with TLS alert `certificate_unknown (46)`.\r\n- **Root Cause**: Internal root CA mounted on server does not match the client certificate issuer CA, or certificate expired.\r\n- **Diagnosis**:\r\n ```bash\r\n openssl s_client -connect 127.0.0.1:8443 -CAfile /etc/pki/tls/ca.crt -cert /etc/pki/tls/client.crt -key /etc/pki/tls/client.key\r\n openssl x509 -in /etc/pki/tls/ca.crt -noout -dates -issuer -subject\r\n ```\r\n- **Mitigation**:\r\n 1. Verify expiration date of certificate mounted in cluster Secret.\r\n 2. If expired, rotate the certificate by injecting the new pair from HSM / Vault storage.\r\n 3. Orderly restart pods with `kubectl rollout restart deployment/system-service`.\r\n\r\n---\r\n\r\n#### Incident 3: Release Gate Rejection in CI/CD Due to Quality Metrics\r\n- **Symptom**: Pipeline aborts with verdict `Quality Gate REJECTED` (Cyclomatic Complexity > 10 or Maintainability < 50).\r\n- **Root Cause**: Introduction of complex nested logic (multiple `if/else`, extensive `switch`, or branching loops).\r\n- **Diagnosis**:\r\n ```bash\r\n pnpm verify:quality\r\n ```\r\n- **Mitigation**:\r\n 1. Inspect the violation report in `reports/QUALITY_GATE_REPORT.md` to identify the offending function.\r\n 2. Decompose function into cohesive private helper methods following the rule of maximum 40 lines per function.\r\n 3. Re-run `pnpm verify:quality` until green verdict is confirmed. Adding suppression comments (`// @ts-ignore`) is forbidden.\r\n\r\n---\r\n\r\n#### Incident 4: CrashLoopBackOff Due to Memory Leak or Connection Limit\r\n- **Symptom**: Pod is terminated with exit code `ExitCode: 137` (`OOMKilled`) after a load spike.\r\n- **Root Cause**: Undrained socket buffer accumulation during high-frequency bursts.\r\n- **Diagnosis**:\r\n ```bash\r\n kubectl describe pod system-service-xxx -n production | grep -i oom\r\n kubectl logs system-service-xxx -n production --previous\r\n ```\r\n- **Mitigation**:\r\n 1. Temporarily adjust memory limits in Kubernetes manifest (`resources.limits.memory`) if the load burst is legitimate.\r\n 2. Apply backpressure or discard expired packets in accordance with business rules (`BR-*`).\r\n 3. Run local benchmark with `pnpm test:all` to audit memory consumption.\r\n\r\n---\r\n\r\n### 5.2 Escalation Protocol and Critical Incident Management\r\n\r\n| Severity Level | Impact Criterion | Maximum Response Time | Roles Involved |\r\n| :--- | :--- | :---: | :--- |\r\n| **SEV-1 (Critical)** | Complete service outage or security breach in enclave. | 15 minutes | On-call SRE + Lead Architect + SecOps |\r\n| **SEV-2 (Major)** | Severe service degradation, massive retries without outage. | 1 hour | On-call SRE + Tech Lead |\r\n| **SEV-3 (Minor)** | Isolated node incident without global SLA impact. | 4 hours | Support Engineer / DevOps |\r\n\r\n---\r\n\r\n## 6. Revision History and Version Control\r\n\r\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\r\n| :--- | :--- | :--- | :--- | :--- |\r\n| **1.0.0** | 2026-09-15 | Operations & DevOps Team | Initial Production Manual generation | CHG-009 |\r\n";
3069
3091
  declare const STARTER_TEMPLATES_MANUALS_USER_MANUAL_TEMPLATE_MD = "---\r\nid: MAN-USER-001\r\ntype: user-manual\r\ntitle: \"User Manual: Application Name\"\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\napplies-to-version: \"v1.0.0\"\r\ntarget-audience:\r\n - ACT-ROLE-USER-001\r\n - ACT-OPERATOR-002\r\nallowed-roles:\r\n - ACT-ROLE-USER-001\r\n - ACT-OPERATOR-002\r\njourneys-covered:\r\n - JRN-JOURNEY-001\r\nuse-cases-covered:\r\n - UC-ACTION-001\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# MAN-USER-001: User Manual - Application Name\r\n\r\n## 1. System Purpose and Audience\r\n\r\nConcisely describes the software's purpose, the operational value it delivers to end users, and the general context in which it operates.\r\n\r\n- **Application / System**: `[System Name or Bounded Context]`\r\n- **Software Version**: `v1.0.0`\r\n- **Target Audience**: `[Functional roles and user profiles addressed]`\r\n\r\n---\r\n\r\n## 2. User Role Catalog and Permissions Matrix (RBAC)\r\n\r\nThis section formally defines the roles authorized to access and operate the application, as well as the privileges assigned to each.\r\n\r\n### 2.1 Authorized Role Catalog\r\n\r\n| Role Identifier | Role Name | Associated Actor | Description & Responsibility | Enclave / Access Level |\r\n| :--- | :--- | :--- | :--- | :--- |\r\n| **`ROLE_USER`** | Standard User | `ACT-ROLE-USER-001` | Data queries and nominal business flow execution. | Corporate Network / Web UI |\r\n| **`ROLE_OPERATOR`** | System Operator | `ACT-OPERATOR-002` | Streaming supervision, alert management, and command control. | DMZ Enclave / Operational Console |\r\n\r\n### 2.2 Access and Capabilities Matrix by Role\r\n\r\n| Application Capability / Module | `ROLE_USER` | `ROLE_OPERATOR` | Authentication Mode |\r\n| :--- | :---: | :---: | :--- |\r\n| Status Query and Dashboard Visualizations | \u2705 Allowed | \u2705 Allowed | Bearer Token (OIDC/JWT) |\r\n| Business Journey Execution (`JRN-JOURNEY-001`) | \u2705 Allowed | \u2705 Allowed | Bearer Token (OIDC/JWT) |\r\n| Real-Time Streaming and Operational Control | \u274C Denied | \u2705 Allowed | mTLS + Device X.509 Certificate |\r\n| Global Parameters Configuration & Connectivity | \u274C Denied | \u2705 Allowed | Administrator Credential |\r\n\r\n---\r\n\r\n## 3. Version and User Platform Compatibility Matrix\r\n\r\nThis section specifies cross-compatibility between the current application version and user environments, clients, and formats.\r\n\r\n### 3.1 Client-Server Compatibility (APIs and SDKs)\r\n\r\n| Application Version (Backend) | Compatible CLI Version | Compatible SDK Version | Compatibility Status | Migration Notes |\r\n| :---: | :---: | :---: | :---: | :--- |\r\n| **`v1.0.0`** (Current) | `>= v1.0.0` | `>= v1.0.0` | \u2705 Fully Supported | Active canonical version. |\r\n| **`v1.0.0`** (Current) | `v0.9.x` | `v0.9.x` | \u26A0\uFE0F Degraded Mode | Requires upgrade before next minor. |\r\n| **`v1.0.0`** (Current) | `< v0.9.0` | `< v0.9.0` | \u274C Incompatible / Deprecated | Legacy endpoints decommissioned. |\r\n\r\n### 3.2 Homologated Browsers and Client Platforms\r\n\r\n| Platform / Environment | Minimum Supported Versions | Support Level | Known Constraints |\r\n| :--- | :--- | :---: | :--- |\r\n| **Google Chrome / Chromium** | Version `>= 120` | Tier 1 (Official) | Optimal WebSockets and WebGL performance. |\r\n| **Mozilla Firefox** | Version `>= 115 ESR` | Tier 1 (Official) | Full client certificate support. |\r\n| **Safari / WebKit** | Version `>= 17.0` | Tier 2 (Functional) | Requires explicit mTLS enablement in macOS Keychain. |\r\n| **Terminal / CLI (Linux / macOS / Windows)** | Node.js `>= 18` or Bash `>= 5.0` | Tier 1 (Official) | Full support on PowerShell 7+ and bash. |\r\n\r\n### 3.3 Configuration Files and Data Formats Compatibility\r\n\r\n| Format / Artifact | Source Version Supported | Automatic Conversion | User Action Required |\r\n| :--- | :---: | :---: | :--- |\r\n| **`config.yaml`** | `v0.9.x` | \u2705 Yes | None. Application migrates deprecated keys on startup. |\r\n| **Export Profiles (`.json`)** | `v0.9.x` | \u2705 Yes | 100% backward compatible. |\r\n\r\n---\r\n\r\n## 4. Application Installation, Access, and Configuration\r\n\r\n### 4.1 Access Channels and Prerequisites\r\n\r\n- **Web Portal / UI**: Access URL (e.g., `https://app.system.internal`).\r\n- **Command Line (CLI)**: Executable binary or package (e.g., `npx system-cli` or `./system-client`).\r\n- **Supported Browsers or Platforms**: Chrome >= 120, Firefox >= 120, Linux/macOS/Windows terminal.\r\n\r\n### 4.2 Client Configuration and Environment Variables\r\n\r\nThe application allows parameterizing its behavior via environment variables or local configuration files:\r\n\r\n| Parameter / Variable | Type | Default Value | Required | Description |\r\n| :--- | :--- | :--- | :---: | :--- |\r\n| `API_ENDPOINT` | URL | `https://api.system.internal/v1` | Yes | Base backend API endpoint. |\r\n| `WS_STREAM_URL` | WSS URL | `wss://stream.system.internal/telemetry` | No | Real-time telemetry or notifications socket. |\r\n| `CLIENT_TIMEOUT_MS` | Integer | `5000` | No | Network response timeout in milliseconds. |\r\n| `AUTH_PROFILE` | String | `production` | No | Active authentication profile (`development`, `staging`, `production`). |\r\n\r\n### 4.3 Local Configuration File (`config.yaml` / `.env`)\r\n\r\nExample recommended configuration for operator workstations:\r\n\r\n```yaml\r\n# Client configuration file: config.yaml\r\nprofile: production\r\nnetwork:\r\n api_endpoint: \"https://api.system.internal/v1\"\r\n stream_url: \"wss://stream.system.internal/telemetry\"\r\n timeout_ms: 5000\r\n retry_attempts: 3\r\n\r\nsecurity:\r\n tls_verify: true\r\n client_cert_path: \"/etc/pki/client/operator.crt\"\r\n client_key_path: \"/etc/pki/client/operator.key\"\r\n\r\nui:\r\n theme: \"dark\"\r\n refresh_interval_sec: 1\r\n```\r\n\r\n---\r\n\r\n## 5. Step-by-Step Journey Execution Guide (`JRN-*`)\r\n\r\nEach subsection documents an end-to-end Journey, specifying authorized execution roles, starting conditions, and the step-by-step operating procedure.\r\n\r\n### 5.1 `JRN-JOURNEY-001`: User Journey Name\r\n\r\n- **Linked Use Case**: `UC-ACTION-001`\r\n- **Primary Actor**: `ACT-ROLE-USER-001`\r\n- **Authorized Roles**: `ROLE_USER`, `ROLE_OPERATOR`\r\n- **Required Execution Enclave**: Corporate Intranet or VPN access\r\n\r\n#### A. Preconditions\r\n1. User must have an active and authenticated session with their authorized role.\r\n2. The base entity or resource must be in `ACTIVE` state.\r\n\r\n#### B. Step-by-Step Procedure\r\n\r\n1. **Step 1: Operation Initiation**\r\n - **Action**: User navigates to the execution section or invokes the corresponding command:\r\n ```bash\r\n system-cli execute --journey JRN-JOURNEY-001 --input payload.json\r\n ```\r\n - **Required Input**: Resource identifier and validated parameters.\r\n - **Expected On-Screen Response**: System displays confirmation dialog with operation summary.\r\n\r\n2. **Step 2: Validation and Submission**\r\n - **Action**: User reviews parameters and confirms execution.\r\n - **System Behavior**: Client locally validates data schema and transmits signed request.\r\n\r\n3. **Step 3: Observable Outcome Verification**\r\n - **Success Outcome**: Console / interface displays success message `MSG-SUCCESS-001` with generated unique transaction ID.\r\n - **Final State**: Resource transitions to `PROCESSED` state.\r\n\r\n#### C. Alternative Flows and Exception Handling\r\n- **Unauthorized Access**: If an unauthorized role attempts to invoke the journey, the system blocks the action, outputs code `MSG-ERR-AUTH-403`, and records the access attempt in the audit trail.\r\n- **Connection Loss in Transit**: If connection is lost during step 2, client retries with exponential backoff up to 3 times before notifying user.\r\n\r\n---\r\n\r\n## 6. System Messages Catalog and Response Codes\r\n\r\nStructured matrix of key informational, warning, and error messages emitted by the application during its operational lifecycle:\r\n\r\n| Code | Severity | Literal Screen Message | Trigger / Context | Meaning for User | Recommended Corrective Action |\r\n| :--- | :--- | :--- | :--- | :--- | :--- |\r\n| **`MSG-SYS-100`** | `INFO` | `\"Connection established successfully with server\"` | Successful network handshake upon initializing session. | Application is online and ready to process commands. | None. Normal operation. |\r\n| **`MSG-SYS-200`** | `INFO` | `\"Operation completed successfully. Transaction ID: [TX-ID]\"` | Successful completion of a Journey or Use Case. | Transaction was persisted and acknowledged by backend. | Save `TX-ID` for tracking if required. |\r\n| **`MSG-WARN-301`** | `WARN` | `\"High link latency (>500ms). Degraded mode active\"` | Response metric exceeds real-time threshold. | Screen data may experience slight refresh delays. | Check network connection quality or bandwidth. |\r\n| **`MSG-WARN-302`** | `WARN` | `\"Session expiring in 5 minutes\"` | Authentication token approaching TTL expiry. | User will be logged out unless credential is refreshed. | Renew session by clicking alert or re-authenticating. |\r\n| **`MSG-ERR-401`** | `ERR-USER` | `\"Invalid credentials or expired token. Access denied\"` | Login authentication failure or expired token. | User identity could not be validated. | Re-enter credentials or request a new token. |\r\n| **`MSG-ERR-403`** | `ERR-USER` | `\"Unauthorized action for assigned role [ROLE]\"` | Attempted execution of Journey or command outside RBAC. | User role lacks permissions for this resource. | Contact administrator to request permission expansion. |\r\n| **`MSG-ERR-422`** | `ERR-USER` | `\"Invalid payload: field [FIELD] does not match schema\"` | Syntactic validation or business rule (`BR-*`) failure. | User-supplied data is invalid. | Correct indicated fields according to business rule. |\r\n| **`MSG-ERR-503`** | `ERR-SYS` | `\"Service temporarily unavailable. Retrying...\"` | Backend gateway unreachable or under scheduled maintenance. | Central server is not responding to requests. | Await automatic retries or check system status page. |\r\n\r\n---\r\n\r\n## 7. Frequently Asked Questions (FAQ) and Support\r\n\r\n- **What should I do if I lose connectivity while executing a Journey?** \r\n The application implements idempotency mechanisms. Once network connectivity is restored, verify resource status before retrying to prevent duplicate transactions.\r\n- **How do I request a user role change?** \r\n Contact the Security Administrator (`SecOps`) referencing your user ID and operational justification for the role change.\r\n\r\n---\r\n\r\n## 8. Revision History and Version Control\r\n\r\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\r\n| :--- | :--- | :--- | :--- | :--- |\r\n| **1.0.0** | 2026-09-15 | Documentation & Product Team | Initial User Manual generation | CHG-009 |\r\n";
@@ -3130,12 +3152,12 @@ declare function renderAntigravitySkillFile(skill: LifecycleSkillTemplate): stri
3130
3152
  declare function renderCursorSkillFile(skill: LifecycleSkillTemplate): string;
3131
3153
  declare function renderClaudeSkillFile(skill: LifecycleSkillTemplate): string;
3132
3154
  declare function renderCopilotSkillFile(skill: LifecycleSkillTemplate): string;
3133
- declare const STARTER_ANTIGRAVITY_RULES = "# Google Antigravity & Gemini CLI Rules - AI-SDLC Framework\n\nCanonical Reference: [`process/09_agent_protocols.md`](../../process/09_agent_protocols.md) and [`process/01_governance_and_roles.md`](../../process/01_governance_and_roles.md).\n\nThis file defines the operational rules and specialized role mappings for Google Antigravity and Gemini CLI-based agents within the AI-SDLC ecosystem.\n\n---\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\n\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**: No agent may auto-approve PRs or perform direct merges to protected branches (`main`, `release/*`). Only a human engineer may approve or merge.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**: When facing ambiguous requirements, formulate clarifying questions (`open-questions`). Never assume unspecified intentions.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**: Always consult `license-policy.yaml`. Dependencies with viral licenses (`GPL`/`AGPL`) or commercial paid licenses (`BSL`/`SSPL`) are strictly forbidden without authorization.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**: Validate inputs, sanitize data, protect PII according to `privacy-policy.yaml`, and add mitigation tests (`SEC-TEST-*`, `@privacy`). Disabling linters or suppressing typing errors is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**: Every derived artifact must cite upstream artifacts using canonical identifiers and their Unix LF-normalized SHA-256 cryptographic hashes.\n\n---\n\n## 2. Specialized Roles Mapping\n\n### 1. `agent-product-analyst` (Product Analyst / Scribe)\n- **Mission**: Capture new product intent via NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`) and define/refine the product model using ProductShape.\n- **Phase 0 (Greenfield Product Inception)**: When creating a new product from scratch (or when `specs/product/` has no baseline), run an iterative discovery interview of **up to 15 questions (or until the product scope is 100% clear and unambiguous)** covering: mission/problem, actors `ACT-*`, role/auth model, **target UI/interaction modality (Web UI, Desktop GUI, Console/TUI/CLI, Mobile, or API/SDK)**, **modern visual aesthetic & styling standard (Bootstrap 5-style clean responsive web layouts with cards/tables/badges, Fluent/modern desktop aesthetic with rounded corners/elevated panels, or colorized rich terminal console with ANSI palettes/status badges)**, master-data CRUD prerequisites, MVP capabilities `UC-*`, business rules `BR-*`, and priority quality goals `QR-*`; then draft `ARCH-INTRO-001` (`templates/architecture/introduction-and-goals.template.md`), and derive initial `ACT-*`, `UC-*`, `BR-*`, `FR-*`, and `QR-*` drafts.\n- **Input**: Business intent or natural language specification.\n- **Output**: Markdown artifacts with YAML frontmatter compliant with `schemas/architecture/introduction-and-goals.schema.json` (`ARCH-INTRO-*`) and `schemas/product/` (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`).\n- **Guardrails**:\n - **FORBIDDEN Library-Only MVP for Human Actors**: Whenever primary actors (`ACT-*`) are human users, the target UI modality (Web, Desktop, Console/CLI, or Mobile) MUST be explicitly defined at Inception, and the MVP baseline MUST include a runnable presentation interface matching that modality, authentication/session access (when multi-role), and CRUD flows for foundational master entities required to execute the core business use cases without manual database seeding.\n - `status` always starts in `draft`.\n - In `UC-*`, format section `1. Intent and Outcome` under the standard English structure: `As a <ACT-ID>... I want <action>... To <outcome>...`.\n - Mandatory Gherkin criteria with `@<ID> @automated @regression`.\n - Run `pnpm run verify:schemas` and `pnpm run verify:duplicates` before delivering the draft.\n\n### 2. `agent-threat-modeler` (Threat Modeler and Security Specialist)\n- **Mission**: Analyze use cases and proactively model adversaries, STRIDE attack vectors, and OWASP ASVS mitigations, both at product level and in the technical security feedback loop over architecture.\n- **Input**: Use cases `UC-*`, functional requirements `FR-*`, or architecture components (`CMP-*`, Mermaid diagrams, ADRs).\n- **Output**: Cybersecurity triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`) compliant with `schemas/security/`, followed by handoff to `agent-privacy-officer`.\n- **Guardrails**:\n - `status` always starts in `draft`.\n - Negative BDD attack and rejection scenarios tagged with `@security @mitigation`.\n - Assignment of Zero Trust enclaves `SEC-ENC-*`.\n\n### 3. `agent-privacy-officer` (Data Protection & Privacy-by-Design Specialist)\n- **Mission**: Receive handoff from `agent-threat-modeler` to model personal data assets (`DATA-ASSET-*`), GDPR Art. 30 processing activities (`PRIV-ROPA-*`), and LINDDUN / GDPR / ISO 27701 privacy requirements (`PRIV-REQ-*`), and audit PR diffs against `privacy-policy.yaml`.\n- **Output**: Privacy triad (`DATA-ASSET-*`, `PRIV-ROPA-*`, `PRIV-REQ-*`) in `specs/privacy/` compliant with `schemas/privacy/`, and `DPIA-*` requests when Art. 9 sensitive data is detected.\n- **Guardrails**:\n - `status` always starts in `draft`.\n - Every `PRIV-REQ-*` includes Gherkin scenarios tagged with `@<PRIV-REQ-ID> @privacy @gdpr @automated @regression`.\n - Run `pnpm run verify:privacy` to block PII in logs/prompts and enforce ROPA & retention/erasure policies.\n\n### 4. `agent-system-architect` (System Architect)\n- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4.\n- **Output**: Architecture components (`CMP-*`), Mermaid diagrams, and immutable `ADR-*` records compliant with `schemas/architecture/`.\n- **Guardrails**:\n - Every `CMP-*` must declare `satisfies-requirements` linking `FR-*`, `QR-*`, `SEC-REQ-*`, and `PRIV-REQ-*`, and structure modules following **Modular & Hexagonal Architecture (Ports & Adapters)** (Domain/Application Core + Inbound/Outbound Ports, enforcing the Dependency Rule).\n - **No Orphan Presentation Components (`CMP-WEB-*` / `CMP-UI-*` / `CMP-CLI-*`)**: Never leave a presentation driving adapter unmapped in `tasks.md` while scheduling only backend class-library tasks. Wave 0 (`CHG-001`) must bootstrap the runnable host shell for the agreed UI modality (Web, Desktop, or Console/CLI) when human actors exist, and every human-facing `CHG-*` must deliver its vertical slice end-to-end (Domain + Persistence + Agreed UI/CLI Adapter + E2E).\n - Emit a return handoff to `agent-threat-modeler` (chaining to `agent-privacy-officer`) in the technical security/privacy feedback loop when infrastructure or persistence decisions introduce new attack vectors or PII flows.\n\n### 5. `agent-qa-engineer` (QA Engineer and SDET)\n- **Mission**: Translate approved requirements (`FR-*`, `SEC-REQ-*`, `PRIV-REQ-*`, `QR-*`) into comprehensive FAILING (red) BDD/Gherkin, End-to-End (E2E), UI, and unit test suites, before `agent-developer` writes production code.\n- **Input**: Approved requirements from the `handoff.yaml` sidecar (`HOF-*`).\n- **Output**: Failing Gherkin, E2E, and UI test suites covering: nominal case, boundary cases, out-of-range cases, per-interactive-element tests (Happy Path, Sad Path, Boundary Values), and conditional categories (security, privacy, performance, idempotency, postconditions, interface contract).\n- **Guardrails**:\n - FORBIDDEN to include production code or anticipate implementations.\n - **Agreed Project Technology**: Always use the testing frameworks, E2E/UI runners, and technology stack agreed upon for the project (if any), without requiring the user to specify it in the prompt.\n - **Mandatory E2E & UI Testing**: Never forget or omit End-to-End (E2E) and User Interface (UI) tests.\n - **Per-Interactive-Element Coverage**: Create specific tests for every UI element the user can interact with, using external tools such as Playwright or FlatUI (or the agreed project testing technology), covering Happy Path, Sad Path, and Boundary Values for each one.\n - Every `FR-*` must have at least nominal + boundary + out-of-range scenarios; missing these blocks handoff to `agent-developer`.\n - Mandatory tags: `@<FR-ID> @automated @regression`.\n - Run `pnpm run verify:testing` before emitting handoff.\n\n### 6. `agent-developer` (Software Developer)\n- **Mission**: Implement atomic tasks from SDD specifications (`tasks.md`) with clean, strictly typed code and thorough tests.\n- **Directives**:\n - **Mandatory 4-Step Implementation Order**: (1) Define/refine Modular & Hexagonal Architecture (Ports & Adapters) module boundaries, (2) Define interfaces/ports for all inter-module interactions to avoid direct module coupling, (3) Implement components consuming/fulfilling those interfaces, (4) Write unit tests for every function covering Happy Path, Sad Path, Boundary Values, and Unexpected/Null/Empty values.\n - Respect the autonomy mode assigned in `tasks.md` (`AUTONOMOUS`, `HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`).\n - Make tests delivered by `agent-qa-engineer` pass green without altering them to accommodate code.\n - Respect `quality-policy.yaml` thresholds: CC $\\le 10$, Cognitive $\\le 15$, MI $\\ge 50$, LOC $\\le 40$.\n - Run pre-flight with auto-fix: `pnpm run check:fix` and full verification: `pnpm run verify:all`.\n - **Mandatory Regression Verification**: Never declare build, typecheck, or bug fixes complete without executing the relevant automated test suite (`pnpm test`, `dotnet test`) and confirming zero regressions.\n - **Global Styles Protection**: When touching or refactoring frontend views, verify that global stylesheet/asset imports remain intact and that layouts suffer no visual disruption.\n- **Skills-First Implementation Directive**: When authoring or refactoring code (especially frontend, UI, styling, accessibility, or framework-specific logic), proactively inspect and leverage available specialized agent skills (e.g., modern web guidance, accessibility a11y, DevTools, framework skills) to produce standard-compliant, modern implementations rather than guessing ad-hoc patterns.\n - Upon completing green implementation, suggest handoff to `agent-expert-user` for post-development functional validation prior to security and privacy audit.\n\n### 7. `agent-security-auditor` (Adversarial Code Auditor)\n- **Mission**: Rigorously examine Pull Requests for business logic vulnerabilities, injection vectors, secret leaks, and authorization flaws as part of the Pre-Merge Audit Triad.\n- **Directives**:\n - Analyze code diffs with an attacker mindset and run `pnpm run verify:security`.\n - Issue findings with CVSS v3.1 severity scoring and block any PR introducing CRITICAL or HIGH security risks.\n\n### 8. `agent-compliance-checker` (Open Source License Compliance Auditor)\n- **Mission**: Audit dependency manifests and ensure every direct and transitive third-party package complies with `license-policy.yaml` as part of the Pre-Merge Audit Triad.\n- **Directives**:\n - Verify SPDX identifiers via `pnpm run verify:licenses`, immediately blocking viral (`GPL`, `AGPL`) or unapproved commercial (`BSL`, `SSPL`) licenses.\n\n### 9. `agent-expert-user` (Expert User and Domain Evaluator)\n- **Mission**: Contrast design and specifications (design phase) and functionally validate finished software against `UC-*` and `FR-*` (post-development phase).\n- **Directives**:\n - Design mode (upstream): Adopt the primary actor's profile under stressful field conditions, applying bimodal discrimination (strict MVP core vs. roadmap suggestion backlog in `templates/product/user-design-feedback.template.md`). Reject as `[BLOCKING_DEFECT]` any library-only MVP proposal for human actors that fails to define or omits the runnable presentation layer (Web, Desktop, or Console/CLI), role access, or master-data CRUD flows.\n - Functional validation mode (downstream / pre-PR / post-development functional validation): Thoroughly contrast interface and actual CLI execution against `UC-*` and `FR-*` acceptance criteria before pre-merge security audit.\n - Emit handoff block suggesting `agent-code-reviewer` / `agent-security-auditor` / `agent-privacy-officer` if compliant, or return to `agent-developer` on functional drift.\n\n### 10. `agent-code-reviewer` (Technical and Architectural Code Reviewer)\n- **Mission**: Audit Pull Requests evaluating code cleanliness, adherence to SOLID, DRY, YAGNI principles, design patterns, and respect for complexity and maintainability thresholds (`quality-policy.yaml`), forming part of the Pre-Merge Audit Triad.\n- **Directives**:\n - Respect `quality-policy.yaml` thresholds: CC $\\le 10$, Cognitive $\\le 15$, MI $\\ge 50$, LOC $\\le 40$.\n - Detect improper coupling, code smells, magic numbers, ambiguous names, and encapsulation violations.\n - Flag premature abstractions and speculative code violating YAGNI.\n - Coordinate Pre-Merge Audit Triad with `agent-security-auditor`, `agent-privacy-officer`, and `agent-compliance-checker`.\n - Classify findings into: `[BLOCKING]` (quality violation or broken pattern), `[CLEAN_CODE_SUGGESTION]` (non-blocking improvement), and `[COMPLIANT]`.\n\n### 11. `agent-devops` (Automation and Infrastructure Engineer)\n- **Mission**: Maintain, evolve, and audit automated project infrastructure: CI/CD workflows, Docker containers, IaC manifests, and support scripts.\n- **Directives**:\n - Strict infrastructure domain: Operates exclusively in `.github/workflows/`, `Dockerfile*`, `docker-compose*.yml`, IaC manifests, and `scripts/`.\n - **NON-INVASION GUARDRAIL**: STRICTLY FORBIDDEN from modifying or refactoring application source code files (`src/`, `packages/*/src/`). Your responsibility is the pipeline and scaffolding, never application business logic.\n - Infrastructure dependency policy: Verify licenses of dependencies, base images, and third-party actions according to `license-policy.yaml`.\n - Gate preservation: Ensure pipeline optimizations preserve all existing deterministic Quality Gates intact.\n - **Cross-Workflow Audit**: When fixing any CI/CD or configuration defect detected in a PR, search all `.github/workflows/*.yml` for the same pattern (including release, post-merge, and publishing pipelines) before declaring the fix complete.\n - **Remote Verification**: Creating a PR (`gh pr create`) does not equal success; actively verify that remote checks pass (`gh pr checks`).\n\n### 12. `agent-auditor` (Transversal Quality and Improvement Auditor)\n- **Mission**: Polymorphically inspect deliverables from any specialist agent on demand, identifying structural weaknesses, overengineering, or blind spots, and proposing minimal solutions adhering strictly to YAGNI.\n- **Directives**: Constructive critique; classify findings into `[BLOCKING_DEFECT]`, `[SIMPLIFICATION]`, and `[ADVISORY]`; non-invasive (never edit files directly); always return handoff to the audited agent (max 1 return round).\n\n### 13. `agent-adversary` (Transversal Red Team and Chaos Adversary)\n- **Mission**: Actively attempt to break, bypass, or invalidate deliverables from any target specialist agent, providing concrete proofs-of-concept (PoC), counterexamples, and reproduction steps.\n- **Directives**: Expose failure modes across Product (logic traps), Architecture (SPOF/races), QA (mutation testing/false greens), Code (boundary/concurrency), and DevOps (pipeline escape); mandatory proof-of-break; non-invasive; always return handoff to the audited agent (max 1 return round).\n\n---\n\n## 3. Git 4-Tier Hierarchy and Commit Conventions\n- `task/<PARENT-ID>/<TSK-ID>-<slug>` $\\rightarrow$ `feat/<FEAT-ID>-<slug>` $\\rightarrow$ `release/vX.Y.Z` $\\rightarrow$ `main`.\n- Mandatory commit trailers injection:\n ```text\n Author-Type: agent\n AI-Model: gemini-1.5-pro / gemini-2.0-flash\n Task-ID: TSK-XXX\n Change-ID: CHG-XXX\n ```\n\n---\n\n## 4. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation Rule by Autonomy**:\n - \uD83D\uDFE2 **`AUTONOMOUS`** (or exclusive final supervision in PR/CI): **OMITTED**. Do not request or emit interactive handoff to avoid interrupting unattended execution.\n - \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit the Workflow Handoff block compliant with [`templates/workflow/agent-handoff.template.md`](../../templates/workflow/agent-handoff.template.md) and **STOP**.\n- **Block Contents**: Declare produced deliverables, recommend the next role in workflow (`agent-threat-modeler`, `agent-privacy-officer`, `agent-system-architect`, `agent-qa-engineer`, `agent-developer`, `agent-expert-user`, `agent-code-reviewer`, `agent-security-auditor`, `agent-compliance-checker`, `agent-devops`, `agent-auditor`, `agent-adversary`, etc.), provide suggested invocation prompt, and keep **the Human Action Window open at all times for the human user to take action** (review, edit by hand, pause/reroute, or delegate).\n";
3134
- declare const STARTER_CURSOR_CORE_RULES = "---\ndescription: Global canonical directives, 5 unbreakable commandments, and AI-SDLC pre-flight\nglobs: *\nalwaysApply: true\n---\n\n# Global AI-SDLC Rules (Core)\n\nCanonical Reference: [`process/09_agent_protocols.md`](process/09_agent_protocols.md) and [`process/01_governance_and_roles.md`](process/01_governance_and_roles.md).\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\nEvery agent operating in this repository must strictly observe the following guardrails:\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**: Do not approve PRs or execute direct merges to protected branches (`main`, `release/*`). Approval is exclusively reserved for human reviewers.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**: When facing ambiguity, formulate open questions (`open-questions`). Never assume undocumented requirements.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**: Always verify `license-policy.yaml`. Viral dependencies (GPL/AGPL) or commercial paid dependencies (BSL/SSPL) are strictly forbidden without explicit human approval.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**: Validate inputs, apply least privilege, protect PII according to `privacy-policy.yaml`, and accompany every change with security and privacy tests (`SEC-TEST-*`, `@privacy`). Suppressing linters or tests to force a green pipeline is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**: Link specifications using immutable identifiers and Unix LF-normalized SHA-256 hashes.\n\n## 2. Pre-Flight Verification Commands\nBefore finalizing changes or proposing commits:\n- Pre-flight with auto-fix: `pnpm run check:fix` (or `npx aisdlc check --fix`)\n- Full verification: `pnpm run verify:all` (or `npx aisdlc verify all`)\n- Unit tests: `pnpm test`\n- Strict typing: `pnpm run typecheck`\n\n## 3. Git 4-Tier Hierarchy\n- Tier 1: `main` (Production)\n- Tier 2: `release/vX.Y.Z` (Frozen release)\n- Tier 3: `feat/<FEAT-ID>-<slug>` / `bug/<BUG-ID>-<slug>` (Feature)\n- Tier 4: `task/<PARENT-ID>/<TSK-ID>-<slug>` (Atomic task)\n\n## 4. Specialized Roles Mapping\n| Role | Mission (summary) |\n| :--- | :--- |\n| `agent-product-analyst` | Phase 0 NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`, up to 15-question discovery interview defining UI modality & CRUD prerequisites) + ProductShape artifacts (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`); status starts `draft`. |\n| `agent-threat-modeler` | STRIDE/OWASP threat triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`); hands off to `agent-privacy-officer`. |\n| `agent-privacy-officer` | LINDDUN & GDPR/LOPDGDD privacy triad (`DATA-ASSET-*`, `PRIV-ROPA-*`, `PRIV-REQ-*`) + Pre-Merge `verify:privacy`. |\n| `agent-system-architect` | Modular arc42 + NAF v4 architecture (`CMP-*`, Mermaid diagrams, `ADR-*`). |\n| `agent-qa-engineer` | FAILING BDD/Gherkin, E2E, and UI suites (using agreed project tech; Happy Path, Sad Path & Boundary Values per interactive UI element) before `agent-developer` writes code. |\n| `agent-developer` | Atomic tasks from `tasks.md`; respects autonomy mode; runs `pnpm run check:fix` + `pnpm run verify:all`. |\n| `agent-security-auditor` | Adversarial PR security audit, SAST, secrets, and CVSS v3.1 evaluation. |\n| `agent-compliance-checker` | SPDX license compliance audit against `license-policy.yaml`. |\n| `agent-expert-user` | Bimodal MVP evaluation (design) and functional validation against `UC-*` and `FR-*` (pre-PR). |\n| `agent-code-reviewer` | PR audit (SOLID, DRY, YAGNI): `[BLOCKING]` / `[CLEAN_CODE_SUGGESTION]` / `[COMPLIANT]`. |\n| `agent-devops` | CI/CD, Docker, IaC only \u2014 **FORBIDDEN** to touch `src/` or `packages/*/src/`. |\n| `agent-auditor` | Transversal on-demand constructive auditor; identifies overengineering, blind spots & YAGNI simplifications; returns handoff to audited agent. |\n| `agent-adversary` | Transversal on-demand Red Team adversary; breaks deliverables with reproducible PoC & mutation tests; returns handoff to audited agent. |\n\n## 5. Task Autonomy Modes (`tasks.md`)\n- \uD83D\uDFE2 **`AUTONOMOUS`**: Low risk. Implement directly, omit handoff block.\n- \uD83D\uDFE1 **`HUMAN_REVIEW_PLAN`**: Medium risk. Emit Workflow Handoff block, wait for approval.\n- \uD83D\uDFE0 **`AMBIGUOUS`**: Blocked. Request human clarification.\n- \uD83D\uDD34 **`HIGH_RISK_MANUAL`**: Critical risk. Human-only execution.\n\n## 6. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation**:\n * \uD83D\uDFE2 **`AUTONOMOUS`** (or PR/CI supervision): **OMITTED**. Do not request or emit interactive handoff.\n * \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit Workflow Handoff block compliant with [`templates/workflow/agent-handoff.template.md`](templates/workflow/agent-handoff.template.md) and **STOP**.\n- **Content**: Declare completed deliverables, recommend next role(s), provide suggested invocation prompt, and **keep the Human Action Window open for the human user to take action** (review, edit by hand, pause/reroute, or delegate).\n";
3155
+ declare const STARTER_ANTIGRAVITY_RULES = "# Google Antigravity & Gemini CLI Rules - AI-SDLC Framework\n\nCanonical Reference: [`process/09_agent_protocols.md`](../../process/09_agent_protocols.md) and [`process/01_governance_and_roles.md`](../../process/01_governance_and_roles.md).\n\nThis file defines the operational rules and specialized role mappings for Google Antigravity and Gemini CLI-based agents within the AI-SDLC ecosystem.\n\n---\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\n\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**: No agent may auto-approve PRs or perform direct merges to protected branches (`main`, `release/*`). Only a human engineer may approve or merge.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**: When facing ambiguous requirements, formulate clarifying questions (`open-questions`). Never assume unspecified intentions.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**: Always consult `license-policy.yaml`. Dependencies with viral licenses (`GPL`/`AGPL`) or commercial paid licenses (`BSL`/`SSPL`) are strictly forbidden without authorization.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**: Validate inputs, sanitize data, protect PII according to `privacy-policy.yaml`, and add mitigation tests (`SEC-TEST-*`, `@privacy`). Disabling linters or suppressing typing errors is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**: Every derived artifact must cite upstream artifacts using canonical identifiers and their Unix LF-normalized SHA-256 cryptographic hashes.\n\n---\n\n## 2. Specialized Roles Mapping\n\n### 1. `agent-product-analyst` (Product Analyst / Scribe)\n- **Mission**: Capture new product intent via NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`) and define/refine the product model using ProductShape.\n- **Phase 0 (Greenfield Product Inception)**: When creating a new product from scratch (or when `specs/product/` has no baseline), run an iterative discovery interview of **up to 15 questions (or until the product scope is 100% clear and unambiguous)** covering: mission/problem, actors `ACT-*`, role/auth model, **target UI/interaction modality (Web UI, Desktop GUI, Console/TUI/CLI, Mobile, or API/SDK)**, **modern visual aesthetic & styling standard (Bootstrap 5-style clean responsive web layouts with cards/tables/badges, Fluent/modern desktop aesthetic with rounded corners/elevated panels, or colorized rich terminal console with ANSI palettes/status badges)**, master-data CRUD prerequisites, MVP capabilities `UC-*`, business rules `BR-*`, and priority quality goals `QR-*`; then draft `ARCH-INTRO-001` (`templates/architecture/introduction-and-goals.template.md`), and derive initial `ACT-*`, `UC-*`, `BR-*`, `FR-*`, and `QR-*` drafts.\n- **Input**: Business intent or natural language specification.\n- **Output**: Markdown artifacts with YAML frontmatter compliant with `schemas/architecture/introduction-and-goals.schema.json` (`ARCH-INTRO-*`) and `schemas/product/` (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`).\n- **Guardrails**:\n - **FORBIDDEN Library-Only MVP for Human Actors**: Whenever primary actors (`ACT-*`) are human users, the target UI modality (Web, Desktop, Console/CLI, or Mobile) MUST be explicitly defined at Inception, and the MVP baseline MUST include a runnable presentation interface matching that modality, authentication/session access (when multi-role), and CRUD flows for foundational master entities required to execute the core business use cases without manual database seeding.\n - `status` always starts in `draft`.\n - In `UC-*`, format section `1. Intent and Outcome` under the standard English structure: `As a <ACT-ID>... I want <action>... To <outcome>...`.\n - Mandatory Gherkin criteria with `@<ID> @automated @regression`.\n - Run `pnpm run verify:schemas` and `pnpm run verify:duplicates` before delivering the draft.\n\n### 2. `agent-threat-modeler` (Threat Modeler and Security Specialist)\n- **Mission**: Analyze use cases and proactively model adversaries, STRIDE attack vectors, and OWASP ASVS mitigations, both at product level and in the technical security feedback loop over architecture.\n- **Input**: Use cases `UC-*`, functional requirements `FR-*`, or architecture components (`CMP-*`, Mermaid diagrams, ADRs).\n- **Output**: Cybersecurity triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`) compliant with `schemas/security/`, followed by handoff to `agent-privacy-officer`.\n- **Guardrails**:\n - `status` always starts in `draft`.\n - Negative BDD attack and rejection scenarios tagged with `@security @mitigation`.\n - Assignment of Zero Trust enclaves `SEC-ENC-*`.\n\n### 3. `agent-privacy-officer` (Data Protection & Privacy-by-Design Specialist)\n- **Mission**: Receive handoff from `agent-threat-modeler` to model personal data assets (`DATA-ASSET-*`), GDPR Art. 30 processing activities (`PRIV-ROPA-*`), and LINDDUN / GDPR / ISO 27701 privacy requirements (`PRIV-REQ-*`), and audit PR diffs against `privacy-policy.yaml`.\n- **Output**: Privacy triad (`DATA-ASSET-*`, `PRIV-ROPA-*`, `PRIV-REQ-*`) in `specs/privacy/` compliant with `schemas/privacy/`, and `DPIA-*` requests when Art. 9 sensitive data is detected.\n- **Guardrails**:\n - `status` always starts in `draft`.\n - Every `PRIV-REQ-*` includes Gherkin scenarios tagged with `@<PRIV-REQ-ID> @privacy @gdpr @automated @regression`.\n - Run `pnpm run verify:privacy` to block PII in logs/prompts and enforce ROPA & retention/erasure policies.\n\n### 4. `agent-system-architect` (System Architect)\n- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4.\n- **Output**: Architecture components (`CMP-*`), Mermaid diagrams, and immutable `ADR-*` records compliant with `schemas/architecture/`.\n- **Guardrails**:\n - Every `CMP-*` must declare `satisfies-requirements` linking `FR-*`, `QR-*`, `SEC-REQ-*`, and `PRIV-REQ-*`, and structure modules following **Modular & Hexagonal Architecture (Ports & Adapters)** (Domain/Application Core + Inbound/Outbound Ports, enforcing the Dependency Rule).\n - **No Orphan Presentation Components (`CMP-WEB-*` / `CMP-UI-*` / `CMP-CLI-*`)**: Never leave a presentation driving adapter unmapped in `tasks.md` while scheduling only backend class-library tasks. Wave 0 (`CHG-001`) must bootstrap the runnable host shell for the agreed UI modality (Web, Desktop, or Console/CLI) when human actors exist, and every human-facing `CHG-*` must deliver its vertical slice end-to-end (Domain + Persistence + Agreed UI/CLI Adapter + E2E).\n - Emit a return handoff to `agent-threat-modeler` (chaining to `agent-privacy-officer`) in the technical security/privacy feedback loop when infrastructure or persistence decisions introduce new attack vectors or PII flows.\n\n### 5. `agent-qa-engineer` (QA Engineer and SDET)\n- **Mission**: Translate approved requirements (`FR-*`, `SEC-REQ-*`, `PRIV-REQ-*`, `QR-*`) into comprehensive FAILING (red) BDD/Gherkin, End-to-End (E2E), UI, and unit test suites, before `agent-developer` writes production code.\n- **Input**: Approved requirements from the `handoff.yaml` sidecar (`HOF-*`).\n- **Output**: Failing Gherkin, E2E, and UI test suites covering: nominal case, boundary cases, out-of-range cases, per-interactive-element tests (Happy Path, Sad Path, Boundary Values), and conditional categories (security, privacy, performance, idempotency, postconditions, interface contract).\n- **Guardrails**:\n - FORBIDDEN to include production code or anticipate implementations.\n - **Agreed Project Technology**: Always use the testing frameworks, E2E/UI runners, and technology stack agreed upon for the project (if any), without requiring the user to specify it in the prompt.\n - **Mandatory E2E & UI Testing**: Never forget or omit End-to-End (E2E) and User Interface (UI) tests.\n - **Per-Interactive-Element Coverage**: Create specific tests for every UI element the user can interact with, using external tools such as Playwright or FlatUI (or the agreed project testing technology), covering Happy Path, Sad Path, and Boundary Values for each one.\n - Every `FR-*` must have at least nominal + boundary + out-of-range scenarios; missing these blocks handoff to `agent-developer`.\n - Mandatory tags: `@<FR-ID> @automated @regression`.\n - Run `pnpm run verify:testing` before emitting handoff.\n\n### 6. `agent-developer` (Software Developer)\n- **Mission**: Implement atomic tasks from SDD specifications (`tasks.md`) with clean, strictly typed code and thorough tests.\n- **Directives**:\n - **Mandatory 4-Step Implementation Order**: (1) Define/refine Modular & Hexagonal Architecture (Ports & Adapters) module boundaries, (2) Define interfaces/ports for all inter-module interactions to avoid direct module coupling, (3) Implement components consuming/fulfilling those interfaces, (4) Write unit tests for every function covering Happy Path, Sad Path, Boundary Values, and Unexpected/Null/Empty values.\n - Respect the autonomy mode assigned in `tasks.md` (`AUTONOMOUS`, `HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`).\n - Make tests delivered by `agent-qa-engineer` pass green without altering them to accommodate code.\n - Respect `quality-policy.yaml` thresholds: CC $\\le 10$, Cognitive $\\le 15$, MI $\\ge 50$, LOC $\\le 40$.\n - Run pre-flight with auto-fix: `pnpm run check:fix` and full verification: `pnpm run verify:all`.\n - **Mandatory Regression Verification**: Never declare build, typecheck, or bug fixes complete without executing the relevant automated test suite (`pnpm test`, `dotnet test`) and confirming zero regressions.\n - **Global Styles Protection**: When touching or refactoring frontend views, verify that global stylesheet/asset imports remain intact and that layouts suffer no visual disruption.\n- **Skills-First Implementation Directive**: When authoring or refactoring code (especially frontend, UI, styling, accessibility, or framework-specific logic), proactively inspect and leverage available specialized agent skills (e.g., modern web guidance, accessibility a11y, DevTools, framework skills) to produce standard-compliant, modern implementations rather than guessing ad-hoc patterns.\n - Upon completing green implementation, suggest handoff to `agent-expert-user` for post-development functional validation prior to Checkpoint 2 (`agent-auditor` $\\parallel$ `agent-adversary` + `agent-privacy-officer`).\n\n### 7. `agent-expert-user` (Expert User and Domain Evaluator)\n- **Mission**: Contrast design and specifications (design phase) and functionally validate finished software against `UC-*` and `FR-*` (post-development phase).\n- **Directives**:\n - Design mode (upstream): Adopt the primary actor's profile under stressful field conditions, applying bimodal discrimination (strict MVP core vs. roadmap suggestion backlog in `templates/product/user-design-feedback.template.md`). Reject as `[BLOCKING_DEFECT]` any library-only MVP proposal for human actors that fails to define or omits the runnable presentation layer (Web, Desktop, or Console/CLI), role access, or master-data CRUD flows.\n - Functional validation mode (downstream / pre-PR / post-development functional validation): Thoroughly contrast interface and actual CLI execution against `UC-*` and `FR-*` acceptance criteria before Checkpoint 2 audit.\n - Emit handoff block suggesting Checkpoint 2 (`agent-auditor` $\\parallel$ `agent-adversary` + `agent-privacy-officer`) if compliant, or return to `agent-developer` on functional drift.\n\n### 8. `agent-devops` (Automation and Infrastructure Engineer)\n- **Mission**: Maintain, evolve, and audit automated project infrastructure: CI/CD workflows, Docker containers, IaC manifests, and support scripts.\n- **Directives**:\n - Strict infrastructure domain: Operates exclusively in `.github/workflows/`, `Dockerfile*`, `docker-compose*.yml`, IaC manifests, and `scripts/`.\n - **NON-INVASION GUARDRAIL**: STRICTLY FORBIDDEN from modifying or refactoring application source code files (`src/`, `packages/*/src/`). Your responsibility is the pipeline and scaffolding, never application business logic.\n - **Deployment & CI/CD Strategy Discovery**: Before scaffolding new pipelines or containers, read `ARCH-INTRO-001` / `ARCH-DEP-001` and clarify packaging/CD destination, CI platform, and release trigger policy with the Tech Lead.\n - Infrastructure dependency policy: Verify licenses of dependencies, base images, and third-party actions according to `license-policy.yaml`.\n - Gate preservation: Ensure pipeline optimizations preserve all existing deterministic Quality Gates intact.\n - **Cross-Workflow Audit**: When fixing any CI/CD or configuration defect detected in a PR, search all `.github/workflows/*.yml` for the same pattern (including release, post-merge, and publishing pipelines) before declaring the fix complete.\n - **Remote Verification**: Creating a PR (`gh pr create`) does not equal success; actively verify that remote checks pass (`gh pr checks`).\n\n### 9. `agent-auditor` (Transversal Quality and Improvement Auditor)\n- **Mission**: Polymorphically inspect deliverables from any specialist agent on demand, enforcing Clean Code, SOLID, DRY, Simplicity First (YAGNI), `quality-policy.yaml` AST thresholds, UI design standards, and `license-policy.yaml` SPDX compliance.\n- **Directives**: Constructive critique; block fake-wiring, unstyled interfaces, and manual `.feature` files; verify licenses via `pnpm run verify:licenses`; classify findings into `[BLOCKING_DEFECT]`, `[SIMPLIFICATION]`, and `[ADVISORY]`; non-invasive (never edit files directly); always return handoff to the audited agent (max 1 return round).\n\n### 10. `agent-adversary` (Transversal Red Team and Chaos Adversary)\n- **Mission**: Actively attempt to break, bypass, or invalidate deliverables from any target specialist agent, including Pre-Merge / Checkpoint 2 security diff audits with CVSS v3.1 scoring and concrete proofs-of-concept (PoC).\n- **Directives**: Expose failure modes across Product (logic traps), Architecture (SPOF/races), QA (mutation testing/false greens), Development & Pre-Merge Security (boundary/concurrency, SAST/secrets via `pnpm run verify:security`, CVSS v3.1 blocking CRITICAL/HIGH), and DevOps (pipeline escape); mandatory proof-of-break; non-invasive; always return handoff to the audited agent (max 1 return round).\n\n---\n\n## 3. Git 4-Tier Hierarchy and Commit Conventions\n- `task/<PARENT-ID>/<TSK-ID>-<slug>` $\\rightarrow$ `feat/<FEAT-ID>-<slug>` $\\rightarrow$ `release/vX.Y.Z` $\\rightarrow$ `main`.\n- Mandatory commit trailers injection:\n ```text\n Author-Type: agent\n AI-Model: gemini-1.5-pro / gemini-2.0-flash\n Task-ID: TSK-XXX\n Change-ID: CHG-XXX\n ```\n\n---\n\n## 4. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation Rule by Autonomy**:\n - \uD83D\uDFE2 **`AUTONOMOUS`** (or exclusive final supervision in PR/CI): **OMITTED**. Do not request or emit interactive handoff to avoid interrupting unattended execution.\n - \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit the Workflow Handoff block compliant with [`templates/workflow/agent-handoff.template.md`](../../templates/workflow/agent-handoff.template.md) and **STOP**.\n- **Block Contents**: Declare produced deliverables, recommend the next role in workflow (`agent-threat-modeler`, `agent-privacy-officer`, `agent-system-architect`, `agent-qa-engineer`, `agent-developer`, `agent-expert-user`, `agent-devops`, `agent-auditor`, `agent-adversary`, etc.), provide suggested invocation prompt, and keep **the Human Action Window open at all times for the human user to take action** (review, edit by hand, pause/reroute, or delegate).\n";
3156
+ declare const STARTER_CURSOR_CORE_RULES = "---\ndescription: Global canonical directives, 5 unbreakable commandments, and AI-SDLC pre-flight\nglobs: *\nalwaysApply: true\n---\n\n# Global AI-SDLC Rules (Core)\n\nCanonical Reference: [`process/09_agent_protocols.md`](process/09_agent_protocols.md) and [`process/01_governance_and_roles.md`](process/01_governance_and_roles.md).\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\nEvery agent operating in this repository must strictly observe the following guardrails:\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**: Do not approve PRs or execute direct merges to protected branches (`main`, `release/*`). Approval is exclusively reserved for human reviewers.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**: When facing ambiguity, formulate open questions (`open-questions`). Never assume undocumented requirements.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**: Always verify `license-policy.yaml`. Viral dependencies (GPL/AGPL) or commercial paid dependencies (BSL/SSPL) are strictly forbidden without explicit human approval.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**: Validate inputs, apply least privilege, protect PII according to `privacy-policy.yaml`, and accompany every change with security and privacy tests (`SEC-TEST-*`, `@privacy`). Suppressing linters or tests to force a green pipeline is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**: Link specifications using immutable identifiers and Unix LF-normalized SHA-256 hashes.\n\n## 2. Pre-Flight Verification Commands\nBefore finalizing changes or proposing commits:\n- Pre-flight with auto-fix: `pnpm run check:fix` (or `npx aisdlc check --fix`)\n- Full verification: `pnpm run verify:all` (or `npx aisdlc verify all`)\n- Unit tests: `pnpm test`\n- Strict typing: `pnpm run typecheck`\n\n## 3. Git 4-Tier Hierarchy\n- Tier 1: `main` (Production)\n- Tier 2: `release/vX.Y.Z` (Frozen release)\n- Tier 3: `feat/<FEAT-ID>-<slug>` / `bug/<BUG-ID>-<slug>` (Feature)\n- Tier 4: `task/<PARENT-ID>/<TSK-ID>-<slug>` (Atomic task)\n\n## 4. Specialized Roles Mapping\n| Role | Mission (summary) |\n| :--- | :--- |\n| `agent-product-analyst` | Phase 0 NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`, up to 15-question discovery interview defining UI modality & CRUD prerequisites) + ProductShape artifacts (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`); status starts `draft`. |\n| `agent-threat-modeler` | STRIDE/OWASP threat triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`); hands off to `agent-privacy-officer`. |\n| `agent-privacy-officer` | LINDDUN & GDPR/LOPDGDD privacy triad (`DATA-ASSET-*`, `PRIV-ROPA-*`, `PRIV-REQ-*`) + Pre-Merge `verify:privacy`. |\n| `agent-system-architect` | Modular arc42 + NAF v4 architecture (`CMP-*`, Mermaid diagrams, `ADR-*`). |\n| `agent-qa-engineer` | FAILING BDD/Gherkin, E2E, and UI suites (using agreed project tech; Happy Path, Sad Path & Boundary Values per interactive UI element) before `agent-developer` writes code. |\n| `agent-developer` | Atomic tasks from `tasks.md`; respects autonomy mode; runs `pnpm run check:fix` + `pnpm run verify:all`. |\n| `agent-expert-user` | Bimodal MVP evaluation (design) and functional validation against `UC-*` and `FR-*` (pre-PR). |\n| `agent-devops` | CI/CD, Docker, IaC only \u2014 clarifies deployment/CI strategy; **FORBIDDEN** to touch `src/` or `packages/*/src/`. |\n| `agent-auditor` | Transversal auditor: YAGNI, Clean Code/SOLID/AST thresholds, UI standards, SPDX licenses (`verify:licenses`); returns handoff to audited agent. |\n| `agent-adversary` | Transversal Red Team adversary: PoC breaks, mutation testing & Pre-Merge security diff audit (`verify:security`, CVSS v3.1); returns handoff to audited agent. |\n\n## 5. Task Autonomy Modes (`tasks.md`)\n- \uD83D\uDFE2 **`AUTONOMOUS`**: Low risk. Implement directly, omit handoff block.\n- \uD83D\uDFE1 **`HUMAN_REVIEW_PLAN`**: Medium risk. Emit Workflow Handoff block, wait for approval.\n- \uD83D\uDFE0 **`AMBIGUOUS`**: Blocked. Request human clarification.\n- \uD83D\uDD34 **`HIGH_RISK_MANUAL`**: Critical risk. Human-only execution.\n\n## 6. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation**:\n * \uD83D\uDFE2 **`AUTONOMOUS`** (or PR/CI supervision): **OMITTED**. Do not request or emit interactive handoff.\n * \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit Workflow Handoff block compliant with [`templates/workflow/agent-handoff.template.md`](templates/workflow/agent-handoff.template.md) and **STOP**.\n- **Content**: Declare completed deliverables, recommend next role(s), provide suggested invocation prompt, and **keep the Human Action Window open for the human user to take action** (review, edit by hand, pause/reroute, or delegate).\n";
3135
3157
  declare const STARTER_CURSOR_PRODUCT_RULES = "---\ndescription: Directives for SDD specifications editing, ProductShape artifacts, Cybersecurity, and Privacy\nglobs: specs/**, templates/**, product/**, security/**, privacy/**\nalwaysApply: false\n---\n\n# Product and SDD Specification Directives\n\nCanonical Reference: [`process/09_agent_protocols.md`](process/09_agent_protocols.md) and [`process/02_product_definition.md`](process/02_product_definition.md).\n\n## 1. Identifier Taxonomy and JSON Schemas\nEvery generated or modified artifact must follow canonical naming and satisfy its schema in `schemas/`:\n- Enterprise & Capability Vision (Phase 0): `ARCH-INTRO-[NUM3]` (`schemas/architecture/introduction-and-goals.schema.json`)\n- Product Actors: `ACT-[SUFFIX]` (`schemas/product/actor.schema.json`)\n- Use Cases: `UC-[SUFFIX]` (`schemas/product/use-case.schema.json`)\n- Functional Requirements: `FR-[SUFFIX]-[NUM3]` (`schemas/product/requirement.schema.json`)\n- Quality Requirements: `QR-[SUFFIX]` (`schemas/product/requirement.schema.json`)\n- Business Rules: `BR-[SUFFIX]` (`schemas/product/business-rule.schema.json`)\n- Threat Actors: `ACT-THREAT-[SUFFIX]` (`schemas/security/threat-actor.schema.json`)\n- Abuse Cases: `ABUSE-[SUFFIX]` (`schemas/security/abuse-case.schema.json`)\n- Security Requirements: `SEC-REQ-[SUFFIX]` (`schemas/security/security-req.schema.json`)\n- Data Assets: `DATA-ASSET-[SUFFIX]` (`schemas/privacy/data-asset.schema.json`)\n- Processing Activities (ROPA): `PRIV-ROPA-[SUFFIX]` (`schemas/privacy/privacy-ropa.schema.json`)\n- Privacy Requirements: `PRIV-REQ-[SUFFIX]` (`schemas/privacy/privacy-req.schema.json`)\n\n## 2. \"AI as Scribe\" Protocol Rules\n- **Phase 0 (New Product Inception)**: When starting a new product, conduct an iterative discovery interview of up to 15 questions (or until the product scope and target UI modality \u2014 Web, Desktop, Console/CLI, Mobile, or API/SDK \u2014 are completely clear), instantiate `ARCH-INTRO-001` (`naf-perspective: \"Enterprise & Capability\"`) in `draft`, and derive `ACT-*`, `UC-*`, `BR-*`, `FR-*`, and `QR-*` (including runnable UI/CLI requirements and master-entity CRUD prerequisites when human actors exist).\n- **Initial Status**: Every new artifact strictly starts with `status: draft`. Creating artifacts directly as `active` or `approved` is forbidden.\n- **Gherkin Acceptance Criteria**: In every `FR-*` requirement, include a ```gherkin block with tags `@<ID> @automated @regression` and at least one `Scenario Outline` with an `Examples` data table.\n- **Security & Privacy Mitigations**: Every `SEC-REQ-*` must include negative Gherkin tests (`@security @mitigation`) and every `PRIV-REQ-*` must include Gherkin privacy scenarios (`@privacy @gdpr`).\n- **Use Cases (User Story Structure)**: In every `UC-*`, the `1. Intent and Outcome` section must be written using the standard English structure: `As a <ACT-ID>... I want <action>... To <outcome>...`.\n- **Deterministic Validation**: Run `pnpm run verify:schemas`, `pnpm run verify:duplicates`, and `pnpm run verify:privacy` before presenting the draft to the human reviewer.\n";
3136
3158
  declare const STARTER_CURSOR_QUALITY_RULES = "---\ndescription: Directives for code quality, architecture, TDD, and complexity limits\nglobs: packages/**, src/**, scripts/**, tests/**\nalwaysApply: false\n---\n\n# Code Quality and Architecture Directives\n\nCanonical Reference: [`process/09_agent_protocols.md`](process/09_agent_protocols.md) and [`process/10_quality_management_and_release_gates.md`](process/10_quality_management_and_release_gates.md).\n\n## 1. Non-Negotiable Quality Thresholds (`quality-policy.yaml`)\n- **Cyclomatic Complexity (CC)**: $\\le 10$ per function (warning alert if $> 7$).\n- **Cognitive Complexity**: $\\le 15$ per function (warning if $> 10$).\n- **Maintainability Index (MI)**: $\\ge 50$ (target minimum $\\ge 65$).\n- **Function Length**: $\\le 40$ lines (warning if $> 30$).\n- If a function exceeds these limits, decompose logic into cohesive helper functions before completing the task.\n\n## 2. TDD Methodology, Modular & Hexagonal Architecture (Ports & Adapters) & Unit Testing\n- **Mandatory 4-Step Implementation Order**: (1) Define/refine Modular & Hexagonal Architecture (Ports & Adapters) module boundaries, (2) Define interfaces/ports for all inter-module interactions to avoid direct module coupling, (3) Implement components consuming/fulfilling those interfaces, (4) Write unit tests for every function covering Happy Path, Sad Path, Boundary Values, and Unexpected/Null/Empty values.\n- Apply Test-Driven Development: generate unit tests before or alongside component logic.\n- Tag tests linked to requirements with header comments citing the ID (`FR-*`, `SEC-REQ-*`, or `PRIV-REQ-*`) to enable reverse traceability.\n- Suppressing types (`any`), linter rules (`eslint-disable`), or unit tests to force pipeline passage is prohibited.\n- **Mandatory Regression Verification**: Never declare build, typecheck, or bug fixes complete without executing the relevant automated test suite (`pnpm test`, `dotnet test`) and confirming zero regressions.\n- **Global Styles Protection**: When touching or refactoring frontend views, verify that global stylesheet/asset imports remain intact and that layouts suffer no visual disruption.\n- **Skills-First Implementation Directive**: When authoring or refactoring code (especially frontend, UI, styling, accessibility, or framework-specific logic), proactively inspect and leverage available specialized agent skills (e.g., modern web guidance, accessibility a11y, DevTools, framework skills) to produce standard-compliant, modern implementations rather than guessing ad-hoc patterns.\n\n## 3. Open Source License Policy (`license-policy.yaml`)\n- Before adding any dependency to `package.json`, verify its SPDX identifier.\n- Only permissive dependencies are allowed (`MIT`, `Apache-2.0`, `BSD-2/3-Clause`, `ISC`).\n- Viral licenses (`GPL`, `AGPL`) or commercial licenses without approval (`BSL`, `SSPL`) are prohibited.\n\n## 4. Structured Output `--json`\n- Any extension to CLI commands must preserve compatibility with the `--json` flag and suppress ANSI escape codes when this flag is present.\n";
3137
- declare const STARTER_CLAUDE_RULES = "# Claude Code Instructions - AI-SDLC Monorepo\n\nCanonical Reference: [`process/09_agent_protocols.md`](process/09_agent_protocols.md) and [`process/01_governance_and_roles.md`](process/01_governance_and_roles.md).\n\nThis repository implements the **AI-SDLC** framework (Spec-Driven Development, deterministic quality governance, Privacy-by-Design, and OSS license compliance for human-agent collaboration).\n\n---\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\n\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**: Never approve PRs or merge directly to `main` or protected branches. Approval is exclusively a human prerogative.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**: When facing ambiguous requirements, formulate open questions (`open-questions`). Never assume undocumented behaviors.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**: Always validate the SPDX identifier against `license-policy.yaml`. Viral libraries (`GPL`/`AGPL`) or paid commercial libraries (`BSL`/`SSPL`) are strictly forbidden without formal human approval.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**: Validate inputs, sanitize data, protect PII according to `privacy-policy.yaml`, and include mitigation tests (`SEC-TEST-*`, `@privacy`). Disabling linters or suppressing typing errors (`any`, `@ts-ignore`) is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**: Every spec or sidecar must cite immutable identifiers and Unix LF-normalized SHA-256 digests.\n\n---\n\n## 2. Essential Execution and Pre-Flight Commands\n\n```bash\n# 1. Pre-flight with deterministic auto-fix (Gherkin & SHA-256 digests)\npnpm run check:fix\n\n# 2. Complete verification across all Quality Gates (Quality, RTM, Governance, Testing, Licenses, PDaC, Schemas, Duplicates, Security, Privacy)\npnpm run verify:all\n\n# 3. Complete automated test suite (Vitest)\npnpm test\n\n# 4. Strict TypeScript typechecking\npnpm run typecheck\n\n# 5. Scaffolding for a new SDD change\npnpm run change:new <name> --id <chg-id>\n\n# 6. Canonical integration of a completed SDD change\nnpx tsx packages/cli/src/index.ts sdd integrate --change <chg-id>\n```\n\n---\n\n## 3. Specialized Roles Mapping\n\n### 1. `agent-product-analyst` (Product Analyst / Scribe)\n- **Mission**: Capture new product intent via NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`) and define/refine the product model using ProductShape.\n- **Phase 0 (Greenfield Product Inception)**: When creating a new product from scratch (or when `specs/product/` has no baseline), run an iterative discovery interview of **up to 15 questions (or until the product scope is 100% clear and unambiguous)** covering: mission/problem, actors `ACT-*`, role/auth model, **target UI/interaction modality (Web UI, Desktop GUI, Console/TUI/CLI, Mobile, or API/SDK)**, **modern visual aesthetic & styling standard (Bootstrap 5-style clean responsive web layouts with cards/tables/badges, Fluent/modern desktop aesthetic with rounded corners/elevated panels, or colorized rich terminal console with ANSI palettes/status badges)**, master-data CRUD prerequisites, MVP capabilities `UC-*`, business rules `BR-*`, and priority quality goals `QR-*`; then draft `ARCH-INTRO-001` (`templates/architecture/introduction-and-goals.template.md`), and derive initial `ACT-*`, `UC-*`, `BR-*`, `FR-*`, and `QR-*` drafts.\n- **Input**: Business intent or natural language specification.\n- **Output**: Markdown artifacts with YAML frontmatter compliant with `schemas/architecture/introduction-and-goals.schema.json` (`ARCH-INTRO-*`) and `schemas/product/` (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`).\n- **Guardrails**: `status` always starts in `draft`. Library-only MVPs without the agreed runnable UI/CLI entry point and master-data CRUDs for human actors are forbidden. Mandatory Gherkin criteria with `@<ID> @automated @regression`.\n\n### 2. `agent-threat-modeler` (Threat Modeler and Security Specialist)\n- **Mission**: Analyze use cases and proactively model adversaries, STRIDE attack vectors, and OWASP ASVS mitigations, both at product level and in the technical security feedback loop over architecture, handing off to `agent-privacy-officer`.\n- **Output**: Cybersecurity triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`) compliant with `schemas/security/`.\n\n### 3. `agent-privacy-officer` (Data Protection & Privacy-by-Design Specialist)\n- **Mission**: Receive handoff from `agent-threat-modeler` to model personal data assets (`DATA-ASSET-*`), GDPR Art. 30 records of processing (`PRIV-ROPA-*`), and LINDDUN / GDPR / ISO 27701 privacy requirements (`PRIV-REQ-*`), and audit code diffs against `privacy-policy.yaml`.\n- **Directives**: Run `pnpm run verify:privacy`, enforce PII masking in logs/LLM prompts, and trigger `DPIA-*` requests on Art. 9 sensitive data.\n\n### 4. `agent-system-architect` (System Architect)\n- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4 (`CMP-*`, Mermaid diagrams, `ADR-*`).\n- **Guardrails**: Declare `satisfies-requirements` on every `CMP-*` (including `PRIV-REQ-*`), structure components following **Modular & Hexagonal Architecture (Ports & Adapters)** (Domain/Application Core + Inbound/Outbound Ports), instantiate mandatory building block `CMP-OBSERVABILITY` (Level 2/3) alongside Section 8 and an ADR for runtime telemetry, and trigger the technical security/privacy feedback loop toward `agent-threat-modeler` \u2794 `agent-privacy-officer` when infrastructure decisions introduce new attack vectors or PII flows.\n\n### 5. `agent-qa-engineer` (QA Engineer and SDET)\n- **Mission**: Translate approved requirements (`FR-*`, `SEC-REQ-*`, `PRIV-REQ-*`, `QR-*`) into comprehensive FAILING (red) BDD/Gherkin, End-to-End (E2E), UI, and unit test suites, before `agent-developer` writes production code.\n- **Guardrails**: Always use the agreed project technology/testing stack (if any). Never omit End-to-End (E2E) and UI tests. Create specific tests for every interactive UI element using external tools such as Playwright or FlatUI (or the agreed project testing technology), covering Happy Path, Sad Path, and Boundary Values. FORBIDDEN to include production code. Mandatory tags: `@<FR-ID> @automated @regression`.\n\n### 6. `agent-developer` (Software Developer)\n- **Mission**: Implement atomic tasks from SDD specifications (`tasks.md`) with clean, strictly typed code and thorough tests.\n- **Directives**: Execute the mandatory 4-step order: (1) Modular & Hexagonal Architecture (Ports & Adapters) definition/redefinition, (2) Inter-module interfaces first, (3) Component implementation, (4) Per-function unit tests (Happy Path, Sad Path, Boundary Values, Unexpected/Null/Empty values). Respect the autonomy mode. Make tests delivered by `agent-qa-engineer` pass green. Run `pnpm run check:fix` and `pnpm run verify:all`. Enforce Mandatory Regression Verification (`pnpm test`) with zero regressions before declaring completion, and enforce Global Styles Protection on frontend views.\n\n### 7. `agent-security-auditor` (Adversarial Code Auditor)\n- **Mission**: Examine Pull Requests for business logic vulnerabilities, injection vectors, secret leaks, and authorization flaws as part of the Pre-Merge Audit Triad.\n- **Directives**: Run `pnpm run verify:security`, evaluate CVSS v3.1 severity, and block CRITICAL/HIGH risks.\n\n### 8. `agent-compliance-checker` (Open Source License Compliance Auditor)\n- **Mission**: Audit dependency manifests against `license-policy.yaml` as part of the Pre-Merge Audit Triad.\n- **Directives**: Run `pnpm run verify:licenses`, blocking viral (`GPL`, `AGPL`) or unapproved commercial (`BSL`, `SSPL`) packages.\n\n### 9. `agent-expert-user` (Expert User and Domain Evaluator)\n- **Mission**: Contrast design and specifications (design phase) and functionally validate finished software against `UC-*` and `FR-*` (post-development functional validation phase).\n\n### 10. `agent-code-reviewer` (Technical and Architectural Code Reviewer)\n- **Mission**: Audit Pull Requests evaluating code cleanliness, adherence to SOLID, DRY, YAGNI principles, and respect for `quality-policy.yaml` thresholds, forming part of the Pre-Merge Audit Triad.\n- **Findings classification**: `[BLOCKING]`, `[CLEAN_CODE_SUGGESTION]`, `[COMPLIANT]`.\n\n### 11. `agent-devops` (Automation and Infrastructure Engineer)\n- **Mission**: Maintain, evolve, and audit automated project infrastructure: CI/CD workflows, Docker containers, IaC manifests, and support scripts.\n- **NON-INVASION GUARDRAIL**: STRICTLY FORBIDDEN from modifying application source code (`src/`, `packages/*/src/`).\n\n### 12. `agent-auditor` (Transversal Quality and Improvement Auditor)\n- **Mission**: Polymorphically inspect deliverables from any specialist agent on demand, identifying structural weaknesses, overengineering, or blind spots, and proposing minimal solutions adhering strictly to YAGNI.\n- **Directives**: Constructive critique; classify findings into `[BLOCKING_DEFECT]`, `[SIMPLIFICATION]`, and `[ADVISORY]`; non-invasive (never edit files directly); always return handoff to the audited agent (max 1 return round).\n\n### 13. `agent-adversary` (Transversal Red Team and Chaos Adversary)\n- **Mission**: Actively attempt to break, bypass, or invalidate deliverables from any target specialist agent, providing concrete proofs-of-concept (PoC), counterexamples, and reproduction steps.\n- **Directives**: Expose failure modes across Product (logic traps), Architecture (SPOF/races), QA (mutation testing/false greens), Code (boundary/concurrency), and DevOps (pipeline escape); mandatory proof-of-break; non-invasive; always return handoff to the audited agent (max 1 return round).\n\n---\n\n## 4. Task Autonomy Modes (`tasks.md`)\n\n- \uD83D\uDFE2 **`AUTONOMOUS`**: Low risk, isolated task. Implement code and tests directly. Omit interactive handoff block.\n- \uD83D\uDFE1 **`HUMAN_REVIEW_PLAN`**: Medium risk. Design detailed plan, emit Workflow Handoff block, and wait for human confirmation before coding.\n- \uD83D\uDFE0 **`AMBIGUOUS`**: Incomplete requirements. Blocked: request human clarification.\n- \uD83D\uDD34 **`HIGH_RISK_MANUAL`**: Critical risk (migrations, cryptography). Direct manual execution by humans only.\n\n---\n\n## 5. Git Workflow and Commit Rules with Trailers\n\n### 4-Tier Hierarchy\n1. **Tier 1 (`main`)**: Absolute stability and production readiness.\n2. **Tier 2 (`release/vX.Y.Z`)**: Release stabilization.\n3. **Tier 3 (`feat/<FEAT-ID>-<slug>` or `bug/<BUG-ID>-<slug>`)**: SDD delivery increment.\n4. **Tier 4 (`task/<PARENT-ID>/<TSK-ID>-<slug>`)**: Atomic implementation task.\n\n### Commit Format (Conventional Commits + Git Trailers)\n```text\nfeat(scope): concise imperative description (#issue)\n\nBody explaining the motivation and technical justification of the change.\n\nAuthor-Type: agent\nAI-Model: claude-3-7-sonnet\nTask-ID: TSK-001\nChange-ID: CHG-026-AGENT-NATIVE-CONFIGS\n```\n\n---\n\n## 6. Non-Negotiable Quality Thresholds (`quality-policy.yaml`)\n- **Cyclomatic Complexity (CC)**: $\\le 10$\n- **Cognitive Complexity**: $\\le 15$\n- **Maintainability Index (MI)**: $\\ge 50$\n- **Lines per Function**: $\\le 40$\n- Deterministic CLI output: every `verify` command supports `--json` without ANSI escape codes.\n\n---\n\n## 7. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation**:\n - \uD83D\uDFE2 **`AUTONOMOUS`** (or PR/CI final supervision): **OMITTED**. Uninterrupted continuous execution.\n - \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit Workflow Handoff block ([`templates/workflow/agent-handoff.template.md`](templates/workflow/agent-handoff.template.md)) and **STOP**.\n- **Content**: Completed deliverables, suggested next role(s), copy-paste ready invocation prompt, and **an open Human Action Window for the user to take action** (review, edit by hand, pause/reroute, or delegate).\n";
3138
- declare const STARTER_COPILOT_RULES = "<!--\n AI-SDLC: Canonical Instructions for GitHub Copilot (Chat & Workspace)\n Canonical Reference: process/09_agent_protocols.md and process/01_governance_and_roles.md\n-->\n\n# GitHub Copilot Instructions - AI-SDLC Framework\n\nYou operate as an assistant agent in the **AI-SDLC** repository. You are not a simple text auto-completer: you are a specialized technical worker subject to normative directives, deterministic autonomy boundaries, and strict traceability.\n\n---\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\n\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**:\n - Never execute PR approvals or direct merges to stable branches (`main`, `release/*`). Approval is an exclusive human prerogative.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**:\n - If a requirement is ambiguous or incomplete, formulate open questions (`open-questions`) to the human user. Guessing undocumented intentions is forbidden.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**:\n - Before suggesting or adding dependencies to manifests (`package.json`, etc.), validate their SPDX identifier against `license-policy.yaml`. Adding viral (`GPL`, `AGPL`) or commercial paid (`BSL`, `SSPL`) licenses without human authorization is prohibited.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**:\n - All code must enforce least privilege, sanitize external inputs, protect PII according to `privacy-policy.yaml`, and include mitigation tests (`SEC-TEST-*`, `@privacy`). Suppressing types (`any`), linters, or tests to force a green pipeline is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**:\n - Every specification, design, or sidecar must reference canonical identifiers and their Unix LF-normalized SHA-256 digests.\n\n---\n\n## 2. Git 4-Tier Branch Hierarchy\n\nWhen proposing or creating branches, respect the strict hierarchical structure:\n- **Tier 1**: `main` (Protected production branch with maximum stability).\n- **Tier 2**: `release/vX.Y.Z` (Release consolidation and scope freeze branch).\n- **Tier 3**: `feat/<FEAT-ID>-<slug>` or `bug/<BUG-ID>-<slug>` (SDD increment or feature branch).\n- **Tier 4**: `task/<PARENT-ID>/<TSK-ID>-<slug>` (Atomic development task branch).\n\n---\n\n## 3. Pre-Flight Commands and Quality Gates\n\nBefore concluding any intervention or suggesting a commit:\n- **Unified pre-flight with auto-fix**: `pnpm run check:fix` (or `npx aisdlc check --fix`).\n- **Complete Quality Gates verification**: `pnpm run verify:all` (or `npx aisdlc verify all`).\n- **Unit test suite**: `pnpm test`.\n- **Strict typing**: `pnpm run typecheck`.\n\nNon-Negotiable Quality Thresholds (`quality-policy.yaml`):\n- Cyclomatic Complexity (CC) $\\le 10$.\n- Cognitive Complexity $\\le 15$.\n- Maintainability Index (MI) $\\ge 50$.\n- Maximum lines per function $\\le 40$.\n\n---\n\n## 4. Task Autonomy Modes (`tasks.md`)\n\n- \uD83D\uDFE2 **`AUTONOMOUS`**: Low risk, isolated task. Implement code and tests directly. Omit interactive handoff block.\n- \uD83D\uDFE1 **`HUMAN_REVIEW_PLAN`**: Medium risk. Design detailed plan, emit Workflow Handoff block, and wait for human confirmation before coding.\n- \uD83D\uDFE0 **`AMBIGUOUS`**: Incomplete requirements. Blocked: request human clarification.\n- \uD83D\uDD34 **`HIGH_RISK_MANUAL`**: Critical risk (migrations, cryptography). Direct manual execution by humans only.\n\n---\n\n## 5. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation**:\n * \uD83D\uDFE2 **`AUTONOMOUS` Mode** (or PR/CI final supervision): **OMITTED**. Do not interrupt unattended execution.\n * \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit Workflow Handoff block compliant with [`templates/workflow/agent-handoff.template.md`](../templates/workflow/agent-handoff.template.md) and **STOP**.\n- **Components**: Declare completed deliverables, recommend next roles (`agent-threat-modeler`, `agent-privacy-officer`, `agent-system-architect`, `agent-developer`, `agent-security-auditor`), provide suggested invocation prompt, and **keep the Human Action Window open at all times for the user to take action** (review, edit by hand, pause/reroute, or delegate).\n\n---\n\n## 6. Specialized Roles Mapping\n\n| Role | Mission (summary) |\n| :--- | :--- |\n| `agent-product-analyst` | Phase 0 NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`, up to 15-question discovery interview defining UI modality & CRUD prerequisites) + ProductShape artifacts (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`); `status` starts `draft`. |\n| `agent-threat-modeler` | STRIDE/OWASP threat triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`); hands off to `agent-privacy-officer`. |\n| `agent-privacy-officer` | LINDDUN & GDPR/LOPDGDD privacy triad (`DATA-ASSET-*`, `PRIV-ROPA-*`, `PRIV-REQ-*`) + Pre-Merge `verify:privacy`. |\n| `agent-system-architect` | Modular arc42 + NAF v4 architecture (`CMP-*`, Mermaid diagrams, `ADR-*`). |\n| `agent-qa-engineer` | FAILING BDD/Gherkin, E2E, and UI suites (using agreed project tech; Happy Path, Sad Path & Boundary Values per interactive UI element) before `agent-developer` writes production code. |\n| `agent-developer` | Atomic tasks from `tasks.md`; autonomy mode must be respected; runs `pnpm run check:fix` + `pnpm run verify:all`. |\n| `agent-security-auditor` | Adversarial PR security audit, SAST, secrets, and CVSS v3.1 evaluation. |\n| `agent-compliance-checker` | SPDX license compliance audit against `license-policy.yaml`. |\n| `agent-expert-user` | Bimodal MVP evaluation (design) and functional validation against `UC-*` and `FR-*` (pre-PR). |\n| `agent-code-reviewer` | PR audit (SOLID, DRY, YAGNI): `[BLOCKING]` / `[CLEAN_CODE_SUGGESTION]` / `[COMPLIANT]`. |\n| `agent-devops` | CI/CD, Docker, IaC only \u2014 **FORBIDDEN** to touch `src/` or `packages/*/src/`. |\n| `agent-auditor` | Transversal on-demand constructive auditor; identifies overengineering, blind spots & YAGNI simplifications; returns handoff to audited agent. |\n| `agent-adversary` | Transversal on-demand Red Team adversary; breaks deliverables with reproducible PoC & mutation tests; returns handoff to audited agent. |\n\n---\n\n## 7. Canonical Reference\nTo consult full protocols, specialized prompts, and interface contracts:\n- [`process/09_agent_protocols.md`](../process/09_agent_protocols.md)\n- [`process/01_governance_and_roles.md`](../process/01_governance_and_roles.md)\n";
3159
+ declare const STARTER_CLAUDE_RULES = "# Claude Code Instructions - AI-SDLC Monorepo\n\nCanonical Reference: [`process/09_agent_protocols.md`](process/09_agent_protocols.md) and [`process/01_governance_and_roles.md`](process/01_governance_and_roles.md).\n\nThis repository implements the **AI-SDLC** framework (Spec-Driven Development, deterministic quality governance, Privacy-by-Design, and OSS license compliance for human-agent collaboration).\n\n---\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\n\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**: Never approve PRs or merge directly to `main` or protected branches. Approval is exclusively a human prerogative.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**: When facing ambiguous requirements, formulate open questions (`open-questions`). Never assume undocumented behaviors.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**: Always validate the SPDX identifier against `license-policy.yaml`. Viral libraries (`GPL`/`AGPL`) or paid commercial libraries (`BSL`/`SSPL`) are strictly forbidden without formal human approval.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**: Validate inputs, sanitize data, protect PII according to `privacy-policy.yaml`, and include mitigation tests (`SEC-TEST-*`, `@privacy`). Disabling linters or suppressing typing errors (`any`, `@ts-ignore`) is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**: Every spec or sidecar must cite immutable identifiers and Unix LF-normalized SHA-256 digests.\n\n---\n\n## 2. Essential Execution and Pre-Flight Commands\n\n```bash\n# 1. Pre-flight with deterministic auto-fix (Gherkin & SHA-256 digests)\npnpm run check:fix\n\n# 2. Complete verification across all Quality Gates (Quality, RTM, Governance, Testing, Licenses, PDaC, Schemas, Duplicates, Security, Privacy)\npnpm run verify:all\n\n# 3. Complete automated test suite (Vitest)\npnpm test\n\n# 4. Strict TypeScript typechecking\npnpm run typecheck\n\n# 5. Scaffolding for a new SDD change\npnpm run change:new <name> --id <chg-id>\n\n# 6. Canonical integration of a completed SDD change\nnpx tsx packages/cli/src/index.ts sdd integrate --change <chg-id>\n```\n\n---\n\n## 3. Specialized Roles Mapping\n\n### 1. `agent-product-analyst` (Product Analyst / Scribe)\n- **Mission**: Capture new product intent via NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`) and define/refine the product model using ProductShape.\n- **Phase 0 (Greenfield Product Inception)**: When creating a new product from scratch (or when `specs/product/` has no baseline), run an iterative discovery interview of **up to 15 questions (or until the product scope is 100% clear and unambiguous)** covering: mission/problem, actors `ACT-*`, role/auth model, **target UI/interaction modality (Web UI, Desktop GUI, Console/TUI/CLI, Mobile, or API/SDK)**, **modern visual aesthetic & styling standard (Bootstrap 5-style clean responsive web layouts with cards/tables/badges, Fluent/modern desktop aesthetic with rounded corners/elevated panels, or colorized rich terminal console with ANSI palettes/status badges)**, master-data CRUD prerequisites, MVP capabilities `UC-*`, business rules `BR-*`, and priority quality goals `QR-*`; then draft `ARCH-INTRO-001` (`templates/architecture/introduction-and-goals.template.md`), and derive initial `ACT-*`, `UC-*`, `BR-*`, `FR-*`, and `QR-*` drafts.\n- **Input**: Business intent or natural language specification.\n- **Output**: Markdown artifacts with YAML frontmatter compliant with `schemas/architecture/introduction-and-goals.schema.json` (`ARCH-INTRO-*`) and `schemas/product/` (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`).\n- **Guardrails**: `status` always starts in `draft`. Library-only MVPs without the agreed runnable UI/CLI entry point and master-data CRUDs for human actors are forbidden. Mandatory Gherkin criteria with `@<ID> @automated @regression`.\n\n### 2. `agent-threat-modeler` (Threat Modeler and Security Specialist)\n- **Mission**: Analyze use cases and proactively model adversaries, STRIDE attack vectors, and OWASP ASVS mitigations, both at product level and in the technical security feedback loop over architecture, handing off to `agent-privacy-officer`.\n- **Output**: Cybersecurity triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`) compliant with `schemas/security/`.\n\n### 3. `agent-privacy-officer` (Data Protection & Privacy-by-Design Specialist)\n- **Mission**: Receive handoff from `agent-threat-modeler` to model personal data assets (`DATA-ASSET-*`), GDPR Art. 30 records of processing (`PRIV-ROPA-*`), and LINDDUN / GDPR / ISO 27701 privacy requirements (`PRIV-REQ-*`), and audit code diffs against `privacy-policy.yaml`.\n- **Directives**: Run `pnpm run verify:privacy`, enforce PII masking in logs/LLM prompts, and trigger `DPIA-*` requests on Art. 9 sensitive data.\n\n### 4. `agent-system-architect` (System Architect)\n- **Mission**: Translate the approved product definition into a modular technical architecture based on arc42 enriched with NAF v4 (`CMP-*`, Mermaid diagrams, `ADR-*`).\n- **Guardrails**: Declare `satisfies-requirements` on every `CMP-*` (including `PRIV-REQ-*`), structure components following **Modular & Hexagonal Architecture (Ports & Adapters)** (Domain/Application Core + Inbound/Outbound Ports), instantiate mandatory building block `CMP-OBSERVABILITY` (Level 2/3) alongside Section 8 and an ADR for runtime telemetry, and trigger the technical security/privacy feedback loop toward `agent-threat-modeler` \u2794 `agent-privacy-officer` when infrastructure decisions introduce new attack vectors or PII flows.\n\n### 5. `agent-qa-engineer` (QA Engineer and SDET)\n- **Mission**: Translate approved requirements (`FR-*`, `SEC-REQ-*`, `PRIV-REQ-*`, `QR-*`) into comprehensive FAILING (red) BDD/Gherkin, End-to-End (E2E), UI, and unit test suites, before `agent-developer` writes production code.\n- **Guardrails**: Always use the agreed project technology/testing stack (if any). Never omit End-to-End (E2E) and UI tests. Create specific tests for every interactive UI element using external tools such as Playwright or FlatUI (or the agreed project testing technology), covering Happy Path, Sad Path, and Boundary Values. FORBIDDEN to include production code. Mandatory tags: `@<FR-ID> @automated @regression`.\n\n### 6. `agent-developer` (Software Developer)\n- **Mission**: Implement atomic tasks from SDD specifications (`tasks.md`) with clean, strictly typed code and thorough tests.\n- **Directives**: Execute the mandatory 4-step order: (1) Modular & Hexagonal Architecture (Ports & Adapters) definition/redefinition, (2) Inter-module interfaces first, (3) Component implementation, (4) Per-function unit tests (Happy Path, Sad Path, Boundary Values, Unexpected/Null/Empty values). Respect the autonomy mode. Make tests delivered by `agent-qa-engineer` pass green. Run `pnpm run check:fix` and `pnpm run verify:all`. Enforce Mandatory Regression Verification (`pnpm test`) with zero regressions before declaring completion, and enforce Global Styles Protection on frontend views.\n\n### 7. `agent-expert-user` (Expert User and Domain Evaluator)\n- **Mission**: Contrast design and specifications (design phase) and functionally validate finished software against `UC-*` and `FR-*` (post-development functional validation phase).\n\n### 8. `agent-devops` (Automation and Infrastructure Engineer)\n- **Mission**: Maintain, evolve, and audit automated project infrastructure: CI/CD workflows, Docker containers, IaC manifests, and support scripts. Clarifies packaging/CD strategy against `ARCH-INTRO-001` / `ARCH-DEP-001`.\n- **NON-INVASION GUARDRAIL**: STRICTLY FORBIDDEN from modifying application source code (`src/`, `packages/*/src/`).\n\n### 9. `agent-auditor` (Transversal Quality and Improvement Auditor)\n- **Mission**: Polymorphically inspect deliverables from any specialist agent on demand, enforcing Clean Code, SOLID, DRY, YAGNI, `quality-policy.yaml` AST thresholds, UI design standards, and `license-policy.yaml` SPDX compliance (`pnpm run verify:licenses`).\n- **Directives**: Constructive critique; classify findings into `[BLOCKING_DEFECT]`, `[SIMPLIFICATION]`, and `[ADVISORY]`; non-invasive (never edit files directly); always return handoff to the audited agent (max 1 return round).\n\n### 10. `agent-adversary` (Transversal Red Team and Chaos Adversary)\n- **Mission**: Actively attempt to break, bypass, or invalidate deliverables from any target specialist agent, including Pre-Merge / Checkpoint 2 security diff audits (`pnpm run verify:security`, CVSS v3.1), providing concrete proofs-of-concept (PoC), counterexamples, and reproduction steps.\n- **Directives**: Expose failure modes across Product (logic traps), Architecture (SPOF/races), QA (mutation testing/false greens), Development & Pre-Merge Security (boundary/concurrency, CVSS v3.1), and DevOps (pipeline escape); mandatory proof-of-break; non-invasive; always return handoff to the audited agent (max 1 return round).\n\n---\n\n## 4. Task Autonomy Modes (`tasks.md`)\n\n- \uD83D\uDFE2 **`AUTONOMOUS`**: Low risk, isolated task. Implement code and tests directly. Omit interactive handoff block.\n- \uD83D\uDFE1 **`HUMAN_REVIEW_PLAN`**: Medium risk. Design detailed plan, emit Workflow Handoff block, and wait for human confirmation before coding.\n- \uD83D\uDFE0 **`AMBIGUOUS`**: Incomplete requirements. Blocked: request human clarification.\n- \uD83D\uDD34 **`HIGH_RISK_MANUAL`**: Critical risk (migrations, cryptography). Direct manual execution by humans only.\n\n---\n\n## 5. Git Workflow and Commit Rules with Trailers\n\n### 4-Tier Hierarchy\n1. **Tier 1 (`main`)**: Absolute stability and production readiness.\n2. **Tier 2 (`release/vX.Y.Z`)**: Release stabilization.\n3. **Tier 3 (`feat/<FEAT-ID>-<slug>` or `bug/<BUG-ID>-<slug>`)**: SDD delivery increment.\n4. **Tier 4 (`task/<PARENT-ID>/<TSK-ID>-<slug>`)**: Atomic implementation task.\n\n### Commit Format (Conventional Commits + Git Trailers)\n```text\nfeat(scope): concise imperative description (#issue)\n\nBody explaining the motivation and technical justification of the change.\n\nAuthor-Type: agent\nAI-Model: claude-3-7-sonnet\nTask-ID: TSK-001\nChange-ID: CHG-026-AGENT-NATIVE-CONFIGS\n```\n\n---\n\n## 6. Non-Negotiable Quality Thresholds (`quality-policy.yaml`)\n- **Cyclomatic Complexity (CC)**: $\\le 10$\n- **Cognitive Complexity**: $\\le 15$\n- **Maintainability Index (MI)**: $\\ge 50$\n- **Lines per Function**: $\\le 40$\n- Deterministic CLI output: every `verify` command supports `--json` without ANSI escape codes.\n\n---\n\n## 7. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation**:\n - \uD83D\uDFE2 **`AUTONOMOUS`** (or PR/CI final supervision): **OMITTED**. Uninterrupted continuous execution.\n - \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit Workflow Handoff block ([`templates/workflow/agent-handoff.template.md`](templates/workflow/agent-handoff.template.md)) and **STOP**.\n- **Content**: Completed deliverables, suggested next role(s), copy-paste ready invocation prompt, and **an open Human Action Window for the user to take action** (review, edit by hand, pause/reroute, or delegate).\n";
3160
+ declare const STARTER_COPILOT_RULES = "<!--\n AI-SDLC: Canonical Instructions for GitHub Copilot (Chat & Workspace)\n Canonical Reference: process/09_agent_protocols.md and process/01_governance_and_roles.md\n-->\n\n# GitHub Copilot Instructions - AI-SDLC Framework\n\nYou operate as an assistant agent in the **AI-SDLC** repository. You are not a simple text auto-completer: you are a specialized technical worker subject to normative directives, deterministic autonomy boundaries, and strict traceability.\n\n---\n\n## 1. The 5 Unbreakable Commandments of Agents | Los 5 Mandamientos Inquebrantables de los Agentes\n\n1. **FORBIDDEN TO AUTO-APPROVE OR AUTO-MERGE | PROHIBIDO AUTO-APROBAR O AUTO-FUSIONAR**:\n - Never execute PR approvals or direct merges to stable branches (`main`, `release/*`). Approval is an exclusive human prerogative.\n2. **FORBIDDEN TO INVENT PRODUCT OR ARCHITECTURE DECISIONS**:\n - If a requirement is ambiguous or incomplete, formulate open questions (`open-questions`) to the human user. Guessing undocumented intentions is forbidden.\n3. **FORBIDDEN TO INTRODUCE DEPENDENCIES WITHOUT LICENSE INSPECTION**:\n - Before suggesting or adding dependencies to manifests (`package.json`, etc.), validate their SPDX identifier against `license-policy.yaml`. Adding viral (`GPL`, `AGPL`) or commercial paid (`BSL`, `SSPL`) licenses without human authorization is prohibited.\n4. **FORBIDDEN TO IGNORE CYBERSECURITY & PRIVACY (SECURITY-BY-DEFAULT & PRIVACY-BY-DEFAULT)**:\n - All code must enforce least privilege, sanitize external inputs, protect PII according to `privacy-policy.yaml`, and include mitigation tests (`SEC-TEST-*`, `@privacy`). Suppressing types (`any`), linters, or tests to force a green pipeline is prohibited.\n5. **MANDATORY CRYPTOGRAPHIC CITATION**:\n - Every specification, design, or sidecar must reference canonical identifiers and their Unix LF-normalized SHA-256 digests.\n\n---\n\n## 2. Git 4-Tier Branch Hierarchy\n\nWhen proposing or creating branches, respect the strict hierarchical structure:\n- **Tier 1**: `main` (Protected production branch with maximum stability).\n- **Tier 2**: `release/vX.Y.Z` (Release consolidation and scope freeze branch).\n- **Tier 3**: `feat/<FEAT-ID>-<slug>` or `bug/<BUG-ID>-<slug>` (SDD increment or feature branch).\n- **Tier 4**: `task/<PARENT-ID>/<TSK-ID>-<slug>` (Atomic development task branch).\n\n---\n\n## 3. Pre-Flight Commands and Quality Gates\n\nBefore concluding any intervention or suggesting a commit:\n- **Unified pre-flight with auto-fix**: `pnpm run check:fix` (or `npx aisdlc check --fix`).\n- **Complete Quality Gates verification**: `pnpm run verify:all` (or `npx aisdlc verify all`).\n- **Unit test suite**: `pnpm test`.\n- **Strict typing**: `pnpm run typecheck`.\n\nNon-Negotiable Quality Thresholds (`quality-policy.yaml`):\n- Cyclomatic Complexity (CC) $\\le 10$.\n- Cognitive Complexity $\\le 15$.\n- Maintainability Index (MI) $\\ge 50$.\n- Maximum lines per function $\\le 40$.\n\n---\n\n## 4. Task Autonomy Modes (`tasks.md`)\n\n- \uD83D\uDFE2 **`AUTONOMOUS`**: Low risk, isolated task. Implement code and tests directly. Omit interactive handoff block.\n- \uD83D\uDFE1 **`HUMAN_REVIEW_PLAN`**: Medium risk. Design detailed plan, emit Workflow Handoff block, and wait for human confirmation before coding.\n- \uD83D\uDFE0 **`AMBIGUOUS`**: Incomplete requirements. Blocked: request human clarification.\n- \uD83D\uDD34 **`HIGH_RISK_MANUAL`**: Critical risk (migrations, cryptography). Direct manual execution by humans only.\n\n---\n\n## 5. Workflow Handoff Protocol and Human Action Window | Ventana de Acci\u00F3n Humana\n- **Clean Context Window Isolation per Specialist Agent (Cross-IDE)**: Never execute two distinct specialist roles in the same conversation context window. In subagent-capable IDEs (Antigravity `invoke_subagent`, Claude Code `Task` / `.claude/agents/`, GitHub Copilot `@agent-*`), always delegate each specialist phase to a fresh isolated subagent context that hydrates state strictly from disk (`specs/`, `handoff.yaml`, `get_active_handoff`). In chat-based IDEs (Cursor, Windsurf, Aider), persist all artifacts to disk, emit the Workflow Handoff block, and instruct the user to open a **New Chat** (or `/clear`) before running the next specialist.\n- **Conditional Activation**:\n * \uD83D\uDFE2 **`AUTONOMOUS` Mode** (or PR/CI final supervision): **OMITTED**. Do not interrupt unattended execution.\n * \uD83D\uDFE1 **Autonomy $\\ge$ `HUMAN_REVIEW_PLAN`** (`HUMAN_REVIEW_PLAN`, `AMBIGUOUS`, `HIGH_RISK_MANUAL`): **MANDATORY**. Emit Workflow Handoff block compliant with [`templates/workflow/agent-handoff.template.md`](../templates/workflow/agent-handoff.template.md) and **STOP**.\n- **Components**: Declare completed deliverables, recommend next roles (`agent-threat-modeler`, `agent-privacy-officer`, `agent-system-architect`, `agent-developer`, `agent-devops`, `agent-auditor`, `agent-adversary`), provide suggested invocation prompt, and **keep the Human Action Window open at all times for the user to take action** (review, edit by hand, pause/reroute, or delegate).\n\n---\n\n## 6. Specialized Roles Mapping\n\n| Role | Mission (summary) |\n| :--- | :--- |\n| `agent-product-analyst` | Phase 0 NAF v4 Enterprise & Capability Vision (`ARCH-INTRO-*`, up to 15-question discovery interview defining UI modality, delivery model & CRUD prerequisites) + ProductShape artifacts (`ACT-*`, `UC-*`, `FR-*`, `QR-*`, `BR-*`); `status` starts `draft`. |\n| `agent-threat-modeler` | STRIDE/OWASP threat triad (`ACT-THREAT-*`, `ABUSE-*`, `SEC-REQ-*`); hands off to `agent-privacy-officer`. |\n| `agent-privacy-officer` | LINDDUN & GDPR/LOPDGDD privacy triad (`DATA-ASSET-*`, `PRIV-ROPA-*`, `PRIV-REQ-*`) + Pre-Merge `verify:privacy`. |\n| `agent-system-architect` | Modular arc42 + NAF v4 architecture (`CMP-*`, `ARCH-DEP-001`, Mermaid diagrams, `ADR-*`). |\n| `agent-qa-engineer` | FAILING BDD/Gherkin, E2E, and UI suites (using agreed project tech; Happy Path, Sad Path & Boundary Values per interactive UI element) before `agent-developer` writes production code. |\n| `agent-developer` | Atomic tasks from `tasks.md`; autonomy mode must be respected; runs `pnpm run check:fix` + `pnpm run verify:all`. |\n| `agent-expert-user` | Bimodal MVP evaluation (design) and functional validation against `UC-*` and `FR-*` (pre-PR). |\n| `agent-devops` | CI/CD, Docker, IaC only \u2014 clarifies deployment/CI strategy; **FORBIDDEN** to touch `src/` or `packages/*/src/`. |\n| `agent-auditor` | Transversal auditor: YAGNI, Clean Code/SOLID/AST thresholds, UI standards, SPDX licenses (`verify:licenses`); returns handoff to audited agent. |\n| `agent-adversary` | Transversal Red Team adversary: PoC breaks, mutation testing & Pre-Merge security diff audit (`verify:security`, CVSS v3.1); returns handoff to audited agent. |\n\n---\n\n## 7. Canonical Reference\nTo consult full protocols, specialized prompts, and interface contracts:\n- [`process/09_agent_protocols.md`](../process/09_agent_protocols.md)\n- [`process/01_governance_and_roles.md`](../process/01_governance_and_roles.md)\n";
3139
3161
  declare const STARTER_CURSOR_MCP = "{\n \"mcpServers\": {\n \"ai-sdlc\": {\n \"command\": \"npx\",\n \"args\": [\n \"@aisdlc/mcp\"\n ],\n \"env\": {\n \"AISDLC_MCP_ROLE\": \"developer\"\n }\n }\n }\n}\n";
3140
3162
  declare const STARTER_ANTIGRAVITY_MCP = "{\n \"mcpServers\": {\n \"ai-sdlc\": {\n \"command\": \"npx\",\n \"args\": [\n \"@aisdlc/mcp\"\n ],\n \"env\": {\n \"AISDLC_MCP_ROLE\": \"developer\"\n }\n }\n }\n}\n";
3141
3163
  declare const STARTER_VSCODE_MCP = "{\n \"servers\": {\n \"ai-sdlc\": {\n \"command\": \"npx\",\n \"args\": [\n \"@aisdlc/mcp\"\n ],\n \"env\": {\n \"AISDLC_MCP_ROLE\": \"developer\"\n }\n }\n }\n}\n";
@@ -3146,7 +3168,7 @@ declare const STARTER_VSCODE_MCP = "{\n \"servers\": {\n \"ai-sdlc\": {\n
3146
3168
 
3147
3169
  declare const VALID_CI_PROVIDERS: readonly ["github", "gitlab", "azure", "bitbucket"];
3148
3170
  type SupportedCiProvider = (typeof VALID_CI_PROVIDERS)[number];
3149
- declare const STARTER_QUALITY_POLICY = "# ==============================================================================\n# AI-SDLC: Software Quality, Coding Rules & Release Gate Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\nenforcement_mode: \"STRICT\"\n\nscope:\n target_directories:\n - \"src\"\n - \"lib\"\n supported_extensions:\n - \".ts\"\n - \".js\"\n - \".py\"\n - \".java\"\n - \".go\"\n - \".cs\"\n - \".rs\"\n - \".cpp\"\n - \".c\"\n exclude_patterns:\n - \"node_modules\"\n - \"__pycache__\"\n - \".pytest_cache\"\n - \"target\"\n - \"bin\"\n - \"obj\"\n - \".git\"\n - \"reports\"\n - \"dist\"\n - \".changeset\"\n - \"examples\"\n - \"scratch\"\n - \"templates\"\n\nthresholds:\n cyclomatic_complexity:\n max_per_function: 10\n cognitive_complexity:\n max_per_function: 15\n maintainability_index:\n min_acceptable_score: 50.0\n function_length:\n max_function_lines: 40\n";
3171
+ declare const STARTER_QUALITY_POLICY = "# ==============================================================================\n# AI-SDLC: Software Quality, Coding Rules & Release Gate Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\nenforcement_mode: \"STRICT\"\n\nscope:\n target_directories:\n - \"src\"\n - \"lib\"\n supported_extensions:\n - \".ts\"\n - \".js\"\n - \".py\"\n - \".java\"\n - \".go\"\n - \".cs\"\n - \".rs\"\n - \".cpp\"\n - \".c\"\n exclude_patterns:\n - \"node_modules\"\n - \"__pycache__\"\n - \".pytest_cache\"\n - \"target\"\n - \"bin\"\n - \"obj\"\n - \".git\"\n - \"reports\"\n - \"dist\"\n - \".changeset\"\n - \"examples\"\n - \"scratch\"\n - \"templates\"\n\nthresholds:\n cyclomatic_complexity:\n max_per_function: 10\n cognitive_complexity:\n max_per_function: 15\n maintainability_index:\n min_acceptable_score: 50.0\n function_length:\n max_function_lines: 40\n test_enforcement:\n require_function_unit_tests: true\n require_ui_component_tests: true\n";
3150
3172
  declare const STARTER_LICENSE_POLICY = "# ==============================================================================\n# AI-SDLC: Open Source License Compliance & Governance Policy\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\ndefault_action: \"DENY\"\n\ncategories:\n permissive_free:\n action: \"ALLOW\"\n description: \"Permissive commercial use licenses. Attribution only required.\"\n spdx_identifiers:\n - \"MIT\"\n - \"Apache-2.0\"\n - \"BSD-2-Clause\"\n - \"BSD-3-Clause\"\n - \"ISC\"\n - \"Unlicense\"\n - \"CC0-1.0\"\n - \"0BSD\"\n - \"Python-2.0\"\n - \"BlueOak-1.0.0\"\n - \"Zlib\"\n - \"CC-BY-3.0\"\n - \"CC-BY-4.0\"\n - \"MS-PL\"\n\n weak_copyleft_conditional:\n action: \"REVIEW_REQUIRED\"\n description: \"Allowed only as dynamically linked decoupled libraries.\"\n spdx_identifiers:\n - \"LGPL-2.1-only\"\n - \"LGPL-2.1-or-later\"\n - \"LGPL-3.0-only\"\n - \"LGPL-3.0-or-later\"\n - \"MPL-2.0\"\n - \"EPL-2.0\"\n - \"CDDL-1.0\"\n - \"MS-RL\"\n - \"MS-LPL\"\n - \"MS-LRL\"\n\n strong_copyleft_viral:\n action: \"DENY\"\n description: \"Forbidden due to viral copyleft forcing source code disclosure.\"\n spdx_identifiers:\n - \"GPL-2.0-only\"\n - \"GPL-3.0-only\"\n - \"AGPL-3.0-only\"\n - \"AGPL-3.0-or-later\"\n\n commercial_acquisition_required:\n action: \"COMMERCIAL_APPROVAL_REQUIRED\"\n description: \"Source-available code requiring commercial license for SaaS deployment.\"\n spdx_identifiers:\n - \"SSPL-1.0\"\n - \"BSL-1.1\"\n";
3151
3173
  declare const STARTER_PRIVACY_POLICY = "# ==============================================================================\n# AI-SDLC: Data Protection & Privacy-by-Design Governance Policy (PDaC)\n# ==============================================================================\nversion: \"1.0\"\nproject: \"Standard AI-SDLC Project\"\nregulatory_frameworks:\n - \"GDPR\"\n - \"LOPDGDD\"\n - \"ISO-27701\"\ndefault_pii_action: \"DENY_UNCLASSIFIED\"\n\nclassification_levels:\n PUBLIC:\n encryption_at_rest: false\n encryption_in_transit: true\n allow_in_logs: true\n allow_in_llm_prompts: true\n INTERNAL:\n encryption_at_rest: true\n encryption_in_transit: true\n allow_in_logs: true\n allow_in_llm_prompts: true\n CONFIDENTIAL_PII:\n encryption_at_rest: true\n encryption_in_transit: true\n allow_in_logs: false\n masking_in_logs: \"HASH_OR_REDACT\"\n allow_in_llm_prompts: false\n require_retention_policy: true\n require_erasure_mechanism: true\n RESTRICTED_SENSITIVE_PII:\n encryption_at_rest: true\n field_level_encryption: true\n encryption_in_transit: true\n allow_in_logs: false\n allow_in_llm_prompts: false\n require_dpia_approval: true\n require_explicit_consent_or_art9_basis: true\n\ncross_border_transfers:\n allowed_regions:\n - \"EU\"\n - \"EEA\"\n require_scc_for_external: true\n approved_subprocessors: []\n";
3152
3174
  declare const STARTER_TASK_TEMPLATE = "---\ntasks:\n - id: \"TSK-001-setup\"\n title: \"Initial component setup\"\n complexity: \"LOW\"\n risk-level: \"LOW\"\n autonomy-mode: \"AUTONOMOUS\"\n assigned-to: \"agent-developer\"\n status: \"PENDING\"\n verification:\n method: \"COMMAND_VERIFICATION\"\n command-or-criteria: \"pnpm test\"\n---\n\n# Task Plan: Component\n";
@@ -3594,6 +3616,7 @@ declare class PolicyRatchetEnforcer {
3594
3616
  declare class TimestampedBackupManagerAdapter implements IBackupManager {
3595
3617
  private diffDetector;
3596
3618
  createBackup(repoRoot: string, filesToBackup: string[]): Promise<string>;
3619
+ private backupSingleFile;
3597
3620
  restoreBackup(repoRoot: string, backupPath: string): Promise<void>;
3598
3621
  private ensureGitignoreRule;
3599
3622
  }
@@ -3656,4 +3679,4 @@ declare class MigrationService implements IMigrationService {
3656
3679
  private discoverGovernedFiles;
3657
3680
  }
3658
3681
 
3659
- export { ALL_ARCHITECTURE_TEMPLATES, ALL_QUALITY_GATES, type ActiveTaskMatch, type AgentKpiComputationInput, type AgentPerformanceKpis, type AgentTarget, type AnalysisResult, type ArchTemplateDef, type ArchitectureGranularity, type ArtifactFrontmatter, type ArtifactSchemaOptions, type ArtifactSchemaResult, type ArtifactSchemaViolation, type ArtifactValidationResult, type AuthorIdentity, type AuthorKpiSummary, type AutonomyMode, BRANCH_PATTERNS, type BackupManifest, type BackupManifestEntry, type BddAttestationRecord, type BddAttestationVerificationResult, type BddFeatureExecutionReport, type BddScenarioExecution, type BddStepExecution, BddStepRegistry, type BddVariantCoverage, type BranchClassificationResult, type BranchHierarchyPlan, BranchSafetyCheck, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, type CategoryReport, type CategoryResult, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CheckStatus, type CiProvider, type ClassifyInput, type CodeCoverageSummary, type CodingRuleStack, type CommitKpiRecord, type CommitTrailers, type CompiledTestMatcher, type ComplianceBundleOptions, type ComplianceBundlePayload, type ComplianceBundleResult, type ContractTraceAudit, type CoverageFormat, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CycloneDxVulnerability, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DEFAULT_TEST_ARTIFACT_PATTERNS, DEFAULT_UNIT_TEST_PATTERNS, DOTNET_DIRECTORY_BUILD_PROPS, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DataAssetField, type DataAssetSummary, type DesignContractDeclaration, type DiagnosticCategory, type DiagnosticFinding, DiffDetector, type DiffLineItem, type DlpPolicy, type DlpRule$1 as DlpRule, type DlpSanitizeResult, DlpSanitizer, type DoctorOptions, DoctorOrchestrator, type DoctorReport, DoctorReporter, DoctorService, type DoctorStatus, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type EnsureToolOptions, type EnsureToolResult, type ExtractedFeature, type FileClassification, FileSystemJailAdapter, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, type GateEvidenceReport, type GateFinding, type GenerateSarifOptions, type GherkinExtractionOptions, type GherkinExtractionResult, type GherkinGeneratorSpec, type GherkinScaffoldExecFn, type GherkinScaffoldExecResult, type GherkinScaffoldLanguage, type GherkinScaffoldOptions, type GherkinScaffoldResult, type GherkinScaffoldStatus, type GherkinSyncCheckResult, type GitCheckoutTaskOptions, type GitCheckoutTaskResult, GitHooksHealthCheck, type GovernanceOptions, type GovernanceResult, type GraphElementsResult, type GraphNodeLayer, type GraphNodeStatus, type GraphNodeType, type HookInstallResult, type IBackupManager, type IDiagnosticsReporter, type IDoctorService, type IFileSystemJail, type IFileSystemProbe, type IMigrationReporter, type IMigrationService, type IProcessRunner, type ITransactionManager, InTotoAttestationBuilder, type InTotoStatementV1, type InTotoSubject, type InitProjectOptions, type InitProjectResult, type InspectOptions, type InspectRelation, type InspectResult, type InstallableTool, JAVA_PMD_RULESET_XML, type JsonSchemaRule, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, type LanguageAstReport, type LicensePolicy, type LicenseProvenance, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type LifecycleSkillTemplate, MAX_SARIF_BYTES, MAX_SARIF_JSON_DEPTH, MAX_SARIF_RESULTS, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type MigrationFileStatus, type MigrationItemReport, type MigrationOptions, MigrationOrchestrator, type MigrationPlanItem, type MigrationReport, MigrationReporter, type MigrationResult, MigrationService, type MigrationStatus, type MigrationSummary, type ModelDefectStats, type NativeAstOptions, NativeFileSystemProbeAdapter, OpenSpecAdapter, OscalAssessmentBuilder, type OscalAssessmentResultsDocument, type OscalBuilderOptions, type OscalFinding, type OscalResult, OverrideAnalyzer, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, type PackageJsonInfo, type ParsedFeatureDocument, type ParsedPurl, type ParsedScenarioBlock, type ParsedStepItem, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacInvalidAnchor, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PdacUnresolvedCitation, type PiiSastRule, PolicyRatchetEnforcer, type PolyglotOrchestrationOptions, type PolyglotOrchestrationResult, type PolyglotToolDiagnostic, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type PrivacyClassificationRule, type PrivacyFindingType, type PrivacyPolicy, type PrivacyRopaSummary, type PrivacyVerifierOptions, type PrivacyVerifierResult, type PrivacyViolation, type ProcessExecOptions, type ProcessExecResult, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type ProjectEcosystem, type PromptInjectionFinding, type QualityBaseline, type QualityBaselineEntry, type QualityGateId, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, type RatchetOptions, RegulatoryControlMapper, type RegulatoryGateMapping, type RegulatoryMatrixSection, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, type ReviewReportResult, type ReviewVerdict, type ReviewerRole, SARIF_SCHEMA_2_1_0, SARIF_VERSION, SAST_RULES, SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON, SECRET_RULES, SEVERITY_RANK, SPECIALIZED_AGENT_TEMPLATES, STARTER_AGENT_GUARD_WRAPPER_CJS, STARTER_ANTIGRAVITY_HOOKS_JSON, STARTER_ANTIGRAVITY_MCP, STARTER_ANTIGRAVITY_RULES, STARTER_ARCH_ADR, STARTER_ARCH_ARCHITECTURE_CONSTRAINTS, STARTER_ARCH_COMPONENT, STARTER_ARCH_CONTEXT_AND_SCOPE, STARTER_ARCH_CROSS_CUTTING_CONCEPTS, STARTER_ARCH_DEPLOYMENT_VIEW, STARTER_ARCH_GLOSSARY, STARTER_ARCH_INTRODUCTION_AND_GOALS, STARTER_ARCH_LEVEL_1_WHITEBOX, STARTER_ARCH_QUALITY_REQUIREMENTS, STARTER_ARCH_RISKS_AND_TECHNICAL_DEBT, STARTER_ARCH_RUNTIME_VIEW, STARTER_ARCH_SOLUTION_STRATEGY, STARTER_AZURE_PIPELINES, STARTER_BASE_TEMPLATES, STARTER_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COMPLIANCE_LICENSE_MANIFEST_YAML, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_DEPLOY_DASHBOARD, STARTER_GITHUB_PR_KPI, STARTER_GITHUB_PULL_REQUEST_TEMPLATE, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_GUARD_BRANCH_CJS, STARTER_LICENSE_POLICY, STARTER_PRIVACY_POLICY, STARTER_PROCESS_README, STARTER_PULL_REQUEST_TEMPLATE, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_SCHEMAS, STARTER_SCHEMAS_MAP, STARTER_TASK_TEMPLATE, STARTER_TEMPLATES_CI_AZURE_PIPELINES_YML, STARTER_TEMPLATES_CI_BITBUCKET_PIPELINES_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_DEPLOY_DASHBOARD_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_SDD_INTEGRATE_ON_MERGE_YML, STARTER_TEMPLATES_CI__GITLAB_CI_YML, STARTER_TEMPLATES_COMPLIANCE_COMMERCIAL_ACQUISITION_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_PRODUCTION_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_USER_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DATA_ASSET_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DPIA_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_ROPA_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BUSINESS_RULE_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_JOURNEY_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_REQUIREMENT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_TERM_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USER_DESIGN_FEEDBACK_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_HAZARD_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_SAFETY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SDD_DESIGN_TEMPLATE_MD, STARTER_TEMPLATES_SDD_HANDOFF_TEMPLATE_YAML, STARTER_TEMPLATES_SDD_PROPOSAL_TEMPLATE_MD, STARTER_TEMPLATES_SDD_PULL_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_SDD_SPEC_TEMPLATE_MD, STARTER_TEMPLATES_SDD_TASKS_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ABUSE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ENCLAVE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_SECURITY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_THREAT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_WORKFLOW_AGENT_HANDOFF_TEMPLATE_MD, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, STARTER__GITHUB_PULL_REQUEST_TEMPLATE_MD, SUPPORTED_COVERAGE_FORMATS_HINT, type SafeProbeExecutable, SafeProcessRunnerAdapter, type SarifArtifactLocation, type SarifDocument, type SarifErrorCode, SarifIngestionError, type SarifLevel, type SarifLocation, type SarifMultiformatMessageString, type SarifPhysicalLocation, type SarifRegion, type SarifReportingDescriptor, type SarifResult, type SarifRuleConfiguration, type SarifRun, type SarifToolDriver, type SarifUriBaseId, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomComponent, type SbomDocument, type SbomErrorCode, type SbomGenerateOptions, ScaSbomError, type ScaScanResult, type ScaTool, type ScaVulnerability, type ScanOptions, type ScannedDependency, type ScannedRequirement, SchemasPdacHealthCheck, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrateAllOptions, type SddIntegrateAllResult, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SecuritySuppression, SecurityToolsHealthCheck, SignatureReadinessCheck, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type StarterSchemaEntry, type StarterTemplateEntry, type StepDataTable, type StepDefinitionEntry, type StepHandler, type SubmitReviewReportOptions, type SupportedCiProvider, type SupportedPlatform, TOOL_INSTALL_ALLOWLIST, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskKpiSummary, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, TimestampedBackupManagerAdapter, type ToolInstallSpec, ToolchainHealthCheck, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, TransactionManager, type TrivyAsyncResult, UNIT_TEST_SUFFIXES, type UnresolvedLicenseReason, type UntestedFunctionItem, type UseCaseFlowAuditItem, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, type VexAnalysisJustification, type VexAnalysisState, type VexStatement, type VulnerabilityThresholds, WIN_CMD_META_RE, accumulateTaskSummaries, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, buildSafeEnvironment, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, canonicalizeJson, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, compileTestPatterns, computeAgentPerformanceKpis, computeCanonicalSha256, computeLfSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, deduplicateAndSortPrivacyViolations, deduplicateAndSortSastViolations, deduplicateAndSortViolations, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectPolyglotLoggerCall, detectProfileFromChange, detectProjectEcosystems, detectProjectStacks, detectPromptInjection, emitCiOutput, ensureToolAvailable, ensureTrivyAvailable, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractAllRepoCommitKpis, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, findChangeWorkspaceDir, findLicenseFile, formatAgentKpisMarkdownSection, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, formatTaskKpiRows, generateBranchHierarchyPlan, generateComplianceEvidenceBundle, generateComplianceEvidenceBundleSync, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, getToolInstallSpec, inferArtifactTypeFromId, inferMissingTrailers, ingestSarifFiles, ingestSbomFile, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathOutsideRoot, isPathProtectedFromPatch, isPlaceholderOrIgnored, isPolyglotTestArtifact, isPolyglotUnitTestFile, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, isToolInstalled, isUncOrEmptyPath, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, mergeSbomGaps, normalizeIdentifierToSnakeCase, normalizePath, normalizeScaffoldLanguages, normalizeSpdxLicense, normalizeUri, normalizeWinDrive, orchestrateNativeAstAnalysis, orchestratePolyglotSast, parseCoberturaXmlCoverage, parseCommitTrailers, parseDataAsset, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseGoCoverProfile, parseIngestedSbom, parseIstanbulCoverageSummary, parseJacocoXmlCoverage, parseLcovCoverage, parseLicensePolicy, parseLlvmCovJson, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSarifDocument, parseSarifDocuments, parseSecuritySuppression, parseSpecCatalogScope, parseStrictPurl, parseSyftOutput, parseTasksDoc, parseTasksFromContent, parseTrivyOutput, parseTrivyVulnerabilities, processPackageDir, readCodeCoverageSummary, readFailOnMissingToolFromQualityPolicy, readNormalizedCoverage, readPackageJson, redactSensitiveDiagnostics, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCodingRuleStacks, resolveCurrentGitCommit, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveDisallowedLogFields, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, resolveTrustedBinaryPath, resolveWinCmdSpawn, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeSarifText, sanitizeSbomLicense, sanitizeTestCorpus, scaffoldGherkinSteps, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSbom, scanWithSyft, scanWithTrivy, scanWithTrivyAsync, serializeSarifDocument, slugify, spawnTrustedBinary, stripMaskingCalls, stripVolatileReportMetadata, submitReviewReport, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyBddReportAttestation, verifyLicenses, verifyLicensesAsync, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySastAsync, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
3682
+ export { ALL_ARCHITECTURE_TEMPLATES, ALL_QUALITY_GATES, type ActiveTaskMatch, type AgentKpiComputationInput, type AgentPerformanceKpis, type AgentTarget, type AnalysisResult, type ArchTemplateDef, type ArchitectureGranularity, type ArtifactFrontmatter, type ArtifactSchemaOptions, type ArtifactSchemaResult, type ArtifactSchemaViolation, type ArtifactValidationResult, type AuthorIdentity, type AuthorKpiSummary, type AutonomyMode, BRANCH_PATTERNS, type BackupManifest, type BackupManifestEntry, type BddAttestationRecord, type BddAttestationVerificationResult, type BddFeatureExecutionReport, type BddScenarioExecution, type BddStepExecution, BddStepRegistry, type BddVariantCoverage, type BranchClassificationResult, type BranchHierarchyPlan, BranchSafetyCheck, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, CPP_CLANG_TIDY, CPP_CMAKE_STRICT, type CategoryReport, type CategoryResult, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CheckStatus, type CiProvider, type ClassifyInput, type CodeCoverageSummary, type CodingRuleStack, type CommitKpiRecord, type CommitTrailers, type CompiledTestMatcher, type ComplianceBundleOptions, type ComplianceBundlePayload, type ComplianceBundleResult, type ContractTraceAudit, type CoverageFormat, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CycloneDxVulnerability, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXCLUDE_DIRS, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, DEFAULT_TEST_ARTIFACT_PATTERNS, DEFAULT_UI_COMPONENT_PATTERNS, DEFAULT_UI_TEST_PATTERNS, DEFAULT_UNIT_TEST_PATTERNS, DOTNET_DIRECTORY_BUILD_PROPS, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DataAssetField, type DataAssetSummary, type DesignContractDeclaration, type DiagnosticCategory, type DiagnosticFinding, DiffDetector, type DiffLineItem, type DlpPolicy, type DlpRule$1 as DlpRule, type DlpSanitizeResult, DlpSanitizer, type DoctorOptions, DoctorOrchestrator, type DoctorReport, DoctorReporter, DoctorService, type DoctorStatus, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type EnsureToolOptions, type EnsureToolResult, type ExtractedFeature, type FileClassification, FileSystemJailAdapter, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, GHERKIN_GENERATOR_SPECS, GO_GOLANGCI_YML, GRADLE_STRICT_INIT_KTS, type GateEvidenceReport, type GateFinding, type GenerateSarifOptions, type GherkinExtractionOptions, type GherkinExtractionResult, type GherkinGeneratorSpec, type GherkinScaffoldExecFn, type GherkinScaffoldExecResult, type GherkinScaffoldLanguage, type GherkinScaffoldOptions, type GherkinScaffoldResult, type GherkinScaffoldStatus, type GherkinSyncCheckResult, type GitCheckoutTaskOptions, type GitCheckoutTaskResult, GitHooksHealthCheck, type GovernanceOptions, type GovernanceResult, type GraphElementsResult, type GraphNodeLayer, type GraphNodeStatus, type GraphNodeType, type HookInstallResult, type IBackupManager, type IDiagnosticsReporter, type IDoctorService, type IFileSystemJail, type IFileSystemProbe, type IMigrationReporter, type IMigrationService, type IProcessRunner, type ITransactionManager, InTotoAttestationBuilder, type InTotoStatementV1, type InTotoSubject, type InitProjectOptions, type InitProjectResult, type InspectOptions, type InspectRelation, type InspectResult, type InstallableTool, JAVA_PMD_RULESET_XML, type JsonSchemaRule, KOTLIN_DETEKT_YML, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, type LanguageAstReport, type LicensePolicy, type LicenseProvenance, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type LifecycleSkillTemplate, MAX_SARIF_BYTES, MAX_SARIF_JSON_DEPTH, MAX_SARIF_RESULTS, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type MigrationFileStatus, type MigrationItemReport, type MigrationOptions, MigrationOrchestrator, type MigrationPlanItem, type MigrationReport, MigrationReporter, type MigrationResult, MigrationService, type MigrationStatus, type MigrationSummary, type ModelDefectStats, type NativeAstOptions, NativeFileSystemProbeAdapter, OpenSpecAdapter, OscalAssessmentBuilder, type OscalAssessmentResultsDocument, type OscalBuilderOptions, type OscalFinding, type OscalResult, OverrideAnalyzer, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, PROTECTED_CODING_RULES_FILES, type PackageJsonInfo, type ParsedFeatureDocument, type ParsedPurl, type ParsedScenarioBlock, type ParsedStepItem, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacInvalidAnchor, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PdacUnresolvedCitation, type PiiSastRule, PolicyRatchetEnforcer, type PolyglotOrchestrationOptions, type PolyglotOrchestrationResult, type PolyglotToolDiagnostic, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type PrivacyClassificationRule, type PrivacyFindingType, type PrivacyPolicy, type PrivacyRopaSummary, type PrivacyVerifierOptions, type PrivacyVerifierResult, type PrivacyViolation, type ProcessExecOptions, type ProcessExecResult, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type ProjectEcosystem, type PromptInjectionFinding, type QualityBaseline, type QualityBaselineEntry, type QualityGateId, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, REVIEWER_ROLES, REVIEW_VERDICTS, RUST_CARGO_CONFIG_TOML, RUST_CLIPPY_TOML, type RatchetOptions, RegulatoryControlMapper, type RegulatoryGateMapping, type RegulatoryMatrixSection, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, type ReviewReportResult, type ReviewVerdict, type ReviewerRole, SARIF_SCHEMA_2_1_0, SARIF_VERSION, SAST_RULES, SCHEMA_SCHEMAS_ARCHITECTURE_ADR_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_COMPONENT_SCHEMA_JSON, SCHEMA_SCHEMAS_ARCHITECTURE_INTRODUCTION_AND_GOALS_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_MANIFEST_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_LICENSE_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_COMPLIANCE_QUALITY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_IDE_MCP_CONFIG_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_PRODUCTION_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_MANUALS_USER_MANUAL_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_DATA_ASSET_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_PRIVACY_PRIVACY_ROPA_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BOUNDED_CONTEXT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_BUSINESS_RULE_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_JOURNEY_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_REQUIREMENT_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_TERM_SCHEMA_JSON, SCHEMA_SCHEMAS_PRODUCT_USE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_HAZARD_SCHEMA_JSON, SCHEMA_SCHEMAS_SAFETY_SAFETY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_DESIGN_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_HANDOFF_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_PROPOSAL_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_RELEASE_KPIS_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SESSION_TELEMETRY_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_SPEC_SCHEMA_JSON, SCHEMA_SCHEMAS_SDD_TASKS_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ABUSE_CASE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_ENCLAVE_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_SECURITY_REQ_SCHEMA_JSON, SCHEMA_SCHEMAS_SECURITY_THREAT_ACTOR_SCHEMA_JSON, SCHEMA_SCHEMAS_WORKFLOW_AGENT_HANDOFF_SCHEMA_JSON, SECRET_RULES, SEVERITY_RANK, SPECIALIZED_AGENT_TEMPLATES, STARTER_AGENT_GUARD_WRAPPER_CJS, STARTER_ANTIGRAVITY_HOOKS_JSON, STARTER_ANTIGRAVITY_MCP, STARTER_ANTIGRAVITY_RULES, STARTER_ARCH_ADR, STARTER_ARCH_ARCHITECTURE_CONSTRAINTS, STARTER_ARCH_COMPONENT, STARTER_ARCH_CONTEXT_AND_SCOPE, STARTER_ARCH_CROSS_CUTTING_CONCEPTS, STARTER_ARCH_DEPLOYMENT_VIEW, STARTER_ARCH_GLOSSARY, STARTER_ARCH_INTRODUCTION_AND_GOALS, STARTER_ARCH_LEVEL_1_WHITEBOX, STARTER_ARCH_QUALITY_REQUIREMENTS, STARTER_ARCH_RISKS_AND_TECHNICAL_DEBT, STARTER_ARCH_RUNTIME_VIEW, STARTER_ARCH_SOLUTION_STRATEGY, STARTER_AZURE_PIPELINES, STARTER_BASE_TEMPLATES, STARTER_BITBUCKET_PIPELINES, STARTER_CLAUDE_RULES, STARTER_COMPLIANCE_LICENSE_MANIFEST_YAML, STARTER_COPILOT_RULES, STARTER_CURSOR_CORE_RULES, STARTER_CURSOR_MCP, STARTER_CURSOR_PRODUCT_RULES, STARTER_CURSOR_QUALITY_RULES, STARTER_GITHUB_CI, STARTER_GITHUB_DEPLOY_DASHBOARD, STARTER_GITHUB_PR_KPI, STARTER_GITHUB_PULL_REQUEST_TEMPLATE, STARTER_GITHUB_SDD_INTEGRATE, STARTER_GITLAB_CI, STARTER_GUARD_BRANCH_CJS, STARTER_LICENSE_POLICY, STARTER_PRIVACY_POLICY, STARTER_PROCESS_README, STARTER_PULL_REQUEST_TEMPLATE, STARTER_QUALITY_POLICY, STARTER_REQUIREMENT_TEMPLATE, STARTER_SCHEMAS, STARTER_SCHEMAS_MAP, STARTER_TASK_TEMPLATE, STARTER_TEMPLATES_CI_AZURE_PIPELINES_YML, STARTER_TEMPLATES_CI_BITBUCKET_PIPELINES_YML, STARTER_TEMPLATES_CI_DOCKER_COMPOSE_OBSERVABILITY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_CI_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_DEPLOY_DASHBOARD_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_PR_KPI_SUMMARY_YML, STARTER_TEMPLATES_CI_GITHUB_WORKFLOWS_SDD_INTEGRATE_ON_MERGE_YML, STARTER_TEMPLATES_CI_OBSERVABILITY_GRAFANA_DATASOURCES_YML, STARTER_TEMPLATES_CI_OBSERVABILITY_PROMETHEUS_YML, STARTER_TEMPLATES_CI__GITLAB_CI_YML, STARTER_TEMPLATES_CODING_RULES_GO__GOLANGCI_YML, STARTER_TEMPLATES_CODING_RULES_KOTLIN_DETEKT_YML, STARTER_TEMPLATES_COMPLIANCE_COMMERCIAL_ACQUISITION_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_PRODUCTION_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_MANUALS_USER_MANUAL_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DATA_ASSET_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_DPIA_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_PRIVACY_PRIVACY_ROPA_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_BUSINESS_RULE_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_JOURNEY_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_REQUIREMENT_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_TERM_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USER_DESIGN_FEEDBACK_TEMPLATE_MD, STARTER_TEMPLATES_PRODUCT_USE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_HAZARD_TEMPLATE_MD, STARTER_TEMPLATES_SAFETY_SAFETY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SDD_DESIGN_TEMPLATE_MD, STARTER_TEMPLATES_SDD_HANDOFF_TEMPLATE_YAML, STARTER_TEMPLATES_SDD_PROPOSAL_TEMPLATE_MD, STARTER_TEMPLATES_SDD_PULL_REQUEST_TEMPLATE_MD, STARTER_TEMPLATES_SDD_SPEC_TEMPLATE_MD, STARTER_TEMPLATES_SDD_TASKS_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ABUSE_CASE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_ENCLAVE_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_SECURITY_REQ_TEMPLATE_MD, STARTER_TEMPLATES_SECURITY_THREAT_ACTOR_TEMPLATE_MD, STARTER_TEMPLATES_WORKFLOW_AGENT_HANDOFF_TEMPLATE_MD, STARTER_VSCODE_MCP, STARTER_WORKFLOW_HANDOFF_TEMPLATE, STARTER__GITHUB_PULL_REQUEST_TEMPLATE_MD, SUPPORTED_COVERAGE_FORMATS_HINT, type SafeProbeExecutable, SafeProcessRunnerAdapter, type SarifArtifactLocation, type SarifDocument, type SarifErrorCode, SarifIngestionError, type SarifLevel, type SarifLocation, type SarifMultiformatMessageString, type SarifPhysicalLocation, type SarifRegion, type SarifReportingDescriptor, type SarifResult, type SarifRuleConfiguration, type SarifRun, type SarifToolDriver, type SarifUriBaseId, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomComponent, type SbomDocument, type SbomErrorCode, type SbomGenerateOptions, ScaSbomError, type ScaScanResult, type ScaTool, type ScaVulnerability, type ScanOptions, type ScannedDependency, type ScannedRequirement, SchemasPdacHealthCheck, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrateAllOptions, type SddIntegrateAllResult, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SecuritySuppression, SecurityToolsHealthCheck, SignatureReadinessCheck, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type StarterSchemaEntry, type StarterTemplateEntry, type StepDataTable, type StepDefinitionEntry, type StepHandler, type SubmitReviewReportOptions, type SupportedCiProvider, type SupportedPlatform, TOOL_INSTALL_ALLOWLIST, TS_ESLINT_CONFIG_MJS, TS_STRICT_TSCONFIG, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskKpiSummary, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, TimestampedBackupManagerAdapter, type ToolInstallSpec, ToolchainHealthCheck, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, TransactionManager, type TrivyAsyncResult, UNIT_TEST_SUFFIXES, type UnresolvedLicenseReason, type UntestedFunctionItem, type UntestedUiComponentItem, type UseCaseFlowAuditItem, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, VALID_CODING_RULE_STACKS, type VexAnalysisJustification, type VexAnalysisState, type VexStatement, type VulnerabilityThresholds, WIN_CMD_META_RE, accumulateTaskSummaries, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, buildSafeEnvironment, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, canonicalizeJson, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, compilePatternList, compileTestPatterns, computeAgentPerformanceKpis, computeCanonicalSha256, computeLfSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, deduplicateAndSortPrivacyViolations, deduplicateAndSortSastViolations, deduplicateAndSortViolations, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectPolyglotLoggerCall, detectProfileFromChange, detectProjectEcosystems, detectProjectStacks, detectPromptInjection, emitCiOutput, ensureToolAvailable, ensureTrivyAvailable, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractAllRepoCommitKpis, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, findChangeWorkspaceDir, findLicenseFile, formatAgentKpisMarkdownSection, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, formatTaskKpiRows, generateBranchHierarchyPlan, generateComplianceEvidenceBundle, generateComplianceEvidenceBundleSync, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCodingRulesFilesForStacks, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getReferenceCodingRulesTemplates, getSddAdapter, getToolInstallSpec, inferArtifactTypeFromId, inferMissingTrailers, ingestSarifFiles, ingestSbomFile, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateAllSddChanges, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathOutsideRoot, isPathProtectedFromPatch, isPlaceholderOrIgnored, isPolyglotTestArtifact, isPolyglotUnitTestFile, isProtectedCodingRulesFile, isReportContentSemanticallyEqual, isRequirementArtifact, isReviewerRole, isSemgrepInstalled, isToolAvailable, isToolInstalled, isUiComponentFile, isUiTestFile, isUncOrEmptyPath, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, mergeSbomGaps, normalizeIdentifierToSnakeCase, normalizePath, normalizeScaffoldLanguages, normalizeSpdxLicense, normalizeUri, normalizeWinDrive, orchestrateNativeAstAnalysis, orchestratePolyglotSast, parseCoberturaXmlCoverage, parseCommitTrailers, parseDataAsset, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseGoCoverProfile, parseIngestedSbom, parseIstanbulCoverageSummary, parseJacocoXmlCoverage, parseLcovCoverage, parseLicensePolicy, parseLlvmCovJson, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSarifDocument, parseSarifDocuments, parseSecuritySuppression, parseSpecCatalogScope, parseStrictPurl, parseSyftOutput, parseTasksDoc, parseTasksFromContent, parseTrivyOutput, parseTrivyVulnerabilities, processPackageDir, readCodeCoverageSummary, readFailOnMissingToolFromQualityPolicy, readNormalizedCoverage, readPackageJson, redactSensitiveDiagnostics, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCodingRuleStacks, resolveCurrentGitCommit, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveDisallowedLogFields, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, resolveTrustedBinaryPath, resolveWinCmdSpawn, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeSarifText, sanitizeSbomLicense, sanitizeTestCorpus, scaffoldGherkinSteps, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSbom, scanWithSyft, scanWithTrivy, scanWithTrivyAsync, serializeSarifDocument, slugify, spawnTrustedBinary, stripMaskingCalls, stripVolatileReportMetadata, submitReviewReport, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyBddReportAttestation, verifyLicenses, verifyLicensesAsync, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySastAsync, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };