AGENTS.md is read on every task, so it keeps routing, the hard stops,
the install and keyword gates and the completion report, and drops to
514 words; all rule files together drop from 7546 to 5783 words. Rules
state the result to reach, and keep a prohibition only where a mistake
is hard to undo or a reviewer has caught it before.
Lessons from reviewed PRs: PATCHES carried over a bump, Go -ldflags
without -s or -w, RUST_MIN_VER from the highest rust-version, cargo
QA_FLAGS_IGNORED, ISA gating through cpu_flags, Python Requires-Dist,
draft PRs for eclass provider slots missing from ::gentoo, skel.ebuild
variable order, DependencyMissingKeywords, and the Go vendor layout.
The PR template asks for the reason, a Tested: line and two checks, and
names the merge-base scan range so it is not read as a bare --commits.
Signed-off-by: Zakk <zakk@gentoozh.org>
AGENTS.md is loaded for every task and had grown to about 2700 words. It now keeps the overview, routing, PR scope, the install, keyword and precedent gates, stopping and the completion report. The rest moves verbatim: ebuild construction and code style to ebuild-construction.md, dependencies and revisions to dependencies.md, commands and QA to qa.md, and writing to pr-text.md. Task routing lists the new files and restores the fallback to the skill's checks.md, which the merged version of the skill pointer missed.
Signed-off-by: Zakk <zakk@gentoozh.org>
gentoo-zh/skills now ships one entry skill that installs with npx skills, so contributors using agents can find the runnable procedures. The skill only applies AGENTS.md.
Signed-off-by: Zakk <zakk@gentoozh.org>
AGENTS.md is loaded for every task, while remote detection, rebasing and pushing matter only before the first edit and before publishing. AGENTS.md keeps the PR-scope rules and points to the new file for the preflight.
Signed-off-by: Zakk <zakk@gentoozh.org>
The RedirectedUrl case now sits in the existing GIT_CRATES bullet of .agents/rules/eclass-discovery.md, so AGENTS.md no longer states the same rule twice.
Signed-off-by: Zakk <zakk@gentoozh.org>
Prebuilt glibc floors go in a per-arch RDEPEND because REQUIRED_USE="elibc_glibc" is an error-level pkgcheck finding on musl profiles and fails CI for a new package (jcode-bin, #16779). Per-arch payloads are checked separately because one arch can link OpenSSL and another not.
LICENSE must cover bundled components (ayugram-desktop, #16785: static ICU, sqlite, sqlite_orm). A fork of a ::gentoo package starts from the current ::gentoo ebuild instead of reviving what ::gentoo dropped.
Library bumps compare upstream dependency minimums because CI does not rebuild consumers (headerkit/pyrime, #16585). Entries with "# autobump off:" stay off (#16780). Overlay masks are repository-scoped. GIT_CRATES URLs follow Cargo.lock. Benign elog claims need the condition reproduced.
scripts/autobump.md: drafts now come from arches outside amd64 and arm64, not from "only amd64".
Signed-off-by: Zakk <zakk@gentoozh.org>
Long inline shell and repeated explanations obscure the job sequence.
The engine already has its own selftest.
Because one failed issue update must not cancel the others, disable
matrix fail-fast. An empty eix result must produce an empty package map.
Pin the push action because the dependency-table job grants it write
access.
Signed-off-by: Zakk <zakk@gentoozh.org>
Eleven rules asserted behaviour the tree contradicts: a repo.xml the
overlay does not have, an elog gate that also fails on dependencies, a
vercmp command Portage does not install, a license_groups entry for a
license that belongs to no group, a no-redistribution license naming
neither mirror nor bindist, a go version the tree has moved past,
"built" slot operators where pkgcheck flags ":=", an origin assumed to
be a fork, ${D} said to carry EPREFIX, a CI matrix said to cover amd64
alone, and a dist-kernel virtual told to land in its own commit.
Say what to do about a red elog gate as well, since the message often
comes from a dependency rather than from the change under review, and
name the report the QA notices section opened by referring to.
Signed-off-by: Zakk <zakk@gentoozh.org>
Write the description in the opener's own language, short and plain, with no
dual-language wall; a tool may draft it but a human confirms and previews the
exact text and changed files before sending. Keep the repository PR template and
tick a box only after its check has run.
Signed-off-by: Zakk <zakk@gentoozh.org>
Fold hard-won CI and packaging rules into the guideline as terse, tool-agnostic policy:
the emerge-on-PR elog gate, prebuilt-blob QA, non-mechanical bumps, QA fix discipline,
the pkgdev/single-commit conventions, dead-URL re-verify, and watching CI after a PR.
Signed-off-by: Zakk <zakk@gentoozh.org>