Skip to content

test: default curlrc regression を HOME lane / XDG lane の独立 test に分割する - #2970

Merged
squne121 merged 4 commits into
mainfrom
worktree-issue-2966-curlrc-lane-split
Oct 7, 2026
Merged

squne121 merged 4 commits into
mainfrom
worktree-issue-2966-curlrc-lane-split

Conversation

@squne121

@squne121 squne121 commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • test_connected_proxy_diagnostics.py の default curlrc regression(proxy 指令 case と connect-to case)を、HOME lane と XDG lane の独立 test 4 件に置き換えた。
  • 旧実装は $HOME/.curlrc と $XDG_CONFIG_HOME/.curlrc の両方へ同じ config を同時に書いていたため、片方の lane が壊れても他方で plain-curl control が成立する false-green があった。
  • 各 lane は lane 単位で独立に materialize する。HOME lane は $HOME/.curlrc の 1 file のみ、XDG lane は $XDG_CONFIG_HOME/curlrc と $XDG_CONFIG_HOME/.curlrc の 2 candidate のみを書く。CURL_HOME は未設定とし、candidate set の exact assert を plain-curl control の前に行う。
  • XDG lane の docstring に curl バージョン依存(XDG_CONFIG_HOME 探索自体は 7.73.0 で導入され、7.73.0 以上 8.10.0 未満は .curlrc のみ(観測 8.5.0)、dot なし curlrc lookup は 8.10.0 で追加。XDG lane の runtime prerequisite は curl 7.73.0 以上)を明記した。
  • product code(scripts/claude-gpt/lib.sh)は変更していない。helper は同一ファイル内の小さな関数のみで、他 test module から import していない。

受け入れ条件の達成状況

  • AC1: proxy 指令 case が HOME lane / XDG lane の独立 test に分かれ、candidate set と CURL_HOME 未設定を control 前に assert する(test_probe_ignores_{home,xdg}_curlrc_proxy_lane_and_reaches_the_loopback_target、PASS)。
  • AC2: connect-to case も同じ lane 定義で独立 test に分かれ、--noproxy '*' 単独 control も維持(test_probe_ignores_{home,xdg}_curlrc_connect_to_lane_and_reaches_the_loopback_target、PASS)。
  • AC3: 各 lane で plain-curl control が proxy / decoy へ迂回されることを確認後、production probe(H.run_launcher(["--check-only"], ...))が target へ直達し /v1/models を受信、proxy / decoy の受信は 0(4 test とも PASS)。
  • AC4: 旧 test 名 2 件は test file に残っていない(rg --files-without-match が file を返す)。
  • AC5: XDG lane の docstring に (a) manpage の XDG 候補は dot なし curlrc、(b) 8.10.0 で dot なし lookup 追加・8.10.0 未満(観測 8.5.0)は .curlrc のみ(XDG 探索自体は 7.73.0 で導入)、(c) 両 filename を XDG 配下のみに置き HOME に置かない、を明記。
  • AC6: test_connected_proxy_diagnostics.py 全体が PASS(53 passed)。

検証コマンド結果

$ uv run pytest scripts/claude-gpt/tests/test_connected_proxy_diagnostics.py
53 passed in 17s  (新 4 test を含む。curl 8.5.0 / 実 launcher process / in-process fake target・proxy・decoy)
$ uv run pytest <新 4 test の node id>
4 passed
$ rg --files-without-match --fixed-strings -- "<旧 test 名 2 件>" <file>
file が出力される(旧名は不在、各 exit 0)
$ rg -n -- "8\.10\.0.*curlrc|curlrc.*8\.10\.0" <file>   → 一致あり
$ rg -n -- "8\.5\.0" <file>                              → 一致あり
$ uv run ruff check <file>
All checks passed!
  • Runtime 観測(process-I/O): 各 lane で plain-curl control は proxy または decoy が受信し target 受信 0、production probe 後は target が /v1/models を受信し proxy / decoy の受信は 0。
  • mutation 確認: 一時的に lib.sh の curl -q から -q を外すと connect-to の lane test(HOME / XDG)が FAIL することを確認し、lib.sh は revert 済み(diff なし)。
  • pnpm typecheck / pnpm lint / pnpm test / pnpm build は未実行。TypeScript / UI 変更が無く、worktree に node_modules が無い。変更は Python test 1 file のみ。
  • ruff format --check は変更前から既存の整形差分(別 test の parametrize 行)があり、本 PR の範囲外として触れていない。

