.ai/principles/distillation_prompt.md
You are updating an AI code review agent's instructions based on changes to the GitLab development documentation (the Single Source of Truth).
Below is the CURRENT agent instruction file and the UPDATED documentation content. Your task is to produce an updated version of the agent's Checklist section that accurately reflects ALL review guidelines from the documentation.
Rules:
CONSTANT = 'value'.freeze)"
d) Descriptive defaults — convert to prohibition:true — they are enabled by
default in the test environment"
This ensures every rule reads as an instruction that agents follow,
rather than background information they may ignore.ApplicationRecord.transaction instead of ActiveRecord::Base.transaction"Model.transaction (not ApplicationRecord.transaction) when all records belong to the same database"Model.transaction when all records belong to the same database; use ApplicationRecord.transaction (not ActiveRecord::Base.transaction) only when the model is not known or records span multiple models"multiple_databases.md for cross-database
cases"), append an inline parenthetical reference to the resulting
checklist item rather than dropping the cross-link. Example:
dependent: :destroy on associations"dependent: :destroy on associations
(cross-database cases have additional constraints — see
database-fundamentals)"pluck to load IDs into memory for use as arguments
in another query; use subqueries instead"update_all, first pluck IDs from the CTE
result and then scope the update to those IDs"pluck to load IDs into memory for use as arguments
in another query; use subqueries instead. Exception: when using
CTEs with update_all, first pluck IDs from the CTE result and
scope the update to those IDs (the CTE is dropped otherwise)."CURRENT AGENT FILE: %{current_agent}
UPDATED SSOT DOCUMENTATION: %{updated_docs} %{baseline_section}
<!-- BASELINE_SECTION_TEMPLATE -->BASELINE RULES (hand-curated, always include verbatim): The following rules are hand-curated by the team and supplement the SSOT docs. Include them in the output as-is, adding a dedicated subsection if needed. Do not rephrase or omit these rules.
%{baseline_content}