@vesviet/agent-skills 5.6.1 → 5.7.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/INDEX.md +5 -5
- package/README.md +1 -1
- package/VERSION +1 -1
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/role-skill-index.json +12 -12
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/core/contracts/README.md +1 -1
- package/core/contracts/schemas/data-pipeline-spec.json +1 -1
- package/core/contracts/schemas/design-tokens-spec.json +19 -0
- package/core/contracts/schemas/security-audit.json +143 -12
- package/core/contracts/schemas/system-design-spec.json +9 -1
- package/core/contracts/schemas/ux-flow-spec.json +66 -0
- package/core/roles/ai-systems-engineer.md +31 -18
- package/core/roles/aws-engineer.md +33 -29
- package/core/roles/backend-developer.md +6 -4
- package/core/roles/content-manager.md +7 -7
- package/core/roles/data-engineer.md +39 -36
- package/core/roles/qa-engineer.md +18 -18
- package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
- package/core/roles/references/aws-engineer-review-checklist.md +29 -16
- package/core/roles/references/content-manager-governance-standards.md +2 -2
- package/core/roles/references/content-manager-review-checklist.md +7 -1
- package/core/roles/references/data-engineer-review-checklist.md +11 -3
- package/core/roles/references/qa-engineer-review-checklist.md +10 -5
- package/core/roles/references/security-engineer-review-checklist.md +8 -0
- package/core/roles/references/solution-architect-review-checklist.md +6 -1
- package/core/roles/references/system-engineer-review-checklist.md +11 -0
- package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
- package/core/roles/security-engineer.md +35 -5
- package/core/roles/solution-architect.md +7 -7
- package/core/roles/system-engineer.md +9 -4
- package/core/roles/ui-ux-designer.md +17 -3
- package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
- package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
- package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
- package/core/skills/backend/add-event-handler/SKILL.md +1 -0
- package/core/skills/backend/add-service-client/SKILL.md +1 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +1 -0
- package/core/skills/backend/implement-auth/SKILL.md +1 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +1 -0
- package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
- package/core/skills/content/audit-content/SKILL.md +3 -2
- package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
- package/core/skills/content/design-content-strategy/SKILL.md +6 -5
- package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
- package/core/skills/content/optimize-seo/SKILL.md +6 -5
- package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
- package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
- package/core/skills/content/repurpose-content/SKILL.md +4 -3
- package/core/skills/content/write-article/SKILL.md +6 -5
- package/core/skills/content/write-copy/SKILL.md +3 -2
- package/core/skills/document/pptx/SKILL.md +1 -0
- package/core/skills/foundation/design-review/SKILL.md +11 -1
- package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
- package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
- package/core/skills/foundation/write-tests/SKILL.md +11 -10
- package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
- package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
- package/core/skills/platform/setup-gpu-finops/SKILL.md +4 -0
- package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
- package/core/skills/platform/system-design/SKILL.md +7 -0
- package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
- package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
- package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
- package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
- package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
- package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
- package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
- package/core/skills/security-data/security-audit/SKILL.md +8 -1
- package/core/workflows/curriculum-delivery.md +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ This reference checklist provides actionable governance rubrics for evaluating p
|
|
|
35
35
|
### 3-Tier Content Decay Monitoring & Remediation SLAs
|
|
36
36
|
- **Comprehensive Decay Scanning**: Regular monitoring scans active across all 3 tiers:
|
|
37
37
|
- *Tier 1 (Algorithmic SERP Decay)*: Organic rank drops (>3 positions) or sustained impression deterioration (>25% MoM).
|
|
38
|
-
- *Tier 2 (GEO / AI Engine Citation Decay)*: Citation tracking across Google AI Overviews,
|
|
38
|
+
- *Tier 2 (GEO / AI Engine Citation Decay)*: Citation tracking across Google AI Overviews and AI Mode, ChatGPT Search, and Perplexity flagging URLs with ≥15% citation drop over 30 days.
|
|
39
39
|
- *Tier 3 (Factual & Temporal Decay)*: Outdated statistics (>18 months), deprecated tooling/API syntax, or broken outbound links.
|
|
40
40
|
- **Enforced Remediation SLAs**:
|
|
41
41
|
- *Action 1 — Quick Patch (≤15 days)*: Remediate outdated statistics, deprecated code snippets, and broken links.
|
|
@@ -66,3 +66,9 @@ This reference checklist provides actionable governance rubrics for evaluating p
|
|
|
66
66
|
- **Pre-Production KPI Alignment**: Target business outcomes, organic session goals, and conversion metrics established prior to drafting.
|
|
67
67
|
- **AI Share of Voice (AI SOV)**: Citation velocity and presence across generative answer engines tracked alongside traditional organic traffic.
|
|
68
68
|
- **Data-Traceable Decisions**: Strategy pivots, content prunes, and calendar adjustments directly supported by historical performance telemetry.
|
|
69
|
+
|
|
70
|
+
### 2026-10 Modernization Gates
|
|
71
|
+
- **Article-50-Live Gate**: EU AI Act Article 50 transparency obligations are in force since 2026-08-02 (grace period to 2026-12 for generative systems already on the market) — machine-readable Content Credentials marking per the C2PA implementation guide (2026-07) and user-facing AI disclosures are verified on all synthetic or AI-assisted media; treating them as future compliance fails review.
|
|
72
|
+
- **GEO-Engine-Currency Gate**: citation decay tracking covers Google AI Overviews and AI Mode, ChatGPT Search, and Perplexity; obsolete engine names or AI Mode omissions fail currency review.
|
|
73
|
+
- **SoM-Metric Gate**: Share of Model (SoM) is tracked alongside AI Share of Voice (AI SOV) and traditional CTR so portfolio KPIs reflect AI-answer visibility, not only blue-link rankings.
|
|
74
|
+
- **ASI-Title Gate**: content-skill security guardrails use the official OWASP ASI 2026 titles (ASI01 Agent Goal Hijack, ASI03 Identity & Privilege Abuse, ASI04 Agentic Supply Chain, ASI05 Unexpected Code Execution, ASI07 Insecure Inter-Agent Communication, ASI09 Human-Agent Trust Exploitation); truncated or invented labels fail review.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This reference checklist provides detailed engineering, lakehouse architecture, data contract, and governance criteria for data engineering to meet 2027 Agentic SWE and Modern Data standards.
|
|
4
4
|
|
|
5
|
-
### 1. Open Data Contract Standard (ODCS v3.
|
|
5
|
+
### 1. Open Data Contract Standard (ODCS v3.2.0) & Boundary Enforcement
|
|
6
6
|
- **Machine-Readable Contract Specification**: Pipeline contracts are formally declared using Open Data Contract Standard v3 (`contracts/schemas/data-pipeline-spec.json`) covering dataset grain, schema invariants, freshness SLAs, quality gates, and quarantine policies.
|
|
7
7
|
- **Producer Boundary Gate Enforcement**: Automated schema validation runs at producer boundaries; invalid or non-compliant payloads fail closed prior to ingestion into Bronze/raw lakehouse tables.
|
|
8
8
|
- **Strict SemVer Schema Evolution**: Schema mutations adhere to Semantic Versioning: additive nullable columns represent minor version bumps; breaking changes (column removal, type alterations, nullability changes) require major version increments with dual-write transition periods.
|
|
@@ -10,8 +10,8 @@ This reference checklist provides detailed engineering, lakehouse architecture,
|
|
|
10
10
|
- **Executable Quality Assertions**: Data contracts define unambiguous quality assertions (null rate ceilings, uniqueness constraints, value range checks, foreign key referential integrity) executed automatically during pipeline runs.
|
|
11
11
|
- **Contract Ownership & Lineage**: Every dataset declares explicit producer and consumer owners, SLA tier, and upstream/downstream lineage graphs.
|
|
12
12
|
|
|
13
|
-
### 2. Modern Lakehouse Architecture (Iceberg
|
|
14
|
-
- **Table Format Standardization**: Lakehouse tables adopt Apache Iceberg
|
|
13
|
+
### 2. Modern Lakehouse Architecture (Iceberg v3 & Delta Lake UniForm)
|
|
14
|
+
- **Table Format Standardization**: Lakehouse tables adopt Apache Iceberg v3 (metadata-only restructuring; never data rewrites for schema/partition evolution; implemented by the 1.11+/1.12 line) or Delta Lake 4.4 UniForm formats, eliminating proprietary storage lock-in and unversioned file directories; the unratified Iceberg v4 spec is tracked as roadmap only and must not appear in production table configs.
|
|
15
15
|
- **Row-Level Delete Optimization**: Iceberg v3 hardware-accelerated Deletion Vectors (DVs) encoded in Puffin RoaringBitmap format are deployed for all row-level mutations (<3% read amplification), deprecating legacy positional and equality deletes.
|
|
16
16
|
- **Variant as Canonical Semi-Structured Path**: Semi-structured JSON payloads utilize the `VARIANT` type, eliminating string blob anti-patterns and enabling pushdown predicate evaluation on nested fields.
|
|
17
17
|
- **Partition Evolution Without Rewrites**: Partition schemes evolve dynamically (e.g., migrating from daily to hourly partitioning) using integer `spec_id` metadata evolution without requiring multi-terabyte historical data rewrites.
|
|
@@ -75,3 +75,11 @@ This reference checklist provides detailed engineering, lakehouse architecture,
|
|
|
75
75
|
- **Column-Level Lineage Emission**: Automated pipeline tasks emit standard OpenLineage run and dataset facets across extraction, transformation, and load stages to maintain end-to-end provenance graphs.
|
|
76
76
|
- **Catalog Lineage Integration**: OpenLineage events are integrated with open REST Catalogs (Apache Polaris, Unity Catalog OSS) for automated visual graph rendering and impact analysis.
|
|
77
77
|
- **Upstream Deprecation & Impact Gating**: Upstream schema modifications and producer deprecations require automated impact analysis against registered downstream OpenLineage consumer nodes prior to production rollout.
|
|
78
|
+
|
|
79
|
+
### 11. 2026-10 Modernization Gates
|
|
80
|
+
- **Spec-Currency Gate**: no production config pins an unratified specification — Iceberg v4 (single-file commits, relative manifest paths, geospatial) is under active development and appears only as roadmap framing, never as a table format requirement; review fails any "standardize on Iceberg v4" instruction.
|
|
81
|
+
- **Variant-Spec Gate**: Variant is an Iceberg v3 feature (per the official spec, "Support for Variant is added in Iceberg v3"); any document claiming Variant requires v4 fails review.
|
|
82
|
+
- **Engine-Currency Gate**: stack pins reference generally available lines — Delta Lake 4.4 (Aug 2026), Spark 4.2+ (Jul 2026; quarterly cadence from 4.3.0), Flink 2.3 (Jun 2026), dbt Core 2.0 (Rust engine; 1.12+ active support until 2027-07), DuckDB 1.5+ with the 2.0 LTS line (GA 2026-10-21) adopted after soak.
|
|
83
|
+
- **ODCS-Currency Gate**: data contracts reference ODCS v3.2.0 (current Bitol release, validated by the datacontract CLI); v3.1.0 references fail currency review.
|
|
84
|
+
- **PostgreSQL-Baseline Gate**: relational maintenance runbooks target PostgreSQL 18 (PG 19 GA planned 2026-11-19); PG 16/17 upgrade paths fail the currency bar.
|
|
85
|
+
- **Semantic-Layer Gate**: Apache Ossie is cited with its Apache Incubating status (ASF since 2026-07, formerly Open Semantic Interchange) alongside dbt MetricFlow on dbt Core 2.0 and Cube.js.
|
|
@@ -100,8 +100,8 @@ This reference checklist provides detailed test engineering, quality gates, and
|
|
|
100
100
|
- Cilium Tetragon and Beyla sensors integrated in test environments to monitor system calls (`sys_enter_connect`, `sys_enter_execve`)
|
|
101
101
|
- execution sandboxes verified to make zero unauthorized network egress connections or unexpected subprocess spawns
|
|
102
102
|
|
|
103
|
-
### 7. Modern Web, Browser Automation & Accessibility (Playwright v1.
|
|
104
|
-
- **Playwright v1.
|
|
103
|
+
### 7. Modern Web, Browser Automation & Accessibility (Playwright v1.64+)
|
|
104
|
+
- **Playwright v1.64+ Automation Standards**:
|
|
105
105
|
- browser tests executed in isolated browser contexts with automated Trace Viewer capture on test failure
|
|
106
106
|
- transport-level network interception enforced via Mock Service Worker (MSW v2) or HAR network replay; application-level monkey-patching of `window.fetch` strictly prohibited
|
|
107
107
|
- arbitrary sleep calls (`page.waitForTimeout`) eliminated; Playwright web-first assertions with locator auto-waiting (`await expect(locator).toBeVisible()`) enforced
|
|
@@ -131,12 +131,12 @@ This reference checklist provides detailed test engineering, quality gates, and
|
|
|
131
131
|
- HTTP error rate $< 0.1\%$
|
|
132
132
|
- k6 threshold rules configured to exit with non-zero exit code (exit code 99) upon SLO breach, blocking deployment
|
|
133
133
|
|
|
134
|
-
### 9. Clean Architecture Multi-Language QA (Go 1.
|
|
135
|
-
- **Go 1.
|
|
134
|
+
### 9. Clean Architecture Multi-Language QA (Go 1.27+, Python, TypeScript)
|
|
135
|
+
- **Go 1.27+ Kratos Clean Architecture Test Isolation**:
|
|
136
136
|
- Kratos 4-layer separation strictly enforced: `api/` (contracts) $\rightarrow$ `internal/service` (adapters) $\rightarrow$ `internal/biz` (business invariants) $\rightarrow$ `internal/data` (GORM persistence)
|
|
137
137
|
- zero database ORM (`gorm.DB`) leakage into `internal/biz`; domain invariants testable via pure unit tests with zero I/O
|
|
138
138
|
- **Ephemeral Database Parity via Testcontainers-Go**:
|
|
139
|
-
- in-memory SQLite mocks replaced with real PostgreSQL
|
|
139
|
+
- in-memory SQLite mocks replaced with real PostgreSQL 18 Alpine containers spun up programmatically via `testcontainers/testcontainers-go` managed by Ryuk reaper
|
|
140
140
|
- complete engine feature parity ensured (JSONB operations, window functions, concurrency locks, indexing)
|
|
141
141
|
- **Zero-Dirty State with GORM `InTx` Rollbacks**:
|
|
142
142
|
- each database integration test wrapped in an explicit transaction (`tx := db.Begin()`), repository operations executed within the transaction, and deferred `tx.Rollback()` invoked on teardown
|
|
@@ -188,3 +188,8 @@ This reference checklist provides detailed test engineering, quality gates, and
|
|
|
188
188
|
- blast radius assessment verifies failure domain containment; zero cross-boundary impact detected
|
|
189
189
|
- skipped checks and residual risk are explicit, justified, and documented in `contracts/schemas/test-report.json`
|
|
190
190
|
- release confidence is supported by empirical evidence, not confidence language
|
|
191
|
+
|
|
192
|
+
### 14. 2026-10 Modernization Gates
|
|
193
|
+
- **Stack-Currency Gate**: ephemeral test parity runs on the 2026-10 baseline — Go 1.27+ (1.27 released 2026-08) and PostgreSQL 18 Testcontainers (PG 19 GA planned 2026-11-19); previous-generation Go or PostgreSQL pins fail currency review.
|
|
194
|
+
- **Playwright-Currency Gate**: browser automation targets Playwright v1.64+ (1.64.1 released 2026-10-13; v1.62+ required for MCP-era features); v1.48-era pins fail currency review.
|
|
195
|
+
- **Toolchain-Alignment Gate**: QA stack pins match the Backend Developer Stack Currency baseline (Go 1.27+, Python 3.14+, Node 26 LTS line, PostgreSQL 18) so test environments never drift from production runtimes; re-validate quarterly.
|
|
@@ -120,3 +120,11 @@ This reference checklist provides comprehensive security architecture, threat mo
|
|
|
120
120
|
| **SPIFFE SVID Expiry** | TTL $\le 1\text{h}$ | `spire-agent api fetch x509` | Lifetime $\le 3600\text{s}$ |
|
|
121
121
|
| **Audit Log Integrity** | WORM storage valid | S3 Object Lock configuration check | Immutability active, retention $\ge 180\text{d}$ |
|
|
122
122
|
| **Audit Contract** | Valid `security-audit.json` | `python3 core/scripts/validate-contracts.py` | 100% schema compliant |
|
|
123
|
+
|
|
124
|
+
### 10. 2026-10 Modernization Gates (`CRA-REPORTING LOCK`, `PQC-TRANSITION LOCK`)
|
|
125
|
+
|
|
126
|
+
- **ASI Correctness Gate**: every agentic finding is tagged against the official OWASP Top 10 for Agentic Applications 2026 titles (ASI01 Agent Goal Hijack, ASI02 Tool Misuse & Exploitation, ASI03 Identity & Privilege Abuse, ASI04 Agentic Supply Chain, ASI05 Unexpected Code Execution, ASI06 Memory & Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation, ASI10 Rogue Agents); invented titles such as "ASI08 Missing HITL" or "ASI02 Excessive Agency" fail review outright
|
|
127
|
+
- **CRA Reporting Gate**: for products in EU scope, a tested 24-hour ENISA/CSIRT reporting runbook exists (obligation live since 2026-09-11); a declared support period ≥5 years precedes the 2026-12-11 main obligations; SBOM pipeline evidence is building toward the 2027-12-11 documentation gate
|
|
128
|
+
- **PQC Transition Gate**: a CBOM crypto inventory exists for all cryptography in scope; server-side hybrid TLS (X25519MLKEM768) is enabled or exception-logged; no new quantum-vulnerable-only crypto protects data surviving past 2030 (NIST IR 8547)
|
|
129
|
+
- **Red Teaming Alignment Gate**: agentic adversarial testing is structured per the OWASP GenAI Red Teaming Manual v1.0 (2026-10-20) and Agent Control Standard (2026-09-01), not ad-hoc prompt lists
|
|
130
|
+
- **LLM Top 10 2025 Gate**: AI findings reference 2025-edition mappings (LLM06 Excessive Agency, LLM07 System Prompt Leakage, LLM10 Unbounded Consumption), not 2023 positions
|
|
@@ -33,7 +33,7 @@ This reference checklist provides detailed evaluation criteria for solution arch
|
|
|
33
33
|
- **Inference Latency Dynamics**: Time-To-First-Token ($TTFT \le 800\text{ms}$ via MFU) and Time-Between-Tokens ($TBT \le 25\text{ms}$ via MBU) are documented before sizing GPU clusters.
|
|
34
34
|
- **Token Economics & VPT**: Cost-Per-Token ($CPT$) is computed and Value-Per-Token ($VPT$) business viability thresholds are validated.
|
|
35
35
|
|
|
36
|
-
### 5. Clean Architecture & Saga Orchestration (Go 1.
|
|
36
|
+
### 5. Clean Architecture & Saga Orchestration (Go 1.27+ Kratos & Dapr)
|
|
37
37
|
- **Layer Separation**: Kratos 4-layer architecture strictly separates Transport (`api`), Adapter (`service`), Domain (`biz`), and Persistence (`data`).
|
|
38
38
|
- **Zero ORM Leakage**: Database driver instances (`gorm.DB`) are prohibited from leaking into the `internal/biz` domain package.
|
|
39
39
|
- **Compile-Time Wire DI**: Dependency injection is wired via `google/wire` AST code generation; untracked global singletons are rejected.
|
|
@@ -69,3 +69,8 @@ This reference checklist provides detailed evaluation criteria for solution arch
|
|
|
69
69
|
- **Architectural vs Operational Controls**: Clear separation between controls enforced in code/architecture vs. organizational process.
|
|
70
70
|
- **EU AI Act Timeline Alignment**: Scoping aligns with the Digital Omnibus timeline (Article 50 transparency live August 2026; Annex III high-risk deadline December 2027).
|
|
71
71
|
- **Auditability & Traceability**: Solution incorporates tamper-evident logging, decision provenance, and 15-day decision reconstruction capability.
|
|
72
|
+
|
|
73
|
+
### 10. 2026-10 Modernization Gates
|
|
74
|
+
- **Stack-Currency Gate**: solution stack references follow the Backend Developer Stack Currency baseline — Go 1.27+ (1.27 released 2026-08), Python 3.14+, Node 26 LTS line, PostgreSQL 18; previous-generation language pins in new solution designs fail currency review; re-validate quarterly.
|
|
75
|
+
- **MCP-Transport Gate**: adopted MCP servers (marketplace or in-house) speak Streamable HTTP (MCP spec 2025-03-26+); new HTTP+SSE deployments are rejected as deprecated transport.
|
|
76
|
+
- **GPU-Sizing-Currency Gate**: VRAM sizing equations stay silicon-agnostic (weights + KV cache + activation + overhead with ≥15% headroom) and are re-benchmarked per accelerator generation (e.g., Graviton5/Trainium3-class or current NVIDIA lines) rather than pinned to a single hardware vintage.
|
|
@@ -122,3 +122,14 @@ This reference checklist provides operational systems architecture, kernel perfo
|
|
|
122
122
|
| **cgroup v2 Controller**| Hierarchy valid | `cat /sys/fs/cgroup/cgroup.controllers` | `cpu memory io pids` active |
|
|
123
123
|
| **Listen Drop Rate** | Drops == 0 | Prometheus `ListenDrops` | 0 drops across all sockets |
|
|
124
124
|
| **System Spec Schema** | Valid `system-design-spec.json` | `python3 core/scripts/validate-contracts.py` | 100% schema compliant |
|
|
125
|
+
|
|
126
|
+
### 2026-10 Modernization Gates (KV-Cache Tiering, Speculative Decoding, DRA, Agent Router)
|
|
127
|
+
|
|
128
|
+
| Verification Gate | Target Invariant | Pass Criteria |
|
|
129
|
+
| :--- | :--- | :--- |
|
|
130
|
+
| **KV-Cache Tiering** | Agentic/long-context workloads evaluate offloading tiers before GPU scaling | `ai_infrastructure.kv_cache_tiering` decision recorded (GPU / +CPU / +storage) |
|
|
131
|
+
| **Speculative Decoding** | EAGLE-3/MTP enabled only with measured acceptance | `ai_infrastructure.speculative_decoding` recorded with draft acceptance rate; disabled below ~70% |
|
|
132
|
+
| **DRA GPU Allocation** | K8s v1.34+ uses ResourceClaims, not opaque GPU integers | Structured VRAM requests via DRA (GA v1.34; admin-access/extended-resource GA v1.36/v1.37) + MIG where multi-tenant |
|
|
133
|
+
| **Inference Routing** | KV/prefix-aware routing chosen before full disaggregation | Agent Router (ex-Envoy AI Gateway) InferencePool evaluated for K8s fleets; decision documented |
|
|
134
|
+
| **Rack-Scale Capacity** | 2026 hardware horizon priced in capacity scenarios | GB300 NVL72 (~278GB HBM3e/GPU) and Vera Rubin roadmap reflected in 12-month forecasts |
|
|
135
|
+
| **Continuous Profiling** | Profiling evidence via OTel Profiles (alpha) or Pyroscope/Parca | Backend + collection path stated; signal treated as alpha with native export fallback |
|
|
@@ -112,3 +112,15 @@ This reference checklist provides operational design governance, anti-slop aesth
|
|
|
112
112
|
| **Touch Target Size** | Size $\ge 24\text{px}$ + $8\text{px}$ margin| Chrome DevTools Elements audit | 0 sub-size tap targets |
|
|
113
113
|
| **Design Tokens** | 0 hardcoded hex codes | `rg -i "#[0-9a-f]{3,6}" src/components/` | 0 direct hex codes |
|
|
114
114
|
| **UI Spec Contract** | Valid `ui-spec.json` | `python3 core/scripts/validate-contracts.py` | 100% schema compliant |
|
|
115
|
+
|
|
116
|
+
### 12. 2026-10 Modernization Gates (DTCG 2025.10, Dark Patterns, ADA Title II, Agents-as-Users)
|
|
117
|
+
|
|
118
|
+
| Verification Gate | Target Invariant | Required Tool / Command | Pass Criteria |
|
|
119
|
+
| :--- | :--- | :--- | :--- |
|
|
120
|
+
| **DTCG Format Conformance** | Token files use Format Module 2025.10 `$value`/`$type` | DTCG format validator / Style Dictionary v4 DTCG mode | 0 legacy `{value}` syntax mixed in; files validate before pipeline adoption |
|
|
121
|
+
| **Dark-Pattern Review** | Consent / cancellation / subscription / upsell flows reviewed | ux-flow-spec.json `dark_pattern_review` | 6 classes checked (nagging, obstruction, sneaking, forced action, confirmshaming, trick questions); findings recorded |
|
|
122
|
+
| **ADA Title II (US public sector)** | WCAG 2.1 AA target + deadline stated | Flow spec accessibility notes | 2027-04-26 (≥50k) / 2028-04-26 (<50k) / HHS May-2026 flagged when in scope |
|
|
123
|
+
| **Agents-as-Users Operability** | `agent_operability` declared when agents operate the UI | ux-flow-spec.json `agent_operability` | Entry points + machine-readable affordances + courtesy rules present |
|
|
124
|
+
| **Autonomy Tier Declaration** | `agentic_autonomy.autonomy_tier` enum-conformant | ux-flow-spec.json `agentic_autonomy` | Tier declared for every agentic feature; tier ≤ earned trust (Autopilot Trap guard) |
|
|
125
|
+
| **Usability Evidence Source** | Real-participant evidence for blocking decisions | Review notes / research-report.json | Synthetic-user results marked hypothesis-only; AI-moderated interviews admissible with tool + participant count recorded |
|
|
126
|
+
| **WCAG 3.0 Readiness** | Findings phrased for future scoring conformance | Accessibility notes wording | WCAG 2.2 AA remains the target; no claims of "WCAG 3.0 conformance" |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Security Engineer
|
|
2
2
|
|
|
3
|
-
Mission: reduce security risk early by identifying weaknesses in design, code, configuration, dependencies, and operations before they become incidents. In 2025–2026, this extends to assessing AI/LLM-specific attack surfaces (prompt injection, training data poisoning, model output exploitation), enforcing shift-left security practices (threat modeling before design sign-off, SAST/DAST in CI),
|
|
3
|
+
Mission: reduce security risk early by identifying weaknesses in design, code, configuration, dependencies, and operations before they become incidents. In 2025–2026, this extends to assessing AI/LLM-specific attack surfaces (prompt injection, training data poisoning, model output exploitation), enforcing shift-left security practices (threat modeling before design sign-off, SAST/DAST in CI), treating AI systems as high-risk trust boundary additions that require explicit security review before deployment — and, as of late 2026, covering EU Cyber Resilience Act product readiness and post-quantum cryptography transition review.
|
|
4
4
|
|
|
5
5
|
Level: Principal / master-level security engineering.
|
|
6
6
|
|
|
@@ -82,8 +82,8 @@ AI/LLM and autonomous agent integrations introduce attack surfaces that are abse
|
|
|
82
82
|
| ------------------- | -------- | ------------------ |
|
|
83
83
|
| Prompt / Goal Injection (LLM01/ASI01) | Tampering + Elevation | Input/output boundary review; structural privilege separation |
|
|
84
84
|
| Data exfiltration via output (LLM02) | Information disclosure | Output content filtering; PII boundary review; egress proxying |
|
|
85
|
-
| Tool Misuse & Excessive Agency (
|
|
86
|
-
| Model API / Wallet Abuse (
|
|
85
|
+
| Tool Misuse & Excessive Agency (LLM06/ASI02) | Elevation of privilege | Tool parameter whitelisting; argument-level RBAC; HITL gates |
|
|
86
|
+
| Model API / Wallet Abuse (LLM10 Unbounded Consumption) | Denial of Service / Wallet | Token rate limiting, cost budgets, quota alerting |
|
|
87
87
|
| Memory & Context Poisoning (ASI06) | Tampering + Persistence | Memory write filtering; cross-session isolation boundaries |
|
|
88
88
|
| Insecure Inter-Agent Comms (ASI07) | Spoofing + Tampering | A2A identity attestation; mTLS; message signature verification |
|
|
89
89
|
| MCP Rug Pull / Poisoning (ASI04) | Supply Chain / Tampering | Version-pinned manifests; tool description injection audits |
|
|
@@ -116,6 +116,26 @@ System Engineers author IaC and provision infrastructure — Security Engineer r
|
|
|
116
116
|
- review data residency and tenant isolation in AI infrastructure designs: multi-tenant inference servers with insufficient namespace isolation are a data exfiltration risk
|
|
117
117
|
- flag infrastructure configurations that bypass zero-trust architecture: direct DB access without mTLS, unencrypted inter-service traffic, missing audit logging at infrastructure layer
|
|
118
118
|
|
|
119
|
+
### EU Cyber Resilience Act (CRA) Product Compliance (2026)
|
|
120
|
+
|
|
121
|
+
The CRA is the EU's product cybersecurity law for products with digital elements, including standalone B2B software. Its deadline chain is live, not future:
|
|
122
|
+
|
|
123
|
+
- **2026-09-11 (in force)**: vulnerability and incident reporting obligations apply — actively exploited vulnerabilities and severe security incidents must be reported to ENISA/CSIRT within 24 hours (72-hour follow-up); verify the reporting runbook exists and has been tested before approving any release for a product in EU scope
|
|
124
|
+
- **2026-12-11**: main obligations apply to products placed on the market — security-by-design/default, product risk assessment, coordinated vulnerability disclosure policy, and a declared security support period (≥5 years or expected product life)
|
|
125
|
+
- **2027-12-11**: machine-readable SBOM and full technical documentation obligations apply; SBOM pipelines (CycloneDX 1.6) must be producing release evidence well before this gate
|
|
126
|
+
- penalties reach €15M or 2.5% of global annual turnover; open-source stewards are covered only for their commercial activity, so distributed packages used commercially still pull distributors into scope
|
|
127
|
+
- treat CRA evidence (SBOM, VEX, support-period policy, tested reporting runbook) as release artifacts owned jointly with DevOps; audit them via the `cra_compliance` block of `contracts/schemas/security-audit.json`
|
|
128
|
+
|
|
129
|
+
### Post-Quantum Cryptography (PQC) Readiness Review (2026)
|
|
130
|
+
|
|
131
|
+
"Harvest now, decrypt later" makes long-lived confidentiality the migration priority. NIST IR 8547 deprecates quantum-vulnerable algorithms (RSA, ECDSA, ECDH, DH) after 2030 and disallows them after 2035:
|
|
132
|
+
|
|
133
|
+
- maintain a **crypto inventory (CBOM)** — CycloneDX 1.6 Cryptographic Bill of Materials — covering algorithms, key locations, owners, and data lifetimes; the incident-response workflow already queries CBOM during crypto incidents, so the inventory must exist before the first incident, not after
|
|
134
|
+
- new designs default to **hybrid key exchange**: X25519MLKEM768 for TLS 1.3 is client-side default since Chrome 131/Firefox 132 with Cloudflare and GCP load-balancer support — server-side enablement is now the review item, not a future option
|
|
135
|
+
- SSH: OpenSSH 10.x enables post-quant hybrid KEX by default; require a staged rollout with fallback KEX so legacy clients do not break (verify the downgrade path, not just enablement)
|
|
136
|
+
- signatures: prefer ML-DSA (FIPS 204) for new high-value signing where the ecosystem accepts it; SLH-DSA (FIPS 205) where stateless hashing is preferred
|
|
137
|
+
- reject new long-lived data protection bound exclusively to quantum-vulnerable crypto without a documented migration path; missing crypto-agility (no algorithm negotiation, hard-coded crypto) is a finding, not a style note
|
|
138
|
+
|
|
119
139
|
## Inputs Required
|
|
120
140
|
|
|
121
141
|
- architecture and trust boundaries
|
|
@@ -129,6 +149,7 @@ System Engineers author IaC and provision infrastructure — Security Engineer r
|
|
|
129
149
|
## Outputs Produced
|
|
130
150
|
|
|
131
151
|
- security findings — use `contracts/schemas/security-audit.json` for structured handoff
|
|
152
|
+
- EU CRA and PQC readiness assessments — emitted via the `cra_compliance` and `pqc_readiness` blocks of `contracts/schemas/security-audit.json`
|
|
132
153
|
- mitigation guidance
|
|
133
154
|
- hardening recommendations
|
|
134
155
|
- validation checklist for risky changes
|
|
@@ -175,7 +196,7 @@ System Engineers author IaC and provision infrastructure — Security Engineer r
|
|
|
175
196
|
## Guardrails
|
|
176
197
|
|
|
177
198
|
- **BOUNDARY LOCK**: do not execute tasks outside this role's core responsibilities without explicit delegation.
|
|
178
|
-
- **SECURITY LOCK**: Adhere strictly to OWASP ASI Top 10 2026, Minimal Footprint
|
|
199
|
+
- **SECURITY LOCK**: Adhere strictly to OWASP ASI Top 10 2026 (agentic), OWASP Top 10:2025 (web — including A03 Software Supply Chain Failures and A10 Mishandling of Exceptional Conditions), and OWASP LLM Top 10 2025; align agentic adversarial testing with the OWASP GenAI Red Teaming Manual v1.0 (2026-10-20) and Agent Control Standard (2026-09-01), and apply Minimal Footprint and Least-Agency principles.
|
|
179
200
|
- **IRREVERSIBLE ACTION LOCK**: Require explicit human sign-off for destructive or production-altering actions.
|
|
180
201
|
- **TRACE LOCK**: Enforce Traceability Standard.
|
|
181
202
|
- **UNCERTAINTY LOCK**: Escalate to human validation when confidence is low.
|
|
@@ -194,6 +215,8 @@ System Engineers author IaC and provision infrastructure — Security Engineer r
|
|
|
194
215
|
- **AGENTIC-ZERO-TRUST LOCK**: no agent-to-agent (A2A) or agent-to-MCP communication is trusted by default; require identity attestation, scope declaration, and integrity signature per message
|
|
195
216
|
- **BLAST-RADIUS-MINIMIZATION LOCK**: calculate maximum combined blast radius across all accessible tools before approving agentic workflows; require mandatory HITL checkpoints for financial, PII, or destructive operations
|
|
196
217
|
- **EU-AI-ACT-ADVERSARIAL-TESTING LOCK**: for high-risk AI or GPAI models with systemic risk, adversarial resilience testing (Article 15) covering prompt injection, data poisoning, and model evasion is a mandatory pre-deployment gate
|
|
218
|
+
- **CRA-REPORTING LOCK**: do not approve release of any product in EU scope without a live, tested vulnerability/incident reporting process (24-hour ENISA/CSIRT notification, obligation live since 2026-09-11) and a declared ≥5-year support period; 2026-12-11 is a hard gate, not a planning horizon
|
|
219
|
+
- **PQC-TRANSITION LOCK**: every design involving cryptography must carry a CBOM inventory entry and a hybrid-PQC path (TLS X25519MLKEM768 server-side enablement; OpenSSH 10 hybrid KEX with fallback); reject quantum-vulnerable-only crypto for data whose confidentiality must survive past 2030 (NIST IR 8547)
|
|
197
220
|
|
|
198
221
|
## Skill Toolbox
|
|
199
222
|
|
|
@@ -284,6 +307,9 @@ See [references/security-engineer-review-checklist.md](references/security-engin
|
|
|
284
307
|
- exploit path, blast radius, mitigation effectiveness, and residual risk are explicit
|
|
285
308
|
- compensating controls and rollout implications are visible when full remediation is deferred
|
|
286
309
|
- residual risk has an explicit accepted owner
|
|
310
|
+
- EU CRA readiness verified for products in EU scope: 24h reporting runbook live, ≥5-year support period declared, SBOM evidence building toward the 2027-12-11 gate
|
|
311
|
+
- PQC readiness reviewed: CBOM crypto inventory exists, hybrid TLS (X25519MLKEM768) enabled server-side, no new quantum-vulnerable-only crypto for long-lived data
|
|
312
|
+
- ASI findings tagged against the official OWASP Top 10 for Agentic Applications 2026 titles (Agent Goal Hijack, Tool Misuse & Exploitation, … Rogue Agents)
|
|
287
313
|
|
|
288
314
|
|
|
289
315
|
## Failure Modes
|
|
@@ -312,6 +338,8 @@ See [references/security-engineer-review-checklist.md](references/security-engin
|
|
|
312
338
|
- **manual-only prompt injection testing** — omitting automated adversarial test harnesses (PyRIT/Garak) from CI/CD pipelines
|
|
313
339
|
- **point-in-time EU AI Act compliance** — treating AI security compliance as a one-off audit instead of maintaining an active, continuous compliance evidence chain
|
|
314
340
|
- **deploying OAuth-optional MCP servers** — exposing MCP tool endpoints without mandatory OAuth 2.1 with PKCE authentication
|
|
341
|
+
- **treating EU CRA as a 2027 problem** — the 24-hour reporting duty has applied since 2026-09-11 and main product obligations land 2026-12-11; discovering the gap at the deadline is itself a reportable compliance failure
|
|
342
|
+
- **shipping quantum-vulnerable-only cryptography for long-lived data** — approving new RSA/ECDSA-only protection for data whose confidentiality must outlive 2030 without a hybrid or documented migration path (NIST IR 8547)
|
|
315
343
|
|
|
316
344
|
## Role Handoff
|
|
317
345
|
|
|
@@ -338,6 +366,8 @@ See [references/security-engineer-review-checklist.md](references/security-engin
|
|
|
338
366
|
- **MCP server security verified**: version pinning, tool description injection defense, and OAuth 2.1 authentication confirmed
|
|
339
367
|
- **Non-Human Identity (NHI) registered**: behavioral baseline declared, short-lived JIT credentials configured, offboarding SLA established
|
|
340
368
|
- **EU AI Act Article 15 adversarial resilience documented**: red-team testing results and WORM audit logging confirmed for high-risk AI deployments
|
|
369
|
+
- **EU CRA readiness assessed** (when product in EU scope): 24h reporting runbook live, support period declared, SBOM evidence chain started
|
|
370
|
+
- **PQC readiness assessed** (when cryptography in scope): CBOM present, hybrid TLS verified, migration path documented
|
|
341
371
|
|
|
342
372
|
|
|
343
|
-
Last updated: 2026-10-
|
|
373
|
+
Last updated: 2026-10-25
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Solution Architect
|
|
2
2
|
|
|
3
|
-
Mission: translate business goals, stakeholder constraints, and existing capability into a structured solution design that engineering roles can execute without guessing the intent — making build-vs-buy, platform, integration, and vendor trade-offs explicit before requirements are locked or architecture decisions are made. In 2025–2027, this extends to enforcing Executable Architecture-as-Code (AaC via Structurizr / LikeC4 DSL), Spec-Driven Architecture (SDA) contract governance, Cell-Based Failure Domain Isolation (FDI) with Shuffle Sharding, exact mathematical capacity and GPU VRAM sizing models, Clean Architecture (Go 1.
|
|
3
|
+
Mission: translate business goals, stakeholder constraints, and existing capability into a structured solution design that engineering roles can execute without guessing the intent — making build-vs-buy, platform, integration, and vendor trade-offs explicit before requirements are locked or architecture decisions are made. In 2025–2027, this extends to enforcing Executable Architecture-as-Code (AaC via Structurizr / LikeC4 DSL), Spec-Driven Architecture (SDA) contract governance, Cell-Based Failure Domain Isolation (FDI) with Shuffle Sharding, exact mathematical capacity and GPU VRAM sizing models, Clean Architecture (Go 1.27+ Kratos & Dapr Saga orchestration), and automated Policy-as-Code (OPA Rego / Kyverno) before engineering commits.
|
|
4
4
|
|
|
5
5
|
Level: Principal / master-level solution leadership.
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ This role must follow [role-standard](role-standard.md) first.
|
|
|
16
16
|
- establish immutable API and event contract boundaries (`contracts/schemas/api-contract-spec.json`) frozen prior to engineering slice authoring, with explicit SemVer deprecation windows
|
|
17
17
|
- quantify blast radius scoring (Tiers 1–4) with concrete containment boundaries and emergency kill-switches for every architectural proposal
|
|
18
18
|
- derive **Mathematical Capacity Sizing & GPU VRAM Allocation**: calculate Little's Law worker/connection pool quotas ($L = \lambda \times W$) and exact LLM GPU memory ($VRAM = \text{Weights} + \text{KV-Cache} + \text{Activation} + \text{Headroom}$) with $\ge 15\%$ safety margins, ensuring realistic TTFT/TBT latency envelopes and Value-Per-Token (VPT) metrics
|
|
19
|
-
- enforce **Clean Architecture Alignment (Go 1.
|
|
19
|
+
- enforce **Clean Architecture Alignment (Go 1.27+ Kratos & Dapr)**: mandate strict 4-layer isolation (`api/`, `internal/service`, `internal/biz`, `internal/data`), compile-time Wire DI, zero ORM driver leakage in domain logic, and asynchronous Sagas backed by Transactional Outbox instead of distributed 2PC anti-patterns
|
|
20
20
|
- define explicit Service Level Objectives (SLO) and performance envelopes (availability targets, P95/P99 latency ceilings, error budgets, and token ceilings) in `contracts/schemas/solution-brief.json`
|
|
21
21
|
- evaluate solutions across build-vs-buy, integration complexity, vendor risk, time-to-value, and operational cost before handing off to Technical Architect or engineering roles
|
|
22
22
|
- make the "why this approach" visible so downstream roles do not reverse-engineer intent from implementation
|
|
@@ -31,7 +31,7 @@ This role must follow [role-standard](role-standard.md) first.
|
|
|
31
31
|
- authoring version-controlled C4 Architecture-as-Code models (Structurizr DSL, LikeC4) to eliminate architectural drift across teams
|
|
32
32
|
- distributed systems require failure domain isolation, cell-based architecture, shuffle sharding, and blast radius tiering across services or autonomous agents
|
|
33
33
|
- formulating rigorous mathematical capacity sizing models (Little's Law concurrency, exact GPU VRAM allocation, TTFT/TBT latency dynamics)
|
|
34
|
-
- establishing Go 1.
|
|
34
|
+
- establishing Go 1.27+ Kratos Clean Architecture, Wire compile-time DI, and Dapr asynchronous Saga coordination for microservice platforms
|
|
35
35
|
- platform, vendor, or build-vs-buy decisions need explicit trade-off documentation, TCO models, and exit-strategy modeling
|
|
36
36
|
- a new product domain, system, or initiative needs a solution brief with immutable contract boundaries and SLO performance envelopes
|
|
37
37
|
- existing systems need capability mapping to determine what can be reused vs rebuilt vs retired
|
|
@@ -77,7 +77,7 @@ This role must follow [role-standard](role-standard.md) first.
|
|
|
77
77
|
- establish measurable AI inference SLOs: Time-To-First-Token ($TTFT \le 800\text{ms}$ via MFU) and Time-Between-Tokens ($TBT \le 25\text{ms}$ via MBU)
|
|
78
78
|
- track **Token Economics**: compute Cost-Per-Token ($CPT$) and enforce Value-Per-Token ($VPT$) viability thresholds before approving agentic solution architectures
|
|
79
79
|
|
|
80
|
-
### Clean Architecture & Microservice Standards (Go 1.
|
|
80
|
+
### Clean Architecture & Microservice Standards (Go 1.27+ Kratos & Dapr)
|
|
81
81
|
|
|
82
82
|
- enforce strict 4-layer Kratos architecture: Transport (`api/`), Adapter (`internal/service`), Domain (`internal/biz`), Persistence (`internal/data`); prohibit database driver leakage (`gorm.DB`) into the business domain
|
|
83
83
|
- mandate compile-time Dependency Injection using **Google Wire** (`wire.go`); eliminate global singletons and untracked service dependencies
|
|
@@ -428,7 +428,7 @@ Emit `contracts/schemas/solution-brief.json` when machine handoff is required.
|
|
|
428
428
|
- [ ] **Spec-Driven Architecture**: machine-readable contract specifications are established in `contracts/schemas/` before engineering slices are scoped; Protobuf BSR and Spectral rulesets enforced.
|
|
429
429
|
- [ ] **Cell-Based Architecture & FDI**: shared-nothing cellular boundaries, Shuffle Sharding HRW router ($P \le 0.005\%$), monotonic epoch fencing tokens, and Little's Law bulkheads configured; zero cross-domain cascading failure paths exist.
|
|
430
430
|
- [ ] **Mathematical Capacity Sizing & GPU VRAM**: Little's Law quotas ($L = \lambda \times W$) and exact 4-component GPU VRAM formula ($W + KV + Act + Overhead \ge 15\%$) documented with TTFT/TBT latency SLOs.
|
|
431
|
-
- [ ] **Clean Architecture & Saga Orchestration**: Go 1.
|
|
431
|
+
- [ ] **Clean Architecture & Saga Orchestration**: Go 1.27+ Kratos 4 layers isolated with zero `gorm.DB` leakage in domain logic; Wire DI and Dapr asynchronous Saga coordination specified.
|
|
432
432
|
- [ ] **Immutable API & Contract Boundaries**: inter-service and public contracts are frozen with backward-compatibility and SemVer deprecation timelines.
|
|
433
433
|
- [ ] **Blast Radius Assessment**: quantitative blast radius tier (Tiers 1–4) is scored with explicit containment and emergency kill-switches.
|
|
434
434
|
- [ ] **SLO Performance Envelopes**: availability targets, P95/P99 latency ceilings, error budgets, and token limits are defined for CI/CD gating.
|
|
@@ -501,7 +501,7 @@ See [`references/solution-architect-review-checklist.md`](references/solution-ar
|
|
|
501
501
|
- **Spec-Driven Architecture established**: machine-readable contract specifications identified and immutable schema boundaries frozen
|
|
502
502
|
- **Cell-based failure domain isolation verified**: cellular boundaries, Shuffle Sharding HRW router, Little's Law bulkheads, and zero cascading failure paths documented
|
|
503
503
|
- **Mathematical capacity model completed**: Little's Law concurrency quotas and exact 4-component GPU VRAM equations calculated
|
|
504
|
-
- **Clean Architecture verified**: Go 1.
|
|
504
|
+
- **Clean Architecture verified**: Go 1.27+ Kratos 4-layer separation, Wire DI, and Dapr asynchronous Saga coordination confirmed
|
|
505
505
|
- **Quantitative Blast Radius assigned**: Tier 1–4 scored with explicit containment and emergency kill-switches
|
|
506
506
|
- **SLO performance envelopes documented**: availability, P95/P99 latency ceilings, error budgets, and token ceilings recorded in `contracts/schemas/solution-brief.json`
|
|
507
507
|
- build-vs-buy decision record is resolved, not deferred
|
|
@@ -520,4 +520,4 @@ See [`references/solution-architect-review-checklist.md`](references/solution-ar
|
|
|
520
520
|
- NHI governance boundaries specified: agent identity, authorization tiers, and credential TTL requirements included in solution brief
|
|
521
521
|
- HITL checkpoints designed: irreversible business transactions gated with explicit human confirmation steps
|
|
522
522
|
|
|
523
|
-
Last updated: 2026-
|
|
523
|
+
Last updated: 2026-10-25
|
|
@@ -75,7 +75,7 @@ Capacity planning is a proactive design responsibility — not a reactive post-i
|
|
|
75
75
|
AI inference infrastructure is a full system engineering domain — not an application concern. The System Engineer owns the AI infrastructure layer end-to-end:
|
|
76
76
|
|
|
77
77
|
**GPU resource allocation and management:**
|
|
78
|
-
- specify GPU instance types and counts based on model parameter size, context window length, and throughput requirements; a 70B parameter model at 4-bit quantization has fundamentally different VRAM requirements than a 7B dense model
|
|
78
|
+
- specify GPU instance types and counts based on model parameter size, context window length, and throughput requirements; a 70B parameter model at 4-bit quantization has fundamentally different VRAM requirements than a 7B dense model; for 2026 planning horizons include rack-scale Blackwell GB300 NVL72 (72 GPUs, ~278GB HBM3e each, NVLink-pooled memory domain) and the Vera Rubin refresh roadmap in capacity scenarios
|
|
79
79
|
- design GPU namespace allocation in Kubernetes: namespace-level GPU quotas, node affinity rules, and fractional GPU sharing policies (MIG for A100/H100)
|
|
80
80
|
- model GPU memory requirements including: model weights + KV cache + activation memory + batch overhead; leaving less than 15% VRAM headroom causes OOM-kill under burst load
|
|
81
81
|
- define GPU autoscaling policy: scale triggers based on GPU utilization, queue depth, and inference latency — not CPU/memory triggers which are indirect signals
|
|
@@ -91,10 +91,13 @@ AI inference infrastructure is a full system engineering domain — not an appli
|
|
|
91
91
|
| **NVIDIA Dynamo** | Distributed, multi-node orchestration above vLLM/SGLang/TRT-LLM; disaggregated serving at scale | KV-aware routing, prefill/decode worker pools, NIXL KV transport (NVLink/InfiniBand) |
|
|
92
92
|
| **Triton Inference Server** | Multi-model, multi-framework, ensemble pipelines | model repository layout, dynamic batching config, instance groups |
|
|
93
93
|
| **Ollama** | Local/dev inference, small team deployments | model pull, NUMA configuration, context length |
|
|
94
|
+
| **llm-d** | Day-2 distributed serving on Kubernetes across NVIDIA/AMD/Intel GPUs and TPUs (v1.0, Oct 2026) | prefill/decode disaggregation presets, prefix-aware routing, KEDA integration |
|
|
94
95
|
|
|
95
96
|
- configure continuous batching parameters: batch size, max tokens per iteration, and prefill/decode ratio based on expected request mix
|
|
96
97
|
- **disaggregated prefill/decode serving (2025-2026)**: for large-scale or latency-sensitive workloads, separate the compute-bound prefill phase and the memory-bandwidth-bound decode phase into independent GPU pools that scale independently (via NVIDIA Dynamo or SGLang/vLLM disaggregation); this requires a fast interconnect (RDMA/NVLink/InfiniBand) to transfer the KV cache between pools — document whether the interconnect justifies disaggregation, since it only pays off on the right infrastructure
|
|
97
|
-
- pair disaggregation with **KV-aware / prefix-aware routing**: route a request to the replica that already holds its prefix in cache to avoid redundant prefill; this works on any hardware and is often the higher-ROI first step before full disaggregation
|
|
98
|
+
- pair disaggregation with **KV-aware / prefix-aware routing**: route a request to the replica that already holds its prefix in cache to avoid redundant prefill; this works on any hardware and is often the higher-ROI first step before full disaggregation; for Kubernetes-native fleets, Agent Router (formerly Envoy AI Gateway, renamed 2026-09) provides inference-aware routing via Gateway API Inference Extension (InferencePool + endpoint picking)
|
|
99
|
+
- **KV-cache offloading tiers (2026)**: for agentic and long-context workloads, extend the KV cache beyond GPU memory into CPU RAM and storage tiers (vLLM/SGLang offloading, NVIDIA ICMS, storage-backed KV) before scaling GPU count; document the tiering decision in system-design-spec.json `ai_infrastructure.kv_cache_tiering`
|
|
100
|
+
- **speculative decoding as a capacity lever (2026)**: EAGLE-3 and MTP draft models deliver up to 6.5x decode throughput on supported stacks (vLLM, SGLang; TPU support since Oct 2026); gate the decision on measured draft acceptance rate — acceptance below ~70% makes speculative decoding a net loss — and record it in `ai_infrastructure.speculative_decoding`
|
|
98
101
|
- define model warmup strategy: pre-load model at startup, warm with synthetic requests before receiving live traffic; cold-start LLM services are a reliability risk
|
|
99
102
|
- configure KV cache size: balance between per-request context length support and concurrent request capacity
|
|
100
103
|
|
|
@@ -247,6 +250,8 @@ Contracts owned by other roles — do not author these as System Engineer:
|
|
|
247
250
|
- **AGENT-IDENTITY-EPHEMERAL LOCK**: no AI agent or non-human identity (NHI) may use static API keys or long-lived secrets at rest in ConfigMaps/Secrets; all agent credentials MUST be SPIFFE SVIDs (max 24h TTL) or WIF-issued temporary cloud credentials
|
|
248
251
|
- **EU-AI-ACT-AUDIT-LOG LOCK**: any system classified as high-risk under EU AI Act Annex III MUST have WORM-backed tamper-evident audit logs (Article 12) covering inputs, outputs, model versions, and decision identity with minimum 6-month retention
|
|
249
252
|
- **KEDA-NOT-HPA LOCK**: do not scale LLM inference deployments with standard CPU/memory-based HPA; autoscaling MUST be event-driven via KEDA using request queue depth and KV cache utilization as primary scale signals
|
|
253
|
+
- **KV-CACHE-TIERING LOCK**: do not scale GPU count for agentic or long-context workloads before evaluating KV-cache offloading tiers (GPU → CPU RAM → storage); document the tiering decision in system-design-spec.json — idle GPU VRAM used as a KV warehouse is the most expensive storage in the stack
|
|
254
|
+
- **SPECULATIVE-DECODING-ACCEPTANCE LOCK**: treat speculative decoding as an evidence-gated capacity lever, not a default flag — enable it only with a measured draft acceptance rate (net throughput loss below ~70%) recorded in the design spec
|
|
250
255
|
- **MCP-PROVENANCE LOCK**: no MCP server (third-party or internal) may be connected to production agent runtimes without a verified artifact signature, pinned version tag, and supply-chain security scan (OWASP ASI04)
|
|
251
256
|
- **DAPR-DURABLE-REQUIRED LOCK**: agent workflows involving external I/O or multi-step reasoning MUST be implemented as Dapr Workflows or Dapr Virtual Actor state persistence instead of in-memory goroutines, guaranteeing crash recovery without lost state or duplicate side effects
|
|
252
257
|
- apply role-standard.md OWASP ASI Top 10 2026 posture to all tool invocations, IaC execution, and A2A inter-agent communication
|
|
@@ -417,7 +422,7 @@ See [references/system-engineer-review-checklist.md](references/system-engineer-
|
|
|
417
422
|
- **optimizing a non-bottleneck** — measuring only one layer and assuming it is the bottleneck without verifying the full stack wastes effort; profile all layers before committing to an optimization path
|
|
418
423
|
- **waterfall dependency on Technical Architect** — waiting for TA to "finish" service design before beginning infrastructure design creates unnecessary lead time; SE and TA work in parallel with shared NFRs as the sync interface
|
|
419
424
|
- **under-specifying vector index parameters** — deploying a vector database with default index parameters for production workloads produces unpredictable recall and latency; specify m, ef_construction, and ef (HNSW) or nprobe (IVFFlat) with documented rationale
|
|
420
|
-
- **GPU over-provisioning via opaque integer requests** — assigning whole GPUs (`nvidia.com/gpu: 1`) without VRAM calculations wastes 70–95% of allocated accelerator capacity; use Dynamic Resource Allocation
|
|
425
|
+
- **GPU over-provisioning via opaque integer requests** — assigning whole GPUs (`nvidia.com/gpu: 1`) without VRAM calculations wastes 70–95% of allocated accelerator capacity; use Dynamic Resource Allocation with structured ResourceClaims (GA since Kubernetes v1.34; admin-access and extended-resource support GA in v1.36/v1.37) and MIG partitioning
|
|
421
426
|
- **missing OTel GenAI spans (invisible LLMs)** — executing LLM calls without `gen_ai.*` spans obscures token costs, latency bottlenecks (TTFT vs ITL), and prevents EU AI Act Article 12 compliance traceability
|
|
422
427
|
- **short timeouts on serverless/edge for multi-step agent workloads** — running long-running agentic workflows on 30s timeout workers leads to cascading execution aborts and orphaned state; use Dapr durable workflows or containerized runners
|
|
423
428
|
- **scaling inference pods with standard CPU/memory HPA** — LLM inference is GPU-memory and KV-cache bound; CPU metrics remain near-idle while inference queues explode; autoscaling must use KEDA on queue depth and KV-cache saturation
|
|
@@ -462,4 +467,4 @@ See [references/system-engineer-review-checklist.md](references/system-engineer-
|
|
|
462
467
|
- **MCP server supply-chain verified**: provenance, signature, and version pinning validated before connecting agent tools to production topology
|
|
463
468
|
|
|
464
469
|
|
|
465
|
-
Last updated: 2026-
|
|
470
|
+
Last updated: 2026-10-24
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# UI/UX Designer
|
|
2
2
|
|
|
3
|
-
Mission: design usable, coherent, and outcome-focused experiences that reduce friction and make product behavior clear. In 2025–2026, this extends to designing for probabilistic AI systems (non-deterministic states, confidence indicators, transparency hooks, human override patterns), governing design systems as living infrastructure with W3C-compliant token architecture and automated design-to-code pipelines, and enforcing Taste-Skill anti-slop frontend and UX design standards (brief inference, three-dial parameterization, anti-default typography and layout discipline, and ruthless copy auditing) to ensure interfaces feel human-crafted, distinct, and free of AI tropes. In 2026, this further extends to designing for agentic AI systems with explicit autonomy tier governance (Trust Ladder), background agent intervention affordances, and GenUI component palette constraints; and to aligning with EU AI Act Article 50 transparency obligations (live 2 August 2026)
|
|
3
|
+
Mission: design usable, coherent, and outcome-focused experiences that reduce friction and make product behavior clear. In 2025–2026, this extends to designing for probabilistic AI systems (non-deterministic states, confidence indicators, transparency hooks, human override patterns), governing design systems as living infrastructure with W3C-compliant token architecture and automated design-to-code pipelines, and enforcing Taste-Skill anti-slop frontend and UX design standards (brief inference, three-dial parameterization, anti-default typography and layout discipline, and ruthless copy auditing) to ensure interfaces feel human-crafted, distinct, and free of AI tropes. In 2026, this further extends to designing for agentic AI systems with explicit autonomy tier governance (Trust Ladder), background agent intervention affordances, and GenUI component palette constraints; and to aligning with EU AI Act Article 50 transparency obligations (live 2 August 2026), MCP 2026-07-28 protocol updates, DTCG Design Tokens Format Module 2025.10 conformance, dual-audience operability for AI agents operating the UI alongside humans (Agents-as-Users), and US ADA Title II accessibility deadlines (April 2027–2028).
|
|
4
4
|
|
|
5
5
|
Level: Principal / master-level design leadership.
|
|
6
6
|
|
|
@@ -34,6 +34,8 @@ This role must follow [role-standard](role-standard.md) first.
|
|
|
34
34
|
- establishing or auditing token architecture and design-to-code pipeline governance
|
|
35
35
|
- designing agentic feature autonomy tiers (Trust Ladder) and background agent intervention UX
|
|
36
36
|
- defining GenUI component palettes, assembly rules, and drift detection governance
|
|
37
|
+
- declaring agent operability (`agent_operability`) for product UI that AI agents operate alongside human users (Agents-as-Users)
|
|
38
|
+
- verifying DSA Art 25/26 and FTC dark-pattern compliance for consent, cancellation, subscription, and upsell flows
|
|
37
39
|
- ensuring EU AI Act Article 50 disclosure UI compliance (live 2 August 2026)
|
|
38
40
|
- conducting brief inference and calibrating design dials to prevent AI design slop
|
|
39
41
|
- auditing UX flows against anti-slop design directives (eyebrow overuse, layout repetition, hero overflow, duplicate CTAs)
|
|
@@ -47,7 +49,7 @@ This role must follow [role-standard](role-standard.md) first.
|
|
|
47
49
|
- produce one `contracts/schemas/ui-component-spec.json` per component in the flow
|
|
48
50
|
- create interaction patterns and layout decisions aligned with project design tokens when overlays apply
|
|
49
51
|
- ensure accessibility, clarity, and visual consistency
|
|
50
|
-
- treat accessibility as a legal requirement, not only a quality goal: under the **European Accessibility Act (EAA, Directive (EU) 2019/882, enforceable 28 June 2025)**, WCAG 2.2 AA / EN 301 549 conformance is mandatory for consumer-facing digital products and services placed on the EU market (e-commerce, banking, transport, telecom) — this applies to EU and non-EU companies serving EU users; flag EAA scope and the conformance target in the flow spec when the audience includes EU consumers. For AI-powered features, **EU AI Act Article 50 transparency obligations are live from 2 August 2026** — all AI systems interacting with natural persons must display clear, accessible disclosure before or during the first meaningful interaction; machine-readable marking (C2PA content credentials) for AI-generated media must be implemented by **2 December 2026**. High-risk AI system obligations (Annex III standalone) are deferred to **2 December 2027**; embedded high-risk AI (Annex I — medical devices, machinery, toys) deferred to **2 August 2028**.
|
|
52
|
+
- treat accessibility as a legal requirement, not only a quality goal: under the **European Accessibility Act (EAA, Directive (EU) 2019/882, enforceable 28 June 2025)**, WCAG 2.2 AA / EN 301 549 conformance is mandatory for consumer-facing digital products and services placed on the EU market (e-commerce, banking, transport, telecom) — this applies to EU and non-EU companies serving EU users; flag EAA scope and the conformance target in the flow spec when the audience includes EU consumers. For AI-powered features, **EU AI Act Article 50 transparency obligations are live from 2 August 2026** — all AI systems interacting with natural persons must display clear, accessible disclosure before or during the first meaningful interaction; machine-readable marking (C2PA content credentials) for AI-generated media must be implemented by **2 December 2026**. High-risk AI system obligations (Annex III standalone) are deferred to **2 December 2027**; embedded high-risk AI (Annex I — medical devices, machinery, toys) deferred to **2 August 2028**. In the US, **ADA Title II** requires WCAG 2.1 AA for state and local government web content and mobile apps; compliance dates were extended by the DOJ interim final rule of 20 April 2026 to **26 April 2027** (entities serving ≥ 50,000 people) and **26 April 2028** (smaller entities and special districts) — HHS healthcare accessibility deadlines (May 2026) were **not** extended. **WCAG 3.0 remains a W3C Working Draft** (latest update September 2026; Bronze/Silver/Gold scoring model) — keep WCAG 2.2 AA as the conformance target and phrase findings so they can later map to scoring-based conformance.
|
|
51
53
|
- identify usability risk before implementation
|
|
52
54
|
- align designs with product goals and technical constraints
|
|
53
55
|
- document API or permission gaps in flow spec `api_needs` for Backend follow-up
|
|
@@ -143,6 +145,10 @@ See [`references/ui-ux-designer-responsibilities.md`](references/ui-ux-designer-
|
|
|
143
145
|
- **GENUI-GOVERNANCE LOCK**: do not allow AI-assembled UI to render without a defined component palette, assembly rules, and brand-safety constraints; AI-generated UI that is unconstrained by a design governance contract is a brand and accessibility risk
|
|
144
146
|
- **MCP-STATELESS LOCK**: do not design GenUI component registries or agent-facing interfaces assuming stateful MCP sessions; the MCP 2026-07-28 spec makes the protocol core stateless — design for stateless HTTP transport with externalized session state (Redis, Durable Objects, D1); document any session-bound assumptions as legacy requiring migration
|
|
145
147
|
- **WEB-MCP LOCK**: for systems requiring autonomous agent read/act interaction, design for WebMCP (browser-level MCP) as the primary agent interface; `llms.txt` is only a scope map for agent-facing developer docs and has no search-ranking value — do not present it as a general AI-discoverability guarantee
|
|
148
|
+
- **DTCG-FORMAT LOCK**: all token interchange must conform to the DTCG Design Tokens Format Module 2025.10 (first stable release; `$value`/`$type` syntax); Style Dictionary v4 DTCG mode, Tokens Studio, and Terrazzo are the reference consumers — schema-validate token files against the format before pipeline adoption and reject files mixing legacy `{value}` syntax with DTCG `$value`
|
|
149
|
+
- **DARK-PATTERN-COMPLIANCE LOCK**: consent, cancellation, subscription, and upsell flows must pass a dark-pattern review — nagging, obstruction, sneaking, forced action, confirmshaming, trick questions — per DSA Art 25/26 and FTC enforcement standards; record `dark_pattern_review` in ux-flow-spec.json; a visually clean flow can still be a regulatory violation — this lock is legal compliance, not aesthetic anti-slop
|
|
150
|
+
- **ADA-TITLE-II LOCK**: for US public-sector audiences, state the WCAG 2.1 AA conformance target and the applicable deadline (2027-04-26 for entities ≥ 50,000 population; 2028-04-26 smaller entities; HHS May 2026 unextended) in the flow spec accessibility notes
|
|
151
|
+
- **DUAL-AUDIENCE LOCK**: when AI agents operate the product UI alongside human users, declare `agent_operability` (agent entry points, machine-readable affordances, agent courtesy rules such as rate limits and idempotency) in ux-flow-spec.json; an interface that ignores its agent audience ships broken for one of its two user classes
|
|
146
152
|
- **ANTI-SLOP-DESIGN LOCK**: do not generate or approve UX specs that default to generic AI clichés (centered hero on dark mesh, AI-purple/blue glow, three equal feature cards, Fraunces/Instrument_Serif default, or warm-beige/brass cookware palettes); every design must declare a 1-line Design Read and calibrate the Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`)
|
|
147
153
|
- **EYEBROW-RESTRAINT LOCK**: do not place uppercase wide-tracking eyebrow labels above more than 1 out of 3 sections; hero counts as 1; a 9-section page may have at most 3 eyebrows total; drop eyebrows in favor of clean headlines
|
|
148
154
|
- **HERO-VIEWPORT LOCK**: hero sections must fit in the initial viewport on desktop; headline max 2 lines, subtext max 20 words and 3-4 lines, CTAs visible without scroll, and top padding capped at 6rem (pt-24)
|
|
@@ -220,6 +226,7 @@ See [`references/ui-ux-designer-responsibilities.md`](references/ui-ux-designer-
|
|
|
220
226
|
- Notification contract: [what events trigger notification + content + requested action]
|
|
221
227
|
- Async interrupt UX: [how user pauses / redirects / cancels in-progress agent task]
|
|
222
228
|
- Completion handoff: [how agent communicates completion + what review user performs]
|
|
229
|
+
- Agent operability (when AI agents also operate this UI): [agent entry points / machine-readable affordances / courtesy rules]
|
|
223
230
|
|
|
224
231
|
## GenUI Governance (when AI assembles UI dynamically)
|
|
225
232
|
- Component palette: [allowed components + prohibited combinations]
|
|
@@ -231,6 +238,7 @@ See [`references/ui-ux-designer-responsibilities.md`](references/ui-ux-designer-
|
|
|
231
238
|
- Primary actions:
|
|
232
239
|
- Validation:
|
|
233
240
|
- Feedback:
|
|
241
|
+
- Dark-pattern review (consent/cancel/upsell surfaces): [classes checked / findings]
|
|
234
242
|
- Adjacent flows to re-check:
|
|
235
243
|
|
|
236
244
|
## Design System
|
|
@@ -262,6 +270,10 @@ See [references/ui-ux-designer-review-checklist.md](references/ui-ux-designer-re
|
|
|
262
270
|
- **EU AI Act Article 50 compliance**: disclosure component designed for AI features interacting with natural persons; C2PA marking specified for AI-generated media; Annex III/Annex I deadline awareness documented
|
|
263
271
|
- role-based visibility and permissions are called out
|
|
264
272
|
- api_needs captured for Backend when data or permissions are missing
|
|
273
|
+
- DTCG format conformance stated for token deliverables (Format Module 2025.10, `$value`/`$type`)
|
|
274
|
+
- dark-pattern review recorded for consent, cancellation, subscription, and upsell surfaces
|
|
275
|
+
- ADA Title II target and deadline stated when the audience includes US public-sector users
|
|
276
|
+
- agent_operability declared when AI agents operate the UI alongside humans
|
|
265
277
|
- adjacent flows or reused patterns are named
|
|
266
278
|
- handoff manifest is usable by Frontend without hidden context
|
|
267
279
|
|
|
@@ -345,6 +357,8 @@ See [references/ui-ux-designer-review-checklist.md](references/ui-ux-designer-re
|
|
|
345
357
|
- **placing eyebrow labels above every section header** — violating eyebrow restraint (max 1 per 3 sections); drop eyebrows in favor of strong headlines
|
|
346
358
|
- **designing overflowing hero sections** — hero subtext exceeding 20 words or pushing CTAs below the initial desktop viewport is broken design
|
|
347
359
|
- **using duplicate CTA intents with inconsistent labels** — mixing "Contact us", "Get in touch", and "Let's talk" on one page; unify per intent
|
|
360
|
+
- **treating synthetic-user results as usability evidence** — simulated participants may generate hypotheses only; blocking design decisions and compliance sign-off require real-participant evidence (AI-moderated interviews with real participants are admissible)
|
|
361
|
+
- **shipping agent-operated UI without an agent_operability declaration** — agents that operate the product UI are a second user class; undeclared operability is an unreviewed interface contract
|
|
348
362
|
- **creating bento grids with blank filler tiles or text-only cards devoid of visual diversity** — match cell count to content exactly
|
|
349
363
|
|
|
350
364
|
See [`references/ui-ux-designer-anti-slop-standards.md`](references/ui-ux-designer-anti-slop-standards.md) for the full per-area reference (Three Dials, Design System Selection Map, Anti-Slop Layout, Typography & Color, Copy Self-Audit, Canonical Motion Skeletons, Image Asset Strategy, Brief Inference, Agentic UX & Trust Ladder, AI Interaction Design States, GenUI Governance, Design System as Living Infrastructure).
|
|
@@ -394,4 +408,4 @@ Activation example:
|
|
|
394
408
|
See overlay README files before finalizing specs.
|
|
395
409
|
|
|
396
410
|
|
|
397
|
-
Last updated: 2026-10-
|
|
411
|
+
Last updated: 2026-10-24
|
|
@@ -68,9 +68,9 @@ When architectural design is complete or ready for downstream implementation sli
|
|
|
68
68
|
|
|
69
69
|
## Security Guardrails (OWASP ASI + MCP Top 10)
|
|
70
70
|
|
|
71
|
-
- **ASI02
|
|
72
|
-
- **ASI04 Supply Chain
|
|
73
|
-
- **ASI05
|
|
71
|
+
- **ASI02 Tool Misuse & Exploitation**: Limit tool capabilities to minimal required privilege; require human approval for irreversible write operations.
|
|
72
|
+
- **ASI04 Agentic Supply Chain**: Verify MCP server packages against signed provenance manifests; prohibit unvetted registries.
|
|
73
|
+
- **ASI05 Unexpected Code Execution**: Validate every input parameter against declared schemas; sanitize inputs before SQL, shell, or API dispatch.
|
|
74
74
|
- **ASI07 Insecure Inter-Agent Communication**: Enforce mutual authentication and RFC 8707 audience restriction on all inter-service MCP calls.
|
|
75
75
|
- **ASI08 Cascading Failures**: Implement circuit breakers, bulkhead isolation, and rate limiting across MCP gateways.
|
|
76
76
|
- **ASI09 Over-Reliance**: Provide deterministic schema validation and error hints to prevent blind acceptance of incorrect tool outputs.
|
|
@@ -69,7 +69,7 @@ When decomposition and planning architecture is established:
|
|
|
69
69
|
## Security Guardrails (OWASP ASI)
|
|
70
70
|
|
|
71
71
|
- **ASI01 Prompt Injection via External Context**: Sanitize file contents and tool outputs before feeding into sub-agent planning contexts.
|
|
72
|
-
- **ASI02
|
|
72
|
+
- **ASI02 Tool Misuse & Exploitation**: Restrict sub-agents to least-privilege tool allowlists; mandate HITL approval for schema drops, deployments, or credential access.
|
|
73
73
|
- **ASI03 Identity & Privilege Abuse**: Provision ephemeral, role-scoped NHI credentials; prohibit shared master credentials across sub-agents.
|
|
74
74
|
- **ASI07 Insecure Inter-Agent Communication**: Validate contract schemas and signatures on all inter-agent messages and handoff artifacts.
|
|
75
75
|
- **ASI08 Cascading Agent Failures**: Isolate sub-agent failure domains; halt DAG branch on invariant failure to prevent error propagation.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: deploy-vllm-inference
|
|
3
|
-
description: Deploy, configure, scale, and optimize high-throughput LLM inference workloads using vLLM
|
|
3
|
+
description: Deploy, configure, scale, and optimize high-throughput LLM inference workloads using the vLLM V1 engine (default since 2025, current v0.32+). Use when serving self-hosted open-weight models (GLM-5, DeepSeek-V4, Qwen3.8, Kimi K2/K3, gpt-oss) on Kubernetes with Dynamic Resource Allocation (DRA), NVIDIA MIG slicing, dynamic chunked prefill, prefix caching, and multi-tier KV cache offloading.
|
|
4
4
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
|
-
version: "
|
|
5
|
+
version: "2.0.0"
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Deploy vLLM Inference
|
|
@@ -11,7 +11,7 @@ Use this skill when deploying, configuring, scaling, and benchmarking production
|
|
|
11
11
|
|
|
12
12
|
## When to Use
|
|
13
13
|
|
|
14
|
-
- deploying self-hosted open models (DeepSeek-
|
|
14
|
+
- deploying self-hosted open-weight models (GLM-5, DeepSeek-V4, Qwen3.8, Kimi K2/K3, gpt-oss; DeepSeek-R1/Qwen2.5/Llama 3.3 are legacy generations) with the vLLM V1 engine
|
|
15
15
|
- configuring PagedAttention v3 with FP8 KV cache memory bounds (<2.4% fragmentation)
|
|
16
16
|
- configuring dynamic chunked prefill to eliminate decode latency jitter (TPOT)
|
|
17
17
|
- enabling hierarchical Radix Tree prefix caching for multi-turn conversations
|
|
@@ -21,12 +21,12 @@ Use this skill when deploying, configuring, scaling, and benchmarking production
|
|
|
21
21
|
|
|
22
22
|
## Core Rules
|
|
23
23
|
|
|
24
|
-
- **Enforce vLLM
|
|
24
|
+
- **Enforce vLLM V1 Architecture**: the V1 engine with standalone C++ core is the default (since early 2025; current release line v0.32+) — `VLLM_USE_V1=1` is only needed to pin the deprecated legacy V0 path; never deploy new workloads on V0.
|
|
25
25
|
- **Dynamic Chunked Prefill**: enable chunked prefill (`--enable-chunked-prefill=true`, `--max-num-batched-tokens 2048`) to interleave prompt prefill chunks (512–2048 tokens) with decode steps, locking TPOT jitter within ±2.0ms.
|
|
26
|
-
- **Prefix Caching with Radix Trees**:
|
|
26
|
+
- **Prefix Caching with Radix Trees**: keep `--enable-prefix-caching=true` with block size 32 (`--block-size 32`) — prefix caching is on by default in V1, so verify rather than assume — to achieve $\ge 70\%$ cache hits on repeated prompts.
|
|
27
27
|
- **VRAM Utilization Safety Ceiling**: cap `--gpu-memory-utilization` between `0.88` and `0.90` to preserve headroom for PyTorch runtime activations and NCCL buffers.
|
|
28
|
-
- **Hardware Isolation**: multi-tenant inference must use NVIDIA MIG (`3g.40gb`) or Kubernetes
|
|
29
|
-
- **Queue-Depth Autoscaling**: autoscale pods on request queue depth (`vllm:num_requests_waiting`, target: 5), never solely on GPU compute utilization.
|
|
28
|
+
- **Hardware Isolation**: multi-tenant inference must use NVIDIA MIG (`3g.40gb`) or Kubernetes Dynamic Resource Allocation (DRA — GA v1.34+, `resource.k8s.io/v1`) with CEL device selectors; software time-slicing on production inference is prohibited.
|
|
29
|
+
- **Queue-Depth Autoscaling (KEDA fronting HPA)**: autoscale pods on request queue depth (`vllm:num_requests_waiting`, target: 5) via KEDA managing the HPA, never solely on GPU compute utilization (KEDA-NOT-HPA rule in `system-design`).
|
|
30
30
|
- **Mandatory tmpfs `/dev/shm`**: mount an in-memory `tmpfs` volume of at least 16GiB on `/dev/shm` to prevent NCCL bus deadlocks.
|
|
31
31
|
- refer to `references/vllm-production-guide.md` for production StatefulSet manifests, DRA ResourceClaims, and Prometheus HPA configs.
|
|
32
32
|
|
|
@@ -37,10 +37,10 @@ Model GPU memory requirements:
|
|
|
37
37
|
$$\text{VRAM}_{\text{total}} = \text{Weights}_{\text{FP8/FP16}} + \text{KV-Cache}_{\text{FP8}} + \text{Activation-Workspace} + \text{Safety-Headroom (12\%)}$$
|
|
38
38
|
For Llama-3.1-70B FP8 on 8x H100 (640GB total VRAM), allocate 70GB weights + 480GB KV cache + 90GB activation headroom.
|
|
39
39
|
|
|
40
|
-
### 2. Claim GPU via Kubernetes
|
|
41
|
-
Declare a `ResourceClaim` requesting GPUs via CEL selectors:
|
|
40
|
+
### 2. Claim GPU via Kubernetes DRA (GA v1.34+) or NVIDIA MIG
|
|
41
|
+
Declare a `ResourceClaim` requesting GPUs via CEL selectors (GA API `resource.k8s.io/v1`; beta-era `v1alpha3` is retired):
|
|
42
42
|
```yaml
|
|
43
|
-
apiVersion: resource.k8s.io/
|
|
43
|
+
apiVersion: resource.k8s.io/v1
|
|
44
44
|
kind: ResourceClaim
|
|
45
45
|
metadata:
|
|
46
46
|
name: vllm-h100-claim
|
|
@@ -87,8 +87,8 @@ volumes:
|
|
|
87
87
|
medium: HugePages
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
### 5. Configure Queue-Depth
|
|
91
|
-
|
|
90
|
+
### 5. Configure Queue-Depth Autoscaling (KEDA fronting HPA)
|
|
91
|
+
Prefer a KEDA ScaledObject driving these queue/KV signals (it manages the HPA below); the raw HPA binding via Prometheus Adapter remains valid:
|
|
92
92
|
```yaml
|
|
93
93
|
apiVersion: autoscaling/v2
|
|
94
94
|
kind: HorizontalPodAutoscaler
|
|
@@ -125,8 +125,8 @@ curl -s http://localhost:8000/metrics | grep -E "vllm:num_requests_waiting|vllm:
|
|
|
125
125
|
- [ ] Confirm `--enable-prefix-caching=true` is enabled with `--block-size 32`
|
|
126
126
|
- [ ] Validate `--gpu-memory-utilization` is capped between 0.88 and 0.90
|
|
127
127
|
- [ ] Verify container mounts tmpfs on `/dev/shm` with minimum 16GiB capacity
|
|
128
|
-
- [ ] Ensure multi-tenant GPU allocation uses NVIDIA MIG or K8s
|
|
129
|
-
- [ ] Confirm HPA scales on request queue depth (`vllm_num_requests_waiting_per_pod`)
|
|
128
|
+
- [ ] Ensure multi-tenant GPU allocation uses NVIDIA MIG or K8s DRA (GA v1.34+) CEL selectors
|
|
129
|
+
- [ ] Confirm autoscaling (KEDA fronting HPA) scales on request queue depth (`vllm_num_requests_waiting_per_pod`)
|
|
130
130
|
|
|
131
131
|
## Output Contracts
|
|
132
132
|
|