Files
LWLT-AIBOT/.project-docs/05-agent-entry/integration-gate.md
T

1.1 KiB

Integration Gate

Use this gate to promote completed task facts into canonical project memory.

Requirements

  • Run in an exclusively owned integration worktree.
  • Hold the repository integration lock.
  • For a single completed Feature, create the Integration worktree from that Feature commit so its task-owned records are already inside the Integration task's recorded base. Verify the target default branch is an ancestor or reconcile it explicitly before canonical edits; starting from the older default branch and then introducing another task's record will correctly fail the drift gate.
  • Verify the task commits being integrated are present.
  • Review source task records, task-prefixed supporting records, promotion candidates, and semantic conflicts in read-only mode.
  • Write integration notes only to the integration task's own task record or {task_id}__<slug>.md supporting records.
  • Ask before changing architecture direction, product behavior, or accepted decisions.
  • Record source task or merge commits under Integrated Through in current-state.md.

Do not resolve meaningful document conflicts with ours, theirs, or union merge rules.