Allowed Paths 遵守

  • 変更ファイル: scripts/claude-gpt/tests/test_connected_proxy_diagnostics.py
  • Allowed Paths 逸脱: なし

Checks

  • pnpm typecheck
  • pnpm lint
  • pnpm test
  • pnpm build
  • 上記は Python test のみの変更のため未実行(理由は検証コマンド結果を参照)

Schema Change Applicability

  • decision: not_schema_change
  • reason: test の構造変更のみで、machine-readable contract の変更は無い。

Schema Consumer Inventory

N/A: schema 変更なし。

Compatibility Decision(互換性判定)

  • change_type: N/A
  • compatibility: N/A
  • migration_required: N/A
  • migration_or_followup: N/A
  • reason: schema 変更なし

Safety Claim Matrix

N/A: test の false-green 解消のみで、安全境界・権限・transport 等の挙動は変更していない。

Claim Implemented? Not controlled Evidence Follow-up
HOME lane / XDG lane の default curlrc regression が独立に検証される yes N/A 新 4 test が PASS、lib.sh の -q 除去 mutation で connect-to lane が FAIL N/A

Notes

IMPLEMENTATION_SCOPE_COVERAGE_V1:
  schema_version: "IMPLEMENTATION_SCOPE_COVERAGE_V1"
  issue_number: 2966
  issue_body_sha256: "sha256:f5805443ebe2e8b0005ae1b779b0ffd4bf734a2f28ebe79b7c6d3f47ac9b3b28"
  normalized_scope_manifest_sha256: "sha256:3b68d4d471434ea710f68f24ec4cc6b119da47490e7861633e4918aa86b8bd32"
  pr_head_sha: "15938af4532a1d5525b4ca1564d1209ed1417e04"
  scope_manifest: {"acceptance_criteria": ["XDG lane の docstring または comment が次の 3 点を明記している。(a) manpage 上の XDG 候補は dot なしの $XDG_CONFIG_HOME/curlrc である。(b) curl 8.10.0 で dot なし lookup が追加され、8.10.0 未満(観測: 8.5.0)は .curlrc のみを読む。(c) よって 8.10.0 の前後どちらでも config が読まれるよう、XDG lane 内だけ両 filename を置き HOME 側には置かない。", "connect-to case も HOME lane と XDG lane の独立 test に分かれ、同じ lane 定義による独立 materialization と candidate set の exact assert を持つ。", "proxy 指令 case が HOME lane と XDG lane の独立 test に分かれ、各 test は lane 単位で独立に materialize し(HOME lane は $HOME/.curlrc の 1 file のみ materialize し、XDG candidate 2 つ($XDG_CONFIG_HOME/curlrc と $XDG_CONFIG_HOME/.curlrc)は不存在とする。XDG lane は $XDG_CONFIG_HOME 配下の 2 candidate を両方 materialize し、$HOME/.curlrc は不存在とする。両 lane とも CURL_HOME は未設定とする。)、plain-curl control の前に candidate set(存在する candidate と不存在の candidate)と CURL_HOME 未設定を exact に assert する。", "scripts/claude-gpt/tests/test_connected_proxy_diagnostics.py 全体が PASS する。", "各 lane test で plain-curl control が config 指令で迂回されることを確認した後、production probe が target へ直達し(/v1/models を受信)、proxy / decoy の受信が 0 である。", "旧 test 名(test_probe_ignores_default_curlrc_proxy_and_reaches_the_loopback_target と test_probe_ignores_default_curlrc_connect_to_and_reaches_the_loopback_target)が test file に残っていない。"], "allowed_paths": ["scripts/claude-gpt/tests/test_connected_proxy_diagnostics.py"], "change_kind": "test", "goal_ref": "test_connected_proxy_diagnostics の default curlrc regression が HOME lane と XDG lane を独立に検証し、片方が壊れても他方で green になる false-green を解消する", "in_scope": ["XDG lane は、curl バージョン差(8.10.0 未満は .curlrc のみ、8.10.0 以降は dot なし curlrc も読む)を吸収するため、両 filename を XDG 配下のみに書く(HOME 側には書かない)。docstring / comment に curl バージョン依存を明記する。", "connect-to case も同様に HOME lane / XDG lane の独立 test に分ける。", "proxy 指令 case を HOME lane と XDG lane の 2 つの独立 test に分ける。各 test は lane 単位で独立に materialize する(HOME lane は $HOME/.curlrc の 1 file のみ materialize し、XDG candidate 2 つ($XDG_CONFIG_HOME/curlrc と $XDG_CONFIG_HOME/.curlrc)は不存在とする。XDG lane は $XDG_CONFIG_HOME 配下の 2 candidate を両方 materialize し、$HOME/.curlrc は不存在とする。両 lane とも CURL_HOME は未設定とする。)。plain-curl control の前に candidate set(存在する candidate と不存在の candidate)を exact に assert する。", "各 lane で、plain curl が config の指令(proxy / connect-to)で迂回される control assertion を通し、production probe(H.run_launcher([\"--check-only\"], ...))が target へ直達し proxy / decoy の受信が 0 であることを assert する。", "既存の connect-to case の --noproxy '*' 単独 control は維持する。", "置き換え後は、旧 2 test 名を残さない(新 test 名に置換する)。"], "schema_version": "IMPLEMENTATION_SCOPE_MANIFEST_V1"}

…#2966)

HOME と XDG の両方へ同じ .curlrc を同時に書いていたため、片方の lane が壊れても他方で
plain-curl control が成立する false-green があった。lane ごとに独立に materialize し、
candidate set と CURL_HOME 未設定を control 前に exact に assert する。

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Preview URL

✅ verified live assets: https://squne121.github.io/loop-protocol/pr-2970/

The preview will be removed when this PR is closed.

@squne121

squne121 commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

PR レビュー判定: APPROVE

対象 head acfa49e43b5d621626b156a6c3f30d18b359bd48 に対する pr-reviewer の判定を control-plane が記録します。

Mergeability

  • live 取得値: mergeable=MERGEABLE / merge_state_status=CLEAN(required の python-test 完了後に再取得)。

Evidence Check

  • Allowed Paths gate は ok で、変更ファイルは scripts/claude-gpt/tests/test_connected_proxy_diagnostics.py のみです。product code は変更していません。
  • Verification Commands 10 件は current head で全て exit 0 でした(全体 53 passed)。
  • reference policy は closing_required で、Closes #2966 が成立しています。

Blockers

なし。

Non-blockers

  • 契約本文 SHA の不一致警告は、reviewer 側の末尾改行つきハッシュによる誤差でした。jq -j では snapshot と一致します。
verdict: APPROVE
reviewed_head_sha: "acfa49e43b5d621626b156a6c3f30d18b359bd48"
blockers: []
warnings:
  - "contract_body_sha_unreproducible: reviewer 側の hash 手順差(advisory のみ)"

@squne121

squne121 commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

Findings

  1. [P2 / non-blocking] curl の XDG version 境界が 7.73.0 を落としており、古い curl では XDG lane が product defect なしに FAIL する

    問題: PR の docstring と 実装: test_connected_proxy_diagnostics の default curlrc regression が HOME/XDG を独立 lane として検証しない false-green を解消する #2966 の AC5 は概ね「8.10.0 未満は $XDG_CONFIG_HOME/.curlrc、8.10.0 以降は dotless curlrc も読む」という整理ですが、厳密には XDG_CONFIG_HOME 自体の導入点が curl 7.73.0 です。7.73.0 の changelog は XDG_CONFIG_HOME から .curlrc を探す対応を記録し、8.10.0 で改めて「leading dot なしの curlrc を探す」修正が入っています。したがって historical boundary は少なくとも「7.73.0 ≤ curl < 8.10.0 では .curlrc、8.10.0 で dotless lookup 追加」と表現する方が正確です。[Curl](https://curl.se/ch/7.73.0.html?utm_source=chatgpt.com)

    PR test: default curlrc regression を HOME lane / XDG lane の独立 test に分割する #2970 の XDG test は HOME config を意図的に不存在にし、XDG 配下だけで plain-curl control の diversion を必須にしています。そのため curl < 7.73.0 では XDG config 自体を読まず control assertion が FAIL します。一方、production code の目的は curl -q --noproxy '*' による default config / proxy routing の遮断なので、これは product failure ではなく test-environment の false-negative です。curl の現行 manpage でも -q/--disable は最初の parameter に置けば default config を読まず、--noproxy '*' は全 host で proxy 利用を無効化する仕様です。[Curl](https://curl.se/docs/manpage.html?data1=sru\&utm_source=chatgpt.com)

    Impact: current CI と実装環境では問題ありません。HEAD acfa49e43… の required CI は lint / typecheck / test / build / python-test を含め success しており、PR 本文の実測 curl 8.5.0 でも 53 tests が通っています。したがって現時点では merge blocker にする価値は低いです。ただし repository 内に curl の minimum version contract は見つからなかったため、別環境での再現性だけ曖昧に残ります。

    最小修正: 新しい version matrix、fixture、skip gate は不要です。docstring を「XDG support は 7.73.0 から、7.73.0〜8.9.x は .curlrc、8.10.0 で dotless lookup が追加」に直し、必要なら「XDG lane の runtime test prerequisite は curl ≥ 7.73.0」と短く明記する程度で十分です。curl <7.73 を実際にサポートしたい要求が出るまで harness を増やすべきではありません。

判定

APPROVE 相当。merge blocker は見つかりませんでした。 上記 1 件は精度・portable test environment の改善で、#2966 の主要 failure class を再発させるものではありません。

HEAD acfa49e43b5d621626b156a6c3f30d18b359bd48 について、確認できた重要点は次の通りです。PR は Draft/Open、main は依然 fffa71d116983df174341ffd572443e0134e8ded で base drift はありません。変更は scripts/claude-gpt/tests/test_connected_proxy_diagnostics.py 1 file のみで、Allowed Paths と一致しています。review thread は 0、既存 impl-review-loop は同じ HEAD を APPROVE、CI も成功しています。

実装の核心も #2966 の refined contract と一致しています。HOME lane は $HOME/.curlrc だけ、XDG lane は $XDG_CONFIG_HOME/{curlrc,.curlrc} だけを materialize し、反対 lane の不存在と CURL_HOME 未設定を plain-curl control より前に検証しています。これにより、#2945 由来の「HOME と XDG に同じ設定を書き、一方が壊れても他方で control が green」という元の false-green は除去されています。

proxy と connect-to を分けている点も妥当です。proxy test だけでは --noproxy '*' によって成功できるため -q の regression を固定できません。一方 connect-to は URL の論理 host ではなく接続先を変更する curl の routing option なので、--noproxy '*' 単独でも decoy に流れる runtime control を置き、最後に production の先頭 -q がそれを遮断する形は、failure class を直接検証しています。[Curl](https://curl.se/docs/manpage.html?data1=sru\&utm_source=chatgpt.com)

また _plain_curl_get() が subprocess return code を直接 assert していない点も確認しましたが、ここは finding にしていません。proxy/decoy の実受信と target 非受信を control authority にしているため、curl が HTTP レベルでどう終了したかより「routing directive が実際に消費されたか」の方がこの test の目的に合っています。

PR #2964 の helper を共通 module 化せず同一 test file に小さく再実装したことも、今回の規模では適切です。ここで共通 harness、curl-version abstraction、恒久 gateを追加すると、1-file regression correction に対して運用コストの方が大きくなります。

結論として、#2970 は #2966 の contract を実質的に満たしており、品質面では merge してよい状態です。 私なら上記 P2 の docstring 精度だけ任意で直し、そこを理由に review/fix loop を増やしません。

@squne121

squne121 commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

推奨は、PR #2970 を新規作成せず existing_pr_resume として再開し、対象 OWNER comment を human_context_comment_urls に明示投入して、最小の docstring/PR本文精度修正だけ行うことです。現在も main=fffa71d1…、PR HEAD=acfa49e43…、Draft/Open、workflow runs は success、review thread は 0 です。curl の一次資料でも、7.73.0 で XDG_CONFIG_HOME の .curlrc 対応、8.10.0 で leading-dot なし curlrc lookup の追加が確認できます。[Curl](https://curl.se/ch/7.73.0.html?utm_source=chatgpt.com)

前回ループで見つかった required-CI の premature pass は既に OPEN Issue #2836 が ownership を持っています。BLOCKED/UNSTABLE と test-runner verdict の混線も #2908 が既存 owner です。したがって同じ症状なら重複起票せず reuse し、別の malformed report 等が fresh に再現した場合だけ dedupe 後に新規 Issue とするのが適切です。前回は terminal gate まで approved した一方、test-runner report の不正や required-CI の早期判定も観測されています。貼り付けたテキスト(1)

そのまま既存の fresh interactive Claude Code / auto mode に貼れる形です。

repo=squne121/loop-protocol

対象 PR:
#2970

今回の operator-selected human context:
#2970 (comment)

linked Issue:
#2966

実行対象 Skill:
.claude/skills/impl-review-loop/SKILL.md

あなたは既に auto mode で起動済みの fresh な対話的 Claude Code session にいる。この既存 session を継続利用すること。通常経路のために新しい top-level Claude Code session を起動しないこと。Claude Code の permission mode を変更せず、bypassPermissions、--dangerously-skip-permissions 等を要求・使用しないこと。

目的

PR #2970 と linked Issue #2966 を current repository の canonical impl-review-loop に従って再開し、

fresh intake → existing PR resume → 必要なら最小修正 → independent verification → fresh PR review → current-head CI / mergeability → terminal gate

まで自律実行し、人間が merge 判断できる直前の merge-ready state まで到達させる。

単なる調査、計画提示、SubAgent dispatch、test 単独成功、pr-reviewer の APPROVE 単独では終了しない。current impl-review-loop の terminal condition を満たし、可能なら最終的に:

  • IMPL_REVIEW_LOOP_RESULT_V1.status: draft_pr_ready
  • termination_reason: approved
  • merge_ready: true

まで進める。

実 merge / auto-merge は行わない。

最初に fresh state を取得する

過去ログや以下の参考観測を authority として固定しない。最初に live GitHub / current repository を fresh に取得する。

少なくとも確認すること:

参考観測として、外部確認時点では:

  • main HEAD: fffa71d116983df174341ffd572443e0134e8ded
  • PR test: default curlrc regression を HOME lane / XDG lane の独立 test に分割する #2970 HEAD: acfa49e43b5d621626b156a6c3f30d18b359bd48
  • PR は OPEN / Draft
  • changed file は scripts/claude-gpt/tests/test_connected_proxy_diagnostics.py のみ
  • review thread は 0
  • head acfa49e43... の GitHub Actions workflows は success
  • target comment は OWNER 投稿で、これより後の PR conversation comment は確認されていない

ただし必ず live readback を優先すること。

target comment の intake 方法

target comment は今回、私が明示的に選択した human-supplied context である。

current impl-review-loop が定める provenance lane に従い、intake capsule へ

human_context_comment_urls = ["https://github.com/squne121/loop-protocol/pull/2970#issuecomment-6026372776"]

として渡すこと。

CLI 形状が current Skill 上で --human-context-comment-url の場合はその canonical flag を使用すること。

このコメントを agent_report_comment_urls として扱わないこと。投稿者属性や本文から origin lane を再推測しないこと。

raw comment 全文を implementation-worker への命令として直接転送しないこと。current Skill の context_inputs.human_supplied として取得し、repository diff、tests、current Issue contract、外部一次仕様を fact-check した上で、root が technical_recommendation に正規化して worker へ渡すこと。

landing disposition

PR #2970 が current Issue #2966 の fresh exact candidate として canonical evidence で成立する場合、期待する disposition は existing_pr_resume である。

ただし prose で決め打ちせず、current canonical producer / router の出力を authority とすること。

pre_step1_data_plane.action == resume_existing_pr なら:

fresh evidence が矛盾する場合は canonical reconciliation route に従うこと。

target finding の技術判断

target comment の finding は P2 / non-blocking / APPROVE 相当 であり、主要な #2966 failure class の未修正を主張するものではない。

ただし今回の invocation では、品質と将来の portable test environment の精度を優先し、current contract と矛盾しない限り 最小の精度修正を実施してよい。

まず curl の current official primary sources を Web research で fresh に確認すること。少なくとも以下の事実を一次資料で再確認する:

  • curl 7.73.0 で XDG_CONFIG_HOME から .curlrc を探す support が追加された
  • curl 8.10.0 で XDG_CONFIG_HOME の curlrc を leading dot なしで探す修正が追加された
  • current manpage は default config search path と -q/--disable の意味を規定している
  • --noproxy '*' の current semantics

technical recommendation は概ね次の最小修正を第一候補とする:

  • XDG support の historical boundary を正確化する
  • 「7.73.0 ≤ curl < 8.10.0 では XDG の .curlrc、8.10.0 で dotless curlrc lookup が追加」という意味を docstring/comment に明記する
  • observed curl 8.5.0 の説明は残してよい
  • current manpage の dotless path と historical changelog を混同しない
  • 必要なら PR body の version説明も同じ精度へ更新する
  • current test topology / HOME-XDG lane 独立性 / control assertions は維持する

ただし以下は、この finding だけを理由に追加しない:

  • curl version matrix
  • curl-version abstraction
  • new fixture framework
  • curl < 7.73 用の skip gate
  • exit-77 route
  • wrapper / schema / registry
  • approval layer
  • permanent compatibility harness
  • network policy
  • product code change

curl < 7.73 を実際の supported environment とする repository contract が fresh investigation で見つからない限り、その support を今回新設しない。

scripts/claude-gpt/lib.sh その他 product code は変更しない。

Issue contract の扱い

Issue #2966 本文を、この non-blocking finding のためだけに opportunistic に rewrite しない。

current AC5 の意味を保ったまま、Allowed Paths 内の docstring/comment をより正確にできるならその方法を採る。特に 8.5.0 の観測と 8.10.0 の dotless lookup 追加を残しつつ、7.73.0 の lower boundary を補足する形を優先する。

もし canonical reviewer / current contract machinery が「この修正には Issue contract 自体の変更が不可避」と判定する場合は、それを隠して実装を進めず current canonical route に従うこと。prose 判断で contract を迂回しないこと。

明示的承認

この invocation について、current repository contract が許す範囲で以下を明示的に承認する。iteration ごとの追加の人間承認は不要。

  • live GitHub / repository / Issue / PR / comments / reviews / CI の read-only 調査
  • curl 等の upstream official documentation / changelog の Web research
  • current impl-review-loop / steps / agents / SSOT の読了
  • target comment を human-context lane に入れた intake capsule の生成
  • root entry / landing-disposition / canonical routing の実行
  • existing PR test: default curlrc regression を HOME lane / XDG lane の独立 test に分割する #2970 / existing branch の resume
  • current Allowed Paths 内の最小実装・修正
  • PR body / verification evidence / human-history の必要最小限の更新
  • test / lint / Verification Commands / runtime verification の実行
  • commit
  • existing PR branch への canonical push
  • test-runner / pr-reviewer その他 current Skill が要求する SubAgent の dispatch
  • fixable test failure / CI failure / REQUEST_CHANGES / stale-head の自動修正・再検証
  • current-head CI / required-check 完了待ち
  • current-head mergeability の再取得
  • terminal gate の実行
  • follow-up Issue の live dedupe
  • recurrence defect が独立 ownership を必要とし、既存 owner Issue が無い場合の canonical issue-creator / create-issue 経由の起票

通常の test failure、review finding、CI pending/failure、stale evidence、head drift、fixable REQUEST_CHANGES は停止理由にしない。

SubAgent の必須運用

repository-native contract に従って必要な SubAgent を使うこと。

特に:

  • implementation/fix は current Skill が指定する implementation-worker
  • independent VC は current Skill が指定する test-runner
  • PR semantic review は current Skill が指定する pr-reviewer

を current definitions に従って使用する。

すべての SubAgent について、dispatch しただけで完了扱いしない。

必ず:

  1. final result を実際に取得する
  2. canonical task name に対して terminal completed を確認する
  3. final result と terminal completion の両方を join する

まで downstream step へ進まないこと。

errored / interrupted / shutdown / not_found を success に変換しない。

SubAgent message は暗黙の親 context に依存させず、task / target / actual Issue・PR・HEAD / authority / constraints / evidence / expected output を具体値で渡すこと。

test-runner report の fail-closed

前回 execution では test-runner が一度 malformed な report を返した履歴があるため、fresh run でも machine result を consumer に渡す前に current Step 2 contract に照合すること。

特に:

  • top-level schema shape
  • TEST_VERDICT_MACHINE/v2
  • exact Issue / PR number
  • exact current HEAD 3種
  • contract body SHA
  • generated_at
  • (ac, command, command_hash) の逐語一致
  • changed paths / diff identity
  • trust-marker 適用条件

を current contract どおり確認する。

不正な report を root が手編集して修復しない。正確な inputs を与えて test-runner を fresh に再 dispatch する。

fresh run でも同一 malformed-output failure class が再現し、既存 ownership Issue が見つからない場合は recurrence defect として dedupe 後に follow-up Issue を起票する。

current-head evidence

今回 docstring/comment を変更して PR HEAD が動いた場合、以前の:

  • Verification evidence
  • pr-reviewer verdict
  • CI state
  • terminal gate

を新 HEAD の成功証拠として再利用しない。

new HEAD について current Issue の literal Verification Commands を independent test-runner で fresh に実行し、canonical step4-adjudicate を通す。

その後 fresh pr-reviewer を実行し、fresh current-head CI / required checks / mergeability を取得して step5-terminal-gate まで進む。

APPROVE 単独を terminal success としない。

required CI の既知 recurrence owner

前回 #2970 の loop では、required context がまだ materialize していない段階で wait_ci_checks が早期に passed を返す failure class が観測されている。

この failure class の既存 owner は現在少なくとも Issue #2836:
wait_ci_checks が未materialize required contextを見落として false-green する問題

である。

同じ症状を fresh run で観測した場合:

test-runner が pending BLOCKED/UNSTABLE を VC failure に誤変換する既知 failure class は Issue #2908 が owner なので、同様に duplicate を作らない。

follow-up Issue policy

今回の curl 7.73.0 finding 自体は PR #2970 / Issue #2966 の同じ file・同じ failure-class 周辺で最小修正できるため、これだけを理由に新規 follow-up Issue を作らない。

新規 Issue は、fresh execution で以下が確認できた場合だけ検討する:

  • current scope から独立した recurring defect
  • current PR 内では修正すべきでない workflow/harness defect
    -既存 owner Issue が無い
  • concrete reproduction / root cause / minimal ownership boundary がある

起票前に live GitHub を dedupe し、既存 owner があれば reuse する。

issue-creator を dispatch した場合も terminal completion と final create/reuse result を join してから materialized 扱いする。

一般論、将来不安、security hardening のためだけの Issue は作らない。

品質方針

個人趣味開発であり、品質・有用性・開発速度を優先する。

今回の具体的 defect を解決しない:

  • framework
  • wrapper
  • schema
  • registry
  • permanent gate
  • approval layer
  • security hardening

を追加しない。

正規 workflow の friction を増やす harness hardening を導入しない。

停止境界

次の場合だけ canonical route に従って停止/escalate してよい:

  • destructive operation が必要
  • secret / credential の取得・変更・公開が必要
  • force push / history rewrite が必要
  • actual Git conflict / canonical conflict hard stop
  • repository contract の genuine human_judgment_required
  • current owner の live comment による明示停止
  • Allowed Paths 外変更が不可避で contract 内解決不能
  • evidence integrity を維持不能
  • irreconcilable scope conflict
  • canonical max_iterations 到達
  • policy bypass が必要

他 task の dirty worktree / branch / uncommitted work を変更・削除しない。

merge / auto-merge / force push / irreversible cleanup は行わない。

最終到達点

可能な限り次まで完遂する:

  1. target comment を human context とした fresh intake
  2. canonical landing disposition の確認
  3. PR test: default curlrc regression を HOME lane / XDG lane の独立 test に分割する #2970 の existing resume
  4. curl upstream fact-check
  5. 必要なら Allowed Paths 内の最小 docstring/comment 修正
  6. 必要なら PR body の version説明更新
  7. commit / existing branch push
  8. current-head independent Verification Commands
  9. canonical VC adjudication
  10. fresh pr-reviewer
  11. finding があれば bounded automatic fix
  12. fix 後 re-test / re-review
  13. required CI の全 configured context の current-head 完了確認
  14. live mergeability 再取得
  15. step5-terminal-gate
  16. recurrence の dedupe / create-or-reuse
  17. AUTONOMY policy 等 current Skill が要求する terminal validator
  18. IMPL_REVIEW_LOOP_RESULT_V1.status: draft_pr_ready / termination_reason: approved
  19. merge はせず、人間の merge 判断直前で停止

最終報告

終了時は簡潔に以下を報告する:

成功、APPROVE、merge-ready は fresh current-head evidence と canonical terminal gate が確認できた場合だけ宣言すること。

調査・提案だけで止まらず、current canonical route が許す限り実際に最後まで実行すること。

この prompt では、comment を単なる「追加要求」として直接 worker に渡さず、current impl-review-loop の human-context provenance に正しく載せる点を重視しています。これが現在の repository contract と最も整合します。

@squne121

squne121 commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

PR レビュー結果(impl-review-loop / Issue #2966)

対象 head: 15938af4532a1d5525b4ca1564d1209ed1417e04

判定

APPROVE。merge を妨げる blocker はありません。

今回の変更

OWNER の non-blocking P2 指摘(https://github.com/squne121/loop-protocol/pull/2970#issuecomment-6026372776)を人間提供コンテキストとして取り込み、curl 公式 changelog と manpage で事実確認したうえで、同一 test file の XDG lane docstring 3 箇所だけを修正しました。

  • XDG_CONFIG_HOME 探索自体は curl 7.73.0 で導入され、7.73.0 以上 8.10.0 未満は $XDG_CONFIG_HOME/.curlrc を読みます。
  • dot なし curlrc の lookup は 8.10.0 で追加されました(観測 8.5.0 は .curlrc のみ)。
  • XDG lane の runtime prerequisite は curl 7.73.0 以上と明記しました。
  • logic、assert、test 名、product code(scripts/claude-gpt/lib.sh)は変更していません。version matrix や skip gate は追加していません。

Evidence Check

  • Verification Commands 10 件は独立 test-runner で exit 0 / PASS(AC1〜AC6、test file 全体 53 passed)。
  • VC adjudication は blocking=false。Allowed Paths gate は status=ok。
  • required checks 6 件(typecheck / lint / test / build / python-test / validate-generated-artifact)は current head で全 pass。mergeStateStatus は CLEAN。

Blockers

なし。

Non-blockers

  • PR 本文の IMPLEMENTATION_SCOPE_COVERAGE_V1.pr_head_sha は current head に更新済みです。
verdict: APPROVE
reviewed_head_sha: "15938af4532a1d5525b4ca1564d1209ed1417e04"
blockers: []
warnings: []

@squne121
squne121 merged commit 8a08fba into main Oct 7, 2026
27 checks passed
@squne121
squne121 deleted the worktree-issue-2966-curlrc-lane-split branch October 7, 2026 10:09
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.

実装: test_connected_proxy_diagnostics の default curlrc regression が HOME/XDG を独立 lane として検証しない false-green を解消する

1 participant