universal-dev-standards 5.17.0 → 6.1.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/bin/uds.js +13 -135
- package/bundled/ai/options/commit-message/bilingual.ai.yaml +19 -1
- package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +13 -4
- package/bundled/ai/standards/accessibility-standards.ai.yaml +1 -1
- package/bundled/ai/standards/ai-response-navigation.ai.yaml +15 -2
- package/bundled/ai/standards/api-design-standards.ai.yaml +27 -4
- package/bundled/ai/standards/behavior-snapshot.ai.yaml +86 -9
- package/bundled/ai/standards/checkin-standards.ai.yaml +3 -3
- package/bundled/ai/standards/code-review.ai.yaml +2 -2
- package/bundled/ai/standards/context-aware-loading.ai.yaml +3 -3
- package/bundled/ai/standards/data-migration-testing.ai.yaml +79 -3
- package/bundled/ai/standards/deprecation-standards.ai.yaml +10 -2
- package/bundled/ai/standards/developer-memory.ai.yaml +4 -3
- package/bundled/ai/standards/documentation-writing-standards.ai.yaml +1 -1
- package/bundled/ai/standards/flow-based-testing.ai.yaml +2 -2
- package/bundled/ai/standards/forward-derivation-standards.ai.yaml +26 -2
- package/bundled/ai/standards/frontend-design-standards.ai.yaml +33 -3
- package/bundled/ai/standards/full-coverage-testing.ai.yaml +34 -2
- package/bundled/ai/standards/git-worktree.ai.yaml +3 -3
- package/bundled/ai/standards/logging.ai.yaml +97 -3
- package/bundled/ai/standards/mock-boundary.ai.yaml +48 -2
- package/bundled/ai/standards/model-provenance.ai.yaml +297 -0
- package/bundled/ai/standards/model-selection.ai.yaml +11 -2
- package/bundled/ai/standards/observability-standards.ai.yaml +10 -0
- package/bundled/ai/standards/performance-standards.ai.yaml +46 -1
- package/bundled/ai/standards/pii-classification.ai.yaml +15 -1
- package/bundled/ai/standards/pipeline-security-gates.ai.yaml +10 -0
- package/bundled/ai/standards/privacy-standards.ai.yaml +2 -2
- package/bundled/ai/standards/project-context-memory.ai.yaml +2 -2
- package/bundled/ai/standards/push-standards.ai.yaml +14 -3
- package/bundled/ai/standards/refactoring-standards.ai.yaml +68 -3
- package/bundled/ai/standards/requirement-engineering.ai.yaml +42 -3
- package/bundled/ai/standards/resource-cost-boundary.ai.yaml +279 -0
- package/bundled/ai/standards/reverse-engineering-standards.ai.yaml +55 -2
- package/bundled/ai/standards/security-testing.ai.yaml +13 -2
- package/bundled/ai/standards/self-review-protocol.ai.yaml +15 -10
- package/bundled/ai/standards/skill-standard-alignment-check.ai.yaml +37 -2
- package/bundled/ai/standards/user-journey-testing.ai.yaml +107 -0
- package/bundled/ai/standards/verification-evidence.ai.yaml +88 -5
- package/bundled/ai/standards/verification-oracle.ai.yaml +278 -0
- package/bundled/ai/standards/versioning.ai.yaml +32 -38
- package/bundled/core/acceptance-criteria-traceability.md +15 -5
- package/bundled/core/accessibility-standards.md +8 -4
- package/bundled/core/ai-friendly-architecture.md +1 -1
- package/bundled/core/ai-response-navigation.md +31 -3
- package/bundled/core/anti-sycophancy-prompting.md +1 -1
- package/bundled/core/api-design-standards.md +92 -7
- package/bundled/core/audit-trail.md +119 -0
- package/bundled/core/behavior-snapshot.md +94 -7
- package/bundled/core/browser-compatibility-standards.md +15 -2
- package/bundled/core/checkin-standards.md +10 -3
- package/bundled/core/code-review-checklist.md +10 -2
- package/bundled/core/container-image-standards.md +97 -0
- package/bundled/core/context-aware-loading.md +2 -2
- package/bundled/core/cost-budget-test.md +1 -1
- package/bundled/core/cross-flow-regression.md +3 -2
- package/bundled/core/data-contract.md +104 -0
- package/bundled/core/data-migration-testing.md +90 -0
- package/bundled/core/data-pipeline.md +113 -0
- package/bundled/core/deprecation-standards.md +16 -2
- package/bundled/core/developer-memory.md +13 -8
- package/bundled/core/documentation-writing-standards.md +2 -2
- package/bundled/core/error-code-standards.md +4 -3
- package/bundled/core/feature-discovery-standards.md +191 -0
- package/bundled/core/flaky-test-management.md +1 -1
- package/bundled/core/flow-based-testing.md +3 -3
- package/bundled/core/forward-derivation-standards.md +33 -5
- package/bundled/core/frontend-design-standards.md +93 -4
- package/bundled/core/full-coverage-testing.md +72 -0
- package/bundled/core/git-worktree.md +4 -4
- package/bundled/core/guides/performance-guide.md +1 -1
- package/bundled/core/guides/security-guide.md +1 -1
- package/bundled/core/health-check-standards.md +2 -2
- package/bundled/core/iac-design-principles.md +97 -0
- package/bundled/core/incident-response.md +119 -0
- package/bundled/core/license-compliance.md +2 -0
- package/bundled/core/logging-standards.md +78 -2
- package/bundled/core/mock-boundary.md +54 -2
- package/bundled/core/model-provenance.md +181 -0
- package/bundled/core/model-selection.md +27 -2
- package/bundled/core/multi-environment-e2e-testing.md +195 -0
- package/bundled/core/packaging-standards.md +1 -0
- package/bundled/core/performance-standards.md +96 -2
- package/bundled/core/pii-classification.md +148 -0
- package/bundled/core/pipeline-security-gates.md +22 -2
- package/bundled/core/postmortem-standards.md +2 -0
- package/bundled/core/prd-standards.md +91 -0
- package/bundled/core/privacy-standards.md +14 -3
- package/bundled/core/product-metrics-standards.md +100 -0
- package/bundled/core/project-context-memory.md +8 -2
- package/bundled/core/prompt-regression.md +1 -1
- package/bundled/core/push-standards.md +82 -0
- package/bundled/core/refactoring-standards.md +44 -3
- package/bundled/core/replay-test.md +1 -1
- package/bundled/core/requirement-engineering.md +2 -2
- package/bundled/core/resource-cost-boundary.md +180 -0
- package/bundled/core/reverse-engineering-standards.md +66 -2
- package/bundled/core/runbook.md +113 -0
- package/bundled/core/schema-evolution.md +105 -0
- package/bundled/core/secret-management-standards.md +110 -0
- package/bundled/core/security-testing.md +26 -2
- package/bundled/core/self-review-protocol.md +15 -10
- package/bundled/core/skill-standard-alignment-check.md +53 -0
- package/bundled/core/slo-sli.md +109 -0
- package/bundled/core/smoke-test.md +1 -1
- package/bundled/core/tech-debt-standards.md +1 -1
- package/bundled/core/test-data-standards.md +2 -2
- package/bundled/core/user-journey-testing.md +102 -0
- package/bundled/core/user-story-mapping.md +96 -0
- package/bundled/core/verification-evidence.md +170 -10
- package/bundled/core/verification-oracle.md +167 -0
- package/bundled/core/versioning.md +133 -109
- package/bundled/locales/COVERAGE.md +94 -77
- package/bundled/locales/zh-CN/CHANGELOG.md +94 -6
- package/bundled/locales/zh-CN/CLAUDE.md +1 -1
- package/bundled/locales/zh-CN/MAINTENANCE.md +42 -661
- package/bundled/locales/zh-CN/README.md +25 -12
- package/bundled/locales/zh-CN/SECURITY.md +2 -2
- package/bundled/locales/zh-CN/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
- package/bundled/locales/zh-CN/ai/options/commit-message/bilingual.ai.yaml +6 -1
- package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +4 -6
- package/bundled/locales/zh-CN/core/accessibility-standards.md +1 -1
- package/bundled/locales/zh-CN/core/adversarial-test.md +226 -0
- package/bundled/locales/zh-CN/core/agent-behavior-discipline.md +187 -0
- package/bundled/locales/zh-CN/core/ai-response-navigation.md +32 -6
- package/bundled/locales/zh-CN/core/anti-sycophancy-prompting.md +1 -1
- package/bundled/locales/zh-CN/core/api-design-standards.md +1 -1
- package/bundled/locales/zh-CN/core/behavior-snapshot.md +335 -0
- package/bundled/locales/zh-CN/core/browser-compatibility-standards.md +239 -0
- package/bundled/locales/zh-CN/core/cd-deployment-strategies.md +135 -0
- package/bundled/locales/zh-CN/core/chaos-injection-tests.md +130 -0
- package/bundled/locales/zh-CN/core/checkin-standards.md +1 -1
- package/bundled/locales/zh-CN/core/code-review-checklist.md +1 -1
- package/bundled/locales/zh-CN/core/container-security.md +535 -0
- package/bundled/locales/zh-CN/core/context-aware-loading.md +1 -1
- package/bundled/locales/zh-CN/core/contract-testing-standards.md +191 -0
- package/bundled/locales/zh-CN/core/cost-budget-test.md +86 -0
- package/bundled/locales/zh-CN/core/cross-flow-regression.md +200 -0
- package/bundled/locales/zh-CN/core/data-migration-testing.md +217 -0
- package/bundled/locales/zh-CN/core/deployment-standards.md +328 -9
- package/bundled/locales/zh-CN/core/deprecation-standards.md +1 -1
- package/bundled/locales/zh-CN/core/developer-memory.md +2 -2
- package/bundled/locales/zh-CN/core/disaster-recovery-drill.md +87 -0
- package/bundled/locales/zh-CN/core/documentation-structure.md +1 -1
- package/bundled/locales/zh-CN/core/documentation-writing-standards.md +1 -1
- package/bundled/locales/zh-CN/core/error-code-standards.md +2 -2
- package/bundled/locales/zh-CN/core/feature-manifest-standard.md +222 -0
- package/bundled/locales/zh-CN/core/flaky-test-management.md +87 -0
- package/bundled/locales/zh-CN/core/flow-based-testing.md +284 -0
- package/bundled/locales/zh-CN/core/forward-derivation-standards.md +3 -4
- package/bundled/locales/zh-CN/core/frontend-design-standards.md +1 -1
- package/bundled/locales/zh-CN/core/full-coverage-testing.md +269 -0
- package/bundled/locales/zh-CN/core/git-worktree.md +1 -1
- package/bundled/locales/zh-CN/core/governance-layer.md +160 -0
- package/bundled/locales/zh-CN/core/guides/performance-guide.md +515 -0
- package/bundled/locales/zh-CN/core/guides/security-guide.md +494 -0
- package/bundled/locales/zh-CN/core/knowledge-graph-memory.md +128 -0
- package/bundled/locales/zh-CN/core/license-compliance.md +131 -0
- package/bundled/locales/zh-CN/core/llm-output-validation.md +192 -0
- package/bundled/locales/zh-CN/core/logging-standards.md +205 -7
- package/bundled/locales/zh-CN/core/mock-boundary.md +161 -0
- package/bundled/locales/zh-CN/core/model-selection.md +28 -5
- package/bundled/locales/zh-CN/core/mutation-testing.md +106 -0
- package/bundled/locales/zh-CN/core/no-cicd-deployment.md +219 -0
- package/bundled/locales/zh-CN/core/packaging-standards.md +77 -5
- package/bundled/locales/zh-CN/core/pipeline-security-gates.md +146 -0
- package/bundled/locales/zh-CN/core/policy-as-code-testing.md +203 -0
- package/bundled/locales/zh-CN/core/privacy-standards.md +1 -1
- package/bundled/locales/zh-CN/core/project-context-memory.md +1 -1
- package/bundled/locales/zh-CN/core/prompt-regression.md +88 -0
- package/bundled/locales/zh-CN/core/property-based-testing.md +87 -0
- package/bundled/locales/zh-CN/core/release-quality-manifest.md +207 -0
- package/bundled/locales/zh-CN/core/release-readiness-gate.md +193 -0
- package/bundled/locales/zh-CN/core/replay-test.md +102 -0
- package/bundled/locales/zh-CN/core/requirement-engineering.md +1 -1
- package/bundled/locales/zh-CN/core/reverse-engineering-standards.md +46 -1
- package/bundled/locales/zh-CN/core/rollback-standards.md +120 -0
- package/bundled/locales/zh-CN/core/sast-advanced.md +309 -0
- package/bundled/locales/zh-CN/core/secure-op.md +328 -0
- package/bundled/locales/zh-CN/core/security-testing.md +113 -0
- package/bundled/locales/zh-CN/core/self-review-protocol.md +172 -0
- package/bundled/locales/zh-CN/core/server-ops-security.md +507 -0
- package/bundled/locales/zh-CN/core/smoke-test.md +79 -0
- package/bundled/locales/zh-CN/core/spec-driven-development.md +39 -3
- package/bundled/locales/zh-CN/core/supply-chain-attestation.md +131 -0
- package/bundled/locales/zh-CN/core/verification-evidence.md +252 -41
- package/bundled/locales/zh-CN/core/versioning.md +1 -1
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +36 -7
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +71 -53
- package/bundled/locales/zh-CN/docs/MIGRATION-v6.md +88 -0
- package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +2 -2
- package/bundled/locales/zh-CN/docs/USER-MANUAL.md +14 -14
- package/bundled/locales/zh-CN/docs/specs/system/memory-adoption-strategy.md +105 -0
- package/bundled/locales/zh-CN/docs/user/FAQ.md +132 -0
- package/bundled/locales/zh-CN/docs/user/GETTING-STARTED.md +144 -0
- package/bundled/locales/zh-CN/docs/user/GLOSSARY.md +178 -0
- package/bundled/locales/zh-CN/docs/user/README.md +70 -0
- package/bundled/locales/zh-CN/docs/user/TROUBLESHOOTING.md +190 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +1 -1
- package/bundled/locales/zh-CN/integrations/github-copilot/README.md +1 -1
- package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +3 -3
- package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +3 -3
- package/bundled/locales/zh-CN/methodologies/guides/sdd-guide.md +836 -0
- package/bundled/locales/zh-CN/options/changelog/auto-generated.md +166 -0
- package/bundled/locales/zh-CN/options/changelog/keep-a-changelog.md +140 -0
- package/bundled/locales/zh-CN/options/code-review/automated-review.md +214 -0
- package/bundled/locales/zh-CN/options/code-review/pair-programming.md +166 -0
- package/bundled/locales/zh-CN/options/code-review/pr-review.md +167 -0
- package/bundled/locales/zh-CN/options/commit-message/bilingual.md +10 -3
- package/bundled/locales/zh-CN/options/documentation/api-docs.md +191 -0
- package/bundled/locales/zh-CN/options/documentation/markdown-docs.md +150 -0
- package/bundled/locales/zh-CN/options/documentation/wiki-style.md +131 -0
- package/bundled/locales/zh-CN/options/project-structure/kotlin.md +144 -0
- package/bundled/locales/zh-CN/options/project-structure/php.md +168 -0
- package/bundled/locales/zh-CN/options/project-structure/ruby.md +156 -0
- package/bundled/locales/zh-CN/options/project-structure/rust.md +136 -0
- package/bundled/locales/zh-CN/options/project-structure/swift.md +165 -0
- package/bundled/locales/zh-CN/options/testing/contract-testing.md +237 -0
- package/bundled/locales/zh-CN/options/testing/industry-pyramid.md +200 -0
- package/bundled/locales/zh-CN/options/testing/istqb-framework.md +144 -0
- package/bundled/locales/zh-CN/options/testing/performance-testing.md +251 -0
- package/bundled/locales/zh-CN/options/testing/security-testing.md +192 -0
- package/bundled/locales/zh-CN/skills/README.md +89 -126
- package/bundled/locales/zh-CN/skills/ac-coverage/SKILL.md +5 -7
- package/bundled/locales/zh-CN/skills/adr-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/agents/code-architect.md +263 -0
- package/bundled/locales/zh-CN/skills/agents/doc-writer.md +410 -0
- package/bundled/locales/zh-CN/skills/agents/reviewer.md +357 -0
- package/bundled/locales/zh-CN/skills/agents/spec-analyst.md +410 -0
- package/bundled/locales/zh-CN/skills/agents/test-specialist.md +368 -0
- package/bundled/locales/zh-CN/skills/ai-collaboration-standards/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/ai-friendly-architecture/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/ai-instruction-standards/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
- package/bundled/locales/zh-CN/skills/atdd-assistant/atdd-workflow.md +3 -4
- package/bundled/locales/zh-CN/skills/audit-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/bdd-assistant/guide.md +1 -2
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +115 -17
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +37 -12
- package/bundled/locales/zh-CN/skills/checkin-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/ci-cd-assistant/SKILL.md +50 -0
- package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +5 -5
- package/bundled/locales/zh-CN/skills/commands/ac-coverage.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/atdd.md +3 -3
- package/bundled/locales/zh-CN/skills/commands/bdd.md +2 -2
- package/bundled/locales/zh-CN/skills/commands/brainstorm.md +26 -17
- package/bundled/locales/zh-CN/skills/commands/{review.md → code-review.md} +4 -4
- package/bundled/locales/zh-CN/skills/commands/derive-all.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/derive-atdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/derive-bdd.md +2 -3
- package/bundled/locales/zh-CN/skills/commands/derive-tdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/derive.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/dev-workflow.md +2 -2
- package/bundled/locales/zh-CN/skills/commands/methodology.md +4 -4
- package/bundled/locales/zh-CN/skills/commands/pr.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/tdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/dev-methodology/create-methodology.md +456 -0
- package/bundled/locales/zh-CN/skills/dev-methodology/guide.md +6 -6
- package/bundled/locales/zh-CN/skills/dev-methodology/runtime.md +296 -0
- package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +5 -5
- package/bundled/locales/zh-CN/skills/docs-generator/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/e2e-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/incident-response-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/journey-test-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/logging-guide/SKILL.md +169 -142
- package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/observability-assistant/guide.md +1 -1
- package/bundled/locales/zh-CN/skills/pr-automation-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/project-discovery/guide.md +2 -2
- package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/runbook-assistant/guide.md +1 -1
- package/bundled/locales/zh-CN/skills/security-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/skill-builder/SKILL.md +3 -3
- package/bundled/locales/zh-CN/skills/slo-assistant/guide.md +1 -1
- package/bundled/locales/zh-CN/skills/spec-derivation/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/spec-derivation/guide.md +8 -9
- package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/sweep/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/testing-guide/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/testing-guide/testing-theory.md +2298 -0
- package/bundled/locales/zh-CN/skills/workflows/README.md +451 -0
- package/bundled/locales/zh-TW/CHANGELOG.md +94 -6
- package/bundled/locales/zh-TW/CLAUDE.md +1 -1
- package/bundled/locales/zh-TW/MAINTENANCE.md +51 -4
- package/bundled/locales/zh-TW/README.md +25 -12
- package/bundled/locales/zh-TW/SECURITY.md +2 -2
- package/bundled/locales/zh-TW/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
- package/bundled/locales/zh-TW/ai/options/commit-message/bilingual.ai.yaml +6 -1
- package/bundled/locales/zh-TW/ai/standards/versioning.ai.yaml +8 -48
- package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +4 -6
- package/bundled/locales/zh-TW/core/accessibility-standards.md +1 -1
- package/bundled/locales/zh-TW/core/adversarial-test.md +226 -0
- package/bundled/locales/zh-TW/core/agent-behavior-discipline.md +187 -0
- package/bundled/locales/zh-TW/core/ai-response-navigation.md +32 -6
- package/bundled/locales/zh-TW/core/anti-sycophancy-prompting.md +1 -1
- package/bundled/locales/zh-TW/core/api-design-standards.md +91 -9
- package/bundled/locales/zh-TW/core/audit-trail.md +110 -0
- package/bundled/locales/zh-TW/core/behavior-snapshot.md +335 -0
- package/bundled/locales/zh-TW/core/browser-compatibility-standards.md +1 -0
- package/bundled/locales/zh-TW/core/cd-deployment-strategies.md +135 -0
- package/bundled/locales/zh-TW/core/chaos-injection-tests.md +130 -0
- package/bundled/locales/zh-TW/core/checkin-standards.md +1 -1
- package/bundled/locales/zh-TW/core/code-review-checklist.md +1 -1
- package/bundled/locales/zh-TW/core/container-image-standards.md +93 -0
- package/bundled/locales/zh-TW/core/container-security.md +535 -0
- package/bundled/locales/zh-TW/core/cost-budget-test.md +86 -0
- package/bundled/locales/zh-TW/core/cross-flow-regression.md +1 -0
- package/bundled/locales/zh-TW/core/data-contract.md +101 -0
- package/bundled/locales/zh-TW/core/data-migration-testing.md +217 -0
- package/bundled/locales/zh-TW/core/data-pipeline.md +105 -0
- package/bundled/locales/zh-TW/core/deployment-standards.md +363 -25
- package/bundled/locales/zh-TW/core/deprecation-standards.md +17 -4
- package/bundled/locales/zh-TW/core/developer-memory.md +2 -2
- package/bundled/locales/zh-TW/core/disaster-recovery-drill.md +87 -0
- package/bundled/locales/zh-TW/core/documentation-writing-standards.md +1 -1
- package/bundled/locales/zh-TW/core/error-code-standards.md +2 -2
- package/bundled/locales/zh-TW/core/feature-manifest-standard.md +222 -0
- package/bundled/locales/zh-TW/core/flaky-test-management.md +87 -0
- package/bundled/locales/zh-TW/core/flow-based-testing.md +284 -0
- package/bundled/locales/zh-TW/core/forward-derivation-standards.md +3 -4
- package/bundled/locales/zh-TW/core/frontend-design-standards.md +1 -1
- package/bundled/locales/zh-TW/core/full-coverage-testing.md +250 -0
- package/bundled/locales/zh-TW/core/git-worktree.md +1 -1
- package/bundled/locales/zh-TW/core/guides/performance-guide.md +515 -0
- package/bundled/locales/zh-TW/core/guides/security-guide.md +494 -0
- package/bundled/locales/zh-TW/core/iac-design-principles.md +90 -0
- package/bundled/locales/zh-TW/core/incident-response.md +111 -0
- package/bundled/locales/zh-TW/core/license-compliance.md +131 -0
- package/bundled/locales/zh-TW/core/llm-output-validation.md +192 -0
- package/bundled/locales/zh-TW/core/logging-standards.md +208 -4
- package/bundled/locales/zh-TW/core/mock-boundary.md +161 -0
- package/bundled/locales/zh-TW/core/model-provenance.md +173 -0
- package/bundled/locales/zh-TW/core/model-selection.md +28 -5
- package/bundled/locales/zh-TW/core/mutation-testing.md +106 -0
- package/bundled/locales/zh-TW/core/no-cicd-deployment.md +219 -0
- package/bundled/locales/zh-TW/core/packaging-standards.md +77 -5
- package/bundled/locales/zh-TW/core/performance-standards.md +84 -5
- package/bundled/locales/zh-TW/core/pii-classification.md +102 -0
- package/bundled/locales/zh-TW/core/pipeline-security-gates.md +146 -0
- package/bundled/locales/zh-TW/core/policy-as-code-testing.md +203 -0
- package/bundled/locales/zh-TW/core/prd-standards.md +88 -0
- package/bundled/locales/zh-TW/core/privacy-standards.md +1 -1
- package/bundled/locales/zh-TW/core/product-metrics-standards.md +96 -0
- package/bundled/locales/zh-TW/core/project-context-memory.md +1 -1
- package/bundled/locales/zh-TW/core/prompt-regression.md +88 -0
- package/bundled/locales/zh-TW/core/property-based-testing.md +87 -0
- package/bundled/locales/zh-TW/core/refactoring-standards.md +43 -6
- package/bundled/locales/zh-TW/core/release-quality-manifest.md +207 -0
- package/bundled/locales/zh-TW/core/replay-test.md +102 -0
- package/bundled/locales/zh-TW/core/requirement-engineering.md +1 -1
- package/bundled/locales/zh-TW/core/resource-cost-boundary.md +175 -0
- package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +64 -5
- package/bundled/locales/zh-TW/core/rollback-standards.md +120 -0
- package/bundled/locales/zh-TW/core/runbook.md +110 -0
- package/bundled/locales/zh-TW/core/sast-advanced.md +309 -0
- package/bundled/locales/zh-TW/core/schema-evolution.md +98 -0
- package/bundled/locales/zh-TW/core/secret-management-standards.md +101 -0
- package/bundled/locales/zh-TW/core/secure-op.md +328 -0
- package/bundled/locales/zh-TW/core/security-testing.md +113 -0
- package/bundled/locales/zh-TW/core/self-review-protocol.md +18 -13
- package/bundled/locales/zh-TW/core/server-ops-security.md +507 -0
- package/bundled/locales/zh-TW/core/slo-sli.md +108 -0
- package/bundled/locales/zh-TW/core/smoke-test.md +79 -0
- package/bundled/locales/zh-TW/core/spec-driven-development.md +19 -11
- package/bundled/locales/zh-TW/core/supply-chain-attestation.md +131 -0
- package/bundled/locales/zh-TW/core/user-journey-testing.md +111 -0
- package/bundled/locales/zh-TW/core/user-story-mapping.md +94 -0
- package/bundled/locales/zh-TW/core/verification-evidence.md +260 -31
- package/bundled/locales/zh-TW/core/verification-oracle.md +159 -0
- package/bundled/locales/zh-TW/core/versioning.md +112 -112
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +36 -7
- package/bundled/locales/zh-TW/docs/DEV-WORKFLOW-MAPPING.md +6 -6
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +71 -53
- package/bundled/locales/zh-TW/docs/MIGRATION-v6.md +88 -0
- package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +2 -2
- package/bundled/locales/zh-TW/docs/USER-MANUAL.md +14 -14
- package/bundled/locales/zh-TW/docs/specs/system/memory-adoption-strategy.md +105 -0
- package/bundled/locales/zh-TW/docs/user/FAQ.md +132 -0
- package/bundled/locales/zh-TW/docs/user/GETTING-STARTED.md +144 -0
- package/bundled/locales/zh-TW/docs/user/GLOSSARY.md +178 -0
- package/bundled/locales/zh-TW/docs/user/README.md +70 -0
- package/bundled/locales/zh-TW/docs/user/TROUBLESHOOTING.md +190 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +1 -1
- package/bundled/locales/zh-TW/integrations/github-copilot/README.md +1 -1
- package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +3 -3
- package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +3 -3
- package/bundled/locales/zh-TW/methodologies/guides/sdd-guide.md +523 -26
- package/bundled/locales/zh-TW/options/changelog/auto-generated.md +166 -0
- package/bundled/locales/zh-TW/options/changelog/keep-a-changelog.md +140 -0
- package/bundled/locales/zh-TW/options/code-review/automated-review.md +214 -0
- package/bundled/locales/zh-TW/options/code-review/pair-programming.md +166 -0
- package/bundled/locales/zh-TW/options/code-review/pr-review.md +167 -0
- package/bundled/locales/zh-TW/options/commit-message/bilingual.md +10 -3
- package/bundled/locales/zh-TW/options/documentation/api-docs.md +191 -0
- package/bundled/locales/zh-TW/options/documentation/markdown-docs.md +150 -0
- package/bundled/locales/zh-TW/options/documentation/wiki-style.md +131 -0
- package/bundled/locales/zh-TW/options/project-structure/kotlin.md +144 -0
- package/bundled/locales/zh-TW/options/project-structure/php.md +168 -0
- package/bundled/locales/zh-TW/options/project-structure/ruby.md +156 -0
- package/bundled/locales/zh-TW/options/project-structure/rust.md +136 -0
- package/bundled/locales/zh-TW/options/project-structure/swift.md +165 -0
- package/bundled/locales/zh-TW/options/testing/contract-testing.md +237 -0
- package/bundled/locales/zh-TW/options/testing/industry-pyramid.md +200 -0
- package/bundled/locales/zh-TW/options/testing/istqb-framework.md +144 -0
- package/bundled/locales/zh-TW/options/testing/performance-testing.md +251 -0
- package/bundled/locales/zh-TW/options/testing/security-testing.md +192 -0
- package/bundled/locales/zh-TW/skills/README.md +91 -128
- package/bundled/locales/zh-TW/skills/ac-coverage/SKILL.md +4 -6
- package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/agents/code-architect.md +263 -0
- package/bundled/locales/zh-TW/skills/agents/doc-writer.md +410 -0
- package/bundled/locales/zh-TW/skills/agents/reviewer.md +357 -0
- package/bundled/locales/zh-TW/skills/agents/spec-analyst.md +410 -0
- package/bundled/locales/zh-TW/skills/agents/test-specialist.md +368 -0
- package/bundled/locales/zh-TW/skills/ai-collaboration-standards/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
- package/bundled/locales/zh-TW/skills/atdd-assistant/atdd-workflow.md +3 -4
- package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/guide.md +1 -2
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +116 -18
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +38 -11
- package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +3 -1
- package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +50 -0
- package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +7 -5
- package/bundled/locales/zh-TW/skills/commands/ac-coverage.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/atdd.md +3 -3
- package/bundled/locales/zh-TW/skills/commands/bdd.md +2 -2
- package/bundled/locales/zh-TW/skills/commands/brainstorm.md +26 -17
- package/bundled/locales/zh-TW/skills/commands/{review.md → code-review.md} +5 -5
- package/bundled/locales/zh-TW/skills/commands/derive-all.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/derive-atdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/derive-bdd.md +2 -3
- package/bundled/locales/zh-TW/skills/commands/derive-tdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/derive.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/dev-workflow.md +2 -2
- package/bundled/locales/zh-TW/skills/commands/methodology.md +4 -4
- package/bundled/locales/zh-TW/skills/commands/pr.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/tdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/dev-methodology/create-methodology.md +456 -0
- package/bundled/locales/zh-TW/skills/dev-methodology/guide.md +5 -5
- package/bundled/locales/zh-TW/skills/dev-methodology/runtime.md +296 -0
- package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +5 -5
- package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/e2e-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +52 -27
- package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +3 -1
- package/bundled/locales/zh-TW/skills/project-discovery/guide.md +2 -2
- package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/spec-derivation/guide.md +7 -8
- package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/sweep/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +3 -1
- package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/testing-guide/testing-theory.md +2298 -0
- package/bundled/locales/zh-TW/skills/workflows/README.md +451 -0
- package/bundled/skills/README.md +1 -1
- package/bundled/skills/ac-coverage/SKILL.md +17 -7
- package/bundled/skills/adr-assistant/SKILL.md +1 -1
- package/bundled/skills/agents/code-architect.md +1 -1
- package/bundled/skills/agents/doc-writer.md +1 -1
- package/bundled/skills/agents/reviewer.md +2 -2
- package/bundled/skills/agents/spec-analyst.md +1 -1
- package/bundled/skills/agents/test-specialist.md +1 -1
- package/bundled/skills/ai-collaboration-standards/SKILL.md +2 -2
- package/bundled/skills/ai-friendly-architecture/SKILL.md +2 -2
- package/bundled/skills/ai-instruction-standards/SKILL.md +1 -1
- package/bundled/skills/atdd-assistant/SKILL.md +7 -0
- package/bundled/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
- package/bundled/skills/atdd-assistant/atdd-workflow.md +6 -8
- package/bundled/skills/audit-assistant/SKILL.md +2 -2
- package/bundled/skills/bdd-assistant/SKILL.md +7 -0
- package/bundled/skills/bdd-assistant/guide.md +1 -2
- package/bundled/skills/brainstorm-assistant/SKILL.md +139 -15
- package/bundled/skills/brainstorm-assistant/guide.md +39 -8
- package/bundled/skills/checkin-assistant/SKILL.md +8 -1
- package/bundled/skills/ci-cd-assistant/SKILL.md +57 -0
- package/bundled/skills/code-review-assistant/SKILL.md +15 -8
- package/bundled/skills/commands/COMMAND-FAMILY-OVERVIEW.md +2 -2
- package/bundled/skills/commands/COMMAND-INDEX.json +3 -3
- package/bundled/skills/commands/README.md +2 -2
- package/bundled/skills/commands/ac-coverage.md +1 -1
- package/bundled/skills/commands/atdd.md +2 -2
- package/bundled/skills/commands/bdd.md +2 -2
- package/bundled/skills/commands/brainstorm.md +25 -14
- package/bundled/skills/commands/{review.md → code-review.md} +6 -6
- package/bundled/skills/commands/derive-all.md +1 -1
- package/bundled/skills/commands/derive-atdd.md +1 -1
- package/bundled/skills/commands/derive-bdd.md +2 -3
- package/bundled/skills/commands/derive-tdd.md +1 -1
- package/bundled/skills/commands/derive.md +1 -1
- package/bundled/skills/commands/dev-workflow.md +1 -1
- package/bundled/skills/commands/journey-test.md +45 -0
- package/bundled/skills/commands/methodology.md +4 -4
- package/bundled/skills/commands/pr.md +1 -1
- package/bundled/skills/commands/skill-builder.md +42 -0
- package/bundled/skills/commands/tdd.md +1 -1
- package/bundled/skills/dev-methodology/create-methodology.md +1 -1
- package/bundled/skills/dev-methodology/guide.md +1 -1
- package/bundled/skills/dev-methodology/runtime.md +1 -1
- package/bundled/skills/dev-workflow-guide/SKILL.md +3 -3
- package/bundled/skills/dev-workflow-guide/workflow-phases.md +3 -3
- package/bundled/skills/docs-generator/SKILL.md +3 -3
- package/bundled/skills/incident-response-assistant/SKILL.md +2 -2
- package/bundled/skills/logging-guide/SKILL.md +38 -2
- package/bundled/skills/migration-assistant/SKILL.md +226 -0
- package/bundled/skills/observability-assistant/SKILL.md +74 -0
- package/bundled/skills/pr-automation-assistant/SKILL.md +5 -1
- package/bundled/skills/project-discovery/guide.md +2 -2
- package/bundled/skills/push/SKILL.md +1 -1
- package/bundled/skills/release-standards/SKILL.md +19 -5
- package/bundled/skills/security-assistant/SKILL.md +1 -1
- package/bundled/skills/skill-builder/SKILL.md +1 -1
- package/bundled/skills/spec-derivation/guide.md +3 -4
- package/bundled/skills/spec-driven-dev/SKILL.md +13 -2
- package/bundled/skills/sweep/SKILL.md +1 -1
- package/bundled/skills/tdd-assistant/SKILL.md +8 -1
- package/bundled/skills/testing-guide/SKILL.md +1 -1
- package/bundled/skills/testing-guide/testing-theory.md +1 -1
- package/bundled/skills/workflows/README.md +2 -2
- package/package.json +4 -4
- package/src/commands/audit.js +30 -9
- package/src/commands/config.js +33 -2
- package/src/commands/hitl.js +14 -1
- package/src/commands/init.js +168 -75
- package/src/commands/quickstart.js +1 -2
- package/src/commands/release.js +51 -6
- package/src/commands/run-intent.js +9 -0
- package/src/commands/spec-split.js +27 -2
- package/src/commands/update.js +22 -6
- package/src/config/ai-agent-paths.js +3 -1
- package/src/i18n/messages.js +3 -102
- package/src/missions/MissionManager.js +44 -12
- package/src/utils/build-manifest.js +35 -3
- package/src/utils/friction-detector.js +71 -22
- package/src/utils/health-checker.js +29 -2
- package/src/utils/transaction.js +111 -0
- package/src/utils/version-promote.js +16 -0
- package/standards-registry.json +61 -149
- package/bundled/ai/standards/agent-communication-protocol.ai.yaml +0 -42
- package/bundled/ai/standards/agent-dispatch.ai.yaml +0 -42
- package/bundled/ai/standards/branch-completion.ai.yaml +0 -44
- package/bundled/ai/standards/change-batching-standards.ai.yaml +0 -44
- package/bundled/ai/standards/execution-history.ai.yaml +0 -42
- package/bundled/ai/standards/pipeline-integration-standards.ai.yaml +0 -42
- package/bundled/ai/standards/workflow-enforcement.ai.yaml +0 -44
- package/bundled/ai/standards/workflow-state-protocol.ai.yaml +0 -43
- package/src/commands/flow.js +0 -260
- package/src/commands/start.js +0 -372
- package/src/commands/sweep.js +0 -151
- package/src/commands/workflow.js +0 -681
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../core/deployment-standards.md
|
|
3
|
-
source_version: 1.
|
|
4
|
-
translation_version: 1.
|
|
5
|
-
last_synced: 2026-
|
|
3
|
+
source_version: 1.1.0
|
|
4
|
+
translation_version: 1.1.0
|
|
5
|
+
last_synced: 2026-06-10
|
|
6
|
+
source_hash: ede6223c8aba
|
|
6
7
|
status: current
|
|
7
8
|
---
|
|
8
9
|
|
|
@@ -10,8 +11,8 @@ status: current
|
|
|
10
11
|
|
|
11
12
|
# 部署标准
|
|
12
13
|
|
|
13
|
-
**版本**: 1.
|
|
14
|
-
**最后更新**: 2026-
|
|
14
|
+
**版本**: 1.1.0
|
|
15
|
+
**最后更新**: 2026-05-26
|
|
15
16
|
**适用范围**: 所有具有部署流水线的软件项目
|
|
16
17
|
**范围**: universal
|
|
17
18
|
**行业标准**: Twelve-Factor App, Google SRE — Release Engineering, DORA State of DevOps
|
|
@@ -65,6 +66,13 @@ status: current
|
|
|
65
66
|
└── 否 → 滚动更新
|
|
66
67
|
```
|
|
67
68
|
|
|
69
|
+
### 策略组合
|
|
70
|
+
|
|
71
|
+
各策略并不互斥,常见组合如下:
|
|
72
|
+
- **金丝雀 + 功能标志**:以禁用状态的标志部署金丝雀版本,先为金丝雀组开启标志
|
|
73
|
+
- **蓝绿 + 功能标志**:切换流量至绿环境后,再渐进启用标志
|
|
74
|
+
- **滚动 + 功能标志**:滚动发布代码,然后独立控制功能暴露
|
|
75
|
+
|
|
68
76
|
---
|
|
69
77
|
|
|
70
78
|
## 部署验证
|
|
@@ -107,18 +115,329 @@ Smoke Test 失败必须阻断部署并触发 rollback。
|
|
|
107
115
|
|
|
108
116
|
---
|
|
109
117
|
|
|
118
|
+
## 功能标志生命周期
|
|
119
|
+
|
|
120
|
+
### 标志类型
|
|
121
|
+
|
|
122
|
+
| 类型 | 用途 | 生命周期 | 示例 |
|
|
123
|
+
|------|------|----------|------|
|
|
124
|
+
| **Release(发布)** | 控制功能上线 | 数天至数周 | `enable_new_checkout` |
|
|
125
|
+
| **Experiment(实验)** | A/B 测试 | 数周至数月 | `experiment_pricing_v2` |
|
|
126
|
+
| **Ops(运营)** | 运营控制(紧急开关) | 永久 | `enable_cache_layer` |
|
|
127
|
+
| **Permission(权限)** | 用户权益 | 永久 | `feature_premium_export` |
|
|
128
|
+
|
|
129
|
+
### 生命周期阶段
|
|
130
|
+
|
|
131
|
+
| 阶段 | 操作 | 目标时长 |
|
|
132
|
+
|------|------|----------|
|
|
133
|
+
| **1. 创建** | 定义标志、设置默认值(关闭)、记录用途与负责人 | 第 0 天 |
|
|
134
|
+
| **2. 启用** | 渐进上线:1% → 10% → 50% → 100% | 数天至数周 |
|
|
135
|
+
| **3. 监控** | 跟踪指标、错误率、用户反馈 | 100% 后 1-2 周 |
|
|
136
|
+
| **4. 清理** | 从代码移除标志、删除配置、更新测试 | 全量上线后 1 个 sprint 内 |
|
|
137
|
+
|
|
138
|
+
### 技术债规则
|
|
139
|
+
|
|
140
|
+
| 规则 | 执行方式 |
|
|
141
|
+
|------|----------|
|
|
142
|
+
| Release 标志必须在全量上线后 **30 天**内移除 | 自动提醒 / 工单 |
|
|
143
|
+
| Experiment 标志必须在 **90 天**内移除 | 季度审计 |
|
|
144
|
+
| 每个标志必须有**负责人**和**到期日** | 标志创建检查清单 |
|
|
145
|
+
| 每个服务的标志数量不应超过 **20** 个 | 仪表板告警 |
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 回滚策略
|
|
150
|
+
|
|
151
|
+
### 自动触发条件
|
|
152
|
+
|
|
153
|
+
| 指标 | 告警阈值 | 自动回滚阈值 | 观测窗口 |
|
|
154
|
+
|------|---------|-------------|----------|
|
|
155
|
+
| **错误率** | > 1% | > 5% | 5 分钟 |
|
|
156
|
+
| **p95 延迟** | > 2× 基线 | > 3× 基线 | 5 分钟 |
|
|
157
|
+
| **Health Check** | 1 次失败 | 连续 3 次失败 | 立即 |
|
|
158
|
+
| **CPU 使用率** | > 80% | > 95% | 10 分钟 |
|
|
159
|
+
| **内存使用率** | > 85% | > 95% | 10 分钟 |
|
|
160
|
+
|
|
161
|
+
### 手动触发场景
|
|
162
|
+
|
|
163
|
+
- 客户报告影响核心功能的严重缺陷
|
|
164
|
+
- 部署后发现安全漏洞
|
|
165
|
+
- 检测到数据损坏或不一致
|
|
166
|
+
- 发现违反法规合规的问题
|
|
167
|
+
|
|
168
|
+
### 严重性决策矩阵
|
|
169
|
+
|
|
170
|
+
| 严重性 | 影响 | 操作 | 时限 |
|
|
171
|
+
|--------|------|------|------|
|
|
172
|
+
| **P1 严重** | 服务中断、数据丢失 | 立即回滚,全员响应 | < 5 分钟 |
|
|
173
|
+
| **P2 高** | 主要功能故障、显著用户影响 | 在窗口内回滚 | < 15 分钟 |
|
|
174
|
+
| **P3 中** | 次要功能故障、存在变通方案 | 决定:回滚或热修复 | < 1 小时 |
|
|
175
|
+
| **P4 低** | 外观问题、边缘情况 | 在下次版本中前向修复 | 下次部署 |
|
|
176
|
+
|
|
177
|
+
### 回滚方法
|
|
178
|
+
|
|
179
|
+
| 方法 | 适用时机 | 速度 |
|
|
180
|
+
|------|---------|------|
|
|
181
|
+
| **回退部署** | 应用代码问题,无数据库变更 | < 5 分钟 |
|
|
182
|
+
| **功能标志切换** | 标志控制的功能出现问题 | 即时 |
|
|
183
|
+
| **数据库回滚** | 数据库迁移失败(如可逆) | 5-30 分钟 |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 环境一致性
|
|
188
|
+
|
|
189
|
+
### 三大差距(Twelve-Factor App)
|
|
190
|
+
|
|
191
|
+
| 差距 | 反模式 | 最佳实践 |
|
|
192
|
+
|------|--------|----------|
|
|
193
|
+
| **时间差距** | 开发与部署之间间隔数周 | 开发后数小时即部署 |
|
|
194
|
+
| **人员差距** | 开发者编写,运维人员部署 | 编写代码的开发者参与部署 |
|
|
195
|
+
| **工具差距** | 不同环境使用不同技术栈 | 各处使用相同的后端服务 |
|
|
196
|
+
|
|
197
|
+
### 环境一致性检查清单
|
|
198
|
+
|
|
199
|
+
#### 基础设施
|
|
200
|
+
- [ ] 各环境使用相同的操作系统系列与版本
|
|
201
|
+
- [ ] 相同的容器运行时与编排器版本
|
|
202
|
+
- [ ] 相同的网络拓扑(负载均衡器、服务网格)
|
|
203
|
+
- [ ] 相同的资源分配比例(预发布 = 生产 × 缩放因子)
|
|
204
|
+
|
|
205
|
+
#### 应用程序
|
|
206
|
+
- [ ] 各环境部署相同的应用程序版本
|
|
207
|
+
- [ ] 相同的依赖版本(已提交锁文件)
|
|
208
|
+
- [ ] 相同的运行时版本(Node.js、Python、JVM 等)
|
|
209
|
+
- [ ] 相同的构建产物(一次构建,多处部署)
|
|
210
|
+
|
|
211
|
+
#### 数据
|
|
212
|
+
- [ ] 相同的数据库引擎与版本
|
|
213
|
+
- [ ] 相同的数据库迁移工具
|
|
214
|
+
- [ ] 预发布环境有真实的数据量(脱敏后的生产数据)
|
|
215
|
+
- [ ] 相同的消息队列与缓存实现
|
|
216
|
+
|
|
217
|
+
#### 配置
|
|
218
|
+
- [ ] 环境特定值通过环境变量管理
|
|
219
|
+
- [ ] 无环境特定代码路径(无 `if (env === 'production')`)
|
|
220
|
+
- [ ] 各环境使用相同的密钥管理工具
|
|
221
|
+
- [ ] 配置差异已记录并最小化
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## 部署前检查清单
|
|
226
|
+
|
|
227
|
+
### 1. 代码质量
|
|
228
|
+
- [ ] 所有测试通过(单元、集成、E2E)
|
|
229
|
+
- [ ] 代码审查已批准
|
|
230
|
+
- [ ] 无关键静态分析警告
|
|
231
|
+
- [ ] 测试覆盖率未下降
|
|
232
|
+
|
|
233
|
+
### 2. 安全性
|
|
234
|
+
- [ ] 依赖漏洞扫描通过
|
|
235
|
+
- [ ] 代码或配置文件中无密钥
|
|
236
|
+
- [ ] 已配置安全响应头
|
|
237
|
+
- [ ] 认证/授权变更已审查
|
|
238
|
+
|
|
239
|
+
### 3. 性能
|
|
240
|
+
- [ ] 受影响端点的负载测试已完成
|
|
241
|
+
- [ ] 未检测到性能回退
|
|
242
|
+
- [ ] 数据库查询性能已验证
|
|
243
|
+
- [ ] 缓存失效策略已确认
|
|
244
|
+
|
|
245
|
+
### 4. 数据库
|
|
246
|
+
- [ ] 迁移脚本已在预发布环境测试
|
|
247
|
+
- [ ] 回滚迁移已可用并测试
|
|
248
|
+
- [ ] 无不兼容的 schema 变更(无向后兼容性)
|
|
249
|
+
- [ ] 已用接近生产量的数据验证数据迁移
|
|
250
|
+
|
|
251
|
+
### 5. 配置与依赖
|
|
252
|
+
- [ ] 环境变量已记录并设置
|
|
253
|
+
- [ ] 功能标志已配置正确默认值
|
|
254
|
+
- [ ] 第三方服务依赖已验证
|
|
255
|
+
- [ ] API 版本兼容性已确认
|
|
256
|
+
|
|
257
|
+
### 6. 部署就绪
|
|
258
|
+
- [ ] 部署 runbook 已更新
|
|
259
|
+
- [ ] 回滚流程已记录并测试
|
|
260
|
+
- [ ] 监控仪表板已准备
|
|
261
|
+
- [ ] 告警阈值已配置
|
|
262
|
+
|
|
263
|
+
### 7. 沟通
|
|
264
|
+
- [ ] 利益相关者已收到部署窗口通知
|
|
265
|
+
- [ ] 值班工程师已确认并就位
|
|
266
|
+
- [ ] 客户支持已了解变更内容
|
|
267
|
+
- [ ] 状态页已准备(如对外公开)
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## 防御性部署排序
|
|
272
|
+
|
|
273
|
+
当部署脚本替换正在运行的安装(Windows IIS、SystemD 托管服务或任何「停止 → 替换 → 启动」工作流常见的破坏性更新模式)时,破坏性步骤与验证的顺序不容有误。
|
|
274
|
+
|
|
275
|
+
### 禁止的排序
|
|
276
|
+
|
|
277
|
+
```
|
|
278
|
+
1. 停止服务
|
|
279
|
+
2. 解压新包 ← 格式不匹配时可能静默无操作
|
|
280
|
+
3. 删除旧安装 ← 无条件执行——会销毁运行中的安装
|
|
281
|
+
4. 复制新安装 ← 抛出错误(源不存在)
|
|
282
|
+
5. 启动服务 ← 无法启动(二进制文件已消失)
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
若步骤 2 静默失败(归档损坏、格式错误、磁盘满、权限问题),步骤 3 仍会执行并**销毁运行中的安装**,只能依靠备份恢复——但备份仅能完整回滚,**无法防止服务中断**,因为服务已经停止了。
|
|
286
|
+
|
|
287
|
+
### 必须遵循的排序——先解压和验证,再删除
|
|
288
|
+
|
|
289
|
+
破坏性部署排序**必须**为:
|
|
290
|
+
|
|
291
|
+
```
|
|
292
|
+
1. 停止服务
|
|
293
|
+
2. 将新包解压到暂存区 (不直接覆盖运行中的安装)
|
|
294
|
+
3. ✅ 验证暂存区包含预期产物
|
|
295
|
+
↑ 验证失败则终止,不得触碰运行中的安装
|
|
296
|
+
4. 备份运行中的安装 (或提前完成——两者都做更好)
|
|
297
|
+
5. 删除旧安装(保留日志/运行时数据)
|
|
298
|
+
6. 从暂存区复制新安装
|
|
299
|
+
7. 还原保留的配置
|
|
300
|
+
8. 启动服务
|
|
301
|
+
9. 完整性检查(HTTP 探针 / 健康检查端点)
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
**步骤 3 验证不可妥协。** 最低验证要求是确认新包中至少一个已知文件存在于暂存区。如果有可用的文件清单,则优先选择哈希比对。
|
|
305
|
+
|
|
306
|
+
### 验证代码片段
|
|
307
|
+
|
|
308
|
+
**PowerShell**(Windows IIS 部署):
|
|
309
|
+
|
|
310
|
+
```powershell
|
|
311
|
+
$staging = "C:\deploy\staging-$(Get-Date -Format yyyyMMddHHmmss)"
|
|
312
|
+
Expand-Archive -Path $zipPath -DestinationPath $staging -Force
|
|
313
|
+
|
|
314
|
+
# 不可妥协:在触碰运行中安装前验证暂存区
|
|
315
|
+
if (-not (Test-Path "$staging\api\MyApp.dll")) {
|
|
316
|
+
throw "Expected $staging\api\MyApp.dll not found — archive may be corrupt or wrong format. Aborting deploy. Live install untouched."
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
# 只有此时才可触碰运行中的安装
|
|
320
|
+
Copy-Item "$apiDir" "$backupDir" -Recurse -Force
|
|
321
|
+
Get-ChildItem $apiDir -Exclude logs | Remove-Item -Recurse -Force
|
|
322
|
+
Copy-Item "$staging\api\*" $apiDir -Recurse
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
**bash**(Linux SystemD 托管服务):
|
|
326
|
+
|
|
327
|
+
```bash
|
|
328
|
+
set -euo pipefail
|
|
329
|
+
|
|
330
|
+
STAGING="/srv/deploy/staging-$(date +%Y%m%d%H%M%S)"
|
|
331
|
+
mkdir -p "$STAGING"
|
|
332
|
+
tar -xzf "$ARCHIVE" -C "$STAGING"
|
|
333
|
+
|
|
334
|
+
# 不可妥协:在触碰运行中安装前验证暂存区
|
|
335
|
+
if [ ! -f "$STAGING/bin/myapp" ]; then
|
|
336
|
+
echo "ERROR: Expected $STAGING/bin/myapp not found. Aborting deploy. Live install untouched." >&2
|
|
337
|
+
exit 1
|
|
338
|
+
fi
|
|
339
|
+
|
|
340
|
+
# 只有此时才可触碰运行中的安装
|
|
341
|
+
systemctl stop myapp
|
|
342
|
+
cp -a "$LIVE_DIR" "$BACKUP_DIR"
|
|
343
|
+
find "$LIVE_DIR" -mindepth 1 -not -path "$LIVE_DIR/logs*" -delete
|
|
344
|
+
cp -a "$STAGING"/* "$LIVE_DIR/"
|
|
345
|
+
systemctl start myapp
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### 失败模式分析
|
|
349
|
+
|
|
350
|
+
| 失败模式 | 防护措施 |
|
|
351
|
+
|----------|---------|
|
|
352
|
+
| 归档格式错误(如 tar 改名为 `.zip`) | 步骤 3 验证失败——运行中的安装未受影响 |
|
|
353
|
+
| 解压不完整(磁盘在解压中途已满) | 步骤 3 验证失败——运行中的安装未受影响 |
|
|
354
|
+
| 归档根目录结构变更(多余的包装目录、缺少关键文件) | 步骤 3 验证失败——运行中的安装未受影响 |
|
|
355
|
+
| 权限问题(解压步骤有读权限但无写权限) | 步骤 3 验证失败——运行中的安装未受影响 |
|
|
356
|
+
| 备份脚本本身失败 | 步骤 4 后可选进行二次检查 |
|
|
357
|
+
|
|
358
|
+
### 上游预防
|
|
359
|
+
|
|
360
|
+
在消费者侧验证是最后一道防线。**上游**预防——从一开始就拒绝生产格式错误的归档——由[打包标准 — 归档格式完整性](packaging-standards.md#归档格式完整性)涵盖。两层共同形成纵深防御组合;单独任何一层都不足够。
|
|
361
|
+
|
|
362
|
+
### 失败模式参考(真实事故)
|
|
363
|
+
|
|
364
|
+
某 Windows IIS 生产部署脚本(2026-05-24)对一个 tar 改名为 `.zip` 的归档运行了 `Expand-Archive`(静默无操作),然后对运行中的 `apiDir` 执行了 `Remove-Item -Recurse`,再从根本不存在的源路径执行 `Copy-Item`(因为什么都没有被解压)。运行中的安装被清空,AppPool 停止,生产环境中断了约 3 分钟,直到基于备份的回滚完成。在暂存阶段增加步骤 3 验证(`Test-Path "$staging/api/MyApp.dll"`)本可在运行中的安装完全未受影响的情况下终止部署。
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
## 部署后检查清单
|
|
369
|
+
|
|
370
|
+
### 立即(< 5 分钟)
|
|
371
|
+
|
|
372
|
+
- [ ] 健康检查端点返回 200
|
|
373
|
+
- [ ] 应用程序日志无错误
|
|
374
|
+
- [ ] 核心业务指标未变化(订单、注册等)
|
|
375
|
+
- [ ] 监控仪表板显示正常模式
|
|
376
|
+
|
|
377
|
+
### 短期(< 1 小时)
|
|
378
|
+
|
|
379
|
+
- [ ] 错误率在可接受阈值内(< 0.1%)
|
|
380
|
+
- [ ] 响应时间符合 SLA(p95 < 目标)
|
|
381
|
+
- [ ] 客户支持工单无增加
|
|
382
|
+
- [ ] 数据库性能稳定
|
|
383
|
+
|
|
384
|
+
### 中期(< 24 小时)
|
|
385
|
+
|
|
386
|
+
- [ ] 批处理任务成功完成
|
|
387
|
+
- [ ] 数据一致性已验证
|
|
388
|
+
- [ ] 无内存泄漏或资源降级
|
|
389
|
+
- [ ] 功能标志渐进上线按计划推进
|
|
390
|
+
|
|
391
|
+
### 长期(< 1 周)
|
|
392
|
+
|
|
393
|
+
- [ ] 功能标志清理已安排
|
|
394
|
+
- [ ] 部署回顾已完成
|
|
395
|
+
- [ ] 监控阈值已按需调整
|
|
396
|
+
- [ ] 文档已更新,记录经验教训
|
|
397
|
+
|
|
398
|
+
---
|
|
399
|
+
|
|
400
|
+
## DORA 指标
|
|
401
|
+
|
|
402
|
+
| 指标 | 精英 | 高 | 中 | 低 |
|
|
403
|
+
|------|------|----|----|-----|
|
|
404
|
+
| **部署频率** | 按需(每天多次) | 每周至每月 | 每月至每半年 | 每半年至每年 |
|
|
405
|
+
| **变更前置时间** | < 1 小时 | 1 天至 1 周 | 1 周至 1 月 | 1 至 6 个月 |
|
|
406
|
+
| **变更失败率** | < 5% | 5-10% | 10-15% | > 15% |
|
|
407
|
+
| **平均恢复时间 (MTTR)** | < 1 小时 | < 1 天 | < 1 周 | > 1 周 |
|
|
408
|
+
|
|
409
|
+
### 追踪建议
|
|
410
|
+
|
|
411
|
+
| 指标 | 数据来源 | 工具示例 |
|
|
412
|
+
|------|---------|----------|
|
|
413
|
+
| **部署频率** | CI/CD 流水线事件 | GitHub Actions、GitLab CI、Jenkins |
|
|
414
|
+
| **前置时间** | 首次提交 → 生产部署 | Git log + 部署时间戳 |
|
|
415
|
+
| **变更失败率** | 回滚次数 / 总部署次数 | 事故跟踪 + 部署日志 |
|
|
416
|
+
| **MTTR** | 事故开始 → 解决 | PagerDuty、Opsgenie、事故日志 |
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
110
420
|
## 相关标准
|
|
111
421
|
|
|
112
|
-
- [
|
|
113
|
-
- [
|
|
114
|
-
- [
|
|
115
|
-
- [
|
|
422
|
+
- [代码签入标准](checkin-standards.md) - 部署前质量关卡
|
|
423
|
+
- [测试标准](testing-standards.md) - 部署就绪的测试要求
|
|
424
|
+
- [安全标准](security-standards.md) - 部署安全检查清单
|
|
425
|
+
- [性能标准](performance-standards.md) - 部署前性能验证
|
|
116
426
|
- [Changelog 标准](changelog-standards.md) - 记录已部署变更
|
|
117
427
|
- [Git 工作流标准](git-workflow.md) - 分支策略与发布流程
|
|
118
428
|
- [版本标准](versioning.md) - 发布版本号码
|
|
119
429
|
|
|
120
430
|
---
|
|
121
431
|
|
|
432
|
+
## 版本历史
|
|
433
|
+
|
|
434
|
+
| 版本 | 日期 | 变更 |
|
|
435
|
+
|------|------|------|
|
|
436
|
+
| 1.1.0 | 2026-05-26 | 新增:防御性部署排序章节——必须先解压验证再删除的序列、PowerShell + bash 验证代码片段、失败模式映射、交叉引用打包标准归档格式完整性(XSPEC-231 / 关闭 issue #110) |
|
|
437
|
+
| 1.0.0 | 2026-02-09 | 初始发行 |
|
|
438
|
+
|
|
439
|
+
---
|
|
440
|
+
|
|
122
441
|
## 许可证
|
|
123
442
|
|
|
124
443
|
本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
|
|
@@ -3,7 +3,7 @@ source: ../../../core/developer-memory.md
|
|
|
3
3
|
source_version: 1.0.0
|
|
4
4
|
translation_version: 1.0.0
|
|
5
5
|
last_synced: 2026-02-07
|
|
6
|
-
status:
|
|
6
|
+
status: stale
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# 开发者持久记忆标准
|
|
@@ -528,7 +528,7 @@ by_category:
|
|
|
528
528
|
|
|
529
529
|
| 模式 | 特性 | 示例 | 需要 Skill? |
|
|
530
530
|
|------|------|------|------------|
|
|
531
|
-
| **用户触发** | 用户明确调用、多步骤引导式工作流 | `/commit`、`/review`、`/sdd` | 是 |
|
|
531
|
+
| **用户触发** | 用户明确调用、多步骤引导式工作流 | `/commit`、`/code-review`、`/sdd` | 是 |
|
|
532
532
|
| **Always-On Protocol** | AI 加载 ai.yaml 后持续遵循规则 | 反幻觉、开发者记忆 | 否 |
|
|
533
533
|
|
|
534
534
|
### 理由:不需要 CLI / Skill / 斜杠命令
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/disaster-recovery-drill.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-06-10
|
|
6
|
+
source_hash: c97a5f4a554b
|
|
7
|
+
status: current
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 灾难恢复演练标准
|
|
11
|
+
|
|
12
|
+
> **Language**: [English](../../../core/disaster-recovery-drill.md) | [繁體中文](../../zh-TW/core/disaster-recovery-drill.md) | 简体中文
|
|
13
|
+
|
|
14
|
+
## 概述
|
|
15
|
+
|
|
16
|
+
未经测试的 DR 计划只是虚假的安全感。从未在压力下实际执行过恢复 runbook 的团队,会在最糟糕的时间点才发现缺口。DR 演练能安全地暴露这些缺口。
|
|
17
|
+
|
|
18
|
+
## RTO/RPO 目标
|
|
19
|
+
|
|
20
|
+
在撰写 runbook 之前先定义这些指标:
|
|
21
|
+
|
|
22
|
+
| 指标 | 定义 | 商用等级目标 |
|
|
23
|
+
|--------|-----------|--------------------------|
|
|
24
|
+
| RTO (Recovery Time Objective) | 可接受的最大停机时间 | < 1 小时 |
|
|
25
|
+
| RPO (Recovery Point Objective) | 可接受的最大数据丢失量 | < 24 小时(每日备份) |
|
|
26
|
+
|
|
27
|
+
## 备份还原脚本
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
#!/usr/bin/env bash
|
|
31
|
+
# scripts/backup-restore.sh — DR drill backup restore verification
|
|
32
|
+
set -euo pipefail
|
|
33
|
+
|
|
34
|
+
BACKUP_DIR="${BACKUP_DIR:-/var/backups/app}"
|
|
35
|
+
RESTORE_DIR="${RESTORE_DIR:-/tmp/dr-restore}"
|
|
36
|
+
DB_FILE="${DB_FILE:-app.db}"
|
|
37
|
+
|
|
38
|
+
echo "=== DR Drill: Backup Restore Verification ==="
|
|
39
|
+
echo "Source: ${BACKUP_DIR}/${DB_FILE}.backup"
|
|
40
|
+
echo "Target: ${RESTORE_DIR}/${DB_FILE}"
|
|
41
|
+
|
|
42
|
+
mkdir -p "$RESTORE_DIR"
|
|
43
|
+
|
|
44
|
+
# Find latest backup
|
|
45
|
+
LATEST=$(ls -t "${BACKUP_DIR}"/*.backup 2>/dev/null | head -1)
|
|
46
|
+
if [[ -z "$LATEST" ]]; then
|
|
47
|
+
echo "FAIL: No backup found in ${BACKUP_DIR}"
|
|
48
|
+
exit 1
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
# Restore
|
|
52
|
+
cp "$LATEST" "${RESTORE_DIR}/${DB_FILE}"
|
|
53
|
+
|
|
54
|
+
# Verify integrity (SQLite)
|
|
55
|
+
if command -v sqlite3 >/dev/null 2>&1; then
|
|
56
|
+
sqlite3 "${RESTORE_DIR}/${DB_FILE}" "PRAGMA integrity_check;" | grep -q "ok" && \
|
|
57
|
+
echo "OK: Database integrity check passed" || \
|
|
58
|
+
{ echo "FAIL: Integrity check failed"; exit 1; }
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
BACKUP_AGE=$(( ($(date +%s) - $(stat -c %Y "$LATEST" 2>/dev/null || stat -f %m "$LATEST")) / 3600 ))
|
|
62
|
+
echo "OK: Backup age: ${BACKUP_AGE} hours (RPO target: 24h)"
|
|
63
|
+
|
|
64
|
+
echo "=== PASS: Restore complete ==="
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Game Day 协议
|
|
68
|
+
|
|
69
|
+
1. **公告(Announce)**:提前一周通知团队,定义演练范围
|
|
70
|
+
2. **基准(Baseline)**:记录当前系统状态
|
|
71
|
+
3. **注入(Inject)**:模拟故障(重命名/删除 DB、kill process 等)
|
|
72
|
+
4. **执行(Execute)**:团队从头遵循 runbook 操作——不准抄捷径
|
|
73
|
+
5. **量测(Measure)**:记录 RTO、RPO 与遇到的问题
|
|
74
|
+
6. **回顾(Retrospective)**:哪里不够清晰?哪里有遗漏?
|
|
75
|
+
|
|
76
|
+
## Runbook 模板
|
|
77
|
+
|
|
78
|
+
完整 runbook 模板请见 `docs/DR-RUNBOOK.md`。
|
|
79
|
+
|
|
80
|
+
## 相关标准
|
|
81
|
+
|
|
82
|
+
- [Deployment Standards](deployment-standards.md) — 部署管线
|
|
83
|
+
- [Chaos Engineering Standards](chaos-engineering-standards.md) — 故障注入
|
|
84
|
+
- [Verification Evidence Standards](verification-evidence.md) — 演练记录
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
**Scope**: universal
|
|
@@ -612,7 +612,7 @@ channels:
|
|
|
612
612
|
| 需求 | 描述 | 示例 |
|
|
613
613
|
|------|------|------|
|
|
614
614
|
| **浅显语言** | 使用清晰、简单的语言;目标为 8 年级阅读程度 | 避免:「utilize」→ 使用:「use」 |
|
|
615
|
-
| **图片替代文字** | 为所有非装饰性图片提供描述性替代文字 | `` |
|
|
615
|
+
| **图片替代文字** | 为所有非装饰性图片提供描述性替代文字 | `` |
|
|
616
616
|
| **标题层级** | 使用正确的标题层级(h1→h2→h3),不跳级 | 不要从 `#` 直接跳到 `###` |
|
|
617
617
|
| **链接文字** | 使用描述性链接文字,而非「点此」 | 避免:[点此] → 使用:[安装指南] |
|
|
618
618
|
| **代码区块** | 使用带语言标示的围栏式代码区块 | ` ```javascript ` 而非 ` ``` ` |
|
|
@@ -3,7 +3,7 @@ source: ../../../core/error-code-standards.md
|
|
|
3
3
|
source_version: 1.2.0
|
|
4
4
|
translation_version: 1.1.0
|
|
5
5
|
last_synced: 2026-01-08
|
|
6
|
-
status:
|
|
6
|
+
status: stale
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
> **语言**: [English](../../../core/error-code-standards.md) | [简体中文](../../zh-TW/core/error-code-standards.md) | 简体中文
|
|
@@ -171,7 +171,7 @@ AUTH_VAL_001
|
|
|
171
171
|
## 相关标准
|
|
172
172
|
|
|
173
173
|
- [日志标准](logging-standards.md) - 错误日志实践
|
|
174
|
-
- [API 文档标准](api-
|
|
174
|
+
- [API 文档标准](api-design-standards.md) - 错误响应文档
|
|
175
175
|
|
|
176
176
|
---
|
|
177
177
|
|