15 Commits
Author SHA1 Message Date
Zakk 669c07b6c3 .agents/rules: omit glibc floors the profiles already enforce
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-12-05 22:32:26 +11:00
Zakk 86dbb93947 .github, CONTRIBUTING*: add Chinese to the pull request template
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-28 15:34:57 +11:00
Zakk be844e4c29 .github, .agents/rules: ask for Assisted-by in the AI checkbox
Disclose AI-written changes with an Assisted-by trailer.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-22 09:41:17 +11:00
Zakk 0682daf755 .github, .agents/rules: ask for one PR body line per change
A PR body that explains several dependency or patch changes needs one
line for each, so the template hint asks for one line per change rather
than one or two sentences. pr-text.md allows a leading line naming the
precedent or packaging model, which tells reviewers what to compare
against, and no longer forces a because-clause onto a fact that already
states its consequence.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-15 03:09:02 +11:00
Zakk bf04eb59fb .github, .agents/rules: add a reason hint to the PR template
The PR template gains one comment asking for the reason as because/so
and for Closes #N on its own line; its checkboxes stay verbatim because
scripts/pr-template.sh fails a PR whose body lacks them. AI-assisted PRs
state the arch, profile and what ran in the body, since the AI checkbox
claims tested results. pr-text.md takes back the rules the rewrite lost:
the PR title is never translated, the body neither narrates steps nor
claims an unsupported cause, and the writing examples table.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-15 03:09:02 +11:00
Zakk a55f0925b0 AGENTS.md, .agents/rules: rewrite as target states, add QA lessons
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>
2026-11-15 03:09:02 +11:00
Zakk 9b7d8d027d AGENTS.md: move construction, dependency, QA and writing rules to .agents/rules
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>
2026-11-15 03:09:02 +11:00
Zakk fe407a088d AGENTS.md: move branch and remote mechanics to .agents/rules/git-workflow.md
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>
2026-11-15 00:33:42 +11:00
Zakk 0b610d3709 AGENTS.md: drop duplicate GIT_CRATES rule
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>
2026-11-15 00:33:42 +11:00
Zakk 7b576bf208 AGENTS.md, .agents/rules: add prebuilt, license, fork and autobump rules
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>
2026-11-15 00:18:23 +11:00
Zakk 0b26e19d66 .github/workflows/autobump.yml: prepare vendor bundles before bumping
nvchecker dispatched gentoo-deps bundles as soon as it saw a new version, but
autobump could reach the bump before the bundle was released; the 404 then ended as
an escalation or used up the transient retries.

The plan job now runs the bundle controller, autobump-rb's bin/bundles.py, for every
open issue whose package has `deps` or `bundle` in overlay.toml, opted in or not. It
dispatches a missing bundle at most three times per bundle and version, holds the
package back until the bundle is ready, and escalates after four observations. The
engine reads the snapshot through --bundle-status to tell a pending bundle from a
wrong file name.

`deps` names the gentoo-deps generator language, from which the controller derives
the repository, workflow, release tag and inputs; a producer with its own workflow,
as in gentoo-zh-drafts, takes the full `bundle` form. bundles.yml runs the same
controller to check or prepare a package's bundles by hand.

The nvchecker dispatch job and gentoo-deps-dispatcher.toml are removed, so only one
path dispatches bundles.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-10-01 01:16:59 +10:00
Zakk 44690c4554 kernels.md: cover all seven kernel packages, add cross-references
dist-kernels.md 改名 kernels.md:七个内核包里四个是 -sources,不是
dist-kernel。全部 inherit cjktty:gentoo-cjk-sources/-kernel/-kernel-bin、
cachyos-sources、xanmod-sources、xanmod-kernel、liquorix-sources。改成
共通规则加一张表:每个包 bump 时对照同版本上游核对哪些变量、哪些
是设计上固定的;新打内核包照表里同模型的那个,并补一行。按 codex
对照 git 历史的审查改:CJKTTY_PV 是补丁文件名的版本后缀,补丁换了
就换,同分支也会变;cjktty 补丁碰的路径从补丁本身取,不手写清单;
K_WANT_GENPATCHES、DEBIAN_COMMIT 进核对列;不写死版本号。

