copilot-instructions.md · diff
git:20261014.2e7bbe8 to git:20261020.7ba3794
27 added, 37 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
# Repository Review Instructions
Zitadel nextgen is pre-release. Review for correctness and contract stability
more than polish.
- **Tool-specific rules here are a bootstrap only. Authoritative instructions
- live in [`AGENTS.md`](../AGENTS.md) and the nearest scoped `AGENTS.md` for the
- touched path** — read those first; the scoped files under
- `.github/instructions/` add per-area review pointers, not parallel rules.
+ **These files only point. The rules live in [`AGENTS.md`](../AGENTS.md) and the
+ nearest scoped `AGENTS.md` for the touched path** — read those first; the files
+ under `.github/instructions/` add per-area review heuristics, not parallel
+ rules.
- - Validation by touched area: `moon ci :lint :typecheck :build :test` for the
- workspace, `go vet ./...` and `go test ./...` for Go, and
- `moon run <project>:<task>` for focused checks (front doors:
- [`AGENTS.md` — Workflow Front Doors](../AGENTS.md#workflow-front-doors)).
- - Generated files: never ask authors to hand-edit `api/generated/**`,
- package `dist/**`, or `apps/console/src/routeTree.gen.ts`
- ([`AGENTS.md` — Generated Files](../AGENTS.md#generated-files)).
- - CLI contract (JSON envelope, `--silent` capture tip, SKILLS.md sync):
- [`AGENTS.md` — CLI Contract](../AGENTS.md#cli-contract) is canonical.
+ - Validation commands:
+ [`AGENTS.md` — Workflow Front Doors](../AGENTS.md#workflow-front-doors).
+ - Never ask an author to hand-edit generated output
+ ([`AGENTS.md` — Hard rules](../AGENTS.md#hard-rules)).
+ - CLI changes: the agent contract is
+ [`apps/cli/skills/zitadel-cli/SKILL.md`](../apps/cli/skills/zitadel-cli/SKILL.md);
+ package rules are in [`apps/cli/AGENTS.md`](../apps/cli/AGENTS.md).
- The claim lifecycle is shipped
- ([ADR 046](../docs/adrs/046-claim-lifecycle-v2.md)): server claim endpoints
- plus `zitadel claim`. Review claim changes against ADR 046 — the old rule
- to keep the lifecycle out (from Withdrawn ADR 003's era) is obsolete.
- - Secrets: project/preview tokens and `.zitadel/secret`-style values must not
- enter source control or browser-safe env metadata.
- - Changesets and PR titles: the decision table in
- [`.changeset/README.md`](../.changeset/README.md#decision-table) and
+ ([ADR 046](../docs/adrs/046-claim-lifecycle-v2.md)): review claim changes
+ against it, and do not ask for its removal.
+ - Flag project or preview tokens, keys and `.zitadel/secret`-style values in
+ source control or in browser-visible env metadata.
+ - Changesets and PR titles: the
+ [decision table](../.changeset/README.md#decision-table) and
[`CONTRIBUTING.md#title-format`](../CONTRIBUTING.md#title-format) are
canonical. Challenge the title type in both directions — it decides what
- reaches customer release notes. Guards:
- `node scripts/check-pr-title.mjs --title "<title>"` and
- `node scripts/check-changesets-status.mjs`.
- - Node version: every runtime uses the `.nvmrc` major; minor versions do not
- matter. Flag a major bump that misses `devbox.json`,
- `.devcontainer/devcontainer.json`, `apps/cli-skill-e2e/scripts/run.mjs`,
- the Vercel apps' `engines.node` or the `@types/node` catalog entry, and any
- hard-coded `node-version` in a workflow. Do not ask for exact-version
- matches ([`AGENTS.md` — Node.js version](../AGENTS.md#nodejs-version)).
- - Dependency versions: flag exact pins without a comment saying why, and a
- dependency shared by several packages that is not a `catalog:` entry
- ([`AGENTS.md` — Node.js version](../AGENTS.md#nodejs-version)).
+ reaches customer release notes.
+ - Versions: flag a Node major bump that misses a pin, an exact dependency pin
+ without a comment saying why, and a dependency shared by several packages
+ that is not a `catalog:` entry. Do not ask for exact-version matches
+ ([rules](../CONTRIBUTING.md#nodejs-and-dependency-versions)).
- Licensing split: [`LICENSING.md`](../LICENSING.md).
- Journey-gate changes (`e2e/journey/**`, `ci.yml` journey steps):
- [`e2e/journey/AGENTS.md`](../e2e/journey/AGENTS.md) is
- canonical (the project id is `e2e`).
- - Local runtime command changes: verify `.zitadel/local/` state handling,
- `--server local` resolution, and the zero-config smoke paths per
- [`apps/cli/SKILLS.md`](../apps/cli/SKILLS.md).
+ [`e2e/journey/AGENTS.md`](../e2e/journey/AGENTS.md) is canonical.
+ - Local runtime command changes:
+ [`apps/cli/src/lib/local-server/AGENTS.md`](../apps/cli/src/lib/local-server/AGENTS.md)
+ is canonical; the zero-config paths agents rely on are in
+ [`SKILL.md`](../apps/cli/skills/zitadel-cli/SKILL.md).