Skip to content

fix(fork): /code-review 對 #77 的修正:步驟編號不再混淆、precheck 長時間失敗會警報 - #78

Merged
audichuang merged 2 commits into
developfrom
fork-chore/automation-review-fixes
Oct 26, 2026
Merged

audichuang merged 2 commits into
developfrom
fork-chore/automation-review-fixes

Conversation

@audichuang

Copy link
Copy Markdown
Owner

為什麼

對 #77 跑 /code-review(Standards + Spec 兩軸)找到的問題。

改了什麼

  • auto-rebase SKILL.md:開頭寫明「第 N 步」一律指 ## N. 那節、節內項目叫「第 N 點」。第 1 步裡兩處「跳到第 8 步」可能被讀成第 1 步第 8 點(lint),會跳過開 PR 與 needs-human 留言,現在明寫是 ## 8. 那節。develop-moved 留言改成寫實際 sha(另一個 Bash 呼叫時 $head 是空的)。
  • precheck.sh:fix(fork): auto-rebase 發版途中不再失聯、過時的鎖會自動收,每次結果都寫進筆記 #77 讓 API/網路失敗全部安靜跳過,token 長期失效時排程會永遠停著沒人知道。改成第一次失敗記時間,連續 6 小時以上才發警報(precheck-alert 一天一次),任何一次沒走到失敗就清掉計時。PR 留言標記改用跟 canary precheck 一樣的 jq startswith。上游 tag 格式怪異仍不警報。
  • FORK.md:補上「使用者已推 develop 到 verified head 時,下一次 run 會接著發版」。
  • canary SKILL.md:"${tip}:…" 寫法統一。
  • pty-connection-test-environment.test.ts:timer 由 5ms 改 50ms,restore 慢時 setTimeout 那半仍有在檢查。

沿用 #77 的設計、沒改的:「fork 自身問題」只改 fork 測試檔的修正免 mutation 證明(不然每條不穩測試的建議都會讓 develop 無法自動移動,只剩一個沒人會處理的 verified PR)。

驗證

  • precheck 用假 git/gh 跑 14 種情境(含失敗剛開始、2 小時、7 小時、恢復後清除計時),exit code 與警報都符合預期
  • 測試檔通過;拿掉 clearTrackedRealTimers() 兩個 case 都紅
  • check:code-quality:changed v1.4.240:0 個新問題

🤖 Generated with Claude Code

audichuang and others added 2 commits October 26, 2026 08:56
Code review of #77:
- SKILL.md: "第 N 步" always names a `## N.` section, items are "第 N 點"; the jumps
  to section 8 say so, and the develop-moved comment carries the literal sha.
- precheck: API or network failures stay quiet until they last 6 h, then alert once a
  day; markers are read with the same jq startswith as the canary precheck.
- FORK.md: the next run releases a verified head the user already pushed.
- pty-connection-test-environment.test.ts: 50 ms timers so the timeout half still
  checks something when restore is slow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@audichuang
audichuang merged commit b0fbbcd into develop Oct 26, 2026
14 checks passed
@audichuang
audichuang deleted the fork-chore/automation-review-fixes branch October 26, 2026 01:12
audichuang added a commit that referenced this pull request Oct 26, 2026
audichuang added a commit that referenced this pull request Oct 26, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Oct 27, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Oct 28, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Oct 29, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Oct 30, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 2, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 3, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 4, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 5, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 5, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 6, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 7, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 8, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 8, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 10, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 10, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 12, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 13, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 14, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 16, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 18, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 18, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 19, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 20, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 20, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 20, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang added a commit that referenced this pull request Nov 21, 2026
…{tip}

Second /code-review pass on #78: the precheck's why-comment fits one line and its
stamp is named for what it holds; skills say PR markers go first in a comment, the
canary braces every ${tip}, and the develop-moved sentence no longer stacks asides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant