Repository navigation
feat(#434): add production artifact to defaultPatterns and document gate topology (A案) - #567
Conversation
…ate topology (A案) - defaultPatterns に artifacts/agent-session-manifest-ci.json を追加(production artifact) - production gate topology(A案: session-manifest.yml を正本とする)をコメントで明示 - ci.yml は production gate を主張しない旨(A案採用)をコメントに明示 - artifact path 変更時に session-manifest.yml の generate/validate/upload path を 同時更新することをコメントに明示(silent no-op 防止) - upload constraints(if-no-files-found|retention-days)をコメントに明示 - pull_request_target 不使用・Node 22|pnpm 11|node-version 前提をコメントに明示 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 9
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果レポートIssue #434: agent-session-manifest production artifact validation
総合判定
実装品質
PR #567 は全 AC を満たし、すべての検証コマンドが正常に完了しました。 |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: 9/9 (all AC1-AC9 confirmed by TEST_VERDICT_MACHINE + CI_CHECK_RUN_SCOPED)
- Allowed Paths: 遵守 (
scripts/check-agent-session-manifests.mjsのみ変更、Allowed Paths 内) - CI Verification: all checks pass at head SHA
30985c8faee1dfc307226b561c0b1b2d93dee63e(build/e2e/lint/python-test/test/typecheck/validate-generated-artifact 全 pass) - 検証コマンド結果: TEST_VERDICT_MACHINE (verification_commands_pass=9, fail=0, skipped=0) + CI run 26796302898 / 26796302914 (conclusion=success, head_sha 一致)
AC Coverage Detail
| AC | 判定 | 根拠 |
|---|---|---|
| AC1 | PASS | defaultPatterns に artifacts/agent-session-manifest-ci.json 追加済み (L354) |
| AC2 | PASS | 参照 path と session-manifest.yml の生成 path が一致 (rg 6 matches) |
| AC3 | PASS | production.gate|production gate topology (A案) がヘッダコメントに明示 |
| AC4 | PASS | artifacts/agent-session-manifest-ci.json 変更時に session-manifest.yml の 3 箇所同時更新義務がコメントに明示 |
| AC5 | PASS | ci.yml は production gate を主張しない(A案採用) がコメントに明示 |
| AC6 | PASS | isExplicit ガード + production gate は session-manifest.yml の explicit target 呼び出しで保証 (silent no-op 排除をコードコメントで説明) |
| AC7 | PASS | if-no-files-found: error / retention-days: 7 がコメントに明示 |
| AC8 | PASS | pull_request_target は使用しない / secrets.* は使用しない がコメントに明示 |
| AC9 | PASS | Node 22|pnpm 11|node-version: '22' がコメントに明示 |
Blockers
なし
Non-blockers
なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 30985c8faee1dfc307226b561c0b1b2d93dee63e
recommendations: []
follow_up_issue_requests: []
総評Verdict: REQUEST_CHANGES PR #567 の方向性自体は妥当です。Issue #434 は、 ただし、このまま approve するには危険な穴が2つあります。 Blocker 1: changed executable file に hidden / bidirectional Unicode 警告が出ているPR files view で、変更対象の
これは単なる表示ノイズではありません。GitHub は 2021 年に bidirectional Unicode text 警告を導入しており、hidden bidi 文字はレビュー上の見え方と実際の論理構造をずらせます。NVD の CVE-2021-42574 でも、Unicode Bidi 制御文字により source code の表示上のロジックと実際のロジックを乖離させられる問題が説明されています。([The GitHub Blog]3) この PR は「安全 topology をコメントで固定する」こと自体が成果物です。つまり、コメントの可読性・レビュー可能性が security / safety contract の一部になっています。そのファイルに hidden/bidi 警告が出ている状態は、approve 不能です。 要求修正:
最小検証例: node - <<'JS'
import { readFileSync } from 'node:fs'
const file = 'scripts/check-agent-session-manifests.mjs'
const s = readFileSync(file, 'utf8')
const bad = []
for (let i = 0; i < s.length; i++) {
const cp = s.codePointAt(i)
if (
(cp >= 0x202A && cp <= 0x202E) ||
(cp >= 0x2066 && cp <= 0x2069) ||
cp === 0x200B ||
cp === 0x200C ||
cp === 0x200D ||
cp === 0xFEFF
) {
bad.push(`index=${i} code=U+${cp.toString(16).toUpperCase().padStart(4, '0')}`)
}
if (cp > 0xffff) i++
}
if (bad.length) {
console.error(bad.join('\n'))
process.exit(1)
}
JSBlocker 2: Issue #402 / PR #426 由来の artifact naming contract との drift 疑い関連 Issue #402 は、 一方、現在参照できる branch 上の Issue #434 は #402 / #426 の producer workflow を前提に、production gate coverage を閉じる follow-up です。#434 自体は artifact name prefix を明示していませんが、「upload constraints 維持」を in-scope に含めています。([GitHub]1) そのため、PR #567 が現在の topology コメントで artifact upload constraints を再固定するなら、#402 由来の naming invariant を維持するのか、意図的に破棄するのかを明示しないと contract drift です。 要求修正:
敵対的には前者を推奨します。名前だけで visibility は制御できませんが、public transcript/comment と artifact-only private channel を区別する reviewer cue として機能します。 Non-blocker 1: AC2 / AC6 の検証が弱いPR 本文の verification は AC1〜AC9 pass としています。PR checks 上も ただし、AC2 / AC6 は「同じ artifact path を generate / validate / upload / defaultPatterns が共有する」ことが本質です。Issue #434 は production artifact path の silent no-op を防ぐため、explicit target validation または file existence assertion を求めています。([GitHub]1) 現 PR のコメントは、CI では 推奨修正:
Non-blocker 2: Node 22 前提は正しいが、minor version contract が曖昧PR コメントは Node 22 / pnpm 11.1.2 前提を明記しています。pnpm 11 は Node.js 22 以上を要求し、 一方、 推奨修正:
Non-blocker 3:
|
Rewrite Japanese comments in check-agent-session-manifests.mjs to English to resolve GitHub hidden/bidi Unicode warnings on .mjs files. Also document the artifact naming convention established in PR #426 (no 'private-' prefix). No functional changes. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Verification Results ReportIssue #434: Manifest Check Production Artifact Valid (Iteration 1)All Acceptance Criteria verified successfully.
Iteration 1 Blockers
Quality Gate Results
```yaml |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: 9/9 PASS — TEST_VERDICT_MACHINE confirms all ACs pass, 0 skipped, head SHA matches
- Allowed Paths: compliant — single changed file
scripts/check-agent-session-manifests.mjsis within Allowed Paths - CI Verification: all 7 checks pass (build, e2e, lint, python-test, test, typecheck, validate-generated-artifact) at head SHA 662a5af
- Verification Commands: TEST_VERDICT_MACHINE reports 11/11 pass, 0 fail, 0 skipped
Human Reviewer Blocker Resolution
- Blocker 1 (Japanese text in comments): Resolved — diff contains no Japanese characters
- Blocker 2 (#402 AC8 prefix supersede): Resolved — lines added state "Issue #402 AC8 specified a 'private-agent-session-manifest' prefix requirement, which was not adopted in PR #426"
Blockers
- none
Non-blockers
- branch_behind_main: true — recommend update_branch before merge (non-blocking)
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 662a5af43196cbec90e003ce0c8ff5759698b4b8
recommendations: [update_branch]
follow_up_issue_requests: []
Closes #434
Summary
scripts/check-agent-session-manifests.mjsのdefaultPatternsにartifacts/agent-session-manifest-ci.jsonを追加(AC1, AC2, AC6)session-manifest.ymlを正本とする)をファイルヘッダのコメントに明示(AC3, AC4, AC5)session-manifest.ymlの generate/validate/upload path を同時更新することをコメントに明示(AC4)if-no-files-found|retention-days)をコメントに明示(AC7)pull_request_target不使用をコメントに明示(AC8)Node 22|pnpm 11|node-version前提をコメントに明示(AC9)Verification Commands 結果
rg -n "artifacts/agent-session-manifest-ci\.json"rg -c "artifacts/agent-session-manifest-ci\.json"rg -n "production.gate|production gate"rg -n "session-manifest\.yml"rg -n "ci\.yml"rg -n "artifacts/agent-session-manifest-ci\.json"rg -n "if-no-files-found|retention-days"rg -n "pull_request_target"rg -n "Node 22|pnpm 11|node-version"Quality Gate
pnpm typecheckpnpm lintpnpm testpnpm buildContract Snapshot
#434 (comment)
Allowed Paths compliance
変更ファイル:
scripts/check-agent-session-manifests.mjsのみ(Allowed Paths 内)🤖 Generated with Claude Code