## Development lane / 开发通道 - Lane: `direct-to-main` bootstrap - Base branch: `main` - Active train: `n/a` - Owning Agent/session: workflow coordinator ## Change / 改动 - Split authoritative CI into parallel static, contract, Rust lint/test shards, Swift interaction, stress, overlay, bundle, and stable `Required CI` jobs. - Make every ready PR to `main` a complete gate while keeping task PRs to `gd-ops/train/*` path-scoped. - Add direct/train worktree coordination, bounded changelog fragments, protected main/train ruleset automation, and safe same-repository squash auto-merge. - Let GitHub Release promote an exact successful main commit, reuse its source proof, and create a missing release tag only after proof validation. - Keep local pre-push validation bounded to basic syntax, formatting, contracts, and compilation; complete duplicate proof stays in GitHub CI. This is the one bootstrap PR: the auto-merge workflow and required rules do not exist on the base branch yet. After this PR passes and is merged once, the exact `main` push must pass `Required CI`; then the fail-closed applicator can activate both rulesets and all later ready `gd-ops/*` PRs follow the automated path. ## Validation / 验证 - `actionlint .github/workflows/ci.yml .github/workflows/release.yml .github/workflows/auto-merge.yml` - `./script/validate_source_syntax.sh` - `./script/validate_build_scripts_safety.sh --skip-source-syntax` - Exact staged diff was reapplied to a clean detached worktree before the final validation run. - 28 validation-tooling tests, 40 release-distribution tests, macOS build-contract tests, Release shell contracts, and test-isolation validation passed. ## Risk / 风险 - No product runtime or credential access is added. - `pull_request_target` never checks out or executes PR code and only enables auto-merge after API verification of active PR and `Required CI` rules. - Full ruleset activation fails closed until the exact remote main commit has a trusted successful GitHub Actions push run. - Reversible repository settings are already enabled: auto-merge, squash-only, update branch, and delete merged branches. --------- Co-authored-by: gd-ops <gd-ops@xmfunny.com>
1.1 KiB
1.1 KiB
Development lane / 开发通道
- Lane / 通道:
direct-to-main/task-to-train/train-to-main - Base branch / 目标分支:
- Active train / 所属 train:
n/aorgd-ops/train/<name> - Owning Agent/session / 写入负责人:
Scope and dependencies / 范围与依赖
- Owned paths / 独占修改路径:
- Shared files and coordinator / 共享文件及协调者:
- Depends on / 依赖 PR:
- Blocks / 阻塞 PR:
Change / 改动
Describe the behavior and contract change. Task PRs to a train add one changes/unreleased/*.json fragment for each user-visible change. Direct or ready train PRs to main must have consumed all fragments into root CHANGELOG.md. / 描述行为与合同变化。进入 train 的任务 PR 应为每项用户可见变化添加一个 changes/unreleased/*.json;直接进入 main 或已 ready 的 train PR 必须将片段全部汇总进根 CHANGELOG.md。
Validation / 验证
- Local fast gate:
- Focused checks:
- Environment-dependent gates skipped:
- Visible UI evidence, when applicable:
Risk / 风险
- Privacy/security:
- Migration/compatibility:
- Performance/accessibility:
- Release/version impact: