← Back to Pull requests

feat(release): promote verified own-entry artifact to admitted repository #4147

Open
unknown opened this pull request with 195 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 15, 2026 19:57 UTC
Author

Summary

为 #4095 增加 opt-in immutable artifact promotion:将已验证的单个 signed own-entry 镜像复制到现有准入仓库,避免迁移全局 custom Agent 仓库策略。

main workflow + promote_existing=true
  fixed official receipt/run/source/digest
  → verify linux/amd64, self-managed manifest and entrypoint
  → require new run-derived tag absent
  → copy unchanged manifest/config/layers
  → immutable target readback + promotion receipt

来源固定为 official run 43741080676/attempt1 的 45cf artifact;目标固定 agent-runtime-codex,仅使用 ownentry 专用新 tag。拒绝覆盖、rerun 和未知 copy 重试,失败保留独占 intent。默认单镜像构建行为不变,不添加其他镜像或调用方可选仓库。

Refs #4095。合入只提供正式发行入口,不签同 c549 升级、完整 imageSet/cache 或 TLS/path AC。

Evidence

  • Before:既有 producer 固定输出 custom-agent-web-signed,现有 custom policy 使用 agent-runtime-codex;只改 prefix 不能保持精确仓库。

  • After:正常 workflow 可执行固定来源到固定目标的内容不变 promotion,并校验两侧 manifest/config/layer 身份。

  • Node24:promotion guards 6/6、workflow policy tests 25/25、policy/actionlint/diff 通过。

  • pnpm check、check-types、build、smoke 和完整 test:meta 通过。本地 Docker build 在固定 clamav 基础镜像 Docker Hub metadata HEAD 返回 EOF 时失败;未重试或替换依赖,required Docker build 由 hosted CI 继续验证。

  • 两项独立 Standards/Spec source review 无阻塞 finding。测试覆盖已有 tag、auth/transport 冒充缺失、篡改来源/ref/rerun/架构/runtime identity、copy 失败及 target drift。

  • 本地只执行 metadata reader 和测试;未运行 promotion、Registry push 或任何现场操作。
  • Merge Danger

    Door: two-way

    默认模式保持不变,可回滚 promotion 模式;合入不自动执行发行。

    Blast Radius: publication

    实际复制仅由唯一 publisher 在正常新有限 scope 中执行;目标 tag 不覆盖标准 release/latest。未知写结果停止,不重发。

    Agent: codex
    Agent-Session-ID: 01a1befe-7231-7cb0-8c39-4dddbb1af796

    Diff: 195 lines (+146 / -49) across 2 files Reviewer: github-actions[bot] Review duration: 8m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 195 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.316
    Real PR Conversation Timeline
    1 comments
    "Review active on #4147"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36% (MEDIUM) · Higher = larger blast radius
    36%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.2% · Safe to merge
    19.2%