Skip to content

infra(pipeline): 接入推进管线 L1 #76

Done

Description

@ID-VerNe

现象

AndroidMic 仓尚未接入推进管线 L1:pipeline-check.ps1 -Level L1 报 6 项不符合——缺 .pipeline/manifest.yaml、AGENTS.md 契约块、docs/PIPELINE.md 薄指针、issue 表单与 PR 模板;另有 PIPE-WT-001 指出 7 个切点前在途分支名缺 issue 数字段。

复现命令(PowerShell 7):

$env:PIPELINE_HOME = 'C:\Users\VerNe\Downloads\Documents\编程推进管线'
$env:GH_REPO = 'ID-VerNe/AndroidMic'
pwsh "$env:PIPELINE_HOME\scripts\pipeline-check.ps1" -Repo "C:\Users\VerNe\Downloads\Documents\手机麦克风\AndroidMic" -Level L1

原始输出(2026-12-04,绑定 fork 后):

不符合 | PIPE-GOV-003 | manifest 存在且七键齐全、spec_version 与本规范一致 | ...\AndroidMic\.pipeline\manifest.yaml
不符合 | PIPE-GOV-004 | AGENTS.md 含 begin/end 契约块且块内不超 30 行 | ...\AndroidMic\AGENTS.md;缺 begin/end 标记
不符合 | PIPE-VER-004 | docs/PIPELINE.md 存在且不超 20 行(薄指针) | ...\AndroidMic\docs\PIPELINE.md
不符合 | PIPE-ISSUE-008 | ISSUE_TEMPLATE 至少 3 个表单… | ...\AndroidMic\.github\ISSUE_TEMPLATE
不符合 | PIPE-PR-002 | PR 模板存在且七段齐全 | ...\AndroidMic\.github\pull_request_template.md
不符合 | PIPE-WT-001 | 分支名匹配 <type>/<issue>-<slug> | fix/settings-column-scroll;bump/2.2.13;feat/auto-transport;test/stream-lock-coverage;fix/connection-locks-hardening;fix/lock-release-retry;fix/on-demand-wake
== 汇总 ==
不符合: 6;符合/跳过见上列明细。
EXIT=1

证据链

  • 盘点报告:C:\Users\VerNe\Downloads\Documents\编程推进管线\接入盘点-2026-11-27.md 第三节(AndroidMic),对应 PIPE-GOV-003/004、PIPE-VER-004、PIPE-ISSUE-008、PIPE-PR-002、PIPE-WT-001。
  • 既有文件:AndroidMic\AGENTS.md:1-41 无 pipeline:begin / pipeline:end 标记;.github\ 下只有 workflows\ci.yml、workflows\release.yml,无 issue 表单与 PR 模板;.pipeline\manifest.yaml、docs\PIPELINE.md 不存在(Test-Path 均为 False)。
  • 分支与 worktree:git worktree list 显示 7 个在途 worktree,git branch -vv 确认 fix/settings-column-scroll、bump/2.2.13、feat/auto-transport、test/stream-lock-coverage、fix/connection-locks-hardening、fix/lock-release-retry、fix/on-demand-wake 均无 issue 数字段。
  • gh 仓库解析:本机 gh 原先未绑定默认仓库,gh repo view --json nameWithOwner 解析到 teamclouday/AndroidMic(upstream),导致首跑把 upstream 的 7 个 open PR 误计为 PIPE-WIP-002 不符合;已执行 gh repo set-default ID-VerNe/AndroidMic,复跑后 gh pr list -R ID-VerNe/AndroidMic --state open 为 0 条,WIP-002 不再触发。

影响面

P2(协作骨架缺失,无运行时代码与行为变更)。

受影响对象(模块/设备/用户路径):仅仓库协作层——.github/ISSUE_TEMPLATE、.github/pull_request_template.md、.pipeline/manifest.yaml、AGENTS.md、docs/PIPELINE.md;同时影响本仓 issue/PR 协作流程、分支与 worktree 命名规范;不触达 RustApp/、Android/ 运行路径,不影响 2.2.13 发布分支与在途修复分支,无模块、设备或用户路径受影响。

修复候选

  • 执行 pipeline-install.ps1 -Level L1 -Write 安装 L1 骨架:8 个 issue 表单、PR 七段模板、manifest、AGENTS 契约块、docs/PIPELINE.md 薄指针,共 12 个文件;脚本幂等,已存在同名文件备份后跳过(PIPE-ADOPT-005)。

  • 回填切点:adopted_at=2026-12-04、adopted_commit 取安装基线 origin/main 的完整 40 位 SHA、project_type=android+rust、owner=ID-VerNe。

  • 对 PIPE-WT-001 登记带到期日的豁免:切点前 8 个在途分支保留原名不重命名,切点后新分支按 <type>/<issue>-<slug>(PIPE-ADOPT-006)。

  • 明确不做:不改历史 issue(PIPE-ADOPT-003)、不重命名在途分支、不装 L2(30 天后按节奏补证据链路)、不触碰 upstream、不改既有 CI workflow。

  • 这是一件事,可独立验收

Activity

  1. ID-VerNe commented on Dec 4, 2026

    @ID-VerNe
    OwnerAuthor

    plan

    范围

    • 在 ID-VerNe/AndroidMic 安装推进管线 L1 协作骨架(12 个文件),回填切点与 PIPE-WT-001 豁免,使 pipeline-check.ps1 -Level L1 除已登记豁免外无非豁免不符合(PIPE-ADOPT-002、PIPE-ADOPT-004)。

    非目标

    方案与备选

    • 选定:官方 pipeline-install.ps1 -Repo . -Level L1 -ProjectType android+rust -Write。脚本幂等,已存在文件先备份到 .pipeline/backup/<YYYY-MM-DD>/ 再跳过(PIPE-ADOPT-005);随后手工回填 manifest 切点并登记豁免。
    • 备选:手工复制 templates/ 与 scripts/ 产物。被否:绕过幂等与备份约定,后续升级必漂移(PIPE-ADOPT-007)。
    • 根因证据:pipeline-check.ps1 -Level L1 首跑 7 行不符合、绑定 fork 后 6 行不符合(原文见 issue 现象段);Get-ChildItem .github -Recurse 仅有 workflows\ci.yml、workflows\release.yml;.pipeline 与 docs 目录均不存在。

    风险与回滚

    • 风险 1:gh 未绑定默认仓库时,标签与 issue 会落到 upstream。处置:安装前已 gh repo set-default ID-VerNe/AndroidMic,执行安装前逐条核对 gh repo view --json nameWithOwner 输出,并显式设 GH_REPO。
    • 风险 2:新增 .github 模板与既有 CI 的行为耦合。处置:adoption PR 只新增模板与指针,不改 workflow 文件;合并后 CI 不受影响。
    • 回滚:git revert <adoption merge commit> 一次性撤回 12 个新增文件与 manifest/.gitignore 改动;远程新增的 25 个标签不在自动回滚范围,如需清理手工删除。

    验证与证据计划

    • 证据类型:命令原文 + 退出码;安装前后 pipeline-check.ps1 -Level L1 全量输出对比。
    • 样本数:n=1(本机 Windows + PowerShell 7.6.4)。
    • 偏差口径:不适用——合规检查是确定性判定,不是测量,不写 ±/P50。

    用 issue 的复现命令复现:失败(安装前 6 项不符合,原文见 issue 现象段)

    $env:PIPELINE_HOME = 'C:\Users\VerNe\Downloads\Documents\编程推进管线'
    $env:GH_REPO = 'ID-VerNe/AndroidMic'
    pwsh "$env:PIPELINE_HOME\scripts\pipeline-check.ps1" -Repo "C:\Users\VerNe\Downloads\Documents\手机麦克风\AndroidMic" -Level L1
    # EXIT=1;不符合 6 条(PIPE-GOV-003/004、PIPE-VER-004、PIPE-ISSUE-008、PIPE-PR-002、PIPE-WT-001)

    Agent: Doubao / 38458338768400642 / 2026-12-04

  2. added
    type/infra
    st/intake
    sev/P2
    st/active
    st/review
    and removed
    st/intake
    st/active
    on Dec 4, 2026
  3. added a commit that references this issue on Dec 4, 2026
  4. ID-VerNe commented on Dec 4, 2026

    @ID-VerNe
    OwnerAuthor

    关闭依据

    关闭依据:上述 approve 评论(issuecomment-7398619917)。

  5. added
    st/merged
    and removed
    st/review
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sev/P2st/mergedtype/infra

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions