← Back to Pull requests

fix: 公開再試行で記事Markdownも同期対象にする #454

Merged
RyukaST077 merged 3 files (57 lines) on Oct 17, 2026 07:52 UTC
View on GitHub
RyukaST077 RyukaST077 commented on Oct 17, 2026 07:48 UTC
Author

公開キューの retry は試行回数と時刻のJSONしか更新しておらず、再試行PRに記事Markdownの差分が含まれていませんでした。Zenn公式資料は、変更された .md ファイルのみが更新同期されると説明しています。

再試行時に対象記事末尾の非表示HTMLコメント1件を更新し、次のPRに記事の差分を含めます。本文・公開フラグ・実験契約を保持し、FIFO・12時間間隔・2本/24時間・15試行上限は従来どおりです。過去の「再読込のきっかけは不要」という記録にも訂正を追記しました。

検証: 修正前に retry must change the article Markdown で失敗し、修正後 node scripts/test-zenn-publish-queue.mjs が通過。複数回の再試行、本文と後続記事の保持、コメントの置換、および実際に作成されるretry PRの変更ファイルを確認しています。git diff --check とキューvalidateも通過。

この変更は現在のAPI 403の原因を特定するものではなく、Zenn側の実公開・遅延解消は未確認です。既存の再試行時刻を前倒しせず、実公開APIを引き続き確認します。

Diff: 57 lines (+54 / -3) across 3 files Reviewer: None requested Review duration: 3m
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.52) × (1 − Review Confidence (0.38)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 57 lines diff across 3 files
0.52
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: 10%
37%
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.243
No Reviewer Assigned no_reviewer_assigned
0.120
Rapid Merge rapid_merge
0.100
Real PR Conversation Timeline
1 comments
"Review active on #454"
general weight: 0.35
Reviewers
None requested
Assignees
RyukaST077 RyukaST077
Labels
risk: low confidence: 38.0% 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: 52.2% (MEDIUM) · Higher = larger blast radius
52.2%
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: 38.0% · Lower = rushed or shallow review
38.0%
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: 32.4% · Safe to merge
32.4%