Intent-Align v2 Core
Keep execution aligned to user intent while preserving agent autonomy.
Quick Start
- 1. Read references/core-contract.md.
- Create alignment hub from references/alignment-hub-template.md.
- Run Intent Quality Gate before planning.
- Select adapters from references/adapters/.
- Execute phases with realignment and verification gates.
Workflow Contract
- 1. Build
intent_snapshot and run intent_lint (see core contract). - Ask for strictness mode and scope overrides (project/repo/workflow/task).
- Resolve effective strictness by precedence:
task > workflow > repo > project > default. - Evaluate ambiguity action using severity + strictness + risk class.
- Generate phase plan and Mermaid diagram with explicit dependencies and gates.
- Bind available adapters through
capability_matrix. - Execute phase-by-phase.
- Before phase start, run Pre-Execution Clarification Gate.
- On each phase end, run verification gates (including output conformance) and update drift evidence.
- If intent or constraints change, apply
intent_delta and re-plan only impacted phases. - Close with final alignment report and open ambiguity list (if any).
Autonomy Levels
- -
1 Strict: Require user confirmation before each phase start. - INLINECODE6 : Require user confirmation at phase end or any critical drift.
- INLINECODE7 : Auto-continue on low drift; require confirmation on major deltas.
- INLINECODE8 : Continue with log-only check-ins unless risk or ambiguity threshold is exceeded.
Override rule: high-risk ambiguity is never advisory-only; enforce at least soft_gate.
Strictness rule: strictness mode controls whether ambiguities block or proceed with guardrails.
Required References
Adapter Selection
Use only adapters needed for the task:
If no adapter can satisfy a required capability:
- 1. Generate an ad-hoc adapter spec from
adapter-template.md. - Add provenance metadata (
created_by, created_at, environment_assumptions, tool_access_required). - Validate required fields before use.
- Register the new adapter in
capability_matrix.adapters_selected. - Continue in degraded mode only if validation fails or auth/capability remains unavailable.
Anti-Bloat Rules
- - Keep core contract tool-agnostic.
- Do not add tracker- or host-specific logic to core files.
- Add a new adapter only for a proven capability gap.
- Keep schemas single-source; do not duplicate fields across files.
- Tie each new feature to one concrete failure mode and one test scenario.
- Generate ad-hoc adapters only for current task scope; do not pre-generate broad catalogs.
- Use canonical capability IDs first; extend only when needed via namespaced custom IDs.
Edge Cases
- - Multi-repo: maintain one hub with per-repo adapter bindings and dependency graph.
- Non-git prototype: use local artifacts and explicit acceptance criteria checkpoints.
- Team swarm: assign owner per phase and keep decision log in hub.
技能名称: intent-align
详细描述:
Intent-Align v2 核心
在执行过程中保持与用户意图一致,同时保留智能体的自主性。
快速开始
- 1. 阅读 references/core-contract.md。
- 根据 references/alignment-hub-template.md 创建对齐中心。
- 在规划前运行意图质量门。
- 从 references/adapters/ 中选择适配器。
- 执行阶段,并设置重新对齐和验证门。
工作流契约
- 1. 构建 intentsnapshot 并运行 intentlint(参见核心契约)。
- 询问严格模式和作用域覆盖范围(项目/仓库/工作流/任务)。
- 按优先级解析有效严格度:任务 > 工作流 > 仓库 > 项目 > 默认。
- 使用严重性 + 严格度 + 风险等级评估歧义操作。
- 生成阶段计划和包含显式依赖与门的 Mermaid 图。
- 通过 capabilitymatrix 绑定可用适配器。
- 逐阶段执行。
- 在阶段开始前,运行执行前澄清门。
- 在每个阶段结束时,运行验证门(包括输出一致性)并更新漂移证据。
- 如果意图或约束发生变化,应用 intentdelta 并仅重新规划受影响的阶段。
- 以最终对齐报告和未解决歧义列表(如有)结束。
自主性级别
- - 1 严格:每个阶段开始前需用户确认。
- 2 平衡:阶段结束或任何关键漂移时需用户确认。
- 3 激进:低漂移时自动继续;重大变化时需确认。
- 4 探索性:除非风险或歧义阈值被超过,否则仅以日志记录方式继续。
覆盖规则:高风险歧义绝不能仅作为建议处理;至少强制执行 soft_gate。
严格度规则:严格模式控制歧义是阻止执行还是带护栏继续。
必需参考
适配器选择
仅使用任务所需的适配器:
如果没有适配器能满足所需能力:
- 1. 根据 adapter-template.md 生成临时适配器规范。
- 添加来源元数据(createdby、createdat、environmentassumptions、toolaccessrequired)。
- 使用前验证必填字段。
- 在 capabilitymatrix.adapters_selected 中注册新适配器。
- 如果验证失败或认证/能力仍不可用,仅在降级模式下继续。
防膨胀规则
- - 保持核心契约与工具无关。
- 不要在核心文件中添加追踪器或主机特定逻辑。
- 仅针对已验证的能力缺口添加新适配器。
- 保持模式单一来源;不要跨文件重复字段。
- 将每个新功能与一个具体故障模式和一个测试场景绑定。
- 仅针对当前任务范围生成临时适配器;不要预先生成广泛目录。
- 优先使用规范能力 ID;仅在需要时通过命名空间自定义 ID 扩展。
边界情况
- - 多仓库:维护一个中心,包含每个仓库的适配器绑定和依赖图。
- 非 Git 原型:使用本地工件和显式验收标准检查点。
- 团队协作:为每个阶段分配负责人,并在中心中保留决策日志。