pomaster 0.4.0 → 0.5.1
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/README.md +102 -183
- package/catalog/catalog-lock.draft.json +117 -117
- package/catalog/policies/policy.ai.change_plan_first.json +1 -1
- package/catalog/policies/policy.ai.fact_inference_separation.json +1 -1
- package/catalog/policies/policy.ai.read_search_verify_before_write.json +1 -1
- package/catalog/policies/policy.ai.rule_relaxation_approval.json +1 -1
- package/catalog/policies/policy.arch.adr_immutable_history.json +1 -1
- package/catalog/policies/policy.arch.no_convenience_over_boundary.json +1 -1
- package/catalog/policies/policy.arch.prefer_verifiable_option.json +2 -2
- package/catalog/policies/policy.authz.no_gating_proxy_trust.json +1 -1
- package/catalog/policies/policy.authz.permission_scope_expansion_gate.json +1 -1
- package/catalog/policies/policy.authz.server_five_factor_verification.json +1 -1
- package/catalog/policies/policy.be.conc.prefer_db_constraints.json +1 -1
- package/catalog/policies/policy.be.db.expand_migrate_contract.json +1 -1
- package/catalog/policies/policy.be.idem.key_payload_conflict.json +1 -1
- package/catalog/policies/policy.be.model.single_boundary_conversion.json +1 -1
- package/catalog/policies/policy.be.sql.index_for_known_queries.json +1 -1
- package/catalog/policies/policy.be.state.single_rule_source.json +1 -1
- package/catalog/policies/policy.be.txn.short_locks_compensation.json +1 -1
- package/catalog/policies/policy.bound.search_first_entry_only.json +1 -1
- package/catalog/policies/policy.boundary.validate_in_encode_out.json +1 -1
- package/catalog/policies/policy.cache.failure_mode_guards.json +1 -1
- package/catalog/policies/policy.cache.schema_versioning.json +1 -1
- package/catalog/policies/policy.cfg.config_attribute_completeness.json +1 -1
- package/catalog/policies/policy.cfg.key_rename_dual_read.json +1 -1
- package/catalog/policies/policy.cfg.no_secret_dispersal.json +1 -1
- package/catalog/policies/policy.cfg.production_safe_defaults.json +1 -1
- package/catalog/policies/policy.cfg.schema_backed_config.json +1 -1
- package/catalog/policies/policy.chg.no_unrelated_changes.json +1 -1
- package/catalog/policies/policy.contract.no_invented_facts.json +1 -1
- package/catalog/policies/policy.dep.build_path_supply_chain.json +1 -1
- package/catalog/policies/policy.dep.no_untrusted_source_no_lock_bypass.json +1 -1
- package/catalog/policies/policy.dep.time_boxed_urgent_exception.json +1 -1
- package/catalog/policies/policy.deploy.no_dev_env_as_production_fact.json +1 -1
- package/catalog/policies/policy.deploy.operational_capabilities.json +1 -1
- package/catalog/policies/policy.deploy.runtime_fact_record.json +1 -1
- package/catalog/policies/policy.err.failure_five_part_mapping.json +1 -1
- package/catalog/policies/policy.err.no_internal_detail_exposure.json +1 -1
- package/catalog/policies/policy.err.published_code_immutable.json +1 -1
- package/catalog/policies/policy.evid.acceptance_binds_verifiable_evidence.json +1 -1
- package/catalog/policies/policy.evid.no_silent_gate_removal.json +1 -1
- package/catalog/policies/policy.evid.no_unverifiable_pass.json +1 -1
- package/catalog/policies/policy.flag.cleanup_after_full_rollout.json +1 -1
- package/catalog/policies/policy.flag.consistent_off_state.json +1 -1
- package/catalog/policies/policy.flag.kill_switch.json +1 -1
- package/catalog/policies/policy.flag.lifecycle_metadata.json +1 -1
- package/catalog/policies/policy.flag.not_a_permission.json +1 -1
- package/catalog/policies/policy.gate.p0_non_bypassable.json +1 -1
- package/catalog/policies/policy.gate.risk_factors_confirmed.json +1 -1
- package/catalog/policies/policy.guard.no_check_weakening.json +2 -2
- package/catalog/policies/policy.integration.call_definition_minimum.json +1 -1
- package/catalog/policies/policy.integration.fault_containment.json +1 -1
- package/catalog/policies/policy.job.lifecycle_definition.json +1 -1
- package/catalog/policies/policy.job.no_unmanaged_execution.json +1 -1
- package/catalog/policies/policy.job.operational_features.json +1 -1
- package/catalog/policies/policy.obs.actionable_signals.json +1 -1
- package/catalog/policies/policy.obs.alert_with_owner.json +1 -1
- package/catalog/policies/policy.obs.context_field_baseline.json +1 -1
- package/catalog/policies/policy.obs.no_sensitive_or_unbounded_logging.json +1 -1
- package/catalog/policies/policy.obs.no_sensitive_raw_values.json +1 -1
- package/catalog/policies/policy.obs.signal_change_impact.json +1 -1
- package/catalog/policies/policy.obs.source_map_access_control.json +1 -1
- package/catalog/policies/policy.obs.telemetry_lifecycle_declared.json +1 -1
- package/catalog/policies/policy.obs.trace_correlation.json +1 -1
- package/catalog/policies/policy.perf.budget_change_retest.json +1 -1
- package/catalog/policies/policy.perf.evidence_binding.json +1 -1
- package/catalog/policies/policy.perf.observation_dimensions.json +1 -1
- package/catalog/policies/policy.proc.checklist_change_policy.json +2 -2
- package/catalog/policies/policy.proc.scope_drift_reclassify.json +1 -1
- package/catalog/policies/policy.prv.processing_scope_re_review.json +1 -1
- package/catalog/policies/policy.prv.sensitive_data_six_facts.json +1 -1
- package/catalog/policies/policy.registry.human_fields_validated_decorrelated.json +1 -1
- package/catalog/policies/policy.rel.no_irreversible_unmonitored_full_release.json +1 -1
- package/catalog/policies/policy.rel.observability_before_ship.json +1 -1
- package/catalog/policies/policy.rel.process_change_needs_drill_audit.json +1 -1
- package/catalog/policies/policy.rel.traceable_build.json +1 -1
- package/catalog/policies/policy.role.human_signs_for_ai.json +1 -1
- package/catalog/policies/policy.sec.authn_policy_unified.json +1 -1
- package/catalog/policies/policy.sec.no_client_side_trust.json +4 -1
- package/catalog/policies/policy.sec.no_longterm_security_disable.json +1 -1
- package/catalog/policies/policy.sec.no_script_readable_credentials.json +1 -1
- package/catalog/policies/policy.sec.no_secrets_in_client_surface.json +2 -2
- package/catalog/policies/policy.sec.relaxation_approval.json +1 -1
- package/catalog/policies/policy.sec.security_relaxation_gate.json +4 -1
- package/catalog/policies/policy.sec.trust_boundary_enforcement.json +4 -1
- package/catalog/policies/policy.sec.upload_download_server_recheck.json +1 -1
- package/catalog/policies/policy.sec.url_source_allowlist.json +1 -1
- package/catalog/policies/policy.spec.family_conflict_precedence.json +1 -1
- package/catalog/policies/policy.spec.freeze_before_use.json +1 -1
- package/catalog/policies/policy.spec.primary_source_basis.json +1 -1
- package/catalog/policies/policy.struct.module_entry_dependency_declared.json +1 -1
- package/catalog/policies/policy.struct.no_unexplained_top_level_dir.json +1 -1
- package/catalog/policies/policy.struct.reuse_proven_structure.json +1 -1
- package/catalog/policies/policy.test.control_nondeterminism_keep_diagnosis.json +1 -1
- package/catalog/policies/policy.test.isolation_and_cleanup.json +1 -1
- package/catalog/policies/policy.test.no_synthetic_stability.json +1 -1
- package/catalog/policies/policy.test.pyramid_and_ci_matrix.json +1 -1
- package/catalog/policies/policy.test.removal_justification.json +1 -1
- package/catalog/policies/policy.test.removal_needs_substitute_evidence.json +1 -1
- package/catalog/policies/policy.test.risk_driven_plan.json +1 -1
- package/catalog/policies/policy.test.stable_observable_assertions.json +1 -1
- package/catalog/policies/policy.tool.discoverable_toolchain.json +1 -1
- package/catalog/policies/policy.tool.no_hand_edit_generated_no_ci_drift.json +1 -1
- package/catalog/policies/policy.tool.no_vendored_body_edits.json +1 -1
- package/catalog/policies/policy.tool.upgrade_verify_lock_rollback.json +1 -1
- package/catalog/policies/policy.web.comp.no_trivial_or_god_component.json +1 -1
- package/catalog/policies/policy.web.comp.public_contract_completeness.json +1 -1
- package/catalog/policies/policy.web.copy.action_object_clarity.json +1 -1
- package/catalog/policies/policy.web.copy.enumerable_placement.json +1 -1
- package/catalog/policies/policy.web.copy.error_next_step.json +1 -1
- package/catalog/policies/policy.web.handoff.state_matrix_full.json +1 -1
- package/catalog/policies/policy.web.i18n.copy_key_discipline.json +1 -1
- package/catalog/policies/policy.web.i18n.raw_value_for_compute.json +1 -1
- package/catalog/policies/policy.web.page.region_consistency.json +1 -1
- package/catalog/policies/policy.web.track.attempt_result_correlation.json +1 -1
- package/catalog/policies/policy.web.track.no_synthetic_actions.json +1 -1
- package/catalog/policies/policy.web.track.typed_client_validation.json +1 -1
- package/catalog/policies/policy.wf.no_planned_as_verified.json +1 -1
- package/catalog/policies/policy.wf.task_facts_preconfirm.json +1 -1
- package/dist/bin.js +11233 -7336
- package/legal/THIRD_PARTY_NOTICES.md +461 -35
- package/package.json +1 -1
- package/seeds/aggregation-manifest.json +691 -0
- package/seeds/manifest.json +466 -1043
- package/seeds/specs/hard/stacks/antdesign/antdesign-ui-overlay.md +48 -0
- package/seeds/specs/hard/stacks/antdesign/index.md +20 -0
- package/seeds/specs/hard/stacks/css/css-system-overlay.md +52 -0
- package/seeds/specs/hard/stacks/css/index.md +20 -0
- package/seeds/specs/hard/stacks/geist/geist-design-system-overlay.md +48 -0
- package/seeds/specs/hard/stacks/geist/index.md +20 -0
- package/seeds/specs/hard/stacks/vue3/index.md +20 -0
- package/seeds/specs/hard/stacks/vue3/vue3-framework-overlay.md +71 -0
- package/seeds/specs/hard/themes/ai-generated-code.md +171 -0
- package/seeds/specs/hard/themes/api-contract-and-error-semantics.md +532 -0
- package/seeds/specs/hard/themes/architecture-and-module-boundaries.md +323 -0
- package/seeds/specs/hard/themes/data-and-transactions.md +582 -0
- package/seeds/specs/hard/themes/engineering-toolchain-and-dependencies.md +333 -0
- package/seeds/specs/hard/themes/environment-and-configuration.md +196 -0
- package/seeds/specs/hard/themes/frontend-state-and-client-data.md +342 -0
- package/seeds/specs/hard/themes/index.md +374 -0
- package/seeds/specs/hard/themes/integration-and-async-runtime.md +331 -0
- package/seeds/specs/hard/{frontend/38-internationalization-protocol.md → themes/internationalization-and-copywriting.md} +112 -5
- package/seeds/specs/hard/themes/observability-and-analytics.md +305 -0
- package/seeds/specs/hard/themes/page-composition-and-browser-environment.md +554 -0
- package/seeds/specs/hard/{frontend/31-performance-protocol.md → themes/performance-and-capacity.md} +95 -6
- package/seeds/specs/hard/themes/permission-and-authorization.md +168 -0
- package/seeds/specs/hard/themes/privacy-and-data-lifecycle.md +176 -0
- package/seeds/specs/hard/themes/release-and-feature-flags.md +237 -0
- package/seeds/specs/hard/{frontend/04-security-protocol.md → themes/security.md} +95 -6
- package/seeds/specs/hard/themes/task-governance-and-acceptance.md +554 -0
- package/seeds/specs/hard/themes/testing-and-verification.md +266 -0
- package/seeds/specs/hard/themes/ui-presentation-and-design.md +670 -0
- package/seeds/specs/hard/themes/value-semantics-and-domain-data.md +339 -0
- package/seeds/specs/hard/backend/01-architecture-governance-protocol.md +0 -68
- package/seeds/specs/hard/backend/02-project-structure-governance-protocol.md +0 -68
- package/seeds/specs/hard/backend/03-directory-boundary-protocol.md +0 -68
- package/seeds/specs/hard/backend/04-layering-architecture-protocol.md +0 -68
- package/seeds/specs/hard/backend/05-task-workflow-protocol.md +0 -68
- package/seeds/specs/hard/backend/06-ai-generated-code-protocol.md +0 -68
- package/seeds/specs/hard/backend/07-evidence-acceptance-protocol.md +0 -68
- package/seeds/specs/hard/backend/08-contract-change-protocol.md +0 -68
- package/seeds/specs/hard/backend/09-role-responsibility-protocol.md +0 -68
- package/seeds/specs/hard/backend/10-security-protocol.md +0 -68
- package/seeds/specs/hard/backend/11-environment-configuration-protocol.md +0 -67
- package/seeds/specs/hard/backend/12-api-contract-protocol.md +0 -68
- package/seeds/specs/hard/backend/13-privacy-data-lifecycle-protocol.md +0 -68
- package/seeds/specs/hard/backend/14-business-rules-state-protocol.md +0 -68
- package/seeds/specs/hard/backend/15-data-model-protocol.md +0 -68
- package/seeds/specs/hard/backend/16-error-code-protocol.md +0 -68
- package/seeds/specs/hard/backend/17-permission-authorization-protocol.md +0 -68
- package/seeds/specs/hard/backend/18-database-schema-migration-protocol.md +0 -68
- package/seeds/specs/hard/backend/19-query-index-sql-protocol.md +0 -68
- package/seeds/specs/hard/backend/20-transaction-boundary-protocol.md +0 -68
- package/seeds/specs/hard/backend/21-concurrency-locking-protocol.md +0 -68
- package/seeds/specs/hard/backend/22-idempotency-protocol.md +0 -68
- package/seeds/specs/hard/backend/23-cache-redis-consistency-protocol.md +0 -68
- package/seeds/specs/hard/backend/24-external-integration-resilience-protocol.md +0 -68
- package/seeds/specs/hard/backend/25-async-job-scheduler-protocol.md +0 -68
- package/seeds/specs/hard/backend/26-engineering-tooling-protocol.md +0 -68
- package/seeds/specs/hard/backend/27-dependency-supply-chain-protocol.md +0 -68
- package/seeds/specs/hard/backend/28-testing-protocol.md +0 -68
- package/seeds/specs/hard/backend/29-observability-logging-tracing-protocol.md +0 -68
- package/seeds/specs/hard/backend/30-performance-capacity-protocol.md +0 -68
- package/seeds/specs/hard/backend/31-runtime-deployment-protocol.md +0 -68
- package/seeds/specs/hard/backend/32-release-versioning-rollback-protocol.md +0 -68
- package/seeds/specs/hard/backend/index.md +0 -177
- package/seeds/specs/hard/frontend/01-development-checklist-protocol.md +0 -86
- package/seeds/specs/hard/frontend/02-ai-generated-code-protocol.md +0 -82
- package/seeds/specs/hard/frontend/03-acceptance-gate-protocol.md +0 -86
- package/seeds/specs/hard/frontend/05-environment-configuration-protocol.md +0 -80
- package/seeds/specs/hard/frontend/06-change-governance-protocol.md +0 -90
- package/seeds/specs/hard/frontend/07-frontend-backend-communication-protocol.md +0 -219
- package/seeds/specs/hard/frontend/08-role-responsibility-protocol.md +0 -80
- package/seeds/specs/hard/frontend/09-module-boundary-protocol.md +0 -81
- package/seeds/specs/hard/frontend/10-engineering-tooling-protocol.md +0 -89
- package/seeds/specs/hard/frontend/11-dependency-package-management-protocol.md +0 -87
- package/seeds/specs/hard/frontend/12-business-rules-protocol.md +0 -79
- package/seeds/specs/hard/frontend/13-monetary-precision-protocol.md +0 -81
- package/seeds/specs/hard/frontend/14-data-model-protocol.md +0 -85
- package/seeds/specs/hard/frontend/15-request-api-protocol.md +0 -87
- package/seeds/specs/hard/frontend/16-error-handling-protocol.md +0 -79
- package/seeds/specs/hard/frontend/17-permission-protocol.md +0 -79
- package/seeds/specs/hard/frontend/18-state-management-protocol.md +0 -88
- package/seeds/specs/hard/frontend/19-cache-protocol.md +0 -79
- package/seeds/specs/hard/frontend/20-testing-protocol.md +0 -88
- package/seeds/specs/hard/frontend/21-design-system-protocol.md +0 -79
- package/seeds/specs/hard/frontend/22-theme-protocol.md +0 -79
- package/seeds/specs/hard/frontend/23-accessibility-protocol.md +0 -189
- package/seeds/specs/hard/frontend/24-component-protocol.md +0 -80
- package/seeds/specs/hard/frontend/25-page-structure-protocol.md +0 -79
- package/seeds/specs/hard/frontend/26-style-layout-protocol.md +0 -80
- package/seeds/specs/hard/frontend/27-rendering-state-protocol.md +0 -81
- package/seeds/specs/hard/frontend/28-form-protocol.md +0 -88
- package/seeds/specs/hard/frontend/29-routing-url-protocol.md +0 -79
- package/seeds/specs/hard/frontend/30-data-grid-protocol.md +0 -83
- package/seeds/specs/hard/frontend/32-file-import-export-protocol.md +0 -80
- package/seeds/specs/hard/frontend/33-release-versioning-protocol.md +0 -79
- package/seeds/specs/hard/frontend/34-monitoring-logging-protocol.md +0 -128
- package/seeds/specs/hard/frontend/35-mock-protocol.md +0 -97
- package/seeds/specs/hard/frontend/36-feature-flag-protocol.md +0 -79
- package/seeds/specs/hard/frontend/37-browser-device-compatibility-protocol.md +0 -83
- package/seeds/specs/hard/frontend/39-copywriting-protocol.md +0 -79
- package/seeds/specs/hard/frontend/40-analytics-protocol.md +0 -98
- package/seeds/specs/hard/frontend/41-design-handoff-protocol.md +0 -80
- package/seeds/specs/hard/frontend/42-browser-runtime-lifecycle-protocol.md +0 -86
- package/seeds/specs/hard/frontend/43-time-temporal-protocol.md +0 -86
- package/seeds/specs/hard/frontend/44-privacy-data-lifecycle-protocol.md +0 -87
- package/seeds/specs/hard/frontend/45-browser-storage-protocol.md +0 -87
- package/seeds/specs/hard/frontend/index.md +0 -308
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/antdesign/antdesign-ui-overlay.md
|
|
3
|
+
seed_source_sha256: e70a6dad3fedbf8c4a182d92af9c9229e13cc368f880b3ccd96fe11ccdbdd7be
|
|
4
|
+
seed_version: B6F
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
legacy_id: frontend-stack:antdesign
|
|
12
|
+
capability: ui-component-library
|
|
13
|
+
requires: [frontend-stack:vue3]
|
|
14
|
+
conflicts: []
|
|
15
|
+
coexistence: independent
|
|
16
|
+
stages: [prepare, implement, check, release]
|
|
17
|
+
x-research-anchors:
|
|
18
|
+
note: >-
|
|
19
|
+
Ant Design Vue 4.2.6(npm registry + antdv.com 站点头部版本选择器双源一致,2026-09-05
|
|
20
|
+
实抓;antdv.com 为 JS 渲染站点,经 chrome-devtools 实载取证)。v4 主题 = CSS-in-JS
|
|
21
|
+
为官方口径(v3 的 less / CSS 变量降级为构建期静态消费兼容通道)。React 版 Ant Design
|
|
22
|
+
(ant.design,v6.6.2 实抓,external-sites-index 既有锚)仅作跨栈对照注明,组件 API
|
|
23
|
+
与主题机制不混用于 Vue 栈。
|
|
24
|
+
sources:
|
|
25
|
+
- url: https://antdv.com/docs/vue/introduce
|
|
26
|
+
fetched: 2026-09-05
|
|
27
|
+
- url: https://antdv.com/docs/vue/customize-theme
|
|
28
|
+
fetched: 2026-09-05
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Ant Design Vue 组件库 Overlay
|
|
32
|
+
|
|
33
|
+
## Scope
|
|
34
|
+
|
|
35
|
+
本 Overlay 具体化 Ant Design Vue 组件库的引入、按需加载、主题(CSS-in-JS Design Token)与 React 版 antd 的对照边界。
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
|
|
39
|
+
- 必须固定组件库词形与版本位:Vue 栈为 ant-design-vue 4.x 线;React 版 Ant Design 仅作跨栈对照,其组件 API 与主题机制不得混用。
|
|
40
|
+
- 引入与按需加载必须走官方口径:全局重置用 `import 'ant-design-vue/dist/reset.css'`;按需加载用 unplugin-vue-components + AntDesignVueResolver(官方示例 importStyle: false 旁注 css in js)。
|
|
41
|
+
- 主题定制主通路为 v4 CSS-in-JS:ConfigProvider 的 theme prop(Design Token 三层派生 Seed → Map → Alias、default / dark / compact 三算法、组件级 Component Token),运行时消费用 useToken;v3 less 变量只作构建期静态消费兼容通道(theme.defaultAlgorithm(defaultSeed) + less-loader modifyVars),两条通路不得未声明混装。
|
|
42
|
+
- 不得由组件库选型推断 CSS 作用域体系、预处理器或 utility 方案(css 键独立选型);组件库主题 token 不替代项目 design token 分层协议。
|
|
43
|
+
|
|
44
|
+
## Checklist
|
|
45
|
+
|
|
46
|
+
- [ ] 版本位经 npm registry 实抓(4.2.6 双源一致)并记录在项目技术基线。
|
|
47
|
+
- [ ] 主题通路(运行时 CSS-in-JS / 构建期 less 兼容)已显式声明且与实际接线一致。
|
|
48
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/antdesign/index.md
|
|
3
|
+
seed_source_sha256: 261b20e682f7907813dbf46d10391022bf9212e62e6964c33d1d7cbf57128b45
|
|
4
|
+
seed_version: B6F
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Ant Design Vue Overlay 索引
|
|
14
|
+
|
|
15
|
+
本目录只描述 Ant Design Vue 组件库能力(v4 CSS-in-JS 主题与按需加载),不推断 Vue 版本与 CSS 作用域体系,也不混用 React 版 Ant Design 形态。
|
|
16
|
+
|
|
17
|
+
| ID | 文件 | 能力 |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `frontend-stack:antdesign` | `antdesign-ui-overlay.md` | `ui-component-library` |
|
|
20
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/css/css-system-overlay.md
|
|
3
|
+
seed_source_sha256: 4167e2a2d4c457f594db95336470dca4f0778e76df006e815207c0761667692a
|
|
4
|
+
seed_version: B6G
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
legacy_id: frontend-stack:css
|
|
12
|
+
capability: css-system
|
|
13
|
+
requires: [frontend-stack:vue3]
|
|
14
|
+
conflicts: []
|
|
15
|
+
coexistence: independent
|
|
16
|
+
stages: [prepare, implement, check, release]
|
|
17
|
+
x-research-anchors:
|
|
18
|
+
note: >-
|
|
19
|
+
css 键选型 = Owner 裁定 D8(09-05-spec-thematic-reorg):组合词形
|
|
20
|
+
scoped-sfc+antdv-cssinjs-tokens+antdv-reset-css。版本位 vue 3.5.42 /
|
|
21
|
+
ant-design-vue 4.2.6(npm registry 实抓 2026-09-05;ant-design-vue 另经 antdv.com
|
|
22
|
+
站点头部版本选择器双源一致;antdv.com 为 JS 渲染站点,经 chrome-devtools 实载
|
|
23
|
+
取证)。scoped CSS / :deep() / :slotted() / :global() 词形与子组件根元素口径
|
|
24
|
+
出自 vuejs.org SFC CSS Features 特性页(vue 3.5.42 时点滚动站);CSS-in-JS 主题
|
|
25
|
+
(ConfigProvider theme + useToken)与 reset.css 引入词形出自 antdv.com 官方文档。
|
|
26
|
+
sources:
|
|
27
|
+
- url: https://vuejs.org/api/sfc-css-features.html
|
|
28
|
+
fetched: 2026-09-05
|
|
29
|
+
- url: https://antdv.com/docs/vue/customize-theme
|
|
30
|
+
fetched: 2026-09-05
|
|
31
|
+
- url: https://antdv.com/docs/vue/introduce
|
|
32
|
+
fetched: 2026-09-05
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
# CSS 体系 Overlay
|
|
36
|
+
|
|
37
|
+
## Scope
|
|
38
|
+
|
|
39
|
+
本 Overlay 具体化项目 CSS 体系选型(裁定 D8 组合词形 scoped-sfc+antdv-cssinjs-tokens+antdv-reset-css)的官方词形与版本边界:SFC scoped 作用域机制、Ant Design Vue CSS-in-JS 主题 token 消费与官方全局重置。
|
|
40
|
+
|
|
41
|
+
## Rules
|
|
42
|
+
|
|
43
|
+
- 必须固定并记录 CSS 体系组合词形与版本位:scoped-sfc+antdv-cssinjs-tokens+antdv-reset-css(vue 3.5.42 / ant-design-vue 4.2.6,npm registry 实抓双源一致);组合之外的作用域/utility 方案属 css 键改型,不得未声明引入。
|
|
44
|
+
- scoped 作用域以 SFC `<style scoped>` 为项目主机制(编译为 data-v-hash 属性选择器);穿透与例外必须用官方逃逸词形 `:deep()`(子组件穿透)、`:slotted()`(slot 内容)、`:global()`(全局例外);子组件根元素同时受父 scoped 影响为官方口径。
|
|
45
|
+
- antdv 主题 token 消费走 v4 CSS-in-JS 官方通路:ConfigProvider 的 theme prop(Design Token 三层派生 Seed → Map → Alias、default / dark / compact 三算法、组件级 Component Token),运行时消费用 useToken;组件库主题 token 不替代项目 design token 分层协议。
|
|
46
|
+
- 全局重置以官方单一来源承载:`import 'ant-design-vue/dist/reset.css'`;不得未声明引入与之竞争的第二套全局重置。
|
|
47
|
+
|
|
48
|
+
## Checklist
|
|
49
|
+
|
|
50
|
+
- [ ] css 键组合词形与版本位(vue / ant-design-vue)经 npm registry 实抓并记录在项目技术基线。
|
|
51
|
+
- [ ] scoped 逃逸词形(:deep() / :slotted() / :global())、antdv 主题通路(ConfigProvider theme + useToken)与全局重置(reset.css import)与实际接线一致。
|
|
52
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/css/index.md
|
|
3
|
+
seed_source_sha256: eb09e17e34b577df39889213194207a3335f151d7c0f6655fa2f6aca63f0dc63
|
|
4
|
+
seed_version: B6G
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# CSS 体系 Overlay 索引
|
|
14
|
+
|
|
15
|
+
本目录只描述项目 CSS 体系能力(SFC scoped 作用域、Ant Design Vue CSS-in-JS 主题 token 与官方全局重置的官方词形),不推断 Vue 版本与 UI 组件库选型,也不混用 React 版 Ant Design 形态。
|
|
16
|
+
|
|
17
|
+
| ID | 文件 | 能力 |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `frontend-stack:css` | `css-system-overlay.md` | `css-system` |
|
|
20
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/geist/geist-design-system-overlay.md
|
|
3
|
+
seed_source_sha256: a9edc3d23708ccef6aeade6669dd638117f341052c47e0145347a5b51e085680
|
|
4
|
+
seed_version: B6F
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
legacy_id: frontend-stack:geist
|
|
12
|
+
capability: design-system
|
|
13
|
+
requires: []
|
|
14
|
+
conflicts: []
|
|
15
|
+
coexistence: independent
|
|
16
|
+
stages: [prepare, implement, check, release]
|
|
17
|
+
x-research-anchors:
|
|
18
|
+
note: >-
|
|
19
|
+
Vercel Geist 设计体系参照(2026-09-02 实抓,external-design-references 批次——
|
|
20
|
+
external-sites-index 既有在册锚):Foundations 现状为 colors / typography /
|
|
21
|
+
materials(无 spacing foundation——缺席诚实);70 组件清单;Button variant+state
|
|
22
|
+
词表;Best Practices icon-only validator 抛错 = fail-closed 先例。设计体系站点
|
|
23
|
+
无 npm 包版本位,时效以 verified 时点为准,过期引用须重新核实。
|
|
24
|
+
sources:
|
|
25
|
+
- url: https://vercel.com/geist
|
|
26
|
+
fetched: 2026-09-02
|
|
27
|
+
- url: https://vercel.com/font
|
|
28
|
+
fetched: 2026-09-02
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Geist 设计体系 Overlay
|
|
32
|
+
|
|
33
|
+
## Scope
|
|
34
|
+
|
|
35
|
+
本 Overlay 具体化以 Vercel Geist 为设计体系参照的 foundations 词形、组件词表与使用规则引用边界。
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
|
|
39
|
+
- Foundations 词形(colors / typography / materials)必须以实抓现状为准;Geist 现状无 spacing foundation——缺席诚实记录,禁杜撰 foundation 词形。
|
|
40
|
+
- 组件清单与 variant / state 词表以 Geist 组件页为词形锚;项目侧组件命名与变体词形引用时必须与锚一致或在册声明差异。
|
|
41
|
+
- 引用 Best Practices 要点(如 icon-only validator 抛错 = fail-closed 先例)必须带实抓时点;页面内容随后可能变动,过期引用须重新核实。
|
|
42
|
+
- Geist 为设计体系参照而非实现依赖——不得由 geist 参照推断框架、UI 组件库或 CSS 方案选型;与 UI 组件库 overlay 并存时各守各轴。
|
|
43
|
+
|
|
44
|
+
## Checklist
|
|
45
|
+
|
|
46
|
+
- [ ] 引用的 foundations / 组件词表 / 使用规则带 verified 时点(2026-09-02)且未过期或已重新核实。
|
|
47
|
+
- [ ] 参照边界在册:geist 参照不绑定实现依赖,token 消费与主题协议的衔接已显式声明。
|
|
48
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/geist/index.md
|
|
3
|
+
seed_source_sha256: af0097581fdcac786ff234938bed8237be3185b72ed64d9c19e1a43f7b7a79df
|
|
4
|
+
seed_version: B6F
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Geist Overlay 索引
|
|
14
|
+
|
|
15
|
+
本目录只描述以 Vercel Geist 为参照的设计体系能力(foundations / 组件词表 / 使用规则),不隐式选择框架、UI 组件库实现或 CSS 方案。
|
|
16
|
+
|
|
17
|
+
| ID | 文件 | 能力 |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `frontend-stack:geist` | `geist-design-system-overlay.md` | `design-system` |
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/vue3/index.md
|
|
3
|
+
seed_source_sha256: 1d17431560308ce46ea300f9200a7ebb007b5a52c21bbfeda2362516a3b5cbc8
|
|
4
|
+
seed_version: B6F
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Vue 3 Overlay 索引
|
|
14
|
+
|
|
15
|
+
本目录只描述 Vue 3 框架能力与官方配套(Pinia / Vue Router / TypeScript 工具链)边界,不隐式选择 UI 组件库、CSS 体系、grid 方案或构建工具。
|
|
16
|
+
|
|
17
|
+
| ID | 文件 | 能力 |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `frontend-stack:vue3` | `vue3-framework-overlay.md` | `application-framework` |
|
|
20
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: pomaster/components/frontend-hard-spec/assets/stacks/vue3/vue3-framework-overlay.md
|
|
3
|
+
seed_source_sha256: 15e7fd3808760bb330933f4a0479e4e95e3e07d0e24485d1b9b860019a708935
|
|
4
|
+
seed_version: B6F
|
|
5
|
+
lane: frontend
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
legacy_id: frontend-stack:vue3
|
|
12
|
+
capability: application-framework
|
|
13
|
+
requires: []
|
|
14
|
+
conflicts: []
|
|
15
|
+
coexistence: independent
|
|
16
|
+
stages: [prepare, implement, check, release]
|
|
17
|
+
x-research-anchors:
|
|
18
|
+
note: >-
|
|
19
|
+
Vue 3.5.42(npm registry latest + GitHub vuejs/core tag v3.5.42 双源一致,2026-09-05 实抓);
|
|
20
|
+
vuejs.org 为无版本号滚动站点,版本位以实抓日 + 同日包版本实抓为准。pinia 4.0.3(npm 单源)
|
|
21
|
+
与 vue-router 5.3.1(npm + GitHub 双源)为现行主版本线——不得沿用 pinia 2/3、
|
|
22
|
+
vue-router 3/4 旧主版本记忆。TypeScript 7.0.2(npm latest 实抓)与 vue-tsc /
|
|
23
|
+
@vue/tsconfig 的兼容矩阵未逐条核实(研究 Caveats 在册),写死 TS 版本约束前须补核实。
|
|
24
|
+
sources:
|
|
25
|
+
- url: https://vuejs.org/guide/essentials/component-basics.html
|
|
26
|
+
fetched: 2026-09-05
|
|
27
|
+
- url: https://vuejs.org/guide/scaling-up/sfc.html
|
|
28
|
+
fetched: 2026-09-05
|
|
29
|
+
- url: https://vuejs.org/api/sfc-spec.html
|
|
30
|
+
fetched: 2026-09-05
|
|
31
|
+
- url: https://vuejs.org/guide/essentials/reactivity-fundamentals.html
|
|
32
|
+
fetched: 2026-09-05
|
|
33
|
+
- url: https://vuejs.org/guide/reusability/composables.html
|
|
34
|
+
fetched: 2026-09-05
|
|
35
|
+
- url: https://vuejs.org/guide/essentials/lifecycle.html
|
|
36
|
+
fetched: 2026-09-05
|
|
37
|
+
- url: https://vuejs.org/guide/scaling-up/state-management.html
|
|
38
|
+
fetched: 2026-09-05
|
|
39
|
+
- url: https://pinia.vuejs.org/
|
|
40
|
+
fetched: 2026-09-05
|
|
41
|
+
- url: https://vuejs.org/guide/scaling-up/routing.html
|
|
42
|
+
fetched: 2026-09-05
|
|
43
|
+
- url: https://router.vuejs.org/
|
|
44
|
+
fetched: 2026-09-05
|
|
45
|
+
- url: https://vuejs.org/guide/typescript/overview.html
|
|
46
|
+
fetched: 2026-09-05
|
|
47
|
+
- url: https://vuejs.org/style-guide/
|
|
48
|
+
fetched: 2026-09-05
|
|
49
|
+
- url: https://v2.vuejs.org/lts/
|
|
50
|
+
fetched: 2026-09-05
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
# Vue 3 框架 Overlay
|
|
54
|
+
|
|
55
|
+
## Scope
|
|
56
|
+
|
|
57
|
+
本 Overlay 具体化 Vue 3 组件模型、SFC、响应式系统与官方配套(状态 / 路由 / TypeScript 工具链)的选型与版本边界。
|
|
58
|
+
|
|
59
|
+
## Rules
|
|
60
|
+
|
|
61
|
+
- 必须固定并记录 Vue 3、Pinia、vue-router 与 TypeScript 工具链(vue-tsc / @vue/tsconfig)的版本位与来源;版本位经实抓核实,不得沿用旧主版本记忆(现行线为 pinia 4.x / vue-router 5.x)。
|
|
62
|
+
- 状态与路由必须选官方方案:新应用状态管理选 Pinia(Vue 核心团队维护;Vuex 已是维护模式),SPA 路由选官方 Vue Router——两者是官方口径,不自造替代。
|
|
63
|
+
- 组件、SFC 与响应式写法以官方文档与风格指南优先级(A/B/C 三档)为基准;响应式必须声明 ref / reactive 选型边界(reactive 的 proxy 局限官方有专门小节)。
|
|
64
|
+
- 组合式函数必须遵守官方约定(命名、入参、返回值、副作用、使用限制),生命周期钩子按官方注册时机使用。
|
|
65
|
+
- 不得由 Vue 3 选型推断 UI 组件库、CSS 体系、grid 或构建工具选型;Vue 2 已 EOL,其心智不得带入新项目基线。
|
|
66
|
+
|
|
67
|
+
## Checklist
|
|
68
|
+
|
|
69
|
+
- [ ] 版本位(vue / pinia / vue-router / typescript)经实抓核实并记录在项目技术基线。
|
|
70
|
+
- [ ] 状态、路由与 TS 类型检查工具链为官方词形(Pinia / Vue Router / vue-tsc)且带实抓日期锚。
|
|
71
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
seed_source: packages/cli/seeds/aggregation-manifest.json
|
|
3
|
+
seed_source_sha256: 039b637ccffacdfe3ce30d85e193f4b38928fcdfb16efdc4eb255e35e05af91f
|
|
4
|
+
seed_version: B7-THEME
|
|
5
|
+
lane: [frontend, backend]
|
|
6
|
+
status: CURRENT
|
|
7
|
+
authority_scope: mixed_required_and_advisory
|
|
8
|
+
applies_to: [frontend, backend]
|
|
9
|
+
related_evidence_specs: []
|
|
10
|
+
related_tools: []
|
|
11
|
+
legacy_id: theme:ai-generated-code
|
|
12
|
+
criticality: critical # 聚合注记:取源最高;info 性注记非执行语义
|
|
13
|
+
injection_mode: always # 聚合注记:来源同值;info 性注记非执行语义
|
|
14
|
+
stages: [prepare, implement, check] # 聚合注记:来源 stages 并集;info 性注记非执行语义
|
|
15
|
+
triggers: [] # 聚合注记:来源无 triggers 字段;info 性注记非执行语义
|
|
16
|
+
requires: [] # 聚合注记:来源 requires 并集(全空)
|
|
17
|
+
x-aggregation: # 聚合来源(D6):逐源 vendor pin(sha256 与卡 vendor_pin 同值)
|
|
18
|
+
- seed_source: pomaster/components/frontend-hard-spec/assets/universal/02-ai-generated-code-protocol.md
|
|
19
|
+
sha256: a80ea1c51c9afc0b96001cfffa0675edafb1572563652840bcf88770d81203c8
|
|
20
|
+
seed_version: B6B-1
|
|
21
|
+
- seed_source: pomaster/components/backend-hard-spec/assets/universal/06-ai-generated-code-protocol.md
|
|
22
|
+
sha256: a88614806137f33161b741d2a9fbc6ee310fa4f0cbf6acd222de07c14aee3d75
|
|
23
|
+
seed_version: B6C
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# AI 生成代码
|
|
27
|
+
|
|
28
|
+
> **聚合纪律**:本文档 12 节正文规则行逐字取自 frontmatter x-aggregation 所列来源协议(节内按「端 → 源编号升序」以加粗来源行分块,源内标题与层级原样保留),零新增、零改写、零删除;新增文本仅限文档标题、本注记与逐节来源行。
|
|
29
|
+
|
|
30
|
+
## Scope
|
|
31
|
+
|
|
32
|
+
**源:FE 02 AI 生成代码协议(pomaster/components/frontend-hard-spec/assets/universal/02-ai-generated-code-protocol.md)**
|
|
33
|
+
|
|
34
|
+
P0。约束 AI 分析、生成、修改、评审和验证代码时的行为。
|
|
35
|
+
|
|
36
|
+
**源:BE 06 AI 生成代码协议(pomaster/components/backend-hard-spec/assets/universal/06-ai-generated-code-protocol.md)**
|
|
37
|
+
|
|
38
|
+
约束 Agent 的前置检查、事实边界、复用搜索、实现与验证声明。
|
|
39
|
+
|
|
40
|
+
## Non-Scope
|
|
41
|
+
|
|
42
|
+
**源:FE 02 AI 生成代码协议**
|
|
43
|
+
|
|
44
|
+
不替代人工需求决策、代码所有权、测试、合规审批或上线责任。
|
|
45
|
+
|
|
46
|
+
**源:BE 06 AI 生成代码协议**
|
|
47
|
+
|
|
48
|
+
不授权 Agent 自行决定业务事实或扩大写集。
|
|
49
|
+
|
|
50
|
+
## Terms
|
|
51
|
+
|
|
52
|
+
**源:FE 02 AI 生成代码协议**
|
|
53
|
+
|
|
54
|
+
- AI Change Plan:写代码前声明的协议、事实、范围和验证计划。
|
|
55
|
+
- Invented Contract:无正式来源而猜测的字段、状态、权限、API 或规则。
|
|
56
|
+
- Unrelated Change:当前目标不需要的修改。
|
|
57
|
+
|
|
58
|
+
**源:BE 06 AI 生成代码协议**
|
|
59
|
+
|
|
60
|
+
权威事实包括已确认的 PRD、契约、schema、配置来源和仓库证据。
|
|
61
|
+
|
|
62
|
+
## MUST
|
|
63
|
+
|
|
64
|
+
**源:FE 02 AI 生成代码协议 · §MUST**
|
|
65
|
+
|
|
66
|
+
- AI 写代码前读取适用协议并输出 Change Plan。
|
|
67
|
+
- AI 必须先搜索已有组件、抽象、契约、工具和同类实现。
|
|
68
|
+
- AI 必须区分事实、推断和待确认项。
|
|
69
|
+
- AI 必须说明为什么修改这些文件、为什么不修改其他层。
|
|
70
|
+
- AI 必须运行可用检查并如实报告未验证项。
|
|
71
|
+
- AI 必须保留与任务无关的用户现有改动。
|
|
72
|
+
|
|
73
|
+
**源:BE 06 AI 生成代码协议 · §MUST**
|
|
74
|
+
|
|
75
|
+
- 写入前必须读取规范、搜索复用点,并按风险运行可复核检查。
|
|
76
|
+
|
|
77
|
+
## MUST NOT
|
|
78
|
+
|
|
79
|
+
**源:FE 02 AI 生成代码协议 · §MUST NOT**
|
|
80
|
+
|
|
81
|
+
- MUST NOT 发明正式字段、枚举、公式、权限码、接口、路由或配置。
|
|
82
|
+
- MUST NOT 重复创建已有能力。
|
|
83
|
+
- MUST NOT 删除测试、降低断言、关闭规则或用类型逃逸掩盖问题。
|
|
84
|
+
- MUST NOT 声称执行了实际未运行的验证。
|
|
85
|
+
|
|
86
|
+
**源:BE 06 AI 生成代码协议 · §MUST NOT**
|
|
87
|
+
|
|
88
|
+
- 不得发明字段、接口、错误码、迁移、锁、Redis key、topic、secret 或环境阈值。
|
|
89
|
+
|
|
90
|
+
## SHOULD
|
|
91
|
+
|
|
92
|
+
**源:FE 02 AI 生成代码协议 · §SHOULD**
|
|
93
|
+
|
|
94
|
+
- SHOULD 把重复决策沉淀为协议、contract 或自动检查。
|
|
95
|
+
- SHOULD 为高风险公共变更提供迁移和回滚。
|
|
96
|
+
|
|
97
|
+
**源:BE 06 AI 生成代码协议 · §SHOULD**
|
|
98
|
+
|
|
99
|
+
- 应显式标记假设、未知项和需要升级确认的决策。
|
|
100
|
+
|
|
101
|
+
## Contract
|
|
102
|
+
|
|
103
|
+
**源:FE 02 AI 生成代码协议 · §Contract**
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
Goal, Protocols, Facts, Assumptions, TODO_CONFIRM,
|
|
107
|
+
ReuseSearch, FilesToChange, FilesNotToChange,
|
|
108
|
+
Validation, ResidualRisk
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**源:BE 06 AI 生成代码协议 · §Contract**
|
|
112
|
+
|
|
113
|
+
生成内容必须绑定输入来源、目标写集和验证结果。
|
|
114
|
+
|
|
115
|
+
## Checklist
|
|
116
|
+
|
|
117
|
+
**源:FE 02 AI 生成代码协议 · §Checklist**
|
|
118
|
+
|
|
119
|
+
- [ ] 已读协议和正式契约。
|
|
120
|
+
- [ ] 已证明新建必要性。
|
|
121
|
+
- [ ] 未猜测业务和接口事实。
|
|
122
|
+
- [ ] 修改与同步范围明确。
|
|
123
|
+
- [ ] 验证结果真实可复核。
|
|
124
|
+
|
|
125
|
+
**源:BE 06 AI 生成代码协议 · §Checklist**
|
|
126
|
+
|
|
127
|
+
- [ ] 已检查既有实现、镜像路径、未提交改动和任务边界。
|
|
128
|
+
|
|
129
|
+
## Examples
|
|
130
|
+
|
|
131
|
+
**源:FE 02 AI 生成代码协议 · §Examples**
|
|
132
|
+
|
|
133
|
+
### 内容示例,可删除
|
|
134
|
+
|
|
135
|
+
AI 修复报表列宽前识别列 schema 所属层级,验证相同表格类型,再修改领域 preset。
|
|
136
|
+
|
|
137
|
+
**源:BE 06 AI 生成代码协议 · §Examples**
|
|
138
|
+
|
|
139
|
+
- 缺少隔离级别事实时记录待确认项,而不是选择一个默认值。
|
|
140
|
+
|
|
141
|
+
## Anti-patterns
|
|
142
|
+
|
|
143
|
+
**源:FE 02 AI 生成代码协议 · §Anti-patterns**
|
|
144
|
+
|
|
145
|
+
未搜索组件库便新建相似组件,并顺手重构 store、API 和全局样式。
|
|
146
|
+
|
|
147
|
+
**源:BE 06 AI 生成代码协议 · §Anti-patterns**
|
|
148
|
+
|
|
149
|
+
- 用聊天记忆替代仓库、契约、测试或运行证据。
|
|
150
|
+
|
|
151
|
+
## Ownership
|
|
152
|
+
|
|
153
|
+
**源:FE 02 AI 生成代码协议 · §Ownership**
|
|
154
|
+
|
|
155
|
+
AI 仅为 Contributor;任务、代码、评审和上线分别由对应人类 Owner 负责。
|
|
156
|
+
|
|
157
|
+
**源:BE 06 AI 生成代码协议 · §Ownership**
|
|
158
|
+
|
|
159
|
+
Agent 对变更与声明负责,用户拥有超出既定范围的决策权。
|
|
160
|
+
|
|
161
|
+
## Change Policy
|
|
162
|
+
|
|
163
|
+
**源:FE 02 AI 生成代码协议 · §Change Policy**
|
|
164
|
+
|
|
165
|
+
放宽 AI 禁止规则必须由工程治理和领域 Owner 批准;新型 AI 错误应转为协议或门禁。
|
|
166
|
+
|
|
167
|
+
**源:BE 06 AI 生成代码协议 · §Change Policy**
|
|
168
|
+
|
|
169
|
+
新增高频误改模式时应追加明确禁止项和回归测试。
|
|
170
|
+
|
|
171
|
+
> **语言节**:本主题无语言节挂点(缺席诚实);规则本体即上文通用节。
|