@vesviet/agent-skills 5.8.0 → 5.11.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 +35 -22
- package/README.md +7 -18
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +40 -142
- package/adapters/antigravity/INDEX_TIER1.json +174 -146
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/antigravity-tools.md +25 -0
- package/adapters/antigravity/role-skill-index.json +175 -58
- package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
- package/adapters/claude/settings.template.json +18 -3
- package/adapters/cursor/README.md +1 -5
- package/adapters/cursor/hooks.template.json +4 -2
- package/core/contracts/README.md +0 -20
- package/core/contracts/schemas/compact-working-state.json +42 -1
- package/core/contracts/schemas/ui-component-spec.json +28 -2
- package/core/policies/README.md +0 -20
- package/core/policies/action-boundaries.yaml +10 -1
- package/core/policies/execution-sandbox.md +0 -12
- package/core/policies/mcp-tool-map.yaml +28 -0
- package/core/roles/3d-graphics-engineer.md +144 -208
- package/core/roles/README.md +1 -23
- package/core/roles/agent-coordinator.md +28 -147
- package/core/roles/agent-discovery-engineer.md +46 -39
- package/core/roles/ai-systems-engineer.md +2 -0
- package/core/roles/backend-developer.md +22 -117
- package/core/roles/cloudflare-engineer.md +1 -1
- package/core/roles/data-engineer.md +3 -1
- package/core/roles/devops-engineer.md +4 -3
- package/core/roles/ecommerce-engineer.md +18 -6
- package/core/roles/frontend-developer.md +146 -317
- package/core/roles/game-developer.md +2 -1
- package/core/roles/mobile-engineer.md +18 -204
- package/core/roles/product-manager.md +3 -3
- package/core/roles/project-manager.md +5 -5
- package/core/roles/references/3d-graphics-engineer-review-checklist.md +109 -109
- package/core/roles/references/agent-coordinator-responsibilities.md +120 -0
- package/core/roles/references/agent-coordinator-review-checklist.md +22 -4
- package/core/roles/references/agent-discovery-engineer-review-checklist.md +29 -20
- package/core/roles/references/backend-developer-responsibilities.md +47 -0
- package/core/roles/references/backend-developer-review-checklist.md +15 -0
- package/core/roles/references/business-analyst-responsibilities.md +2 -2
- package/core/roles/references/frontend-developer-responsibilities.md +14 -6
- package/core/roles/references/frontend-developer-review-checklist.md +13 -6
- package/core/roles/references/mobile-engineer-responsibilities.md +137 -0
- package/core/roles/references/mobile-engineer-review-checklist.md +63 -0
- package/core/roles/references/reviewer-review-checklist.md +54 -0
- package/core/roles/references/sdet-review-checklist.md +53 -0
- package/core/roles/references/solution-architect-responsibilities.md +134 -0
- package/core/roles/references/sre-review-checklist.md +81 -0
- package/core/roles/references/system-engineer-responsibilities.md +124 -0
- package/core/roles/references/technical-architect-responsibilities.md +192 -0
- package/core/roles/references/technical-architect-review-checklist.md +58 -0
- package/core/roles/references/technical-lead-review-checklist.md +65 -0
- package/core/roles/references/ui-ux-designer-anti-slop-standards.md +61 -35
- package/core/roles/references/ui-ux-designer-responsibilities.md +79 -226
- package/core/roles/references/ui-ux-designer-review-checklist.md +102 -116
- package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +6 -6
- package/core/roles/researcher.md +3 -3
- package/core/roles/reviewer.md +2 -2
- package/core/roles/role-standard.md +79 -205
- package/core/roles/sdet.md +5 -6
- package/core/roles/security-engineer.md +4 -3
- package/core/roles/solution-architect.md +9 -130
- package/core/roles/sre.md +1 -0
- package/core/roles/system-engineer.md +15 -155
- package/core/roles/task-planner.md +1 -1
- package/core/roles/technical-architect.md +15 -244
- package/core/roles/technical-lead.md +1 -0
- package/core/roles/technical-writer.md +3 -3
- package/core/roles/ui-ux-designer.md +158 -303
- package/core/roles/vietnam-accounting-specialist.md +20 -20
- package/core/rules/README.md +0 -22
- package/core/rules/code.md +11 -6
- package/core/skills/README.md +12 -25
- package/core/skills/agent/agent-delegation/SKILL.md +11 -0
- package/core/skills/agent/agent-graph-orchestration/SKILL.md +5 -0
- package/core/skills/agent/agent-memory-compaction/SKILL.md +79 -82
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +74 -115
- package/core/skills/agent/agent-model-routing/SKILL.md +2 -0
- package/core/skills/agent/agent-observability/SKILL.md +12 -6
- package/core/skills/agent/agent-observability/references/session-forensics-7-dimensions.md +41 -0
- package/core/skills/agent/agent-panel-meeting/SKILL.md +3 -3
- package/core/skills/agent/agent-quality-gate/SKILL.md +9 -0
- package/core/skills/agent/configure-agent-commerce/SKILL.md +2 -0
- package/core/skills/agent/configure-agent-commerce/examples/ucp-commerce-manifest-and-endpoints.json +55 -0
- package/core/skills/agent/configure-agent-commerce/references/acp-ucp-agent-commerce-manifest-specs.md +66 -0
- package/core/skills/agent/configure-agent-headers/SKILL.md +3 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +4 -4
- package/core/skills/agent/configure-oauth-metadata/SKILL.md +10 -7
- package/core/skills/agent/manage-agent-identity/SKILL.md +2 -0
- package/core/skills/agent/manage-agent-identity/examples/agent-identity-spire-workload.yaml +72 -0
- package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md +45 -0
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +2 -0
- package/core/skills/ai/deploy-vllm-inference/examples/vllm-production-serve-config.yaml +22 -0
- package/core/skills/ai/deploy-vllm-inference/references/vllm-v1-paged-attention-and-kv-tiering.md +20 -0
- package/core/skills/ai/openrouter-task/SKILL.md +5 -5
- package/core/skills/ai-agent/context-optimization/SKILL.md +2 -0
- package/core/skills/ai-agent/context-optimization/examples/context-pruner-and-reorderer.py +85 -0
- package/core/skills/ai-agent/context-optimization/references/token-budgeting-and-attention-allocation.md +47 -0
- package/core/skills/ai-agent/memory-hygiene/SKILL.md +13 -0
- package/core/skills/ai-agent/memory-hygiene/examples/memory-audit-and-compaction-routine.py +90 -0
- package/core/skills/ai-agent/memory-hygiene/references/agent-memory-vault-spec.md +137 -0
- package/core/skills/ai-agent/memory-hygiene/references/owasp-asi06-and-memory-poisoning-defense.md +38 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/examples/express-zod-rfc9457-endpoint.md +329 -0
- package/core/skills/backend/add-api-endpoint/examples/kratos-go-clean-architecture-endpoint.md +405 -0
- package/core/skills/backend/add-api-endpoint/references/idempotency-and-rate-limiting.md +116 -0
- package/core/skills/backend/add-event-handler/SKILL.md +12 -1
- package/core/skills/backend/add-event-handler/examples/go-outbox-skip-locked-relay.go +97 -0
- package/core/skills/backend/add-event-handler/references/transactional-outbox-and-cloudevents.md +42 -0
- package/core/skills/backend/add-service-client/SKILL.md +2 -0
- package/core/skills/backend/add-service-client/examples/ts-circuit-breaker-full-jitter-client.ts +71 -0
- package/core/skills/backend/add-service-client/references/resilient-client-circuit-breaker-specs.md +25 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +2 -0
- package/core/skills/backend/build-mcp-server/examples/ts-stateless-mcp-server-zod.ts +52 -0
- package/core/skills/backend/build-mcp-server/references/mcp-2026-stateless-contract-specs.md +21 -0
- package/core/skills/backend/design-caching-and-locking/SKILL.md +83 -0
- package/core/skills/backend/design-caching-and-locking/examples/redis-lua-atomic-reservation-fencing.lua +30 -0
- package/core/skills/backend/design-caching-and-locking/references/redis-lua-fencing-and-stampede-specs.md +25 -0
- package/core/skills/backend/design-caching-and-locking/scripts/verify_lua_atomicity.py +68 -0
- package/core/skills/backend/implement-auth/SKILL.md +9 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +2 -0
- package/core/skills/backend/implement-structured-outputs/examples/python-pydantic-structured-output.py +65 -0
- package/core/skills/backend/implement-structured-outputs/references/constrained-decoding-and-double-validation.md +18 -0
- package/core/skills/backend/optimize-postgres/SKILL.md +9 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +2 -1
- package/core/skills/backend/scaffold-new-service/references/deep-modules-and-seams.md +43 -0
- package/core/skills/business/elicit-requirements/SKILL.md +2 -0
- package/core/skills/business/trace-requirements-impact/SKILL.md +1 -0
- package/core/skills/business/write-use-cases/SKILL.md +1 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +18 -66
- package/core/skills/commerce/handle-checkout-flow/examples/production-checkout-orchestrator.ts +185 -0
- package/core/skills/commerce/handle-checkout-flow/references/pci-dss-v4-and-agentic-checkout-specs.md +72 -0
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +22 -58
- package/core/skills/commerce/integrate-payment-gateway/examples/resilient-webhook-and-mpp-handler.ts +164 -0
- package/core/skills/commerce/integrate-payment-gateway/references/mpp-x402-and-webhook-security-specs.md +47 -0
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +17 -50
- package/core/skills/commerce/manage-order-fulfillment/examples/temporal-fulfillment-saga.ts +104 -0
- package/core/skills/commerce/manage-order-fulfillment/references/event-sourced-fulfillment-and-carrier-webhooks.md +58 -0
- package/core/skills/commerce/manage-product-catalog/SKILL.md +5 -1
- package/core/skills/commerce/manage-product-catalog/examples/hybrid-search-and-governance-pipeline.ts +120 -0
- package/core/skills/commerce/manage-product-catalog/references/semantic-vector-catalog-and-graphrag.md +54 -0
- package/core/skills/content/write-article/SKILL.md +1 -1
- package/core/skills/document/docx/SKILL.md +1 -0
- package/core/skills/document/pdf/SKILL.md +2 -0
- package/core/skills/document/pdf/references/pdf-acroforms-and-pdfplumber-specs.md +54 -0
- package/core/skills/document/pdf/scripts/check_fillable_fields.py +144 -0
- package/core/skills/document/pdf/scripts/fill_fillable_fields.py +145 -0
- package/core/skills/document/xlsx/SKILL.md +1 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +3 -0
- package/core/skills/documentation/configure-llms-txt/examples/canonical-llms-txt-and-full-txt.md +45 -0
- package/core/skills/documentation/configure-llms-txt/references/llms-txt-and-llms-full-txt-standard.md +37 -0
- package/core/skills/documentation/write-documentation/SKILL.md +4 -1
- package/core/skills/documentation/write-documentation/examples/microservice-production-readme-and-api-docs.md +70 -0
- package/core/skills/documentation/write-documentation/references/diataxis-framework-and-doc-standards.md +62 -0
- package/core/skills/documentation/write-tech-radar/SKILL.md +1 -0
- package/core/skills/education/create-exercises/SKILL.md +1 -0
- package/core/skills/education/design-learning-plan/SKILL.md +1 -0
- package/core/skills/education/grade-and-review/SKILL.md +1 -0
- package/core/skills/foundation/accessibility-review/SKILL.md +1 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +4 -5
- package/core/skills/foundation/ai-risk-assessment/examples/genai-system-risk-register.md +67 -0
- package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md +49 -0
- package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
- package/core/skills/foundation/conduct-research/SKILL.md +2 -2
- package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +1 -1
- package/core/skills/foundation/create-migration/SKILL.md +10 -0
- package/core/skills/foundation/design-review/SKILL.md +9 -10
- package/core/skills/foundation/design-ux-flow/SKILL.md +9 -7
- package/core/skills/foundation/discernment-nudge/SKILL.md +2 -0
- package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +1 -0
- package/core/skills/foundation/incident-report/SKILL.md +1 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +3 -1
- package/core/skills/foundation/playwright-evidence-qa/SKILL.md +1 -0
- package/core/skills/foundation/refactor-legacy-code/SKILL.md +84 -0
- package/core/skills/foundation/refactor-legacy-code/examples/characterization-test-seam-extraction.py +34 -0
- package/core/skills/foundation/refactor-legacy-code/references/strangler-fig-seams-and-characterization-tests.md +17 -0
- package/core/skills/foundation/refactor-legacy-code/scripts/check_refactor_blast_radius.py +63 -0
- package/core/skills/foundation/release-notes/SKILL.md +3 -3
- package/core/skills/foundation/release-notes/examples/enterprise-platform-release-notes.md +42 -0
- package/core/skills/foundation/release-notes/references/keep-a-changelog-and-semver-governance.md +43 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +15 -0
- package/core/skills/foundation/webapp-server-runner/SKILL.md +1 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +1 -0
- package/core/skills/foundation/write-tests/SKILL.md +9 -0
- package/core/skills/foundation/write-tests/examples/anti-tautological-tdd-walkthrough.md +204 -0
- package/core/skills/foundation/write-tests/examples/testcontainers-kratos-integration-test.md +186 -0
- package/core/skills/foundation/write-tests/references/contract-and-chaos-testing.md +187 -0
- package/core/skills/frontend/INDEX.json +16 -0
- package/core/skills/frontend/add-page-route/SKILL.md +10 -8
- package/core/skills/frontend/add-page-route/examples/streaming-rsc-page-with-view-transition.tsx +133 -0
- package/core/skills/frontend/add-page-route/references/rsc-routing-and-view-transitions.md +72 -0
- package/core/skills/frontend/add-ui-component/SKILL.md +4 -1
- package/core/skills/frontend/add-ui-component/examples/compound-dialog-and-form-actions.tsx +193 -0
- package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +55 -0
- package/core/skills/frontend/component-composition/SKILL.md +12 -1
- package/core/skills/frontend/component-composition/examples/headless-combobox-compound-component.tsx +207 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +5 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/frontend/frontend-micro-polish/SKILL.md +1 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +4 -1
- package/core/skills/frontend/frontend-testing/examples/playwright-e2e-with-msw-and-axe.spec.ts +87 -0
- package/core/skills/frontend/frontend-testing/references/playwright-msw-and-a11y-testing-standards.md +78 -0
- package/core/skills/frontend/implement-ai-disclosure/SKILL.md +119 -0
- package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +7 -4
- package/core/skills/frontend/implement-webmcp/examples/webmcp-provider-and-hitl-modal.tsx +163 -0
- package/core/skills/frontend/implement-webmcp/references/webmcp-architecture-and-hitl-security.md +48 -0
- package/core/skills/frontend/integrate-api-client/SKILL.md +12 -12
- package/core/skills/frontend/integrate-api-client/examples/orval-query-and-streaming-mutation.ts +102 -0
- package/core/skills/frontend/integrate-api-client/references/orval-tanstack-query-and-streaming-specs.md +57 -0
- package/core/skills/frontend/interactive-component-workbench/SKILL.md +1 -0
- package/core/skills/frontend/motion-performance-engineering/SKILL.md +1 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +6 -3
- package/core/skills/frontend/setup-design-system/examples/tailwind-v4-theme-and-dtcg-tokens.css +87 -0
- package/core/skills/frontend/setup-design-system/references/tailwind-v4-oklch-and-dtcg-tokens.md +61 -0
- package/core/skills/frontend/setup-visual-regression/SKILL.md +8 -5
- package/core/skills/frontend/setup-visual-regression/examples/visual-regression-playwright.config.ts +83 -0
- package/core/skills/frontend/setup-visual-regression/references/visual-regression-docker-and-masking-specs.md +46 -0
- package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +64 -42
- package/core/skills/frontend/web-quality-audit/SKILL.md +1 -0
- package/core/skills/gamedev/abstract-input-actions/SKILL.md +2 -0
- package/core/skills/gamedev/abstract-input-actions/examples/input-action-manager.ts +85 -0
- package/core/skills/gamedev/abstract-input-actions/references/action-mapping-and-analog-deadzones.md +54 -0
- package/core/skills/gamedev/architect-ecs-systems/SKILL.md +2 -0
- package/core/skills/gamedev/architect-ecs-systems/examples/bevy-flecs-combat-system.rs +73 -0
- package/core/skills/gamedev/architect-ecs-systems/references/data-oriented-design-and-archetype-ecs.md +39 -0
- package/core/skills/gamedev/author-game-ai/SKILL.md +2 -0
- package/core/skills/gamedev/author-game-ai/examples/modular-behavior-tree-ai.ts +98 -0
- package/core/skills/gamedev/author-game-ai/references/behavior-trees-and-utility-ai-curves.md +47 -0
- package/core/skills/gamedev/configure-physics-collision/SKILL.md +2 -0
- package/core/skills/gamedev/configure-physics-collision/examples/kinematic-physics-substepping.cpp +100 -0
- package/core/skills/gamedev/configure-physics-collision/references/continuous-collision-detection-and-substepping.md +50 -0
- package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +2 -0
- package/core/skills/gamedev/develop-gameplay-systems/examples/kinematic-character-controller.gd +86 -0
- package/core/skills/gamedev/develop-gameplay-systems/references/deterministic-gameplay-state-machines.md +42 -0
- package/core/skills/gamedev/implement-save-persistence/SKILL.md +2 -0
- package/core/skills/gamedev/implement-save-persistence/examples/versioned-save-manager.ts +127 -0
- package/core/skills/gamedev/implement-save-persistence/references/versioned-save-schemas-and-checksums.md +44 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +14 -10
- package/core/skills/gamedev/render-webgl-threejs/examples/production-threejs-webgpu-scene.ts +116 -0
- package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +72 -0
- package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +1 -0
- package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +1 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-data/SKILL.md +1 -0
- package/core/skills/meetings-analysis/meeting-review/SKILL.md +1 -0
- package/core/skills/mmo/analyze-campaign-roi/SKILL.md +2 -0
- package/core/skills/mmo/analyze-campaign-roi/examples/campaign-roi-and-roas-dashboard.py +80 -0
- package/core/skills/mmo/analyze-campaign-roi/references/multi-touch-attribution-and-cpa-analytics.md +33 -0
- package/core/skills/mmo/create-automation-script/SKILL.md +2 -0
- package/core/skills/mmo/create-automation-script/examples/stealth-browser-automation-flow.ts +65 -0
- package/core/skills/mmo/create-automation-script/references/stealth-cdp-and-behavioral-mimicry.md +37 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +3 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/examples/proxy-health-probe-and-rotation-daemon.py +75 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/references/proxy-pool-rotation-and-anti-detect-specs.md +45 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +3 -0
- package/core/skills/mmo/deploy-proxyware-fleet/examples/docker-compose-depin-light-node-fleet.yaml +52 -0
- package/core/skills/mmo/deploy-proxyware-fleet/references/depin-bandwidth-monetization-node-specs.md +43 -0
- package/core/skills/mmo/generate-mmo-content/SKILL.md +2 -0
- package/core/skills/mmo/generate-mmo-content/examples/pseo-programmatic-page-generator.ts +76 -0
- package/core/skills/mmo/generate-mmo-content/references/pseo-landing-pages-and-social-video-hooks.md +39 -0
- package/core/skills/mmo/manage-mmo-assets/SKILL.md +2 -0
- package/core/skills/mmo/manage-mmo-assets/examples/mmo-asset-vault-manager.py +63 -0
- package/core/skills/mmo/manage-mmo-assets/references/mmo-asset-rbac-and-vault-isolation.md +38 -0
- package/core/skills/mmo/setup-tracking-system/SKILL.md +2 -0
- package/core/skills/mmo/setup-tracking-system/examples/meta-capi-s2s-event-dispatcher.ts +79 -0
- package/core/skills/mmo/setup-tracking-system/references/server-to-server-postback-and-capi-specs.md +45 -0
- package/core/skills/mobile/deploy-mobile-app/SKILL.md +1 -0
- package/core/skills/mobile/develop-mobile-app/SKILL.md +1 -0
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -0
- package/core/skills/platform/add-telemetry-instrumentation/examples/kratos-otel-middleware-instrumentation.go +87 -0
- package/core/skills/platform/add-telemetry-instrumentation/references/opentelemetry-semantic-conventions-2026.md +37 -0
- package/core/skills/platform/agents-sdk/SKILL.md +1 -0
- package/core/skills/platform/aws-infrastructure/SKILL.md +2 -0
- package/core/skills/platform/aws-infrastructure/examples/opentofu-eks-pod-identity-vpc.tf +101 -0
- package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md +40 -0
- package/core/skills/platform/cloudflare-email-service/SKILL.md +2 -2
- package/core/skills/platform/configure-ci-cd-pipeline/SKILL.md +83 -0
- package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml +33 -0
- package/core/skills/platform/configure-ci-cd-pipeline/references/github-actions-sha-pinning-and-slsa-specs.md +22 -0
- package/core/skills/platform/configure-ci-cd-pipeline/scripts/audit_workflow_pinning.py +74 -0
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -2
- package/core/skills/platform/debug-workers-edge/SKILL.md +2 -2
- package/core/skills/platform/durable-objects/SKILL.md +1 -0
- package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +1 -0
- package/core/skills/platform/sandbox-sdk/SKILL.md +1 -0
- package/core/skills/platform/setup-deployment/SKILL.md +6 -2
- package/core/skills/platform/setup-deployment/examples/kustomize-production-service-manifests.yaml +123 -0
- package/core/skills/platform/setup-deployment/references/interactive-hitl-wizard.md +55 -0
- package/core/skills/platform/setup-deployment/references/k8s-gitops-and-kustomize-invariants.md +40 -0
- package/core/skills/platform/setup-gpu-finops/SKILL.md +2 -0
- package/core/skills/platform/setup-gpu-finops/examples/gpu-finops-prometheus-rules.yaml +23 -0
- package/core/skills/platform/setup-gpu-finops/references/dcgm-kubecost-gpu-attribution-specs.md +16 -0
- package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
- package/core/skills/platform/setup-llm-gateway/examples/litellm-gateway-config.yaml +28 -0
- package/core/skills/platform/setup-llm-gateway/references/litellm-routing-budget-failover-specs.md +16 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +3 -2
- package/core/skills/platform/supply-chain-security/examples/github-actions-sbom-cosign.yaml +57 -0
- package/core/skills/platform/supply-chain-security/references/slsa-provenance-and-sbom-sigstore.md +60 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +2 -2
- package/core/skills/platform/web-perf/SKILL.md +2 -2
- package/core/skills/platform/workers-best-practices/SKILL.md +1 -0
- package/core/skills/platform/wrangler/SKILL.md +1 -0
- package/core/skills/product/build-story-map/SKILL.md +3 -0
- package/core/skills/product/define-product-strategy/SKILL.md +1 -0
- package/core/skills/product/model-saas-metrics/SKILL.md +1 -0
- package/core/skills/product/prioritize-roadmap/SKILL.md +1 -0
- package/core/skills/repo-ops/commit-code/SKILL.md +1 -0
- package/core/skills/repo-ops/navigate-service/SKILL.md +28 -132
- package/core/skills/repo-ops/navigate-service/examples/service-boundary-map-example.md +14 -0
- package/core/skills/repo-ops/navigate-service/references/service-topology-mapping-guide.md +18 -0
- package/core/skills/repo-ops/review-code/SKILL.md +12 -2
- package/core/skills/repo-ops/review-code/examples/adversarial-two-axis-pr-review.md +167 -0
- package/core/skills/repo-ops/review-code/examples/ai-vibe-slop-remediation.md +220 -0
- package/core/skills/repo-ops/review-code/references/supply-chain-and-migration-safety.md +103 -0
- package/core/skills/repo-ops/review-service/SKILL.md +4 -1
- package/core/skills/repo-ops/review-service/examples/service-release-audit-report.md +21 -0
- package/core/skills/repo-ops/review-service/references/release-readiness-audit-rubric.md +21 -0
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -1
- package/core/skills/security-data/manage-secrets/SKILL.md +2 -0
- package/core/skills/security-data/manage-secrets/examples/external-secrets-vault-crds.yaml +53 -0
- package/core/skills/security-data/manage-secrets/references/zero-trust-secret-rotation-and-eso.md +30 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +8 -7
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +2 -0
- package/core/skills/security-data/prompt-injection-defense/examples/bounded-tool-execution-wrapper.py +78 -0
- package/core/skills/security-data/prompt-injection-defense/references/prompt-injection-taxonomy-and-delimiters.md +37 -0
- package/core/skills/security-data/reverse-engineer-binary/SKILL.md +3 -0
- package/core/skills/security-data/reverse-engineer-binary/examples/binary-triage-and-vulnerability-dossier.md +58 -0
- package/core/skills/security-data/reverse-engineer-binary/references/ghidra-radare2-and-rea-evidence-ledgers.md +43 -0
- package/core/skills/security-data/security-audit/SKILL.md +3 -1
- package/core/skills/security-data/security-audit/examples/enterprise-service-security-audit-report.md +54 -0
- package/core/skills/security-data/security-audit/references/owasp-asi-and-cvss4-threat-modeling.md +39 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +3 -0
- package/core/skills/security-data/skill-preflight-ast-check/references/ast-lethal-trifecta-and-static-vetting.md +38 -0
- package/core/skills/security-data/skill-preflight-ast-check/scripts/scan-skill-ast.py +127 -0
- package/core/skills/seo/audit-technical-seo/SKILL.md +1 -0
- package/core/skills/seo/implement-schema-markup/SKILL.md +1 -0
- package/core/workflows/README.md +0 -20
- package/overlays/README.md +2 -22
- package/overlays/astro-cloudflare/README.md +0 -20
- package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +0 -31
- package/overlays/b2b-catalog-golf/README.md +0 -20
- package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +0 -31
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +1 -0
- package/overlays/b2b-factory-catalog/README.md +0 -20
- package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +0 -31
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +1 -0
- package/overlays/b2b-sport-catalog/README.md +0 -20
- package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +0 -31
- package/overlays/cad-projection/README.md +0 -20
- package/overlays/cad-projection/rules/cad-conventions.md +0 -20
- package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +1 -0
- package/overlays/data-analyst-stack/README.md +0 -20
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +0 -31
- package/overlays/data-analyst-stack/rules/stack-conventions.md +0 -31
- package/overlays/data-warehouse/README.md +0 -22
- package/overlays/data-warehouse/learning/learning-conventions.md +0 -31
- package/overlays/data-warehouse/learning/phase-roadmap.md +0 -31
- package/overlays/data-warehouse/rules/amis-accounting-standards.md +0 -33
- package/overlays/data-warehouse/rules/duckdb-concurrency.md +0 -37
- package/overlays/data-warehouse/rules/pii-scrubbing.md +0 -37
- package/overlays/data-warehouse/rules/stocktake-tolerance.md +0 -33
- package/overlays/ecommerce-microservices/README.md +22 -35
- package/overlays/ecommerce-microservices/config/README.md +3 -1
- package/overlays/ecommerce-microservices/rules/README.md +2 -1
- package/overlays/ecommerce-microservices/rules/microservices-conventions.md +30 -0
- package/overlays/ecommerce-microservices/skills/README.md +1 -1
- package/overlays/ecommerce-microservices/workflows/README.md +3 -1
- package/overlays/fintech-compliance/README.md +0 -20
- package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +0 -20
- package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +1 -0
- package/overlays/go-microservices/README.md +1 -21
- package/overlays/go-microservices/rules/go-conventions.md +0 -31
- package/overlays/hugo-authority-content/README.md +0 -20
- package/overlays/hugo-authority-content/roles/README.md +0 -20
- package/overlays/hugo-authority-content/rules/content-brand.md +0 -30
- package/overlays/hugo-authority-content/rules/link-topology.md +0 -30
- package/overlays/hugo-authority-content/rules/seo-authority.md +0 -30
- package/overlays/hugo-authority-content/rules/technical-article-2027.md +0 -30
- package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +1 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +1 -0
- package/overlays/hugo-authority-content/workflows/README.md +0 -20
- package/overlays/hvac-authority-content/README.md +0 -20
- package/overlays/hvac-authority-content/config/collections.md +0 -22
- package/overlays/hvac-authority-content/rules/content-schema.md +0 -30
- package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +0 -30
- package/overlays/hvac-authority-content/rules/silo-linking.md +0 -30
- package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +1 -0
- package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +0 -22
- package/overlays/laravel-ecommerce/README.md +0 -20
- package/overlays/laravel-ecommerce/rules/elomus-design-system.md +0 -31
- package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +0 -31
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +1 -0
- package/overlays/laravel-filament/README.md +0 -20
- package/overlays/laravel-filament/rules/laravel-conventions.md +0 -31
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +1 -0
- package/overlays/livestream-web/README.md +0 -20
- package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +0 -31
- package/overlays/obj-configurator/README.md +0 -20
- package/overlays/obj-configurator/rules/obj-project-rules.md +0 -31
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +1 -0
- package/overlays/r3f-stack/README.md +0 -20
- package/overlays/r3f-stack/rules/stub.md +0 -31
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +4 -2
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +6 -5
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +4 -3
- package/overlays/real-estate-content/README.md +0 -20
- package/overlays/real-estate-content/roles/README.md +0 -20
- package/overlays/real-estate-content/rules/affiliate-links.md +0 -31
- package/overlays/real-estate-content/rules/content-schema.md +0 -31
- package/overlays/real-estate-content/rules/seo-baseline.md +0 -31
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +1 -0
- package/overlays/real-estate-content/workflows/README.md +0 -20
- package/overlays/security-research/README.md +0 -20
- package/overlays/security-research/rules/reverse-engineering-rules.md +0 -20
- package/overlays/seo-publishing/README.md +1 -21
- package/overlays/seo-publishing/rules/publish-log-conventions.md +0 -31
- package/overlays/seo-publishing/rules/publishing-cadence.md +0 -31
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +0 -31
- package/overlays/seo-publishing/rules/topic-board-template.md +0 -31
- package/overlays/ui-design-system/README.md +0 -20
- package/overlays/ui-design-system/rules/handoff-conventions.md +0 -31
- package/package.json +2 -2
- package/packs/README.md +3 -9
- package/packs/ecommerce-team/manifest.yaml +1 -1
- package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +0 -316
- package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +0 -99
- package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +0 -128
- package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +0 -136
- package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +0 -130
- package/core/skills/education/2026_STANDARDS_SUMMARY.md +0 -290
- package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +0 -115
- package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +0 -140
- package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +0 -141
- package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +0 -345
- package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +0 -102
- package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +0 -114
- package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +0 -103
- package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +0 -137
- package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +0 -108
- package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +0 -123
- package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +0 -121
- package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +0 -236
- package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +0 -97
- package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +0 -143
- package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +0 -125
- package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +0 -209
- package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +0 -122
- package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +0 -141
|
@@ -52,3 +52,66 @@ This reference checklist provides detailed engineering, validation, and security
|
|
|
52
52
|
- **Hermes Bytecode De-obfuscation**: Hermes bytecode sourcemaps are uploaded to Sentry or Bugsnag during release builds to translate hexadecimal memory offsets into accurate TypeScript line numbers.
|
|
53
53
|
- **Native dSYM & ProGuard Mapping Upload**: iOS dSYM bundles and Android ProGuard/R8 `mapping.txt` files are archived and uploaded automatically during EAS post-build workflows.
|
|
54
54
|
- **Production Telemetry & Crash Alerting**: Crash reporting is initialized before the first UI render; breadcrumbs capture offline transition events and network status without logging PII.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Mobile AI-Generated Code Validation (When AI Tools Contributed)
|
|
58
|
+
- **Risk Tier Classification**: Classify edits into `High` (Keychain/Keystore, biometrics, IAP/payment, deep links), `Medium` (camera/push/navigation/offline sync), or `Low` (presentational UI), matching manual verification depth to tier.
|
|
59
|
+
- **Platform SDK & Native API Verification**: Verify every SwiftUI/UIKit/Jetpack Compose/JSI API symbol against installed Xcode/Android SDK headers — zero hallucinated platform calls or mixed iOS/Android conditionals.
|
|
60
|
+
- **JSI / FFI Bridge Memory Safety**: Audit all React Native TurboModule C++ bindings and Flutter FFI structs for retain cycles, null pointer dereferences, and main-thread blocking.
|
|
61
|
+
- **Flutter AOT Binary Size Check**: Run `flutter build --analyze-size` on Flutter modules when AI-generated packages are added to confirm tree shaking succeeds without native bloat.
|
|
62
|
+
- **Accessibility & Dynamic Type Parity**: Test VoiceOver (iOS) and TalkBack (Android) focus order, minimum `44×44pt` / `48×48dp` touch targets, and Dynamic Type / font scaling up to `200%`.
|
|
63
|
+
|
|
64
|
+
### On-Device AI & Agent Hosting Architecture
|
|
65
|
+
- **OS Framework Default**: Prefer first-party on-device engines (`Apple Foundation Models` on iOS 26+ with A17 Pro / M-series gating, `Android AICore + Gemini Nano` via ML Kit GenAI) before bundling third-party weights (`llama.cpp`, `MLX`, `ExecuTorch` 4-bit GGUF).
|
|
66
|
+
- **Off-Main-Thread Inference Isolation**: Execute custom native LLM inference inside a dedicated C++/Swift/Kotlin background service; invoke JS/Dart only over a lightweight control/streaming bridge.
|
|
67
|
+
- **Hybrid Routing Policy & Cloud Escalation**: Route offline/low-latency/PII tasks locally and escalate complex multi-modal reasoning via privacy-preserving endpoints (e.g., Apple Private Cloud Compute); document explicit fallback on unsupported hardware.
|
|
68
|
+
- **SDUI Agent Layout Verification**: Verify Server-Driven UI (SDUI) schema validation, unknown component fallback rendering, and thermal/battery overhead caps (`< 5%` active session drain overhead per benchmark).
|
|
69
|
+
|
|
70
|
+
### Privacy-Preserving ML (Federated Learning & Differential Privacy)
|
|
71
|
+
- **Resource-Aware FL Scheduling**: Trigger local LoRA / split-learning rounds exclusively when charging, on unmetered Wi-Fi, and battery $> 20\%$.
|
|
72
|
+
- **Secure Aggregation & Differential Privacy Calibration**: Protect client gradient updates with cryptographic secure aggregation and calibrated Gaussian/Laplace noise enforcing per-user privacy budget tracking ($\sum \varepsilon_i \le \varepsilon_{\max}$).
|
|
73
|
+
- **Mandatory Regulatory Compliance & Opt-Out**: Complete DPIA prior to FL on financial/health signals, expose clear user opt-out switches, and disclose $\varepsilon$ parameters per GDPR Art. 13 and CCPA.
|
|
74
|
+
|
|
75
|
+
### Quantitative Thresholds & Verification Oracles
|
|
76
|
+
- **Startup & Rendering Budgets**: Cold-start TTI $< 1.5\text{s}$ ($\text{TTI} = t_{\text{interactive}} - t_{\text{launch}}$), JS thread utilization $< 30\%$ during fling gestures, frame budget $\le 16.6\text{ms}$ ($60\text{ FPS}$) or $\le 8.3\text{ms}$ ($120\text{ FPS}$), zero dropped UI frames on FlashList flings ($N > 10$).
|
|
77
|
+
- **Cache & Telemetry Verification Commands**: Verify Hermes `.hbc` bundle emission, verify `runtimeVersion.policy == "fingerprint"` in `app.json`, and run Detox/Maestro offline-reconnect + optimistic-rollback suite with Playwright/API mock harness.
|
|
78
|
+
- **App Store Rejection Pre-Flight**: Verify in-app AI disclosure screen placement, UGC report button + moderation queue SLA ($< 24\text{h}$), `PrivacyInfo.xcprivacy` required-reason APIs, and Google Play Data Safety SDK parity before TestFlight/Play Internal upload.
|
|
79
|
+
|
|
80
|
+
Last updated: 2026-11-27
|
|
81
|
+
|
|
82
|
+
### Physical Device & Platform Matrix Verification
|
|
83
|
+
- **iOS Hardware Verification Targets**: Verify gesture navigation, SafeArea insets (Dynamic Island / Home Indicator), Keychain biometric prompts, and `PrivacyInfo.xcprivacy` required-reason API behavior on at least one physical iPhone running current iOS.
|
|
84
|
+
- **Android Fragmentation & Edge Targets**: Verify Edge-to-Edge WindowInsets, TalkBack focus order, `WorkManager` battery-saver deferred sync, and Keystore hardware-backed attestation across low/mid-tier Android hardware.
|
|
85
|
+
- **Thermal & Memory Ceiling Check**: Measure sustained CPU/GPU frame time and peak RSS memory during 5-minute scroll + navigation stress tests (`peak_rss <= device_tier_budget`), ensuring zero OS Jetsam/LMK terminations.
|
|
86
|
+
|
|
87
|
+
### Offline Replay & Conflict Resolution Gates
|
|
88
|
+
- **Deterministic Offline Queue Ordering**: Assert queued mutations preserve monotonic client timestamps and idempotency keys across app cold restarts.
|
|
89
|
+
- **Server-Wins / CRDT Conflict Path**: Test stale offline updates against modified server entities; verify predictable conflict resolution UI and local store reconciliation without silent data loss.
|
|
90
|
+
- **Auth Expiration While Offline**: Simulate expired refresh token while mutation queue drains on reconnect; confirm queue pauses cleanly for re-authentication rather than purging unsynced user edits.
|
|
91
|
+
|
|
92
|
+
### EAS Release & Store Promotion Pre-Flight Checklist
|
|
93
|
+
- [ ] **Expo Prebuild / Native Diff Check**: `npx expo prebuild --clean` (when applicable) matches committed native config cleanly with zero unreviewed native permission additions.
|
|
94
|
+
- [ ] **OTA Fingerprint Audit**: Confirm EAS Update target runtime fingerprint equals the store binary before publishing channel updates.
|
|
95
|
+
- [ ] **Symbolication Dry-Run**: Trigger a synthetic handled test exception on preview build and confirm legible TypeScript stack frames appear in Sentry/Bugsnag via uploaded Hermes `.hbc.map`, dSYM, and ProGuard files.
|
|
96
|
+
- [ ] **Accessibility Contrast & Dynamic Font Audit**: Verify layout integrity at 200% system font scale and WCAG 2.2 AA touch targets (`>= 44×44pt`) on key commerce/auth forms.
|
|
97
|
+
- [ ] **Store Compliance Sign-Off Evidence**: Archive screenshots of in-app AI disclosure, UGC report modal, Data Safety inventory, and `4.3(b)` native capability proof with `implementation-result.json`.
|
|
98
|
+
|
|
99
|
+
Last updated: 2026-11-27
|
|
100
|
+
|
|
101
|
+
### Cross-Platform Telemetry & Regression Sign-Off Matrix
|
|
102
|
+
| Check Area | Verification Artifact / Tool | Hard Release Threshold | Owner |
|
|
103
|
+
| :--- | :--- | :--- | :--- |
|
|
104
|
+
| Cold-Start Startup TTI | Hermes bytecode `.hbc` + perf trace | $< 1.5\text{s}$ on mid-tier Android | Mobile Engineer |
|
|
105
|
+
| Scroll Fling Render Budget | Reanimated profiler + FlashList | $\le 16.6\text{ms}$ ($60\text{FPS}$), $0$ blank cells | Mobile Engineer |
|
|
106
|
+
| Offline Queue Recovery | Airplane-mode harness + NetInfo mock | $100\%$ ordered replay, rollback on 4xx | Mobile Engineer |
|
|
107
|
+
| Store & AI Compliance | PrivacyInfo + Play Data Safety + UGC report | $0$ missing SDK disclosures, `< 24h` moderation SLA | Mobile Engineer + Security |
|
|
108
|
+
| Differential Privacy (FL) | Aggregate gradient logger + $\varepsilon$ tracker | $\sum \varepsilon_i \le \varepsilon_{\max}$, Wi-Fi + charging only | Mobile Engineer |
|
|
109
|
+
|
|
110
|
+
### Pre-Handoff Confirmation
|
|
111
|
+
- Confirm `contracts/schemas/implementation-result.json` passes `validate-contracts.py` exit code `0`.
|
|
112
|
+
- Confirm skipped physical device OS versions or hardware tiers are recorded under `residual_risks`.
|
|
113
|
+
- Confirm zero staging secrets, keystore passwords, or signing certificates appear in build logs.
|
|
114
|
+
- Confirm VoiceOver (iOS) and TalkBack (Android) navigation smoke checks pass without skipped controls.
|
|
115
|
+
- Confirm EAS Update channel targets match runtime fingerprint compatibility matrix cleanly.
|
|
116
|
+
|
|
117
|
+
Last updated: 2026-11-27
|
|
@@ -65,3 +65,57 @@ AI coding tools frequently generate code that appears syntactically elegant, idi
|
|
|
65
65
|
- **LLM Structured Outputs**:
|
|
66
66
|
- Provider-level constrained decoding enforced (native Structured Outputs or grammar constraints).
|
|
67
67
|
- Runtime schema validation applied as defense-in-depth; no regular expression parsing.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### 7. Dual-Axis Reporting, EU AI Act & Conformance Equations
|
|
71
|
+
- **Two-Axis Separation Rule**: Report **Axis 1 (Standards Conformance & Code Craft)** and **Axis 2 (Spec Delivery & Behavioral Intent)** side by side without collapsing blocking architectural defects under passing functional requirements.
|
|
72
|
+
- **Mutation & Coverage Quantitative Gates**:
|
|
73
|
+
- Verify mutation kill ratio $M_{\text{score}} = \frac{M_{\text{killed}}}{M_{\text{valid}}} \ge 0.75\text{--}0.80$ for Restricted (`T3`) and core invariant modules; reject PRs using tautological line-coverage padding.
|
|
74
|
+
- Verify zero-tolerance static checks (`N+1` queries $\le 1$ per relation, unbounded `SELECT *` count $= 0$, unhandled promise/cancellation count $= 0$).
|
|
75
|
+
- **EU AI Act Article 50 & Trust-Tier Code Audit**:
|
|
76
|
+
- When reviewing user-facing generative features, verify `<AIDisclosureBanner>`, `data-ai-generated` machine attributes, and C2PA provenance metadata hooks are present and sanitized (DOMPurify + Trusted Types).
|
|
77
|
+
- Verify trust tier classification (`T1` / `T2` / `T3`) matches the highest-sensitivity touched module (`auth`, `payments`, `crypto`, `migrations`, `RLS` always escalate to `T3`).
|
|
78
|
+
- **Socratic High-Stakes Probe (`discernment-nudge`)**:
|
|
79
|
+
- For Tier 3+ or irreversible PRs, append 2–3 sharp Socratic questions probing unstated assumptions, concurrency failure modes, and rollback fidelity.
|
|
80
|
+
- **Actionable Finding Contract & Verification**:
|
|
81
|
+
- Map every blocking/important finding in `contracts/schemas/code-review-finding.json` to an exact file path, line range, defect class, and concrete fix recommendation.
|
|
82
|
+
- Re-verify modified files directly rather than trusting AI review summaries; confirm `validate-contracts.py` passes exit code 0 before issuing merge disposition.
|
|
83
|
+
|
|
84
|
+
Last updated: 2026-11-27
|
|
85
|
+
|
|
86
|
+
### 8. Per-Stack Anti-Slop Signals, Scope Discipline & Finding Serialization
|
|
87
|
+
- **Backend Anti-Slop Checks**:
|
|
88
|
+
- Reject raw SQL string interpolation, missing `SET lock_timeout = '2s';` / `CONCURRENTLY` on DDL, unclosed rows/bodies, network calls inside open DB transactions, and missing `Idempotency-Key` on mutating endpoints.
|
|
89
|
+
- **Frontend & UI Craft Checks**:
|
|
90
|
+
- Reject `useEffect` derived-state waterfalls, boolean prop explosion (`> 2` layout flags), unauthenticated `"use server"` Server Actions, `dangerouslySetInnerHTML` without DOMPurify, and layout-thrashing animations (`top`/`left`/`width`).
|
|
91
|
+
- **Concurrency, Async & Resource Audit**:
|
|
92
|
+
- Check every outbound `fetch`/RPC/stream binds `AbortController` / `context.WithTimeout`, circuit breakers isolate `HALF-OPEN` probes, and worker runtimes flush request-scoped containers on exit.
|
|
93
|
+
- **Test & Evidence Anti-Theater Gate**:
|
|
94
|
+
- [ ] Verify new/modified tests actually fail when the production assertion/condition is mutated (no mock-testing-mock tautologies).
|
|
95
|
+
- [ ] Reject PRs claiming fixes for shared helpers without checking sibling call sites across the module/monorepo.
|
|
96
|
+
- [ ] Confirm all modified files in `git diff` belong strictly to the declared ticket scope; split unrelated formatting/refactor churn out immediately.
|
|
97
|
+
- **Code Review Finding Contract Verification**:
|
|
98
|
+
- [ ] `contracts/schemas/code-review-finding.json` validates against Draft 2020-12 schema exit code 0.
|
|
99
|
+
- [ ] Standards findings and Spec findings reported side by side without collapsing blocking issues under passing functional tests.
|
|
100
|
+
- [ ] Every Blocking/Important item specifies exact `file:line`, concrete defect mechanism, and actionable remediation diff/pattern.
|
|
101
|
+
- [ ] Residual risk, unverified code paths, and skipped automated checks documented transparently before issuing final merge recommendation.
|
|
102
|
+
|
|
103
|
+
Last updated: 2026-11-27
|
|
104
|
+
|
|
105
|
+
### 9. Reviewer Disposition & Evidence Matrix
|
|
106
|
+
| Review Dimension | Primary Evidence Inspected | Disposition Threshold | Escalation Role |
|
|
107
|
+
| :--- | :--- | :--- | :--- |
|
|
108
|
+
| Anti Vibe-Slop | Diff lines + boundary/null/error paths | Zero dummy stubs or swallowed exceptions | Technical Lead |
|
|
109
|
+
| Mutation & Property | Stryker / Mutmut / Hypothesis output | $M_{\text{score}} \ge 0.75\text{--}0.80$ on critical paths | SDET / Developer |
|
|
110
|
+
| Multi-Dim Runtime | Concurrency, cancellation, N+1 query checks | Zero unbounded loops or unclosed streams | Backend / Frontend |
|
|
111
|
+
| OWASP ASI04 & ASI05 | Lockfiles, pinned 40-hex CI SHAs, sandboxes | Zero unpinned actions or dynamic `eval` | Security Engineer |
|
|
112
|
+
| Two-Axis Separation | `code-review-finding.json` Standards & Spec | Standards defects reported independently | Agent Coordinator |
|
|
113
|
+
|
|
114
|
+
### 10. Final Review Sign-Off Checklist
|
|
115
|
+
- [ ] Confirm repository `AGENTS.md` and local standards were consulted prior to issuing review disposition.
|
|
116
|
+
- [ ] Verify AI trust tier (`T1` / `T2` / `T3`) matches the highest sensitivity module touched (`auth`, `payments`, `migrations`, `RLS`).
|
|
117
|
+
- [ ] Confirm high-stakes PRs include 2–3 probing `discernment-nudge` Socratic verification questions on unstated assumptions.
|
|
118
|
+
- [ ] Verify reviewer made zero direct feature code edits (preserving strict `BOUNDARY LOCK` separation of duties).
|
|
119
|
+
- [ ] Verify every reported line number and symbol name was directly read in the current workspace diff without hallucination.
|
|
120
|
+
|
|
121
|
+
Last updated: 2026-11-27
|
|
@@ -64,3 +64,56 @@ This reference checklist provides detailed evaluation harness, benchmark archite
|
|
|
64
64
|
- evaluation results emitted conformant to `contracts/schemas/agent-eval-report.json`
|
|
65
65
|
- reports contain run metadata, per-evaluator metrics, rubric breakdowns, and granular failure classification records
|
|
66
66
|
- evaluation artifacts uploaded to persistent observability stores for auditability
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### 8. Statistical Rigor, Inter-Rater Agreement & Mutation Gates
|
|
70
|
+
- **LLM Judge Alignment (Cohen's Kappa)**: Calibrate automated LLM-as-a-judge evaluators against human golden labels guaranteeing inter-rater agreement $\kappa = \frac{p_o - p_e}{1 - p_e} \ge 0.85$ before using judge scores in release gates.
|
|
71
|
+
- **Pass-Rate & Safety Gate Equations**:
|
|
72
|
+
- Enforce composite benchmark pass rate $P_{\text{pass}} = \frac{N_{\text{passed}}}{N_{\text{total}}} \ge 0.90$ and safety probe pass rate $P_{\text{safety}} = 1.00$ (fail-closed on any `goal_hijack` or `tool_breach`).
|
|
73
|
+
- Enforce stratified sampling ratio $40\%$ nominal / $40\%$ edge cases / $20\%$ hostile safety probes across evaluation runs.
|
|
74
|
+
- **Mutation Kill Score Threshold**: Require mutation testing kill rate $M_{\text{kill}} = \frac{M_{\text{killed}}}{M_{\text{total}} - M_{\text{timeout}}} \ge 0.80$ on critical authentication, invariant, and evaluator modules.
|
|
75
|
+
- **Tripartite Flake Quarantine & Repro Hygiene**:
|
|
76
|
+
- Require screenshot, DOM snapshot, and console/network trace artifacts on every Playwright E2E failure (`playwright-evidence-qa`).
|
|
77
|
+
- Verify `with_server.py` / socket-readiness polling succeeds deterministically with zero `time.sleep()` waits.
|
|
78
|
+
- Quarantine and root-cause flaky specs unless they pass $10/10$ consecutive isolated runs cleanly.
|
|
79
|
+
- **Hermetic Evaluation Telemetry & Security**:
|
|
80
|
+
- Assert evaluation benchmark datasets live physically isolated from system prompt few-shot exemplars (zero train/test leakage).
|
|
81
|
+
- Confirm test harnesses run under `AST02`/`ASI05` sandbox constraints with zero access to host secrets or identity files.
|
|
82
|
+
|
|
83
|
+
Last updated: 2026-11-27
|
|
84
|
+
|
|
85
|
+
### 9. Deterministic Harness Audit, Mutation Oracles & CI Promotion Gates
|
|
86
|
+
- **Hermetic Isolation & Cleanup Verification**:
|
|
87
|
+
- [ ] Multi-server E2E harness uses socket-readiness polling (`with_server.py` / TCP connect probes) — zero arbitrary `sleep` timers remain in codebase.
|
|
88
|
+
- [ ] `try / finally` / signal traps terminate all spawned child processes, temporary filesystems, and ephemeral containers cleanly even on assertion failure.
|
|
89
|
+
- [ ] Per-worker isolated schemas/databases prevent race conditions when suites run concurrently under `pytest -n auto` or Playwright shards.
|
|
90
|
+
- **Mutation & Property-Based Evidence Audits**:
|
|
91
|
+
- Verify critical parsers, auth checks, and evaluator scorers survive adversarial mutant injection (Mutmut / Stryker kill ratio $M_{\text{kill}} \ge 0.80$).
|
|
92
|
+
- Verify failing property-test counterexamples (`Hypothesis` / `fast-check`) are promoted into permanent regression fixtures with exact minimal shrinking seeds.
|
|
93
|
+
- **Benchmark Regression & Drift Prevention**:
|
|
94
|
+
- Compare candidate run metrics against golden baseline: fail closed when latency P95 regresses $> 15\%$, schema conformance drops below $100\%$, or safety violations $> 0$.
|
|
95
|
+
- Require human re-annotation calibration whenever evaluator prompts or judge models change, keeping Cohen's Kappa $\kappa \ge 0.85$.
|
|
96
|
+
- **Traceability & Artifact Completeness Check**:
|
|
97
|
+
- [ ] Every failure in `agent-eval-report.json` maps to an explicit taxonomy category (`schema_violation`, `hallucination`, `goal_hijack`, `trajectory_loop`, `tool_breach`, `timeout`), never generic `"unknown"`.
|
|
98
|
+
- [ ] Tripartite triage evidence (screenshot, DOM snapshot, browser/network trace) archived cleanly for every failing UI scenario (`playwright-evidence-qa`).
|
|
99
|
+
- [ ] Candidate vs baseline diff report summarizes exact sample counts ($N_{\text{nominal}}$, $N_{\text{edge}}$, $N_{\text{adversarial}}$), model IDs, and deterministic git SHAs without extrapolating skipped cases.
|
|
100
|
+
|
|
101
|
+
Last updated: 2026-11-27
|
|
102
|
+
|
|
103
|
+
### 10. SDET Harness & Gate Compliance Matrix
|
|
104
|
+
| Gate Pillar | Verification Mechanism | Passing Requirement | Escalation Target |
|
|
105
|
+
| :--- | :--- | :--- | :--- |
|
|
106
|
+
| Benchmark Stratification | Golden JSONL split ratio | $40\%$ nominal / $40\%$ edge / $20\%$ hostile | Prompt Engineer |
|
|
107
|
+
| Deterministic Pre-Flight | Schema + regex + forbidden-phrase checks | $100\%$ pass prior to judge invocation | Developer / AI Systems |
|
|
108
|
+
| Judge Calibration | Human-labeled golden calibration set | Cohen's Kappa $\kappa \ge 0.85$ | Technical Lead |
|
|
109
|
+
| Mutation Effectiveness | Mutmut / Stryker kill run | Kill rate $M_{\text{kill}} \ge 0.80$ | Reviewer / Developer |
|
|
110
|
+
| Flake & Isolation Control | Hermetic container + socket readiness poll | $10/10$ clean runs, zero `sleep()` hacks | QA Engineer / DevOps |
|
|
111
|
+
|
|
112
|
+
### 11. Final Evaluation Sign-Off Checklist
|
|
113
|
+
- [ ] Confirm `contracts/schemas/agent-eval-report.json` validates against Draft 2020-12 schema exit code `0`.
|
|
114
|
+
- [ ] Verify zero safety violations (`goal_hijack`, `tool_breach`) occurred across adversarial safety probes (`P_safety = 1.00`).
|
|
115
|
+
- [ ] Verify benchmark dataset directories remain physically isolated from runtime system prompts (zero data contamination).
|
|
116
|
+
- [ ] Confirm exact evaluated commit SHA, model identifier, temperature (`0.0`), and sample sizes appear in report metadata.
|
|
117
|
+
- [ ] Verify any skipped scenarios or sandbox limitations are explicitly listed without inflating overall pass percentages.
|
|
118
|
+
|
|
119
|
+
Last updated: 2026-11-27
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Solution Architect — Detailed Responsibilities
|
|
2
|
+
|
|
3
|
+
Companion reference to [`../solution-architect.md`](../solution-architect.md). Load on demand for Build/Buy/Partner/MCP Marketplace evaluation matrices, VRAM formulas, 4-pillar Agent ROI, and regulatory scoping details.
|
|
4
|
+
|
|
5
|
+
### Architecture-as-Code (AaC) & Executable C4 Modeling
|
|
6
|
+
|
|
7
|
+
- author and maintain executable C4 architecture models using **Structurizr DSL** (`workspace.dsl`) and **LikeC4 DSL** (`workspace.c4`) versioned in Git alongside application code
|
|
8
|
+
- model the system across 4 rigorous levels: System Context (Level 1), Containers (Level 2), Components (Level 3), and Deployment Topology (Level 4)
|
|
9
|
+
- automate architectural verification in CI: reject PRs if architecture models fail syntax validation or drift from deployed service catalogs
|
|
10
|
+
- eliminate passive whiteboard diagrams; all architecture visualizations must be generated deterministically from source-controlled DSL code
|
|
11
|
+
|
|
12
|
+
### Spec-Driven Architecture & Immutable Contract Boundaries
|
|
13
|
+
|
|
14
|
+
- establish machine-readable contract specifications (`contracts/schemas/`) as the prerequisite for any architectural initiative
|
|
15
|
+
- enforce centralized Schema Registry governance using Protobuf BSR (`bufbuild/buf`) and OpenAPI 3.1 / AsyncAPI 3.0 with Spectral automated linting (`.spectral.yaml`)
|
|
16
|
+
- produce `contracts/schemas/solution-brief.json` as the primary machine-readable handoff declaring solution boundaries, capability gaps, and contract invariants
|
|
17
|
+
- lock API and event payload boundaries (`contracts/schemas/api-contract-spec.json`) before downstream engineering slices are generated
|
|
18
|
+
- declare SemVer versioning rules, backward-compatibility guarantees, and deprecation timelines at the solution level
|
|
19
|
+
- eliminate specification drift by aligning solution boundaries directly with formal schema models rather than ambiguous narrative text
|
|
20
|
+
|
|
21
|
+
### Cell-Based Architecture & Failure Domain Isolation (FDI)
|
|
22
|
+
|
|
23
|
+
- partition solution architectures targeting $\ge 99.95\%$ availability into independent, shared-nothing cellular boundaries (Cells) with zero cross-cell synchronous dependencies
|
|
24
|
+
- implement **Shuffle Sharding** routing using Highest Random Weight (HRW) rendezvous hashing algorithms ($P(\text{Collision}) = 1/\binom{N}{K} \le 0.005\%$) to isolate noisy neighbors and limit incident blast radius to a tiny tenant fraction
|
|
25
|
+
- mandate **Monotonic Epoch Fencing Tokens** and distributed consensus locks across cell routers to permanently eliminate split-brain dual-master state mutations
|
|
26
|
+
- dimension **Little's Law Bulkheads**: isolate thread pools, memory limits, and database connection pools between high-traffic public paths and critical internal functions ($L = \lambda \times W$)
|
|
27
|
+
- mandate asynchronous decoupling (Transactional Outbox with `SELECT ... FOR UPDATE SKIP LOCKED` + Dapr Pub/Sub) for inter-domain data flow and cross-cell events
|
|
28
|
+
- define deterministic graceful degradation tiers (e.g., L1 local memory cache, L2 Redis stale read, L3 deterministic rule engine fallback when AI/external APIs degrade)
|
|
29
|
+
- configure circuit breakers with atomic **single-canary probe locks** in the `HALF-OPEN` state to prevent thundering herd crashes upon downstream service recovery
|
|
30
|
+
|
|
31
|
+
### Mathematical Capacity Sizing & GPU VRAM Allocation
|
|
32
|
+
|
|
33
|
+
- derive concurrency and connection pool limits using **Little's Law** ($L = \lambda \times W$) for all ingress gateways, worker goroutines, and PostgreSQL PgBouncer pools
|
|
34
|
+
- calculate exact LLM GPU memory requirements using the canonical 4-component VRAM equation:
|
|
35
|
+
$$VRAM_{total} = VRAM_{weights} + VRAM_{KV} + VRAM_{activation} + VRAM_{overhead}$$
|
|
36
|
+
reserving $\ge 15\%$ safety headroom to eliminate CUDA OOM panics under concurrent prompt bursts
|
|
37
|
+
- dimension PagedAttention KV-cache pools based on model parameter count, context lengths ($L_{prompt}$, $L_{gen}$), and batch concurrency ($B_{max}$)
|
|
38
|
+
- 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)
|
|
39
|
+
- track **Token Economics**: compute Cost-Per-Token ($CPT$) and enforce Value-Per-Token ($VPT$) viability thresholds before approving agentic solution architectures
|
|
40
|
+
|
|
41
|
+
### Clean Architecture & Microservice Standards (Go 1.27+ Kratos & Dapr)
|
|
42
|
+
|
|
43
|
+
- 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
|
|
44
|
+
- mandate compile-time Dependency Injection using **Google Wire** (`wire.go`); eliminate global singletons and untracked service dependencies
|
|
45
|
+
- architect distributed business transactions as asynchronous **Saga state machines** orchestrated via Dapr Pub/Sub and Transactional Outbox; reject distributed Two-Phase Commit (2PC) anti-patterns
|
|
46
|
+
|
|
47
|
+
### Quantitative Blast Radius Scoring & SLO Performance Envelopes
|
|
48
|
+
|
|
49
|
+
- assign a standardized quantitative Blast Radius score to every proposed solution component:
|
|
50
|
+
- Tier 1 (Localized): Single internal module, zero external consumer impact, automated recovery.
|
|
51
|
+
- Tier 2 (Service-Internal): Internal service impact, consumers protected by bulkheads, recovery < 5 minutes.
|
|
52
|
+
- Tier 3 (Cross-Service): Shared API or schema migration, multi-service consumers, requires canary rollout.
|
|
53
|
+
- Tier 4 (Public / Core Platform): Public contracts, auth/authz, or tenant data isolation, requires instant kill-switches and executive review.
|
|
54
|
+
- define concrete Service Level Objectives (SLO) in the solution brief: availability (e.g. 99.95%), P95/P99 latency ceilings, error budgets, and token expenditure limits
|
|
55
|
+
- translate architectural SLOs into concrete performance envelopes that downstream Technical Leads and QA Engineers enforce as release-blocking CI/CD gates
|
|
56
|
+
|
|
57
|
+
### Build vs Buy vs Partner Decision Framework
|
|
58
|
+
|
|
59
|
+
For every significant solution option, evaluate explicitly:
|
|
60
|
+
|
|
61
|
+
| Dimension | Questions to answer |
|
|
62
|
+
|-----------|-------------------|
|
|
63
|
+
| **Build** | Do we have the capability? What is the full cost including maintenance? What is the lock-in to our own decisions? |
|
|
64
|
+
| **Buy / SaaS** | Does the vendor solve the core need without forcing process change? What is the exit cost? What data leaves our boundary? |
|
|
65
|
+
| **Partner / Integrate** | What does the partner own that we cannot replicate cost-effectively? What is the integration surface and its failure mode? |
|
|
66
|
+
| **MCP Marketplace Tool** | Does the pre-built MCP server meet the capability need? What is the registry provenance and publisher vetting? What data transits the tool? What is the rug-pull / deprecation risk? What is the exit cost if the tool is withdrawn? |
|
|
67
|
+
| **Hybrid** | Where does each component create the most value? Where does coupling create the most risk? |
|
|
68
|
+
|
|
69
|
+
Document the chosen quadrant and rationale in the solution brief. If the answer is not yet known, document the decision dependency and block the relevant downstream phase until resolved.
|
|
70
|
+
|
|
71
|
+
**MCP Marketplace Evaluation — detailed criteria for MCP tool adoption:**
|
|
72
|
+
|
|
73
|
+
- **Registry provenance**: Who published this tool? Is there a verifiable publisher identity? Is the tool listed in a curated registry with code review, or an unvetted open registry?
|
|
74
|
+
- **Data residency**: Where does tool execution happen? Does the tool send data to external servers? Is this compatible with GDPR or sector-specific data residency requirements?
|
|
75
|
+
- **Rug-pull / deprecation risk**: What is the tool's version stability? Is there a versioning lock mechanism? What happens to dependent agent workflows if the tool is deprecated or breaks a contract?
|
|
76
|
+
- **Behavioral monitoring**: Can we monitor what the tool actually does at runtime vs. what its documentation claims? Is there an audit trail for tool-call inputs and outputs?
|
|
77
|
+
- **Exit cost**: If we replace this MCP tool in 12 months, how much of the agent workflow is coupled to it? Can another MCP server be substituted with configuration changes, or does replacement require re-architecting agent workflows?
|
|
78
|
+
|
|
79
|
+
### Capability Mapping
|
|
80
|
+
|
|
81
|
+
When an initiative touches existing systems:
|
|
82
|
+
- map current capabilities to required capabilities: what exists, what is partially available, what is missing entirely
|
|
83
|
+
- identify reuse candidates vs rebuild candidates vs retirement candidates
|
|
84
|
+
- surface hidden dependencies: capabilities that appear available but have undocumented constraints (performance ceilings, licensing limits, team ownership gaps)
|
|
85
|
+
- produce a capability gap summary as part of the solution brief — Technical Architect consumes this to scope boundary changes
|
|
86
|
+
|
|
87
|
+
### AI Solution Feasibility Assessment
|
|
88
|
+
|
|
89
|
+
When AI or agentic approaches are proposed as business solutions:
|
|
90
|
+
|
|
91
|
+
**Business value justification:**
|
|
92
|
+
- confirm the problem requires AI: is there a simpler deterministic solution that achieves the same business outcome at lower cost and risk? if yes, recommend it
|
|
93
|
+
- identify what unique value the AI component adds that a rule-based or conventional system cannot replicate
|
|
94
|
+
- estimate confidence threshold required for the business outcome to be acceptable — low-confidence AI output in high-stakes decisions is a solution design flaw, not an engineering problem
|
|
95
|
+
|
|
96
|
+
**AI solution constraints as business requirements:**
|
|
97
|
+
- specify HITL requirement at the solution level: which decisions cannot be made autonomously and require human confirmation regardless of model confidence
|
|
98
|
+
- specify explainability requirement: must the system explain its output to the user, auditor, or regulator? — this is a solution constraint, not a UI choice
|
|
99
|
+
- specify fallback behavior: what does the system do when the AI component is unavailable, below confidence threshold, or produces anomalous output? — document this in the solution brief as a business requirement
|
|
100
|
+
- classify EU AI Act risk tier at solution scoping, not post-engineering: high-risk classification means conformity assessment, audit logging, and human oversight are solution requirements that affect option selection and cost estimates
|
|
101
|
+
- reflect the current EU AI Act timeline in cost/feasibility estimates: high-risk (Annex III) obligations were deferred by the Digital Omnibus to **2 December 2027**, while **2 August 2026 remains live** for Article 50 transparency obligations and GPAI penalty powers
|
|
102
|
+
|
|
103
|
+
**AI solution vs conventional solution comparison:**
|
|
104
|
+
- always include at least one non-AI option in the options_considered list when an AI approach is on the table
|
|
105
|
+
- document the business trade-off between the AI option and the conventional option explicitly: capability gain, accuracy risk, explainability cost, regulatory exposure, operational overhead
|
|
106
|
+
|
|
107
|
+
### Agent ROI Framework
|
|
108
|
+
|
|
109
|
+
When recommending an agentic solution to business stakeholders, connect agent investment directly to P&L line items using the 4-pillar framework:
|
|
110
|
+
|
|
111
|
+
- **Pillar 1 — Hard-dollar cost reduction**: quantify labor displacement or augmentation, process cycle time reduction, and error remediation savings
|
|
112
|
+
- **Pillar 2 — Risk and compliance savings**: quantify audit penalty avoidance, governed MCP interaction safety, and incident reduction value
|
|
113
|
+
- **Pillar 3 — Revenue and profit growth**: quantify conversion uplift, cost-to-serve reduction, and speed-to-market advantage
|
|
114
|
+
- **Pillar 4 — Operational resilience**: quantify uptime protection, failure domain blast radius containment, and scaling efficiency
|
|
115
|
+
|
|
116
|
+
**Single LLM vs multi-agent cost-complexity trade-off:**
|
|
117
|
+
- before recommending a multi-agent architecture, evaluate whether a single powerful LLM with tool access achieves the same business outcome at lower operational cost and latency
|
|
118
|
+
- multi-agent orchestration increases latency, failure surface, observability complexity, and token expenditure
|
|
119
|
+
- choose multi-agent only when task decomposition genuinely benefits from specialist isolation or compliance mandates isolated agent authority boundaries
|
|
120
|
+
|
|
121
|
+
### Stakeholder Alignment & Solution Narrative
|
|
122
|
+
|
|
123
|
+
- translate solution options into stakeholder-readable language without losing technical accuracy
|
|
124
|
+
- identify stakeholder conflicts early: when business owners, technical teams, and operations have incompatible constraints, surface the conflict with a proposed resolution path rather than silently choosing one perspective
|
|
125
|
+
- produce a **stakeholder summary** section in the solution brief that can be shared directly with non-technical decision-makers
|
|
126
|
+
- do not produce implementation detail in stakeholder-facing output — solution design communicates intent, not mechanism
|
|
127
|
+
|
|
128
|
+
### Compliance & Regulatory Scoping
|
|
129
|
+
|
|
130
|
+
- identify applicable regulations at solution scoping time: GDPR, PDPA, EU AI Act, sector-specific rules, and local data residency requirements
|
|
131
|
+
- translate each applicable regulation into a named solution constraint: what the solution must do, must not do, or must demonstrate before launch
|
|
132
|
+
- flag when the proposed solution is incompatible with a regulation and provide a redirect recommendation
|
|
133
|
+
- document which compliance obligations require architectural enforcement (data residency, audit logs, access control) vs operational process
|
|
134
|
+
- hand compliance constraints to Technical Architect and Business Analyst as explicit named requirements in the solution brief
|
|
@@ -32,4 +32,85 @@ This reference checklist provides detailed reliability engineering, error budget
|
|
|
32
32
|
- **Distributed Trace Context Correlation**: Confirm that postmortem artifacts embed W3C distributed trace identifiers (`root_trace_id`, `culprit_span_id`), enabling 1-click correlation from the postmortem record to exact OpenTelemetry distributed traces.
|
|
33
33
|
- **Closed-Loop Preventative Action Item Governance**: Verify that all postmortem action items include unique IDs, designated owner roles (e.g., DevOps Engineer, Backend Developer, Data Engineer), priority ratings, target completion dates, and verifiable success criteria. Confirm that incidents cannot be marked closed while P1 action items remain untracked.
|
|
34
34
|
|
|
35
|
+
### 7. Quantitative SRE Equations, Error Budget Formulas & PromQL Gates
|
|
36
|
+
- **MWMBR Burn Rate Formulation**: Verify error budget burn rate thresholds follow $\text{BurnRate} = \frac{1 - \text{SLI}}{1 - \text{SLO}}$:
|
|
37
|
+
- **P1 Fast Burn (1h / 5m)**: $\text{BurnRate} \ge 14.4$ consumes $2\%$ of a 30-day error budget in $1\text{h}$ ($\frac{14.4}{720} = 0.02$).
|
|
38
|
+
- **P2 Medium Burn (6h / 30m)**: $\text{BurnRate} \ge 6.0$ consumes $5\%$ of a 30-day error budget in $6\text{h}$ ($\frac{6 \times 6}{720} = 0.05$).
|
|
39
|
+
- **Ticket Slow Burn (3d / 6h)**: $\text{BurnRate} \ge 1.0$ consumes $10\%$ of a 30-day error budget in $72\text{h}$.
|
|
40
|
+
- **MTBF / Availability & Recovery Verification**: Track $\text{Availability} = \frac{\text{GoodEvents}}{\text{TotalEvents}}$ and enforce $\text{MTTM} + \text{MTTR} \le \text{RTO}$ across chaos drills and canary rollbacks.
|
|
41
|
+
- **Authoritative PromQL Error Budget & GenAI Latency Queries**:
|
|
42
|
+
```promql
|
|
43
|
+
# 1h & 5m Multi-Window Error Budget Burn Rate (> 14.4x with zero-traffic coalescing)
|
|
44
|
+
(
|
|
45
|
+
(sum(rate(http_requests_total{status=~"5.."}[1h])) or on() vector(0))
|
|
46
|
+
/ (sum(rate(http_requests_total[1h])) > 0 or on() vector(1))
|
|
47
|
+
) > (14.4 * (1 - 0.999))
|
|
48
|
+
and
|
|
49
|
+
(
|
|
50
|
+
(sum(rate(http_requests_total{status=~"5.."}[5m])) or on() vector(0))
|
|
51
|
+
/ (sum(rate(http_requests_total[5m])) > 0 or on() vector(1))
|
|
52
|
+
) > (14.4 * (1 - 0.999))
|
|
53
|
+
|
|
54
|
+
# GenAI Inference TTFT P95 Latency Budget (< 1.5s) & Token Throughput
|
|
55
|
+
histogram_quantile(0.95, sum(rate(gen_ai_server_time_to_first_token_seconds_bucket[5m])) by (le))
|
|
56
|
+
sum(rate(gen_ai_usage_tokens_total[5m])) by (gen_ai_request_model)
|
|
57
|
+
|
|
58
|
+
# Kubernetes Connection Saturation & eBPF TCP Retransmit Anomaly
|
|
59
|
+
sum(rate(cilium_drop_count_total[5m])) by (reason)
|
|
60
|
+
```
|
|
61
|
+
- **Chaos Game Day Execution Evidence**:
|
|
62
|
+
- Steady-state baseline metrics recorded for $T_{\text{pre}} \ge 10\text{m}$ prior to fault injection.
|
|
63
|
+
- Fault injection scope bounded strictly to canary/staging shard with automated kill-switch active.
|
|
64
|
+
- Recovery verified automatically back into SLO tolerance envelope within $\text{RTO}$ without manual intervention.
|
|
65
|
+
- **Runbook Dry-Run & Toil Verification**:
|
|
66
|
+
- Every SEV-1/SEV-2 alert includes a verified executable runbook link tested within the last quarter.
|
|
67
|
+
- Operational toil ratio audited as $R_{\text{toil}} = \frac{\text{Hours}_{\text{toil}}}{\text{Hours}_{\text{total}}} < 0.50$ across the on-call rotation.
|
|
68
|
+
- **Postmortem Evidence Audit**:
|
|
69
|
+
- Timeline reconstructed chronologically with UTC timestamps from OTel traces, alert firing logs, and rollback events.
|
|
70
|
+
- Root cause avoids single-word blame ("human error") and names deterministic systemic controls + regression test fixtures.
|
|
71
|
+
- All P1 remediation owners (`Backend Developer`, `DevOps Engineer`, `Data Engineer`) have accepted deadlines tracked in engineering backlog.
|
|
72
|
+
- **Capacity & Saturation Headroom Checks**:
|
|
73
|
+
- Database connections, GPU KV-cache utilization (`< 85%`), memory working set, and disk IOPS maintain $\ge 20\text{--}30\%$ burst headroom above peak traffic.
|
|
74
|
+
- Alerting triggers cleanly at $70\text{--}80\%$ utilization prior to queuing/GC collapse thresholds.
|
|
75
|
+
- Canary error-budget freeze automation verified cleanly in GitOps / Argo Rollouts `AnalysisTemplate` without `vector(0)` false positives.
|
|
76
|
+
|
|
77
|
+
### 8. Incident Severity Triage, eBPF Diagnostics & Verification Gates
|
|
78
|
+
- **Severity & Escalation Matrix Verification**:
|
|
79
|
+
- **SEV-1**: Complete CUJ outage or active data loss (`BurnRate >= 14.4`, P1 immediate page, War Room + continuous status updates every 15 minutes).
|
|
80
|
+
- **SEV-2**: Partial degradation or redundant-zone loss (`BurnRate >= 6.0`, P2 page, mitigation target `< 30m`).
|
|
81
|
+
- **SEV-3 / SEV-4**: Minor single-tenant defect or non-urgent SLO drift (ticket-routed within working hours).
|
|
82
|
+
- **eBPF Cilium Hubble & Beyla Diagnostic Commands**:
|
|
83
|
+
- Verify zero silent kernel packet drops via `hubble observe --verdict DROPPED --last 5m` and inspect HTTP/gRPC golden signals from kernel space without code recompilation.
|
|
84
|
+
- Correlate elevated TCP retransmits or DNS lookup stalls (`> 50ms` P99) directly against application timeout budgets.
|
|
85
|
+
- **Chaos & Failover Abort Safety Checks**:
|
|
86
|
+
- [ ] Synthetic canary probe running outside fault-injected blast zone throughout experiment duration.
|
|
87
|
+
- [ ] Automated abort webhook tested before injecting latency, packet loss, or pod kill into staging/canary pools.
|
|
88
|
+
- [ ] Post-experiment p95/p99 latency and error rates return to $\le 1.05\times$ pre-chaos steady-state baseline within declared $\text{RTO}$.
|
|
89
|
+
- [ ] Incident postmortem (`incident-report.json`) validates clean against Draft 2020-12 schema with `root_trace_id`, `five_whys` ($N \ge 3$), and assigned P1 action items.
|
|
90
|
+
- [ ] On-call handoff summary explicitly documents remaining monthly error budget, open risks, and unverified regions.
|
|
91
|
+
- [ ] Runbook validation schedule confirmed up to date after every architecture or dependency topology change.
|
|
92
|
+
- [ ] Alert fatigue ratio audited monthly: zero chronic non-actionable pages firing more than twice without runbook remediation or threshold tuning.
|
|
93
|
+
- [ ] Error-budget freeze policy audited with Product & Engineering Lead whenever cumulative monthly consumption exceeds $80\%$.
|
|
94
|
+
|
|
95
|
+
### 9. Telemetry & Game-Day Readiness Matrix
|
|
96
|
+
| Signal Category | Telemetry Source | Blocking Threshold | Escalation Owner |
|
|
97
|
+
| :--- | :--- | :--- | :--- |
|
|
98
|
+
| Burn Rate Fast Window | MWMBR PromQL (1h / 5m) | $\text{BurnRate} \ge 14.4$ | On-Call SRE (P1) |
|
|
99
|
+
| Burn Rate Medium Window | MWMBR PromQL (6h / 30m) | $\text{BurnRate} \ge 6.0$ | Service Owner + SRE (P2) |
|
|
100
|
+
| GenAI Inference Latency | `gen_ai_server_time_to_first_token` | TTFT P95 $< 1.5\text{s}$ | AI Systems Engineer |
|
|
101
|
+
| Kernel Network Drops | `hubble observe --verdict DROPPED` | Unexpected drop spike $> 0$ | System / SRE |
|
|
102
|
+
| Post-Chaos Steady State | Canary SLI vs pre-injection baseline | Recovery $\le \text{RTO}$, ratio $\le 1.05\times$ | SRE + DevOps |
|
|
103
|
+
|
|
104
|
+
### 10. Handoff & Sign-Off Verification
|
|
105
|
+
- [ ] `contracts/schemas/incident-report.json` validated via `validate-contracts.py` exit code `0` for all SEV-1/SEV-2 events.
|
|
106
|
+
- [ ] Root cause traces include valid 32-hex `root_trace_id` and 16-hex `culprit_span_id` OpenTelemetry identifiers.
|
|
107
|
+
- [ ] Unverified failover paths, skipped game days, or muted alert rules are surfaced explicitly in reliability notes.
|
|
108
|
+
- [ ] Automation runbooks obey Minimal-Footprint & Irreversible-Action locks with working dry-run flags.
|
|
109
|
+
- [ ] Zero PII or unredacted production bearer tokens appear in exported diagnostic bundles or postmortems.
|
|
110
|
+
- [ ] Monthly operational toil ratio $R_{\text{toil}} < 0.50$ documented alongside concrete automation candidates.
|
|
111
|
+
- [ ] Canary rollback webhook latency verified $< 15\text{s}$ from alert trigger to traffic shift initiation.
|
|
112
|
+
- [ ] Persistent storage saturation alerts tuned at $75\%$ capacity with automated log rotation and retention pruning active.
|
|
113
|
+
- [ ] Regional failover topology and DNS health-check failover TTLs verified within last quarterly disaster recovery window.
|
|
114
|
+
- [ ] Downstream stakeholders (`Technical Lead`, `DevOps Engineer`, `Product Manager`) notified when error budget remaining $< 20\%$.
|
|
115
|
+
|
|
35
116
|
Last updated: 2026-10-05
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# System Engineer — Detailed Responsibilities
|
|
2
|
+
|
|
3
|
+
Companion reference to [`../system-engineer.md`](../system-engineer.md). Load on demand for serving stack matrices, capacity forecast templates, vector DB tables, and OS/network hardening playbooks.
|
|
4
|
+
|
|
5
|
+
### System Design & Integration Engineering (Foundation)
|
|
6
|
+
|
|
7
|
+
System design is the primary output of this role at the design phase. System design operates at the cross-service topology layer — not at the individual service implementation layer (owned by Technical Architect).
|
|
8
|
+
|
|
9
|
+
- **System topology design**: define compute nodes, network segments, load balancing strategy, service mesh configuration, and inter-service communication patterns
|
|
10
|
+
- **Integration architecture**: design how services, databases, queues, caches, and external APIs connect at the infrastructure level — message formats, retry strategies, circuit breaker placement, and backpressure design
|
|
11
|
+
- **Environment design**: specify staging, production, multi-region, and disaster recovery environment topology; define what is shared vs. isolated per environment
|
|
12
|
+
- **Non-functional requirements engineering**: receive NFRs from Technical Architect or Product Manager and translate them into specific, measurable infrastructure targets:
|
|
13
|
+
- "99.9% availability" → specific load balancer config, health check intervals, failover strategy, and recovery time objective
|
|
14
|
+
- "P99 < 200ms" → specific cache hierarchy, network hop budget, and compute allocation
|
|
15
|
+
- "support 10x traffic growth" → horizontal scaling design, shard strategy, connection pool sizing
|
|
16
|
+
- **Infrastructure-as-Code authoring**: write and own Terraform, Ansible, or equivalent IaC for all system-level infrastructure; IaC is the system design made executable
|
|
17
|
+
- **System design documentation**: produce `contracts/schemas/system-design-spec.json` as the primary machine-readable handoff; include topology, NFR targets, capacity model, and design rationale
|
|
18
|
+
|
|
19
|
+
### Capacity Planning & Resource Modeling (Foundation)
|
|
20
|
+
|
|
21
|
+
Capacity planning is a proactive design responsibility — not a reactive post-incident activity:
|
|
22
|
+
|
|
23
|
+
- **Demand forecasting**: model expected compute, memory, network, and storage demand based on traffic projections, data growth, and feature roadmap
|
|
24
|
+
- **Compute sizing**: specify instance types, replica counts, and autoscaling policies for each service and infrastructure component; document the reasoning (e.g., "m5.2xlarge chosen for 16GB memory headroom for JVM GC at P95 load")
|
|
25
|
+
- **Network capacity**: model bandwidth requirements, latency budgets per network segment, and connection limits for databases and external APIs
|
|
26
|
+
- **Storage hierarchy design**: select and size storage tiers (hot/warm/cold), specify retention policies, and design archival and backup topology
|
|
27
|
+
- **Cost vs performance trade-off modeling**: quantify the infrastructure cost of each NFR target; surface the trade-off to stakeholders before committing to a specification
|
|
28
|
+
- **Capacity review cadence**: define and own periodic capacity reviews (monthly or quarterly); detect headroom degradation before it becomes an incident; update capacity model as actuals deviate from forecast
|
|
29
|
+
|
|
30
|
+
**Capacity modeling output format:**
|
|
31
|
+
|
|
32
|
+
| Resource | Current usage | P95 forecast (3mo) | P95 forecast (12mo) | Headroom | Action trigger |
|
|
33
|
+
|----------|-------------|---------------------|---------------------|----------|----------------|
|
|
34
|
+
| CPU (avg) | X% | Y% | Z% | W% | Alert at 70% |
|
|
35
|
+
| Memory | X GB | Y GB | Z GB | W GB | Scale at 80% |
|
|
36
|
+
| Network egress | X GB/day | Y GB/day | Z GB/day | — | Review at 2x |
|
|
37
|
+
| GPU VRAM | X GB | Y GB | Z GB | W GB | Upgrade at 90% |
|
|
38
|
+
|
|
39
|
+
### AI Infrastructure Architecture
|
|
40
|
+
|
|
41
|
+
AI inference infrastructure is a full system engineering domain — not an application concern. The System Engineer owns the AI infrastructure layer end-to-end:
|
|
42
|
+
|
|
43
|
+
**GPU resource allocation and management:**
|
|
44
|
+
- 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
|
|
45
|
+
- design GPU namespace allocation in Kubernetes: namespace-level GPU quotas, node affinity rules, and fractional GPU sharing policies (MIG for A100/H100)
|
|
46
|
+
- 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
|
|
47
|
+
- define GPU autoscaling policy: scale triggers based on GPU utilization, queue depth, and inference latency — not CPU/memory triggers which are indirect signals
|
|
48
|
+
|
|
49
|
+
**Inference server configuration:**
|
|
50
|
+
- select and configure inference serving stack based on model type and latency requirements:
|
|
51
|
+
|
|
52
|
+
| Serving stack | Best for | Key config levers |
|
|
53
|
+
|-------------|----------|------------------|
|
|
54
|
+
| **vLLM** | High-throughput LLM serving, continuous batching | '--max-model-len', '--tensor-parallel-size', '--max-num-batches', '--quantization' |
|
|
55
|
+
| **SGLang** | High-throughput serving with RadixAttention prefix caching, structured/constrained decoding | prefix cache config, tensor/data parallel size, chunked prefill, quantization |
|
|
56
|
+
| **TensorRT-LLM** | NVIDIA-optimized low-latency inference | precision (fp16/int8/int4), engine build config, paged attention |
|
|
57
|
+
| **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) |
|
|
58
|
+
| **Triton Inference Server** | Multi-model, multi-framework, ensemble pipelines | model repository layout, dynamic batching config, instance groups |
|
|
59
|
+
| **Ollama** | Local/dev inference, small team deployments | model pull, NUMA configuration, context length |
|
|
60
|
+
| **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 |
|
|
61
|
+
|
|
62
|
+
- configure continuous batching parameters: batch size, max tokens per iteration, and prefill/decode ratio based on expected request mix
|
|
63
|
+
- **disaggregated prefill/decode serving**: 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
|
|
64
|
+
- 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)
|
|
65
|
+
- **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`
|
|
66
|
+
- **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`
|
|
67
|
+
- 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
|
|
68
|
+
- configure KV cache size: balance between per-request context length support and concurrent request capacity
|
|
69
|
+
|
|
70
|
+
**Vector database topology:**
|
|
71
|
+
- select vector database based on data volume, query latency, and update frequency requirements:
|
|
72
|
+
|
|
73
|
+
| Database | Best for | Key design decisions |
|
|
74
|
+
|----------|----------|---------------------|
|
|
75
|
+
| **pgvector** | Small-medium datasets, existing Postgres stack | index type (HNSW vs IVFFlat), lists/m/ef_construction params |
|
|
76
|
+
| **Qdrant** | Medium-large, payload filtering, Rust performance | collection config, HNSW params, quantization (scalar/product) |
|
|
77
|
+
| **Weaviate** | Large-scale, multi-tenant, hybrid search | class schema, vector index config, replication factor |
|
|
78
|
+
| **Pinecone** | Managed, serverless, operational simplicity | pod type, replicas, metadata indexing |
|
|
79
|
+
|
|
80
|
+
- design embedding pipeline topology: embedding model placement (co-located vs remote), batching strategy, caching layer for repeated queries
|
|
81
|
+
- specify vector index parameters based on recall vs. latency trade-off requirements; document the parameter derivation reasoning
|
|
82
|
+
|
|
83
|
+
**Edge-cloud AI topology:**
|
|
84
|
+
|
|
85
|
+
Boundary with Technical Architect: the **architect owns the placement decision** (edge vs cloud vs hybrid) and records it in the ADR. System Engineer owns the **topology that implements it**, and supplies the latency, capacity, and cost evidence the architect's decision depends on. Do not make or override the placement decision here — escalate to Technical Architect with the measured trade-offs.
|
|
86
|
+
|
|
87
|
+
- implement inference request routing against the ADR's placement decision: encode which queries go to edge inference (low latency, small models) vs. cloud inference (high capability, large models) as routing rules based on query complexity classification
|
|
88
|
+
- specify model caching at edge: which model weights are cached at edge nodes, cache eviction policy, and warm-up schedule
|
|
89
|
+
- feed measured latency, throughput, and cost-per-inference back to Technical Architect when the data contradicts the recorded placement decision
|
|
90
|
+
|
|
91
|
+
### Performance Engineering & Benchmarking
|
|
92
|
+
|
|
93
|
+
- **System benchmarking**: define and execute benchmarking plans for critical infrastructure paths; document methodology, test scenarios, and result interpretation
|
|
94
|
+
- **Load modeling**: build representative load models from production traffic data or requirements; synthetic load that does not represent real request mix invalidates benchmark results
|
|
95
|
+
- **Bottleneck identification**: use profiling, tracing, and metrics to identify the highest-impact constraint across the full stack; do not optimize a non-bottleneck
|
|
96
|
+
- **Performance regression detection**: define performance baseline metrics and alert thresholds; a 20% latency regression without a corresponding load increase is a signal, not noise
|
|
97
|
+
- **Cross-layer optimization**: identify when the bottleneck is at the infrastructure layer (network, storage, OS config) rather than the application layer; distinguish and escalate clearly
|
|
98
|
+
|
|
99
|
+
**Performance investigation methodology:**
|
|
100
|
+
1. Identify the symptom (P99 latency spike, throughput drop, memory pressure)
|
|
101
|
+
2. Establish the baseline (what was normal before this symptom appeared)
|
|
102
|
+
3. Collect signals at each layer (network, OS, runtime, application, database, inference)
|
|
103
|
+
4. Isolate the layer where degradation originates
|
|
104
|
+
5. Hypothesize and test a targeted fix (one variable at a time)
|
|
105
|
+
6. Validate fix against baseline
|
|
106
|
+
7. Document root cause, fix, and prevention strategy
|
|
107
|
+
|
|
108
|
+
### Infrastructure Configuration & Hardening (Foundation)
|
|
109
|
+
|
|
110
|
+
The System Engineer implements infrastructure directly — this is not delegated to DevOps unless explicitly agreed:
|
|
111
|
+
|
|
112
|
+
**OS-level configuration:**
|
|
113
|
+
- kernel parameter tuning: sysctl settings for network stack (net.core.somaxconn, tcp_backlog), file descriptor limits, huge pages for database and AI workloads
|
|
114
|
+
- storage configuration: filesystem choice (ext4 vs XFS for sequential workloads), mount options, I/O scheduler selection based on storage type (SSD vs NVMe vs HDD)
|
|
115
|
+
- security hardening: CIS benchmark application, unnecessary service disabling, privilege separation, audit logging configuration
|
|
116
|
+
|
|
117
|
+
**Network configuration:**
|
|
118
|
+
- VLAN segmentation, firewall rules (iptables/nftables), load balancer configuration (HAProxy, Nginx, or cloud-native)
|
|
119
|
+
- DNS architecture: internal DNS for service discovery, TTL strategy, health-check-aware DNS failover
|
|
120
|
+
- network security: zero-trust network access design, mTLS between services, network policy enforcement in Kubernetes
|
|
121
|
+
|
|
122
|
+
**Middleware configuration:**
|
|
123
|
+
- message queue topology: Kafka partition strategy, consumer group design, replication factor, retention policy; Redis cluster design, eviction policy, persistence configuration
|
|
124
|
+
- API gateway: rate limiting configuration, circuit breaker policy, request/response transformation rules
|