@aisdlc/core 2.5.1 → 3.0.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.cjs +599 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -11
- package/dist/index.d.ts +55 -11
- package/dist/index.js +597 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1177,6 +1177,33 @@ interface BddFeatureExecutionReport {
|
|
|
1177
1177
|
scenarios: BddScenarioExecution[];
|
|
1178
1178
|
passed: boolean;
|
|
1179
1179
|
}
|
|
1180
|
+
interface InspectRelation {
|
|
1181
|
+
id: string;
|
|
1182
|
+
type: string;
|
|
1183
|
+
direction: 'upstream' | 'downstream' | 'bidirectional';
|
|
1184
|
+
relation: string;
|
|
1185
|
+
title?: string;
|
|
1186
|
+
filePath?: string;
|
|
1187
|
+
}
|
|
1188
|
+
interface InspectResult {
|
|
1189
|
+
found: boolean;
|
|
1190
|
+
query: string;
|
|
1191
|
+
id?: string;
|
|
1192
|
+
title?: string;
|
|
1193
|
+
type?: string;
|
|
1194
|
+
layer?: string;
|
|
1195
|
+
filePath?: string;
|
|
1196
|
+
status?: string;
|
|
1197
|
+
summary: string;
|
|
1198
|
+
upstream: InspectRelation[];
|
|
1199
|
+
downstream: InspectRelation[];
|
|
1200
|
+
relatedItems: InspectRelation[];
|
|
1201
|
+
metrics?: Record<string, unknown>;
|
|
1202
|
+
contentPreview?: string;
|
|
1203
|
+
}
|
|
1204
|
+
interface InspectOptions {
|
|
1205
|
+
rootDir?: string;
|
|
1206
|
+
}
|
|
1180
1207
|
|
|
1181
1208
|
/**
|
|
1182
1209
|
* AI-SDLC: Deterministic Quality Gate Engine (Polyglot Support)
|
|
@@ -1800,16 +1827,18 @@ declare function detectAuthorIdentity(options?: {
|
|
|
1800
1827
|
}): AuthorIdentity;
|
|
1801
1828
|
|
|
1802
1829
|
/**
|
|
1803
|
-
* AI-SDLC: Automated Git Hook Installer for Commit Trailers
|
|
1830
|
+
* AI-SDLC: Automated Git Hook Installer for Commit Trailers and Branch Guard
|
|
1804
1831
|
*/
|
|
1805
1832
|
interface HookInstallResult {
|
|
1806
1833
|
success: boolean;
|
|
1807
1834
|
hookPath?: string;
|
|
1835
|
+
installedHooks?: string[];
|
|
1808
1836
|
error?: string;
|
|
1809
1837
|
}
|
|
1810
|
-
declare const
|
|
1838
|
+
declare const PRE_COMMIT_SCRIPT = "#!/usr/bin/env bash\n# ==============================================================================\n# AI-SDLC: Universal Protected Branches Guard (pre-commit)\n# ==============================================================================\n\nCURRENT_BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --abbrev-ref HEAD 2>/dev/null || echo \"\")\n\nif [ -z \"$CURRENT_BRANCH\" ] || [ \"$CURRENT_BRANCH\" = \"HEAD\" ]; then\n exit 0\nfi\n\n# Protected branches regex: main, master, release/*, release/v*\nif echo \"$CURRENT_BRANCH\" | grep -qE \"^(main|master|release/.*)$\"; then\n echo \"\" >&2\n echo \"\u274C [AI-SDLC Security Guard] BLOCKED: Direct commits to protected branch '$CURRENT_BRANCH' are forbidden!\" >&2\n echo \"--------------------------------------------------------------------------------\" >&2\n echo \"Direct commits on protected branches violate the AI-SDLC 4-Tier Branching Policy.\" >&2\n echo \"You must create and switch to a dedicated working branch before committing:\" >&2\n echo \"\" >&2\n echo \" git checkout -b feat/<CHG-ID>-<slug>\" >&2\n echo \" or\" >&2\n echo \" git checkout -b task/<PARENT-ID>/<TSK-ID>-<slug>\" >&2\n echo \"--------------------------------------------------------------------------------\" >&2\n echo \"\" >&2\n exit 1\nfi\n\nexit 0\n";
|
|
1839
|
+
declare const PREPARE_COMMIT_MSG_SCRIPT = "#!/usr/bin/env bash\n# ==============================================================================\n# AI-SDLC: Automated Commit Trailers Injection Hook\n# ==============================================================================\n\nCOMMIT_MSG_FILE=$1\nCOMMIT_SOURCE=$2\n\n# Bypass if this is an automated merge commit\nif [ \"$COMMIT_SOURCE\" = \"merge\" ]; then\n exit 0\nfi\n\nCURRENT_BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --abbrev-ref HEAD 2>/dev/null || echo \"\")\nif [ -z \"$CURRENT_BRANCH\" ]; then\n exit 0\nfi\n\n# Extract Task-ID and Parent-Ref from 4-tier branch hierarchy\n# Patterns: task/<PARENT-ID>/<TSK-ID>-slug | feat/<FEAT-ID>-slug | bug/<BUG-ID>-slug\nTASK_ID=$(echo \"$CURRENT_BRANCH\" | grep -oE \"TSK-[0-9A-Za-z-]+\" || echo \"\")\nPARENT_REF=$(echo \"$CURRENT_BRANCH\" | grep -oE \"(CHG|FEAT|BUG|FIX|PATCH)-[0-9A-Za-z-]+\" | head -n 1 || echo \"\")\n\nTELEMETRY_FILE=\".ai-sdlc/session-telemetry.json\"\nAUTHOR_TYPE=\"human\"\nAI_MODEL_NAME=\"n/a\"\nPROMPT_TOKENS=0\nCOMPLETION_TOKENS=0\nACTIVE_TIME_SEC=0\n\n# Execute universal IDE-agnostic author detection engine\nDETECTED=$(node packages/cli/bin/aisdlc.js git detect-author 2>/dev/null || npx aisdlc git detect-author 2>/dev/null || node -e \"try { const { detectAuthorIdentity } = require('@aisdlc/core'); const id = detectAuthorIdentity(); console.log([id.authorType, id.model, id.promptTokens, id.completionTokens, id.activeTimeSeconds].join('|')); } catch {}\" 2>/dev/null || echo \"\")\n\nif [ -n \"$DETECTED\" ]; then\n IFS='|' read -r DET_AUTHOR DET_MODEL DET_PROMPT DET_COMPL DET_TIME <<< \"$DETECTED\"\n AUTHOR_TYPE=\"${DET_AUTHOR:-$AUTHOR_TYPE}\"\n AI_MODEL_NAME=\"${DET_MODEL:-$AI_MODEL_NAME}\"\n PROMPT_TOKENS=\"${DET_PROMPT:-$PROMPT_TOKENS}\"\n COMPLETION_TOKENS=\"${DET_COMPL:-$COMPLETION_TOKENS}\"\n ACTIVE_TIME_SEC=\"${DET_TIME:-$ACTIVE_TIME_SEC}\"\nelse\n if [ -n \"$AI_MODEL\" ] || [ -n \"$AI_AGENT_NAME\" ] || [ -n \"$ANTIGRAVITY_AGENT\" ] || [ -n \"$ANTIGRAVITY_AGENT_ID\" ] || [ -n \"$ANTIGRAVITY_CONVERSATION_ID\" ] || [ -n \"$CLAUDE_CODE\" ] || [ -n \"$CURSOR_AGENT\" ] || [ -n \"$WINDSURF_AGENT\" ] || [ -n \"$AIDER_MODEL\" ] || [ -f \"$TELEMETRY_FILE\" ]; then\n AUTHOR_TYPE=\"agent\"\n AI_MODEL_NAME=\"${AI_MODEL:-${AI_AGENT_NAME:-${AIDER_MODEL:-agent-developer}}}\"\n fi\nfi\n\n# Estimate tokens and active time if not provided for agent\nif [ \"$PROMPT_TOKENS\" = \"0\" ] && [ \"$AUTHOR_TYPE\" = \"agent\" ]; then\n CHG_LINES=$(git diff --cached --shortstat 2>/dev/null | grep -oE '[0-9]+ (insertion|deletion)' | awk '{s+=$1} END {print s+0}')\n if [ -n \"$CHG_LINES\" ] && [ \"$CHG_LINES\" -gt 0 ]; then\n COMPLETION_TOKENS=$((CHG_LINES * 10))\n PROMPT_TOKENS=$((2500 + CHG_LINES * 25))\n ACTIVE_TIME_SEC=$((30 + CHG_LINES / 2))\n else\n PROMPT_TOKENS=1000\n COMPLETION_TOKENS=0\n ACTIVE_TIME_SEC=30\n fi\nfi\n\n# Inject missing trailers individually into the commit message\nTRAILERS_TO_ADD=\"\"\n\nif [ -n \"$TASK_ID\" ] && ! grep -qE \"^Task-ID:\" \"$COMMIT_MSG_FILE\" 2>/dev/null; then\n TRAILERS_TO_ADD=\"${TRAILERS_TO_ADD}Task-ID: $TASK_ID\n\"\nfi\nif [ -n \"$PARENT_REF\" ] && ! grep -qE \"^Parent-Ref:\" \"$COMMIT_MSG_FILE\" 2>/dev/null; then\n TRAILERS_TO_ADD=\"${TRAILERS_TO_ADD}Parent-Ref: $PARENT_REF\n\"\nfi\nif ! grep -qE \"^Author-Type:\" \"$COMMIT_MSG_FILE\" 2>/dev/null; then\n TRAILERS_TO_ADD=\"${TRAILERS_TO_ADD}Author-Type: $AUTHOR_TYPE\n\"\nfi\nif [ \"$AUTHOR_TYPE\" = \"agent\" ] && ! grep -qE \"^AI-Model:\" \"$COMMIT_MSG_FILE\" 2>/dev/null; then\n TRAILERS_TO_ADD=\"${TRAILERS_TO_ADD}AI-Model: $AI_MODEL_NAME\n\"\nfi\nif ! grep -qE \"^Prompt-Tokens:\" \"$COMMIT_MSG_FILE\" 2>/dev/null; then\n TRAILERS_TO_ADD=\"${TRAILERS_TO_ADD}Prompt-Tokens: $PROMPT_TOKENS\n\"\nfi\nif ! grep -qE \"^Completion-Tokens:\" \"$COMMIT_MSG_FILE\" 2>/dev/null; then\n TRAILERS_TO_ADD=\"${TRAILERS_TO_ADD}Completion-Tokens: $COMPLETION_TOKENS\n\"\nfi\nif ! grep -qE \"^Active-Time-Seconds:\" \"$COMMIT_MSG_FILE\" 2>/dev/null; then\n TRAILERS_TO_ADD=\"${TRAILERS_TO_ADD}Active-Time-Seconds: $ACTIVE_TIME_SEC\n\"\nfi\n\nif [ -n \"$TRAILERS_TO_ADD\" ]; then\n echo \"\" >> \"$COMMIT_MSG_FILE\"\n printf \"$TRAILERS_TO_ADD\" >> \"$COMMIT_MSG_FILE\"\nfi\n\nif [ -f \"$TELEMETRY_FILE\" ]; then\n rm -f \"$TELEMETRY_FILE\" 2>/dev/null || true\nfi\n";
|
|
1811
1840
|
/**
|
|
1812
|
-
* Installs the AI-SDLC prepare-commit-msg
|
|
1841
|
+
* Installs the AI-SDLC Git hooks (pre-commit & prepare-commit-msg) in .git/hooks.
|
|
1813
1842
|
*/
|
|
1814
1843
|
declare function installGitHooks(rootDir?: string): HookInstallResult;
|
|
1815
1844
|
|
|
@@ -2185,7 +2214,7 @@ declare const STARTER_ARCH_CONTEXT_AND_SCOPE = "---\nid: ARCH-CTX-001\ntype: con
|
|
|
2185
2214
|
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";
|
|
2186
2215
|
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";
|
|
2187
2216
|
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";
|
|
2188
|
-
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-
|
|
2217
|
+
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";
|
|
2189
2218
|
declare const STARTER_ARCH_LEVEL_1_WHITEBOX = "---\nid: ARCH-L1-WHITEBOX-001\ntype: building-blocks-level-1\ntitle: \"05. Level 1 Building Blocks: Overall Whitebox\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 5\nnaf-perspective: \"Services & Systems (Level 1)\"\nbounded-contexts:\n - \"Core Domain Context\"\n - \"Supporting Context\"\ncontains-components:\n - CMP-NAME-001\n - CMP-NAME-002\nsupersedes: null\nsuperseded-by: null\n---\n\n# 05. Building Blocks View: Level 1 Whitebox (arc42 Sec. 5 / NAF Services & Systems)\n\n## 1. Overall System Decomposition (Level 1)\nPresents system decomposition into major subsystems, execution containers, and domain Bounded Contexts.\n\n### 1.1 Level 1 Whitebox Diagram\n```mermaid\ngraph TD\n subgraph BoundedContext_Core[\"Bounded Context: Core Domain\"]\n CMP_INGEST[\"CMP-INGEST: Data Ingestion\"]\n CMP_ENGINE[\"CMP-ENGINE: Rules Engine\"]\n end\n\n subgraph BoundedContext_Audit[\"Bounded Context: Auditing & Telemetry\"]\n CMP_OBSERVABILITY[\"CMP-OBS: Monitoring & Metrics\"]\n CMP_STORAGE[\"CMP-STORAGE: Immutable Storage\"]\n end\n\n Actor[Client / User] -->|External Protocol| CMP_INGEST\n CMP_INGEST -->|Internal Event / IPC| CMP_ENGINE\n CMP_ENGINE -->|Traces / Auditing| CMP_STORAGE\n CMP_OBSERVABILITY -.->|Scrape / Polling| CMP_ENGINE\n```\n\n---\n\n## 2. Bounded Contexts and Root Components Catalog\n\n| Bounded Context | Component ID | Implementation Type | Primary Responsibility |\n| :--- | :--- | :---: | :--- |\n| **Core Domain** | `CMP-INGEST` | `service` | TLS termination, syntactic payload validation, and filtering |\n| **Core Domain** | `CMP-ENGINE` | `service` | Business rules evaluation and deterministic computation |\n| **Auditing** | `CMP-STORAGE` | `composite` | Event persistence and immutable traceability |\n\n---\n\n## 3. Recursive Decomposition into Sub-Levels\nEach listed container or subsystem is detailed in its own component specification (`CMP-*.md`) conforming to `templates/architecture/component.template.md`:\n- **Level 2 (Subsystems / Containers)**: Autonomous services, microservices, daemons.\n- **Level 3 (Execution Units)**: DLLs, native plugins (.so, .dylib), pure domain functions.\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 L1 whitebox definition | CHG-ARCH-001 |\n";
|
|
2190
2219
|
declare const STARTER_ARCH_QUALITY_REQUIREMENTS = "---\nid: ARCH-QUAL-001\ntype: quality-requirements\ntitle: \"10. Quality Requirements and Quality Tree\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 10\nnaf-perspective: \"Quality Perspective\"\ncites-quality-requirements:\n - QR-LATENCY-001\n - QR-AVAILABILITY-001\n - QR-MAINTAINABILITY-001\nsupersedes: null\nsuperseded-by: null\n---\n\n# 10. Quality Requirements (arc42 Sec. 10 / NAF Quality)\n\n## 1. Quality Tree\nHierarchical structure of key system quality attributes based on ISO/IEC 25010:\n\n```mermaid\ngraph TD\n QualityTree[System Quality] --> Performance[Performance Efficiency]\n QualityTree --> Reliability[Reliability & Resilience]\n QualityTree --> Security[Zero Trust Security]\n QualityTree --> Maintainability[As-Code Maintainability]\n\n Performance --> P1[Real-Time Latency: QR-LATENCY-001]\n Reliability --> R1[99.99% Availability: QR-AVAILABILITY-001]\n Security --> S1[Strict Authentication: SEC-REQ-AUTH-001]\n Maintainability --> M1[Cyclomatic Complexity <= 10: quality-policy.yaml]\n```\n\n---\n\n## 2. Assessable Quality Scenarios\nDefinition of concrete scenarios with stimulus, environment, response, and measure:\n\n| Requirement ID | ISO Attribute | Stimulus and Environment | System Response | Objective Measure |\n| :--- | :--- | :--- | :--- | :--- |\n| `QR-LATENCY-001` | Performance | Peak load of 10,000 req/s | Processing and queuing persistence | p95 latency < 50ms |\n| `QR-AVAILABILITY-001` | Reliability | Abrupt crash of 1 worker node | Automatic pod redistribution | Service downtime = 0s |\n| `QR-MAINTAINABILITY-001`| Maintainability | Submodule refactoring | Deterministic Release Gates execution | CC $\\le 10$, LOC $\\le 40$ |\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 quality tree definition | CHG-ARCH-001 |\n";
|
|
2191
2220
|
declare const STARTER_ARCH_RISKS_AND_TECHNICAL_DEBT = "---\nid: ARCH-RISK-001\ntype: risks-and-technical-debt\ntitle: \"11. Architecture Risks and Technical Debt\"\nstatus: proposed # proposed, accepted, deprecated, superseded\nversion: \"1.0.0\"\nschema-version: \"1.0\"\narc42-section: 11\nnaf-perspective: \"Risk & Technical Debt\"\nrisks:\n - RSK-SCALE-001\n - RSK-DEP-002\nsupersedes: null\nsuperseded-by: null\n---\n\n# 11. Risks and Technical Debt (arc42 Sec. 11 / NAF Risk & Debt)\n\n## 1. Architectural Risks Matrix (`RSK-*`)\nAssessment and tracking of identified technical risks:\n\n| Risk ID | Risk Description | Probability | Impact | Mitigation Strategy |\n| :--- | :--- | :---: | :---: | :--- |\n| `RSK-SCALE-001` | Database bottleneck during telemetry bursts | Medium | High | Horizontal partitioning and second-level cache |\n| `RSK-DEP-002` | Stale cryptographic runtime dependencies | Low | Critical | Automated SCA auditing in CI with daily scanning |\n| `RSK-MEM-003` | Memory degradation due to ingestion buffer accumulation | Medium | Medium | Continuous heap metrics monitoring and deterministic restarts |\n\n---\n\n## 2. Technical Debt and Incurred Compromises Log\nDocumentation of temporary shortcuts, provisional decisions, or pending refactorings:\n\n| Debt Item | Affected Component | Trade-off Justification | Payoff / Refactoring Plan |\n| :--- | :--- | :--- | :--- |\n| JSON serialization instead of binary | `CMP-INGEST-001` | Fast initial MVP delivery | Planned migration to Protobuf in release v2.0 |\n| Manual mock in integration tests | `packages/core` | Avoid external broker dependency in CI | Adoption of hermetic testcontainers |\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 risks and technical debt definition | CHG-ARCH-001 |\n";
|
|
@@ -2216,7 +2245,7 @@ interface StarterSchemaEntry {
|
|
|
2216
2245
|
}
|
|
2217
2246
|
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";
|
|
2218
2247
|
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";
|
|
2219
|
-
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-
|
|
2248
|
+
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";
|
|
2220
2249
|
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";
|
|
2221
2250
|
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";
|
|
2222
2251
|
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";
|
|
@@ -2228,7 +2257,7 @@ declare const SCHEMA_SCHEMAS_PRIVACY_PRIVACY_POLICY_SCHEMA_JSON = "{\r\n \"$sch
|
|
|
2228
2257
|
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";
|
|
2229
2258
|
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";
|
|
2230
2259
|
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";
|
|
2231
|
-
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\": [\"draft\", \"active\", \"deprecated\", \"retired\"]\n },\n \"domain-type\": {\n \"type\": \"string\",\n \"enum\": [\"core\", \"supporting\", \"generic\"],\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\": [\"genesis\", \"custom-built\", \"product-rental\", \"commodity\"]\n },\n \"business-model-role\": {\n \"type\": \"string\",\n \"enum\": [\"differentiator\", \"operational\", \"enabler\"]\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\": [\"string\", \"null\"],\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n },\n \"superseded-by\": {\n \"type\": [\"string\", \"null\"],\n \"pattern\": \"^BC-[A-Z0-9]+(-[A-Z0-9]+)*$\"\n }\n },\n \"additionalProperties\": false\n}\n";
|
|
2260
|
+
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";
|
|
2232
2261
|
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";
|
|
2233
2262
|
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";
|
|
2234
2263
|
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";
|
|
@@ -2262,19 +2291,19 @@ interface StarterTemplateEntry {
|
|
|
2262
2291
|
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";
|
|
2263
2292
|
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";
|
|
2264
2293
|
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";
|
|
2265
|
-
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: [
|
|
2294
|
+
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";
|
|
2266
2295
|
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";
|
|
2267
2296
|
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";
|
|
2268
2297
|
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";
|
|
2269
2298
|
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";
|
|
2270
|
-
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\n\n5. **Step 5: Sigstore / Cosign Signature and SLSA Provenance Verification**\n ```bash\n # Verify npm package provenance from registry\n npm audit signatures\n\n # Verify package tarball with Sigstore / Cosign (Keyless via OIDC identity)\n cosign verify-blob \\\n --bundle release-artifacts/package.tgz.bundle \\\n --certificate-identity-regexp \"^https://github.com/organization/repo-name/.*$\" \\\n --certificate-oidc-issuer \"https://token.actions.githubusercontent.com\" \\\n release-artifacts/package.tgz\n\n # Verify SLSA Build Provenance Attestation using GitHub CLI\n gh attestation verify release-artifacts/package.tgz --repo organization/repo-name\n ```\n\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";
|
|
2299
|
+
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";
|
|
2271
2300
|
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";
|
|
2272
2301
|
declare const STARTER_TEMPLATES_PRIVACY_DATA_ASSET_TEMPLATE_MD = "---\r\nid: DATA-ASSET-USER-PROFILE-001\r\ntype: data-asset\r\ntitle: User Profile & Identity Personal Data Asset\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\nclassification: confidential-pii # public, internal, confidential-pii, special-category-sensitive\r\npii-categories:\r\n - identifiers\r\n - contact\r\ndata-subjects:\r\n - ACT-USER-001\r\nfields:\r\n - name: email\r\n sensitivity: pii\r\n masking-strategy: sha256-salt\r\n - name: phone_number\r\n sensitivity: pii\r\n masking-strategy: redact\r\n - name: operator_callsign\r\n sensitivity: internal\r\n masking-strategy: none\r\nretention-period: 365d\r\nerasure-method: crypto-shredding\r\nowner-bounded-context: CMP-IDENTITY-SERVICE-001\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# DATA-ASSET-USER-PROFILE-001: User Profile & Identity Personal Data Asset\r\n\r\n## 1. Data Asset Inventory & Purpose\r\nDescribes the structure, storage medium, and operational boundary of the personal data asset governed under GDPR / ISO 27701.\r\n\r\n## 2. Field-Level Sensitivity & Masking Policy\r\n\r\n| Field Name | Sensitivity | Masking / Pseudonymization Strategy | Allowed in Logs | Allowed in AI Prompts |\r\n| :--- | :--- | :--- | :---: | :---: |\r\n| `email` | `pii` | `sha256-salt` | \u274C No | \u274C No |\r\n| `phone_number` | `pii` | `redact` | \u274C No | \u274C No |\r\n| `operator_callsign` | `internal` | `none` | \u2705 Yes | \u2705 Yes |\r\n\r\n## 3. Storage Limitation & Right to Erasure (GDPR Art. 17)\r\n- **Maximum Retention TTL**: `365d` after account deactivation.\r\n- **Erasure Mechanism**: `crypto-shredding` (destruction of per-subject encryption key and PII column purge).\r\n\r\n---\r\n\r\n## 4. 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-10-17 | Privacy Officer (`agent-privacy-officer`) | Initial personal data asset inventory | CHG-PRIV-001 |\r\n";
|
|
2273
2302
|
declare const STARTER_TEMPLATES_PRIVACY_DPIA_REQUEST_TEMPLATE_MD = "---\r\nid: DPIA-ASSESSMENT-001\r\ntype: dpia-request\r\ntitle: Data Protection Impact Assessment (DPIA / EIPD) Request\r\nstatus: pending-dpo-approval # pending-dpo-approval, approved, rejected\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\nropa-reference: PRIV-ROPA-USER-AUTH-001\r\ndata-assets:\r\n - DATA-ASSET-USER-PROFILE-001\r\nspecial-category-triggers:\r\n - \"GDPR Art. 9 Special Category Data or Automated Profiling\"\r\nresidual-risk-level: MEDIUM # LOW, MEDIUM, HIGH\r\n---\r\n\r\n# Data Protection Impact Assessment (DPIA / EIPD \u2014 GDPR Art. 35)\r\n\r\n## 1. Trigger & Necessity Assessment\r\n- **Associated ROPA**: `PRIV-ROPA-USER-AUTH-001`\r\n- **Data Assets Affected**: `DATA-ASSET-USER-PROFILE-001`\r\n- **Why a DPIA is Mandatory**: Processing involves `special_category_sensitive` data (biometrics, health, precise geolocation) or systematic automated profiling under GDPR Art. 35.\r\n\r\n## 2. Necessity, Proportionality & LINDDUN Risk Matrix\r\n\r\n| LINDDUN Threat Category | Identified Privacy Risk | Intrinsic Risk | Technical Mitigation (`PRIV-REQ-*`) | Residual Risk |\r\n| :--- | :--- | :---: | :--- | :---: |\r\n| **Identifiability** | Re-identification of operator from telemetry streams | HIGH | `PRIV-REQ-MASKING-001` (SHA-256 salted pseudonymization) | LOW |\r\n| **Disclosure of Information** | Plaintext PII leakage in error logs | HIGH | `PRIV-REQ-MASKING-001` (Redaction middleware) | LOW |\r\n\r\n## 3. Mandatory Human Sovereign Signatures (DPO & Legal)\r\n- [ ] **Data Protection Officer (DPO)**: Necessity, proportionality, and GDPR Art. 35 validation\r\n- [ ] **Legal / Privacy Counsel**: Lawful basis and cross-border transfer clauses verified\r\n- [ ] **Security Officer (CISO) / System Architect**: Cryptographic and enclave controls verified\r\n";
|
|
2274
2303
|
declare const STARTER_TEMPLATES_PRIVACY_PRIVACY_REQ_TEMPLATE_MD = "---\r\nid: PRIV-REQ-MASKING-001\r\ntype: privacy-requirement\r\ntitle: Mandatory Pseudonymization and Log Redaction of Operator PII\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\nprivacy-principle: data-minimization # data-minimization, purpose-limitation, storage-limitation, accuracy, integrity-and-confidentiality, transparency-and-consent, data-subject-rights-arco, pseudonymization-anonymization\r\nlinddun-category: identifiability # linkability, identifiability, non-repudiation, detectability, disclosure-of-information, unawareness, non-compliance\r\ngoverns-ropa:\r\n - PRIV-ROPA-USER-AUTH-001\r\nprotects-data-assets:\r\n - DATA-ASSET-USER-PROFILE-001\r\nenforced-in-enclave: SEC-ENC-DMZ-001\r\ncompliance-references:\r\n - \"GDPR-Art-25-Privacy-by-Design\"\r\n - \"GDPR-Art-32-Pseudonymization\"\r\n - \"ISO-27701-A.7.4\"\r\nacceptance-format: gherkin\r\ncucumber-tags:\r\n - \"@PRIV-REQ-MASKING-001\"\r\n - \"@privacy\"\r\n - \"@linddun\"\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# PRIV-REQ-MASKING-001: Mandatory Pseudonymization and Log Redaction of Operator PII\r\n\r\n## 1. Technical Privacy Control Statement\r\nThe system MUST pseudonymize or redact all `confidential-pii` fields (`email`, `phone_number`) prior to emitting structured application logs, telemetry traces, or external AI prompts, and MUST enforce automated TTL purge after `365d`.\r\n\r\n---\r\n\r\n## 2. Upstream Privacy Traceability (PDaC)\r\n\r\n| Dimension | Link / Artifact | Relationship Type | Status |\r\n| :--- | :--- | :--- | :--- |\r\n| **Record of Processing (ROPA)** | `PRIV-ROPA-USER-AUTH-001` | Governs Processing Activity | Validated |\r\n| **Protected Data Asset** | `DATA-ASSET-USER-PROFILE-001` | Enforces Field Masking & TTL | Validated |\r\n\r\n---\r\n\r\n## 3. Privacy Verification Criteria in Gherkin Format (Cucumber Privacy Tests)\r\n\r\n```gherkin\r\n@PRIV-REQ-MASKING-001 @privacy @linddun\r\nFeature: Personal Data Pseudonymization and Zero-PII Telemetry Logging\r\n As a Data Protection Officer (DPO)\r\n I want all personal identifiers to be redacted or salted-hashed before logging\r\n So that application logs and telemetry never expose raw personal data\r\n\r\n Scenario: Structured logger redacts PII fields automatically (Nominal Privacy Control)\r\n Given an authenticated operator session with email \"operator@example.com\" and phone \"+34600112233\"\r\n When the telemetry ingestion service emits an audit log entry\r\n Then the serialized log payload must not contain the literal string \"operator@example.com\"\r\n And the serialized log payload must not contain the literal string \"+34600112233\"\r\n And the email field must be replaced by a deterministic SHA-256 salted pseudonym\r\n\r\n Scenario: Right to erasure purges expired or revoked subject records\r\n Given a personal data record for subject \"ACT-USER-001\" exceeding the \"365d\" retention TTL\r\n When the automated retention enforcement job executes\r\n Then the personal data fields must be irreversibly erased via crypto-shredding\r\n```\r\n\r\n---\r\n\r\n## 4. 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-10-17 | Privacy Officer (`agent-privacy-officer`) | Initial privacy control specification | CHG-PRIV-001 |\r\n";
|
|
2275
2304
|
declare const STARTER_TEMPLATES_PRIVACY_PRIVACY_ROPA_TEMPLATE_MD = "---\r\nid: PRIV-ROPA-USER-AUTH-001\r\ntype: privacy-ropa\r\ntitle: Record of Processing Activity for Operator Authentication and Session Audit\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\nlawful-basis: contract # consent, contract, legal-obligation, vital-interests, public-task, legitimate-interests\r\nspecial-category-condition: null\r\nprocessing-purpose: \"Authenticate authorized operators and maintain tamper-evident operational session audit trails.\"\r\nuse-cases:\r\n - UC-ACTION-001\r\ndata-assets:\r\n - DATA-ASSET-USER-PROFILE-001\r\ndata-subjects:\r\n - ACT-USER-001\r\nretention-ttl: 365d\r\ncross-border-transfer: false\r\ntransfer-safeguards: null\r\nsubprocessors: []\r\ndpia-required: false\r\ndpia-reference: null\r\nmitigated-by:\r\n - PRIV-REQ-MASKING-001\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# PRIV-ROPA-USER-AUTH-001: Record of Processing Activity (GDPR Art. 30)\r\n\r\n## 1. Processing Activity Summary & Lawful Basis\r\n- **Lawful Basis (GDPR Art. 6.1)**: `contract` \u2014 Necessary for the performance of the operator service agreement.\r\n- **Purpose of Processing**: Authenticate authorized operators and maintain tamper-evident operational session audit trails.\r\n\r\n## 2. Linked Product & Data Artifacts\r\n\r\n| Dimension | Artifact ID | Relationship |\r\n| :--- | :--- | :--- |\r\n| **Triggering Use Cases** | `UC-ACTION-001` | Initiates personal data collection/processing |\r\n| **Data Assets Processed** | `DATA-ASSET-USER-PROFILE-001` | Personal data fields subject to minimization |\r\n| **Data Subjects** | `ACT-USER-001` | Natural persons whose data is processed |\r\n| **Governing Privacy Controls** | `PRIV-REQ-MASKING-001` | Technical privacy-by-design controls |\r\n\r\n## 3. International Transfers & Subprocessors\r\n- **Cross-Border Transfer Outside EEA**: `false`\r\n- **Authorized Subprocessors**: None (In-house processing within `SEC-ENC-DMZ-001`).\r\n\r\n---\r\n\r\n## 4. 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-10-17 | Privacy Officer (`agent-privacy-officer`) | Initial GDPR Art. 30 ROPA entry | CHG-PRIV-001 |\r\n";
|
|
2276
2305
|
declare const STARTER_TEMPLATES_PRODUCT_ACTOR_TEMPLATE_MD = "---\r\nid: ACT-NAME-001\r\ntype: actor\r\ntitle: Descriptive Actor Title\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\nrole-type: human-user # human-user, ai-agent, external-system, sensor-iot\r\ndescription: One-sentence summary of the role this actor performs in the system.\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# ACT-NAME-001: Descriptive Actor Title\r\n\r\n## 1. Profile and Responsibility\r\nDescribes who this actor is, their operational context, and what goals they pursue when interacting with the product.\r\n\r\n## 2. System Touchpoints\r\n- Interaction channels (Web UI, REST API, WebSocket, Messaging).\r\n- Privilege level and latency/availability expectations.\r\n\r\n---\r\n\r\n## 3. 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-03 | Product Owner / Analyst | Initial actor profile creation | CHG-INIT-001 |\r\n";
|
|
2277
|
-
declare const STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD = "---\nid: BC-NAME-001\ntype: bounded-context\ntitle: \"Bounded Context Name\"\nstatus: draft\nversion: \"1.0.0\"\nschema-version: \"1.0\"\ndomain-type: core\nstrategic-classification:\n evolutionary-stage: custom-built\n business-model-role: differentiator\nresponsibilities:\n - \"Primary domain capability or boundary responsibility\"\nubiquitous-language-terms:\n - TERM-NAME-001\ncontext-mapping:\n upstream-dependencies: []\n downstream-dependents: []\n integration-patterns:\n - pattern: Open Host Service / Published Language\n related-context: BC-ANOTHER-001\ncomponents-involved:\n - CMP-NAME-001\nsupersedes: null\nsuperseded-by: null\n---\n\n# BC-NAME-001: Bounded Context Name\n\n## 1. Context Purpose and Scope\nExecutive summary and clear linguistic boundary defining what is inside vs. outside this Bounded Context according to Domain-Driven Design (DDD).\n\n### 1.1 Strategic Domain Classification\n- **Domain Type**: `core` (Core Domain / Supporting Subdomain / Generic Subdomain)\n- **Evolutionary Stage**: `custom-built` (Genesis / Custom-Built / Product / Commodity - Wardley Mapping)\n- **Business Role**: Key differentiator creating competitive advantage for the product.\n\n---\n\n## 2. Ubiquitous Language & Domain Invariants\n- **Core Entities & Aggregates**: High-level domain concepts encapsulated within this boundary.\n- **Glossary References**:\n - `TERM-NAME-001`: Primary ubiquitous term definition.\n- **Domain Invariants**: Critical business rules (`BR-*`) enforced exclusively within this boundary.\n\n---\n\n## 3. Context Mapping & Integration Relationships\nRelationships with adjacent Bounded Contexts:\n- **Upstream Contexts**: Contexts providing domain events, APIs, or contracts.\n- **Downstream Contexts**: Contexts consuming models from this boundary.\n- **Anti-Corruption Layers (ACL)**: Translations safeguarding ubiquitous language from external contamination.\n\n---\n\n## 4. Architecture Mapping\n- **Physical Components (`CMP-*`)**: Components implementing aggregates, services, or adapters within this context.\n- **Security Enclaves (`SEC-ENC-*`)**: Execution boundary or isolation tier.\n\n---\n\n## 5. Revision History\n\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\n| :--- | :--- | :--- | :--- | :--- |\n| **1.0.0** | YYYY-MM-DD | Product Analyst / Architect | Initial Bounded Context definition | CHG-INIT-001 |\n";
|
|
2306
|
+
declare const STARTER_TEMPLATES_PRODUCT_BOUNDED_CONTEXT_TEMPLATE_MD = "---\r\nid: BC-NAME-001\r\ntype: bounded-context\r\ntitle: \"Bounded Context Name\"\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\ndomain-type: core\r\nstrategic-classification:\r\n evolutionary-stage: custom-built\r\n business-model-role: differentiator\r\nresponsibilities:\r\n - \"Primary domain capability or boundary responsibility\"\r\nubiquitous-language-terms:\r\n - TERM-NAME-001\r\ncontext-mapping:\r\n upstream-dependencies: []\r\n downstream-dependents: []\r\n integration-patterns:\r\n - pattern: Open Host Service / Published Language\r\n related-context: BC-ANOTHER-001\r\ncomponents-involved:\r\n - CMP-NAME-001\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# BC-NAME-001: Bounded Context Name\r\n\r\n## 1. Context Purpose and Scope\r\nExecutive summary and clear linguistic boundary defining what is inside vs. outside this Bounded Context according to Domain-Driven Design (DDD).\r\n\r\n### 1.1 Strategic Domain Classification\r\n- **Domain Type**: `core` (Core Domain / Supporting Subdomain / Generic Subdomain)\r\n- **Evolutionary Stage**: `custom-built` (Genesis / Custom-Built / Product / Commodity - Wardley Mapping)\r\n- **Business Role**: Key differentiator creating competitive advantage for the product.\r\n\r\n---\r\n\r\n## 2. Ubiquitous Language & Domain Invariants\r\n- **Core Entities & Aggregates**: High-level domain concepts encapsulated within this boundary.\r\n- **Glossary References**:\r\n - `TERM-NAME-001`: Primary ubiquitous term definition.\r\n- **Domain Invariants**: Critical business rules (`BR-*`) enforced exclusively within this boundary.\r\n\r\n---\r\n\r\n## 3. Context Mapping & Integration Relationships\r\nRelationships with adjacent Bounded Contexts:\r\n- **Upstream Contexts**: Contexts providing domain events, APIs, or contracts.\r\n- **Downstream Contexts**: Contexts consuming models from this boundary.\r\n- **Anti-Corruption Layers (ACL)**: Translations safeguarding ubiquitous language from external contamination.\r\n\r\n---\r\n\r\n## 4. Architecture Mapping\r\n- **Physical Components (`CMP-*`)**: Components implementing aggregates, services, or adapters within this context.\r\n- **Security Enclaves (`SEC-ENC-*`)**: Execution boundary or isolation tier.\r\n\r\n---\r\n\r\n## 5. Revision History\r\n\r\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\r\n| :--- | :--- | :--- | :--- | :--- |\r\n| **1.0.0** | YYYY-MM-DD | Product Analyst / Architect | Initial Bounded Context definition | CHG-INIT-001 |\r\n";
|
|
2278
2307
|
declare const STARTER_TEMPLATES_PRODUCT_BUSINESS_RULE_TEMPLATE_MD = "---\r\nid: BR-DOMAIN-001\r\ntype: business-rule\r\ntitle: Business Rule Name\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\nenforcement-level: strict-invariant # strict-invariant, override-with-approval, guideline\r\ndefined-in: BC-CONTEXT-001\r\nuses-terms:\r\n - TERM-TERM-001\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# BR-DOMAIN-001: Business Rule Name\r\n\r\n## 1. Rule Definition\r\nFormally establishes the business invariant that must not be violated under any circumstance.\r\n\r\n## 2. Business Rationale and Consequences\r\n- **Why it exists**: Economic, regulatory, or technical justification for the constraint.\r\n- **Action upon violation**: Immediate transaction rejection with a formal error code.\r\n\r\n---\r\n\r\n## 3. 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-03 | Product Owner / Analyst | Initial business rule definition | CHG-INIT-001 |\r\n";
|
|
2279
2308
|
declare const STARTER_TEMPLATES_PRODUCT_JOURNEY_TEMPLATE_MD = "---\r\nid: JRN-NAME-001\r\ntype: journey\r\ntitle: Descriptive User or Operator Journey Title\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\npersona: ACT-OPERATOR-001\r\nstages:\r\n - \"Discovery and Planning\"\r\n - \"Configuration and Pre-flight\"\r\n - \"Mission Execution\"\r\n - \"Post-Analysis and Wrap-up\"\r\ntouchpoints:\r\n - \"Mission planning web portal\"\r\n - \"Ground control station (GCS)\"\r\n - \"Real-time telemetry dashboard\"\r\n - \"Flight report exporter\"\r\nrelated-use-cases:\r\n - UC-PLAN-MISSION-001\r\n - UC-MONITOR-FLIGHT-001\r\npain-points:\r\n - \"Latency when loading offline navigation maps\"\r\n - \"Complexity in manual flight plan reconciliation\"\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# JRN-NAME-001: Descriptive User or Operator Journey Title\r\n\r\n## 1. Actor / Primary Persona Profile\r\n- **Protagonist Actor**: `ACT-OPERATOR-001`\r\n- **Main Goal**: Complete operational workflow with high efficiency, safety, and real-time visibility.\r\n\r\n---\r\n\r\n## 2. Journey Stages Map\r\n\r\n| Stage | User Goal | Touchpoints | Frictions / Pain Points |\r\n| :--- | :--- | :--- | :--- |\r\n| **1. Discovery and Planning** | Design route and validate operational constraints | Mission planning web portal | Complexity in manual flight plan reconciliation |\r\n| **2. Configuration and Pre-flight** | Verify subsystem health and link integrity | Ground control station (GCS) | Latency when loading offline navigation maps |\r\n| **3. Mission Execution** | Supervise telemetry and respond to alerts | Real-time telemetry dashboard | None detected in nominal flow |\r\n| **4. Post-Analysis and Wrap-up** | Export mission logs and performance metrics | Flight report exporter | Telemetry consolidation latency |\r\n\r\n---\r\n\r\n## 3. Traceability to Use Cases and Product\r\n\r\n- `UC-PLAN-MISSION-001`: Planning and validation of safe corridors.\r\n- `UC-MONITOR-FLIGHT-001`: Ingestion and visualization of real-time telemetry.\r\n\r\n---\r\n\r\n## 4. Revision History\r\n\r\n| Version | Date | Author / Agent | Change Description | Change Reference (Change/PR) |\r\n| :--- | :--- | :--- | :--- | :--- |\r\n| **1.0.0** | 2026-09-23 | Product Manager / UX Lead | Initial operator journey definition | CHG-INIT-001 |\r\n";
|
|
2280
2309
|
declare const STARTER_TEMPLATES_PRODUCT_REQUIREMENT_TEMPLATE_MD = "---\r\n# Valid prefixes: FR- (Functional), QR- (Quality), CON- (Constraint)\r\nid: FR-FEATURE-001\r\ntype: requirement\r\ntitle: Concise Requirement Title\r\nstatus: draft\r\nversion: \"1.0.0\"\r\nschema-version: \"1.0\"\r\ncategory: functional # functional, quality, constraint\r\n\r\n# 1. PRODUCT TRACEABILITY (Upstream)\r\nderives-from:\r\n - UC-ACTION-001\r\n\r\n# 2. METHOD AND ACCEPTANCE CRITERIA\r\nverifiable-by: cucumber-bdd # cucumber-bdd, automated-unit-test, integration-test, performance-benchmark\r\nacceptance-format: gherkin # gherkin, declarative-prose\r\ncucumber-tags:\r\n - \"@FR-FEATURE-001\"\r\n - \"@automated\"\r\n - \"@regression\"\r\n\r\nsupersedes: null\r\nsuperseded-by: null\r\n---\r\n\r\n# FR-FEATURE-001: Concise Requirement Title\r\n\r\n## 1. Normative Statement\r\nThe system MUST [unambiguous and atomic description of expected behavior under specific conditions].\r\n\r\n---\r\n\r\n## 2. Upstream Traceability\r\n\r\n| Dimension | Link / Artifact | Relationship Type | Status |\r\n| :--- | :--- | :--- | :--- |\r\n| **Product (Upstream)** | `UC-ACTION-001` | Derived from Use Case | Validated |\r\n\r\n> *Note: Traceability toward Architecture and Testing is maintained inversely; services declare `satisfies-requirements` and test suites tag or reference this requirement.*\r\n\r\n---\r\n\r\n## 3. Acceptance Criteria in Gherkin (Cucumber) Format\r\n\r\n```gherkin\r\n@FR-FEATURE-001 @automated @regression\r\nFeature: Concise Requirement Title\r\n As a [primary actor / user role]\r\n I want [functional system capability]\r\n So that [obtain expected business benefit or value]\r\n\r\n Background:\r\n Given the system is in operational state\r\n And the actor is authenticated with valid permissions\r\n\r\n Scenario: Successful nominal flow\r\n Given the system has initial precondition configured\r\n When the actor submits a request with valid parameters\r\n Then the system processes the operation successfully\r\n And the resource status updates to \"ACTIVE\"\r\n And the corresponding domain event is emitted\r\n\r\n Scenario Outline: Business rule validation and edge cases\r\n Given data input with value \"<input>\"\r\n When requirement validation is processed\r\n Then the response must return status code \"<status_code>\"\r\n And the descriptive message must be \"<message>\"\r\n\r\n Examples:\r\n | input | status_code | message |\r\n | correct_value | 200 | SUCCESSFUL_OPERATION |\r\n | invalid_value | 400 | ERROR_INVALID_PARAMETER |\r\n | limit_exceeded | 422 | ERROR_LIMIT_EXCEEDED |\r\n```\r\n\r\n---\r\n\r\n## 4. 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-03 | Product Owner / QA | Initial specification with complete 360\u00B0 traceability | CHG-INIT-001 |\r\n";
|
|
@@ -2355,7 +2384,7 @@ declare const STARTER_WORKFLOW_HANDOFF_TEMPLATE = "# Workflow Handoff Template\n
|
|
|
2355
2384
|
declare const STARTER_GITLAB_CI = "# ==============================================================================\n# AI-SDLC: GitLab CI/CD Pipeline Template\n# ==============================================================================\n\nstages:\n - validate\n - test\n - integrate\n\ndefault:\n image: node:20\n\nvariables:\n PNPM_HOME: \"$CI_PROJECT_DIR/.pnpm\"\n\nbefore_script:\n - corepack enable\n - corepack prepare pnpm@10 --activate\n - pnpm config set store-dir .pnpm-store\n - pnpm install --frozen-lockfile\n - pnpm approve-builds --all\n - pnpm run build\n\nquality-gates:\n stage: validate\n rules:\n - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'\n - if: '$CI_COMMIT_BRANCH =~ /^release\\/.*/'\n script:\n - npx @aisdlc/cli check\n\ntest-and-verify:\n stage: test\n rules:\n - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'\n - if: '$CI_COMMIT_BRANCH =~ /^release\\/.*/'\n script:\n - pnpm test\n - npx @aisdlc/cli verify all\n\nsdd-canonical-integration:\n stage: integrate\n rules:\n - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == \"push\"'\n - if: '$CI_COMMIT_BRANCH =~ /^release\\/.*/ && $CI_PIPELINE_SOURCE == \"push\"'\n - if: '$CI_PIPELINE_SOURCE == \"web\"'\n variables:\n GIT_STRATEGY: clone\n GIT_DEPTH: 0\n script:\n - npx @aisdlc/cli sdd integrate --auto || true\n - |\n git config user.name \"gitlab-ci-bot\"\n git config user.email \"gitlab-ci-bot@noreply.gitlab.com\"\n git add -A\n if ! git diff --cached --quiet; then\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\n git push \"https://oauth2:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git\" \"HEAD:${CI_COMMIT_BRANCH}\"\n fi\n";
|
|
2356
2385
|
declare const STARTER_AZURE_PIPELINES = "# ==============================================================================\n# AI-SDLC: Azure DevOps Pipelines Template\n# ==============================================================================\n\ntrigger:\n branches:\n include:\n - main\n - release/*\n\npr:\n branches:\n include:\n - main\n - release/*\n\npool:\n vmImage: 'ubuntu-latest'\n\nstages:\n - stage: ValidateAndTest\n displayName: 'Verificaci\u00F3n y Quality Gates'\n jobs:\n - job: QualityAndTests\n displayName: 'Quality Gates, Linting & Tests'\n steps:\n - task: NodeTool@0\n inputs:\n versionSpec: '20.x'\n displayName: 'Instalar Node.js 20'\n\n - script: |\n corepack enable\n corepack prepare pnpm@10 --activate\n pnpm install --frozen-lockfile\n pnpm approve-builds --all\n pnpm run build\n displayName: 'Instalar dependencias y compilar monorepo'\n\n - script: |\n npx @aisdlc/cli check\n displayName: 'Ejecutar pre-vuelo AI-SDLC (check)'\n\n - script: |\n pnpm test\n displayName: 'Ejecutar suite de pruebas unitarias'\n\n - script: |\n npx @aisdlc/cli verify all\n displayName: 'Ejecutar Release Gate Completo (verify all)'\n\n - stage: CanonicalIntegration\n displayName: 'Integraci\u00F3n Can\u00F3nica Post-Merge SDD'\n dependsOn: ValidateAndTest\n condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/main', 'refs/heads/release/'))\n jobs:\n - job: SddPromote\n displayName: 'Consolidar especificaciones can\u00F3nicas SDD'\n steps:\n - checkout: self\n persistCredentials: true\n fetchDepth: 0\n\n - task: NodeTool@0\n inputs:\n versionSpec: '20.x'\n displayName: 'Instalar Node.js 20'\n\n - script: |\n corepack enable\n corepack prepare pnpm@10 --activate\n pnpm install --frozen-lockfile\n pnpm approve-builds --all\n pnpm run build\n displayName: 'Instalar dependencias'\n\n - script: |\n npx @aisdlc/cli sdd integrate --auto || true\n name: SddIntegrate\n displayName: 'Detectar e integrar incremento SDD'\n\n - script: |\n git config user.name \"azure-pipelines[bot]\"\n git config user.email \"azure-pipelines[bot]@dev.azure.com\"\n git add -A\n if ! git diff --cached --quiet; then\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\n git push origin HEAD:$(Build.SourceBranchName)\n fi\n displayName: 'Sincronizar cambios can\u00F3nicos en repositorio'\n";
|
|
2357
2386
|
declare const STARTER_BITBUCKET_PIPELINES = "# ==============================================================================\n# AI-SDLC: Bitbucket Pipelines Template\n# ==============================================================================\n\nimage: node:20\n\ndefinitions:\n steps:\n - step: &build-and-verify\n name: Quality Gates & Verification\n script:\n - corepack enable\n - corepack prepare pnpm@10 --activate\n - pnpm config set store-dir $BITBUCKET_CLONE_DIR/.pnpm-store\n - pnpm install --frozen-lockfile\n - pnpm approve-builds --all\n - pnpm run build\n - npx @aisdlc/cli check\n - pnpm test\n - npx @aisdlc/cli verify all\n\n - step: &sdd-integrate\n name: SDD Canonical Integration\n script:\n - corepack enable\n - corepack prepare pnpm@10 --activate\n - pnpm config set store-dir $BITBUCKET_CLONE_DIR/.pnpm-store\n - pnpm install --frozen-lockfile\n - pnpm approve-builds --all\n - pnpm run build\n - npx @aisdlc/cli sdd integrate --auto || true\n - |\n git config user.name \"bitbucket-pipelines[bot]\"\n git config user.email \"pipelines[bot]@bitbucket.org\"\n git add -A\n if ! git diff --cached --quiet; then\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\n git push origin HEAD:$BITBUCKET_BRANCH\n fi\n\npipelines:\n pull-requests:\n '**':\n - step: *build-and-verify\n\n branches:\n main:\n - step: *build-and-verify\n - step: *sdd-integrate\n 'release/*':\n - step: *build-and-verify\n - step: *sdd-integrate\n";
|
|
2358
|
-
declare const STARTER_GITHUB_CI = "name: CI - AI-SDLC Quality Gates & Testing\n\non:\n push:\n branches: [ main ]\n pull_request:\n branches: [ main ]\n\njobs:\n verify-and-test:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n node-version: [
|
|
2387
|
+
declare const STARTER_GITHUB_CI = "name: CI - AI-SDLC Quality Gates & Testing\n\non:\n push:\n branches: [ main ]\n pull_request:\n branches: [ main ]\n\njobs:\n verify-and-test:\n runs-on: ubuntu-latest\n strategy:\n matrix:\n node-version: [ 20.x, 22.x ]\n\n steps:\n - name: Checkout Code\n uses: actions/checkout@v4\n\n - name: Install pnpm\n uses: pnpm/action-setup@v4\n with:\n version: 10\n\n - name: Setup Node.js ${{ matrix.node-version }}\n uses: actions/setup-node@v4\n with:\n node-version: ${{ matrix.node-version }}\n\n - name: Install Dependencies\n run: |\n pnpm install --frozen-lockfile\n pnpm approve-builds --all\n\n - name: Build Packages\n run: pnpm run build\n\n - name: Run Vitest Unit & Integration Suites\n run: pnpm test\n\n - name: AI-SDLC Quality Gate & Full Verification\n run: npx @aisdlc/cli verify all\n";
|
|
2359
2388
|
declare const STARTER_GITHUB_PR_KPI = "name: AI-SDLC PR KPI Aggregator\n\non:\n pull_request:\n types: [opened, synchronize, reopened]\n\npermissions:\n contents: read\n pull-requests: write\n\njobs:\n aggregate-kpis:\n name: Aggregate PR KPIs & Telemetry\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout Repository\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n\n - name: Install pnpm\n uses: pnpm/action-setup@v4\n with:\n version: 10\n\n - name: Setup Node.js\n uses: actions/setup-node@v4\n with:\n node-version: 20\n\n - name: Install Dependencies\n run: |\n pnpm install --frozen-lockfile\n\n - name: Calculate and Emit PR KPIs\n id: kpi\n run: |\n npx @aisdlc/cli kpi pr --base origin/${{ github.base_ref }} --head HEAD >> $GITHUB_STEP_SUMMARY\n";
|
|
2360
2389
|
declare const STARTER_GITHUB_DEPLOY_DASHBOARD = "name: Deploy AI-SDLC Dashboard to GitHub Pages\n\non:\n push:\n branches:\n - main\n workflow_dispatch:\n\npermissions:\n contents: read\n pages: write\n id-token: write\n\nconcurrency:\n group: pages\n cancel-in-progress: false\n\njobs:\n deploy-dashboard:\n name: Build & Publish Interactive Dashboard\n runs-on: ubuntu-latest\n environment:\n name: github-pages\n url: ${{ steps.deployment.outputs.page_url }}\n\n steps:\n - name: Checkout Code\n uses: actions/checkout@v4\n with:\n fetch-depth: 0\n\n - name: Setup Node.js\n uses: actions/setup-node@v4\n with:\n node-version: 20\n\n - name: Generate AI-SDLC Interactive Dashboard\n run: |\n mkdir -p reports\n npx --yes @aisdlc/cli report dashboard --output reports/index.html\n cp reports/index.html reports/dashboard.html\n touch reports/.nojekyll\n\n - name: Setup GitHub Pages\n uses: actions/configure-pages@v5\n\n - name: Upload Pages Artifact\n uses: actions/upload-pages-artifact@v3\n with:\n path: reports\n\n - name: Deploy to GitHub Pages\n id: deployment\n uses: actions/deploy-pages@v4\n\n - name: Emit Summary to GitHub Actions\n if: always() && steps.deployment.outcome == 'success'\n run: |\n echo \"### \uD83C\uDF10 AI-SDLC Interactive Dashboard Published\" >> $GITHUB_STEP_SUMMARY\n echo \"\" >> $GITHUB_STEP_SUMMARY\n echo \"The interactive PDaC / RTM graph, Quality Gate telemetry, and release metrics are live at:\" >> $GITHUB_STEP_SUMMARY\n echo \"\" >> $GITHUB_STEP_SUMMARY\n echo \"\uD83D\uDC49 **[Open Live Dashboard](${{ steps.deployment.outputs.page_url }})**\" >> $GITHUB_STEP_SUMMARY\n";
|
|
2361
2390
|
declare const STARTER_GITHUB_SDD_INTEGRATE = "name: SDD Canonical Integration on Merge\n\non:\n pull_request:\n types: [closed]\n branches:\n - main\n - 'release/**'\n workflow_dispatch:\n inputs:\n change_id:\n description: 'Manual SDD change ID to integrate (e.g. chg-001-telemetry)'\n required: false\n type: string\n\npermissions:\n contents: write\n pull-requests: read\n\nconcurrency:\n group: sdd-integrate-${{ github.event.pull_request.base.ref || github.ref_name }}\n cancel-in-progress: false\n\njobs:\n integrate-sdd:\n name: SDD Canonical Integration\n if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout Repository\n uses: actions/checkout@v4\n with:\n ref: ${{ github.event.pull_request.base.ref || github.ref_name }}\n fetch-depth: 0\n token: ${{ secrets.GITHUB_TOKEN }}\n\n - name: Install pnpm\n uses: pnpm/action-setup@v4\n with:\n version: 10\n\n - name: Setup Node.js\n uses: actions/setup-node@v4\n with:\n node-version: 20\n\n - name: Install Dependencies\n run: |\n pnpm install --frozen-lockfile\n pnpm approve-builds --all\n\n - name: Build Packages\n run: pnpm run build\n\n - name: Detect and Integrate SDD Change\n id: integrate\n env:\n PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}\n PR_TITLE: ${{ github.event.pull_request.title }}\n PR_BODY: ${{ github.event.pull_request.body }}\n MANUAL_CHANGE_ID: ${{ github.event.inputs.change_id }}\n run: |\n npx @aisdlc/cli sdd integrate --auto || true\n\n - name: Commit and Push Canonical Baseline Changes\n run: |\n git config user.name \"github-actions[bot]\"\n git config user.email \"github-actions[bot]@users.noreply.github.com\"\n git add -A\n if ! git diff --cached --quiet; then\n git commit -m \"chore(sdd): integrate changes into canonical baseline [skip ci]\"\n TARGET_BRANCH=\"${{ github.event.pull_request.base.ref || github.ref_name }}\"\n MAX_RETRIES=3\n RETRY_COUNT=0\n DELAY=2\n\n while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do\n echo \"Synchronizing with remote branch $TARGET_BRANCH (pull --rebase)...\"\n git pull --rebase origin \"$TARGET_BRANCH\"\n if git push origin \"$TARGET_BRANCH\"; then\n echo \"\u2714 Canonical integration committed and synchronized in repository.\"\n exit 0\n fi\n RETRY_COUNT=$((RETRY_COUNT + 1))\n if [ $RETRY_COUNT -lt $MAX_RETRIES ]; then\n echo \"\u26A0 Push rejected (concurrency detected). Retrying in ${DELAY}s (attempt $RETRY_COUNT/$MAX_RETRIES)...\"\n sleep $DELAY\n DELAY=$((DELAY * 2))\n fi\n done\n\n echo \"\u274C Error: Failed to push canonical integration after $MAX_RETRIES attempts.\"\n exit 1\n else\n echo \"\u2139 No pending modifications generated in working tree.\"\n fi\n";
|
|
@@ -2488,4 +2517,19 @@ declare function resolveDeterministicDate(rootDir?: string): Date;
|
|
|
2488
2517
|
*/
|
|
2489
2518
|
declare function generateDeterministicUuidV5(name: string, namespace?: string): string;
|
|
2490
2519
|
|
|
2491
|
-
export { ALL_ARCHITECTURE_TEMPLATES, type ActiveTaskMatch, 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 BddFeatureExecutionReport, type BddScenarioExecution, type BddStepExecution, BddStepRegistry, type BddVariantCoverage, type BranchClassificationResult, type BranchHierarchyPlan, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CiProvider, type CodeCoverageSummary, type CommitKpiRecord, type CommitTrailers, type ContractTraceAudit, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CycloneDxVulnerability, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DataAssetSummary, type DesignContractDeclaration, type DiffLineItem, type DlpPolicy, type DlpRule, type DlpSanitizeResult, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type ExtractedFeature, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, type GenerateSarifOptions, type GherkinExtractionOptions, type GherkinExtractionResult, type GherkinSyncCheckResult, type GitCheckoutTaskOptions, type GitCheckoutTaskResult, type GovernanceOptions, type GovernanceResult, type GraphElementsResult, type GraphNodeLayer, type GraphNodeStatus, type GraphNodeType, type HookInstallResult, type InitProjectOptions, type InitProjectResult, type JsonSchemaRule, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, type LanguageAstReport, type LicensePolicy, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type LifecycleSkillTemplate, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type ModelDefectStats, type NativeAstOptions, OpenSpecAdapter, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, type PackageJsonInfo, type ParsedFeatureDocument, type ParsedScenarioBlock, type ParsedStepItem, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacInvalidAnchor, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PdacUnresolvedCitation, type PiiSastRule, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type PrivacyClassificationRule, type PrivacyFindingType, type PrivacyPolicy, type PrivacyRopaSummary, type PrivacyVerifierOptions, type PrivacyVerifierResult, type PrivacyViolation, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type PromptInjectionFinding, type QualityBaseline, type QualityBaselineEntry, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, 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, SPECIALIZED_AGENT_TEMPLATES, 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_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, type SarifArtifactLocation, type SarifDocument, type SarifLevel, type SarifLocation, type SarifMultiformatMessageString, type SarifPhysicalLocation, type SarifRegion, type SarifReportingDescriptor, type SarifResult, type SarifRuleConfiguration, type SarifRun, type SarifToolDriver, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomGenerateOptions, type ScaTool, type ScaVulnerability, type ScanOptions, type ScannedDependency, type ScannedRequirement, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SecuritySuppression, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type StarterSchemaEntry, type StarterTemplateEntry, type StepDataTable, type StepDefinitionEntry, type StepHandler, type SupportedCiProvider, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, UNIT_TEST_SUFFIXES, type UntestedFunctionItem, type UseCaseFlowAuditItem, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, type VexAnalysisJustification, type VexAnalysisState, type VexStatement, type VulnerabilityThresholds, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, computeCanonicalSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectProfileFromChange, detectPromptInjection, emitCiOutput, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatPrKpiMarkdown, formatReleaseKpiMarkdown, generateBranchHierarchyPlan, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getSddAdapter, inferArtifactTypeFromId, inferMissingTrailers, initProject, injectKpisIntoPrBody, installGitHooks, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathProtectedFromPatch, isPlaceholderOrIgnored, isReportContentSemanticallyEqual, isRequirementArtifact, isSemgrepInstalled, isToolAvailable, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, normalizePath, normalizeSpdxLicense, normalizeUri, orchestrateNativeAstAnalysis, parseCommitTrailers, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseLicensePolicy, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSecuritySuppression, parseSpecCatalogScope, parseTasksDoc, parseTasksFromContent, parseTrivyVulnerabilities, processPackageDir, readCodeCoverageSummary, readPackageJson, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeTestCorpus, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSyft, scanWithTrivy, serializeSarifDocument, slugify, stripVolatileReportMetadata, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyLicenses, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
|
|
2520
|
+
/**
|
|
2521
|
+
* AI-SDLC: Element Inspector & Graph Navigator Engine
|
|
2522
|
+
* Inspects any AI-SDLC artifact (FR, UC, CMP, ADR, SEC-REQ, TSK, code file, or test suite),
|
|
2523
|
+
* generating concise technical summaries, upstream/downstream traceability, and selectable navigation graphs.
|
|
2524
|
+
*/
|
|
2525
|
+
|
|
2526
|
+
/**
|
|
2527
|
+
* Inspect any AI-SDLC artifact, code file, task, or test by query (ID or path).
|
|
2528
|
+
*/
|
|
2529
|
+
declare function inspectElement(query: string, options?: InspectOptions): InspectResult;
|
|
2530
|
+
/**
|
|
2531
|
+
* Format an InspectResult into GitHub-flavored Markdown for display in Chat and CLI.
|
|
2532
|
+
*/
|
|
2533
|
+
declare function formatInspectResultMarkdown(result: InspectResult): string;
|
|
2534
|
+
|
|
2535
|
+
export { ALL_ARCHITECTURE_TEMPLATES, type ActiveTaskMatch, 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 BddFeatureExecutionReport, type BddScenarioExecution, type BddStepExecution, BddStepRegistry, type BddVariantCoverage, type BranchClassificationResult, type BranchHierarchyPlan, type BranchValidationError, type BranchValidationSuccess, type BugRecordSummary, type ChangeDetectionOptions, type ChangeDetectionResult, type ChangeProfile, type CiProvider, type CodeCoverageSummary, type CommitKpiRecord, type CommitTrailers, type ContractTraceAudit, type CycloneDxBom, type CycloneDxComponent, type CycloneDxLicense, type CycloneDxVulnerability, type CytoscapeEdgeData, type CytoscapeElement, type CytoscapeNodeData, DEFAULT_DLP_RULES, DEFAULT_EXCLUDED_PATTERNS, DEFAULT_EXCLUDES, DEFAULT_EXTENSIONS, DEFAULT_PRIVACY_POLICY, DEFAULT_SAST_EXCLUDES, type DashboardHistoricalKpi, type DashboardOptions, type DashboardResult, type DataAssetSummary, type DesignContractDeclaration, type DiffLineItem, type DlpPolicy, type DlpRule, type DlpSanitizeResult, type DuplicateIssue, type DuplicateIssueType, type DuplicateSeverity, type DuplicateVerifierOptions, type DuplicateVerifierResult, type ExtractedFeature, type FunctionMetrics, GENERAL_SOURCE_EXTENSIONS, type GenerateSarifOptions, type GherkinExtractionOptions, type GherkinExtractionResult, type GherkinSyncCheckResult, type GitCheckoutTaskOptions, type GitCheckoutTaskResult, type GovernanceOptions, type GovernanceResult, type GraphElementsResult, type GraphNodeLayer, type GraphNodeStatus, type GraphNodeType, type HookInstallResult, type InitProjectOptions, type InitProjectResult, type InspectOptions, type InspectRelation, type InspectResult, type JsonSchemaRule, KPI_SUMMARY_END_TAG, KPI_SUMMARY_START_TAG, LIFECYCLE_SKILL_TEMPLATES, type LanguageAstReport, type LicensePolicy, type LicenseVerificationOptions, type LicenseVerificationResult, type LicenseViolation, type LifecycleSkillTemplate, type ManualDocumentItem, type ManualsCoverageSummary, type ManualsVerificationOptions, type ManualsVerificationResult, type ModelDefectStats, type NativeAstOptions, OpenSpecAdapter, PII_SAST_RULES, PREPARE_COMMIT_MSG_SCRIPT, PRE_COMMIT_SCRIPT, PROMPT_INJECTION_SIGNATURES, PROTECTED_BYPASS_PATTERNS, type PackageJsonInfo, type ParsedFeatureDocument, type ParsedScenarioBlock, type ParsedStepItem, type PdacDrift, type PdacGraphOptions, type PdacGraphResult, type PdacInvalidAnchor, type PdacNode, type PdacSyncDetail, type PdacSyncOptions, type PdacSyncResult, type PdacUnresolvedCitation, type PiiSastRule, type PrKpiAggregation, type PreflightCheckOptions, type PreflightCheckResult, type PreflightGateSummary, type PrivacyClassificationRule, type PrivacyFindingType, type PrivacyPolicy, type PrivacyRopaSummary, type PrivacyVerifierOptions, type PrivacyVerifierResult, type PrivacyViolation, type ProductHandoff, type ProductHandoffSubgraph, type ProgressiveFrictionOptions, type ProgressiveFrictionResult, type PromptInjectionFinding, type QualityBaseline, type QualityBaselineEntry, type QualityGateOptions, type QualityGateResult, type QualityPolicy, type QualityReportOptions, type QualityReportResult, type QualityThresholds, type ReleaseKpiReport, type RequirementAuditItem, type ResolvedCiEnv, 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, SPECIALIZED_AGENT_TEMPLATES, 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_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, type SarifArtifactLocation, type SarifDocument, type SarifLevel, type SarifLocation, type SarifMultiformatMessageString, type SarifPhysicalLocation, type SarifRegion, type SarifReportingDescriptor, type SarifResult, type SarifRuleConfiguration, type SarifRun, type SarifToolDriver, type SastFindingType, type SastRule, type SastSeverity, type SastVerifierOptions, type SastVerifierResult, type SastViolation, type SbomGenerateOptions, type ScaTool, type ScaVulnerability, type ScanOptions, type ScannedDependency, type ScannedRequirement, type SddAdapter, type SddChangeScaffoldOptions, type SddChangeScaffoldResult, type SddDepositOptions, type SddFramework, type SddIntegrationAudit, type SddIntegrationOptions, type SddIntegrationResult, type SddValidationResult, type SddWorkspaceInfo, type SecretFindingType, type SecretRule, type SecretVerifierOptions, type SecretVerifierResult, type SecretViolation, type SecuritySuppression, type SpecCatalogScope, SpecKitAdapter, type SpecializedAgentTemplate, type StarterSchemaEntry, type StarterTemplateEntry, type StepDataTable, type StepDefinitionEntry, type StepHandler, type SupportedCiProvider, TYPE_TO_SCHEMA_MAP, type TaskAuditItem, type TaskItem, type TaskLocateResult, type TaskSummary, type TaskVerification, type TestingCoverageOptions, type TestingCoverageResult, type TraceabilityOptions, type TraceabilityResult, type TraceabilityRow, UNIT_TEST_SUFFIXES, type UntestedFunctionItem, type UseCaseFlowAuditItem, VALID_AGENT_TARGETS, VALID_ARCHITECTURE_GRANULARITIES, VALID_AUTONOMY_MODES, VALID_CHANGE_PROFILES, VALID_CI_PROVIDERS, type VexAnalysisJustification, type VexAnalysisState, type VexStatement, type VulnerabilityThresholds, aggregateCommitKpiRecords, aggregatePrKpis, aggregateReleaseKpis, analyzeBddVariantsForRequirement, appendRevisionHistoryRow, applyRatchetMode, buildCycloneDxComponent, buildCycloneDxVulnerabilities, buildFeatureFileContent, buildGraphElements, calculateJaccardSimilarity, calculateMetrics, calculateRating, calculateShannonEntropy, canonicalSort, checkGherkinInSync, checkoutTaskBranch, classifyBranch, classifyMetricFromMessage, collectAgentFiles, collectDashboardMetrics, collectHistoricalKpis, computeCanonicalSha256, computeRawSha256, computeSha256, computeViolationSignature, createDefaultDlpPolicy, createDefaultQualityPolicy, depositProductHandoffSidecar, detectActiveChangeForIntegration, detectAuthorIdentity, detectLanguage, detectProfileFromChange, detectPromptInjection, emitCiOutput, evaluateCompoundLicense, evaluateSingleDependency, evaluateVulnerabilityThresholds, executeBddFeature, extractBaselineEntriesFromResults, extractCitations, extractCommitKpisFromRange, extractDirectDepNames, extractFeatureTags, extractFrontmatter, extractFunctions, extractFunctionsBraceLanguages, extractFunctionsPolyglot, extractFunctionsPython, extractFunctionsPythonAst, extractFunctionsTypeScriptAst, extractGherkinBlock, extractGherkinFeatures, extractNormativeText, extractPythonFunctionsPolyglot, extractSemanticContent, findChangeWorkspaceDir, findLicenseFile, formatCommitTrailers, formatInspectResultMarkdown, formatPrKpiMarkdown, formatReleaseKpiMarkdown, generateBranchHierarchyPlan, generateCycloneDxSbom, generateDashboardReport, generateDeterministicUuidV5, generateDuplicatesReportMarkdown, generateGovernanceReportMarkdown, generateLicenseReportMarkdown, generatePdacReportMarkdown, generatePrivacyReportMarkdown, generateQualityReport, generateRopaInventoryMarkdown, generateSastReportMarkdown, generateSecretsReportMarkdown, generateSecuritySarifReport, generateSuppressionsAuditReport, generateTestingCoverageReportMarkdown, generateThirdPartyNotices, generateTraceabilityReportMarkdown, getArchitectureTemplates, getCytoscapeScript, getGitDiffLines, getNextCorrelativeNumber, getSddAdapter, inferArtifactTypeFromId, inferMissingTrailers, initProject, injectKpisIntoPrBody, inspectElement, installGitHooks, integrateSddChange, isCliInstalled, isFunctionReferencedInTests, isGitleaksInstalled, isMetricWorsened, isPathProtectedFromPatch, isPlaceholderOrIgnored, isReportContentSemanticallyEqual, isRequirementArtifact, isSemgrepInstalled, isToolAvailable, loadDlpPolicy, loadPrivacyPolicy, loadProductHandoffSidecar, loadQualityBaseline, locateTaskInActiveChanges, mapSastSeverityToSarifLevel, maskSecret, normalizePath, normalizeSpdxLicense, normalizeUri, orchestrateNativeAstAnalysis, parseCommitTrailers, parseDlpPolicy, parseFeatureDocument, parseFrontmatter, parseFrontmatterId, parseGenericDoc, parseLicensePolicy, parseMarkdownFrontmatter, parseQualityPolicy, parseRequirementFile, parseSecuritySuppression, parseSpecCatalogScope, parseTasksDoc, parseTasksFromContent, parseTrivyVulnerabilities, processPackageDir, readCodeCoverageSummary, readPackageJson, renderAntigravityAgentFile, renderAntigravitySkillFile, renderAutonomyModeSection, renderClaudeAgentFile, renderClaudeSkillFile, renderCopilotAgentFile, renderCopilotSkillFile, renderCursorAgentFile, renderCursorSkillFile, renderDashboardHtml, renderManualsTab, resolveAgentTargets, resolveBranchHierarchy, resolveCiEnvironment, resolveCytoscapePath, resolveDefaultBranchBase, resolveDeterministicDate, resolveFeatureFilePath, resolveGitRef, resolveLicenseFromFile, resolveReleaseBaseBranch, resolveSastCwe, resolveSastOwasp, resolveSchemaForArtifact, resolveTargetFiles, runGitleaksCli, runSemgrepCli, sanitizeDlpPayload, sanitizeDlpText, sanitizeTestCorpus, scaffoldSddChange, scanAllProductHandoffs, scanAllTestArtifacts, scanContentForSecrets, scanFileForPrivacyViolations, scanFileForSast, scanGoDependencies, scanInstalledLicenses, scanManualsInWorkspace, scanMavenDependencies, scanPnpmStore, scanPythonDependencies, scanRustDependencies, scanSubdirectories, scanWithNativeFs, scanWithSyft, scanWithTrivy, serializeSarifDocument, slugify, stripVolatileReportMetadata, syncPdacDigests, tokenizeTitle, updateCitationsInContent, validateAgainstSchema, validateAnchorExistence, validateArtifactSchema, verifyArtifactDuplicates, verifyArtifactsSchemas, verifyLicenses, verifyManuals, verifyPdacGraph, verifyPrivacy, verifyProgressiveFriction, verifyQualityGate, verifySast, verifySddIntegration, verifySecrets, verifyTasksGovernance, verifyTestingCoverage, verifyTraceability, walkDir, walkMdFiles, walkProjectFiles, walkSourceFiles, walkTaskFiles, writeCucumberJsonReport, writeCycloneDxSbom, writeQualityBaseline, writeReleaseKpiReport, writeReportFileIfChanged, writeSecuritySarifReport, writeThirdPartyNotices };
|