规则文件之间要交叉读:每个文件第一行 Read with 写清从这里下一步读
哪份;根档路由写明阅读顺序:根档 → version-bumps 或 new-packages →
碰到的每个面 → 提交前 pr-text。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-09-13 06:00:03 +10:00
Zakk 5b317ba99b AGENTS.md: add distribution kernel rules
来自 6.12/6.18/7.1/7.2 四条分支的维护(#13309、#13356):逐版变量照抄
::gentoo 同版 ebuild、PATCHSET 落后分支、CJKTTY_PV 是补丁名、点版本用
增量补丁判断要不要换补丁、cjktty 补丁是 master 活字节、-bin 落后一版
分两次合并、virtual 的 || 里 -bin 在前、个人镜像的 genpatches DeadUrl
多为镜像滞后。只收写 ebuild 的规则,不收测试环境。

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-09-13 04:24:07 +10:00
Zakk 3fc5deee20 AGENTS.md: add precedent search, download approval, and eclass rules
新增 16 条,来自 2026-09 的 bump 与 review,每条附出处。另补 overlay.toml 字段惯例(use_latest_release/use_latest_tag、prefix、github_account、autobump 选择加入)。

根档
- 用 grep 和 gentoo.git 的 git log -S 搜先例,不凭记忆(#13269、#13295)。
- 第一次下载 package payload 前报 URL 与上游标称大小,等批准(维护者要求)。
- ebuild(1) install 不解析依赖;src_install 里 fowners 到 acct 用户要 BDEPEND 和 RDEPEND(#13308,acct-user.eclass)。
- launcher 脚本调用的非 @system 命令用 qfile 或仓库搜索找 provider;xdg-user-dir 属 x11-misc/xdg-user-dirs(#13269)。

eclass-discovery
- 不重复 eclass 已有的赋值:git-r3 的 PROPERTIES="live"(#13295)。
- cargo GIT_CRATES 生成 [patch.'url'],覆盖不了上游 [patch.crates-io];URL 按 Cargo.lock 写(pnpm 12.4.1)。
- go-module 的 install QA 扫 WORKDIR 下全部 go.mod;确认无路径使用的子模块可删,否则抬 floor(queqiao #13308)。

version-bumps
- GitHub tag 包无 .git,git describe 取不到版本时显式传版本(mkinitcpio 42)。
- files/ 里复制的上游文件每次 bump 要 diff(mkinitcpio #13351)。
- CI 快照未含所需 ::gentoo 版本时保持 atom、开 draft、快照更新后重跑(fcitx 5.1.22)。

new-packages
- 跟踪 tag 且 tag 混其他包或版本方案时用 use_max_tag + include_regex(app-editors/xed)。

prebuilt-binaries
- REQUIRES_EXCLUDE 只过滤 REQUIRES,限用于已验证的假阳性(wechat #13269)。
- 运行时自校验的文件用 dostrip -x(net-proxy/flclash-bin)。
- dotnet-pkg-base 预编译包的 DOTNET_PKG_COMPAT 要对上 runtimeconfig(games-server/vintagestory-server #11210)。

另加:pkgdev 与 pkgcheck 缺一即停、让人 emerge,不用 git commit 或自写 lint 代替;gh 可选,没有就给 compare 链接。「re-check from a second network」改成 second vantage point,单机贡献者未必有第二个网络。
2026-09-13 04:24:07 +10:00
Zakk bf8a864bfb AGENTS.md: split into a core file and .agents/rules
AGENTS.md 已到 35.7 KB,超过 Codex 的 project_doc_max_bytes 默认 32 KiB,
末段会被截掉;其他客户端也要每次读全部规则。

根档只留所有任务都要遵守的节(Git Workflow、Ebuild Policy、
Dependencies and Revisions、Code Style、Commands and QA、Writing、
Completion Report)。只在某类改动才用到的七节整节搬到 .agents/rules/
按需读:version-bumps、new-packages、prebuilt-binaries、
desktop-integration、openrc-systemd、eclass-discovery、pr-text。
根档新增 Task routing 一节说明何时读哪份。

规则逐字搬家、原序不变;只改两处跨节指涉(under Bundled and Prebuilt
Binaries → 文件路径;causality rule above → AGENTS.md § Writing)。

Closes #13102

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-09-13 04:24:07 +10:00